make sure features has been run before invoking linklibs-libatomic
[AROS.git] / configure
blob5335eb2247d45f66baae9c95ff689d7b5a192ddb
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_optimization_cflags
673 aros_config_coverage
674 aros_config_lto
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cxxflags
680 aros_debug_cflags
681 aros_debug_cppflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_cppflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cxxflags
691 aros_config_cflags
692 aros_config_cppflags
693 aros_nowarn_flags
694 aros_warn_flags
695 aros_shared_ldflags
696 aros_shared_aflags
697 aros_shared_cflags
698 aros_cxx_libs
699 aros_c_libs
700 spec_obj_format
701 aros_object_format
702 aros_shared_ld
703 aros_shared_default
704 aros_target_nm
705 aros_target_strip
706 aros_target_objcopy
707 aros_target_objdump
708 aros_target_cc_path
709 aros_target_cc_includes
710 aros_target_ld
711 aros_target_as
712 aros_target_cpp
713 aros_target_cxx
714 aros_target_cc
715 aros_plain_ar
716 aros_plain_nm
717 aros_target_ranlib
718 aros_target_ar
719 aros_target_suffix
720 aros_target_variant
721 aros_target_cpu_mode
722 aros_target_cpu
723 aros_target_family
724 aros_target_arch
725 aros_target_bootloader
726 aros_target_iconset
727 aros_target_guitheme
728 aros_target_options
729 target_extra_cfg
730 make_extra_targetcfg
731 make_extra_commands
732 aros_elf_translate
733 aros_tools_dir
734 aros_host_lib_suffix
735 aros_host_exe_suffix
736 aros_host_mkargs
737 aros_host_mkdep
738 aros_host_debug
739 aros_host_ldflags
740 gnu89_inline
741 aros_host_cxxflags
742 aros_host_cflags
743 aros_host_cppflags
744 aros_host_make
745 aros_host_ar
746 aros_host_cxx
747 aros_host_cc
748 aros_host_def_cc
749 aros_host_cpp
750 aros_host_cpu
751 aros_host_arch
752 aros_cc_pre
753 host_extra_cfg
754 ax_cv_flex_version
755 host_stat_h__unused_used
756 aros_amigaos_compliance
757 AROS_PORTSSRCDIR
758 AROS_CROSSTOOLSDIR
759 SRCDIR
760 AROS_BUILDDIR_UNIX
761 AROS_BUILDDIR
762 aros_build_host
763 aros_toolchain_ld
764 aros_target_toolchain
765 aros_flavour_uc
766 aros_flavour
767 aros_cpu
768 aros_arch
769 SDL_LIBS
770 SDL_CFLAGS
771 SDL_CONFIG
772 XMKMF
773 kernel_cflags_iquote_end
774 kernel_cflags_iquote
775 host_cflags_iquote_end
776 host_cflags_iquote
777 aros_toolchain
778 aros_target_nostdlib_ldflags
779 aros_target_detach_ldflags
780 aros_target_nix_ldflags
781 aros_target_nostartup_ldflags
782 aros_target_nostdinc_cflags
783 aros_kernel_rescomp
784 orig_target_objdump
785 orig_target_objcopy
786 orig_target_strip
787 orig_target_nm
788 orig_target_ranlib
789 orig_target_ar
790 orig_target_as
791 orig_target_ld
792 orig_target_cxx
793 orig_target_cc
794 orig_target_cpp
795 aros_kernel_objdump
796 aros_kernel_objcopy
797 aros_kernel_strip
798 aros_kernel_nm
799 aros_kernel_ranlib
800 aros_kernel_ar
801 aros_kernel_as
802 aros_kernel_ld
803 aros_kernel_cxx
804 aros_kernel_cc
805 aros_kernel_cpp
806 target_gcc_version
808 android_tool
809 CCACHE
810 DISTCC
811 LIBOBJS
812 EGREP
813 GREP
815 TEST
818 libpng_incdir
819 libpng_libextra
820 libpng
821 arosconfig_use_libpngconfig
822 pkgpyexecdir
823 pyexecdir
824 pkgpythondir
825 pythondir
826 PYTHON_PLATFORM
827 PYTHON_EXEC_PREFIX
828 PYTHON_PREFIX
829 PYTHON_VERSION
830 PYTHON
831 PATCH
832 CHMOD
834 PPMTOILBM
835 PNGTOPNM
836 FLEX
837 BISON
840 UNIQ
841 SORT
842 TOUCH
843 MKDIR
844 ECHO
848 aros_host_strip
849 aros_host_ranlib
850 aros_host_full_ar
851 aros_host_cmd_ar
852 aros_host_automake
853 aros_host_autoheader
854 aros_host_autoconf
855 aros_host_aclocal
856 aros_host_ld
857 MMAKE
860 ac_ct_CC
861 CFLAGS
863 OBJEXT
864 EXEEXT
865 ac_ct_CXX
866 CPPFLAGS
867 LDFLAGS
868 CXXFLAGS
870 host_os
871 host_vendor
872 host_cpu
873 host
874 build_os
875 build_vendor
876 build_cpu
877 build
878 target_alias
879 host_alias
880 build_alias
881 LIBS
882 ECHO_T
883 ECHO_N
884 ECHO_C
885 DEFS
886 mandir
887 localedir
888 libdir
889 psdir
890 pdfdir
891 dvidir
892 htmldir
893 infodir
894 docdir
895 oldincludedir
896 includedir
897 runstatedir
898 localstatedir
899 sharedstatedir
900 sysconfdir
901 datadir
902 datarootdir
903 libexecdir
904 sbindir
905 bindir
906 program_transform_name
907 prefix
908 exec_prefix
909 PACKAGE_URL
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 with_c_compiler
921 with_cxx_compiler
922 enable_libpng_config
923 with_toolchain
924 enable_lto
925 enable_coverage
926 enable_build_type
927 enable_debug
928 enable_distcc
929 enable_ccache
930 with_kernel_gcc_version
931 with_optimization
932 with_paranoia
933 enable_target_variant
934 with_xcode
935 with_sdk_version
936 with_sdk
937 with_ndk
938 with_ndk_version
939 with_apk_version
940 enable_amigaos_compliance
941 with_kernel_toolchain_prefix
942 with_elf_toolchain_prefix
943 with_aros_toolchain
944 enable_crosstools
945 with_aros_toolchain_install
946 with_binutils_version
947 with_gcc_version
948 enable_objc
949 enable_java
950 with_cpu
951 with_fpu
952 with_float
953 with_portssources
954 with_bootloader
955 with_iconset
956 with_theme
957 enable_includes
958 with_resolution
959 with_serial_debug
960 enable_palm_debug_hack
961 enable_usb30_code
962 enable_nesting_supervisor
963 enable_mmu
964 enable_x11_hidd
965 with_x
966 enable_x11_shm
967 enable_x11_vidmode
968 enable_sdl_hidd
969 with_sdl_prefix
970 with_sdl_exec_prefix
971 enable_sdltest
972 enable_dbus
974 ac_precious_vars='build_alias
975 host_alias
976 target_alias
978 CXXFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
984 CFLAGS
986 PYTHON
987 XMKMF'
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 runstatedir='${localstatedir}/run'
1027 includedir='${prefix}/include'
1028 oldincludedir='/usr/include'
1029 docdir='${datarootdir}/doc/${PACKAGE}'
1030 infodir='${datarootdir}/info'
1031 htmldir='${docdir}'
1032 dvidir='${docdir}'
1033 pdfdir='${docdir}'
1034 psdir='${docdir}'
1035 libdir='${exec_prefix}/lib'
1036 localedir='${datarootdir}/locale'
1037 mandir='${datarootdir}/man'
1039 ac_prev=
1040 ac_dashdash=
1041 for ac_option
1043 # If the previous option needs an argument, assign it.
1044 if test -n "$ac_prev"; then
1045 eval $ac_prev=\$ac_option
1046 ac_prev=
1047 continue
1050 case $ac_option in
1051 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 *=) ac_optarg= ;;
1053 *) ac_optarg=yes ;;
1054 esac
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1058 case $ac_dashdash$ac_option in
1060 ac_dashdash=yes ;;
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 ac_prev=bindir ;;
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1082 -datadir | --datadir | --datadi | --datad)
1083 ac_prev=datadir ;;
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid feature name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=no ;;
1110 -docdir | --docdir | --docdi | --doc | --do)
1111 ac_prev=docdir ;;
1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113 docdir=$ac_optarg ;;
1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 ac_prev=dvidir ;;
1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118 dvidir=$ac_optarg ;;
1120 -enable-* | --enable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval enable_$ac_useropt=\$ac_optarg ;;
1136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138 | --exec | --exe | --ex)
1139 ac_prev=exec_prefix ;;
1140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142 | --exec=* | --exe=* | --ex=*)
1143 exec_prefix=$ac_optarg ;;
1145 -gas | --gas | --ga | --g)
1146 # Obsolete; use --with-gas.
1147 with_gas=yes ;;
1149 -help | --help | --hel | --he | -h)
1150 ac_init_help=long ;;
1151 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152 ac_init_help=recursive ;;
1153 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154 ac_init_help=short ;;
1156 -host | --host | --hos | --ho)
1157 ac_prev=host_alias ;;
1158 -host=* | --host=* | --hos=* | --ho=*)
1159 host_alias=$ac_optarg ;;
1161 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162 ac_prev=htmldir ;;
1163 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164 | --ht=*)
1165 htmldir=$ac_optarg ;;
1167 -includedir | --includedir | --includedi | --included | --include \
1168 | --includ | --inclu | --incl | --inc)
1169 ac_prev=includedir ;;
1170 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171 | --includ=* | --inclu=* | --incl=* | --inc=*)
1172 includedir=$ac_optarg ;;
1174 -infodir | --infodir | --infodi | --infod | --info | --inf)
1175 ac_prev=infodir ;;
1176 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177 infodir=$ac_optarg ;;
1179 -libdir | --libdir | --libdi | --libd)
1180 ac_prev=libdir ;;
1181 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182 libdir=$ac_optarg ;;
1184 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185 | --libexe | --libex | --libe)
1186 ac_prev=libexecdir ;;
1187 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188 | --libexe=* | --libex=* | --libe=*)
1189 libexecdir=$ac_optarg ;;
1191 -localedir | --localedir | --localedi | --localed | --locale)
1192 ac_prev=localedir ;;
1193 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194 localedir=$ac_optarg ;;
1196 -localstatedir | --localstatedir | --localstatedi | --localstated \
1197 | --localstate | --localstat | --localsta | --localst | --locals)
1198 ac_prev=localstatedir ;;
1199 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201 localstatedir=$ac_optarg ;;
1203 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204 ac_prev=mandir ;;
1205 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206 mandir=$ac_optarg ;;
1208 -nfp | --nfp | --nf)
1209 # Obsolete; use --without-fp.
1210 with_fp=no ;;
1212 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213 | --no-cr | --no-c | -n)
1214 no_create=yes ;;
1216 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218 no_recursion=yes ;;
1220 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222 | --oldin | --oldi | --old | --ol | --o)
1223 ac_prev=oldincludedir ;;
1224 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227 oldincludedir=$ac_optarg ;;
1229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230 ac_prev=prefix ;;
1231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232 prefix=$ac_optarg ;;
1234 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235 | --program-pre | --program-pr | --program-p)
1236 ac_prev=program_prefix ;;
1237 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239 program_prefix=$ac_optarg ;;
1241 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242 | --program-suf | --program-su | --program-s)
1243 ac_prev=program_suffix ;;
1244 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246 program_suffix=$ac_optarg ;;
1248 -program-transform-name | --program-transform-name \
1249 | --program-transform-nam | --program-transform-na \
1250 | --program-transform-n | --program-transform- \
1251 | --program-transform | --program-transfor \
1252 | --program-transfo | --program-transf \
1253 | --program-trans | --program-tran \
1254 | --progr-tra | --program-tr | --program-t)
1255 ac_prev=program_transform_name ;;
1256 -program-transform-name=* | --program-transform-name=* \
1257 | --program-transform-nam=* | --program-transform-na=* \
1258 | --program-transform-n=* | --program-transform-=* \
1259 | --program-transform=* | --program-transfor=* \
1260 | --program-transfo=* | --program-transf=* \
1261 | --program-trans=* | --program-tran=* \
1262 | --progr-tra=* | --program-tr=* | --program-t=*)
1263 program_transform_name=$ac_optarg ;;
1265 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266 ac_prev=pdfdir ;;
1267 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268 pdfdir=$ac_optarg ;;
1270 -psdir | --psdir | --psdi | --psd | --ps)
1271 ac_prev=psdir ;;
1272 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273 psdir=$ac_optarg ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 silent=yes ;;
1279 -runstatedir | --runstatedir | --runstatedi | --runstated \
1280 | --runstate | --runstat | --runsta | --runst | --runs \
1281 | --run | --ru | --r)
1282 ac_prev=runstatedir ;;
1283 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1284 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1285 | --run=* | --ru=* | --r=*)
1286 runstatedir=$ac_optarg ;;
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 ac_prev=sbindir ;;
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 | --sbi=* | --sb=*)
1292 sbindir=$ac_optarg ;;
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1297 | --sha | --sh)
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 | --sha=* | --sh=*)
1303 sharedstatedir=$ac_optarg ;;
1305 -site | --site | --sit)
1306 ac_prev=site ;;
1307 -site=* | --site=* | --sit=*)
1308 site=$ac_optarg ;;
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 ac_prev=srcdir ;;
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328 verbose=yes ;;
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1333 -with-* | --with-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error $? "invalid package name: $ac_useropt"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1342 "with_$ac_useropt"
1343 "*) ;;
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1346 esac
1347 eval with_$ac_useropt=\$ac_optarg ;;
1349 -without-* | --without-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error $? "invalid package name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1358 "with_$ac_useropt"
1359 "*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval with_$ac_useropt=no ;;
1365 --x)
1366 # Obsolete; use --with-x.
1367 with_x=yes ;;
1369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370 | --x-incl | --x-inc | --x-in | --x-i)
1371 ac_prev=x_includes ;;
1372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374 x_includes=$ac_optarg ;;
1376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378 ac_prev=x_libraries ;;
1379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381 x_libraries=$ac_optarg ;;
1383 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1384 Try \`$0 --help' for more information"
1387 *=*)
1388 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1389 # Reject names that are not valid shell variable names.
1390 case $ac_envvar in #(
1391 '' | [0-9]* | *[!_$as_cr_alnum]* )
1392 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1393 esac
1394 eval $ac_envvar=\$ac_optarg
1395 export $ac_envvar ;;
1398 # FIXME: should be removed in autoconf 3.0.
1399 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1405 esac
1406 done
1408 if test -n "$ac_prev"; then
1409 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410 as_fn_error $? "missing argument to $ac_option"
1413 if test -n "$ac_unrecognized_opts"; then
1414 case $enable_option_checking in
1415 no) ;;
1416 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1417 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418 esac
1421 # Check all directory arguments for consistency.
1422 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423 datadir sysconfdir sharedstatedir localstatedir includedir \
1424 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425 libdir localedir mandir runstatedir
1427 eval ac_val=\$$ac_var
1428 # Remove trailing slashes.
1429 case $ac_val in
1430 */ )
1431 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432 eval $ac_var=\$ac_val;;
1433 esac
1434 # Be sure to have absolute directory names.
1435 case $ac_val in
1436 [\\/$]* | ?:[\\/]* ) continue;;
1437 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438 esac
1439 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1440 done
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1445 build=$build_alias
1446 host=$host_alias
1447 target=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451 if test "x$build_alias" = x; then
1452 cross_compiling=maybe
1453 elif test "x$build_alias" != "x$host_alias"; then
1454 cross_compiling=yes
1458 ac_tool_prefix=
1459 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461 test "$silent" = yes && exec 6>/dev/null
1464 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di=`ls -di .` &&
1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467 as_fn_error $? "working directory cannot be determined"
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469 as_fn_error $? "pwd does not report name of working directory"
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474 ac_srcdir_defaulted=yes
1475 # Try the directory containing this script, then the parent directory.
1476 ac_confdir=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478 X"$as_myself" : 'X\(//\)[^/]' \| \
1479 X"$as_myself" : 'X\(//\)$' \| \
1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483 s//\1/
1486 /^X\(\/\/\)[^/].*/{
1487 s//\1/
1490 /^X\(\/\/\)$/{
1491 s//\1/
1494 /^X\(\/\).*/{
1495 s//\1/
1498 s/.*/./; q'`
1499 srcdir=$ac_confdir
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 srcdir=..
1503 else
1504 ac_srcdir_defaulted=no
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1508 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1510 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511 ac_abs_confdir=`(
1512 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1513 pwd)`
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1516 srcdir=.
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1521 case $srcdir in
1522 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523 esac
1524 for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529 done
1532 # Report the --help message.
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1537 cat <<_ACEOF
1538 \`configure' configures this package to adapt to many kinds of systems.
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1545 Defaults for the options are specified in brackets.
1547 Configuration:
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking ...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562 [PREFIX]
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1569 For better control, use the options below.
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1592 _ACEOF
1594 cat <<\_ACEOF
1596 X features:
1597 --x-includes=DIR X include files are in DIR
1598 --x-libraries=DIR X library files are in DIR
1600 System types:
1601 --build=BUILD configure for building on BUILD [guessed]
1602 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1603 _ACEOF
1606 if test -n "$ac_init_help"; then
1608 cat <<\_ACEOF
1610 Optional Features:
1611 --disable-option-checking ignore unrecognized --enable/--with options
1612 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1614 --disable-libpng-config disable libpng-config test and configuration
1615 --enable-lto=yes|no Enable link time optimizations if the target
1616 compiler supports them (default=no)
1617 --enable-coverage=yes|no
1618 Enable coverage instrumentation if the target
1619 compiler supports it (default=no)
1620 --enable-build-type=TYPE
1621 Select the build type. Available types are:
1622 personal, nightly, snapshot, milestone, release. Do
1623 NOT use this option unless you know what you are
1624 doing! (default=personal)
1625 --enable-debug=list Enable different types of debug. Commas or
1626 whitespaces can be used to separate the items in the
1627 list. Available types of debug are: all, none,
1628 messages, stack, mungwall, modules, symbols. If no
1629 list is provided then "all" is assumed.
1630 (default=none)
1631 --enable-distcc Use distcc as a front end to the compiler
1632 (default=no).
1633 --enable-ccache Use ccache as a front end to the compiler
1634 (default=no).
1635 --enable-target-variant=NAME
1636 Enable a specific target variant (default=none)
1637 --enable-amigaos-compliance=VERSION
1638 Enforce userspace AmigaOS compliance to a specific
1639 KickStart version (default=none).
1640 --disable-crosstools Do not build cross-compiler toolchain
1641 --enable-objc Enable Objectve-C support (default=no)
1642 --enable-java Enable Java support (default=no)
1643 --enable-includes=dir Alternative system include directory
1644 --enable-palm-debug-hack
1645 Enable palm debug output hack in palm native
1646 (default=no)
1647 --enable-usb30-code Enable usb3.0 code (default=no)
1648 --enable-nesting-supervisor
1649 Enable nesting supervisor support in unix
1650 (default=no)
1651 --disable-mmu Disable MMU support (default=enabled)
1652 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1653 --enable-x11-shm use X11 shared memory (default=auto)
1654 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1655 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1656 --disable-sdltest Do not try to compile and run a test SDL program
1657 --enable-dbus Enable DBUS support via dbus.library (default=no)
1659 Optional Packages:
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-c-compiler=VERSION
1663 Use specified c compiler for building AROS
1664 --with-cxx-compiler=VERSION
1665 Use specified c++ compiler building AROS
1666 --with-toolchain=family Which toolchain family to crosscompile with
1667 (defaults to gnu)
1668 --with-kernel-gcc-version=VERSION
1669 Use gcc-VERSION for building bootstrap
1670 --with-optimization=FLAGS
1671 Use optimization flags FLAGS (e.g
1672 --with-optimization=-O2).
1673 --with-paranoia=(yes|no|FLAGS)
1674 Specific compiler warning FLAGS to enable for
1675 paranoia builds (default=-Wall -Werror)
1676 --with-xcode=PATH Specify XCode path for iOS targets
1677 (default=/Developer).
1678 --with-sdk-version=VERSION
1679 Use iOS SDK version VERSION (default=4.1).
1680 --with-sdk=PATH Specify Android SDK path
1681 (default=$default_android_sdk).
1682 --with-ndk=PATH Specify Android NDK path (default=none).
1683 --with-sdk-version=LEVEL
1684 Use Android SDK for API LEVEL (default=12).
1685 --with-ndk-version=LEVEL
1686 Use Android NDK for API LEVEL (default=9).
1687 --with-apk-version=(release|debug)
1688 Which version of AROSBootstrap.apk to compile.
1689 Release version needs key for signing, debug version
1690 will only run in emulator. (default=release)
1691 --with-kernel-toolchain-prefix=...
1692 Specify crosscompile toolchain prefix for kernel
1693 objects
1694 --with-elf-toolchain-prefix=...
1695 Specify crosscompile toolchain prefix to wrap for
1696 AROS objects
1697 --with-aros-toolchain=PREFIX
1698 Specify prebuilt AROS toolchain. Use yes for default
1699 name
1700 --with-aros-toolchain-install=DIR
1701 Where to install or search for cross tools binaries
1702 --with-binutils-version=VERSION
1703 Use binutils-VERSION for building AROS
1704 --with-gcc-version=VERSION
1705 Compile gcc-VERSION for AROS
1706 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1707 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1708 --with-float=<spec> Specify floating point ABI
1709 (default=$gcc_default_float_abi).
1710 --with-portssources=DIR Where to download sourcecode for external ports
1711 --with-bootloader=NAME Use a specific bootloader
1712 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1713 --with-theme=NAME Use a specific GUI Theme
1714 --with-resolution=XRESxYRESxDEPTH
1715 Default resolution of the initial WorkbenchScreen
1716 --with-serial-debug Enable serial debug output in native (default=no)
1717 --with-x use the X Window System
1718 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1719 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1721 Some influential environment variables:
1722 CXX C++ compiler command
1723 CXXFLAGS C++ compiler flags
1724 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1725 nonstandard directory <lib dir>
1726 LIBS libraries to pass to the linker, e.g. -l<library>
1727 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1728 you have headers in a nonstandard directory <include dir>
1729 CC C compiler command
1730 CFLAGS C compiler flags
1731 CPP C preprocessor
1732 PYTHON the Python interpreter
1733 XMKMF Path to xmkmf, Makefile generator for X Window System
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.69
1804 Copyright (C) 2012 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_cxx_try_compile
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } > conftest.i && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_cpp
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 test -x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1972 } # ac_fn_c_try_link
1974 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1975 # -------------------------------------------------------
1976 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1977 # the include files in INCLUDES and setting the cache variable VAR
1978 # accordingly.
1979 ac_fn_c_check_header_mongrel ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if eval \${$3+:} false; then :
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 else
1992 # Is the header compilable?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1994 $as_echo_n "checking $2 usability... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_header_compiler=yes
2002 else
2003 ac_header_compiler=no
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2007 $as_echo "$ac_header_compiler" >&6; }
2009 # Is the header present?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2011 $as_echo_n "checking $2 presence... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 #include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_cpp "$LINENO"; then :
2017 ac_header_preproc=yes
2018 else
2019 ac_header_preproc=no
2021 rm -f conftest.err conftest.i conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2023 $as_echo "$ac_header_preproc" >&6; }
2025 # So? What about this header?
2026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2027 yes:no: )
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2029 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 no:yes:* )
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2035 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2037 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2039 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2041 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 esac
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 eval "$3=\$ac_header_compiler"
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_header_mongrel
2061 # ac_fn_c_try_run LINENO
2062 # ----------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2064 # that executables *can* be run.
2065 ac_fn_c_try_run ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if { { ac_try="$ac_link"
2069 case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>&5
2076 ac_status=$?
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2079 { { case "(($ac_try" in
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2082 esac
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 $as_echo "$ac_try_echo"; } >&5
2085 (eval "$ac_try") 2>&5
2086 ac_status=$?
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; }; }; then :
2089 ac_retval=0
2090 else
2091 $as_echo "$as_me: program exited with status $ac_status" >&5
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_retval=$ac_status
2097 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_c_try_run
2103 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2104 # -------------------------------------------------------
2105 # Tests whether HEADER exists and can be compiled using the include files in
2106 # INCLUDES, setting the cache variable VAR accordingly.
2107 ac_fn_c_check_header_compile ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2118 #include <$2>
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$3=yes"
2122 else
2123 eval "$3=no"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_header_compile
2134 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2135 # ----------------------------------------------------
2136 # Tries to find if the field MEMBER exists in type AGGR, after including
2137 # INCLUDES, setting cache variable VAR accordingly.
2138 ac_fn_c_check_member ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2142 $as_echo_n "checking for $2.$3... " >&6; }
2143 if eval \${$4+:} false; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2150 main ()
2152 static $2 ac_aggr;
2153 if (ac_aggr.$3)
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 eval "$4=yes"
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static $2 ac_aggr;
2169 if (sizeof ac_aggr.$3)
2170 return 0;
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 eval "$4=yes"
2177 else
2178 eval "$4=no"
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 eval ac_res=\$$4
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_c_check_member
2191 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2192 # ---------------------------------------------
2193 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2194 # accordingly.
2195 ac_fn_c_check_decl ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 as_decl_name=`echo $2|sed 's/ *(.*//'`
2199 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2201 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2209 main ()
2211 #ifndef $as_decl_name
2212 #ifdef __cplusplus
2213 (void) $as_decl_use;
2214 #else
2215 (void) $as_decl_name;
2216 #endif
2217 #endif
2220 return 0;
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 eval "$3=yes"
2225 else
2226 eval "$3=no"
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_decl
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2291 # ac_fn_c_check_func LINENO FUNC VAR
2292 # ----------------------------------
2293 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2294 ac_fn_c_check_func ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298 $as_echo_n "checking for $2... " >&6; }
2299 if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2306 #define $2 innocuous_$2
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $2 (); below.
2310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2311 <limits.h> exists even on freestanding compilers. */
2313 #ifdef __STDC__
2314 # include <limits.h>
2315 #else
2316 # include <assert.h>
2317 #endif
2319 #undef $2
2321 /* Override any GCC internal prototype to avoid an error.
2322 Use char because int might match the return type of a GCC
2323 builtin and then its argument prototype would still apply. */
2324 #ifdef __cplusplus
2325 extern "C"
2326 #endif
2327 char $2 ();
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined __stub_$2 || defined __stub___$2
2332 choke me
2333 #endif
2336 main ()
2338 return $2 ();
2340 return 0;
2342 _ACEOF
2343 if ac_fn_c_try_link "$LINENO"; then :
2344 eval "$3=yes"
2345 else
2346 eval "$3=no"
2348 rm -f core conftest.err conftest.$ac_objext \
2349 conftest$ac_exeext conftest.$ac_ext
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356 } # ac_fn_c_check_func
2357 cat >config.log <<_ACEOF
2358 This file contains any messages produced by compilers while
2359 running configure, to aid debugging if configure makes a mistake.
2361 It was created by $as_me, which was
2362 generated by GNU Autoconf 2.69. Invocation command line was
2364 $ $0 $@
2366 _ACEOF
2367 exec 5>>config.log
2369 cat <<_ASUNAME
2370 ## --------- ##
2371 ## Platform. ##
2372 ## --------- ##
2374 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2375 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2376 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2377 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2378 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2380 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2381 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2383 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2384 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2385 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2386 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2387 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2388 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2389 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2391 _ASUNAME
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 $as_echo "PATH: $as_dir"
2399 done
2400 IFS=$as_save_IFS
2402 } >&5
2404 cat >&5 <<_ACEOF
2407 ## ----------- ##
2408 ## Core tests. ##
2409 ## ----------- ##
2411 _ACEOF
2414 # Keep a trace of the command line.
2415 # Strip out --no-create and --no-recursion so they do not pile up.
2416 # Strip out --silent because we don't want to record it for future runs.
2417 # Also quote any args containing shell meta-characters.
2418 # Make two passes to allow for proper duplicate-argument suppression.
2419 ac_configure_args=
2420 ac_configure_args0=
2421 ac_configure_args1=
2422 ac_must_keep_next=false
2423 for ac_pass in 1 2
2425 for ac_arg
2427 case $ac_arg in
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2431 continue ;;
2432 *\'*)
2433 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 esac
2435 case $ac_pass in
2436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2438 as_fn_append ac_configure_args1 " '$ac_arg'"
2439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2441 else
2442 case $ac_arg in
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 esac
2451 -* ) ac_must_keep_next=true ;;
2452 esac
2454 as_fn_append ac_configure_args " '$ac_arg'"
2456 esac
2457 done
2458 done
2459 { ac_configure_args0=; unset ac_configure_args0;}
2460 { ac_configure_args1=; unset ac_configure_args1;}
2462 # When interrupted or exit'd, cleanup temporary files, and complete
2463 # config.log. We remove comments because anyway the quotes in there
2464 # would cause problems or look ugly.
2465 # WARNING: Use '\'' to represent an apostrophe within the trap.
2466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467 trap 'exit_status=$?
2468 # Save into config.log some information that might help in debugging.
2470 echo
2472 $as_echo "## ---------------- ##
2473 ## Cache variables. ##
2474 ## ---------------- ##"
2475 echo
2476 # The following way of writing the cache mishandles newlines in values,
2478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in #(
2481 *${as_nl}*)
2482 case $ac_var in #(
2483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 esac
2486 case $ac_var in #(
2487 _ | IFS | as_nl) ;; #(
2488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489 *) { eval $ac_var=; unset $ac_var;} ;;
2490 esac ;;
2491 esac
2492 done
2493 (set) 2>&1 |
2494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
2496 sed -n \
2497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 ;; #(
2501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2503 esac |
2504 sort
2506 echo
2508 $as_echo "## ----------------- ##
2509 ## Output variables. ##
2510 ## ----------------- ##"
2511 echo
2512 for ac_var in $ac_subst_vars
2514 eval ac_val=\$$ac_var
2515 case $ac_val in
2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 esac
2518 $as_echo "$ac_var='\''$ac_val'\''"
2519 done | sort
2520 echo
2522 if test -n "$ac_subst_files"; then
2523 $as_echo "## ------------------- ##
2524 ## File substitutions. ##
2525 ## ------------------- ##"
2526 echo
2527 for ac_var in $ac_subst_files
2529 eval ac_val=\$$ac_var
2530 case $ac_val in
2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 esac
2533 $as_echo "$ac_var='\''$ac_val'\''"
2534 done | sort
2535 echo
2538 if test -s confdefs.h; then
2539 $as_echo "## ----------- ##
2540 ## confdefs.h. ##
2541 ## ----------- ##"
2542 echo
2543 cat confdefs.h
2544 echo
2546 test "$ac_signal" != 0 &&
2547 $as_echo "$as_me: caught signal $ac_signal"
2548 $as_echo "$as_me: exit $exit_status"
2549 } >&5
2550 rm -f core *.core core.conftest.* &&
2551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552 exit $exit_status
2554 for ac_signal in 1 2 13 15; do
2555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556 done
2557 ac_signal=0
2559 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2560 rm -f -r conftest* confdefs.h
2562 $as_echo "/* confdefs.h */" > confdefs.h
2564 # Predefined preprocessor variables.
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_NAME "$PACKAGE_NAME"
2568 _ACEOF
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572 _ACEOF
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2576 _ACEOF
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_STRING "$PACKAGE_STRING"
2580 _ACEOF
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584 _ACEOF
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_URL "$PACKAGE_URL"
2588 _ACEOF
2591 # Let the site file select an alternate cache file if it wants to.
2592 # Prefer an explicitly selected file to automatically selected ones.
2593 ac_site_file1=NONE
2594 ac_site_file2=NONE
2595 if test -n "$CONFIG_SITE"; then
2596 # We do not want a PATH search for config.site.
2597 case $CONFIG_SITE in #((
2598 -*) ac_site_file1=./$CONFIG_SITE;;
2599 */*) ac_site_file1=$CONFIG_SITE;;
2600 *) ac_site_file1=./$CONFIG_SITE;;
2601 esac
2602 elif test "x$prefix" != xNONE; then
2603 ac_site_file1=$prefix/share/config.site
2604 ac_site_file2=$prefix/etc/config.site
2605 else
2606 ac_site_file1=$ac_default_prefix/share/config.site
2607 ac_site_file2=$ac_default_prefix/etc/config.site
2609 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2611 test "x$ac_site_file" = xNONE && continue
2612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2615 sed 's/^/| /' "$ac_site_file" >&5
2616 . "$ac_site_file" \
2617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $? "failed to load site script $ac_site_file
2620 See \`config.log' for more details" "$LINENO" 5; }
2622 done
2624 if test -r "$cache_file"; then
2625 # Some versions of bash will fail to source /dev/null (special files
2626 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2629 $as_echo "$as_me: loading cache $cache_file" >&6;}
2630 case $cache_file in
2631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632 *) . "./$cache_file";;
2633 esac
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2637 $as_echo "$as_me: creating cache $cache_file" >&6;}
2638 >$cache_file
2641 as_fn_append ac_header_list " stdlib.h"
2642 as_fn_append ac_header_list " unistd.h"
2643 as_fn_append ac_header_list " sys/param.h"
2644 # Check that the precious variables saved in the cache have kept the same
2645 # value.
2646 ac_cache_corrupted=false
2647 for ac_var in $ac_precious_vars; do
2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
2652 case $ac_old_set,$ac_new_set in
2653 set,)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2655 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2657 ,set)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2661 ,);;
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
2664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x $ac_old_val`
2666 ac_new_val_w=`echo x $ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2670 ac_cache_corrupted=:
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2673 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2677 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2679 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2680 fi;;
2681 esac
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2684 case $ac_new_val in
2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2686 *) ac_arg=$ac_var=$ac_new_val ;;
2687 esac
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2691 esac
2693 done
2694 if $ac_cache_corrupted; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713 ac_aux_dir=
2714 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2715 if test -f "$ac_dir/install-sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 break
2719 elif test -f "$ac_dir/install.sh"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 break
2723 elif test -f "$ac_dir/shtool"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2726 break
2728 done
2729 if test -z "$ac_aux_dir"; then
2730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2743 # Check what host we are running on.
2744 # If a target is not suggested, we use this one.
2745 # Note that what we call a target, Autoconf calls a host.
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751 $as_echo_n "checking build system type... " >&6; }
2752 if ${ac_cv_build+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 ac_build_alias=$build_alias
2756 test "x$ac_build_alias" = x &&
2757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758 test "x$ac_build_alias" = x &&
2759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765 $as_echo "$ac_cv_build" >&6; }
2766 case $ac_cv_build in
2767 *-*-*) ;;
2768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2769 esac
2770 build=$ac_cv_build
2771 ac_save_IFS=$IFS; IFS='-'
2772 set x $ac_cv_build
2773 shift
2774 build_cpu=$1
2775 build_vendor=$2
2776 shift; shift
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2779 build_os=$*
2780 IFS=$ac_save_IFS
2781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785 $as_echo_n "checking host system type... " >&6; }
2786 if ${ac_cv_host+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test "x$host_alias" = x; then
2790 ac_cv_host=$ac_cv_build
2791 else
2792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798 $as_echo "$ac_cv_host" >&6; }
2799 case $ac_cv_host in
2800 *-*-*) ;;
2801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2802 esac
2803 host=$ac_cv_host
2804 ac_save_IFS=$IFS; IFS='-'
2805 set x $ac_cv_host
2806 shift
2807 host_cpu=$1
2808 host_vendor=$2
2809 shift; shift
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2812 host_os=$*
2813 IFS=$ac_save_IFS
2814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2818 # Default versions for the gnu tools we build
2819 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2820 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2821 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2822 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2823 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2824 default_grub2_version="2.02"
2825 target_grub2_version=$default_grub2_version
2827 # The AROS target is slightly different to the normal GNU style
2828 # format. We don't have the middle part, and we reverse the order
2829 # of the $(CPU) and $(OS) bits.
2831 # Don't strip the version of the target yet, it might be
2832 # useful on some systems.
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2835 $as_echo_n "checking for AROS style target... " >&6; }
2837 if test "$target" = "NONE" ; then
2838 target=$host_os-$host_cpu
2839 else
2840 if test "$target" = "" ; then
2841 target=$host_os-$host_cpu
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2845 $as_echo "$target" >&6; }
2847 if test "$host_os" = "mingw32" ; then
2848 PWDCMD="pwd -W"
2851 # Don't know where else to put this...
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2853 $as_echo_n "checking building AROS in... " >&6; }
2854 AROS_BUILDDIR=`${PWDCMD-pwd}`
2855 AROS_BUILDDIR_UNIX=${PWD}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2857 $as_echo "$AROS_BUILDDIR" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2860 $as_echo_n "checking AROS source in... " >&6; }
2861 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2862 SRCDIR=${srcpwd}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2864 $as_echo "$SRCDIR" >&6; }
2866 # Parse the target field into something useful.
2868 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2869 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2872 # Some debug output, to be removed again.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2874 $as_echo_n "checking for target system (debug output)... " >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2876 $as_echo "$target_os" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2878 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2880 $as_echo "$target_cpu" >&6; }
2882 aros_nominal_width=800
2883 aros_nominal_height=600
2884 aros_nominal_depth=4
2887 default_c_compilers="gcc clang cc"
2889 # Check whether --with-c-compiler was given.
2890 if test "${with_c_compiler+set}" = set; then :
2891 withval=$with_c_compiler; use_c_compiler="$withval"
2892 else
2893 use_c_compiler=""
2896 if test "$use_c_compiler" = ""; then
2897 host_c_compilers="$default_c_compilers"
2898 else
2899 host_c_compilers="$use_c_compiler"
2902 default_cxx_compilers="g++ clang++ c++"
2904 # Check whether --with-cxx-compiler was given.
2905 if test "${with_cxx_compiler+set}" = set; then :
2906 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2907 else
2908 use_cxx_compiler=""
2911 if test "$use_cxx_compiler" = ""; then
2912 host_cxx_compilers="$default_cxx_compilers"
2913 else
2914 host_cxx_compilers="$use_cxx_compiler"
2918 # The first step is to find the host binaries.
2919 # Check for a compiler.
2920 # Due to a bug in autoconf check for c++ compiler first.
2921 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2922 ac_ext=cpp
2923 ac_cpp='$CXXCPP $CPPFLAGS'
2924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2927 if test -z "$CXX"; then
2928 if test -n "$CCC"; then
2929 CXX=$CCC
2930 else
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in ${host_cxx_compilers}
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CXX+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CXX"; then
2942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 CXX=$ac_cv_prog_CXX
2962 if test -n "$CXX"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2964 $as_echo "$CXX" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$CXX" && break
2972 done
2974 if test -z "$CXX"; then
2975 ac_ct_CXX=$CXX
2976 for ac_prog in ${host_cxx_compilers}
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_CXX"; then
2986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CXX="$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3006 if test -n "$ac_ct_CXX"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3008 $as_echo "$ac_ct_CXX" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$ac_ct_CXX" && break
3016 done
3018 if test "x$ac_ct_CXX" = x; then
3019 CXX="g++"
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027 CXX=$ac_ct_CXX
3033 # Provide some information about the compiler.
3034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3035 set X $ac_compile
3036 ac_compiler=$2
3037 for ac_option in --version -v -V -qversion; do
3038 { { ac_try="$ac_compiler $ac_option >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3046 ac_status=$?
3047 if test -s conftest.err; then
3048 sed '10a\
3049 ... rest of stderr output deleted ...
3050 10q' conftest.err >conftest.er1
3051 cat conftest.er1 >&5
3053 rm -f conftest.er1 conftest.err
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }
3056 done
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3062 main ()
3066 return 0;
3068 _ACEOF
3069 ac_clean_files_save=$ac_clean_files
3070 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3071 # Try to create an executable without -o first, disregard a.out.
3072 # It will help us diagnose broken compilers, and finding out an intuition
3073 # of exeext.
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3075 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3076 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078 # The possible output files:
3079 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081 ac_rmfiles=
3082 for ac_file in $ac_files
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087 esac
3088 done
3089 rm -f $ac_rmfiles
3091 if { { ac_try="$ac_link_default"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098 (eval "$ac_link_default") 2>&5
3099 ac_status=$?
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }; then :
3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3103 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3104 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3105 # so that the user can short-circuit this test for compilers unknown to
3106 # Autoconf.
3107 for ac_file in $ac_files ''
3109 test -f "$ac_file" || continue
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113 [ab].out )
3114 # We found the default executable, but exeext='' is most
3115 # certainly right.
3116 break;;
3117 *.* )
3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3119 then :; else
3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 # We set ac_cv_exeext here because the later test for it is not
3123 # safe: cross compilers may not add the suffix if given an `-o'
3124 # argument, so we may need to know it at that point already.
3125 # Even if this section looks crufty: it has the advantage of
3126 # actually working.
3127 break;;
3129 break;;
3130 esac
3131 done
3132 test "$ac_cv_exeext" = no && ac_cv_exeext=
3134 else
3135 ac_file=''
3137 if test -z "$ac_file"; then :
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error 77 "C++ compiler cannot create executables
3146 See \`config.log' for more details" "$LINENO" 5; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149 $as_echo "yes" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3152 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154 $as_echo "$ac_file" >&6; }
3155 ac_exeext=$ac_cv_exeext
3157 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3158 ac_clean_files=$ac_clean_files_save
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3160 $as_echo_n "checking for suffix of executables... " >&6; }
3161 if { { ac_try="$ac_link"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3173 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3174 # work properly (i.e., refer to `conftest.exe'), while it won't with
3175 # `rm'.
3176 for ac_file in conftest.exe conftest conftest.*; do
3177 test -f "$ac_file" || continue
3178 case $ac_file in
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 break;;
3182 * ) break;;
3183 esac
3184 done
3185 else
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details" "$LINENO" 5; }
3191 rm -f conftest conftest$ac_cv_exeext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3193 $as_echo "$ac_cv_exeext" >&6; }
3195 rm -f conftest.$ac_ext
3196 EXEEXT=$ac_cv_exeext
3197 ac_exeext=$EXEEXT
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3200 #include <stdio.h>
3202 main ()
3204 FILE *f = fopen ("conftest.out", "w");
3205 return ferror (f) || fclose (f) != 0;
3208 return 0;
3210 _ACEOF
3211 ac_clean_files="$ac_clean_files conftest.out"
3212 # Check that the compiler produces executables we can run. If not, either
3213 # the compiler is broken, or we cross compile.
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3215 $as_echo_n "checking whether we are cross compiling... " >&6; }
3216 if test "$cross_compiling" != yes; then
3217 { { ac_try="$ac_link"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 if { ac_try='./conftest$ac_cv_exeext'
3229 { { case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_try") 2>&5
3236 ac_status=$?
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; }; then
3239 cross_compiling=no
3240 else
3241 if test "$cross_compiling" = maybe; then
3242 cross_compiling=yes
3243 else
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "cannot run C++ compiled programs.
3247 If you meant to cross compile, use \`--host'.
3248 See \`config.log' for more details" "$LINENO" 5; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3253 $as_echo "$cross_compiling" >&6; }
3255 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3258 $as_echo_n "checking for suffix of object files... " >&6; }
3259 if ${ac_cv_objext+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3270 return 0;
3272 _ACEOF
3273 rm -f conftest.o conftest.obj
3274 if { { ac_try="$ac_compile"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_compile") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 for ac_file in conftest.o conftest.obj conftest.*; do
3286 test -f "$ac_file" || continue;
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 break;;
3291 esac
3292 done
3293 else
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "cannot compute suffix of object files: cannot compile
3300 See \`config.log' for more details" "$LINENO" 5; }
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3305 $as_echo "$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3307 ac_objext=$OBJEXT
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3309 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3310 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3319 #ifndef __GNUC__
3320 choke me
3321 #endif
3324 return 0;
3326 _ACEOF
3327 if ac_fn_cxx_try_compile "$LINENO"; then :
3328 ac_compiler_gnu=yes
3329 else
3330 ac_compiler_gnu=no
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3337 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3338 if test $ac_compiler_gnu = yes; then
3339 GXX=yes
3340 else
3341 GXX=
3343 ac_test_CXXFLAGS=${CXXFLAGS+set}
3344 ac_save_CXXFLAGS=$CXXFLAGS
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3346 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3347 if ${ac_cv_prog_cxx_g+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3351 ac_cxx_werror_flag=yes
3352 ac_cv_prog_cxx_g=no
3353 CXXFLAGS="-g"
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3358 main ()
3362 return 0;
3364 _ACEOF
3365 if ac_fn_cxx_try_compile "$LINENO"; then :
3366 ac_cv_prog_cxx_g=yes
3367 else
3368 CXXFLAGS=""
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3373 main ()
3377 return 0;
3379 _ACEOF
3380 if ac_fn_cxx_try_compile "$LINENO"; then :
3382 else
3383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3384 CXXFLAGS="-g"
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3389 main ()
3393 return 0;
3395 _ACEOF
3396 if ac_fn_cxx_try_compile "$LINENO"; then :
3397 ac_cv_prog_cxx_g=yes
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3407 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3408 if test "$ac_test_CXXFLAGS" = set; then
3409 CXXFLAGS=$ac_save_CXXFLAGS
3410 elif test $ac_cv_prog_cxx_g = yes; then
3411 if test "$GXX" = yes; then
3412 CXXFLAGS="-g -O2"
3413 else
3414 CXXFLAGS="-g"
3416 else
3417 if test "$GXX" = yes; then
3418 CXXFLAGS="-O2"
3419 else
3420 CXXFLAGS=
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 CXX_BASE=$CXX
3430 # Extract the first word of "$CXX", so it can be a program name with args.
3431 set dummy $CXX; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_path_CXX+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 case $CXX in
3438 [\\/]* | ?:[\\/]*)
3439 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3453 done
3454 done
3455 IFS=$as_save_IFS
3458 esac
3460 CXX=$ac_cv_path_CXX
3461 if test -n "$CXX"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3463 $as_echo "$CXX" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 if test -n "$ac_tool_prefix"; then
3476 for ac_prog in ${host_c_compilers}
3478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$CC" && break
3516 done
3518 if test -z "$CC"; then
3519 ac_ct_CC=$CC
3520 for ac_prog in ${host_c_compilers}
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC="$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3559 test -n "$ac_ct_CC" && break
3560 done
3562 if test "x$ac_ct_CC" = x; then
3563 CC=""
3564 else
3565 case $cross_compiling:$ac_tool_warned in
3566 yes:)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3570 esac
3571 CC=$ac_ct_CC
3576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details" "$LINENO" 5; }
3581 # Provide some information about the compiler.
3582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3583 set X $ac_compile
3584 ac_compiler=$2
3585 for ac_option in --version -v -V -qversion; do
3586 { { ac_try="$ac_compiler $ac_option >&5"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3594 ac_status=$?
3595 if test -s conftest.err; then
3596 sed '10a\
3597 ... rest of stderr output deleted ...
3598 10q' conftest.err >conftest.er1
3599 cat conftest.er1 >&5
3601 rm -f conftest.er1 conftest.err
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3604 done
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3607 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3608 if ${ac_cv_c_compiler_gnu+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3615 main ()
3617 #ifndef __GNUC__
3618 choke me
3619 #endif
3622 return 0;
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_compiler_gnu=yes
3627 else
3628 ac_compiler_gnu=no
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3636 if test $ac_compiler_gnu = yes; then
3637 GCC=yes
3638 else
3639 GCC=
3641 ac_test_CFLAGS=${CFLAGS+set}
3642 ac_save_CFLAGS=$CFLAGS
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3645 if ${ac_cv_prog_cc_g+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 ac_save_c_werror_flag=$ac_c_werror_flag
3649 ac_c_werror_flag=yes
3650 ac_cv_prog_cc_g=no
3651 CFLAGS="-g"
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 main ()
3660 return 0;
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664 ac_cv_prog_cc_g=yes
3665 else
3666 CFLAGS=""
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3671 main ()
3675 return 0;
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3680 else
3681 ac_c_werror_flag=$ac_save_c_werror_flag
3682 CFLAGS="-g"
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_g=yes
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_c_werror_flag=$ac_save_c_werror_flag
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3705 $as_echo "$ac_cv_prog_cc_g" >&6; }
3706 if test "$ac_test_CFLAGS" = set; then
3707 CFLAGS=$ac_save_CFLAGS
3708 elif test $ac_cv_prog_cc_g = yes; then
3709 if test "$GCC" = yes; then
3710 CFLAGS="-g -O2"
3711 else
3712 CFLAGS="-g"
3714 else
3715 if test "$GCC" = yes; then
3716 CFLAGS="-O2"
3717 else
3718 CFLAGS=
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3723 if ${ac_cv_prog_cc_c89+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 ac_cv_prog_cc_c89=no
3727 ac_save_CC=$CC
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730 #include <stdarg.h>
3731 #include <stdio.h>
3732 struct stat;
3733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3734 struct buf { int x; };
3735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736 static char *e (p, i)
3737 char **p;
3738 int i;
3740 return p[i];
3742 static char *f (char * (*g) (char **, int), char **p, ...)
3744 char *s;
3745 va_list v;
3746 va_start (v,p);
3747 s = g (p, va_arg (v,int));
3748 va_end (v);
3749 return s;
3752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3753 function prototypes and stuff, but not '\xHH' hex character constants.
3754 These don't provoke an error unfortunately, instead are silently treated
3755 as 'x'. The following induces an error, until -std is added to get
3756 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3757 array size at least. It's necessary to write '\x00'==0 to get something
3758 that's true only with -std. */
3759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762 inside strings and character constants. */
3763 #define FOO(x) 'x'
3764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3766 int test (int i, double x);
3767 struct s1 {int (*f) (int a);};
3768 struct s2 {int (*f) (double a);};
3769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3770 int argc;
3771 char **argv;
3773 main ()
3775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3777 return 0;
3779 _ACEOF
3780 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3781 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3783 CC="$ac_save_CC $ac_arg"
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_c89=$ac_arg
3787 rm -f core conftest.err conftest.$ac_objext
3788 test "x$ac_cv_prog_cc_c89" != "xno" && break
3789 done
3790 rm -f conftest.$ac_ext
3791 CC=$ac_save_CC
3794 # AC_CACHE_VAL
3795 case "x$ac_cv_prog_cc_c89" in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798 $as_echo "none needed" >&6; } ;;
3799 xno)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 $as_echo "unsupported" >&6; } ;;
3803 CC="$CC $ac_cv_prog_cc_c89"
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3806 esac
3807 if test "x$ac_cv_prog_cc_c89" != xno; then :
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 CC_BASE=$CC
3818 # Extract the first word of "$CC", so it can be a program name with args.
3819 set dummy $CC; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_path_CC+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 case $CC in
3826 [\\/]* | ?:[\\/]*)
3827 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3841 done
3842 done
3843 IFS=$as_save_IFS
3846 esac
3848 CC=$ac_cv_path_CC
3849 if test -n "$CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851 $as_echo "$CC" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3858 aros_host_def_cc="$CC"
3859 case $ac_cv_prog_cc_stdc in #(
3860 no) :
3861 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3862 *) :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3864 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3865 if ${ac_cv_prog_cc_c99+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 ac_cv_prog_cc_c99=no
3869 ac_save_CC=$CC
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <stdarg.h>
3873 #include <stdbool.h>
3874 #include <stdlib.h>
3875 #include <wchar.h>
3876 #include <stdio.h>
3878 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3879 #define debug(...) fprintf (stderr, __VA_ARGS__)
3880 #define showlist(...) puts (#__VA_ARGS__)
3881 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3882 static void
3883 test_varargs_macros (void)
3885 int x = 1234;
3886 int y = 5678;
3887 debug ("Flag");
3888 debug ("X = %d\n", x);
3889 showlist (The first, second, and third items.);
3890 report (x>y, "x is %d but y is %d", x, y);
3893 // Check long long types.
3894 #define BIG64 18446744073709551615ull
3895 #define BIG32 4294967295ul
3896 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3897 #if !BIG_OK
3898 your preprocessor is broken;
3899 #endif
3900 #if BIG_OK
3901 #else
3902 your preprocessor is broken;
3903 #endif
3904 static long long int bignum = -9223372036854775807LL;
3905 static unsigned long long int ubignum = BIG64;
3907 struct incomplete_array
3909 int datasize;
3910 double data[];
3913 struct named_init {
3914 int number;
3915 const wchar_t *name;
3916 double average;
3919 typedef const char *ccp;
3921 static inline int
3922 test_restrict (ccp restrict text)
3924 // See if C++-style comments work.
3925 // Iterate through items via the restricted pointer.
3926 // Also check for declarations in for loops.
3927 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3928 continue;
3929 return 0;
3932 // Check varargs and va_copy.
3933 static void
3934 test_varargs (const char *format, ...)
3936 va_list args;
3937 va_start (args, format);
3938 va_list args_copy;
3939 va_copy (args_copy, args);
3941 const char *str;
3942 int number;
3943 float fnumber;
3945 while (*format)
3947 switch (*format++)
3949 case 's': // string
3950 str = va_arg (args_copy, const char *);
3951 break;
3952 case 'd': // int
3953 number = va_arg (args_copy, int);
3954 break;
3955 case 'f': // float
3956 fnumber = va_arg (args_copy, double);
3957 break;
3958 default:
3959 break;
3962 va_end (args_copy);
3963 va_end (args);
3967 main ()
3970 // Check bool.
3971 _Bool success = false;
3973 // Check restrict.
3974 if (test_restrict ("String literal") == 0)
3975 success = true;
3976 char *restrict newvar = "Another string";
3978 // Check varargs.
3979 test_varargs ("s, d' f .", "string", 65, 34.234);
3980 test_varargs_macros ();
3982 // Check flexible array members.
3983 struct incomplete_array *ia =
3984 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3985 ia->datasize = 10;
3986 for (int i = 0; i < ia->datasize; ++i)
3987 ia->data[i] = i * 1.234;
3989 // Check named initializers.
3990 struct named_init ni = {
3991 .number = 34,
3992 .name = L"Test wide string",
3993 .average = 543.34343,
3996 ni.number = 58;
3998 int dynamic_array[ni.number];
3999 dynamic_array[ni.number - 1] = 543;
4001 // work around unused variable warnings
4002 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4003 || dynamic_array[ni.number - 1] != 543);
4006 return 0;
4008 _ACEOF
4009 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4011 CC="$ac_save_CC $ac_arg"
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_prog_cc_c99=$ac_arg
4015 rm -f core conftest.err conftest.$ac_objext
4016 test "x$ac_cv_prog_cc_c99" != "xno" && break
4017 done
4018 rm -f conftest.$ac_ext
4019 CC=$ac_save_CC
4022 # AC_CACHE_VAL
4023 case "x$ac_cv_prog_cc_c99" in
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026 $as_echo "none needed" >&6; } ;;
4027 xno)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4029 $as_echo "unsupported" >&6; } ;;
4031 CC="$CC $ac_cv_prog_cc_c99"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4033 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4034 esac
4035 if test "x$ac_cv_prog_cc_c99" != xno; then :
4036 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4039 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4040 if ${ac_cv_prog_cc_c89+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 ac_cv_prog_cc_c89=no
4044 ac_save_CC=$CC
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <stdarg.h>
4048 #include <stdio.h>
4049 struct stat;
4050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4051 struct buf { int x; };
4052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4053 static char *e (p, i)
4054 char **p;
4055 int i;
4057 return p[i];
4059 static char *f (char * (*g) (char **, int), char **p, ...)
4061 char *s;
4062 va_list v;
4063 va_start (v,p);
4064 s = g (p, va_arg (v,int));
4065 va_end (v);
4066 return s;
4069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4070 function prototypes and stuff, but not '\xHH' hex character constants.
4071 These don't provoke an error unfortunately, instead are silently treated
4072 as 'x'. The following induces an error, until -std is added to get
4073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4074 array size at least. It's necessary to write '\x00'==0 to get something
4075 that's true only with -std. */
4076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4078 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4079 inside strings and character constants. */
4080 #define FOO(x) 'x'
4081 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4083 int test (int i, double x);
4084 struct s1 {int (*f) (int a);};
4085 struct s2 {int (*f) (double a);};
4086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4087 int argc;
4088 char **argv;
4090 main ()
4092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4094 return 0;
4096 _ACEOF
4097 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 CC="$ac_save_CC $ac_arg"
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_c89=$ac_arg
4104 rm -f core conftest.err conftest.$ac_objext
4105 test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC
4111 # AC_CACHE_VAL
4112 case "x$ac_cv_prog_cc_c89" in
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115 $as_echo "none needed" >&6; } ;;
4116 xno)
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4118 $as_echo "unsupported" >&6; } ;;
4120 CC="$CC $ac_cv_prog_cc_c89"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4122 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4123 esac
4124 if test "x$ac_cv_prog_cc_c89" != xno; then :
4125 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4126 else
4127 ac_cv_prog_cc_stdc=no
4132 esac
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4134 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4135 if ${ac_cv_prog_cc_stdc+:} false; then :
4136 $as_echo_n "(cached) " >&6
4139 case $ac_cv_prog_cc_stdc in #(
4140 no) :
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;; #(
4143 '') :
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4145 $as_echo "none needed" >&6; } ;; #(
4146 *) :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4148 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4149 esac
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4157 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4160 CPP=
4162 if test -z "$CPP"; then
4163 if ${ac_cv_prog_CPP+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 # Double quotes because CPP needs to be expanded
4167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4169 ac_preproc_ok=false
4170 for ac_c_preproc_warn_flag in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #ifdef __STDC__
4181 # include <limits.h>
4182 #else
4183 # include <assert.h>
4184 #endif
4185 Syntax error
4186 _ACEOF
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4189 else
4190 # Broken: fails on valid input.
4191 continue
4193 rm -f conftest.err conftest.i conftest.$ac_ext
4195 # OK, works on sane cases. Now check whether nonexistent headers
4196 # can be detected and how.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4200 _ACEOF
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4202 # Broken: success on invalid input.
4203 continue
4204 else
4205 # Passes both tests.
4206 ac_preproc_ok=:
4207 break
4209 rm -f conftest.err conftest.i conftest.$ac_ext
4211 done
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.i conftest.err conftest.$ac_ext
4214 if $ac_preproc_ok; then :
4215 break
4218 done
4219 ac_cv_prog_CPP=$CPP
4222 CPP=$ac_cv_prog_CPP
4223 else
4224 ac_cv_prog_CPP=$CPP
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4227 $as_echo "$CPP" >&6; }
4228 ac_preproc_ok=false
4229 for ac_c_preproc_warn_flag in '' yes
4231 # Use a header file that comes with gcc, so configuring glibc
4232 # with a fresh cross-compiler works.
4233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234 # <limits.h> exists even on freestanding compilers.
4235 # On the NeXT, cc -E runs the code through the compiler's parser,
4236 # not just through cpp. "Syntax error" is here to catch this case.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #ifdef __STDC__
4240 # include <limits.h>
4241 #else
4242 # include <assert.h>
4243 #endif
4244 Syntax error
4245 _ACEOF
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4248 else
4249 # Broken: fails on valid input.
4250 continue
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4254 # OK, works on sane cases. Now check whether nonexistent headers
4255 # can be detected and how.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261 # Broken: success on invalid input.
4262 continue
4263 else
4264 # Passes both tests.
4265 ac_preproc_ok=:
4266 break
4268 rm -f conftest.err conftest.i conftest.$ac_ext
4270 done
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.i conftest.err conftest.$ac_ext
4273 if $ac_preproc_ok; then :
4275 else
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4279 See \`config.log' for more details" "$LINENO" 5; }
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 # detect the compiler version
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC} belongs to" >&5
4291 $as_echo_n "checking which toolchain family ${CC} belongs to... " >&6; }
4292 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4293 if test x"$HOST_COMPILER_VERSION" = "x"; then
4294 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4296 if test x"$HOST_COMPILER_VERSION" = "x"; then
4297 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4300 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4301 if test "$IS_SUN_COMPILER" -ne "0"; then
4302 HOST_TOOLCHAIN_PREFIX=
4303 HOST_TOOLCHAIN_SUFFIX=
4304 HOST_TOOLCHAIN_FAMILY=sun
4306 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4307 if test "$IS_LLVM_COMPILER" -ne "0"; then
4308 HOST_TOOLCHAIN_PREFIX=llvm-
4309 if test "$CC_BASE" != "gcc"; then
4310 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4312 HOST_TOOLCHAIN_FAMILY=llvm
4314 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4315 if test "$IS_GNU_COMPILER" -ne "0"; then
4316 HOST_TOOLCHAIN_PREFIX=
4317 HOST_TOOLCHAIN_SUFFIX=
4318 HOST_TOOLCHAIN_FAMILY=gnu
4320 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4321 HOST_TOOLCHAIN_FAMILY=unknown
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4324 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4326 # Check for a compatible awk
4327 for ac_prog in gawk nawk
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_AWK+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$AWK"; then
4337 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_AWK="$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4356 AWK=$ac_cv_prog_AWK
4357 if test -n "$AWK"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4359 $as_echo "$AWK" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4366 test -n "$AWK" && break
4367 done
4369 req_avail=yes
4370 if test "$AWK" = ""; then
4371 req_avail=no
4373 if test "$AWK" = "no"; then
4374 req_avail=no
4376 if test "$req_avail" = "no"; then
4377 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4379 # Extract the first word of "mmake", so it can be a program name with args.
4380 set dummy mmake; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_MMAKE+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$MMAKE"; then
4387 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_MMAKE="mmake "
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4402 IFS=$as_save_IFS
4406 MMAKE=$ac_cv_prog_MMAKE
4407 if test -n "$MMAKE"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4409 $as_echo "$MMAKE" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4417 # Perform some default variable assignments. Note all of these will be
4418 # Regenerated from the script, so there is no need to cache them.
4420 aros_build_host=$host
4421 aros_host_cpp="$CPP"
4422 aros_host_cc="$CC"
4423 aros_host_cxx="$CXX"
4424 base_ld_name="${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}"
4425 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4426 base_ld_name="ld.lld${HOST_TOOLCHAIN_SUFFIX}"
4429 if test "$base_ld_name" = ""; then
4430 ac_tool_ld=ld
4431 else
4432 ac_tool_ld=$base_ld_name
4434 if test "$GCC" = "yes"; then
4435 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4436 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4437 set dummy `basename $aros_gcc_ld`; 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_path_aros_host_ld+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 case $aros_host_ld in
4444 [\\/]* | ?:[\\/]*)
4445 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in `dirname $aros_gcc_ld`
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4464 esac
4466 aros_host_ld=$ac_cv_path_aros_host_ld
4467 if test -n "$aros_host_ld"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4469 $as_echo "$aros_host_ld" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4477 if test "$aros_host_ld" = ""; then
4478 for ac_prog in $ac_tool_ld
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_path_aros_host_ld+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 case $aros_host_ld in
4488 [\\/]* | ?:[\\/]*)
4489 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4503 done
4504 done
4505 IFS=$as_save_IFS
4508 esac
4510 aros_host_ld=$ac_cv_path_aros_host_ld
4511 if test -n "$aros_host_ld"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4513 $as_echo "$aros_host_ld" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4520 test -n "$aros_host_ld" && break
4521 done
4525 req_avail=yes
4526 if test "$aros_host_ld" = ""; then
4527 req_avail=no
4529 if test "$aros_host_ld" = "no"; then
4530 req_avail=no
4532 if test "$req_avail" = "no"; then
4533 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4535 aros_host_make="make"
4536 aros_host_cflags="$CFLAGS"
4537 aros_host_cxxflags="$CXXFLAGS"
4538 aros_host_cppflags="$CPPFLAGS"
4539 aros_host_ldflags="$LDFLAGS"
4540 aros_host_debug="-g -O0"
4541 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4542 aros_host_mkargs="--no-print-directory"
4543 aros_host_exe_suffix="$EXEEXT"
4544 aros_host_lib_suffix=""
4546 # Ignore all compliance, AROS ROMs = 0
4547 # KickStart v1.0 = 30
4548 # KickStart v1.3 = 34
4549 # KickStart v2.0 = 37
4550 # KickStart v3.0 = 39
4551 # KickStart v3.1 = 40
4552 # AmigaOS v3.5 = 44
4553 aros_amigaos_compliance=0
4555 for ac_prog in aclocal aclocal19 aclocal-1.9
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$aros_host_aclocal"; then
4565 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_aros_host_aclocal="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4585 if test -n "$aros_host_aclocal"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4587 $as_echo "$aros_host_aclocal" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4594 test -n "$aros_host_aclocal" && break
4595 done
4597 for ac_prog in autoconf autoconf259 autoconf253
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy $ac_prog; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$aros_host_autoconf"; then
4607 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_aros_host_autoconf="$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4627 if test -n "$aros_host_autoconf"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4629 $as_echo "$aros_host_autoconf" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 test -n "$aros_host_autoconf" && break
4637 done
4639 for ac_prog in autoheader autoheader259 autoheader253
4641 # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy $ac_prog; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$aros_host_autoheader"; then
4649 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_aros_host_autoheader="$ac_prog"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4669 if test -n "$aros_host_autoheader"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4671 $as_echo "$aros_host_autoheader" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 test -n "$aros_host_autoheader" && break
4679 done
4681 for ac_prog in automake automake19 automake-1.9
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_aros_host_automake+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$aros_host_automake"; then
4691 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_aros_host_automake="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 aros_host_automake=$ac_cv_prog_aros_host_automake
4711 if test -n "$aros_host_automake"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4713 $as_echo "$aros_host_automake" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$aros_host_automake" && break
4721 done
4724 req_avail=yes
4725 if test "$aros_host_aclocal" = ""; then
4726 req_avail=no
4728 if test "$aros_host_aclocal" = "no"; then
4729 req_avail=no
4731 if test "$req_avail" = "no"; then
4732 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4734 req_avail=yes
4735 if test "$aros_host_automake" = ""; then
4736 req_avail=no
4738 if test "$aros_host_automake" = "no"; then
4739 req_avail=no
4741 if test "$req_avail" = "no"; then
4742 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4745 case "$aros_host_cc" in
4746 *clang*)
4747 aros_host_cc_pipe=""
4749 *gcc*)
4750 aros_host_cc_pipe="-pipe"
4752 icc)
4753 aros_host_cc_pipe=""
4756 aros_host_cc_pipe=""
4758 esac
4760 aros_kernel_cc_includes=""
4761 aros_target_cc_includes=""
4762 host_cc_elf=yes
4764 # ----------------------------------------------------------------------------------------
4765 # Host-specific defaults
4767 # This is the main host configuration section. It is where the host
4768 # can change the values of any variables it needs to change. We do
4769 # not look at anything that compiles to the target yet, we'll get
4770 # to that later.
4772 case "$host_os" in
4773 aros*)
4774 aros_host_arch="aros"
4775 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4776 case "$host_cpu" in
4777 *i?86*)
4778 aros_host_cpu="i386"
4780 *x86_64*)
4781 aros_host_cpu="x86_64"
4783 *powerpc*)
4784 aros_host_cpu="ppc"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4789 aros_host_cpu="$host_cpu"
4791 esac
4794 linux*)
4795 aros_host_arch="linux"
4796 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4797 android_build_os="linux-x86"
4798 android_tool="android"
4799 default_android_sdk="/opt/android-sdk-linux_x86"
4800 case "$host_cpu" in
4801 *i?86*)
4802 aros_host_cpu="i386"
4804 *x86_64*)
4805 aros_host_cpu="x86_64"
4807 *m68k*)
4808 aros_host_cpu="m68k"
4810 *powerpc*)
4811 aros_host_cpu="ppc"
4813 *arm*)
4814 aros_host_cpu="arm"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4818 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4819 aros_host_cpu="$host_cpu"
4821 esac
4824 freebsd*)
4825 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4826 aros_host_make="gmake"
4827 aros_host_arch="freebsd"
4828 aros_host_cpu="i386"
4830 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4832 case $host_os in
4833 freebsd[234]*)
4834 aros_object_format="elf_i386"
4838 aros_object_format="elf_i386_fbsd"
4840 esac
4844 darwin*)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4846 $as_echo_n "checking for macOS SDK files... " >&6; }
4847 LOC=$( xcode-select -p )
4848 if test $? != 0; then :
4849 as_fn_error $? "XCode incorrectly configured!
4850 please run 'xcode-select --install' before
4851 re-running configure" "$LINENO" 5
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4854 $as_echo "$LOC" >&6; }
4855 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4856 aros_host_arch="darwin"
4857 host_cc_elf=no
4858 if [ -z ${SED+x} ]; then SED="gsed"; fi
4859 android_build_os="darwin-x86"
4860 android_tool="android"
4861 default_android_sdk="/android-sdk-mac_x86"
4862 case "$host_cpu" in
4863 *i?86*)
4864 aros_host_cpu="i386"
4866 *x86_64*)
4867 aros_host_cpu="x86_64"
4869 *powerpc*)
4870 aros_host_cpu="ppc"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4874 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4875 aros_host_cpu="$host_cpu"
4877 esac
4879 aros_host_ldflags="$aros_host_ldflags -liconv"
4883 dragonfly*)
4884 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4885 aros_host_make="gmake"
4886 aros_host_arch="dragonfly"
4887 case $host_cpu in
4888 *i?86*)
4889 aros_host_cpu="i386"
4891 *amd64*)
4892 aros_host_cpu="x86_64"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4896 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4897 aros_host_cpu="$host_cpu"
4899 esac
4902 netbsd*)
4903 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4904 aros_host_make="gmake"
4905 aros_host_arch="netbsd"
4906 case "$host_cpu" in
4907 *i?86*)
4908 aros_host_cpu="i386"
4910 *m68k*)
4911 aros_host_cpu="m68k"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4915 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4916 aros_host_cpu="$host_cpu"
4918 esac
4919 aros_host_lib_suffix=".0.0"
4922 openbsd*)
4923 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4924 aros_host_make="gmake"
4925 aros_host_arch="openbsd"
4926 case "$host_cpu" in
4927 *i?86*)
4928 aros_host_cpu="i386"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4932 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4933 aros_host_cpu="$host_cpu"
4935 esac
4938 solaris*)
4939 aros_host_arch="solaris"
4940 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4941 case "$host_cpu" in
4942 *i?86*)
4943 aros_host_cpu="i386"
4945 *sparc*)
4946 aros_host_cpu="sparc"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4950 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4951 aros_host_cpu="$host_cpu"
4953 esac
4956 morphos*)
4957 aros_host_arch="morphos"
4958 aros_host_cpu="ppc"
4959 host_cc_elf=no
4962 amiga*)
4963 aros_host_arch="amiga"
4964 host_cc_elf=no
4965 SORT="/gg/bin/sort"
4966 TEST="/gg/bin/test"
4967 UNIQ="/gg/bin/uniq"
4968 FOR="for"
4969 TOUCH="/gg/bin/touch"
4970 case "$host_cpu" in
4971 *m68k*)
4972 aros_host_cpu="m68k"
4974 *powerpc*)
4975 aros_host_cpu="ppc"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4979 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4980 aros_host_cpu="$host_cpu"
4982 esac
4985 cygwin*)
4986 aros_host_arch="cygwin"
4987 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4988 host_cc_elf=no
4989 android_build_os="windows"
4990 android_tool="android.bat"
4991 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4993 case "$host_cpu" in
4994 *i?86*)
4995 aros_host_cpu="i386"
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4999 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5000 aros_host_cpu="$host_cpu"
5002 esac
5005 mingw32*)
5006 aros_host_arch="mingw32"
5007 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5008 host_cc_elf=no
5009 android_build_os="windows"
5010 android_tool="android.bat"
5011 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5013 libpng_libextra="-lws2_32"
5015 case "$host_cpu" in
5016 *i?86*)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5019 $as_echo_n "checking for Windows native gcc target... " >&6; }
5020 host_cpu=`gcc -dumpmachine`
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5022 $as_echo "$host_cpu" >&6; }
5025 esac
5027 case "$host_cpu" in
5028 *i?86*)
5029 aros_host_cpu="i386"
5032 mingw32*)
5033 aros_host_cpu="i386"
5036 *x86_64*)
5037 aros_host_cpu="x86_64"
5038 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5043 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5044 aros_host_cpu="$host_cpu"
5046 esac
5049 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5051 esac
5053 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5054 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5055 set dummy $base_ar_name; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_aros_host_cmd_ar+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$aros_host_cmd_ar"; then
5062 ac_cv_prog_aros_host_cmd_ar="$aros_host_cmd_ar" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_aros_host_cmd_ar="$base_ar_name cr"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 aros_host_cmd_ar=$ac_cv_prog_aros_host_cmd_ar
5082 if test -n "$aros_host_cmd_ar"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5084 $as_echo "$aros_host_cmd_ar" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5092 set dummy $aros_host_cmd_ar; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_path_aros_host_full_ar+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 case $aros_host_full_ar in
5099 [\\/]* | ?:[\\/]*)
5100 ac_cv_path_aros_host_full_ar="$aros_host_full_ar" # Let the user override the test with a path.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_path_aros_host_full_ar="$as_dir/$ac_word$ac_exec_ext"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5114 done
5115 done
5116 IFS=$as_save_IFS
5118 test -z "$ac_cv_path_aros_host_full_ar" && ac_cv_path_aros_host_full_ar="$aros_host_cmd_ar "
5120 esac
5122 aros_host_full_ar=$ac_cv_path_aros_host_full_ar
5123 if test -n "$aros_host_full_ar"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_full_ar" >&5
5125 $as_echo "$aros_host_full_ar" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_full_ar|g"`
5133 req_avail=yes
5134 if test "$aros_host_ar" = ""; then
5135 req_avail=no
5137 if test "$aros_host_ar" = "no"; then
5138 req_avail=no
5140 if test "$req_avail" = "no"; then
5141 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5143 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5144 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5145 set dummy $base_ranlib_name; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 case $aros_host_ranlib in
5152 [\\/]* | ?:[\\/]*)
5153 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5171 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$base_ranlib_name "
5173 esac
5175 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5176 if test -n "$aros_host_ranlib"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5178 $as_echo "$aros_host_ranlib" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 req_avail=yes
5186 if test "$aros_host_ranlib" = ""; then
5187 req_avail=no
5189 if test "$aros_host_ranlib" = "no"; then
5190 req_avail=no
5192 if test "$req_avail" = "no"; then
5193 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5195 # Extract the first word of "strip", so it can be a program name with args.
5196 set dummy strip; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_aros_host_strip+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$aros_host_strip"; then
5203 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_aros_host_strip="strip "
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5222 aros_host_strip=$ac_cv_prog_aros_host_strip
5223 if test -n "$aros_host_strip"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5225 $as_echo "$aros_host_strip" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 req_avail=yes
5233 if test "$aros_host_strip" = ""; then
5234 req_avail=no
5236 if test "$aros_host_strip" = "no"; then
5237 req_avail=no
5239 if test "$req_avail" = "no"; then
5240 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5243 # Extract the first word of "rm", so it can be a program name with args.
5244 set dummy rm; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_RM+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$RM"; then
5251 ac_cv_prog_RM="$RM" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_RM="rm -rf"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5270 RM=$ac_cv_prog_RM
5271 if test -n "$RM"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5273 $as_echo "$RM" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5280 req_avail=yes
5281 if test "$RM" = ""; then
5282 req_avail=no
5284 if test "$RM" = "no"; then
5285 req_avail=no
5287 if test "$req_avail" = "no"; then
5288 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5290 # Extract the first word of "cp", so it can be a program name with args.
5291 set dummy cp; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_CP+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$CP"; then
5298 ac_cv_prog_CP="$CP" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_CP="cp "
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5311 done
5312 done
5313 IFS=$as_save_IFS
5317 CP=$ac_cv_prog_CP
5318 if test -n "$CP"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5320 $as_echo "$CP" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 req_avail=yes
5328 if test "$CP" = ""; then
5329 req_avail=no
5331 if test "$CP" = "no"; then
5332 req_avail=no
5334 if test "$req_avail" = "no"; then
5335 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5337 # Extract the first word of "mv", so it can be a program name with args.
5338 set dummy mv; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_MV+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$MV"; then
5345 ac_cv_prog_MV="$MV" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_MV="mv "
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 MV=$ac_cv_prog_MV
5365 if test -n "$MV"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5367 $as_echo "$MV" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5374 req_avail=yes
5375 if test "$MV" = ""; then
5376 req_avail=no
5378 if test "$MV" = "no"; then
5379 req_avail=no
5381 if test "$req_avail" = "no"; then
5382 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5384 # Extract the first word of "echo", so it can be a program name with args.
5385 set dummy echo; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ECHO+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$ECHO"; then
5392 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ECHO="echo "
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5411 ECHO=$ac_cv_prog_ECHO
5412 if test -n "$ECHO"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5414 $as_echo "$ECHO" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5421 req_avail=yes
5422 if test "$ECHO" = ""; then
5423 req_avail=no
5425 if test "$ECHO" = "no"; then
5426 req_avail=no
5428 if test "$req_avail" = "no"; then
5429 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5431 # Extract the first word of "mkdir", so it can be a program name with args.
5432 set dummy mkdir; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_MKDIR+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$MKDIR"; then
5439 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_MKDIR="mkdir -p"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5452 done
5453 done
5454 IFS=$as_save_IFS
5458 MKDIR=$ac_cv_prog_MKDIR
5459 if test -n "$MKDIR"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5461 $as_echo "$MKDIR" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 req_avail=yes
5469 if test "$MKDIR" = ""; then
5470 req_avail=no
5472 if test "$MKDIR" = "no"; then
5473 req_avail=no
5475 if test "$req_avail" = "no"; then
5476 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5478 # Extract the first word of "touch", so it can be a program name with args.
5479 set dummy touch; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_TOUCH+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -n "$TOUCH"; then
5486 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_TOUCH="touch "
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5501 IFS=$as_save_IFS
5505 TOUCH=$ac_cv_prog_TOUCH
5506 if test -n "$TOUCH"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5508 $as_echo "$TOUCH" >&6; }
5509 else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5515 req_avail=yes
5516 if test "$TOUCH" = ""; then
5517 req_avail=no
5519 if test "$TOUCH" = "no"; then
5520 req_avail=no
5522 if test "$req_avail" = "no"; then
5523 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5525 # Extract the first word of "sort", so it can be a program name with args.
5526 set dummy sort; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_SORT+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$SORT"; then
5533 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_SORT="sort "
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5546 done
5547 done
5548 IFS=$as_save_IFS
5552 SORT=$ac_cv_prog_SORT
5553 if test -n "$SORT"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5555 $as_echo "$SORT" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 req_avail=yes
5563 if test "$SORT" = ""; then
5564 req_avail=no
5566 if test "$SORT" = "no"; then
5567 req_avail=no
5569 if test "$req_avail" = "no"; then
5570 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5572 # Extract the first word of "uniq", so it can be a program name with args.
5573 set dummy uniq; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_UNIQ+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$UNIQ"; then
5580 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_UNIQ="uniq "
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5593 done
5594 done
5595 IFS=$as_save_IFS
5599 UNIQ=$ac_cv_prog_UNIQ
5600 if test -n "$UNIQ"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5602 $as_echo "$UNIQ" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5609 req_avail=yes
5610 if test "$UNIQ" = ""; then
5611 req_avail=no
5613 if test "$UNIQ" = "no"; then
5614 req_avail=no
5616 if test "$req_avail" = "no"; then
5617 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5619 # Extract the first word of "true", so it can be a program name with args.
5620 set dummy true; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_NOP+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 if test -n "$NOP"; then
5627 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_NOP="true "
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5642 IFS=$as_save_IFS
5646 NOP=$ac_cv_prog_NOP
5647 if test -n "$NOP"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5649 $as_echo "$NOP" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5656 req_avail=yes
5657 if test "$NOP" = ""; then
5658 req_avail=no
5660 if test "$NOP" = "no"; then
5661 req_avail=no
5663 if test "$req_avail" = "no"; then
5664 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5666 # Extract the first word of "cat", so it can be a program name with args.
5667 set dummy cat; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_CAT+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$CAT"; then
5674 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_CAT="cat "
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5693 CAT=$ac_cv_prog_CAT
5694 if test -n "$CAT"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5696 $as_echo "$CAT" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5703 req_avail=yes
5704 if test "$CAT" = ""; then
5705 req_avail=no
5707 if test "$CAT" = "no"; then
5708 req_avail=no
5710 if test "$req_avail" = "no"; then
5711 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5713 # Extract the first word of "bison", so it can be a program name with args.
5714 set dummy bison; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_BISON+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$BISON"; then
5721 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_BISON="bison "
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5734 done
5735 done
5736 IFS=$as_save_IFS
5740 BISON=$ac_cv_prog_BISON
5741 if test -n "$BISON"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5743 $as_echo "$BISON" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5750 req_avail=yes
5751 if test "$BISON" = ""; then
5752 req_avail=no
5754 if test "$BISON" = "no"; then
5755 req_avail=no
5757 if test "$req_avail" = "no"; then
5758 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5760 # Extract the first word of "flex", so it can be a program name with args.
5761 set dummy flex; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_FLEX+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$FLEX"; then
5768 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_FLEX="flex "
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5781 done
5782 done
5783 IFS=$as_save_IFS
5787 FLEX=$ac_cv_prog_FLEX
5788 if test -n "$FLEX"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5790 $as_echo "$FLEX" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5797 req_avail=yes
5798 if test "$FLEX" = ""; then
5799 req_avail=no
5801 if test "$FLEX" = "no"; then
5802 req_avail=no
5804 if test "$req_avail" = "no"; then
5805 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5808 $as_echo_n "checking version of $FLEX... " >&6; }
5809 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5811 $as_echo "$ax_cv_flex_version" >&6; }
5812 # Extract the first word of "pngtopnm", so it can be a program name with args.
5813 set dummy pngtopnm; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$PNGTOPNM"; then
5820 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_PNGTOPNM="pngtopnm "
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5833 done
5834 done
5835 IFS=$as_save_IFS
5839 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5840 if test -n "$PNGTOPNM"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5842 $as_echo "$PNGTOPNM" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5849 req_avail=yes
5850 if test "$PNGTOPNM" = ""; then
5851 req_avail=no
5853 if test "$PNGTOPNM" = "no"; then
5854 req_avail=no
5856 if test "$req_avail" = "no"; then
5857 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5859 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5860 set dummy ppmtoilbm; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$PPMTOILBM"; then
5867 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5880 done
5881 done
5882 IFS=$as_save_IFS
5886 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5887 if test -n "$PPMTOILBM"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5889 $as_echo "$PPMTOILBM" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5896 req_avail=yes
5897 if test "$PPMTOILBM" = ""; then
5898 req_avail=no
5900 if test "$PPMTOILBM" = "no"; then
5901 req_avail=no
5903 if test "$req_avail" = "no"; then
5904 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5906 # Extract the first word of "sed", so it can be a program name with args.
5907 set dummy sed; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_SED+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$SED"; then
5914 ac_cv_prog_SED="$SED" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_SED="sed "
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 SED=$ac_cv_prog_SED
5934 if test -n "$SED"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5936 $as_echo "$SED" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5943 req_avail=yes
5944 if test "$SED" = ""; then
5945 req_avail=no
5947 if test "$SED" = "no"; then
5948 req_avail=no
5950 if test "$req_avail" = "no"; then
5951 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5953 # Extract the first word of "chmod", so it can be a program name with args.
5954 set dummy chmod; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_CHMOD+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$CHMOD"; then
5961 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_CHMOD="chmod "
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5974 done
5975 done
5976 IFS=$as_save_IFS
5980 CHMOD=$ac_cv_prog_CHMOD
5981 if test -n "$CHMOD"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5983 $as_echo "$CHMOD" >&6; }
5984 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5990 req_avail=yes
5991 if test "$CHMOD" = ""; then
5992 req_avail=no
5994 if test "$CHMOD" = "no"; then
5995 req_avail=no
5997 if test "$req_avail" = "no"; then
5998 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6000 # Extract the first word of "patch", so it can be a program name with args.
6001 set dummy patch; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_PATCH+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$PATCH"; then
6008 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_PATCH="patch "
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 PATCH=$ac_cv_prog_PATCH
6028 if test -n "$PATCH"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6030 $as_echo "$PATCH" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6037 req_avail=yes
6038 if test "$PATCH" = ""; then
6039 req_avail=no
6041 if test "$PATCH" = "no"; then
6042 req_avail=no
6044 if test "$req_avail" = "no"; then
6045 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6054 if test -n "$PYTHON"; then
6055 # If the user set $PYTHON, use it and don't search something else.
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6057 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6058 prog="import sys
6059 # split strings by '.' and convert to numeric. Append some zeros
6060 # because we need at least 4 digits for the hex conversion.
6061 # map returns an iterator in Python 3.0 and a list in 2.x
6062 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6063 minverhex = 0
6064 # xrange is not present in Python 3.0 and range returns an iterator
6065 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6066 sys.exit(sys.hexversion < minverhex)"
6067 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6068 ($PYTHON -c "$prog") >&5 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; then :
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6079 am_display_PYTHON=$PYTHON
6080 else
6081 # Otherwise, try each interpreter until we find one that satisfies
6082 # VERSION.
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6084 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6085 if ${am_cv_pathless_PYTHON+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6089 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
6090 test "$am_cv_pathless_PYTHON" = none && break
6091 prog="import sys
6092 # split strings by '.' and convert to numeric. Append some zeros
6093 # because we need at least 4 digits for the hex conversion.
6094 # map returns an iterator in Python 3.0 and a list in 2.x
6095 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6096 minverhex = 0
6097 # xrange is not present in Python 3.0 and range returns an iterator
6098 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6099 sys.exit(sys.hexversion < minverhex)"
6100 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6101 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; then :
6105 break
6107 done
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6110 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6111 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6112 if test "$am_cv_pathless_PYTHON" = none; then
6113 PYTHON=:
6114 else
6115 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6116 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_PYTHON+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 case $PYTHON in
6123 [\\/]* | ?:[\\/]*)
6124 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6138 done
6139 done
6140 IFS=$as_save_IFS
6143 esac
6145 PYTHON=$ac_cv_path_PYTHON
6146 if test -n "$PYTHON"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6148 $as_echo "$PYTHON" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6156 am_display_PYTHON=$am_cv_pathless_PYTHON
6160 if test "$PYTHON" = :; then
6161 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6162 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6166 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6167 if ${am_cv_python_version+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6173 $as_echo "$am_cv_python_version" >&6; }
6174 PYTHON_VERSION=$am_cv_python_version
6178 PYTHON_PREFIX='${prefix}'
6180 PYTHON_EXEC_PREFIX='${exec_prefix}'
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6185 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6186 if ${am_cv_python_platform+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6192 $as_echo "$am_cv_python_platform" >&6; }
6193 PYTHON_PLATFORM=$am_cv_python_platform
6196 # Just factor out some code duplication.
6197 am_python_setup_sysconfig="\
6198 import sys
6199 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6200 # with python 3.x. See automake bug#10227.
6201 try:
6202 import sysconfig
6203 except ImportError:
6204 can_use_sysconfig = 0
6205 else:
6206 can_use_sysconfig = 1
6207 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6208 # <https://github.com/pypa/virtualenv/issues/118>
6209 try:
6210 from platform import python_implementation
6211 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6212 can_use_sysconfig = 0
6213 except ImportError:
6214 pass"
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6218 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6219 if ${am_cv_python_pythondir+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 if test "x$prefix" = xNONE
6223 then
6224 am_py_prefix=$ac_default_prefix
6225 else
6226 am_py_prefix=$prefix
6228 am_cv_python_pythondir=`$PYTHON -c "
6229 $am_python_setup_sysconfig
6230 if can_use_sysconfig:
6231 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6232 else:
6233 from distutils import sysconfig
6234 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6235 sys.stdout.write(sitedir)"`
6236 case $am_cv_python_pythondir in
6237 $am_py_prefix*)
6238 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6239 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6242 case $am_py_prefix in
6243 /usr|/System*) ;;
6245 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6247 esac
6249 esac
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6253 $as_echo "$am_cv_python_pythondir" >&6; }
6254 pythondir=$am_cv_python_pythondir
6258 pkgpythondir=\${pythondir}/$PACKAGE
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6262 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6263 if ${am_cv_python_pyexecdir+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if test "x$exec_prefix" = xNONE
6267 then
6268 am_py_exec_prefix=$am_py_prefix
6269 else
6270 am_py_exec_prefix=$exec_prefix
6272 am_cv_python_pyexecdir=`$PYTHON -c "
6273 $am_python_setup_sysconfig
6274 if can_use_sysconfig:
6275 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6276 else:
6277 from distutils import sysconfig
6278 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6279 sys.stdout.write(sitedir)"`
6280 case $am_cv_python_pyexecdir in
6281 $am_py_exec_prefix*)
6282 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6283 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6286 case $am_py_exec_prefix in
6287 /usr|/System*) ;;
6289 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6291 esac
6293 esac
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6297 $as_echo "$am_cv_python_pyexecdir" >&6; }
6298 pyexecdir=$am_cv_python_pyexecdir
6302 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6310 # Check whether --enable-libpng-config was given.
6311 if test "${enable_libpng_config+set}" = set; then :
6312 enableval=$enable_libpng_config;
6315 if test "$enable_libpng_config" != "no"; then
6316 # Extract the first word of "libpng-config", so it can be a program name with args.
6317 set dummy libpng-config; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$arosconfig_use_libpngconfig"; then
6324 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6337 done
6338 done
6339 IFS=$as_save_IFS
6341 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6344 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6345 if test -n "$arosconfig_use_libpngconfig"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6347 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test "$arosconfig_use_libpngconfig" = "yes"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6357 $as_echo_n "checking libpng-config library... " >&6; }
6358 libpng_incdir="`libpng-config --cflags`"
6359 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6360 libpng="`libpng-config --libs`"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6362 $as_echo "$libpng" >&6; }
6363 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6366 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6367 if ${ac_cv_lib_png_png_read_png+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 ac_check_lib_save_LIBS=$LIBS
6371 LIBS="-lpng $LIBS"
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 /* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 char png_read_png ();
6383 main ()
6385 return png_read_png ();
6387 return 0;
6389 _ACEOF
6390 if ac_fn_c_try_link "$LINENO"; then :
6391 ac_cv_lib_png_png_read_png=yes
6392 else
6393 ac_cv_lib_png_png_read_png=no
6395 rm -f core conftest.err conftest.$ac_objext \
6396 conftest$ac_exeext conftest.$ac_ext
6397 LIBS=$ac_check_lib_save_LIBS
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6400 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6401 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6402 libpng="-lpng"
6403 else
6404 libpng="no"
6407 if test "$libpng_libextra" != ""; then
6408 if test "$libpng" != "no"; then
6409 libpng_libextra="$libpng_libextra $libpng"
6413 req_avail=yes
6414 if test "$libpng" = ""; then
6415 req_avail=no
6417 if test "$libpng" = "no"; then
6418 req_avail=no
6420 if test "$req_avail" = "no"; then
6421 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6427 FOR=for
6429 IF=if
6431 TEST=test
6433 CMP=cmp
6437 # Check for some includes for the X11 HIDD and the kernel
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6441 if ${ac_cv_path_GREP+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -z "$GREP"; then
6445 ac_path_GREP_found=false
6446 # Loop through the user's path and test for each of PROGNAME-LIST
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_prog in grep ggrep; do
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6455 as_fn_executable_p "$ac_path_GREP" || continue
6456 # Check for GNU ac_path_GREP and select it if it is found.
6457 # Check for GNU $ac_path_GREP
6458 case `"$ac_path_GREP" --version 2>&1` in
6459 *GNU*)
6460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6462 ac_count=0
6463 $as_echo_n 0123456789 >"conftest.in"
6464 while :
6466 cat "conftest.in" "conftest.in" >"conftest.tmp"
6467 mv "conftest.tmp" "conftest.in"
6468 cp "conftest.in" "conftest.nl"
6469 $as_echo 'GREP' >> "conftest.nl"
6470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6472 as_fn_arith $ac_count + 1 && ac_count=$as_val
6473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6474 # Best one so far, save it but keep looking for a better one
6475 ac_cv_path_GREP="$ac_path_GREP"
6476 ac_path_GREP_max=$ac_count
6478 # 10*(2^10) chars as input seems more than enough
6479 test $ac_count -gt 10 && break
6480 done
6481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6482 esac
6484 $ac_path_GREP_found && break 3
6485 done
6486 done
6487 done
6488 IFS=$as_save_IFS
6489 if test -z "$ac_cv_path_GREP"; then
6490 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6492 else
6493 ac_cv_path_GREP=$GREP
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6498 $as_echo "$ac_cv_path_GREP" >&6; }
6499 GREP="$ac_cv_path_GREP"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6503 $as_echo_n "checking for egrep... " >&6; }
6504 if ${ac_cv_path_EGREP+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6508 then ac_cv_path_EGREP="$GREP -E"
6509 else
6510 if test -z "$EGREP"; then
6511 ac_path_EGREP_found=false
6512 # Loop through the user's path and test for each of PROGNAME-LIST
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_prog in egrep; do
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6521 as_fn_executable_p "$ac_path_EGREP" || continue
6522 # Check for GNU ac_path_EGREP and select it if it is found.
6523 # Check for GNU $ac_path_EGREP
6524 case `"$ac_path_EGREP" --version 2>&1` in
6525 *GNU*)
6526 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6528 ac_count=0
6529 $as_echo_n 0123456789 >"conftest.in"
6530 while :
6532 cat "conftest.in" "conftest.in" >"conftest.tmp"
6533 mv "conftest.tmp" "conftest.in"
6534 cp "conftest.in" "conftest.nl"
6535 $as_echo 'EGREP' >> "conftest.nl"
6536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6538 as_fn_arith $ac_count + 1 && ac_count=$as_val
6539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6540 # Best one so far, save it but keep looking for a better one
6541 ac_cv_path_EGREP="$ac_path_EGREP"
6542 ac_path_EGREP_max=$ac_count
6544 # 10*(2^10) chars as input seems more than enough
6545 test $ac_count -gt 10 && break
6546 done
6547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6548 esac
6550 $ac_path_EGREP_found && break 3
6551 done
6552 done
6553 done
6554 IFS=$as_save_IFS
6555 if test -z "$ac_cv_path_EGREP"; then
6556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6558 else
6559 ac_cv_path_EGREP=$EGREP
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6565 $as_echo "$ac_cv_path_EGREP" >&6; }
6566 EGREP="$ac_cv_path_EGREP"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6570 $as_echo_n "checking for ANSI C header files... " >&6; }
6571 if ${ac_cv_header_stdc+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <stdlib.h>
6577 #include <stdarg.h>
6578 #include <string.h>
6579 #include <float.h>
6582 main ()
6586 return 0;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 ac_cv_header_stdc=yes
6591 else
6592 ac_cv_header_stdc=no
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 if test $ac_cv_header_stdc = yes; then
6597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #include <string.h>
6602 _ACEOF
6603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6604 $EGREP "memchr" >/dev/null 2>&1; then :
6606 else
6607 ac_cv_header_stdc=no
6609 rm -f conftest*
6613 if test $ac_cv_header_stdc = yes; then
6614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 #include <stdlib.h>
6619 _ACEOF
6620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621 $EGREP "free" >/dev/null 2>&1; then :
6623 else
6624 ac_cv_header_stdc=no
6626 rm -f conftest*
6630 if test $ac_cv_header_stdc = yes; then
6631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6632 if test "$cross_compiling" = yes; then :
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <ctype.h>
6638 #include <stdlib.h>
6639 #if ((' ' & 0x0FF) == 0x020)
6640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6642 #else
6643 # define ISLOWER(c) \
6644 (('a' <= (c) && (c) <= 'i') \
6645 || ('j' <= (c) && (c) <= 'r') \
6646 || ('s' <= (c) && (c) <= 'z'))
6647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6648 #endif
6650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6652 main ()
6654 int i;
6655 for (i = 0; i < 256; i++)
6656 if (XOR (islower (i), ISLOWER (i))
6657 || toupper (i) != TOUPPER (i))
6658 return 2;
6659 return 0;
6661 _ACEOF
6662 if ac_fn_c_try_run "$LINENO"; then :
6664 else
6665 ac_cv_header_stdc=no
6667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6668 conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6674 $as_echo "$ac_cv_header_stdc" >&6; }
6675 if test $ac_cv_header_stdc = yes; then
6677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6682 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6683 inttypes.h stdint.h unistd.h
6684 do :
6685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6686 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6688 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6689 cat >>confdefs.h <<_ACEOF
6690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6691 _ACEOF
6695 done
6698 for ac_header in sys/ipc.h sys/shm.h \
6699 sys/mmap.h sys/mman.h sysexits.h \
6700 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6702 do :
6703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6708 _ACEOF
6712 done
6715 for ac_header in sys/mount.h
6716 do :
6717 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6719 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_SYS_MOUNT_H 1
6722 _ACEOF
6726 done
6728 for ac_header in GL/glx.h
6729 do :
6730 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6731 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_GL_GLX_H 1
6734 _ACEOF
6735 host_feature_glx=yes
6736 else
6737 host_feature_glx=no
6740 done
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6744 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 #define __unused __attribute__((unused))
6749 #include <sys/stat.h>
6752 main ()
6756 return 0;
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 host_stat_h__unused_used=no
6761 else
6762 host_stat_h__unused_used=yes
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6766 $as_echo "$host_stat_h__unused_used" >&6; }
6768 ac_header_dirent=no
6769 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6770 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6772 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6773 if eval \${$as_ac_Header+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <sys/types.h>
6779 #include <$ac_hdr>
6782 main ()
6784 if ((DIR *) 0)
6785 return 0;
6787 return 0;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 eval "$as_ac_Header=yes"
6792 else
6793 eval "$as_ac_Header=no"
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 eval ac_res=\$$as_ac_Header
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6799 $as_echo "$ac_res" >&6; }
6800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6801 cat >>confdefs.h <<_ACEOF
6802 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6803 _ACEOF
6805 ac_header_dirent=$ac_hdr; break
6808 done
6809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6810 if test $ac_header_dirent = dirent.h; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6812 $as_echo_n "checking for library containing opendir... " >&6; }
6813 if ${ac_cv_search_opendir+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 ac_func_search_save_LIBS=$LIBS
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6820 /* Override any GCC internal prototype to avoid an error.
6821 Use char because int might match the return type of a GCC
6822 builtin and then its argument prototype would still apply. */
6823 #ifdef __cplusplus
6824 extern "C"
6825 #endif
6826 char opendir ();
6828 main ()
6830 return opendir ();
6832 return 0;
6834 _ACEOF
6835 for ac_lib in '' dir; do
6836 if test -z "$ac_lib"; then
6837 ac_res="none required"
6838 else
6839 ac_res=-l$ac_lib
6840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 ac_cv_search_opendir=$ac_res
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext
6847 if ${ac_cv_search_opendir+:} false; then :
6848 break
6850 done
6851 if ${ac_cv_search_opendir+:} false; then :
6853 else
6854 ac_cv_search_opendir=no
6856 rm conftest.$ac_ext
6857 LIBS=$ac_func_search_save_LIBS
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6860 $as_echo "$ac_cv_search_opendir" >&6; }
6861 ac_res=$ac_cv_search_opendir
6862 if test "$ac_res" != no; then :
6863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6869 $as_echo_n "checking for library containing opendir... " >&6; }
6870 if ${ac_cv_search_opendir+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 ac_func_search_save_LIBS=$LIBS
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6877 /* Override any GCC internal prototype to avoid an error.
6878 Use char because int might match the return type of a GCC
6879 builtin and then its argument prototype would still apply. */
6880 #ifdef __cplusplus
6881 extern "C"
6882 #endif
6883 char opendir ();
6885 main ()
6887 return opendir ();
6889 return 0;
6891 _ACEOF
6892 for ac_lib in '' x; do
6893 if test -z "$ac_lib"; then
6894 ac_res="none required"
6895 else
6896 ac_res=-l$ac_lib
6897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6899 if ac_fn_c_try_link "$LINENO"; then :
6900 ac_cv_search_opendir=$ac_res
6902 rm -f core conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext
6904 if ${ac_cv_search_opendir+:} false; then :
6905 break
6907 done
6908 if ${ac_cv_search_opendir+:} false; then :
6910 else
6911 ac_cv_search_opendir=no
6913 rm conftest.$ac_ext
6914 LIBS=$ac_func_search_save_LIBS
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6917 $as_echo "$ac_cv_search_opendir" >&6; }
6918 ac_res=$ac_cv_search_opendir
6919 if test "$ac_res" != no; then :
6920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6927 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6928 if ${ac_cv_header_stat_broken+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 #include <sys/types.h>
6934 #include <sys/stat.h>
6936 #if defined S_ISBLK && defined S_IFDIR
6937 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6938 #endif
6940 #if defined S_ISBLK && defined S_IFCHR
6941 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6942 #endif
6944 #if defined S_ISLNK && defined S_IFREG
6945 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6946 #endif
6948 #if defined S_ISSOCK && defined S_IFREG
6949 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6950 #endif
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954 ac_cv_header_stat_broken=no
6955 else
6956 ac_cv_header_stat_broken=yes
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6961 $as_echo "$ac_cv_header_stat_broken" >&6; }
6962 if test $ac_cv_header_stat_broken = yes; then
6964 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6969 $as_echo_n "checking for ANSI C header files... " >&6; }
6970 if ${ac_cv_header_stdc+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 #include <stdlib.h>
6976 #include <stdarg.h>
6977 #include <string.h>
6978 #include <float.h>
6981 main ()
6985 return 0;
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989 ac_cv_header_stdc=yes
6990 else
6991 ac_cv_header_stdc=no
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 if test $ac_cv_header_stdc = yes; then
6996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 #include <string.h>
7001 _ACEOF
7002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7003 $EGREP "memchr" >/dev/null 2>&1; then :
7005 else
7006 ac_cv_header_stdc=no
7008 rm -f conftest*
7012 if test $ac_cv_header_stdc = yes; then
7013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 #include <stdlib.h>
7018 _ACEOF
7019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020 $EGREP "free" >/dev/null 2>&1; then :
7022 else
7023 ac_cv_header_stdc=no
7025 rm -f conftest*
7029 if test $ac_cv_header_stdc = yes; then
7030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7031 if test "$cross_compiling" = yes; then :
7033 else
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 #include <ctype.h>
7037 #include <stdlib.h>
7038 #if ((' ' & 0x0FF) == 0x020)
7039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7041 #else
7042 # define ISLOWER(c) \
7043 (('a' <= (c) && (c) <= 'i') \
7044 || ('j' <= (c) && (c) <= 'r') \
7045 || ('s' <= (c) && (c) <= 'z'))
7046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7047 #endif
7049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7051 main ()
7053 int i;
7054 for (i = 0; i < 256; i++)
7055 if (XOR (islower (i), ISLOWER (i))
7056 || toupper (i) != TOUPPER (i))
7057 return 2;
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_run "$LINENO"; then :
7063 else
7064 ac_cv_header_stdc=no
7066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7067 conftest.$ac_objext conftest.beam conftest.$ac_ext
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7073 $as_echo "$ac_cv_header_stdc" >&6; }
7074 if test $ac_cv_header_stdc = yes; then
7076 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7081 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7082 if ${ac_cv_header_sys_wait_h+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/wait.h>
7089 #ifndef WEXITSTATUS
7090 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7091 #endif
7092 #ifndef WIFEXITED
7093 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7094 #endif
7097 main ()
7099 int s;
7100 wait (&s);
7101 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7103 return 0;
7105 _ACEOF
7106 if ac_fn_c_try_compile "$LINENO"; then :
7107 ac_cv_header_sys_wait_h=yes
7108 else
7109 ac_cv_header_sys_wait_h=no
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7114 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7115 if test $ac_cv_header_sys_wait_h = yes; then
7117 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7122 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7123 if ${ac_cv_header_time+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 #include <sys/time.h>
7130 #include <time.h>
7133 main ()
7135 if ((struct tm *) 0)
7136 return 0;
7138 return 0;
7140 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142 ac_cv_header_time=yes
7143 else
7144 ac_cv_header_time=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7149 $as_echo "$ac_cv_header_time" >&6; }
7150 if test $ac_cv_header_time = yes; then
7152 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7156 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7157 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7159 cat >>confdefs.h <<_ACEOF
7160 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7161 _ACEOF
7164 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7169 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7170 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7172 cat >>confdefs.h <<_ACEOF
7173 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7174 _ACEOF
7177 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7179 else
7180 case " $LIBOBJS " in
7181 *" fileblocks.$ac_objext "* ) ;;
7182 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7184 esac
7189 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7190 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7192 cat >>confdefs.h <<_ACEOF
7193 #define HAVE_STRUCT_STAT_ST_RDEV 1
7194 _ACEOF
7197 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7203 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7204 if ${ac_cv_struct_tm+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <sys/types.h>
7210 #include <time.h>
7213 main ()
7215 struct tm tm;
7216 int *p = &tm.tm_sec;
7217 return !p;
7219 return 0;
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_struct_tm=time.h
7224 else
7225 ac_cv_struct_tm=sys/time.h
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7230 $as_echo "$ac_cv_struct_tm" >&6; }
7231 if test $ac_cv_struct_tm = sys/time.h; then
7233 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7237 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7238 #include <$ac_cv_struct_tm>
7241 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7243 cat >>confdefs.h <<_ACEOF
7244 #define HAVE_STRUCT_TM_TM_ZONE 1
7245 _ACEOF
7250 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7252 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7254 else
7255 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7257 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7258 ac_have_decl=1
7259 else
7260 ac_have_decl=0
7263 cat >>confdefs.h <<_ACEOF
7264 #define HAVE_DECL_TZNAME $ac_have_decl
7265 _ACEOF
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7268 $as_echo_n "checking for tzname... " >&6; }
7269 if ${ac_cv_var_tzname+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 #include <time.h>
7275 #if !HAVE_DECL_TZNAME
7276 extern char *tzname[];
7277 #endif
7280 main ()
7282 return tzname[0][0];
7284 return 0;
7286 _ACEOF
7287 if ac_fn_c_try_link "$LINENO"; then :
7288 ac_cv_var_tzname=yes
7289 else
7290 ac_cv_var_tzname=no
7292 rm -f core conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7296 $as_echo "$ac_cv_var_tzname" >&6; }
7297 if test $ac_cv_var_tzname = yes; then
7299 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7304 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7305 if test "x$ac_cv_type_off_t" = xyes; then :
7307 else
7309 cat >>confdefs.h <<_ACEOF
7310 #define off_t long int
7311 _ACEOF
7315 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7316 if test "x$ac_cv_type_pid_t" = xyes; then :
7318 else
7320 cat >>confdefs.h <<_ACEOF
7321 #define pid_t int
7322 _ACEOF
7326 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7327 if test "x$ac_cv_type_size_t" = xyes; then :
7329 else
7331 cat >>confdefs.h <<_ACEOF
7332 #define size_t unsigned int
7333 _ACEOF
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7338 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7339 if ${ac_cv_type_uid_t+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <sys/types.h>
7346 _ACEOF
7347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7348 $EGREP "uid_t" >/dev/null 2>&1; then :
7349 ac_cv_type_uid_t=yes
7350 else
7351 ac_cv_type_uid_t=no
7353 rm -f conftest*
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7357 $as_echo "$ac_cv_type_uid_t" >&6; }
7358 if test $ac_cv_type_uid_t = no; then
7360 $as_echo "#define uid_t int" >>confdefs.h
7363 $as_echo "#define gid_t int" >>confdefs.h
7368 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7369 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7373 _ACEOF
7379 # Look for some functions
7380 for ac_func in getpagesize kqueue statfs statvfs \
7381 clone kse_create rfork_thread thr_create sa_register \
7382 getcontext makecontext setcontext sigaltstack swapcontext
7383 do :
7384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7385 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7386 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7387 cat >>confdefs.h <<_ACEOF
7388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7389 _ACEOF
7392 done
7398 for ac_header in $ac_header_list
7399 do :
7400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7404 cat >>confdefs.h <<_ACEOF
7405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7406 _ACEOF
7410 done
7419 for ac_func in getpagesize
7420 do :
7421 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7422 if test "x$ac_cv_func_getpagesize" = xyes; then :
7423 cat >>confdefs.h <<_ACEOF
7424 #define HAVE_GETPAGESIZE 1
7425 _ACEOF
7428 done
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7431 $as_echo_n "checking for working mmap... " >&6; }
7432 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test "$cross_compiling" = yes; then :
7436 ac_cv_func_mmap_fixed_mapped=no
7437 else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 /* malloc might have been renamed as rpl_malloc. */
7442 #undef malloc
7444 /* Thanks to Mike Haertel and Jim Avera for this test.
7445 Here is a matrix of mmap possibilities:
7446 mmap private not fixed
7447 mmap private fixed at somewhere currently unmapped
7448 mmap private fixed at somewhere already mapped
7449 mmap shared not fixed
7450 mmap shared fixed at somewhere currently unmapped
7451 mmap shared fixed at somewhere already mapped
7452 For private mappings, we should verify that changes cannot be read()
7453 back from the file, nor mmap's back from the file at a different
7454 address. (There have been systems where private was not correctly
7455 implemented like the infamous i386 svr4.0, and systems where the
7456 VM page cache was not coherent with the file system buffer cache
7457 like early versions of FreeBSD and possibly contemporary NetBSD.)
7458 For shared mappings, we should conversely verify that changes get
7459 propagated back to all the places they're supposed to be.
7461 Grep wants private fixed already mapped.
7462 The main things grep needs to know about mmap are:
7463 * does it exist and is it safe to write into the mmap'd area
7464 * how to use it (BSD variants) */
7466 #include <fcntl.h>
7467 #include <sys/mman.h>
7469 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7470 char *malloc ();
7471 #endif
7473 /* This mess was copied from the GNU getpagesize.h. */
7474 #ifndef HAVE_GETPAGESIZE
7475 # ifdef _SC_PAGESIZE
7476 # define getpagesize() sysconf(_SC_PAGESIZE)
7477 # else /* no _SC_PAGESIZE */
7478 # ifdef HAVE_SYS_PARAM_H
7479 # include <sys/param.h>
7480 # ifdef EXEC_PAGESIZE
7481 # define getpagesize() EXEC_PAGESIZE
7482 # else /* no EXEC_PAGESIZE */
7483 # ifdef NBPG
7484 # define getpagesize() NBPG * CLSIZE
7485 # ifndef CLSIZE
7486 # define CLSIZE 1
7487 # endif /* no CLSIZE */
7488 # else /* no NBPG */
7489 # ifdef NBPC
7490 # define getpagesize() NBPC
7491 # else /* no NBPC */
7492 # ifdef PAGESIZE
7493 # define getpagesize() PAGESIZE
7494 # endif /* PAGESIZE */
7495 # endif /* no NBPC */
7496 # endif /* no NBPG */
7497 # endif /* no EXEC_PAGESIZE */
7498 # else /* no HAVE_SYS_PARAM_H */
7499 # define getpagesize() 8192 /* punt totally */
7500 # endif /* no HAVE_SYS_PARAM_H */
7501 # endif /* no _SC_PAGESIZE */
7503 #endif /* no HAVE_GETPAGESIZE */
7506 main ()
7508 char *data, *data2, *data3;
7509 const char *cdata2;
7510 int i, pagesize;
7511 int fd, fd2;
7513 pagesize = getpagesize ();
7515 /* First, make a file with some known garbage in it. */
7516 data = (char *) malloc (pagesize);
7517 if (!data)
7518 return 1;
7519 for (i = 0; i < pagesize; ++i)
7520 *(data + i) = rand ();
7521 umask (0);
7522 fd = creat ("conftest.mmap", 0600);
7523 if (fd < 0)
7524 return 2;
7525 if (write (fd, data, pagesize) != pagesize)
7526 return 3;
7527 close (fd);
7529 /* Next, check that the tail of a page is zero-filled. File must have
7530 non-zero length, otherwise we risk SIGBUS for entire page. */
7531 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7532 if (fd2 < 0)
7533 return 4;
7534 cdata2 = "";
7535 if (write (fd2, cdata2, 1) != 1)
7536 return 5;
7537 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7538 if (data2 == MAP_FAILED)
7539 return 6;
7540 for (i = 0; i < pagesize; ++i)
7541 if (*(data2 + i))
7542 return 7;
7543 close (fd2);
7544 if (munmap (data2, pagesize))
7545 return 8;
7547 /* Next, try to mmap the file at a fixed address which already has
7548 something else allocated at it. If we can, also make sure that
7549 we see the same garbage. */
7550 fd = open ("conftest.mmap", O_RDWR);
7551 if (fd < 0)
7552 return 9;
7553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7555 return 10;
7556 for (i = 0; i < pagesize; ++i)
7557 if (*(data + i) != *(data2 + i))
7558 return 11;
7560 /* Finally, make sure that changes to the mapped area do not
7561 percolate back to the file as seen by read(). (This is a bug on
7562 some variants of i386 svr4.0.) */
7563 for (i = 0; i < pagesize; ++i)
7564 *(data2 + i) = *(data2 + i) + 1;
7565 data3 = (char *) malloc (pagesize);
7566 if (!data3)
7567 return 12;
7568 if (read (fd, data3, pagesize) != pagesize)
7569 return 13;
7570 for (i = 0; i < pagesize; ++i)
7571 if (*(data + i) != *(data3 + i))
7572 return 14;
7573 close (fd);
7574 free (data);
7575 free (data3);
7576 return 0;
7578 _ACEOF
7579 if ac_fn_c_try_run "$LINENO"; then :
7580 ac_cv_func_mmap_fixed_mapped=yes
7581 else
7582 ac_cv_func_mmap_fixed_mapped=no
7584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7585 conftest.$ac_objext conftest.beam conftest.$ac_ext
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7590 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7591 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7593 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7596 rm -f conftest.mmap conftest.txt
7599 #-----------------------------------------------------------------------------
7602 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7603 # it switched on by default, and we use the host compiler, so it compiles AROS
7604 # code with this enabled resulting in link failures as we don't have support
7605 # for it.
7607 # We use two methods to disable it. For the host compiler (used to compile
7608 # some hosted modules), we test to see if the compiler supports stack
7609 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7610 # work on all platforms.
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7614 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7615 save_cflags="$CFLAGS"
7616 CFLAGS="$CFLAGS -fno-stack-protector"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7621 main ()
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629 use_no_stack_protector="yes"
7630 else
7631 use_no_stack_protector="no"
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7635 $as_echo "$use_no_stack_protector" >&6; }
7636 if test "x-$use_no_stack_protector" = "x-yes" ; then
7637 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7639 CFLAGS="$save_cflags"
7641 #-----------------------------------------------------------------------------
7643 # Disable pointer-signedness warnings if the compiler recognises the option
7644 # (this only works for the host compiler at the moment)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7647 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7648 save_cflags="$CFLAGS"
7649 CFLAGS="$CFLAGS -Wno-pointer-sign"
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7654 main ()
7658 return 0;
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"; then :
7662 use_no_sign_warning="yes"
7663 else
7664 use_no_sign_warning="no"
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7668 $as_echo "$use_no_sign_warning" >&6; }
7669 if test "x-$use_no_sign_warning" = "x-yes" ; then
7670 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7672 CFLAGS="$save_cflags"
7674 #-----------------------------------------------------------------------------
7676 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7679 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7680 save_cflags="$CFLAGS"
7681 CFLAGS="$CFLAGS -fgnu89-inline"
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7686 main ()
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 use_gnu89_inline="yes"
7695 else
7696 use_gnu89_inline="no"
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7700 $as_echo "$use_gnu89_inline" >&6; }
7701 if test "x-$use_gnu89_inline" = "x-yes" ; then
7702 gnu89_inline="-fgnu89-inline"
7704 CFLAGS="$save_cflags"
7707 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7708 # On GCC >= 4.0 -iquote should be used
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7711 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7712 CFLAGS="$CFLAGS -iquote."
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7717 main ()
7721 return 0;
7723 _ACEOF
7724 if ac_fn_c_try_compile "$LINENO"; then :
7725 has_iquote="yes"
7726 else
7727 has_iquote="no"
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7731 $as_echo "$has_iquote" >&6; }
7732 if test "x-$has_iquote" = "x-yes" ; then
7733 host_cflags_iquote=-iquote
7734 host_cflags_iquote_end=
7735 else
7736 host_cflags_iquote=-I
7737 host_cflags_iquote_end=-I-
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7741 $as_echo "$as_me: Performing target configuration..." >&6;}
7744 test_kernel_cc=no
7746 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7747 export_newline="
7750 aros_elf_translate=
7751 aros_warn_flags=
7752 aros_isa_extra=
7753 aros_isa_flags=
7754 aros_config_cppflags=
7755 aros_config_cflags=
7756 aros_config_cxxflags=
7757 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7758 aros_config_ldflags=""
7760 aros_shared_default=yes
7762 aros_shared_cflags="-fPIC"
7763 aros_shared_aflags=""
7764 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7765 aros_kernel_ldflags="-Wl,-rpath,./lib"
7767 aros_kernel_ar_flags="cr"
7768 aros_target_ar_flags="cr"
7769 aros_target_nm_flags="-C -ul"
7770 aros_target_strip_flags="--strip-unneeded -R.comment"
7772 aros_c_libs=
7773 aros_cxx_libs=
7775 aros_target_genmap="-Wl,-Map -Xlinker"
7777 # Native flavour stuff
7778 aros_serial_debug="0"
7780 # Palm native flavour stuff
7781 aros_palm_debug_hack="0"
7783 # Unix flavour stuff
7784 aros_nesting_supervisor="0"
7786 # Collect-aros stuff: "-ius" to ignore undefined symbols
7787 ignore_undefined_symbols=""
7789 # Check for X11 by default
7790 need_x11="auto"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7793 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7795 # Check whether --with-toolchain was given.
7796 if test "${with_toolchain+set}" = set; then :
7797 withval=$with_toolchain; aros_toolchain="$withval"
7798 else
7799 aros_toolchain="$default_toolchain_family"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7803 $as_echo "$aros_toolchain" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7807 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7808 # Check whether --enable-lto was given.
7809 if test "${enable_lto+set}" = set; then :
7810 enableval=$enable_lto; aros_config_lto="$enableval"
7811 else
7812 aros_config_lto="no"
7815 if test "$aros_config_lto" != "no"; then
7816 aros_config_lto="yes"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7819 $as_echo "$aros_config_lto" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7822 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7823 # Check whether --enable-coverage was given.
7824 if test "${enable_coverage+set}" = set; then :
7825 enableval=$enable_coverage; aros_config_coverage="$enableval"
7826 else
7827 aros_config_coverage="no"
7830 if test "$aros_config_coverage" != "no"; then
7831 aros_config_coverage="yes"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7834 $as_echo "$aros_config_coverage" >&6; }
7836 use_ld_wrapper=yes
7838 case "$aros_toolchain" in
7839 *llvm*)
7840 toolchain_c_compiler="clang"
7841 toolchain_cxx_compiler="clang++"
7842 toolchain_cpp_preprocessor="clang -E"
7843 toolchain_ld="ld.lld"
7844 aros_ld="ld"
7845 toolchain_as="llvm-as"
7846 toolchain_ar="llvm-ar"
7847 toolchain_ranlib="llvm-ranlib"
7848 toolchain_nm="llvm-nm"
7849 toolchain_strip="true"
7850 toolchain_objcopy="llvm-objcopy"
7851 toolchain_objdump="llvm-objdump"
7852 use_libatomic=yes
7854 *gnu*)
7855 toolchain_c_compiler="gcc"
7856 toolchain_cxx_compiler="g++"
7857 toolchain_cpp_preprocessor="gcc -E"
7858 toolchain_as="as"
7859 aros_ld="ld"
7860 if test "$aros_config_lto" != "yes"; then
7861 toolchain_ld="ld"
7862 toolchain_ar="ar"
7863 toolchain_ranlib="ranlib"
7864 toolchain_nm="nm"
7865 else
7866 toolchain_ld="ld.bfd"
7867 toolchain_ar="gcc-ar"
7868 toolchain_ranlib="gcc-ranlib"
7869 toolchain_nm="gcc-nm"
7871 toolchain_strip="strip"
7872 toolchain_objcopy="objcopy"
7873 toolchain_objdump="objdump"
7874 use_libatomic=yes
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7878 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7879 toolchain_c_compiler="cc"
7880 toolchain_cxx_compiler="c++"
7881 toolchain_cpp_preprocessor="cpp"
7882 toolchain_ld="ld"
7883 aros_ld="ld"
7884 toolchain_as="as"
7885 toolchain_ar="ar"
7886 toolchain_ranlib="ranlib"
7887 toolchain_nm="nm"
7888 toolchain_strip="strip"
7889 toolchain_objcopy="objcopy"
7890 toolchain_objdump="objdump"
7892 esac
7894 #-----------------------------------------------------------------------------
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7897 $as_echo_n "checking which type of build to do... " >&6; }
7898 # Check whether --enable-build_type was given.
7899 if test "${enable_build_type+set}" = set; then :
7900 enableval=$enable_build_type; build_type=$enableval
7901 else
7902 build_type="personal"
7906 if test "$build_type" = "nightly"; then
7907 build_type_string="NIGHTLY"
7908 elif test "$build_type" = "snapshot"; then
7909 build_type_string="SNAPSHOT"
7910 elif test "$build_type" = "milestone"; then
7911 build_type_string="MILESTONE"
7912 elif test "$build_type" = "release"; then
7913 build_type_string="RELEASE"
7914 else
7915 build_type_string="PERSONAL"
7916 build_type="personal"
7919 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7922 $as_echo "$build_type" >&6; }
7924 #-----------------------------------------------------------------------------
7925 all_debug_types="messages stack modules mungwall symbols"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7928 $as_echo_n "checking which debug types to enable... " >&6; }
7929 # Check whether --enable-debug was given.
7930 if test "${enable_debug+set}" = set; then :
7931 enableval=$enable_debug; debug="$enableval"
7932 else
7933 debug=""
7937 if test "$debug" = "" -o "$debug" = "no"; then
7938 debug="none"
7939 elif test "$debug" = "yes"; then
7940 debug="all"
7943 if test "$debug" = "all" ; then
7944 debug="messages stack modules symbols"
7945 for d in $all_debug_types; do
7946 export aros_${d}_debug="1"
7947 done
7948 else
7949 for d in $all_debug_types; do
7950 export aros_${d}_debug="0"
7951 done
7954 if test "$debug" != "none"; then
7955 debug=`echo $debug | sed s/,/\ /g`
7956 for d in $debug; do
7957 found="0"
7958 for d2 in $all_debug_types; do
7959 if test "$d2" = "$d"; then
7960 found="1"
7961 break
7963 done
7964 if test "$found" = "0"; then
7965 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7967 export aros_${d}_debug="1"
7968 done
7969 aros_debug="yes"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7972 $as_echo "$debug" >&6; }
7974 if test "$aros_messages_debug" = "1"; then
7975 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7976 else
7977 aros_messages_debug=""
7979 if test "$aros_symbols_debug" = "1"; then
7980 aros_symbols_debug="-g"
7981 else
7982 aros_symbols_debug=""
7985 # These are the flags to pass when compiling debugged programs
7986 aros_debug_cppflags="$aros_messages_debug"
7987 aros_debug_cflags="$aros_symbols_debug"
7988 aros_debug_cxxflags=
7989 aros_debug_aflags=""
7990 aros_debug_ldflags="$aros_symbols_debug"
7992 #-----------------------------------------------------------------------------
7993 # Checking for distcc and ccache.
7995 # Always apply the transforms in this particular order. Basically you should
7996 # always run 'ccache distcc compiler' in that order for the best performance.
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7999 $as_echo_n "checking whether to enable distcc... " >&6; }
8000 # Check whether --enable-distcc was given.
8001 if test "${enable_distcc+set}" = set; then :
8002 enableval=$enable_distcc; distcc="$enableval"
8003 else
8004 distcc="no"
8007 if test "$distcc" != "" -a "$distcc" != "no"; then
8008 # AC_CHECK_PROG will print out the result in this case
8009 # Extract the first word of "distcc", so it can be a program name with args.
8010 set dummy distcc; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_DISTCC+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 case $DISTCC in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8036 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8038 esac
8040 DISTCC=$ac_cv_path_DISTCC
8041 if test -n "$DISTCC"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8043 $as_echo "$DISTCC" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8056 $as_echo_n "checking whether to enable ccache... " >&6; }
8057 # Check whether --enable-ccache was given.
8058 if test "${enable_ccache+set}" = set; then :
8059 enableval=$enable_ccache; ccache="$enableval"
8060 else
8061 ccache="no"
8064 if test "$ccache" != "" -a "$ccache" != "no"; then
8065 # AC_CHECK_PROG will print out the result in this case
8066 # Extract the first word of "ccache", so it can be a program name with args.
8067 set dummy ccache; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if ${ac_cv_prog_CCACHE+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 if test -n "$CCACHE"; then
8074 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_CCACHE="ccache"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8093 CCACHE=$ac_cv_prog_CCACHE
8094 if test -n "$CCACHE"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8096 $as_echo "$CCACHE" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8108 #-----------------------------------------------------------------------------
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8110 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8112 # Check whether --with-kernel-gcc-version was given.
8113 if test "${with_kernel_gcc_version+set}" = set; then :
8114 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8115 else
8116 kernel_tool_version=""
8119 if test "$kernel_tool_version" != "" ; then
8120 msg_result=$kernel_tool_version
8121 else
8122 msg_result="default"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8125 $as_echo "$msg_result" >&6; }
8127 #-----------------------------------------------------------------------------
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8129 $as_echo_n "checking what optimization flags to use... " >&6; }
8131 # Check whether --with-optimization was given.
8132 if test "${with_optimization+set}" = set; then :
8133 withval=$with_optimization; optimization_level="$withval"
8134 else
8135 optimization_level="unknown"
8138 if test "$optimization_level" = "unknown"; then
8139 optimization="default"
8140 if test "$debug" != "none"; then
8141 optimization_level="-O0"
8142 else
8143 optimization_level="-O2"
8145 else
8146 optimization="$optimization_level"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8149 $as_echo "$optimization" >&6; }
8151 paranoia_default=yes
8152 #-----------------------------------------------------------------------------
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8154 $as_echo_n "checking which paranoia flags to use... " >&6; }
8156 # Check whether --with-paranoia was given.
8157 if test "${with_paranoia+set}" = set; then :
8158 withval=$with_paranoia; paranoia_flags="$withval"
8159 else
8160 paranoia_flags="$paranoia_default"
8163 if test "$paranoia_flags" = "no"; then
8164 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8165 msg_result="none"
8166 else
8167 if test "$paranoia_flags" = "yes"; then
8168 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8170 msg_result="$paranoia_flags"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8173 $as_echo "$msg_result" >&6; }
8174 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8176 #-----------------------------------------------------------------------------
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8178 $as_echo_n "checking what target variant to enable... " >&6; }
8179 # Check whether --enable-target_variant was given.
8180 if test "${enable_target_variant+set}" = set; then :
8181 enableval=$enable_target_variant; target_variant=$enableval
8182 else
8183 target_variant=""
8186 if test "$target_variant" = ""; then
8187 aros_target_variant=""
8188 aros_target_suffix=""
8189 enableval="none"
8190 else
8191 aros_target_variant="$target_variant"
8192 aros_target_suffix="-$target_variant"
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8195 $as_echo "$enableval" >&6; }
8197 #-----------------------------------------------------------------------------
8198 # Target-specific defaults. You can override then on a per-target basis.
8200 # Bootloader name. Currently used by PC target.
8201 target_bootloader="none"
8202 PLATFORM_EXECSMP=
8203 ENABLE_EXECSMP=
8205 #-----------------------------------------------------------------------------
8206 # Additional options for some specific targets
8208 case "$aros_target_variant" in
8209 ios)
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8211 $as_echo_n "checking XCode path... " >&6; }
8213 # Check whether --with-xcode was given.
8214 if test "${with_xcode+set}" = set; then :
8215 withval=$with_xcode; aros_xcode_path="$withval"
8216 else
8217 aros_xcode_path="/Developer"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8221 $as_echo "$aros_xcode_path" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8224 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8226 # Check whether --with-sdk-version was given.
8227 if test "${with_sdk_version+set}" = set; then :
8228 withval=$with_sdk_version; aros_sdk_version="$withval"
8229 else
8230 aros_sdk_version="4.1"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8234 $as_echo "$aros_sdk_version" >&6; }
8238 "android")
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8240 $as_echo_n "checking Android SDK path... " >&6; }
8242 # Check whether --with-sdk was given.
8243 if test "${with_sdk+set}" = set; then :
8244 withval=$with_sdk; aros_android_sdk="$withval"
8245 else
8246 aros_android_sdk=$default_android_sdk
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8250 $as_echo "$aros_android_sdk" >&6; }
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8253 $as_echo_n "checking Android NDK path... " >&6; }
8255 # Check whether --with-ndk was given.
8256 if test "${with_ndk+set}" = set; then :
8257 withval=$with_ndk; aros_android_ndk="$withval"
8258 else
8259 aros_android_ndk="none"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8263 $as_echo "$aros_android_ndk" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8266 $as_echo_n "checking what Android SDK version to use... " >&6; }
8268 # Check whether --with-sdk-version was given.
8269 if test "${with_sdk_version+set}" = set; then :
8270 withval=$with_sdk_version; aros_sdk_version="$withval"
8271 else
8272 aros_sdk_version="12"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8276 $as_echo "$aros_sdk_version" >&6; }
8278 aros_android_level=android-$aros_sdk_version
8279 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8280 echo "Platform $aros_android_level is not installed in your SDK"
8281 echo "Use --with-sdk-version=<API level number> to select another platform version"
8282 echo "You can check what plaform versions are installed in your SDK"
8283 echo "by examining contents of $aros_android_sdk/platforms directory"
8284 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8287 export PATH="$aros_android_sdk/tools:$PATH"
8288 # Extract the first word of "$android_tool", so it can be a program name with args.
8289 set dummy $android_tool; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_path_android_tool+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 case $android_tool in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8316 esac
8318 android_tool=$ac_cv_path_android_tool
8319 if test -n "$android_tool"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8321 $as_echo "$android_tool" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8328 req_avail=yes
8329 if test "$android_tool" = ""; then
8330 req_avail=no
8332 if test "$android_tool" = "no"; then
8333 req_avail=no
8335 if test "$req_avail" = "no"; then
8336 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8339 if test "$aros_android_ndk" != "none"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8341 $as_echo_n "checking what Android NDK version to use... " >&6; }
8343 # Check whether --with-ndk-version was given.
8344 if test "${with_ndk_version+set}" = set; then :
8345 withval=$with_ndk_version; aros_ndk_version="$withval"
8346 else
8347 aros_ndk_version="9"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8351 $as_echo "$aros_ndk_version" >&6; }
8354 # Extract the first word of "ant", so it can be a program name with args.
8355 set dummy ant; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_path_ant+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 case $ant in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8379 IFS=$as_save_IFS
8382 esac
8384 ant=$ac_cv_path_ant
8385 if test -n "$ant"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8387 $as_echo "$ant" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 if test "$ant" = ""; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8396 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8400 $as_echo_n "checking Build debug or release apk... " >&6; }
8402 # Check whether --with-apk-version was given.
8403 if test "${with_apk_version+set}" = set; then :
8404 withval=$with_apk_version; aros_android_antapk=$withval
8405 else
8406 aros_android_antapk=release
8409 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8410 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8413 $as_echo "$aros_android_antapk" >&6; }
8415 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8416 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8417 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8419 if test "$host_os" = "mingw32"; then
8420 android_tool="cmd //c $android_tool"
8423 need_dlopen="no"
8426 esac
8428 #-----------------------------------------------------------------------------
8429 # External toolchains
8430 kernel_tool_prefix="none"
8431 aros_tool_prefix="none"
8432 elf_tool_prefix="${target_cpu}-elf-"
8434 # Base target cpu ISA configuration switch.
8435 case "$target_cpu" in
8436 *aarch64*)
8438 *arm*)
8440 *m68k*)
8441 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8442 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8443 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8444 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8445 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8446 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8447 m68k_020_ext="ISA_MC68020_EXT :=020"
8448 m68k_030_ext="ISA_MC68030_EXT :=030"
8449 m68k_040_ext="ISA_MC68040_EXT :=040"
8450 m68k_060_ext="ISA_MC68060_EXT :=060"
8451 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8452 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8453 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8454 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8455 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8456 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8457 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8458 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8459 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8460 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8461 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8462 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8464 *x86_64* | *i?86*)
8465 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8466 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8468 *powerpc*)
8470 esac
8472 # This is the target configuration switch.
8473 case "$target_os" in
8474 linux*)
8475 aros_target_arch="linux"
8476 aros_target_family="unix"
8477 case "$target_cpu" in
8478 *m68k*)
8479 aros_target_cpu="m68k"
8480 aros_object_format="m68kelf"
8481 aros_flavour="emulcompat"
8482 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8483 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8484 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8485 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8486 gcc_target_cpu="mc68000"
8488 *i?86*)
8489 aros_target_cpu="i386"
8490 aros_object_format="elf_i386"
8491 aros_flavour="emulation"
8492 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8493 aros_isa_flags="$""(ISA_X86_FLAGS)"
8494 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8495 aros_kernel_ldflags="-Wl,-melf_i386"
8496 aros_nominal_depth=8
8497 gcc_target_cpu="i386"
8498 pci_hidd_target="hidd-pci-linux"
8499 android_tool_dir_prefix="x86"
8500 android_tool_prefix="i686-android-linux"
8501 android_ndk_arch="x86"
8503 *x86_64*)
8504 aros_target_cpu="x86_64"
8505 aros_object_format="elf_x86_64"
8506 aros_flavour="emulation"
8507 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8508 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8509 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8510 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8511 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8512 aros_nominal_depth=8
8513 pci_hidd_target="hidd-pci-linux"
8515 *powerpc*)
8516 aros_target_cpu="ppc"
8517 aros_object_format="elf32ppc"
8518 aros_flavour="emulation"
8519 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8520 aros_nominal_depth=8
8521 gcc_target_cpu="ppc"
8523 # TODO
8524 # Same as powerpc, but I need this for the nightly build to work again.
8525 # Actually, the nightly should be made working with powerpc target.
8526 # That just was too much work for the moment, another week or two.
8527 *ppc*)
8528 aros_target_cpu="ppc"
8529 aros_object_format="elf32ppc"
8530 aros_flavour="emulation"
8531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8532 aros_nominal_depth=8
8533 gcc_target_cpu="ppc"
8535 *aarch64*)
8536 aros_target_cpu="aarch64"
8537 target_cpu="aarch64"
8538 aros_object_format="aarch64elf_aros"
8539 aros_flavour="emulation"
8540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8541 gcc_target_cpu="aarch64"
8542 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8543 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8544 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8545 aros_c_libs="$aros_c_libs -laeabi"
8546 gcc_default_float_abi="hard"
8547 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8549 *armhf*)
8550 aros_target_cpu="arm"
8551 target_cpu="arm"
8552 aros_object_format="armelf_aros"
8553 aros_flavour="emulation"
8554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8555 gcc_target_cpu="arm"
8556 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8557 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8558 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8559 aros_c_libs="$aros_c_libs -laeabi"
8560 gcc_default_float_abi="hard"
8561 android_tool_dir_prefix="arm-linux-androideabi"
8562 android_tool_prefix="arm-linux-androideabi"
8563 android_ndk_arch="arm"
8564 kernel_tool_prefix="arm-linux-gnueabihf-"
8566 *arm*)
8567 aros_target_cpu="arm"
8568 aros_object_format="armelf_aros"
8569 aros_flavour="emulation"
8570 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8571 gcc_target_cpu="arm"
8572 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8573 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8574 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8575 aros_c_libs="$aros_c_libs -laeabi"
8576 android_tool_dir_prefix="arm-linux-androideabi"
8577 android_tool_prefix="arm-linux-androideabi"
8578 android_ndk_arch="arm"
8579 kernel_tool_prefix="arm-linux-gnueabi-"
8582 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8584 esac
8585 case "$aros_target_variant" in
8586 android)
8588 if test "$android_ndk_arch" = ""; then
8589 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8592 aros_nominal_width=320
8593 aros_nominal_height=480
8594 if test "$aros_android_ndk" = "none"; then
8595 aros_kernel_cflags="-mandroid"
8596 aros_kernel_ldflags="-mandroid"
8597 CFLAGS="-mandroid"
8598 else
8599 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8600 kernel_tool_version=""
8601 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8602 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8603 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8604 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8605 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8607 need_x11=no
8608 # Disable implicit PIC mode
8609 aros_config_cflags="$aros_config_cflags -fno-pic"
8610 kernel_tool_prefix="$android_tool_prefix-"
8612 esac
8616 aros_target_arch="pc"
8617 aros_shared_default="no"
8618 target_bootloader="grub2"
8619 case "$target_cpu" in
8620 *i?86*)
8621 aros_target_cpu="i386"
8624 if test "$aros_object_format" = "" ; then
8625 aros_object_format="elf_i386"
8627 aros_flavour="standalone"
8628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8629 aros_isa_flags="$""(ISA_X86_FLAGS)"
8630 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8631 aros_kernel_ldflags="-Wl,-melf_i386"
8632 aros_nominal_width=640
8633 aros_nominal_height=480
8634 gcc_target_cpu="i386"
8636 *x86_64*)
8637 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8638 aros_target_cpu="x86_64"
8639 aros_serial_debug=1
8640 if test "$aros_object_format" = "" ; then
8641 aros_object_format="elf_x86_64"
8643 aros_flavour="standalone"
8644 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8645 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8646 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8647 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8648 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8649 aros_kernel_ldflags=""
8650 aros_nominal_width=640
8651 aros_nominal_height=480
8652 case "$aros_target_variant" in
8653 smp)
8654 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8656 esac
8659 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8661 esac
8664 prep)
8665 aros_target_arch="prep"
8666 aros_shared_default="no"
8667 aros_target_cpu="ppc"
8668 aros_object_format="elf32ppc"
8669 aros_flavour="ppcnative"
8670 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8671 aros_kernel_ldflags=""
8672 aros_nominal_width=640
8673 aros_nominal_height=480
8674 gcc_target_cpu="ppc"
8677 freebsd*)
8678 aros_target_arch="freebsd"
8679 aros_target_family="unix"
8680 aros_target_cpu="i386"
8681 aros_flavour="emulation"
8682 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8683 gcc_target_cpu="i386"
8685 aros_target_strip_flags="-x"
8688 darwin*)
8689 aros_target_arch="darwin"
8690 aros_target_family="unix"
8691 aros_flavour="emulation"
8692 case "$target_cpu" in
8693 *i?86*)
8694 aros_ios_platform="iPhoneSimulator"
8695 aros_target_cpu="i386"
8696 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8697 aros_isa_flags="$""(ISA_X86_FLAGS)"
8698 aros_kernel_ldflags=""
8699 aros_macosx_version="10.4"
8700 aros_nominal_depth=8
8701 gcc_target_cpu="i386"
8702 aros_object_format="elf_i386"
8703 aros_kernel_ar_flags="-cr"
8704 aros_target_strip_flags="-x"
8705 kernel_tool_flags="-m32"
8707 *x86_64*)
8708 aros_target_cpu="x86_64"
8709 aros_object_format="elf_x86_64"
8710 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8711 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8712 aros_macosx_version="10.6"
8713 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8714 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8715 aros_kernel_cflags="-m64"
8716 aros_kernel_ldflags="-m64"
8717 aros_nominal_depth=8
8718 aros_kernel_rs="$AR"
8719 aros_kernel_ar_flags="-cr"
8720 aros_kernel_ld="$LD"
8721 aros_kernel_as="$AS"
8722 aros_kernel_ranlib="$RANLIB"
8723 aros_kernel_nm="$NM"
8724 aros_kernel_strip="strip"
8725 kernel_tool_prefix="i686-apple-darwin10-"
8727 *ppc*)
8728 aros_target_cpu="ppc"
8729 aros_object_format="elf32ppc"
8730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8731 aros_kernel_ldflags=""
8732 aros_macosx_version="10.0"
8733 aros_nominal_depth=8
8734 gcc_target_cpu="ppc"
8735 aros_kernel_rs="$AR"
8736 aros_kernel_ar_flags="-cr"
8737 aros_kernel_ld="$LD -arch ppc"
8738 aros_kernel_as="$AS -arch ppc"
8739 aros_kernel_ranlib="$RANLIB -arch ppc"
8740 aros_kernel_nm="$NM -arch ppc"
8741 aros_kernel_strip="strip -arch ppc"
8742 kernel_tool_prefix="powerpc-apple-darwin10-"
8744 *arm*)
8745 aros_ios_platform="iPhoneOS"
8746 aros_target_cpu="arm"
8747 aros_object_format="armelf_aros"
8748 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8749 aros_c_libs="$aros_c_libs -laeabi"
8750 aros_nominal_depth=8
8751 gcc_target_cpu="arm"
8752 aros_kernel_rs="$AR"
8753 aros_kernel_ar_flags="-cr"
8754 aros_kernel_ld="$LD -arch arm"
8755 aros_kernel_ranlib="$RANLIB -arch arm"
8756 kernel_tool_prefix="arm-apple-darwin10-"
8757 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8760 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8762 esac
8763 case "$aros_target_variant" in
8764 ios)
8765 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8766 aros_ios_version="3.0"
8767 aros_nominal_width=320
8768 aros_nominal_height=480
8769 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8770 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"
8771 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8772 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8773 need_x11=no
8774 # This is here because it may depend on iOS or SDK version
8775 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8776 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8777 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8780 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8781 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8783 esac
8786 dragonfly*)
8787 aros_target_arch="dragonfly"
8788 aros_target_family="unix"
8789 aros_flavour="emulation"
8790 case "$target_cpu" in
8791 *i?86*)
8792 aros_target_cpu="i386"
8793 aros_object_format="elf_i386"
8794 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8795 aros_isa_flags="$""(ISA_X86_FLAGS)"
8797 *x86_64*)
8798 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8799 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8800 aros_target_cpu="x86_64"
8801 aros_object_format="elf_x86_64"
8802 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8803 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8806 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8808 esac
8811 netbsd*)
8812 aros_target_arch="netbsd"
8813 aros_target_family="unix"
8814 case "$target_cpu" in
8815 *m68k*)
8816 aros_target_cpu="m68k"
8817 aros_object_format="m68kelf"
8818 aros_flavour="emulcompat"
8819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8820 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8821 gcc_target_cpu="mc68000"
8823 *i?86*)
8824 aros_target_cpu="i386"
8825 aros_object_format="elf_i386"
8826 aros_flavour="emulation"
8827 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8828 aros_isa_flags="$""(ISA_X86_FLAGS)"
8829 aros_nominal_depth=8
8830 gcc_target_cpu="i386"
8833 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8835 esac
8836 aros_target_genmap="-Wl,-M -Xlinker >"
8837 aros_flavour="emulation"
8838 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8841 openbsd*)
8842 aros_target_arch="openbsd"
8843 aros_target_family="unix"
8844 case "$target_cpu" in
8845 *i?86*)
8846 aros_target_cpu="i386"
8847 aros_object_format="elf_i386"
8848 aros_flavour="emulation"
8849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8850 aros_isa_flags="$""(ISA_X86_FLAGS)"
8851 gcc_target_cpu="i386"
8854 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8856 esac
8857 aros_target_genmap="-Wl,-M -Xlinker >"
8858 aros_target_nm_flags="-u"
8859 aros_flavour="emulation"
8862 solaris*)
8863 aros_target_arch="solaris"
8864 aros_target_family="unix"
8865 case "$target_cpu" in
8866 *i?86*)
8867 aros_target_cpu="i386"
8868 aros_object_format="elf_i386"
8869 aros_flavour="emulation"
8870 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8871 aros_isa_flags="$""(ISA_X86_FLAGS)"
8872 aros_nominal_depth=8
8873 gcc_target_cpu="i386"
8875 *sparc*)
8876 aros_target_cpu="sparc"
8877 aros_object_format="elf_sparc"
8878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8879 gcc_target_cpu="sparc"
8882 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8884 esac
8885 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8886 aros_flavour="emulation"
8889 morphos*)
8890 aros_target_arch="morphos"
8891 aros_shared_default="no"
8892 aros_target_cpu="ppc"
8893 aros_object_format="elf_ppc"
8894 aros_flavour="nativecompat"
8895 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8896 gcc_target_cpu="ppc"
8899 sam440)
8900 aros_target_arch="sam440"
8901 aros_shared_default="no"
8902 aros_target_cpu="ppc"
8903 aros_object_format="elf32ppc"
8904 aros_flavour="ppcnative"
8905 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8906 aros_kernel_ldflags=""
8907 aros_nominal_width=1024
8908 aros_nominal_height=768
8909 aros_nominal_depth=24
8910 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8911 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8912 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8913 gcc_target_cpu="powerpc"
8916 efika)
8917 aros_target_arch="efika"
8918 aros_shared_default="no"
8919 aros_target_cpu="arm"
8920 aros_object_format="armelf_aros"
8921 aros_flavour="standalone"
8922 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8923 aros_kernel_ldflags=""
8924 aros_nominal_width=1024
8925 aros_nominal_height=600
8926 aros_c_libs="$aros_c_libs -laeabi"
8927 gcc_default_cpu="armv7-a"
8928 gcc_default_fpu="vfpv3"
8929 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8930 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8931 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8932 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8933 if test "$optimization" = "default"; then
8934 optimization_level="-Os"
8936 case "$target_cpu" in
8937 *armhf*)
8938 gcc_default_float_abi="hard"
8939 target_cpu=arm
8940 aros_target_cpu=arm
8942 *arm*)
8943 gcc_default_float_abi="softfp"
8946 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8948 esac
8951 chrp)
8952 aros_target_arch="chrp"
8953 aros_shared_default="no"
8954 aros_target_cpu="ppc"
8955 aros_object_format="elf32ppc"
8956 aros_flavour="ppcnative"
8957 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8958 aros_kernel_ldflags=""
8959 aros_nominal_width=640
8960 aros_nominal_height=480
8961 aros_isa_flags="$aros_isa_flags -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"
8965 case "$aros_target_variant" in
8966 efika)
8967 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8968 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8970 esac
8973 r*pi)
8974 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8975 aros_flavour="standalone"
8976 aros_target_arch="raspi"
8978 aros_shared_default="no"
8980 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8982 case "$target_cpu" in
8983 *aarch64*)
8984 aros_target_cpu="aarch64"
8985 gcc_default_cpu="aarch64"
8986 aros_object_format="aarch64elf_aros"
8988 *armhf*)
8989 aros_target_cpu="arm"
8990 gcc_default_cpu="armv6zk"
8991 gcc_default_cpu_tune="arm1176jzf-s"
8992 aros_object_format="armelf_aros"
8993 aros_isa_flags="$aros_isa_flags -marm"
8994 aros_config_cflags="$aros_config_cflags"
8995 aros_config_cxxflags="$aros_config_cxxflags"
8996 aros_config_aflags="$aros_config_aflags -marm"
8997 aros_kernel_cflags="$aros_kernel_cflags -marm"
8998 aros_target_mkdep="$aros_target_mkdep -Darm"
8999 aros_c_libs="$aros_c_libs -laeabi"
9001 *armeb*)
9002 aros_flavour="standcompat"
9003 aros_target_cpu="armeb"
9004 gcc_default_float_abi="hard"
9005 gcc_default_cpu="armv7ve"
9006 gcc_default_cpu_tune="cortex-a7"
9007 aros_object_format="armelfb_aros"
9008 aros_isa_flags="$aros_isa_flags -marm"
9009 aros_config_cflags="$aros_config_cflags"
9010 aros_config_cxxflags="$aros_config_cxxflags"
9011 aros_config_aflags="$aros_config_aflags -marm"
9012 aros_kernel_cflags="$aros_kernel_cflags -marm"
9013 aros_target_mkdep="$aros_target_mkdep -Darm"
9014 aros_c_libs="$aros_c_libs -laeabi"
9016 *arm*)
9017 aros_target_cpu="arm"
9018 gcc_default_cpu="armv6zk"
9019 gcc_default_cpu_tune="arm1176jzf-s"
9020 aros_object_format="armelf_aros"
9021 aros_isa_flags="$aros_isa_flags -marm"
9022 aros_config_cflags="$aros_config_cflags"
9023 aros_config_cxxflags="$aros_config_cxxflags"
9024 aros_config_aflags="$aros_config_aflags -marm"
9025 aros_kernel_cflags="$aros_kernel_cflags -marm"
9026 aros_target_mkdep="$aros_target_mkdep -Darm"
9027 aros_c_libs="$aros_c_libs -laeabi"
9030 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9032 esac
9034 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9035 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9036 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9037 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9039 case "$aros_target_variant" in
9040 smp)
9041 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9043 esac
9046 stm32f7_discovery)
9047 aros_flavour="standalone"
9048 aros_target_arch="stm32f7_discovery"
9049 aros_target_cpu="arm"
9050 aros_target_cpu_mode="thumb2"
9051 aros_object_format="armelf_aros"
9052 aros_shared_default="no"
9054 gcc_default_cpu="armv7e-m"
9055 gcc_default_cpu_tune="cortex-m7"
9056 gcc_default_fpu="fpv5-sp-d16"
9057 gcc_default_float_abi="hard"
9059 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9062 amiga*)
9063 aros_elf_translate="$""(ELF2HUNK)"
9064 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9065 aros_target_arch="amiga"
9066 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9067 aros_shared_default="no"
9069 case "$target_cpu" in
9070 *m68k*)
9071 # Check whether --enable-amigaos_compliance was given.
9072 if test "${enable_amigaos_compliance+set}" = set; then :
9073 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9076 aros_enable_mmu=no
9077 aros_target_cpu="m68k"
9078 aros_object_format="m68kelf"
9079 aros_flavour="standcompat"
9080 gcc_target_cpu="m68000"
9081 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9082 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9083 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9084 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9085 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9086 if test "$optimization" = "default"; then
9087 optimization_level="-Os"
9089 aros_config_aflags="$aros_config_aflags"
9090 aros_target_strip_flags="-R.comment --strip-debug"
9091 aros_nominal_width=640
9092 aros_nominal_height=256
9093 aros_nominal_depth=2
9095 *ppc*)
9096 aros_cpu="ppc"
9097 aros_flavour="native"
9098 gcc_target_cpu="ppc"
9101 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9103 esac
9106 mingw*)
9107 aros_target_arch="mingw32"
9108 aros_shared_default="no"
9109 aros_flavour="emulation"
9110 aros_shared_cflags=""
9111 need_crosstools="yes"
9112 need_dlopen="no"
9113 rescomp="windres"
9114 case "$target_cpu" in
9115 *i?86*)
9116 aros_target_cpu="i386"
9117 aros_object_format="elf_i386"
9118 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9119 aros_isa_flags="$""(ISA_X86_FLAGS)"
9120 aros_nominal_depth=8
9121 gcc_target_cpu="i386"
9123 kernel_tool_prefix="i386-mingw32-"
9125 *x86_64*)
9126 aros_target_cpu="x86_64"
9127 aros_object_format="elf_x86_64"
9128 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9129 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9130 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9131 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9132 aros_nominal_depth=8
9133 kernel_tool_prefix="x86_64-w64-mingw32-"
9135 *arm*)
9136 aros_target_cpu="arm"
9137 aros_object_format="armelf_aros"
9138 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9139 aros_c_libs="$aros_c_libs -laeabi"
9140 aros_nominal_depth=8
9141 gcc_target_cpu="arm"
9142 gcc_default_float_abi="soft"
9143 kernel_tool_prefix="arm-mingw32ce-"
9144 aros_nominal_width=160
9145 aros_nominal_height=160
9148 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9150 esac
9151 if test $host_os = "cygwin"; then
9152 aros_kernel_cflags="-mno-cygwin"
9155 pp*)
9156 aros_target_arch="pp"
9157 aros_shared_default="no"
9158 case "$target_cpu" in
9159 *m68k*)
9160 aros_target_cpu="m68k"
9161 aros_object_format="m68kelf"
9162 aros_flavour="palmnative"
9163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9164 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9165 aros_nominal_width=160
9166 aros_nominal_height=160
9167 aros_nominal_depth=1
9168 aros_target_ar_flags="cru"
9169 aros_c_libs="$aros_c_libs -lgcc1"
9170 aros_shared_default=no
9171 aros_shared_cflags="-fpic"
9172 aros_shared_aflags=""
9173 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9174 aros_kernel_ldflags="-Wl,-rpath,./lib"
9175 aros_debug_cppflags="$aros_messages_debug"
9176 aros_debug_cflags="$aros_symbols_debug"
9177 aros_debug_aflags=""
9178 aros_debug_ldflags="$aros_symbols_debug"
9179 aros_mungwall_debug="0"
9180 aros_modules_debug="0"
9181 gcc_target_cpu="mc68000"
9182 ignore_undefined_symbols="-ius"
9185 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9187 esac
9190 mac*)
9191 aros_target_arch="mac"
9192 aros_shared_default="no"
9193 case "$target_cpu" in
9194 *m68k*)
9195 aros_target_cpu="m68k"
9196 aros_object_format="m68kelf"
9197 aros_flavour="mac68knative"
9198 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9199 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9200 aros_nominal_width=512
9201 aros_nominal_height=384
9202 aros_nominal_depth=8
9203 aros_target_ar_flags="cru"
9204 aros_c_libs="$aros_c_libs -lgcc1"
9205 aros_shared_default=no
9206 aros_shared_cflags="-fpic"
9207 aros_shared_aflags=""
9208 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9209 aros_kernel_ldflags="-Wl,-rpath,./lib"
9210 aros_debug_cppflags="$aros_messages_debug"
9211 aros_debug_cflags="$aros_symbols_debug"
9212 aros_debug_aflags=""
9213 aros_debug_ldflags="$aros_symbols_debug"
9214 aros_mungwall_debug="0"
9215 aros_modules_debug="0"
9216 gcc_target_cpu="mc68000"
9217 ignore_undefined_symbols="-ius"
9220 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9222 esac
9226 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9228 esac
9230 #-----------------------------------------------------------------------------
9231 crosstools_guess="yes"
9232 aros_target_toolchain="no"
9233 aros_kernel_sysroot=""
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9236 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9238 # Check whether --with-kernel-toolchain-prefix was given.
9239 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9240 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9244 $as_echo "$kernel_tool_prefix" >&6; }
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9247 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9249 # Check whether --with-elf-toolchain-prefix was given.
9250 if test "${with_elf_toolchain_prefix+set}" = set; then :
9251 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9252 crosstools_guess="no"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9256 $as_echo "$elf_tool_prefix" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9259 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9261 # Check whether --with-aros-toolchain was given.
9262 if test "${with_aros_toolchain+set}" = set; then :
9263 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9264 crosstools_guess="no"
9267 if test "$aros_tool_prefix" = "yes" ; then
9268 aros_tool_prefix=$aros_target_cpu-aros-
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9271 $as_echo "$aros_tool_prefix" >&6; }
9273 #-----------------------------------------------------------------------------
9274 # Checking if we should build crosstools..
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9276 $as_echo_n "checking whether to build crosstools... " >&6; }
9277 # Check whether --enable-crosstools was given.
9278 if test "${enable_crosstools+set}" = set; then :
9279 enableval=$enable_crosstools; crosstools="$enableval"
9280 else
9281 crosstools="$crosstools_guess"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9285 $as_echo "$crosstools" >&6; }
9287 if test "${crosstools}" = "yes"; then
9288 if test "${crosstools_guess}" = "no"; then
9289 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9293 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9294 aros_target_toolchain="yes"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9298 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9300 # Check whether --with-aros-toolchain-install was given.
9301 if test "${with_aros_toolchain_install+set}" = set; then :
9302 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9305 if test "x$aros_toolchain_install" = "x"; then
9306 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9307 else
9308 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9309 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9310 if test "$crosstools_guess" = "no" ; then
9311 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9312 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9317 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9319 #-----------------------------------------------------------------------------
9320 if test "$aros_toolchain" = "gnu" ; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9322 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9325 # Check whether --with-binutils-version was given.
9326 if test "${with_binutils_version+set}" = set; then :
9327 withval=$with_binutils_version; use_binutils_version="$withval"
9328 else
9329 use_binutils_version=""
9332 if test "$use_binutils_version" = ""; then
9333 target_binutils_version="$default_binutils_version"
9334 else
9335 target_binutils_version="$use_binutils_version"
9337 if test "$aros_toolchain" = "gnu" ; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9339 $as_echo "$target_binutils_version" >&6; }
9343 # Helper to identify gcc version
9346 #-----------------------------------------------------------------------------
9347 if test "$aros_toolchain" = "gnu" ; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9349 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9352 # Check whether --with-gcc-version was given.
9353 if test "${with_gcc_version+set}" = set; then :
9354 withval=$with_gcc_version; use_gcc_version="$withval"
9355 else
9356 use_gcc_version=""
9359 if test "$use_gcc_version" = ""; then
9360 if test "${crosstools}" = "no"; then
9361 if test "x$aros_toolchain_install" != "x"; then
9363 target_gcc_version=""
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9365 $as_echo_n "checking gcc version... " >&6; }
9366 if ${ax_cv_gcc_version+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9370 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9371 if test "x$ax_cv_gcc_version" = "x"; then :
9373 ax_cv_gcc_version=""
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9379 $as_echo "$ax_cv_gcc_version" >&6; }
9380 target_gcc_version=$ax_cv_gcc_version
9385 if test "$use_gcc_version" = ""; then
9386 target_gcc_version="$default_gcc_version"
9388 else
9389 target_gcc_version="$use_gcc_version"
9391 if test "$aros_toolchain" = "gnu" ; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9393 $as_echo "$target_gcc_version" >&6; }
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9396 $as_echo_n "checking version string style... " >&6; }
9397 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9399 $as_echo "snapshot" >&6; }
9400 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9401 GCC_VERSION_MINOR=-1
9402 GCC_VERSION_PATCH=-1
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9405 $as_echo "release" >&6; }
9406 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9407 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9408 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9411 gcc_fix_bitfields="false"
9412 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9413 gcc_fix_bitfields="true"
9414 else
9415 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9416 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9417 gcc_fix_bitfields="true"
9422 if test "$gcc_fix_bitfields" = "true" ; then
9423 case "$aros_target_cpu" in
9424 *x86_64* | *i?86*)
9425 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9426 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9428 esac
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9433 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9434 # Check whether --enable-objc was given.
9435 if test "${enable_objc+set}" = set; then :
9436 enableval=$enable_objc; objc="$enableval"
9437 else
9438 objc="no"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9442 $as_echo "$objc" >&6; }
9443 if test "x$objc" = "xyes"; then
9444 objc_target="$objc"
9445 else
9446 objc_target="no-objc"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9450 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9451 # Check whether --enable-java was given.
9452 if test "${enable_java+set}" = set; then :
9453 enableval=$enable_java; java="$enableval"
9454 else
9455 java="no"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9459 $as_echo "$java" >&6; }
9460 if test "x$java" != "xno"; then
9461 java_target="$java"
9462 else
9463 java_target="no-java"
9466 spec_obj_format="-m $aros_object_format"
9467 # Now process extra architecture-specific options.
9468 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9469 # as well as floating-point ABI.
9470 case "$aros_target_cpu" in
9471 *m68k*)
9472 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9473 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9474 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"
9475 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"
9476 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"
9477 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"
9478 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"
9480 *x86_64*)
9481 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9482 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9484 arm*)
9485 if test "$gcc_default_cpu" = ""; then
9486 gcc_default_cpu="armv6"
9488 if test "$gcc_default_fpu" = ""; then
9489 gcc_default_fpu="vfp"
9491 if test "$gcc_default_endian" = ""; then
9492 if test "$target_cpu" = "armeb"; then
9493 gcc_default_endian="big-endian"
9494 else
9495 gcc_default_endian="little-endian"
9498 if test "$gcc_default_float_abi" = ""; then
9499 if test "$target_cpu" = "armhf"; then
9500 gcc_default_float_abi="hard"
9501 else
9502 gcc_default_float_abi="softfp"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9507 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9509 # Check whether --with-cpu was given.
9510 if test "${with_cpu+set}" = set; then :
9511 withval=$with_cpu; aros_gcc_cpu="$withval"
9512 else
9513 aros_gcc_cpu=$gcc_default_cpu
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9517 $as_echo "$aros_gcc_cpu" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9520 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9522 # Check whether --with-fpu was given.
9523 if test "${with_fpu+set}" = set; then :
9524 withval=$with_fpu; aros_gcc_fpu="$withval"
9525 else
9526 aros_gcc_fpu=$gcc_default_fpu
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9530 $as_echo "$aros_gcc_fpu" >&6; }
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9533 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9535 # Check whether --with-float was given.
9536 if test "${with_float+set}" = set; then :
9537 withval=$with_float; aros_gcc_float_abi="$withval"
9538 else
9539 aros_gcc_float_abi=$gcc_default_float_abi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9543 $as_echo "$aros_gcc_float_abi" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9546 $as_echo_n "checking Which ARM mode to use... " >&6; }
9547 if test "$aros_target_cpu_mode" = ""; then
9548 aros_target_cpu_mode="arm32"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9550 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9553 $as_echo "$aros_target_cpu_mode" >&6; }
9556 case "$aros_target_cpu_mode" in
9557 arm32)
9558 gcc_default_mode="arm"
9559 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"
9561 arm64)
9562 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9564 thumb)
9565 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9567 thumb1)
9568 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9570 thumb2)
9571 gcc_default_mode="thumb"
9572 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9573 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"
9576 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9578 esac
9580 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9581 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9582 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9584 i386)
9585 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9586 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9588 esac
9590 # Some architectures may need custom ELF specs.
9591 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9592 elf_specs_in=config/${aros_object_format}-specs.in
9593 else
9594 elf_specs_in=config/elf-specs.in
9597 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9598 # Since we override specs, we may need to put these defines there
9599 if test "$gcc_target_cpu" != ""; then
9600 gcc_target_cpu="-D__${gcc_target_cpu}__"
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9604 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9606 # Check whether --with-portssources was given.
9607 if test "${with_portssources+set}" = set; then :
9608 withval=$with_portssources; with_portssrcdir=$withval
9609 else
9610 with_portssrcdir="default"
9613 if test "$with_portssrcdir" = "default"; then
9614 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9615 else
9616 AROS_PORTSSRCDIR="$with_portssrcdir"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9619 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9622 $as_echo_n "checking which bootloader to use... " >&6; }
9624 # Check whether --with-bootloader was given.
9625 if test "${with_bootloader+set}" = set; then :
9626 withval=$with_bootloader; target_bootloader=$withval
9627 else
9628 target_bootloader=$target_bootloader
9631 if test "$target_bootloader" = "none"; then
9632 aros_target_bootloader=""
9633 else
9634 aros_target_bootloader="$target_bootloader"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9637 $as_echo "$target_bootloader" >&6; }
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9640 $as_echo_n "checking which icon-set to use... " >&6; }
9642 # Check whether --with-iconset was given.
9643 if test "${with_iconset+set}" = set; then :
9644 withval=$with_iconset; target_iconset=$withval
9645 else
9646 target_iconset="default"
9649 if test "$target_iconset" = "default"; then
9650 aros_target_iconset="Gorilla"
9651 target_iconset="default (Gorilla)"
9652 else
9653 aros_target_iconset="$target_iconset"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9656 $as_echo "$target_iconset" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9659 $as_echo_n "checking which GUI Theme to use... " >&6; }
9661 # Check whether --with-theme was given.
9662 if test "${with_theme+set}" = set; then :
9663 withval=$with_theme; target_guitheme=$withval
9664 else
9665 target_guitheme="default"
9668 if test "$target_guitheme" = "default"; then
9669 aros_target_guitheme="Ice"
9670 else
9671 aros_target_guitheme="$target_guitheme"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9674 $as_echo "$aros_target_guitheme" >&6; }
9676 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9677 # for target code)
9678 cross_compiling=no
9680 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9681 cross_compiling=yes
9684 if test "$aros_host_cpu" == "x86_64" ; then
9685 if test "$aros_target_cpu" == "i386" ; then
9686 cross_compiling=no
9690 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9691 if test "$aros_host_arch" != "$aros_target_arch" ; then
9692 cross_compiling=yes
9694 else
9695 cross_compiling=yes
9698 if test "$cross_compiling" = "no" ; then
9699 kernel_tool_prefix=""
9700 if test "$host_cc_elf" = "yes" ; then
9701 elf_tool_prefix=""
9705 if test "$kernel_tool_version" != ""; then
9706 kernel_tool_version="-$kernel_tool_version"
9709 #######################################################################
9710 ## Compute what toolchains to use, and their paths ##
9711 #######################################################################
9713 # This takes, as input:
9714 # crosstools {yes,no}
9715 # kernel_tool_version {"",[version]}
9716 # target_tool_version {"",[version]}
9717 # kernel_tool_prefix {none,[some-arch-os-]}
9718 # gnu-toolchain -:
9719 # target_tool_prefix ${aros_target_cpu}-aros-
9720 # aros_tool_prefix ${aros_target_cpu}-aros-
9722 # The output is
9723 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9724 # Where the 'kernel' binaries are located
9725 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9726 # Where the 'target' binaries are located
9727 # (not the symlink farm - that is aros_target_*!)
9729 # The rules are:
9730 # if crosstools then
9731 # if kernel_tools_prefix = "no-kernel-prefix-"
9732 # aros_kernel_* = crosstools cc paths
9733 # aros_kernel_cc = elf cc wrapper around crosstools cc
9734 # else
9735 # VALIDATE(${kernel_tools_prefix}*)
9736 # aros_kernel_* = ${kernel_tools_prefix}*
9737 # if ${kernel_tools_prefix}cc is an AROS gcc
9738 # aros_kernel_cc = ${kernel_tools_prefix}cc
9739 # else
9740 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9741 # fi
9742 # fi
9744 # orig_target_* = aros built crosstools
9745 # orig_target_cc = elf cc wrapper around crosstools cc
9746 # else
9747 # VALIDATE(${kernel_tools_prefix}*)
9749 # orig_target_* = aros_kernel_*
9750 # if aros_kernel_cc is an AROS gcc
9751 # orig_target_cc = aros_kernel_cc
9752 # else
9753 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9754 # fi
9755 # fi
9757 if test "$aros_toolchain" = "gnu" ; then
9758 target_tool_prefix="${aros_target_cpu}-aros-"
9759 elif test "$aros_toolchain" = "llvm" ; then
9760 target_tool_prefix="bin/"
9763 if test "$kernel_tool_prefix" != "" ; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9765 $as_echo_n "checking which kernel tools... " >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9767 $as_echo "$kernel_tool_prefix" >&6; };
9770 if test "$kernel_tool_prefix" = "none" ; then
9771 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9772 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9774 else
9775 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9776 # Kernel tools required - find them
9777 # Note that 'normally', aros_kernel_* overrides will be
9778 # empty, unless specified in the per-arch sections above.
9779 test_kernel_cc=yes
9780 if test "x$aros_kernel_cpp" = "x"; then
9781 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9783 if test "${kernel_tool_version}" != ""; then
9784 if test "$aros_kernel_cpp" != ""; then
9785 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9786 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9787 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9791 if test "$aros_kernel_cpp" = ""; then
9792 if test "$cross_compiling" = "yes" ; then
9793 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9794 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 case $aros_kernel_cpp in
9801 [\\/]* | ?:[\\/]*)
9802 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9816 done
9817 done
9818 IFS=$as_save_IFS
9821 esac
9823 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9824 if test -n "$aros_kernel_cpp"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9826 $as_echo "$aros_kernel_cpp" >&6; }
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9833 else
9835 if test "" = ""; then
9836 ac_tool_cpp=cpp
9837 else
9838 ac_tool_cpp=
9840 if test "$GCC" = "yes"; then
9841 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
9842 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9843 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 case $aros_kernel_cpp in
9850 [\\/]* | ?:[\\/]*)
9851 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in `dirname $aros_gcc_cpp`
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9865 done
9866 done
9867 IFS=$as_save_IFS
9870 esac
9872 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9873 if test -n "$aros_kernel_cpp"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9875 $as_echo "$aros_kernel_cpp" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9883 if test "$aros_kernel_cpp" = ""; then
9884 for ac_prog in $ac_tool_cpp
9886 # Extract the first word of "$ac_prog", so it can be a program name with args.
9887 set dummy $ac_prog; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 case $aros_kernel_cpp in
9894 [\\/]* | ?:[\\/]*)
9895 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9901 IFS=$as_save_IFS
9902 test -z "$as_dir" && as_dir=.
9903 for ac_exec_ext in '' $ac_executable_extensions; do
9904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9905 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907 break 2
9909 done
9910 done
9911 IFS=$as_save_IFS
9914 esac
9916 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9917 if test -n "$aros_kernel_cpp"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9919 $as_echo "$aros_kernel_cpp" >&6; }
9920 else
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922 $as_echo "no" >&6; }
9926 test -n "$aros_kernel_cpp" && break
9927 done
9932 else
9933 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9934 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9935 set dummy $aros_kernel_cpp; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 case $aros_kernel_cpp in
9942 [\\/]* | ?:[\\/]*)
9943 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9957 done
9958 done
9959 IFS=$as_save_IFS
9962 esac
9964 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9965 if test -n "$aros_kernel_cpp"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9967 $as_echo "$aros_kernel_cpp" >&6; }
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9974 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9977 req_avail=yes
9978 if test "$aros_kernel_cpp" = ""; then
9979 req_avail=no
9981 if test "$aros_kernel_cpp" = "no"; then
9982 req_avail=no
9984 if test "$req_avail" = "no"; then
9985 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9988 if test "x$aros_kernel_cc" = "x"; then
9989 aros_kernel_cc=${kernel_tool_prefix}${CC}
9991 if test "${kernel_tool_version}" != ""; then
9992 if test "$aros_kernel_cc" != ""; then
9993 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9994 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9995 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9999 if test "$aros_kernel_cc" = ""; then
10000 if test "$cross_compiling" = "yes" ; then
10001 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10002 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 case $aros_kernel_cc in
10009 [\\/]* | ?:[\\/]*)
10010 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10024 done
10025 done
10026 IFS=$as_save_IFS
10029 esac
10031 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10032 if test -n "$aros_kernel_cc"; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10034 $as_echo "$aros_kernel_cc" >&6; }
10035 else
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10041 else
10043 if test "" = ""; then
10044 ac_tool_cc=cc
10045 else
10046 ac_tool_cc=
10048 if test "$GCC" = "yes"; then
10049 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10050 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10051 set dummy `basename $aros_gcc_cc`; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 case $aros_kernel_cc in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in `dirname $aros_gcc_cc`
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10078 esac
10080 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10081 if test -n "$aros_kernel_cc"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10083 $as_echo "$aros_kernel_cc" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10091 if test "$aros_kernel_cc" = ""; then
10092 for ac_prog in $ac_tool_cc
10094 # Extract the first word of "$ac_prog", so it can be a program name with args.
10095 set dummy $ac_prog; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 case $aros_kernel_cc in
10102 [\\/]* | ?:[\\/]*)
10103 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10122 esac
10124 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10125 if test -n "$aros_kernel_cc"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10127 $as_echo "$aros_kernel_cc" >&6; }
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10134 test -n "$aros_kernel_cc" && break
10135 done
10140 else
10141 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10142 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10143 set dummy $aros_kernel_cc; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 case $aros_kernel_cc in
10150 [\\/]* | ?:[\\/]*)
10151 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10165 done
10166 done
10167 IFS=$as_save_IFS
10170 esac
10172 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10173 if test -n "$aros_kernel_cc"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10175 $as_echo "$aros_kernel_cc" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10182 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10185 req_avail=yes
10186 if test "$aros_kernel_cc" = ""; then
10187 req_avail=no
10189 if test "$aros_kernel_cc" = "no"; then
10190 req_avail=no
10192 if test "$req_avail" = "no"; then
10193 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10196 if test "x$aros_kernel_cxx" = "x"; then
10197 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
10199 if test "${kernel_tool_version}" != ""; then
10200 if test "$aros_kernel_cxx" != ""; then
10201 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10202 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10203 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10207 if test "$aros_kernel_cxx" = ""; then
10208 if test "$cross_compiling" = "yes" ; then
10209 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10210 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 case $aros_kernel_cxx in
10217 [\\/]* | ?:[\\/]*)
10218 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10232 done
10233 done
10234 IFS=$as_save_IFS
10237 esac
10239 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10240 if test -n "$aros_kernel_cxx"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10242 $as_echo "$aros_kernel_cxx" >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10249 else
10251 if test "" = ""; then
10252 ac_tool_cxx=cxx
10253 else
10254 ac_tool_cxx=
10256 if test "$GCC" = "yes"; then
10257 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10258 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10259 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 case $aros_kernel_cxx in
10266 [\\/]* | ?:[\\/]*)
10267 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in `dirname $aros_gcc_cxx`
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 break 2
10281 done
10282 done
10283 IFS=$as_save_IFS
10286 esac
10288 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10289 if test -n "$aros_kernel_cxx"; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10291 $as_echo "$aros_kernel_cxx" >&6; }
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10299 if test "$aros_kernel_cxx" = ""; then
10300 for ac_prog in $ac_tool_cxx
10302 # Extract the first word of "$ac_prog", so it can be a program name with args.
10303 set dummy $ac_prog; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 case $aros_kernel_cxx in
10310 [\\/]* | ?:[\\/]*)
10311 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10321 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 break 2
10325 done
10326 done
10327 IFS=$as_save_IFS
10330 esac
10332 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10333 if test -n "$aros_kernel_cxx"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10335 $as_echo "$aros_kernel_cxx" >&6; }
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10342 test -n "$aros_kernel_cxx" && break
10343 done
10348 else
10349 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10350 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10351 set dummy $aros_kernel_cxx; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 case $aros_kernel_cxx in
10358 [\\/]* | ?:[\\/]*)
10359 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10378 esac
10380 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10381 if test -n "$aros_kernel_cxx"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10383 $as_echo "$aros_kernel_cxx" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10390 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10393 # If it's set, make sure it's really there
10394 if test "x$aros_kernel_cxx" != "x" ; then
10395 req_avail=yes
10396 if test "$aros_kernel_cxx" = ""; then
10397 req_avail=no
10399 if test "$aros_kernel_cxx" = "no"; then
10400 req_avail=no
10402 if test "$req_avail" = "no"; then
10403 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10406 if test "x$aros_kernel_ld" = "x"; then
10407 aros_kernel_ld=$aros_host_ld
10410 if test "$aros_kernel_ld" = ""; then
10411 if test "$cross_compiling" = "yes" ; then
10412 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10413 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 case $aros_kernel_ld in
10420 [\\/]* | ?:[\\/]*)
10421 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10435 done
10436 done
10437 IFS=$as_save_IFS
10440 esac
10442 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10443 if test -n "$aros_kernel_ld"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10445 $as_echo "$aros_kernel_ld" >&6; }
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10452 else
10454 if test "" = ""; then
10455 ac_tool_ld=ld
10456 else
10457 ac_tool_ld=
10459 if test "$GCC" = "yes"; then
10460 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10461 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10462 set dummy `basename $aros_gcc_ld`; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 case $aros_kernel_ld in
10469 [\\/]* | ?:[\\/]*)
10470 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in `dirname $aros_gcc_ld`
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10489 esac
10491 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10492 if test -n "$aros_kernel_ld"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10494 $as_echo "$aros_kernel_ld" >&6; }
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10502 if test "$aros_kernel_ld" = ""; then
10503 for ac_prog in $ac_tool_ld
10505 # Extract the first word of "$ac_prog", so it can be a program name with args.
10506 set dummy $ac_prog; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 case $aros_kernel_ld in
10513 [\\/]* | ?:[\\/]*)
10514 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10528 done
10529 done
10530 IFS=$as_save_IFS
10533 esac
10535 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10536 if test -n "$aros_kernel_ld"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10538 $as_echo "$aros_kernel_ld" >&6; }
10539 else
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10545 test -n "$aros_kernel_ld" && break
10546 done
10551 else
10552 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10553 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10554 set dummy $aros_kernel_ld; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 case $aros_kernel_ld in
10561 [\\/]* | ?:[\\/]*)
10562 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 break 2
10576 done
10577 done
10578 IFS=$as_save_IFS
10581 esac
10583 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10584 if test -n "$aros_kernel_ld"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10586 $as_echo "$aros_kernel_ld" >&6; }
10587 else
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10593 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10596 req_avail=yes
10597 if test "$aros_kernel_ld" = ""; then
10598 req_avail=no
10600 if test "$aros_kernel_ld" = "no"; then
10601 req_avail=no
10603 if test "$req_avail" = "no"; then
10604 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10606 if test "x$aros_kernel_as" = "x"; then
10607 aros_kernel_as=$aros_host_as
10608 if test "x$aros_kernel_as" = "x"; then
10609 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10613 if test "$aros_kernel_as" = ""; then
10614 if test "$cross_compiling" = "yes" ; then
10615 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10616 set dummy ${kernel_tool_prefix}as; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if ${ac_cv_path_aros_kernel_as+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 case $aros_kernel_as in
10623 [\\/]* | ?:[\\/]*)
10624 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in $PATH
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10638 done
10639 done
10640 IFS=$as_save_IFS
10643 esac
10645 aros_kernel_as=$ac_cv_path_aros_kernel_as
10646 if test -n "$aros_kernel_as"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10648 $as_echo "$aros_kernel_as" >&6; }
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10655 else
10657 if test "" = ""; then
10658 ac_tool_as=as
10659 else
10660 ac_tool_as=
10662 if test "$GCC" = "yes"; then
10663 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10664 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10665 set dummy `basename $aros_gcc_as`; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_as+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 case $aros_kernel_as in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in `dirname $aros_gcc_as`
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10692 esac
10694 aros_kernel_as=$ac_cv_path_aros_kernel_as
10695 if test -n "$aros_kernel_as"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10697 $as_echo "$aros_kernel_as" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10705 if test "$aros_kernel_as" = ""; then
10706 for ac_prog in $ac_tool_as
10708 # Extract the first word of "$ac_prog", so it can be a program name with args.
10709 set dummy $ac_prog; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_aros_kernel_as+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 case $aros_kernel_as in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10736 esac
10738 aros_kernel_as=$ac_cv_path_aros_kernel_as
10739 if test -n "$aros_kernel_as"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10741 $as_echo "$aros_kernel_as" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10748 test -n "$aros_kernel_as" && break
10749 done
10754 else
10755 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10756 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10757 set dummy $aros_kernel_as; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if ${ac_cv_path_aros_kernel_as+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 case $aros_kernel_as in
10764 [\\/]* | ?:[\\/]*)
10765 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10775 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10779 done
10780 done
10781 IFS=$as_save_IFS
10784 esac
10786 aros_kernel_as=$ac_cv_path_aros_kernel_as
10787 if test -n "$aros_kernel_as"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10789 $as_echo "$aros_kernel_as" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10796 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10799 req_avail=yes
10800 if test "$aros_kernel_as" = ""; then
10801 req_avail=no
10803 if test "$aros_kernel_as" = "no"; then
10804 req_avail=no
10806 if test "$req_avail" = "no"; then
10807 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10809 if test "x$aros_kernel_ar" = "x"; then
10810 aros_kernel_ar=$aros_host_ar
10813 if test "$aros_kernel_ar" = ""; then
10814 if test "$cross_compiling" = "yes" ; then
10815 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10816 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 case $aros_kernel_ar in
10823 [\\/]* | ?:[\\/]*)
10824 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10838 done
10839 done
10840 IFS=$as_save_IFS
10843 esac
10845 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10846 if test -n "$aros_kernel_ar"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10848 $as_echo "$aros_kernel_ar" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10855 else
10857 if test "" = ""; then
10858 ac_tool_ar=ar
10859 else
10860 ac_tool_ar=
10862 if test "$GCC" = "yes"; then
10863 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
10864 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10865 set dummy `basename $aros_gcc_ar`; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 case $aros_kernel_ar in
10872 [\\/]* | ?:[\\/]*)
10873 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in `dirname $aros_gcc_ar`
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10887 done
10888 done
10889 IFS=$as_save_IFS
10892 esac
10894 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10895 if test -n "$aros_kernel_ar"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10897 $as_echo "$aros_kernel_ar" >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10905 if test "$aros_kernel_ar" = ""; then
10906 for ac_prog in $ac_tool_ar
10908 # Extract the first word of "$ac_prog", so it can be a program name with args.
10909 set dummy $ac_prog; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 case $aros_kernel_ar in
10916 [\\/]* | ?:[\\/]*)
10917 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10931 done
10932 done
10933 IFS=$as_save_IFS
10936 esac
10938 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10939 if test -n "$aros_kernel_ar"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10941 $as_echo "$aros_kernel_ar" >&6; }
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10948 test -n "$aros_kernel_ar" && break
10949 done
10954 else
10955 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10956 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10957 set dummy $aros_kernel_ar; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 case $aros_kernel_ar in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10979 done
10980 done
10981 IFS=$as_save_IFS
10984 esac
10986 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10987 if test -n "$aros_kernel_ar"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10989 $as_echo "$aros_kernel_ar" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10996 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10999 req_avail=yes
11000 if test "$aros_kernel_ar" = ""; then
11001 req_avail=no
11003 if test "$aros_kernel_ar" = "no"; then
11004 req_avail=no
11006 if test "$req_avail" = "no"; then
11007 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11009 if test "x$aros_kernel_ranlib" = "x"; then
11010 aros_kernel_ranlib=$aros_host_ranlib
11013 if test "$aros_kernel_ranlib" = ""; then
11014 if test "$cross_compiling" = "yes" ; then
11015 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11016 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 case $aros_kernel_ranlib in
11023 [\\/]* | ?:[\\/]*)
11024 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028 for as_dir in $PATH
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11038 done
11039 done
11040 IFS=$as_save_IFS
11043 esac
11045 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11046 if test -n "$aros_kernel_ranlib"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11048 $as_echo "$aros_kernel_ranlib" >&6; }
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11055 else
11057 if test "" = ""; then
11058 ac_tool_ranlib=ranlib
11059 else
11060 ac_tool_ranlib=
11062 if test "$GCC" = "yes"; then
11063 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11064 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11065 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067 $as_echo_n "checking for $ac_word... " >&6; }
11068 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 case $aros_kernel_ranlib in
11072 [\\/]* | ?:[\\/]*)
11073 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in `dirname $aros_gcc_ranlib`
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11087 done
11088 done
11089 IFS=$as_save_IFS
11092 esac
11094 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11095 if test -n "$aros_kernel_ranlib"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11097 $as_echo "$aros_kernel_ranlib" >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11105 if test "$aros_kernel_ranlib" = ""; then
11106 for ac_prog in $ac_tool_ranlib
11108 # Extract the first word of "$ac_prog", so it can be a program name with args.
11109 set dummy $ac_prog; ac_word=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 case $aros_kernel_ranlib in
11116 [\\/]* | ?:[\\/]*)
11117 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in $PATH
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11127 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11129 break 2
11131 done
11132 done
11133 IFS=$as_save_IFS
11136 esac
11138 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11139 if test -n "$aros_kernel_ranlib"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11141 $as_echo "$aros_kernel_ranlib" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11148 test -n "$aros_kernel_ranlib" && break
11149 done
11154 else
11155 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11156 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11157 set dummy $aros_kernel_ranlib; ac_word=$2
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 $as_echo_n "checking for $ac_word... " >&6; }
11160 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 case $aros_kernel_ranlib in
11164 [\\/]* | ?:[\\/]*)
11165 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11179 done
11180 done
11181 IFS=$as_save_IFS
11184 esac
11186 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11187 if test -n "$aros_kernel_ranlib"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11189 $as_echo "$aros_kernel_ranlib" >&6; }
11190 else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11196 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11199 req_avail=yes
11200 if test "$aros_kernel_ranlib" = ""; then
11201 req_avail=no
11203 if test "$aros_kernel_ranlib" = "no"; then
11204 req_avail=no
11206 if test "$req_avail" = "no"; then
11207 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11209 if test "x$aros_kernel_nm" = "x"; then
11210 aros_kernel_nm=$aros_host_nm
11211 if test "x$aros_kernel_nm" = "x"; then
11212 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11216 if test "$aros_kernel_nm" = ""; then
11217 if test "$cross_compiling" = "yes" ; then
11218 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11219 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 case $aros_kernel_nm in
11226 [\\/]* | ?:[\\/]*)
11227 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11241 done
11242 done
11243 IFS=$as_save_IFS
11246 esac
11248 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11249 if test -n "$aros_kernel_nm"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11251 $as_echo "$aros_kernel_nm" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11258 else
11260 if test "" = ""; then
11261 ac_tool_nm=nm
11262 else
11263 ac_tool_nm=
11265 if test "$GCC" = "yes"; then
11266 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11267 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11268 set dummy `basename $aros_gcc_nm`; ac_word=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 case $aros_kernel_nm in
11275 [\\/]* | ?:[\\/]*)
11276 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in `dirname $aros_gcc_nm`
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
11284 for ac_exec_ext in '' $ac_executable_extensions; do
11285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11288 break 2
11290 done
11291 done
11292 IFS=$as_save_IFS
11295 esac
11297 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11298 if test -n "$aros_kernel_nm"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11300 $as_echo "$aros_kernel_nm" >&6; }
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11308 if test "$aros_kernel_nm" = ""; then
11309 for ac_prog in $ac_tool_nm
11311 # Extract the first word of "$ac_prog", so it can be a program name with args.
11312 set dummy $ac_prog; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 case $aros_kernel_nm in
11319 [\\/]* | ?:[\\/]*)
11320 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11334 done
11335 done
11336 IFS=$as_save_IFS
11339 esac
11341 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11342 if test -n "$aros_kernel_nm"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11344 $as_echo "$aros_kernel_nm" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11351 test -n "$aros_kernel_nm" && break
11352 done
11357 else
11358 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11359 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11360 set dummy $aros_kernel_nm; ac_word=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 case $aros_kernel_nm in
11367 [\\/]* | ?:[\\/]*)
11368 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11378 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11382 done
11383 done
11384 IFS=$as_save_IFS
11387 esac
11389 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11390 if test -n "$aros_kernel_nm"; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11392 $as_echo "$aros_kernel_nm" >&6; }
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11399 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11402 req_avail=yes
11403 if test "$aros_kernel_nm" = ""; then
11404 req_avail=no
11406 if test "$aros_kernel_nm" = "no"; then
11407 req_avail=no
11409 if test "$req_avail" = "no"; then
11410 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11413 if test "$aros_kernel_strip" = ""; then
11414 if test "$cross_compiling" = "yes" ; then
11415 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11416 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 case $aros_kernel_strip in
11423 [\\/]* | ?:[\\/]*)
11424 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11438 done
11439 done
11440 IFS=$as_save_IFS
11443 esac
11445 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11446 if test -n "$aros_kernel_strip"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11448 $as_echo "$aros_kernel_strip" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11455 else
11457 if test "" = ""; then
11458 ac_tool_strip=strip
11459 else
11460 ac_tool_strip=
11462 if test "$GCC" = "yes"; then
11463 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11464 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11465 set dummy `basename $aros_gcc_strip`; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 case $aros_kernel_strip in
11472 [\\/]* | ?:[\\/]*)
11473 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in `dirname $aros_gcc_strip`
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11487 done
11488 done
11489 IFS=$as_save_IFS
11492 esac
11494 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11495 if test -n "$aros_kernel_strip"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11497 $as_echo "$aros_kernel_strip" >&6; }
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11505 if test "$aros_kernel_strip" = ""; then
11506 for ac_prog in $ac_tool_strip
11508 # Extract the first word of "$ac_prog", so it can be a program name with args.
11509 set dummy $ac_prog; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 case $aros_kernel_strip in
11516 [\\/]* | ?:[\\/]*)
11517 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11527 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11531 done
11532 done
11533 IFS=$as_save_IFS
11536 esac
11538 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11539 if test -n "$aros_kernel_strip"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11541 $as_echo "$aros_kernel_strip" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11548 test -n "$aros_kernel_strip" && break
11549 done
11554 else
11555 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11556 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11557 set dummy $aros_kernel_strip; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 case $aros_kernel_strip in
11564 [\\/]* | ?:[\\/]*)
11565 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11579 done
11580 done
11581 IFS=$as_save_IFS
11584 esac
11586 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11587 if test -n "$aros_kernel_strip"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11589 $as_echo "$aros_kernel_strip" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11596 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11599 req_avail=yes
11600 if test "$aros_kernel_strip" = ""; then
11601 req_avail=no
11603 if test "$aros_kernel_strip" = "no"; then
11604 req_avail=no
11606 if test "$req_avail" = "no"; then
11607 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11610 # Objcopy and objdump are not required for the kernel
11611 # toolchain on many architectures.
11612 # So we'll look for them, but not make them strictly required.
11613 if test "x$aros_kernel_objcopy" = "x"; then
11614 aros_kernel_objcopy=$aros_host_objcopy
11615 if test "x$aros_kernel_objcopy" = "x"; then
11616 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11620 if test "$aros_kernel_objcopy" = ""; then
11621 if test "$cross_compiling" = "yes" ; then
11622 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11623 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 case $aros_kernel_objcopy in
11630 [\\/]* | ?:[\\/]*)
11631 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11645 done
11646 done
11647 IFS=$as_save_IFS
11650 esac
11652 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11653 if test -n "$aros_kernel_objcopy"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11655 $as_echo "$aros_kernel_objcopy" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11662 else
11664 if test "" = ""; then
11665 ac_tool_objcopy=objcopy
11666 else
11667 ac_tool_objcopy=
11669 if test "$GCC" = "yes"; then
11670 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11671 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11672 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 case $aros_kernel_objcopy in
11679 [\\/]* | ?:[\\/]*)
11680 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in `dirname $aros_gcc_objcopy`
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692 break 2
11694 done
11695 done
11696 IFS=$as_save_IFS
11699 esac
11701 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11702 if test -n "$aros_kernel_objcopy"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11704 $as_echo "$aros_kernel_objcopy" >&6; }
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11712 if test "$aros_kernel_objcopy" = ""; then
11713 for ac_prog in $ac_tool_objcopy
11715 # Extract the first word of "$ac_prog", so it can be a program name with args.
11716 set dummy $ac_prog; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 case $aros_kernel_objcopy in
11723 [\\/]* | ?:[\\/]*)
11724 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11738 done
11739 done
11740 IFS=$as_save_IFS
11743 esac
11745 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11746 if test -n "$aros_kernel_objcopy"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11748 $as_echo "$aros_kernel_objcopy" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 test -n "$aros_kernel_objcopy" && break
11756 done
11761 else
11762 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11763 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11764 set dummy $aros_kernel_objcopy; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 case $aros_kernel_objcopy in
11771 [\\/]* | ?:[\\/]*)
11772 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11786 done
11787 done
11788 IFS=$as_save_IFS
11791 esac
11793 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11794 if test -n "$aros_kernel_objcopy"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11796 $as_echo "$aros_kernel_objcopy" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11803 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11806 if test "x$aros_kernel_objdump" = "x"; then
11807 aros_kernel_objdump=$aros_host_objdump
11808 if test "x$aros_kernel_objdump" = "x"; then
11809 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
11813 if test "$aros_kernel_objdump" = ""; then
11814 if test "$cross_compiling" = "yes" ; then
11815 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11816 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 case $aros_kernel_objdump in
11823 [\\/]* | ?:[\\/]*)
11824 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11838 done
11839 done
11840 IFS=$as_save_IFS
11843 esac
11845 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11846 if test -n "$aros_kernel_objdump"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11848 $as_echo "$aros_kernel_objdump" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11855 else
11857 if test "" = ""; then
11858 ac_tool_objdump=objdump
11859 else
11860 ac_tool_objdump=
11862 if test "$GCC" = "yes"; then
11863 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
11864 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11865 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 case $aros_kernel_objdump in
11872 [\\/]* | ?:[\\/]*)
11873 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in `dirname $aros_gcc_objdump`
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11883 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11887 done
11888 done
11889 IFS=$as_save_IFS
11892 esac
11894 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11895 if test -n "$aros_kernel_objdump"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11897 $as_echo "$aros_kernel_objdump" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11905 if test "$aros_kernel_objdump" = ""; then
11906 for ac_prog in $ac_tool_objdump
11908 # Extract the first word of "$ac_prog", so it can be a program name with args.
11909 set dummy $ac_prog; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 case $aros_kernel_objdump in
11916 [\\/]* | ?:[\\/]*)
11917 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11931 done
11932 done
11933 IFS=$as_save_IFS
11936 esac
11938 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11939 if test -n "$aros_kernel_objdump"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11941 $as_echo "$aros_kernel_objdump" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11948 test -n "$aros_kernel_objdump" && break
11949 done
11954 else
11955 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11956 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11957 set dummy $aros_kernel_objdump; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 case $aros_kernel_objdump in
11964 [\\/]* | ?:[\\/]*)
11965 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 break 2
11979 done
11980 done
11981 IFS=$as_save_IFS
11984 esac
11986 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11987 if test -n "$aros_kernel_objdump"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11989 $as_echo "$aros_kernel_objdump" >&6; }
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11996 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11999 if test "x${crosstools}" != "xyes" ; then
12000 req_avail=yes
12001 if test "$aros_kernel_objcopy" = ""; then
12002 req_avail=no
12004 if test "$aros_kernel_objcopy" = "no"; then
12005 req_avail=no
12007 if test "$req_avail" = "no"; then
12008 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12010 req_avail=yes
12011 if test "$aros_kernel_objdump" = ""; then
12012 req_avail=no
12014 if test "$aros_kernel_objdump" = "no"; then
12015 req_avail=no
12017 if test "$req_avail" = "no"; then
12018 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12025 $as_echo_n "checking which target tools to use... " >&6; }
12026 if test "$aros_target_toolchain" = "yes"; then
12027 if test "$aros_toolchain" = "llvm" ; then
12028 msg_result="llvm"
12029 else
12030 msg_result=$target_tool_prefix
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12033 $as_echo "$msg_result" >&6; }
12034 # We are building AROS crosstools
12035 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12036 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12037 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12038 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
12039 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12040 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12041 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12042 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12043 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12044 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12045 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12046 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12047 else
12048 # Determine whether AROS or ELF tools should be used
12049 if test "$aros_tool_prefix" = "none"; then
12050 aros_tool_prefix="${elf_tool_prefix}"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12054 $as_echo "$aros_tool_prefix" >&6; }
12055 # We are *not* building AROS crosstools - use the AROS or ELF tools
12057 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
12058 if test "$cross_compiling" = "yes" ; then
12059 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12060 set dummy ${target_tool_prefix}cpp; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_orig_target_cpp+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 case $orig_target_cpp in
12067 [\\/]* | ?:[\\/]*)
12068 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12074 IFS=$as_save_IFS
12075 test -z "$as_dir" && as_dir=.
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 break 2
12082 done
12083 done
12084 IFS=$as_save_IFS
12087 esac
12089 orig_target_cpp=$ac_cv_path_orig_target_cpp
12090 if test -n "$orig_target_cpp"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12092 $as_echo "$orig_target_cpp" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12099 else
12101 if test "" = ""; then
12102 ac_tool_cpp=cpp
12103 else
12104 ac_tool_cpp=
12106 if test "$GCC" = "yes"; then
12107 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12108 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12109 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if ${ac_cv_path_orig_target_cpp+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 case $orig_target_cpp in
12116 [\\/]* | ?:[\\/]*)
12117 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in `dirname $aros_gcc_cpp`
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12131 done
12132 done
12133 IFS=$as_save_IFS
12136 esac
12138 orig_target_cpp=$ac_cv_path_orig_target_cpp
12139 if test -n "$orig_target_cpp"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12141 $as_echo "$orig_target_cpp" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12149 if test "$orig_target_cpp" = ""; then
12150 for ac_prog in $ac_tool_cpp
12152 # Extract the first word of "$ac_prog", so it can be a program name with args.
12153 set dummy $ac_prog; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_path_orig_target_cpp+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 case $orig_target_cpp in
12160 [\\/]* | ?:[\\/]*)
12161 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12175 done
12176 done
12177 IFS=$as_save_IFS
12180 esac
12182 orig_target_cpp=$ac_cv_path_orig_target_cpp
12183 if test -n "$orig_target_cpp"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12185 $as_echo "$orig_target_cpp" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12192 test -n "$orig_target_cpp" && break
12193 done
12198 else
12199 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
12200 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
12201 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_cpp+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $orig_target_cpp in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 orig_target_cpp=$ac_cv_path_orig_target_cpp
12231 if test -n "$orig_target_cpp"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12233 $as_echo "$orig_target_cpp" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12240 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12243 req_avail=yes
12244 if test "$orig_target_cpp" = ""; then
12245 req_avail=no
12247 if test "$orig_target_cpp" = "no"; then
12248 req_avail=no
12250 if test "$req_avail" = "no"; then
12251 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12254 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12255 if test "$cross_compiling" = "yes" ; then
12256 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12257 set dummy ${target_tool_prefix}gcc; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_path_orig_target_cc+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 case $orig_target_cc in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12284 esac
12286 orig_target_cc=$ac_cv_path_orig_target_cc
12287 if test -n "$orig_target_cc"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12289 $as_echo "$orig_target_cc" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12296 else
12298 if test "" = ""; then
12299 ac_tool_gcc=gcc
12300 else
12301 ac_tool_gcc=
12303 if test "$GCC" = "yes"; then
12304 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12305 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12306 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_path_orig_target_cc+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 case $orig_target_cc in
12313 [\\/]* | ?:[\\/]*)
12314 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in `dirname $aros_gcc_gcc`
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12324 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12328 done
12329 done
12330 IFS=$as_save_IFS
12333 esac
12335 orig_target_cc=$ac_cv_path_orig_target_cc
12336 if test -n "$orig_target_cc"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12338 $as_echo "$orig_target_cc" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12346 if test "$orig_target_cc" = ""; then
12347 for ac_prog in $ac_tool_gcc
12349 # Extract the first word of "$ac_prog", so it can be a program name with args.
12350 set dummy $ac_prog; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if ${ac_cv_path_orig_target_cc+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 case $orig_target_cc in
12357 [\\/]* | ?:[\\/]*)
12358 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12368 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12372 done
12373 done
12374 IFS=$as_save_IFS
12377 esac
12379 orig_target_cc=$ac_cv_path_orig_target_cc
12380 if test -n "$orig_target_cc"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12382 $as_echo "$orig_target_cc" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12389 test -n "$orig_target_cc" && break
12390 done
12395 else
12396 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12397 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12398 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400 $as_echo_n "checking for $ac_word... " >&6; }
12401 if ${ac_cv_path_orig_target_cc+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 case $orig_target_cc in
12405 [\\/]* | ?:[\\/]*)
12406 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12416 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 break 2
12420 done
12421 done
12422 IFS=$as_save_IFS
12425 esac
12427 orig_target_cc=$ac_cv_path_orig_target_cc
12428 if test -n "$orig_target_cc"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12430 $as_echo "$orig_target_cc" >&6; }
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12437 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12440 req_avail=yes
12441 if test "$orig_target_cc" = ""; then
12442 req_avail=no
12444 if test "$orig_target_cc" = "no"; then
12445 req_avail=no
12447 if test "$req_avail" = "no"; then
12448 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12451 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12452 if test "$cross_compiling" = "yes" ; then
12453 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12454 set dummy ${target_tool_prefix}g++; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_path_orig_target_cxx+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 case $orig_target_cxx in
12461 [\\/]* | ?:[\\/]*)
12462 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12472 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12476 done
12477 done
12478 IFS=$as_save_IFS
12481 esac
12483 orig_target_cxx=$ac_cv_path_orig_target_cxx
12484 if test -n "$orig_target_cxx"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12486 $as_echo "$orig_target_cxx" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12493 else
12495 if test "" = ""; then
12496 ac_tool_g++=g++
12497 else
12498 ac_tool_g++=
12500 if test "$GCC" = "yes"; then
12501 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12502 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12503 set dummy `basename $aros_gcc_g++`; ac_word=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_path_orig_target_cxx+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 case $orig_target_cxx in
12510 [\\/]* | ?:[\\/]*)
12511 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in `dirname $aros_gcc_g++`
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12525 done
12526 done
12527 IFS=$as_save_IFS
12530 esac
12532 orig_target_cxx=$ac_cv_path_orig_target_cxx
12533 if test -n "$orig_target_cxx"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12535 $as_echo "$orig_target_cxx" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12543 if test "$orig_target_cxx" = ""; then
12544 for ac_prog in $ac_tool_g++
12546 # Extract the first word of "$ac_prog", so it can be a program name with args.
12547 set dummy $ac_prog; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_path_orig_target_cxx+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 case $orig_target_cxx in
12554 [\\/]* | ?:[\\/]*)
12555 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12569 done
12570 done
12571 IFS=$as_save_IFS
12574 esac
12576 orig_target_cxx=$ac_cv_path_orig_target_cxx
12577 if test -n "$orig_target_cxx"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12579 $as_echo "$orig_target_cxx" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12586 test -n "$orig_target_cxx" && break
12587 done
12592 else
12593 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12594 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12595 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_path_orig_target_cxx+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 case $orig_target_cxx in
12602 [\\/]* | ?:[\\/]*)
12603 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12617 done
12618 done
12619 IFS=$as_save_IFS
12622 esac
12624 orig_target_cxx=$ac_cv_path_orig_target_cxx
12625 if test -n "$orig_target_cxx"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12627 $as_echo "$orig_target_cxx" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12634 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12637 req_avail=yes
12638 if test "$orig_target_cxx" = ""; then
12639 req_avail=no
12641 if test "$orig_target_cxx" = "no"; then
12642 req_avail=no
12644 if test "$req_avail" = "no"; then
12645 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12648 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12649 if test "$cross_compiling" = "yes" ; then
12650 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12651 set dummy ${target_tool_prefix}gcc; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_orig_target_ld+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 case $orig_target_ld in
12658 [\\/]* | ?:[\\/]*)
12659 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12678 esac
12680 orig_target_ld=$ac_cv_path_orig_target_ld
12681 if test -n "$orig_target_ld"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12683 $as_echo "$orig_target_ld" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12690 else
12692 if test "" = ""; then
12693 ac_tool_gcc=gcc
12694 else
12695 ac_tool_gcc=
12697 if test "$GCC" = "yes"; then
12698 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12699 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12700 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if ${ac_cv_path_orig_target_ld+:} false; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 case $orig_target_ld in
12707 [\\/]* | ?:[\\/]*)
12708 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in `dirname $aros_gcc_gcc`
12714 IFS=$as_save_IFS
12715 test -z "$as_dir" && as_dir=.
12716 for ac_exec_ext in '' $ac_executable_extensions; do
12717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12718 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 break 2
12722 done
12723 done
12724 IFS=$as_save_IFS
12727 esac
12729 orig_target_ld=$ac_cv_path_orig_target_ld
12730 if test -n "$orig_target_ld"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12732 $as_echo "$orig_target_ld" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12740 if test "$orig_target_ld" = ""; then
12741 for ac_prog in $ac_tool_gcc
12743 # Extract the first word of "$ac_prog", so it can be a program name with args.
12744 set dummy $ac_prog; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if ${ac_cv_path_orig_target_ld+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 case $orig_target_ld in
12751 [\\/]* | ?:[\\/]*)
12752 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12762 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 break 2
12766 done
12767 done
12768 IFS=$as_save_IFS
12771 esac
12773 orig_target_ld=$ac_cv_path_orig_target_ld
12774 if test -n "$orig_target_ld"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12776 $as_echo "$orig_target_ld" >&6; }
12777 else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12783 test -n "$orig_target_ld" && break
12784 done
12789 else
12790 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12791 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12792 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if ${ac_cv_path_orig_target_ld+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 case $orig_target_ld in
12799 [\\/]* | ?:[\\/]*)
12800 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12814 done
12815 done
12816 IFS=$as_save_IFS
12819 esac
12821 orig_target_ld=$ac_cv_path_orig_target_ld
12822 if test -n "$orig_target_ld"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12824 $as_echo "$orig_target_ld" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12831 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12834 req_avail=yes
12835 if test "$orig_target_ld" = ""; then
12836 req_avail=no
12838 if test "$orig_target_ld" = "no"; then
12839 req_avail=no
12841 if test "$req_avail" = "no"; then
12842 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12845 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12846 if test "$cross_compiling" = "yes" ; then
12847 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12848 set dummy ${target_tool_prefix}as; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_orig_target_as+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 case $orig_target_as in
12855 [\\/]* | ?:[\\/]*)
12856 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12875 esac
12877 orig_target_as=$ac_cv_path_orig_target_as
12878 if test -n "$orig_target_as"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12880 $as_echo "$orig_target_as" >&6; }
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12887 else
12889 if test "" = ""; then
12890 ac_tool_as=as
12891 else
12892 ac_tool_as=
12894 if test "$GCC" = "yes"; then
12895 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
12896 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12897 set dummy `basename $aros_gcc_as`; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_path_orig_target_as+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 case $orig_target_as in
12904 [\\/]* | ?:[\\/]*)
12905 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in `dirname $aros_gcc_as`
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12924 esac
12926 orig_target_as=$ac_cv_path_orig_target_as
12927 if test -n "$orig_target_as"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12929 $as_echo "$orig_target_as" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12937 if test "$orig_target_as" = ""; then
12938 for ac_prog in $ac_tool_as
12940 # Extract the first word of "$ac_prog", so it can be a program name with args.
12941 set dummy $ac_prog; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_orig_target_as+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 case $orig_target_as in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12963 done
12964 done
12965 IFS=$as_save_IFS
12968 esac
12970 orig_target_as=$ac_cv_path_orig_target_as
12971 if test -n "$orig_target_as"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12973 $as_echo "$orig_target_as" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12980 test -n "$orig_target_as" && break
12981 done
12986 else
12987 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12988 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12989 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_orig_target_as+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 case $orig_target_as in
12996 [\\/]* | ?:[\\/]*)
12997 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13011 done
13012 done
13013 IFS=$as_save_IFS
13016 esac
13018 orig_target_as=$ac_cv_path_orig_target_as
13019 if test -n "$orig_target_as"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13021 $as_echo "$orig_target_as" >&6; }
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13028 orig_target_as="$orig_target_as $ac_tool_optarg"
13031 req_avail=yes
13032 if test "$orig_target_as" = ""; then
13033 req_avail=no
13035 if test "$orig_target_as" = "no"; then
13036 req_avail=no
13038 if test "$req_avail" = "no"; then
13039 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13042 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13043 if test "$cross_compiling" = "yes" ; then
13044 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13045 set dummy ${target_tool_prefix}ar; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if ${ac_cv_path_orig_target_ar+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 case $orig_target_ar in
13052 [\\/]* | ?:[\\/]*)
13053 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13067 done
13068 done
13069 IFS=$as_save_IFS
13072 esac
13074 orig_target_ar=$ac_cv_path_orig_target_ar
13075 if test -n "$orig_target_ar"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13077 $as_echo "$orig_target_ar" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13084 else
13086 if test "" = ""; then
13087 ac_tool_ar=ar
13088 else
13089 ac_tool_ar=
13091 if test "$GCC" = "yes"; then
13092 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13093 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13094 set dummy `basename $aros_gcc_ar`; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if ${ac_cv_path_orig_target_ar+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 case $orig_target_ar in
13101 [\\/]* | ?:[\\/]*)
13102 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in `dirname $aros_gcc_ar`
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13116 done
13117 done
13118 IFS=$as_save_IFS
13121 esac
13123 orig_target_ar=$ac_cv_path_orig_target_ar
13124 if test -n "$orig_target_ar"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13126 $as_echo "$orig_target_ar" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13134 if test "$orig_target_ar" = ""; then
13135 for ac_prog in $ac_tool_ar
13137 # Extract the first word of "$ac_prog", so it can be a program name with args.
13138 set dummy $ac_prog; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_path_orig_target_ar+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 case $orig_target_ar in
13145 [\\/]* | ?:[\\/]*)
13146 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13156 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13160 done
13161 done
13162 IFS=$as_save_IFS
13165 esac
13167 orig_target_ar=$ac_cv_path_orig_target_ar
13168 if test -n "$orig_target_ar"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13170 $as_echo "$orig_target_ar" >&6; }
13171 else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13177 test -n "$orig_target_ar" && break
13178 done
13183 else
13184 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13185 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13186 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_path_orig_target_ar+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 case $orig_target_ar in
13193 [\\/]* | ?:[\\/]*)
13194 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13200 IFS=$as_save_IFS
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13204 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 break 2
13208 done
13209 done
13210 IFS=$as_save_IFS
13213 esac
13215 orig_target_ar=$ac_cv_path_orig_target_ar
13216 if test -n "$orig_target_ar"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13218 $as_echo "$orig_target_ar" >&6; }
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13225 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13228 req_avail=yes
13229 if test "$orig_target_ar" = ""; then
13230 req_avail=no
13232 if test "$orig_target_ar" = "no"; then
13233 req_avail=no
13235 if test "$req_avail" = "no"; then
13236 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13239 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13240 if test "$cross_compiling" = "yes" ; then
13241 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13242 set dummy ${target_tool_prefix}ar; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 case $orig_target_ranlib in
13249 [\\/]* | ?:[\\/]*)
13250 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13264 done
13265 done
13266 IFS=$as_save_IFS
13269 esac
13271 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13272 if test -n "$orig_target_ranlib"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13274 $as_echo "$orig_target_ranlib" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13281 else
13283 if test "" = ""; then
13284 ac_tool_ar=ar
13285 else
13286 ac_tool_ar=
13288 if test "$GCC" = "yes"; then
13289 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13290 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13291 set dummy `basename $aros_gcc_ar`; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 case $orig_target_ranlib in
13298 [\\/]* | ?:[\\/]*)
13299 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in `dirname $aros_gcc_ar`
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13313 done
13314 done
13315 IFS=$as_save_IFS
13318 esac
13320 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13321 if test -n "$orig_target_ranlib"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13323 $as_echo "$orig_target_ranlib" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$orig_target_ranlib" = ""; then
13332 for ac_prog in $ac_tool_ar
13334 # Extract the first word of "$ac_prog", so it can be a program name with args.
13335 set dummy $ac_prog; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 case $orig_target_ranlib in
13342 [\\/]* | ?:[\\/]*)
13343 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13357 done
13358 done
13359 IFS=$as_save_IFS
13362 esac
13364 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13365 if test -n "$orig_target_ranlib"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13367 $as_echo "$orig_target_ranlib" >&6; }
13368 else
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13374 test -n "$orig_target_ranlib" && break
13375 done
13380 else
13381 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13382 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13383 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 case $orig_target_ranlib in
13390 [\\/]* | ?:[\\/]*)
13391 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13405 done
13406 done
13407 IFS=$as_save_IFS
13410 esac
13412 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13413 if test -n "$orig_target_ranlib"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13415 $as_echo "$orig_target_ranlib" >&6; }
13416 else
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 $as_echo "no" >&6; }
13422 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13425 req_avail=yes
13426 if test "$orig_target_ranlib" = ""; then
13427 req_avail=no
13429 if test "$orig_target_ranlib" = "no"; then
13430 req_avail=no
13432 if test "$req_avail" = "no"; then
13433 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13436 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13437 if test "$cross_compiling" = "yes" ; then
13438 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13439 set dummy ${target_tool_prefix}nm; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_path_orig_target_nm+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 case $orig_target_nm in
13446 [\\/]* | ?:[\\/]*)
13447 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13453 IFS=$as_save_IFS
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459 break 2
13461 done
13462 done
13463 IFS=$as_save_IFS
13466 esac
13468 orig_target_nm=$ac_cv_path_orig_target_nm
13469 if test -n "$orig_target_nm"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13471 $as_echo "$orig_target_nm" >&6; }
13472 else
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13478 else
13480 if test "" = ""; then
13481 ac_tool_nm=nm
13482 else
13483 ac_tool_nm=
13485 if test "$GCC" = "yes"; then
13486 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13487 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13488 set dummy `basename $aros_gcc_nm`; ac_word=$2
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490 $as_echo_n "checking for $ac_word... " >&6; }
13491 if ${ac_cv_path_orig_target_nm+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 case $orig_target_nm in
13495 [\\/]* | ?:[\\/]*)
13496 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in `dirname $aros_gcc_nm`
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13510 done
13511 done
13512 IFS=$as_save_IFS
13515 esac
13517 orig_target_nm=$ac_cv_path_orig_target_nm
13518 if test -n "$orig_target_nm"; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13520 $as_echo "$orig_target_nm" >&6; }
13521 else
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 $as_echo "no" >&6; }
13528 if test "$orig_target_nm" = ""; then
13529 for ac_prog in $ac_tool_nm
13531 # Extract the first word of "$ac_prog", so it can be a program name with args.
13532 set dummy $ac_prog; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if ${ac_cv_path_orig_target_nm+:} false; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 case $orig_target_nm in
13539 [\\/]* | ?:[\\/]*)
13540 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13546 IFS=$as_save_IFS
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552 break 2
13554 done
13555 done
13556 IFS=$as_save_IFS
13559 esac
13561 orig_target_nm=$ac_cv_path_orig_target_nm
13562 if test -n "$orig_target_nm"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13564 $as_echo "$orig_target_nm" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13571 test -n "$orig_target_nm" && break
13572 done
13577 else
13578 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13579 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13580 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582 $as_echo_n "checking for $ac_word... " >&6; }
13583 if ${ac_cv_path_orig_target_nm+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 case $orig_target_nm in
13587 [\\/]* | ?:[\\/]*)
13588 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13602 done
13603 done
13604 IFS=$as_save_IFS
13607 esac
13609 orig_target_nm=$ac_cv_path_orig_target_nm
13610 if test -n "$orig_target_nm"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13612 $as_echo "$orig_target_nm" >&6; }
13613 else
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13619 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13622 req_avail=yes
13623 if test "$orig_target_nm" = ""; then
13624 req_avail=no
13626 if test "$orig_target_nm" = "no"; then
13627 req_avail=no
13629 if test "$req_avail" = "no"; then
13630 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13633 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13634 if test "$cross_compiling" = "yes" ; then
13635 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13636 set dummy ${target_tool_prefix}strip; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if ${ac_cv_path_orig_target_strip+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 case $orig_target_strip in
13643 [\\/]* | ?:[\\/]*)
13644 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13654 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13658 done
13659 done
13660 IFS=$as_save_IFS
13663 esac
13665 orig_target_strip=$ac_cv_path_orig_target_strip
13666 if test -n "$orig_target_strip"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13668 $as_echo "$orig_target_strip" >&6; }
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13675 else
13677 if test "" = ""; then
13678 ac_tool_strip=strip
13679 else
13680 ac_tool_strip=
13682 if test "$GCC" = "yes"; then
13683 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13684 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13685 set dummy `basename $aros_gcc_strip`; ac_word=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687 $as_echo_n "checking for $ac_word... " >&6; }
13688 if ${ac_cv_path_orig_target_strip+:} false; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 case $orig_target_strip in
13692 [\\/]* | ?:[\\/]*)
13693 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in `dirname $aros_gcc_strip`
13699 IFS=$as_save_IFS
13700 test -z "$as_dir" && as_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13705 break 2
13707 done
13708 done
13709 IFS=$as_save_IFS
13712 esac
13714 orig_target_strip=$ac_cv_path_orig_target_strip
13715 if test -n "$orig_target_strip"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13717 $as_echo "$orig_target_strip" >&6; }
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13725 if test "$orig_target_strip" = ""; then
13726 for ac_prog in $ac_tool_strip
13728 # Extract the first word of "$ac_prog", so it can be a program name with args.
13729 set dummy $ac_prog; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if ${ac_cv_path_orig_target_strip+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 case $orig_target_strip in
13736 [\\/]* | ?:[\\/]*)
13737 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13751 done
13752 done
13753 IFS=$as_save_IFS
13756 esac
13758 orig_target_strip=$ac_cv_path_orig_target_strip
13759 if test -n "$orig_target_strip"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13761 $as_echo "$orig_target_strip" >&6; }
13762 else
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13768 test -n "$orig_target_strip" && break
13769 done
13774 else
13775 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13776 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13777 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if ${ac_cv_path_orig_target_strip+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 case $orig_target_strip in
13784 [\\/]* | ?:[\\/]*)
13785 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13799 done
13800 done
13801 IFS=$as_save_IFS
13804 esac
13806 orig_target_strip=$ac_cv_path_orig_target_strip
13807 if test -n "$orig_target_strip"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13809 $as_echo "$orig_target_strip" >&6; }
13810 else
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13816 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13819 req_avail=yes
13820 if test "$orig_target_strip" = ""; then
13821 req_avail=no
13823 if test "$orig_target_strip" = "no"; then
13824 req_avail=no
13826 if test "$req_avail" = "no"; then
13827 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13830 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13831 if test "$cross_compiling" = "yes" ; then
13832 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13833 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13835 $as_echo_n "checking for $ac_word... " >&6; }
13836 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839 case $orig_target_objcopy in
13840 [\\/]* | ?:[\\/]*)
13841 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13845 for as_dir in $PATH
13847 IFS=$as_save_IFS
13848 test -z "$as_dir" && as_dir=.
13849 for ac_exec_ext in '' $ac_executable_extensions; do
13850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13851 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 break 2
13855 done
13856 done
13857 IFS=$as_save_IFS
13860 esac
13862 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13863 if test -n "$orig_target_objcopy"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13865 $as_echo "$orig_target_objcopy" >&6; }
13866 else
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13872 else
13874 if test "" = ""; then
13875 ac_tool_objcopy=objcopy
13876 else
13877 ac_tool_objcopy=
13879 if test "$GCC" = "yes"; then
13880 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
13881 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13882 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 case $orig_target_objcopy in
13889 [\\/]* | ?:[\\/]*)
13890 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in `dirname $aros_gcc_objcopy`
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13904 done
13905 done
13906 IFS=$as_save_IFS
13909 esac
13911 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13912 if test -n "$orig_target_objcopy"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13914 $as_echo "$orig_target_objcopy" >&6; }
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13922 if test "$orig_target_objcopy" = ""; then
13923 for ac_prog in $ac_tool_objcopy
13925 # Extract the first word of "$ac_prog", so it can be a program name with args.
13926 set dummy $ac_prog; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 case $orig_target_objcopy in
13933 [\\/]* | ?:[\\/]*)
13934 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 for as_dir in $PATH
13940 IFS=$as_save_IFS
13941 test -z "$as_dir" && as_dir=.
13942 for ac_exec_ext in '' $ac_executable_extensions; do
13943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13944 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13946 break 2
13948 done
13949 done
13950 IFS=$as_save_IFS
13953 esac
13955 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13956 if test -n "$orig_target_objcopy"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13958 $as_echo "$orig_target_objcopy" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13965 test -n "$orig_target_objcopy" && break
13966 done
13971 else
13972 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13973 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13974 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 case $orig_target_objcopy in
13981 [\\/]* | ?:[\\/]*)
13982 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13996 done
13997 done
13998 IFS=$as_save_IFS
14001 esac
14003 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14004 if test -n "$orig_target_objcopy"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14006 $as_echo "$orig_target_objcopy" >&6; }
14007 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14013 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14016 req_avail=yes
14017 if test "$orig_target_objcopy" = ""; then
14018 req_avail=no
14020 if test "$orig_target_objcopy" = "no"; then
14021 req_avail=no
14023 if test "$req_avail" = "no"; then
14024 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14027 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14028 if test "$cross_compiling" = "yes" ; then
14029 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14030 set dummy ${target_tool_prefix}objdump; ac_word=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 $as_echo_n "checking for $ac_word... " >&6; }
14033 if ${ac_cv_path_orig_target_objdump+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 case $orig_target_objdump in
14037 [\\/]* | ?:[\\/]*)
14038 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14052 done
14053 done
14054 IFS=$as_save_IFS
14057 esac
14059 orig_target_objdump=$ac_cv_path_orig_target_objdump
14060 if test -n "$orig_target_objdump"; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14062 $as_echo "$orig_target_objdump" >&6; }
14063 else
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14069 else
14071 if test "" = ""; then
14072 ac_tool_objdump=objdump
14073 else
14074 ac_tool_objdump=
14076 if test "$GCC" = "yes"; then
14077 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14078 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14079 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_path_orig_target_objdump+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 case $orig_target_objdump in
14086 [\\/]* | ?:[\\/]*)
14087 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in `dirname $aros_gcc_objdump`
14093 IFS=$as_save_IFS
14094 test -z "$as_dir" && as_dir=.
14095 for ac_exec_ext in '' $ac_executable_extensions; do
14096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14097 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 break 2
14101 done
14102 done
14103 IFS=$as_save_IFS
14106 esac
14108 orig_target_objdump=$ac_cv_path_orig_target_objdump
14109 if test -n "$orig_target_objdump"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14111 $as_echo "$orig_target_objdump" >&6; }
14112 else
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14119 if test "$orig_target_objdump" = ""; then
14120 for ac_prog in $ac_tool_objdump
14122 # Extract the first word of "$ac_prog", so it can be a program name with args.
14123 set dummy $ac_prog; ac_word=$2
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125 $as_echo_n "checking for $ac_word... " >&6; }
14126 if ${ac_cv_path_orig_target_objdump+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 case $orig_target_objdump in
14130 [\\/]* | ?:[\\/]*)
14131 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14137 IFS=$as_save_IFS
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
14140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14141 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 break 2
14145 done
14146 done
14147 IFS=$as_save_IFS
14150 esac
14152 orig_target_objdump=$ac_cv_path_orig_target_objdump
14153 if test -n "$orig_target_objdump"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14155 $as_echo "$orig_target_objdump" >&6; }
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14162 test -n "$orig_target_objdump" && break
14163 done
14168 else
14169 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14170 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14171 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173 $as_echo_n "checking for $ac_word... " >&6; }
14174 if ${ac_cv_path_orig_target_objdump+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 case $orig_target_objdump in
14178 [\\/]* | ?:[\\/]*)
14179 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14193 done
14194 done
14195 IFS=$as_save_IFS
14198 esac
14200 orig_target_objdump=$ac_cv_path_orig_target_objdump
14201 if test -n "$orig_target_objdump"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14203 $as_echo "$orig_target_objdump" >&6; }
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14210 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14213 req_avail=yes
14214 if test "$orig_target_objdump" = ""; then
14215 req_avail=no
14217 if test "$orig_target_objdump" = "no"; then
14218 req_avail=no
14220 if test "$req_avail" = "no"; then
14221 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14225 if test "$kernel_tool_prefix" = "none" ; then
14226 # No kernel tools specified
14227 # Assume target tools == kernel tools with ELF wrapper
14228 aros_kernel_cc=$orig_target_cc
14229 aros_kernel_cxx=$orig_target_cxx
14230 aros_kernel_cpp=$orig_target_cpp
14231 aros_kernel_ld=$orig_target_ld
14232 aros_kernel_as=$orig_target_as
14233 aros_kernel_ar=$orig_target_ar
14234 aros_kernel_ranlib=$orig_target_ranlib
14235 aros_kernel_nm=$orig_target_nm
14236 aros_kernel_strip=$orig_target_strip
14237 aros_kernel_objcopy=$orig_target_objcopy
14238 aros_kernel_objdump=$orig_target_objdump
14239 use_kernel_cc_wrapper=yes
14242 # At this point, all aros_kernel_* and aros_target_*
14243 # tools should be set up correctly
14245 CC="$aros_kernel_cc $kernel_tool_flags"
14246 CPP="$aros_kernel_cpp"
14248 #-----------------------------------------------------------------------------
14250 # Find all the tools we need to compile. This could be cross-compiling
14251 # though! If that is the case we use the GNU form of the target and
14252 # simply add this to the front of the binary name. This is rather simple,
14253 # but it should work under most circumstances.
14255 # The default tools are to use the same as the host, but only if the
14256 # host and target CPU are the same. With GCC this is normally enough.
14259 aros_cc_pre=""
14260 aros_shared_ld="$aros_host_ld"
14262 aros_target_mkdep="$aros_host_mkdep"
14264 # The default tools executables to be linked to.
14265 if test "$rescomp" != ""; then
14266 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14267 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 case $aros_kernel_rescomp in
14274 [\\/]* | ?:[\\/]*)
14275 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14294 esac
14296 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14297 if test -n "$aros_kernel_rescomp"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14299 $as_echo "$aros_kernel_rescomp" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14306 req_avail=yes
14307 if test "$aros_kernel_rescomp" = ""; then
14308 req_avail=no
14310 if test "$aros_kernel_rescomp" = "no"; then
14311 req_avail=no
14313 if test "$req_avail" = "no"; then
14314 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14318 # Set up the sources for the symlink farm
14319 if test "$crosstools" = "yes"; then
14320 crosstools_target=tools-crosstools
14323 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14324 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14326 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14327 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14328 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14329 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14330 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14331 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14332 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14334 # aros_cc_pre is a variable that is added to the front of the compiler name
14335 # in the generated aros-gcc shell script. We need this to enable the cache
14336 # to work across cleaned builds. Also, support DISTCC using the correct
14337 # environment variable.
14340 if test "x${DISTCC}" != "x" ; then
14341 if test "x${CCACHE}" != "x" ; then
14342 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14343 else
14344 aros_cc_pre="${DISTCC} "
14346 else
14347 if test "x${CCACHE}" != "x" ; then
14348 aros_cc_pre="${CCACHE} "
14352 aros_target_nostdinc_cflags=-nostdinc
14354 aros_target_nostartup_ldflags=-nostartfiles
14356 aros_target_nix_ldflags=-nix
14358 aros_target_detach_ldflags=-detach
14360 aros_target_nostdlib_ldflags=-nostdlib
14363 aros_target_cc_path=
14365 # Target tools
14367 if test "$aros_target_toolchain" != "yes"; then
14368 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14369 if test "$GCC" = "yes"; then
14370 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14372 else
14373 # We do not know which c compiler version we are going to build and what we need to know
14374 # here is different for different versions so this will be set later during the
14375 # build of crosstools.
14376 if test "$aros_toolchain" = "gnu" ; then
14377 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14378 elif test "$aros_toolchain" = "llvm" ; then
14379 prefix="$AROS_CROSSTOOLSDIR/bin/"
14381 aros_target_cc_path=@aros_target_cc_path@
14383 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
14384 aros_target_cc="${prefix}${toolchain_c_compiler}"
14385 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14386 aros_target_as="${prefix}${toolchain_as}"
14387 if test "${use_ld_wrapper}" = "yes"; then
14388 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14389 else
14390 aros_target_ld="${prefix}${toolchain_ld}"
14392 aros_toolchain_ld="${prefix}${toolchain_ld}"
14394 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14395 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14396 aros_target_objdump="${prefix}${toolchain_objdump}"
14397 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14398 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14399 aros_target_strip="${prefix}${toolchain_strip}"
14400 aros_plain_nm="${prefix}${toolchain_nm}"
14401 aros_plain_ar="${prefix}${toolchain_ar}"
14403 # Check whether --enable-includes was given.
14404 if test "${enable_includes+set}" = set; then :
14405 enableval=$enable_includes; aros_target_incl=$enable_includes
14406 else
14407 aros_target_incl=no
14411 if test "x$aros_target_incl" = "xno"; then
14412 if test "x$test_kernel_cc" != "xno"; then
14413 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14414 else
14415 aros_target_incl=
14419 if test "x$aros_kernel_includes" = "x"; then
14420 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14421 if test "x$aros_target_incl" != "x"; then
14422 aros_kernel_includes="-isystem $aros_target_incl"
14427 if test "x$test_kernel_cc" != "xno"; then
14428 if test "$aros_kernel_includes" != "" ; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14430 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14431 if test "$aros_kernel_cc_includes" = "" ; then
14432 # Try to guess where the directory is.
14433 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14434 if test -d $aros_kernel_cc_includes; then
14435 # Check if there is also an include-fixed directory and add it
14436 # to kernel compiler's include path as it may contain some of
14437 # the headers we need.
14438 if test -d "$aros_kernel_cc_includes"-fixed; then
14439 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14441 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14442 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14443 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14445 else
14446 # The directory doesn't exist, we need to do some more work.
14447 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14449 # These are the headers we're looking for.
14450 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14451 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14452 zutil.h stdint.h"
14454 dirs=
14455 for h in $headers; do
14456 # Which other headers are needed by each of the above?
14457 deps=$(echo "#include <$h>" | \
14458 $aros_kernel_cc -E -M - 2>/dev/null | \
14459 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14461 # Copy all the needed headers to a directory beneath gendir.
14462 for d in $deps; do
14463 h=$(basename $d)
14464 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14465 sed -n "s,^.*/include\(/.*\),\1,p")
14466 ! test -d $dir && mkdir -p $dir
14467 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14468 done
14469 done
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14473 $as_echo "$aros_kernel_cc_includes" >&6; }
14474 # Adding -nostdinc to kernel includes as they are always used together.
14475 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14479 if test "$crosstools" != "yes"; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14481 $as_echo_n "checking for the target compiler's include path... " >&6; }
14482 if test "$aros_target_cc_includes" = "" ; then
14483 #try to guess where the directory is
14484 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14485 if ! test -d $aros_target_cc_includes; then
14486 #the directory doesn't exist, we need to do some more work
14487 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14489 #these are the headers we're looking for
14490 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14491 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14492 zutil.h"
14494 dirs=
14495 for h in $headers; do
14496 #which other headers each of the above headers needs?
14497 deps=$(echo "#include <$h>" | \
14498 $orig_target_cc -E -M - 2>/dev/null | \
14499 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14501 #copy all the needed headers to a directory beneath gendir
14502 for d in $deps; do
14503 h=$(basename $d)
14504 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14505 sed -n "s,^.*/include\(/.*\),\1,p")
14506 ! test -d $dir && mkdir -p $dir
14507 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14508 done
14509 done
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14513 $as_echo "$aros_target_cc_includes" >&6; }
14514 else
14515 # We do not know which c compiler version we are going to build and what we need to know
14516 # here is different for different versions so this will be set later during the
14517 # build of crosstools.
14518 aros_target_cc_includes=@aros_target_cc_includes@
14522 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14523 # On GCC >= 4.0 -iquote should be used
14526 save_cc="$CC"
14527 save_cflags="$CFLAGS"
14528 if test "x$test_kernel_cc" != "xno"; then
14529 CFLAGS="-iquote."
14530 kernel_cflags_iquote=$host_cflags_iquote
14531 kernel_cflags_iquote_end=$host_cflags_iquote_end
14532 if test "x-$cross_compiling" = "x-yes"; then
14533 CC="$aros_kernel_cc"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14535 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14536 if test "x-$crosstools" != "x-yes"; then
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14541 main ()
14545 return 0;
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549 use_no_stack_protector="yes"
14550 else
14551 use_no_stack_protector="no"
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 else
14555 # we do know it is supported for the smallest version of gcc we are going to build
14556 # we assume it's also supported by later versions
14557 use_no_stack_protector=yes
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14560 $as_echo "$use_no_stack_protector" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14562 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14563 if test "x-$crosstools" != "x-yes"; then
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14568 main ()
14572 return 0;
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"; then :
14576 has_iquote="yes"
14577 else
14578 has_iquote="no"
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 else
14582 # we do know it is supported for the smallest version of gcc we are going to build
14583 # we assume it's also supported by later versions
14584 has_iquote=yes
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14587 $as_echo "$has_iquote" >&6; }
14588 if test "x-$has_iquote" = "x-yes" ; then
14589 kernel_cflags_iquote=-iquote
14590 kernel_cflags_iquote_end=
14591 else
14592 kernel_cflags_iquote=-I
14593 kernel_cflags_iquote_end=-I-
14596 if test "x-$use_no_stack_protector" = "x-yes" ; then
14597 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14600 #-----------------------------------------------------------------------------
14602 # Check if we can explicitly choose older version of symbol hashing
14604 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14605 CC="$aros_kernel_cc"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14607 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14612 main ()
14616 return 0;
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620 use_hash_style="yes"
14621 else
14622 use_hash_style="no"
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14627 $as_echo "$use_hash_style" >&6; }
14628 if test "x-$use_hash_style" = "x-yes" ; then
14629 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14631 else
14632 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14633 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14635 CC="$save_cc"
14636 CFLAGS="$save_cflags"
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14645 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14647 # Check whether --with-resolution was given.
14648 if test "${with_resolution+set}" = set; then :
14649 withval=$with_resolution; resolution=$withval
14650 else
14651 resolution=none
14654 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14655 if test "$resolution" = "yes" ; then
14656 resolution="none"
14658 if test "$resolution" = "no" ; then
14659 resolution="none"
14661 if test "$resolution" != "none" ; then
14662 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14663 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14664 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14667 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14668 aros_cv_nominal_width=$aros_nominal_width
14669 aros_cv_nominal_height=$aros_nominal_height
14670 aros_cv_nominal_depth=$aros_nominal_depth
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14673 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14675 # Check whether --with-serial-debug was given.
14676 if test "${with_serial_debug+set}" = set; then :
14677 withval=$with_serial_debug; serial_debug=$withval
14678 else
14679 serial_debug=none
14682 if test "$aros_serial_debug" = 0 ; then
14683 serial_debug_forced=""
14684 if test "$serial_debug" = "yes" ; then
14685 serial_debug="1"
14687 if test "$serial_debug" = "no" ; then
14688 serial_debug="none"
14690 else
14691 serial_debug_forced="(forced)"
14692 serial_debug=$aros_serial_debug
14694 if test "$serial_debug" != "none" ; then
14695 aros_serial_debug=$serial_debug
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14697 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14698 else
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14700 $as_echo "no" >&6; }
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14704 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14705 # Check whether --enable-palm_debug_hack was given.
14706 if test "${enable_palm_debug_hack+set}" = set; then :
14707 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14708 else
14709 palm_debug_hack="no"
14712 if test "$palm_debug_hack" = "yes" ; then
14713 aros_palm_debug_hack="1"
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14716 $as_echo "$palm_debug_hack" >&6; }
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14719 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14720 # Check whether --enable-usb30_code was given.
14721 if test "${enable_usb30_code+set}" = set; then :
14722 enableval=$enable_usb30_code; usb30_code="yes"
14723 else
14724 usb30_code="no"
14727 if test "$usb30_code" = "yes" ; then
14728 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14729 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14732 $as_echo "$usb30_code" >&6; }
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14735 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14736 # Check whether --enable-nesting_supervisor was given.
14737 if test "${enable_nesting_supervisor+set}" = set; then :
14738 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14739 else
14740 nesting_supervisor="no"
14743 if test "$nesting_supervisor" = "yes" ; then
14744 aros_nesting_supervisor="1"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14747 $as_echo "$nesting_supervisor" >&6; }
14749 if test "$aros_enable_mmu" = "" ; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14751 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14752 # Check whether --enable-mmu was given.
14753 if test "${enable_mmu+set}" = set; then :
14754 enableval=$enable_mmu; aros_enable_mmu=$enableval
14755 else
14756 aros_enable_mmu="yes"
14759 if test "$aros_enable_mmu" = "" ; then
14760 aros_enable_mmu="yes"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14763 $as_echo "$aros_enable_mmu" >&6; }
14765 if test "$aros_enable_mmu" = "no" ; then
14766 aros_enable_mmu="0"
14767 else
14768 aros_enable_mmu="1"
14772 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14774 if test "x-$need_dlopen" != "x-no" ; then
14775 save_libs="$LIBS"
14776 LIBS=""
14777 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14778 if test "x$ac_cv_func_dlopen" = xyes; then :
14779 have_dl="yes"
14780 else
14781 have_dl="no"
14784 if test "x-$have_dl" = "x-no" ; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14786 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14787 if ${ac_cv_lib_dl_dlopen+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 ac_check_lib_save_LIBS=$LIBS
14791 LIBS="-ldl $LIBS"
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14798 #ifdef __cplusplus
14799 extern "C"
14800 #endif
14801 char dlopen ();
14803 main ()
14805 return dlopen ();
14807 return 0;
14809 _ACEOF
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 ac_cv_lib_dl_dlopen=yes
14812 else
14813 ac_cv_lib_dl_dlopen=no
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817 LIBS=$ac_check_lib_save_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14820 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14821 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14822 have_dl="yes"
14823 aros_host_ldflags="$aros_host_ldflags -ldl"
14824 else
14825 have_dl="no"
14829 if test "x-$have_dl" = "x-no" ; then
14830 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14832 LIBS="$save_libs"
14836 # Check whether --enable-x11_hidd was given.
14837 if test "${enable_x11_hidd+set}" = set; then :
14838 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14839 else
14840 x11_hidd="$need_x11"
14843 case "x-$x11_hidd" in
14844 x-yes|x-no|x-auto) ;;
14845 *) x11_hidd="$need_x11" ;;
14846 esac
14848 ENABLE_X11=0
14850 if test "x-$x11_hidd" != "x-no" ; then
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14853 $as_echo_n "checking for X... " >&6; }
14856 # Check whether --with-x was given.
14857 if test "${with_x+set}" = set; then :
14858 withval=$with_x;
14861 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14862 if test "x$with_x" = xno; then
14863 # The user explicitly disabled X.
14864 have_x=disabled
14865 else
14866 case $x_includes,$x_libraries in #(
14867 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14868 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 # One or both of the vars are not set, and there is no cached value.
14872 ac_x_includes=no ac_x_libraries=no
14873 rm -f -r conftest.dir
14874 if mkdir conftest.dir; then
14875 cd conftest.dir
14876 cat >Imakefile <<'_ACEOF'
14877 incroot:
14878 @echo incroot='${INCROOT}'
14879 usrlibdir:
14880 @echo usrlibdir='${USRLIBDIR}'
14881 libdir:
14882 @echo libdir='${LIBDIR}'
14883 _ACEOF
14884 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14886 for ac_var in incroot usrlibdir libdir; do
14887 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14888 done
14889 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14890 for ac_extension in a so sl dylib la dll; do
14891 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14892 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14893 ac_im_usrlibdir=$ac_im_libdir; break
14895 done
14896 # Screen out bogus values from the imake configuration. They are
14897 # bogus both because they are the default anyway, and because
14898 # using them would break gcc on systems where it needs fixed includes.
14899 case $ac_im_incroot in
14900 /usr/include) ac_x_includes= ;;
14901 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14902 esac
14903 case $ac_im_usrlibdir in
14904 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14905 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14906 esac
14908 cd ..
14909 rm -f -r conftest.dir
14912 # Standard set of common directories for X headers.
14913 # Check X11 before X11Rn because it is often a symlink to the current release.
14914 ac_x_header_dirs='
14915 /usr/X11/include
14916 /usr/X11R7/include
14917 /usr/X11R6/include
14918 /usr/X11R5/include
14919 /usr/X11R4/include
14921 /usr/include/X11
14922 /usr/include/X11R7
14923 /usr/include/X11R6
14924 /usr/include/X11R5
14925 /usr/include/X11R4
14927 /usr/local/X11/include
14928 /usr/local/X11R7/include
14929 /usr/local/X11R6/include
14930 /usr/local/X11R5/include
14931 /usr/local/X11R4/include
14933 /usr/local/include/X11
14934 /usr/local/include/X11R7
14935 /usr/local/include/X11R6
14936 /usr/local/include/X11R5
14937 /usr/local/include/X11R4
14939 /usr/X386/include
14940 /usr/x386/include
14941 /usr/XFree86/include/X11
14943 /usr/include
14944 /usr/local/include
14945 /usr/unsupported/include
14946 /usr/athena/include
14947 /usr/local/x11r5/include
14948 /usr/lpp/Xamples/include
14950 /usr/openwin/include
14951 /usr/openwin/share/include'
14953 if test "$ac_x_includes" = no; then
14954 # Guess where to find include files, by looking for Xlib.h.
14955 # First, try using that file with no special directory specified.
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 #include <X11/Xlib.h>
14959 _ACEOF
14960 if ac_fn_c_try_cpp "$LINENO"; then :
14961 # We can compile using X headers with no special include directory.
14962 ac_x_includes=
14963 else
14964 for ac_dir in $ac_x_header_dirs; do
14965 if test -r "$ac_dir/X11/Xlib.h"; then
14966 ac_x_includes=$ac_dir
14967 break
14969 done
14971 rm -f conftest.err conftest.i conftest.$ac_ext
14972 fi # $ac_x_includes = no
14974 if test "$ac_x_libraries" = no; then
14975 # Check for the libraries.
14976 # See if we find them without any special options.
14977 # Don't add to $LIBS permanently.
14978 ac_save_LIBS=$LIBS
14979 LIBS="-lX11 $LIBS"
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #include <X11/Xlib.h>
14984 main ()
14986 XrmInitialize ()
14988 return 0;
14990 _ACEOF
14991 if ac_fn_c_try_link "$LINENO"; then :
14992 LIBS=$ac_save_LIBS
14993 # We can link X programs with no special library path.
14994 ac_x_libraries=
14995 else
14996 LIBS=$ac_save_LIBS
14997 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14999 # Don't even attempt the hair of trying to link an X program!
15000 for ac_extension in a so sl dylib la dll; do
15001 if test -r "$ac_dir/libX11.$ac_extension"; then
15002 ac_x_libraries=$ac_dir
15003 break 2
15005 done
15006 done
15008 rm -f core conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext conftest.$ac_ext
15010 fi # $ac_x_libraries = no
15012 case $ac_x_includes,$ac_x_libraries in #(
15013 no,* | *,no | *\'*)
15014 # Didn't find X, or a directory has "'" in its name.
15015 ac_cv_have_x="have_x=no";; #(
15017 # Record where we found X for the cache.
15018 ac_cv_have_x="have_x=yes\
15019 ac_x_includes='$ac_x_includes'\
15020 ac_x_libraries='$ac_x_libraries'"
15021 esac
15023 ;; #(
15024 *) have_x=yes;;
15025 esac
15026 eval "$ac_cv_have_x"
15027 fi # $with_x != no
15029 if test "$have_x" != yes; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15031 $as_echo "$have_x" >&6; }
15032 no_x=yes
15033 else
15034 # If each of the values was on the command line, it overrides each guess.
15035 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15036 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15037 # Update the cache value to reflect the command line values.
15038 ac_cv_have_x="have_x=yes\
15039 ac_x_includes='$x_includes'\
15040 ac_x_libraries='$x_libraries'"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15042 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15046 if test -n "$x_includes"; then
15047 X_CFLAGS="$X_CFLAGS -I$x_includes"
15050 if test -n "$x_libraries"; then
15051 X_LIBS="$X_LIBS -L$x_libraries"
15054 if test "x-$no_x" = "x-yes" ; then
15056 if test "x-$x11_hidd" != "x-auto" ; then
15057 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15060 else
15061 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15062 if test "x-$host_feature_glx" != "x-no" ; then
15063 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15065 ENABLE_X11=1
15067 aros_host_x11_cflags="$X_CFLAGS"
15068 aros_host_x11_ldflags="$X_LIBS -lX11"
15070 # Check whether --enable-x11_shm was given.
15071 if test "${enable_x11_shm+set}" = set; then :
15072 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15073 else
15074 x11_hidd_shm="auto"
15077 case "x-$x11_hidd_shm" in
15078 x-yes|x-no|x-auto) ;;
15079 *) x11_hidd_shm="auto" ;;
15080 esac
15082 have_xshm=no
15084 if test "x-$x11_hidd_shm" != "x-no" ; then
15086 for ac_header in sys/ipc.h
15087 do :
15088 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15089 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_SYS_IPC_H 1
15092 _ACEOF
15096 done
15098 for ac_header in sys/shm.h
15099 do :
15100 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15101 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_SYS_SHM_H 1
15104 _ACEOF
15108 done
15111 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15113 save_cflags="$CFLAGS"
15114 save_ldflags="$LDFLAGS"
15115 CFLAGS="$CFLAGS $X_CFLAGS"
15116 LDFLAGS="$LDFLAGS $X_LIBS"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15118 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15119 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-lXext $LIBS"
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15127 /* Override any GCC internal prototype to avoid an error.
15128 Use char because int might match the return type of a GCC
15129 builtin and then its argument prototype would still apply. */
15130 #ifdef __cplusplus
15131 extern "C"
15132 #endif
15133 char XShmQueryExtension ();
15135 main ()
15137 return XShmQueryExtension ();
15139 return 0;
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"; then :
15143 ac_cv_lib_Xext_XShmQueryExtension=yes
15144 else
15145 ac_cv_lib_Xext_XShmQueryExtension=no
15147 rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15149 LIBS=$ac_check_lib_save_LIBS
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15152 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15153 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15154 have_xshm=yes
15157 CFLAGS="$save_cflags"
15158 LDFLAGS="$save_ldflags"
15162 if test "x-$have_xshm" = "x-yes" ; then
15163 DO_XSHM_SUPPORT="1"
15164 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15165 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15166 else
15167 DO_XSHM_SUPPORT="0"
15171 # Check whether --enable-x11_vidmode was given.
15172 if test "${enable_x11_vidmode+set}" = set; then :
15173 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15174 else
15175 x11_hidd_vidmode="auto"
15178 case "x-$x11_hidd_vidmode" in
15179 x-yes|x-no|x-auto) ;;
15180 *) x11_hidd_vidmode="auto" ;;
15181 esac
15183 have_vidmode=no
15185 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15187 save_cflags="$CFLAGS"
15188 save_ldflags="$LDFLAGS"
15189 CFLAGS="$CFLAGS $X_CFLAGS"
15190 LDFLAGS="$LDFLAGS $X_LIBS"
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15192 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15193 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 ac_check_lib_save_LIBS=$LIBS
15197 LIBS="-lXxf86vm $LIBS"
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15201 /* Override any GCC internal prototype to avoid an error.
15202 Use char because int might match the return type of a GCC
15203 builtin and then its argument prototype would still apply. */
15204 #ifdef __cplusplus
15205 extern "C"
15206 #endif
15207 char XF86VidModeQueryExtension ();
15209 main ()
15211 return XF86VidModeQueryExtension ();
15213 return 0;
15215 _ACEOF
15216 if ac_fn_c_try_link "$LINENO"; then :
15217 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15218 else
15219 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15221 rm -f core conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15223 LIBS=$ac_check_lib_save_LIBS
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15226 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15227 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15228 have_vidmode=yes
15231 CFLAGS="$save_cflags"
15232 LDFLAGS="$save_ldflags"
15235 if test "x-$have_vidmode" = "x-yes" ; then
15236 DO_VIDMODE_SUPPORT="1"
15237 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15238 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15239 else
15240 DO_VIDMODE_SUPPORT="0"
15245 # Check whether --enable-sdl_hidd was given.
15246 if test "${enable_sdl_hidd+set}" = set; then :
15247 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15248 else
15249 sdl_hidd="auto"
15252 case "x-$sdl_hidd" in
15253 x-yes|x-no|x-auto) ;;
15254 *) sdl_hidd="auto" ;;
15255 esac
15257 if test "x-$sdl_hidd" != "x-no" ; then
15259 SDL_VERSION=1.2.5
15261 # Check whether --with-sdl-prefix was given.
15262 if test "${with_sdl_prefix+set}" = set; then :
15263 withval=$with_sdl_prefix; sdl_prefix="$withval"
15264 else
15265 sdl_prefix=""
15269 # Check whether --with-sdl-exec-prefix was given.
15270 if test "${with_sdl_exec_prefix+set}" = set; then :
15271 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15272 else
15273 sdl_exec_prefix=""
15276 # Check whether --enable-sdltest was given.
15277 if test "${enable_sdltest+set}" = set; then :
15278 enableval=$enable_sdltest;
15279 else
15280 enable_sdltest=yes
15284 if test x$sdl_exec_prefix != x ; then
15285 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15286 if test x${SDL_CONFIG+set} != xset ; then
15287 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15290 if test x$sdl_prefix != x ; then
15291 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15292 if test x${SDL_CONFIG+set} != xset ; then
15293 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15297 as_save_PATH="$PATH"
15298 if test "x$prefix" != xNONE; then
15299 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15301 # Extract the first word of "sdl-config", so it can be a program name with args.
15302 set dummy sdl-config; ac_word=$2
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304 $as_echo_n "checking for $ac_word... " >&6; }
15305 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15306 $as_echo_n "(cached) " >&6
15307 else
15308 case $SDL_CONFIG in
15309 [\\/]* | ?:[\\/]*)
15310 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15314 for as_dir in $PATH
15316 IFS=$as_save_IFS
15317 test -z "$as_dir" && as_dir=.
15318 for ac_exec_ext in '' $ac_executable_extensions; do
15319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15320 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15322 break 2
15324 done
15325 done
15326 IFS=$as_save_IFS
15328 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15330 esac
15332 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15333 if test -n "$SDL_CONFIG"; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15335 $as_echo "$SDL_CONFIG" >&6; }
15336 else
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15338 $as_echo "no" >&6; }
15342 PATH="$as_save_PATH"
15343 min_sdl_version=$SDL_VERSION
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15345 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15346 no_sdl=""
15347 if test "$SDL_CONFIG" = "no" ; then
15348 no_sdl=yes
15349 else
15350 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15351 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15353 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15354 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15355 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15356 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15357 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15358 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15359 if test "x$enable_sdltest" = "xyes" ; then
15360 ac_save_CFLAGS="$CFLAGS"
15361 ac_save_CXXFLAGS="$CXXFLAGS"
15362 ac_save_LIBS="$LIBS"
15363 CFLAGS="$CFLAGS $SDL_CFLAGS"
15364 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15365 LIBS="$LIBS $SDL_LIBS"
15366 rm -f conf.sdltest
15367 if test "$cross_compiling" = yes; then :
15368 echo $ac_n "cross compiling; assumed OK... $ac_c"
15369 else
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15373 #include <stdio.h>
15374 #include <stdlib.h>
15375 #include <string.h>
15376 #include "SDL.h"
15378 char*
15379 my_strdup (char *str)
15381 char *new_str;
15383 if (str)
15385 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15386 strcpy (new_str, str);
15388 else
15389 new_str = NULL;
15391 return new_str;
15394 int main (int argc, char *argv[])
15396 int major, minor, micro;
15397 char *tmp_version;
15399 /* This hangs on some systems (?)
15400 system ("touch conf.sdltest");
15402 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15404 /* HP/UX 9 (%@#!) writes to sscanf strings */
15405 tmp_version = my_strdup("$min_sdl_version");
15406 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15407 printf("%s, bad version string\n", "$min_sdl_version");
15408 exit(1);
15411 if (($sdl_major_version > major) ||
15412 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15413 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15415 return 0;
15417 else
15419 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15420 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15421 printf("*** best to upgrade to the required version.\n");
15422 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15423 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15424 printf("*** config.cache before re-running configure\n");
15425 return 1;
15430 _ACEOF
15431 if ac_fn_c_try_run "$LINENO"; then :
15433 else
15434 no_sdl=yes
15436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15437 conftest.$ac_objext conftest.beam conftest.$ac_ext
15440 CFLAGS="$ac_save_CFLAGS"
15441 CXXFLAGS="$ac_save_CXXFLAGS"
15442 LIBS="$ac_save_LIBS"
15445 if test "x$no_sdl" = x ; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15447 $as_echo "yes" >&6; }
15448 have_sdl="yes"
15449 else
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15452 if test "$SDL_CONFIG" = "no" ; then
15453 echo "*** The sdl-config script installed by SDL could not be found"
15454 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15455 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15456 echo "*** full path to sdl-config."
15457 else
15458 if test -f conf.sdltest ; then
15460 else
15461 echo "*** Could not run SDL test program, checking why..."
15462 CFLAGS="$CFLAGS $SDL_CFLAGS"
15463 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15464 LIBS="$LIBS $SDL_LIBS"
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15468 #include <stdio.h>
15469 #include "SDL.h"
15471 int main(int argc, char *argv[])
15472 { return 0; }
15473 #undef main
15474 #define main K_and_R_C_main
15477 main ()
15479 return 0;
15481 return 0;
15483 _ACEOF
15484 if ac_fn_c_try_link "$LINENO"; then :
15485 echo "*** The test program compiled, but did not run. This usually means"
15486 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15487 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15488 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15489 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15490 echo "*** is required on your system"
15491 echo "***"
15492 echo "*** If you have an old version installed, it is best to remove it, although"
15493 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15494 else
15495 echo "*** The test program failed to compile or link. See the file config.log for the"
15496 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15497 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15498 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15500 rm -f core conftest.err conftest.$ac_objext \
15501 conftest$ac_exeext conftest.$ac_ext
15502 CFLAGS="$ac_save_CFLAGS"
15503 CXXFLAGS="$ac_save_CXXFLAGS"
15504 LIBS="$ac_save_LIBS"
15507 SDL_CFLAGS=""
15508 SDL_LIBS=""
15509 have_sdl="no"
15513 rm -f conf.sdltest
15516 if test "x-$have_sdl" != "x-yes" ; then
15518 if test "x-$sdl_hidd" != "x-auto" ; then
15519 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15522 else
15523 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15524 aros_host_sdl_cflags=$SDL_CFLAGS
15525 aros_host_sdl_libs=$SDL_LIBS
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15533 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15534 # Check whether --enable-dbus was given.
15535 if test "${enable_dbus+set}" = set; then :
15536 enableval=$enable_dbus; dbus="yes"
15537 else
15538 dbus="no"
15541 if test "$dbus" = "yes" ; then
15542 ENABLE_DBUS=1
15543 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15544 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15545 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15546 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15547 else
15548 ENABLE_DBUS=0
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15551 $as_echo "$dbus" >&6; }
15553 if test "$use_kernel_cc_wrapper" = "yes" ; then
15554 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15557 aros_kernel_cppflags=$aros_config_cppflags
15558 aros_optimization_cflags="$optimization_level"
15559 if test "$optimization" = "default"; then
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15561 $as_echo_n "checking default optimization level to use... " >&6; }
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15563 $as_echo "$optimization_level" >&6; }
15566 if ! test "$gcc_default_cpu" = "" ; then
15567 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"
15570 if test "$use_libatomic" = "yes" ; then
15571 aros_cxx_libs="$aros_cxx_libs -latomic"
15575 # Generic
15589 # Compatability with other Amiga-like operating systems
15592 # Host Related ###########################
15624 # Target Related #########################
15717 # Native version related
15722 # MMU related
15725 # Bootloader related
15728 # Unix/Hosted version related
15731 # ARM default GCC target related
15738 # Palm native version related
15741 # Apple iOS related
15746 # Android related
15752 # Debug related
15758 # Collect-aros stuff: "-ius" to ignore undefined symbols
15761 # C compiler related
15766 #ObjC compiler related
15769 #Java related
15772 # DBUS related
15779 #X11 related
15787 #X11 related
15791 # USB3.0 code
15794 case "$aros_flavour" in
15795 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15796 aros_flavour="emulation" ;;
15797 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15798 aros_flavour="emulation" ;;
15799 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15800 aros_flavour="standalone";;
15801 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15802 aros_flavour="standalone";;
15803 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15804 aros_flavour="native" ;;
15805 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15806 aros_flavour="native" ;;
15807 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15808 aros_flavour="linklib" ;;
15809 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15810 aros_flavour="palmnative" ;;
15811 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15812 aros_flavour="mac68knative" ;;
15813 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15814 aros_flavour="ppcnative" ;;
15815 esac
15817 if test ! -d ${aros_inc_dir} ; then
15818 ${MKDIR} ${aros_inc_dir}
15820 if test ! -d ${aros_geninc_dir} ; then
15821 ${MKDIR} ${aros_geninc_dir}
15823 if test ! -d ${aros_hostcfg_dir} ; then
15824 ${MKDIR} ${aros_hostcfg_dir}
15826 if test ! -d ${aros_targetcfg_dir} ; then
15827 ${MKDIR} ${aros_targetcfg_dir}
15829 if test ! -d ${aros_tools_dir} ; then
15830 ${MKDIR} ${aros_tools_dir}
15832 if test ! -d ${aros_scripts_dir} ; then
15833 ${MKDIR} ${aros_scripts_dir}
15836 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15839 # Generic build tools (metamake, etc)
15840 ac_config_commands="$ac_config_commands genmf-executable-support"
15842 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"
15845 # Binutils
15846 ac_config_commands="$ac_config_commands binutils-support"
15848 if test "${use_ld_wrapper}" = "yes"; then
15849 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"
15852 # Bare Elf support script and spec
15853 if test "${use_kernel_cc_wrapper}" = "yes"; then
15854 ac_config_commands="$ac_config_commands elf-compiler-support"
15856 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"
15860 # Host compiler support scripts and spec
15861 if test "${aros_target_toolchain}" = "no"; then
15862 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15864 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"
15868 # Android support
15869 if test "$aros_target_variant" == "android"; then
15870 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15874 # cmake helper
15875 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15878 cat >confcache <<\_ACEOF
15879 # This file is a shell script that caches the results of configure
15880 # tests run on this system so they can be shared between configure
15881 # scripts and configure runs, see configure's option --config-cache.
15882 # It is not useful on other systems. If it contains results you don't
15883 # want to keep, you may remove or edit it.
15885 # config.status only pays attention to the cache file if you give it
15886 # the --recheck option to rerun configure.
15888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15890 # following values.
15892 _ACEOF
15894 # The following way of writing the cache mishandles newlines in values,
15895 # but we know of no workaround that is simple, portable, and efficient.
15896 # So, we kill variables containing newlines.
15897 # Ultrix sh set writes to stderr and can't be redirected directly,
15898 # and sets the high bit in the cache file unless we assign to the vars.
15900 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15901 eval ac_val=\$$ac_var
15902 case $ac_val in #(
15903 *${as_nl}*)
15904 case $ac_var in #(
15905 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15906 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15907 esac
15908 case $ac_var in #(
15909 _ | IFS | as_nl) ;; #(
15910 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15911 *) { eval $ac_var=; unset $ac_var;} ;;
15912 esac ;;
15913 esac
15914 done
15916 (set) 2>&1 |
15917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15918 *${as_nl}ac_space=\ *)
15919 # `set' does not quote correctly, so add quotes: double-quote
15920 # substitution turns \\\\ into \\, and sed turns \\ into \.
15921 sed -n \
15922 "s/'/'\\\\''/g;
15923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15924 ;; #(
15926 # `set' quotes correctly as required by POSIX, so do not add quotes.
15927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15929 esac |
15930 sort
15932 sed '
15933 /^ac_cv_env_/b end
15934 t clear
15935 :clear
15936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15937 t end
15938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15939 :end' >>confcache
15940 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15941 if test -w "$cache_file"; then
15942 if test "x$cache_file" != "x/dev/null"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15944 $as_echo "$as_me: updating cache $cache_file" >&6;}
15945 if test ! -f "$cache_file" || test -h "$cache_file"; then
15946 cat confcache >"$cache_file"
15947 else
15948 case $cache_file in #(
15949 */* | ?:*)
15950 mv -f confcache "$cache_file"$$ &&
15951 mv -f "$cache_file"$$ "$cache_file" ;; #(
15953 mv -f confcache "$cache_file" ;;
15954 esac
15957 else
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15962 rm -f confcache
15964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15965 # Let make expand exec_prefix.
15966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15968 DEFS=-DHAVE_CONFIG_H
15970 ac_libobjs=
15971 ac_ltlibobjs=
15973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15974 # 1. Remove the extension, and $U if already installed.
15975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15978 # will be set to the directory where LIBOBJS objects are built.
15979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15981 done
15982 LIBOBJS=$ac_libobjs
15984 LTLIBOBJS=$ac_ltlibobjs
15988 : "${CONFIG_STATUS=./config.status}"
15989 ac_write_fail=0
15990 ac_clean_files_save=$ac_clean_files
15991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15994 as_write_fail=0
15995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15996 #! $SHELL
15997 # Generated by $as_me.
15998 # Run this file to recreate the current configuration.
15999 # Compiler output produced by configure, useful for debugging
16000 # configure, is in config.log if it exists.
16002 debug=false
16003 ac_cs_recheck=false
16004 ac_cs_silent=false
16006 SHELL=\${CONFIG_SHELL-$SHELL}
16007 export SHELL
16008 _ASEOF
16009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16010 ## -------------------- ##
16011 ## M4sh Initialization. ##
16012 ## -------------------- ##
16014 # Be more Bourne compatible
16015 DUALCASE=1; export DUALCASE # for MKS sh
16016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16017 emulate sh
16018 NULLCMD=:
16019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16020 # is contrary to our usage. Disable this feature.
16021 alias -g '${1+"$@"}'='"$@"'
16022 setopt NO_GLOB_SUBST
16023 else
16024 case `(set -o) 2>/dev/null` in #(
16025 *posix*) :
16026 set -o posix ;; #(
16027 *) :
16029 esac
16033 as_nl='
16035 export as_nl
16036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16037 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16040 # Prefer a ksh shell builtin over an external printf program on Solaris,
16041 # but without wasting forks for bash or zsh.
16042 if test -z "$BASH_VERSION$ZSH_VERSION" \
16043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16044 as_echo='print -r --'
16045 as_echo_n='print -rn --'
16046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16047 as_echo='printf %s\n'
16048 as_echo_n='printf %s'
16049 else
16050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16051 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16052 as_echo_n='/usr/ucb/echo -n'
16053 else
16054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16055 as_echo_n_body='eval
16056 arg=$1;
16057 case $arg in #(
16058 *"$as_nl"*)
16059 expr "X$arg" : "X\\(.*\\)$as_nl";
16060 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16061 esac;
16062 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16064 export as_echo_n_body
16065 as_echo_n='sh -c $as_echo_n_body as_echo'
16067 export as_echo_body
16068 as_echo='sh -c $as_echo_body as_echo'
16071 # The user is always right.
16072 if test "${PATH_SEPARATOR+set}" != set; then
16073 PATH_SEPARATOR=:
16074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16075 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16076 PATH_SEPARATOR=';'
16081 # IFS
16082 # We need space, tab and new line, in precisely that order. Quoting is
16083 # there to prevent editors from complaining about space-tab.
16084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16085 # splitting by setting IFS to empty value.)
16086 IFS=" "" $as_nl"
16088 # Find who we are. Look in the path if we contain no directory separator.
16089 as_myself=
16090 case $0 in #((
16091 *[\\/]* ) as_myself=$0 ;;
16092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $PATH
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16098 done
16099 IFS=$as_save_IFS
16102 esac
16103 # We did not find ourselves, most probably we were run as `sh COMMAND'
16104 # in which case we are not to be found in the path.
16105 if test "x$as_myself" = x; then
16106 as_myself=$0
16108 if test ! -f "$as_myself"; then
16109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16110 exit 1
16113 # Unset variables that we do not need and which cause bugs (e.g. in
16114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16115 # suppresses any "Segmentation fault" message there. '((' could
16116 # trigger a bug in pdksh 5.2.14.
16117 for as_var in BASH_ENV ENV MAIL MAILPATH
16118 do eval test x\${$as_var+set} = xset \
16119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16120 done
16121 PS1='$ '
16122 PS2='> '
16123 PS4='+ '
16125 # NLS nuisances.
16126 LC_ALL=C
16127 export LC_ALL
16128 LANGUAGE=C
16129 export LANGUAGE
16131 # CDPATH.
16132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16135 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16136 # ----------------------------------------
16137 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16138 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16139 # script with STATUS, using 1 if that was 0.
16140 as_fn_error ()
16142 as_status=$1; test $as_status -eq 0 && as_status=1
16143 if test "$4"; then
16144 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16147 $as_echo "$as_me: error: $2" >&2
16148 as_fn_exit $as_status
16149 } # as_fn_error
16152 # as_fn_set_status STATUS
16153 # -----------------------
16154 # Set $? to STATUS, without forking.
16155 as_fn_set_status ()
16157 return $1
16158 } # as_fn_set_status
16160 # as_fn_exit STATUS
16161 # -----------------
16162 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16163 as_fn_exit ()
16165 set +e
16166 as_fn_set_status $1
16167 exit $1
16168 } # as_fn_exit
16170 # as_fn_unset VAR
16171 # ---------------
16172 # Portably unset VAR.
16173 as_fn_unset ()
16175 { eval $1=; unset $1;}
16177 as_unset=as_fn_unset
16178 # as_fn_append VAR VALUE
16179 # ----------------------
16180 # Append the text in VALUE to the end of the definition contained in VAR. Take
16181 # advantage of any shell optimizations that allow amortized linear growth over
16182 # repeated appends, instead of the typical quadratic growth present in naive
16183 # implementations.
16184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16185 eval 'as_fn_append ()
16187 eval $1+=\$2
16189 else
16190 as_fn_append ()
16192 eval $1=\$$1\$2
16194 fi # as_fn_append
16196 # as_fn_arith ARG...
16197 # ------------------
16198 # Perform arithmetic evaluation on the ARGs, and store the result in the
16199 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16200 # must be portable across $(()) and expr.
16201 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16202 eval 'as_fn_arith ()
16204 as_val=$(( $* ))
16206 else
16207 as_fn_arith ()
16209 as_val=`expr "$@" || test $? -eq 1`
16211 fi # as_fn_arith
16214 if expr a : '\(a\)' >/dev/null 2>&1 &&
16215 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16216 as_expr=expr
16217 else
16218 as_expr=false
16221 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16222 as_basename=basename
16223 else
16224 as_basename=false
16227 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16228 as_dirname=dirname
16229 else
16230 as_dirname=false
16233 as_me=`$as_basename -- "$0" ||
16234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16235 X"$0" : 'X\(//\)$' \| \
16236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16237 $as_echo X/"$0" |
16238 sed '/^.*\/\([^/][^/]*\)\/*$/{
16239 s//\1/
16242 /^X\/\(\/\/\)$/{
16243 s//\1/
16246 /^X\/\(\/\).*/{
16247 s//\1/
16250 s/.*/./; q'`
16252 # Avoid depending upon Character Ranges.
16253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16256 as_cr_digits='0123456789'
16257 as_cr_alnum=$as_cr_Letters$as_cr_digits
16259 ECHO_C= ECHO_N= ECHO_T=
16260 case `echo -n x` in #(((((
16261 -n*)
16262 case `echo 'xy\c'` in
16263 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16264 xy) ECHO_C='\c';;
16265 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16266 ECHO_T=' ';;
16267 esac;;
16269 ECHO_N='-n';;
16270 esac
16272 rm -f conf$$ conf$$.exe conf$$.file
16273 if test -d conf$$.dir; then
16274 rm -f conf$$.dir/conf$$.file
16275 else
16276 rm -f conf$$.dir
16277 mkdir conf$$.dir 2>/dev/null
16279 if (echo >conf$$.file) 2>/dev/null; then
16280 if ln -s conf$$.file conf$$ 2>/dev/null; then
16281 as_ln_s='ln -s'
16282 # ... but there are two gotchas:
16283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16285 # In both cases, we have to default to `cp -pR'.
16286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16287 as_ln_s='cp -pR'
16288 elif ln conf$$.file conf$$ 2>/dev/null; then
16289 as_ln_s=ln
16290 else
16291 as_ln_s='cp -pR'
16293 else
16294 as_ln_s='cp -pR'
16296 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16297 rmdir conf$$.dir 2>/dev/null
16300 # as_fn_mkdir_p
16301 # -------------
16302 # Create "$as_dir" as a directory, including parents if necessary.
16303 as_fn_mkdir_p ()
16306 case $as_dir in #(
16307 -*) as_dir=./$as_dir;;
16308 esac
16309 test -d "$as_dir" || eval $as_mkdir_p || {
16310 as_dirs=
16311 while :; do
16312 case $as_dir in #(
16313 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16314 *) as_qdir=$as_dir;;
16315 esac
16316 as_dirs="'$as_qdir' $as_dirs"
16317 as_dir=`$as_dirname -- "$as_dir" ||
16318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16319 X"$as_dir" : 'X\(//\)[^/]' \| \
16320 X"$as_dir" : 'X\(//\)$' \| \
16321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16322 $as_echo X"$as_dir" |
16323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16324 s//\1/
16327 /^X\(\/\/\)[^/].*/{
16328 s//\1/
16331 /^X\(\/\/\)$/{
16332 s//\1/
16335 /^X\(\/\).*/{
16336 s//\1/
16339 s/.*/./; q'`
16340 test -d "$as_dir" && break
16341 done
16342 test -z "$as_dirs" || eval "mkdir $as_dirs"
16343 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16346 } # as_fn_mkdir_p
16347 if mkdir -p . 2>/dev/null; then
16348 as_mkdir_p='mkdir -p "$as_dir"'
16349 else
16350 test -d ./-p && rmdir ./-p
16351 as_mkdir_p=false
16355 # as_fn_executable_p FILE
16356 # -----------------------
16357 # Test if FILE is an executable regular file.
16358 as_fn_executable_p ()
16360 test -f "$1" && test -x "$1"
16361 } # as_fn_executable_p
16362 as_test_x='test -x'
16363 as_executable_p=as_fn_executable_p
16365 # Sed expression to map a string onto a valid CPP name.
16366 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16368 # Sed expression to map a string onto a valid variable name.
16369 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16372 exec 6>&1
16373 ## ----------------------------------- ##
16374 ## Main body of $CONFIG_STATUS script. ##
16375 ## ----------------------------------- ##
16376 _ASEOF
16377 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 # Save the log message, to keep $0 and so on meaningful, and to
16381 # report actual input values of CONFIG_FILES etc. instead of their
16382 # values after options handling.
16383 ac_log="
16384 This file was extended by $as_me, which was
16385 generated by GNU Autoconf 2.69. Invocation command line was
16387 CONFIG_FILES = $CONFIG_FILES
16388 CONFIG_HEADERS = $CONFIG_HEADERS
16389 CONFIG_LINKS = $CONFIG_LINKS
16390 CONFIG_COMMANDS = $CONFIG_COMMANDS
16391 $ $0 $@
16393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16396 _ACEOF
16398 case $ac_config_files in *"
16399 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16400 esac
16402 case $ac_config_headers in *"
16403 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16404 esac
16407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 # Files that config.status was made for.
16409 config_files="$ac_config_files"
16410 config_headers="$ac_config_headers"
16411 config_commands="$ac_config_commands"
16413 _ACEOF
16415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16416 ac_cs_usage="\
16417 \`$as_me' instantiates files and other configuration actions
16418 from templates according to the current configuration. Unless the files
16419 and actions are specified as TAGs, all are instantiated by default.
16421 Usage: $0 [OPTION]... [TAG]...
16423 -h, --help print this help, then exit
16424 -V, --version print version number and configuration settings, then exit
16425 --config print configuration, then exit
16426 -q, --quiet, --silent
16427 do not print progress messages
16428 -d, --debug don't remove temporary files
16429 --recheck update $as_me by reconfiguring in the same conditions
16430 --file=FILE[:TEMPLATE]
16431 instantiate the configuration file FILE
16432 --header=FILE[:TEMPLATE]
16433 instantiate the configuration header FILE
16435 Configuration files:
16436 $config_files
16438 Configuration headers:
16439 $config_headers
16441 Configuration commands:
16442 $config_commands
16444 Report bugs to the package provider."
16446 _ACEOF
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16449 ac_cs_version="\\
16450 config.status
16451 configured by $0, generated by GNU Autoconf 2.69,
16452 with options \\"\$ac_cs_config\\"
16454 Copyright (C) 2012 Free Software Foundation, Inc.
16455 This config.status script is free software; the Free Software Foundation
16456 gives unlimited permission to copy, distribute and modify it."
16458 ac_pwd='$ac_pwd'
16459 srcdir='$srcdir'
16460 test -n "\$AWK" || AWK=awk
16461 _ACEOF
16463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16464 # The default lists apply if the user does not specify any file.
16465 ac_need_defaults=:
16466 while test $# != 0
16468 case $1 in
16469 --*=?*)
16470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16471 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16472 ac_shift=:
16474 --*=)
16475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16476 ac_optarg=
16477 ac_shift=:
16480 ac_option=$1
16481 ac_optarg=$2
16482 ac_shift=shift
16484 esac
16486 case $ac_option in
16487 # Handling of the options.
16488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16489 ac_cs_recheck=: ;;
16490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16491 $as_echo "$ac_cs_version"; exit ;;
16492 --config | --confi | --conf | --con | --co | --c )
16493 $as_echo "$ac_cs_config"; exit ;;
16494 --debug | --debu | --deb | --de | --d | -d )
16495 debug=: ;;
16496 --file | --fil | --fi | --f )
16497 $ac_shift
16498 case $ac_optarg in
16499 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16500 '') as_fn_error $? "missing file argument" ;;
16501 esac
16502 as_fn_append CONFIG_FILES " '$ac_optarg'"
16503 ac_need_defaults=false;;
16504 --header | --heade | --head | --hea )
16505 $ac_shift
16506 case $ac_optarg in
16507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16508 esac
16509 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16510 ac_need_defaults=false;;
16511 --he | --h)
16512 # Conflict between --help and --header
16513 as_fn_error $? "ambiguous option: \`$1'
16514 Try \`$0 --help' for more information.";;
16515 --help | --hel | -h )
16516 $as_echo "$ac_cs_usage"; exit ;;
16517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16519 ac_cs_silent=: ;;
16521 # This is an error.
16522 -*) as_fn_error $? "unrecognized option: \`$1'
16523 Try \`$0 --help' for more information." ;;
16525 *) as_fn_append ac_config_targets " $1"
16526 ac_need_defaults=false ;;
16528 esac
16529 shift
16530 done
16532 ac_configure_extra_args=
16534 if $ac_cs_silent; then
16535 exec 6>/dev/null
16536 ac_configure_extra_args="$ac_configure_extra_args --silent"
16539 _ACEOF
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 if \$ac_cs_recheck; then
16542 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16543 shift
16544 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16545 CONFIG_SHELL='$SHELL'
16546 export CONFIG_SHELL
16547 exec "\$@"
16550 _ACEOF
16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552 exec 5>>config.log
16554 echo
16555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16556 ## Running $as_me. ##
16557 _ASBOX
16558 $as_echo "$ac_log"
16559 } >&5
16561 _ACEOF
16562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16564 # INIT-COMMANDS
16567 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16568 aros_tools_dir=${aros_tools_dir}
16572 aros_host_exe_suffix=${aros_host_exe_suffix}
16573 aros_tools_dir=${aros_tools_dir}
16574 aros_target_cpu=${aros_target_cpu}
16575 aros_target_arch=${aros_target_arch}
16576 aros_target_suffix=${aros_target_suffix}
16577 orig_target_nm=${orig_target_nm}
16578 orig_target_as=${orig_target_as}
16579 orig_target_ar=${orig_target_ar}
16580 orig_target_ranlib=${orig_target_ranlib}
16581 orig_target_objdump=${orig_target_objdump}
16582 orig_target_objcopy=${orig_target_objcopy}
16583 orig_target_strip=${orig_target_strip}
16584 aros_kernel_ld=${aros_kernel_ld}
16588 aros_host_exe_suffix=${aros_host_exe_suffix}
16589 aros_tools_dir=${aros_tools_dir}
16590 aros_target_cpu=${aros_target_cpu}
16591 aros_target_arch=${aros_target_arch}
16592 aros_target_suffix=${aros_target_suffix}
16593 aros_kernel_ld=${aros_kernel_ld}
16597 aros_host_exe_suffix=${aros_host_exe_suffix}
16598 aros_tools_dir=${aros_tools_dir}
16599 aros_target_cpu=${aros_target_cpu}
16600 aros_target_arch=${aros_target_arch}
16601 aros_target_suffix=${aros_target_suffix}
16605 _ACEOF
16607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16609 # Handling of arguments.
16610 for ac_config_target in $ac_config_targets
16612 case $ac_config_target in
16613 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16614 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16616 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16617 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16618 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16619 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16620 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16621 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16622 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16623 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16624 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16625 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16626 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16627 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16628 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16629 "${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" ;;
16630 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16631 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16632 "${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" ;;
16633 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16634 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16635 "${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" ;;
16636 "${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" ;;
16637 "${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" ;;
16638 "${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" ;;
16639 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16641 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16642 esac
16643 done
16646 # If the user did not use the arguments to specify the items to instantiate,
16647 # then the envvar interface is used. Set only those that are not.
16648 # We use the long form for the default assignment because of an extremely
16649 # bizarre bug on SunOS 4.1.3.
16650 if $ac_need_defaults; then
16651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16656 # Have a temporary directory for convenience. Make it in the build tree
16657 # simply because there is no reason against having it here, and in addition,
16658 # creating and moving files from /tmp can sometimes cause problems.
16659 # Hook for its removal unless debugging.
16660 # Note that there is a small window in which the directory will not be cleaned:
16661 # after its creation but before its name has been assigned to `$tmp'.
16662 $debug ||
16664 tmp= ac_tmp=
16665 trap 'exit_status=$?
16666 : "${ac_tmp:=$tmp}"
16667 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16669 trap 'as_fn_exit 1' 1 2 13 15
16671 # Create a (secure) tmp directory for tmp files.
16674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16675 test -d "$tmp"
16676 } ||
16678 tmp=./conf$$-$RANDOM
16679 (umask 077 && mkdir "$tmp")
16680 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16681 ac_tmp=$tmp
16683 # Set up the scripts for CONFIG_FILES section.
16684 # No need to generate them if there are no CONFIG_FILES.
16685 # This happens for instance with `./config.status config.h'.
16686 if test -n "$CONFIG_FILES"; then
16689 ac_cr=`echo X | tr X '\015'`
16690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16691 # But we know of no other shell where ac_cr would be empty at this
16692 # point, so we can use a bashism as a fallback.
16693 if test "x$ac_cr" = x; then
16694 eval ac_cr=\$\'\\r\'
16696 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16698 ac_cs_awk_cr='\\r'
16699 else
16700 ac_cs_awk_cr=$ac_cr
16703 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16704 _ACEOF
16708 echo "cat >conf$$subs.awk <<_ACEOF" &&
16709 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16710 echo "_ACEOF"
16711 } >conf$$subs.sh ||
16712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16714 ac_delim='%!_!# '
16715 for ac_last_try in false false false false false :; do
16716 . ./conf$$subs.sh ||
16717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16719 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16720 if test $ac_delim_n = $ac_delim_num; then
16721 break
16722 elif $ac_last_try; then
16723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16724 else
16725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16727 done
16728 rm -f conf$$subs.sh
16730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16731 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16732 _ACEOF
16733 sed -n '
16735 s/^/S["/; s/!.*/"]=/
16738 s/^[^!]*!//
16739 :repl
16740 t repl
16741 s/'"$ac_delim"'$//
16742 t delim
16745 s/\(.\{148\}\)..*/\1/
16746 t more1
16747 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16750 b repl
16751 :more1
16752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16755 s/.\{148\}//
16756 t nl
16757 :delim
16759 s/\(.\{148\}\)..*/\1/
16760 t more2
16761 s/["\\]/\\&/g; s/^/"/; s/$/"/
16764 :more2
16765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16768 s/.\{148\}//
16769 t delim
16770 ' <conf$$subs.awk | sed '
16771 /^[^""]/{
16773 s/\n//
16775 ' >>$CONFIG_STATUS || ac_write_fail=1
16776 rm -f conf$$subs.awk
16777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16778 _ACAWK
16779 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16780 for (key in S) S_is_set[key] = 1
16781 FS = "\a"
16785 line = $ 0
16786 nfields = split(line, field, "@")
16787 substed = 0
16788 len = length(field[1])
16789 for (i = 2; i < nfields; i++) {
16790 key = field[i]
16791 keylen = length(key)
16792 if (S_is_set[key]) {
16793 value = S[key]
16794 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16795 len += length(value) + length(field[++i])
16796 substed = 1
16797 } else
16798 len += 1 + keylen
16801 print line
16804 _ACAWK
16805 _ACEOF
16806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16807 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16808 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16809 else
16811 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16812 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16813 _ACEOF
16815 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16816 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16817 # trailing colons and then remove the whole line if VPATH becomes empty
16818 # (actually we leave an empty line to preserve line numbers).
16819 if test "x$srcdir" = x.; then
16820 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16822 s///
16823 s/^/:/
16824 s/[ ]*$/:/
16825 s/:\$(srcdir):/:/g
16826 s/:\${srcdir}:/:/g
16827 s/:@srcdir@:/:/g
16828 s/^:*//
16829 s/:*$//
16831 s/\(=[ ]*\).*/\1/
16833 s/\n//
16834 s/^[^=]*=[ ]*$//
16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16839 fi # test -n "$CONFIG_FILES"
16841 # Set up the scripts for CONFIG_HEADERS section.
16842 # No need to generate them if there are no CONFIG_HEADERS.
16843 # This happens for instance with `./config.status Makefile'.
16844 if test -n "$CONFIG_HEADERS"; then
16845 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16846 BEGIN {
16847 _ACEOF
16849 # Transform confdefs.h into an awk script `defines.awk', embedded as
16850 # here-document in config.status, that substitutes the proper values into
16851 # config.h.in to produce config.h.
16853 # Create a delimiter string that does not exist in confdefs.h, to ease
16854 # handling of long lines.
16855 ac_delim='%!_!# '
16856 for ac_last_try in false false :; do
16857 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16858 if test -z "$ac_tt"; then
16859 break
16860 elif $ac_last_try; then
16861 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16862 else
16863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16865 done
16867 # For the awk script, D is an array of macro values keyed by name,
16868 # likewise P contains macro parameters if any. Preserve backslash
16869 # newline sequences.
16871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16872 sed -n '
16873 s/.\{148\}/&'"$ac_delim"'/g
16874 t rset
16875 :rset
16876 s/^[ ]*#[ ]*define[ ][ ]*/ /
16877 t def
16879 :def
16880 s/\\$//
16881 t bsnl
16882 s/["\\]/\\&/g
16883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16884 D["\1"]=" \3"/p
16885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16887 :bsnl
16888 s/["\\]/\\&/g
16889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16890 D["\1"]=" \3\\\\\\n"\\/p
16891 t cont
16892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16893 t cont
16895 :cont
16897 s/.\{148\}/&'"$ac_delim"'/g
16898 t clear
16899 :clear
16900 s/\\$//
16901 t bsnlc
16902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16904 :bsnlc
16905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16906 b cont
16907 ' <confdefs.h | sed '
16908 s/'"$ac_delim"'/"\\\
16909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912 for (key in D) D_is_set[key] = 1
16913 FS = "\a"
16915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16916 line = \$ 0
16917 split(line, arg, " ")
16918 if (arg[1] == "#") {
16919 defundef = arg[2]
16920 mac1 = arg[3]
16921 } else {
16922 defundef = substr(arg[1], 2)
16923 mac1 = arg[2]
16925 split(mac1, mac2, "(") #)
16926 macro = mac2[1]
16927 prefix = substr(line, 1, index(line, defundef) - 1)
16928 if (D_is_set[macro]) {
16929 # Preserve the white space surrounding the "#".
16930 print prefix "define", macro P[macro] D[macro]
16931 next
16932 } else {
16933 # Replace #undef with comments. This is necessary, for example,
16934 # in the case of _POSIX_SOURCE, which is predefined and required
16935 # on some systems where configure will not decide to define it.
16936 if (defundef == "undef") {
16937 print "/*", prefix defundef, macro, "*/"
16938 next
16942 { print }
16943 _ACAWK
16944 _ACEOF
16945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16946 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16947 fi # test -n "$CONFIG_HEADERS"
16950 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16951 shift
16952 for ac_tag
16954 case $ac_tag in
16955 :[FHLC]) ac_mode=$ac_tag; continue;;
16956 esac
16957 case $ac_mode$ac_tag in
16958 :[FHL]*:*);;
16959 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16960 :[FH]-) ac_tag=-:-;;
16961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16962 esac
16963 ac_save_IFS=$IFS
16964 IFS=:
16965 set x $ac_tag
16966 IFS=$ac_save_IFS
16967 shift
16968 ac_file=$1
16969 shift
16971 case $ac_mode in
16972 :L) ac_source=$1;;
16973 :[FH])
16974 ac_file_inputs=
16975 for ac_f
16977 case $ac_f in
16978 -) ac_f="$ac_tmp/stdin";;
16979 *) # Look for the file first in the build tree, then in the source tree
16980 # (if the path is not absolute). The absolute path cannot be DOS-style,
16981 # because $ac_f cannot contain `:'.
16982 test -f "$ac_f" ||
16983 case $ac_f in
16984 [\\/$]*) false;;
16985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16986 esac ||
16987 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16988 esac
16989 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16990 as_fn_append ac_file_inputs " '$ac_f'"
16991 done
16993 # Let's still pretend it is `configure' which instantiates (i.e., don't
16994 # use $as_me), people would be surprised to read:
16995 # /* config.h. Generated by config.status. */
16996 configure_input='Generated from '`
16997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16998 `' by configure.'
16999 if test x"$ac_file" != x-; then
17000 configure_input="$ac_file. $configure_input"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17002 $as_echo "$as_me: creating $ac_file" >&6;}
17004 # Neutralize special characters interpreted by sed in replacement strings.
17005 case $configure_input in #(
17006 *\&* | *\|* | *\\* )
17007 ac_sed_conf_input=`$as_echo "$configure_input" |
17008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17009 *) ac_sed_conf_input=$configure_input;;
17010 esac
17012 case $ac_tag in
17013 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17015 esac
17017 esac
17019 ac_dir=`$as_dirname -- "$ac_file" ||
17020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17021 X"$ac_file" : 'X\(//\)[^/]' \| \
17022 X"$ac_file" : 'X\(//\)$' \| \
17023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17024 $as_echo X"$ac_file" |
17025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17026 s//\1/
17029 /^X\(\/\/\)[^/].*/{
17030 s//\1/
17033 /^X\(\/\/\)$/{
17034 s//\1/
17037 /^X\(\/\).*/{
17038 s//\1/
17041 s/.*/./; q'`
17042 as_dir="$ac_dir"; as_fn_mkdir_p
17043 ac_builddir=.
17045 case "$ac_dir" in
17046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17049 # A ".." for each directory in $ac_dir_suffix.
17050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17051 case $ac_top_builddir_sub in
17052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17054 esac ;;
17055 esac
17056 ac_abs_top_builddir=$ac_pwd
17057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17058 # for backward compatibility:
17059 ac_top_builddir=$ac_top_build_prefix
17061 case $srcdir in
17062 .) # We are building in place.
17063 ac_srcdir=.
17064 ac_top_srcdir=$ac_top_builddir_sub
17065 ac_abs_top_srcdir=$ac_pwd ;;
17066 [\\/]* | ?:[\\/]* ) # Absolute name.
17067 ac_srcdir=$srcdir$ac_dir_suffix;
17068 ac_top_srcdir=$srcdir
17069 ac_abs_top_srcdir=$srcdir ;;
17070 *) # Relative name.
17071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17072 ac_top_srcdir=$ac_top_build_prefix$srcdir
17073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17074 esac
17075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17078 case $ac_mode in
17081 # CONFIG_FILE
17084 _ACEOF
17086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17087 # If the template does not know about datarootdir, expand it.
17088 # FIXME: This hack should be removed a few years after 2.60.
17089 ac_datarootdir_hack=; ac_datarootdir_seen=
17090 ac_sed_dataroot='
17091 /datarootdir/ {
17095 /@datadir@/p
17096 /@docdir@/p
17097 /@infodir@/p
17098 /@localedir@/p
17099 /@mandir@/p'
17100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17101 *datarootdir*) ac_datarootdir_seen=yes;;
17102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17105 _ACEOF
17106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 ac_datarootdir_hack='
17108 s&@datadir@&$datadir&g
17109 s&@docdir@&$docdir&g
17110 s&@infodir@&$infodir&g
17111 s&@localedir@&$localedir&g
17112 s&@mandir@&$mandir&g
17113 s&\\\${datarootdir}&$datarootdir&g' ;;
17114 esac
17115 _ACEOF
17117 # Neutralize VPATH when `$srcdir' = `.'.
17118 # Shell code in configure.ac might set extrasub.
17119 # FIXME: do we really want to maintain this feature?
17120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17121 ac_sed_extra="$ac_vpsub
17122 $extrasub
17123 _ACEOF
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17127 s|@configure_input@|$ac_sed_conf_input|;t t
17128 s&@top_builddir@&$ac_top_builddir_sub&;t t
17129 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17130 s&@srcdir@&$ac_srcdir&;t t
17131 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17132 s&@top_srcdir@&$ac_top_srcdir&;t t
17133 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17134 s&@builddir@&$ac_builddir&;t t
17135 s&@abs_builddir@&$ac_abs_builddir&;t t
17136 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17137 $ac_datarootdir_hack
17139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17140 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17143 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17145 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17147 which seems to be undefined. Please make sure it is defined" >&5
17148 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17149 which seems to be undefined. Please make sure it is defined" >&2;}
17151 rm -f "$ac_tmp/stdin"
17152 case $ac_file in
17153 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17154 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17155 esac \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17160 # CONFIG_HEADER
17162 if test x"$ac_file" != x-; then
17164 $as_echo "/* $configure_input */" \
17165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17166 } >"$ac_tmp/config.h" \
17167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17168 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17170 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17171 else
17172 rm -f "$ac_file"
17173 mv "$ac_tmp/config.h" "$ac_file" \
17174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17176 else
17177 $as_echo "/* $configure_input */" \
17178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17179 || as_fn_error $? "could not create -" "$LINENO" 5
17183 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17184 $as_echo "$as_me: executing $ac_file commands" >&6;}
17186 esac
17189 case $ac_file$ac_mode in
17190 "genmf-executable-support":C)
17191 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17192 chmod a+x ${aros_tools_dir}/genmf.py
17194 "binutils-support":C)
17195 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17196 mkdir -p $prefix
17197 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17199 chmod a+x ${prefix2}-ld
17201 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17202 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17203 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17204 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17205 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17206 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17207 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17209 "elf-compiler-support":C)
17210 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17211 mkdir -p $prefix
17212 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17214 chmod a+x ${prefix2}-gcc
17216 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17218 "host-compiler-wrapper-support":C)
17219 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17220 mkdir -p $prefix
17221 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17223 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17226 esac
17227 done # for ac_tag
17230 as_fn_exit 0
17231 _ACEOF
17232 ac_clean_files=$ac_clean_files_save
17234 test $ac_write_fail = 0 ||
17235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17238 # configure is writing to config.log, and then calls config.status.
17239 # config.status does its own redirection, appending to config.log.
17240 # Unfortunately, on DOS this fails, as config.log is still kept open
17241 # by configure, so config.status won't be able to write to it; its
17242 # output is simply discarded. So we exec the FD to /dev/null,
17243 # effectively closing config.log, so it can be properly (re)opened and
17244 # appended to by config.status. When coming back to configure, we
17245 # need to make the FD available again.
17246 if test "$no_create" != yes; then
17247 ac_cs_success=:
17248 ac_config_status_args=
17249 test "$silent" = yes &&
17250 ac_config_status_args="$ac_config_status_args --quiet"
17251 exec 5>/dev/null
17252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17253 exec 5>>config.log
17254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17255 # would make configure fail if this is the last instruction.
17256 $ac_cs_success || as_fn_exit 1
17258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17265 #XXX compatability...
17266 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17268 if test -n "$aros_shared_cflags" ; then
17269 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17270 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg