force CC/CXX to the passed in compiler to use.
[AROS.git] / configure
blob048cad43129fd302f650fd481a12fc1ef05c4344
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 base_lld_name
858 MMAKE
861 ac_ct_CC
862 CFLAGS
864 OBJEXT
865 EXEEXT
866 ac_ct_CXX
867 CPPFLAGS
868 LDFLAGS
869 CXXFLAGS
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 target_alias
880 host_alias
881 build_alias
882 LIBS
883 ECHO_T
884 ECHO_N
885 ECHO_C
886 DEFS
887 mandir
888 localedir
889 libdir
890 psdir
891 pdfdir
892 dvidir
893 htmldir
894 infodir
895 docdir
896 oldincludedir
897 includedir
898 runstatedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_URL
911 PACKAGE_BUGREPORT
912 PACKAGE_STRING
913 PACKAGE_VERSION
914 PACKAGE_TARNAME
915 PACKAGE_NAME
916 PATH_SEPARATOR
917 SHELL'
918 ac_subst_files=''
919 ac_user_opts='
920 enable_option_checking
921 with_c_compiler
922 with_cxx_compiler
923 enable_libpng_config
924 with_toolchain
925 enable_lto
926 enable_coverage
927 enable_build_type
928 enable_debug
929 enable_distcc
930 enable_ccache
931 with_kernel_gcc_version
932 with_optimization
933 with_paranoia
934 enable_target_variant
935 with_xcode
936 with_sdk_version
937 with_sdk
938 with_ndk
939 with_ndk_version
940 with_apk_version
941 enable_amigaos_compliance
942 with_kernel_toolchain_prefix
943 with_elf_toolchain_prefix
944 with_aros_toolchain
945 enable_crosstools
946 with_aros_toolchain_install
947 with_binutils_version
948 with_gcc_version
949 enable_objc
950 enable_java
951 with_cpu
952 with_fpu
953 with_float
954 with_portssources
955 with_bootloader
956 with_iconset
957 with_theme
958 enable_includes
959 with_resolution
960 with_serial_debug
961 enable_palm_debug_hack
962 enable_usb30_code
963 enable_nesting_supervisor
964 enable_mmu
965 enable_x11_hidd
966 with_x
967 enable_x11_shm
968 enable_x11_vidmode
969 enable_sdl_hidd
970 with_sdl_prefix
971 with_sdl_exec_prefix
972 enable_sdltest
973 enable_dbus
975 ac_precious_vars='build_alias
976 host_alias
977 target_alias
979 CXXFLAGS
980 LDFLAGS
981 LIBS
982 CPPFLAGS
985 CFLAGS
987 PYTHON
988 XMKMF'
991 # Initialize some variables set by options.
992 ac_init_help=
993 ac_init_version=false
994 ac_unrecognized_opts=
995 ac_unrecognized_sep=
996 # The variables have the same names as the options, with
997 # dashes changed to underlines.
998 cache_file=/dev/null
999 exec_prefix=NONE
1000 no_create=
1001 no_recursion=
1002 prefix=NONE
1003 program_prefix=NONE
1004 program_suffix=NONE
1005 program_transform_name=s,x,x,
1006 silent=
1007 site=
1008 srcdir=
1009 verbose=
1010 x_includes=NONE
1011 x_libraries=NONE
1013 # Installation directory options.
1014 # These are left unexpanded so users can "make install exec_prefix=/foo"
1015 # and all the variables that are supposed to be based on exec_prefix
1016 # by default will actually change.
1017 # Use braces instead of parens because sh, perl, etc. also accept them.
1018 # (The list follows the same order as the GNU Coding Standards.)
1019 bindir='${exec_prefix}/bin'
1020 sbindir='${exec_prefix}/sbin'
1021 libexecdir='${exec_prefix}/libexec'
1022 datarootdir='${prefix}/share'
1023 datadir='${datarootdir}'
1024 sysconfdir='${prefix}/etc'
1025 sharedstatedir='${prefix}/com'
1026 localstatedir='${prefix}/var'
1027 runstatedir='${localstatedir}/run'
1028 includedir='${prefix}/include'
1029 oldincludedir='/usr/include'
1030 docdir='${datarootdir}/doc/${PACKAGE}'
1031 infodir='${datarootdir}/info'
1032 htmldir='${docdir}'
1033 dvidir='${docdir}'
1034 pdfdir='${docdir}'
1035 psdir='${docdir}'
1036 libdir='${exec_prefix}/lib'
1037 localedir='${datarootdir}/locale'
1038 mandir='${datarootdir}/man'
1040 ac_prev=
1041 ac_dashdash=
1042 for ac_option
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1047 ac_prev=
1048 continue
1051 case $ac_option in
1052 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *=) ac_optarg= ;;
1054 *) ac_optarg=yes ;;
1055 esac
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1061 ac_dashdash=yes ;;
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 ac_prev=bindir ;;
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1083 -datadir | --datadir | --datadi | --datad)
1084 ac_prev=datadir ;;
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1148 with_gas=yes ;;
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 ac_prev=htmldir ;;
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 | --ht=*)
1166 htmldir=$ac_optarg ;;
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 ac_prev=infodir ;;
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1180 -libdir | --libdir | --libdi | --libd)
1181 ac_prev=libdir ;;
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 ac_prev=mandir ;;
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1211 with_fp=no ;;
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1215 no_create=yes ;;
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 no_recursion=yes ;;
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 ac_prev=prefix ;;
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 ac_prev=pdfdir ;;
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1271 -psdir | --psdir | --psdi | --psd | --ps)
1272 ac_prev=psdir ;;
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 psdir=$ac_optarg ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 silent=yes ;;
1280 -runstatedir | --runstatedir | --runstatedi | --runstated \
1281 | --runstate | --runstat | --runsta | --runst | --runs \
1282 | --run | --ru | --r)
1283 ac_prev=runstatedir ;;
1284 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1285 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1286 | --run=* | --ru=* | --r=*)
1287 runstatedir=$ac_optarg ;;
1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 ac_prev=sbindir ;;
1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 | --sbi=* | --sb=*)
1293 sbindir=$ac_optarg ;;
1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297 | --sharedst | --shareds | --shared | --share | --shar \
1298 | --sha | --sh)
1299 ac_prev=sharedstatedir ;;
1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 | --sha=* | --sh=*)
1304 sharedstatedir=$ac_optarg ;;
1306 -site | --site | --sit)
1307 ac_prev=site ;;
1308 -site=* | --site=* | --sit=*)
1309 site=$ac_optarg ;;
1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 ac_prev=srcdir ;;
1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314 srcdir=$ac_optarg ;;
1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317 | --syscon | --sysco | --sysc | --sys | --sy)
1318 ac_prev=sysconfdir ;;
1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321 sysconfdir=$ac_optarg ;;
1323 -target | --target | --targe | --targ | --tar | --ta | --t)
1324 ac_prev=target_alias ;;
1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326 target_alias=$ac_optarg ;;
1328 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329 verbose=yes ;;
1331 -version | --version | --versio | --versi | --vers | -V)
1332 ac_init_version=: ;;
1334 -with-* | --with-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error $? "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=\$ac_optarg ;;
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid package name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1359 "with_$ac_useropt"
1360 "*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval with_$ac_useropt=no ;;
1366 --x)
1367 # Obsolete; use --with-x.
1368 with_x=yes ;;
1370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371 | --x-incl | --x-inc | --x-in | --x-i)
1372 ac_prev=x_includes ;;
1373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375 x_includes=$ac_optarg ;;
1377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379 ac_prev=x_libraries ;;
1380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382 x_libraries=$ac_optarg ;;
1384 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information"
1388 *=*)
1389 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' | [0-9]* | *[!_$as_cr_alnum]* )
1393 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1394 esac
1395 eval $ac_envvar=\$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1406 esac
1407 done
1409 if test -n "$ac_prev"; then
1410 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error $? "missing argument to $ac_option"
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1416 no) ;;
1417 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419 esac
1422 # Check all directory arguments for consistency.
1423 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir runstatedir
1428 eval ac_val=\$$ac_var
1429 # Remove trailing slashes.
1430 case $ac_val in
1431 */ )
1432 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\$ac_val;;
1434 esac
1435 # Be sure to have absolute directory names.
1436 case $ac_val in
1437 [\\/$]* | ?:[\\/]* ) continue;;
1438 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439 esac
1440 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1441 done
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452 if test "x$build_alias" = x; then
1453 cross_compiling=maybe
1454 elif test "x$build_alias" != "x$host_alias"; then
1455 cross_compiling=yes
1459 ac_tool_prefix=
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462 test "$silent" = yes && exec 6>/dev/null
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error $? "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error $? "pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484 s//\1/
1487 /^X\(\/\/\)[^/].*/{
1488 s//\1/
1491 /^X\(\/\/\)$/{
1492 s//\1/
1495 /^X\(\/\).*/{
1496 s//\1/
1499 s/.*/./; q'`
1500 srcdir=$ac_confdir
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 srcdir=..
1504 else
1505 ac_srcdir_defaulted=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 ac_abs_confdir=`(
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1514 pwd)`
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517 srcdir=.
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1522 case $srcdir in
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 esac
1525 for ac_var in $ac_precious_vars; do
1526 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_${ac_var}_value=\$${ac_var}
1528 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530 done
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1538 cat <<_ACEOF
1539 \`configure' configures this package to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1548 Configuration:
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking ...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1563 [PREFIX]
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1593 _ACEOF
1595 cat <<\_ACEOF
1597 X features:
1598 --x-includes=DIR X include files are in DIR
1599 --x-libraries=DIR X library files are in DIR
1601 System types:
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1604 _ACEOF
1607 if test -n "$ac_init_help"; then
1609 cat <<\_ACEOF
1611 Optional Features:
1612 --disable-option-checking ignore unrecognized --enable/--with options
1613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1615 --disable-libpng-config disable libpng-config test and configuration
1616 --enable-lto=yes|no Enable link time optimizations if the target
1617 compiler supports them (default=no)
1618 --enable-coverage=yes|no
1619 Enable coverage instrumentation if the target
1620 compiler supports it (default=no)
1621 --enable-build-type=TYPE
1622 Select the build type. Available types are:
1623 personal, nightly, snapshot, milestone, release. Do
1624 NOT use this option unless you know what you are
1625 doing! (default=personal)
1626 --enable-debug=list Enable different types of debug. Commas or
1627 whitespaces can be used to separate the items in the
1628 list. Available types of debug are: all, none,
1629 messages, stack, mungwall, modules, symbols. If no
1630 list is provided then "all" is assumed.
1631 (default=none)
1632 --enable-distcc Use distcc as a front end to the compiler
1633 (default=no).
1634 --enable-ccache Use ccache as a front end to the compiler
1635 (default=no).
1636 --enable-target-variant=NAME
1637 Enable a specific target variant (default=none)
1638 --enable-amigaos-compliance=VERSION
1639 Enforce userspace AmigaOS compliance to a specific
1640 KickStart version (default=none).
1641 --disable-crosstools Do not build cross-compiler toolchain
1642 --enable-objc Enable Objectve-C support (default=no)
1643 --enable-java Enable Java support (default=no)
1644 --enable-includes=dir Alternative system include directory
1645 --enable-palm-debug-hack
1646 Enable palm debug output hack in palm native
1647 (default=no)
1648 --enable-usb30-code Enable usb3.0 code (default=no)
1649 --enable-nesting-supervisor
1650 Enable nesting supervisor support in unix
1651 (default=no)
1652 --disable-mmu Disable MMU support (default=enabled)
1653 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1654 --enable-x11-shm use X11 shared memory (default=auto)
1655 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1656 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1657 --disable-sdltest Do not try to compile and run a test SDL program
1658 --enable-dbus Enable DBUS support via dbus.library (default=no)
1660 Optional Packages:
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --with-c-compiler=VERSION
1664 Use specified c compiler for building AROS
1665 --with-cxx-compiler=VERSION
1666 Use specified c++ compiler building AROS
1667 --with-toolchain=family Which toolchain family to crosscompile with
1668 (defaults to gnu)
1669 --with-kernel-gcc-version=VERSION
1670 Use gcc-VERSION for building bootstrap
1671 --with-optimization=FLAGS
1672 Use optimization flags FLAGS (e.g
1673 --with-optimization=-O2).
1674 --with-paranoia=(yes|no|FLAGS)
1675 Specific compiler warning FLAGS to enable for
1676 paranoia builds (default=-Wall -Werror)
1677 --with-xcode=PATH Specify XCode path for iOS targets
1678 (default=/Developer).
1679 --with-sdk-version=VERSION
1680 Use iOS SDK version VERSION (default=4.1).
1681 --with-sdk=PATH Specify Android SDK path
1682 (default=$default_android_sdk).
1683 --with-ndk=PATH Specify Android NDK path (default=none).
1684 --with-sdk-version=LEVEL
1685 Use Android SDK for API LEVEL (default=12).
1686 --with-ndk-version=LEVEL
1687 Use Android NDK for API LEVEL (default=9).
1688 --with-apk-version=(release|debug)
1689 Which version of AROSBootstrap.apk to compile.
1690 Release version needs key for signing, debug version
1691 will only run in emulator. (default=release)
1692 --with-kernel-toolchain-prefix=...
1693 Specify crosscompile toolchain prefix for kernel
1694 objects
1695 --with-elf-toolchain-prefix=...
1696 Specify crosscompile toolchain prefix to wrap for
1697 AROS objects
1698 --with-aros-toolchain=PREFIX
1699 Specify prebuilt AROS toolchain. Use yes for default
1700 name
1701 --with-aros-toolchain-install=DIR
1702 Where to install or search for cross tools binaries
1703 --with-binutils-version=VERSION
1704 Use binutils-VERSION for building AROS
1705 --with-gcc-version=VERSION
1706 Compile gcc-VERSION for AROS
1707 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1708 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1709 --with-float=<spec> Specify floating point ABI
1710 (default=$gcc_default_float_abi).
1711 --with-portssources=DIR Where to download sourcecode for external ports
1712 --with-bootloader=NAME Use a specific bootloader
1713 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1714 --with-theme=NAME Use a specific GUI Theme
1715 --with-resolution=XRESxYRESxDEPTH
1716 Default resolution of the initial WorkbenchScreen
1717 --with-serial-debug Enable serial debug output in native (default=no)
1718 --with-x use the X Window System
1719 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1720 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1722 Some influential environment variables:
1723 CXX C++ compiler command
1724 CXXFLAGS C++ compiler flags
1725 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1726 nonstandard directory <lib dir>
1727 LIBS libraries to pass to the linker, e.g. -l<library>
1728 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1729 you have headers in a nonstandard directory <include dir>
1730 CC C compiler command
1731 CFLAGS C compiler flags
1732 CPP C preprocessor
1733 PYTHON the Python interpreter
1734 XMKMF Path to xmkmf, Makefile generator for X Window System
1736 Use these variables to override the choices made by `configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1739 Report bugs to the package provider.
1740 _ACEOF
1741 ac_status=$?
1744 if test "$ac_init_help" = "recursive"; then
1745 # If there are subdirs, report their specific --help.
1746 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1747 test -d "$ac_dir" ||
1748 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1749 continue
1750 ac_builddir=.
1752 case "$ac_dir" in
1753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756 # A ".." for each directory in $ac_dir_suffix.
1757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758 case $ac_top_builddir_sub in
1759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1761 esac ;;
1762 esac
1763 ac_abs_top_builddir=$ac_pwd
1764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1765 # for backward compatibility:
1766 ac_top_builddir=$ac_top_build_prefix
1768 case $srcdir in
1769 .) # We are building in place.
1770 ac_srcdir=.
1771 ac_top_srcdir=$ac_top_builddir_sub
1772 ac_abs_top_srcdir=$ac_pwd ;;
1773 [\\/]* | ?:[\\/]* ) # Absolute name.
1774 ac_srcdir=$srcdir$ac_dir_suffix;
1775 ac_top_srcdir=$srcdir
1776 ac_abs_top_srcdir=$srcdir ;;
1777 *) # Relative name.
1778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779 ac_top_srcdir=$ac_top_build_prefix$srcdir
1780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 esac
1782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1784 cd "$ac_dir" || { ac_status=$?; continue; }
1785 # Check for guested configure.
1786 if test -f "$ac_srcdir/configure.gnu"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789 elif test -f "$ac_srcdir/configure"; then
1790 echo &&
1791 $SHELL "$ac_srcdir/configure" --help=recursive
1792 else
1793 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 fi || ac_status=$?
1795 cd "$ac_pwd" || { ac_status=$?; break; }
1796 done
1799 test -n "$ac_init_help" && exit $ac_status
1800 if $ac_init_version; then
1801 cat <<\_ACEOF
1802 configure
1803 generated by GNU Autoconf 2.69
1805 Copyright (C) 2012 Free Software Foundation, Inc.
1806 This configure script is free software; the Free Software Foundation
1807 gives unlimited permission to copy, distribute and modify it.
1808 _ACEOF
1809 exit
1812 ## ------------------------ ##
1813 ## Autoconf initialization. ##
1814 ## ------------------------ ##
1816 # ac_fn_cxx_try_compile LINENO
1817 # ----------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_cxx_try_compile
1854 # ac_fn_c_try_compile LINENO
1855 # --------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=1
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_c_try_compile
1892 # ac_fn_c_try_cpp LINENO
1893 # ----------------------
1894 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_cpp ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } > conftest.i && {
1914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 ac_retval=1
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_cpp
1929 # ac_fn_c_try_link LINENO
1930 # -----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_link ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 test -x conftest$ac_exeext
1957 }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=1
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_link
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1979 # accordingly.
1980 ac_fn_c_check_header_mongrel ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if eval \${$3+:} false; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 else
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_header_compiler=yes
2003 else
2004 ac_header_compiler=no
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_cpp "$LINENO"; then :
2018 ac_header_preproc=yes
2019 else
2020 ac_header_preproc=no
2022 rm -f conftest.err conftest.i conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 yes:no: )
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 no:yes:* )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 esac
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=\$ac_header_compiler"
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_mongrel
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_c_try_run ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2077 ac_status=$?
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_c_try_run
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2119 #include <$2>
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$3=yes"
2123 else
2124 eval "$3=no"
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_compile
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 static $2 ac_aggr;
2154 if (ac_aggr.$3)
2155 return 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$4=yes"
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 static $2 ac_aggr;
2170 if (sizeof ac_aggr.$3)
2171 return 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 eval "$4=yes"
2178 else
2179 eval "$4=no"
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 eval ac_res=\$$4
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_member
2192 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2193 # ---------------------------------------------
2194 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2195 # accordingly.
2196 ac_fn_c_check_decl ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 as_decl_name=`echo $2|sed 's/ *(.*//'`
2200 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2202 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 #ifndef $as_decl_name
2213 #ifdef __cplusplus
2214 (void) $as_decl_use;
2215 #else
2216 (void) $as_decl_name;
2217 #endif
2218 #endif
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$3=yes"
2226 else
2227 eval "$3=no"
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 eval ac_res=\$$3
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 } # ac_fn_c_check_decl
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if eval \${$3+:} false; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 eval "$3=no"
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 if (sizeof ($2))
2258 return 0;
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 if (sizeof (($2)))
2271 return 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2278 else
2279 eval "$3=yes"
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_check_func LINENO FUNC VAR
2293 # ----------------------------------
2294 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2295 ac_fn_c_check_func ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2307 #define $2 innocuous_$2
2309 /* System header to define __stub macros and hopefully few prototypes,
2310 which can conflict with char $2 (); below.
2311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2312 <limits.h> exists even on freestanding compilers. */
2314 #ifdef __STDC__
2315 # include <limits.h>
2316 #else
2317 # include <assert.h>
2318 #endif
2320 #undef $2
2322 /* Override any GCC internal prototype to avoid an error.
2323 Use char because int might match the return type of a GCC
2324 builtin and then its argument prototype would still apply. */
2325 #ifdef __cplusplus
2326 extern "C"
2327 #endif
2328 char $2 ();
2329 /* The GNU C library defines this for functions which it implements
2330 to always fail with ENOSYS. Some functions are actually named
2331 something starting with __ and the normal name is an alias. */
2332 #if defined __stub_$2 || defined __stub___$2
2333 choke me
2334 #endif
2337 main ()
2339 return $2 ();
2341 return 0;
2343 _ACEOF
2344 if ac_fn_c_try_link "$LINENO"; then :
2345 eval "$3=yes"
2346 else
2347 eval "$3=no"
2349 rm -f core conftest.err conftest.$ac_objext \
2350 conftest$ac_exeext conftest.$ac_ext
2352 eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 } # ac_fn_c_check_func
2358 cat >config.log <<_ACEOF
2359 This file contains any messages produced by compilers while
2360 running configure, to aid debugging if configure makes a mistake.
2362 It was created by $as_me, which was
2363 generated by GNU Autoconf 2.69. Invocation command line was
2365 $ $0 $@
2367 _ACEOF
2368 exec 5>>config.log
2370 cat <<_ASUNAME
2371 ## --------- ##
2372 ## Platform. ##
2373 ## --------- ##
2375 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2376 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2377 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2378 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2379 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2381 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2382 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2384 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2385 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2386 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2387 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2388 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2389 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2390 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2392 _ASUNAME
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 $as_echo "PATH: $as_dir"
2400 done
2401 IFS=$as_save_IFS
2403 } >&5
2405 cat >&5 <<_ACEOF
2408 ## ----------- ##
2409 ## Core tests. ##
2410 ## ----------- ##
2412 _ACEOF
2415 # Keep a trace of the command line.
2416 # Strip out --no-create and --no-recursion so they do not pile up.
2417 # Strip out --silent because we don't want to record it for future runs.
2418 # Also quote any args containing shell meta-characters.
2419 # Make two passes to allow for proper duplicate-argument suppression.
2420 ac_configure_args=
2421 ac_configure_args0=
2422 ac_configure_args1=
2423 ac_must_keep_next=false
2424 for ac_pass in 1 2
2426 for ac_arg
2428 case $ac_arg in
2429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2431 | -silent | --silent | --silen | --sile | --sil)
2432 continue ;;
2433 *\'*)
2434 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2435 esac
2436 case $ac_pass in
2437 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2439 as_fn_append ac_configure_args1 " '$ac_arg'"
2440 if test $ac_must_keep_next = true; then
2441 ac_must_keep_next=false # Got value, back to normal.
2442 else
2443 case $ac_arg in
2444 *=* | --config-cache | -C | -disable-* | --disable-* \
2445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2447 | -with-* | --with-* | -without-* | --without-* | --x)
2448 case "$ac_configure_args0 " in
2449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2450 esac
2452 -* ) ac_must_keep_next=true ;;
2453 esac
2455 as_fn_append ac_configure_args " '$ac_arg'"
2457 esac
2458 done
2459 done
2460 { ac_configure_args0=; unset ac_configure_args0;}
2461 { ac_configure_args1=; unset ac_configure_args1;}
2463 # When interrupted or exit'd, cleanup temporary files, and complete
2464 # config.log. We remove comments because anyway the quotes in there
2465 # would cause problems or look ugly.
2466 # WARNING: Use '\'' to represent an apostrophe within the trap.
2467 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2468 trap 'exit_status=$?
2469 # Save into config.log some information that might help in debugging.
2471 echo
2473 $as_echo "## ---------------- ##
2474 ## Cache variables. ##
2475 ## ---------------- ##"
2476 echo
2477 # The following way of writing the cache mishandles newlines in values,
2479 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in #(
2482 *${as_nl}*)
2483 case $ac_var in #(
2484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2486 esac
2487 case $ac_var in #(
2488 _ | IFS | as_nl) ;; #(
2489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2490 *) { eval $ac_var=; unset $ac_var;} ;;
2491 esac ;;
2492 esac
2493 done
2494 (set) 2>&1 |
2495 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2496 *${as_nl}ac_space=\ *)
2497 sed -n \
2498 "s/'\''/'\''\\\\'\'''\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2500 ;; #(
2502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 esac |
2505 sort
2507 echo
2509 $as_echo "## ----------------- ##
2510 ## Output variables. ##
2511 ## ----------------- ##"
2512 echo
2513 for ac_var in $ac_subst_vars
2515 eval ac_val=\$$ac_var
2516 case $ac_val in
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 esac
2519 $as_echo "$ac_var='\''$ac_val'\''"
2520 done | sort
2521 echo
2523 if test -n "$ac_subst_files"; then
2524 $as_echo "## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##"
2527 echo
2528 for ac_var in $ac_subst_files
2530 eval ac_val=\$$ac_var
2531 case $ac_val in
2532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 esac
2534 $as_echo "$ac_var='\''$ac_val'\''"
2535 done | sort
2536 echo
2539 if test -s confdefs.h; then
2540 $as_echo "## ----------- ##
2541 ## confdefs.h. ##
2542 ## ----------- ##"
2543 echo
2544 cat confdefs.h
2545 echo
2547 test "$ac_signal" != 0 &&
2548 $as_echo "$as_me: caught signal $ac_signal"
2549 $as_echo "$as_me: exit $exit_status"
2550 } >&5
2551 rm -f core *.core core.conftest.* &&
2552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2553 exit $exit_status
2555 for ac_signal in 1 2 13 15; do
2556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2557 done
2558 ac_signal=0
2560 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2561 rm -f -r conftest* confdefs.h
2563 $as_echo "/* confdefs.h */" > confdefs.h
2565 # Predefined preprocessor variables.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_NAME "$PACKAGE_NAME"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_STRING "$PACKAGE_STRING"
2581 _ACEOF
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2585 _ACEOF
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_URL "$PACKAGE_URL"
2589 _ACEOF
2592 # Let the site file select an alternate cache file if it wants to.
2593 # Prefer an explicitly selected file to automatically selected ones.
2594 ac_site_file1=NONE
2595 ac_site_file2=NONE
2596 if test -n "$CONFIG_SITE"; then
2597 # We do not want a PATH search for config.site.
2598 case $CONFIG_SITE in #((
2599 -*) ac_site_file1=./$CONFIG_SITE;;
2600 */*) ac_site_file1=$CONFIG_SITE;;
2601 *) ac_site_file1=./$CONFIG_SITE;;
2602 esac
2603 elif test "x$prefix" != xNONE; then
2604 ac_site_file1=$prefix/share/config.site
2605 ac_site_file2=$prefix/etc/config.site
2606 else
2607 ac_site_file1=$ac_default_prefix/share/config.site
2608 ac_site_file2=$ac_default_prefix/etc/config.site
2610 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612 test "x$ac_site_file" = xNONE && continue
2613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2615 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2616 sed 's/^/| /' "$ac_site_file" >&5
2617 . "$ac_site_file" \
2618 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 as_fn_error $? "failed to load site script $ac_site_file
2621 See \`config.log' for more details" "$LINENO" 5; }
2623 done
2625 if test -r "$cache_file"; then
2626 # Some versions of bash will fail to source /dev/null (special files
2627 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2628 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2630 $as_echo "$as_me: loading cache $cache_file" >&6;}
2631 case $cache_file in
2632 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2633 *) . "./$cache_file";;
2634 esac
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2638 $as_echo "$as_me: creating cache $cache_file" >&6;}
2639 >$cache_file
2642 as_fn_append ac_header_list " stdlib.h"
2643 as_fn_append ac_header_list " unistd.h"
2644 as_fn_append ac_header_list " sys/param.h"
2645 # Check that the precious variables saved in the cache have kept the same
2646 # value.
2647 ac_cache_corrupted=false
2648 for ac_var in $ac_precious_vars; do
2649 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2650 eval ac_new_set=\$ac_env_${ac_var}_set
2651 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2652 eval ac_new_val=\$ac_env_${ac_var}_value
2653 case $ac_old_set,$ac_new_set in
2654 set,)
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2658 ,set)
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2660 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2661 ac_cache_corrupted=: ;;
2662 ,);;
2664 if test "x$ac_old_val" != "x$ac_new_val"; then
2665 # differences in whitespace do not lead to failure.
2666 ac_old_val_w=`echo x $ac_old_val`
2667 ac_new_val_w=`echo x $ac_new_val`
2668 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2670 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2671 ac_cache_corrupted=:
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2674 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2675 eval $ac_var=\$ac_old_val
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2678 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2680 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2681 fi;;
2682 esac
2683 # Pass precious variables to config.status.
2684 if test "$ac_new_set" = set; then
2685 case $ac_new_val in
2686 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 *) ac_arg=$ac_var=$ac_new_val ;;
2688 esac
2689 case " $ac_configure_args " in
2690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2691 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2692 esac
2694 done
2695 if $ac_cache_corrupted; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2699 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2700 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2702 ## -------------------- ##
2703 ## Main body of script. ##
2704 ## -------------------- ##
2706 ac_ext=c
2707 ac_cpp='$CPP $CPPFLAGS'
2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 ac_aux_dir=
2715 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2716 if test -f "$ac_dir/install-sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install-sh -c"
2719 break
2720 elif test -f "$ac_dir/install.sh"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/install.sh -c"
2723 break
2724 elif test -f "$ac_dir/shtool"; then
2725 ac_aux_dir=$ac_dir
2726 ac_install_sh="$ac_aux_dir/shtool install -c"
2727 break
2729 done
2730 if test -z "$ac_aux_dir"; then
2731 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2734 # These three variables are undocumented and unsupported,
2735 # and are intended to be withdrawn in a future Autoconf release.
2736 # They can cause serious problems if a builder's source tree is in a directory
2737 # whose full name contains unusual characters.
2738 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2739 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2740 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2744 # Check what host we are running on.
2745 # If a target is not suggested, we use this one.
2746 # Note that what we call a target, Autoconf calls a host.
2747 # Make sure we can run config.sub.
2748 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2749 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2752 $as_echo_n "checking build system type... " >&6; }
2753 if ${ac_cv_build+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 ac_build_alias=$build_alias
2757 test "x$ac_build_alias" = x &&
2758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2759 test "x$ac_build_alias" = x &&
2760 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2761 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2766 $as_echo "$ac_cv_build" >&6; }
2767 case $ac_cv_build in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2770 esac
2771 build=$ac_cv_build
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_build
2774 shift
2775 build_cpu=$1
2776 build_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 build_os=$*
2781 IFS=$ac_save_IFS
2782 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2786 $as_echo_n "checking host system type... " >&6; }
2787 if ${ac_cv_host+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test "x$host_alias" = x; then
2791 ac_cv_host=$ac_cv_build
2792 else
2793 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2799 $as_echo "$ac_cv_host" >&6; }
2800 case $ac_cv_host in
2801 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2803 esac
2804 host=$ac_cv_host
2805 ac_save_IFS=$IFS; IFS='-'
2806 set x $ac_cv_host
2807 shift
2808 host_cpu=$1
2809 host_vendor=$2
2810 shift; shift
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2813 host_os=$*
2814 IFS=$ac_save_IFS
2815 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819 # Default versions for the gnu tools we build
2820 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2821 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2822 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2823 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2824 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2825 default_grub2_version="2.02"
2826 target_grub2_version=$default_grub2_version
2828 # The AROS target is slightly different to the normal GNU style
2829 # format. We don't have the middle part, and we reverse the order
2830 # of the $(CPU) and $(OS) bits.
2832 # Don't strip the version of the target yet, it might be
2833 # useful on some systems.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2836 $as_echo_n "checking for AROS style target... " >&6; }
2838 if test "$target" = "NONE" ; then
2839 target=$host_os-$host_cpu
2840 else
2841 if test "$target" = "" ; then
2842 target=$host_os-$host_cpu
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2846 $as_echo "$target" >&6; }
2848 if test "$host_os" = "mingw32" ; then
2849 PWDCMD="pwd -W"
2852 # Don't know where else to put this...
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2854 $as_echo_n "checking building AROS in... " >&6; }
2855 AROS_BUILDDIR=`${PWDCMD-pwd}`
2856 AROS_BUILDDIR_UNIX=${PWD}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2858 $as_echo "$AROS_BUILDDIR" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2861 $as_echo_n "checking AROS source in... " >&6; }
2862 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2863 SRCDIR=${srcpwd}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2865 $as_echo "$SRCDIR" >&6; }
2867 # Parse the target field into something useful.
2869 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2870 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2873 # Some debug output, to be removed again.
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2875 $as_echo_n "checking for target system (debug output)... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2877 $as_echo "$target_os" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2879 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2881 $as_echo "$target_cpu" >&6; }
2883 aros_nominal_width=800
2884 aros_nominal_height=600
2885 aros_nominal_depth=4
2888 default_c_compilers="gcc clang cc"
2890 # Check whether --with-c-compiler was given.
2891 if test "${with_c_compiler+set}" = set; then :
2892 withval=$with_c_compiler; use_c_compiler="$withval"
2893 else
2894 use_c_compiler=""
2897 if test "$use_c_compiler" = ""; then
2898 host_c_compilers="$default_c_compilers"
2899 else
2900 host_c_compilers="$use_c_compiler"
2901 CC=$use_c_compiler
2904 default_cxx_compilers="g++ clang++ c++"
2906 # Check whether --with-cxx-compiler was given.
2907 if test "${with_cxx_compiler+set}" = set; then :
2908 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2909 else
2910 use_cxx_compiler=""
2913 if test "$use_cxx_compiler" = ""; then
2914 host_cxx_compilers="$default_cxx_compilers"
2915 else
2916 host_cxx_compilers="$use_cxx_compiler"
2917 CXX=$use_cxx_compiler
2921 # The first step is to find the host binaries.
2922 # Check for a compiler.
2923 # Due to a bug in autoconf check for c++ compiler first.
2924 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2925 ac_ext=cpp
2926 ac_cpp='$CXXCPP $CPPFLAGS'
2927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2930 if test -z "$CXX"; then
2931 if test -n "$CCC"; then
2932 CXX=$CCC
2933 else
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in ${host_cxx_compilers}
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CXX+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CXX"; then
2945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 CXX=$ac_cv_prog_CXX
2965 if test -n "$CXX"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2967 $as_echo "$CXX" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2974 test -n "$CXX" && break
2975 done
2977 if test -z "$CXX"; then
2978 ac_ct_CXX=$CXX
2979 for ac_prog in ${host_cxx_compilers}
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$ac_ct_CXX"; then
2989 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CXX="$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3009 if test -n "$ac_ct_CXX"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3011 $as_echo "$ac_ct_CXX" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3018 test -n "$ac_ct_CXX" && break
3019 done
3021 if test "x$ac_ct_CXX" = x; then
3022 CXX="g++"
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CXX=$ac_ct_CXX
3036 # Provide some information about the compiler.
3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3038 set X $ac_compile
3039 ac_compiler=$2
3040 for ac_option in --version -v -V -qversion; do
3041 { { ac_try="$ac_compiler $ac_option >&5"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049 ac_status=$?
3050 if test -s conftest.err; then
3051 sed '10a\
3052 ... rest of stderr output deleted ...
3053 10q' conftest.err >conftest.er1
3054 cat conftest.er1 >&5
3056 rm -f conftest.er1 conftest.err
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 done
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3078 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3079 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 # The possible output files:
3082 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084 ac_rmfiles=
3085 for ac_file in $ac_files
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3090 esac
3091 done
3092 rm -f $ac_rmfiles
3094 if { { ac_try="$ac_link_default"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
3130 break;;
3132 break;;
3133 esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137 else
3138 ac_file=''
3140 if test -z "$ac_file"; then :
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error 77 "C++ compiler cannot create executables
3149 See \`config.log' for more details" "$LINENO" 5; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3155 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3157 $as_echo "$ac_file" >&6; }
3158 ac_exeext=$ac_cv_exeext
3160 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3161 ac_clean_files=$ac_clean_files_save
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3163 $as_echo_n "checking for suffix of executables... " >&6; }
3164 if { { ac_try="$ac_link"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 break;;
3185 * ) break;;
3186 esac
3187 done
3188 else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details" "$LINENO" 5; }
3194 rm -f conftest conftest$ac_cv_exeext
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3196 $as_echo "$ac_cv_exeext" >&6; }
3198 rm -f conftest.$ac_ext
3199 EXEEXT=$ac_cv_exeext
3200 ac_exeext=$EXEEXT
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <stdio.h>
3205 main ()
3207 FILE *f = fopen ("conftest.out", "w");
3208 return ferror (f) || fclose (f) != 0;
3211 return 0;
3213 _ACEOF
3214 ac_clean_files="$ac_clean_files conftest.out"
3215 # Check that the compiler produces executables we can run. If not, either
3216 # the compiler is broken, or we cross compile.
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3218 $as_echo_n "checking whether we are cross compiling... " >&6; }
3219 if test "$cross_compiling" != yes; then
3220 { { ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_link") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 if { ac_try='./conftest$ac_cv_exeext'
3232 { { case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_try") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; }; then
3242 cross_compiling=no
3243 else
3244 if test "$cross_compiling" = maybe; then
3245 cross_compiling=yes
3246 else
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "cannot run C++ compiled programs.
3250 If you meant to cross compile, use \`--host'.
3251 See \`config.log' for more details" "$LINENO" 5; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3256 $as_echo "$cross_compiling" >&6; }
3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3261 $as_echo_n "checking for suffix of object files... " >&6; }
3262 if ${ac_cv_objext+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3269 main ()
3273 return 0;
3275 _ACEOF
3276 rm -f conftest.o conftest.obj
3277 if { { ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_compile") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 for ac_file in conftest.o conftest.obj conftest.*; do
3289 test -f "$ac_file" || continue;
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293 break;;
3294 esac
3295 done
3296 else
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details" "$LINENO" 5; }
3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3308 $as_echo "$ac_cv_objext" >&6; }
3309 OBJEXT=$ac_cv_objext
3310 ac_objext=$OBJEXT
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3312 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3313 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 if ac_fn_cxx_try_compile "$LINENO"; then :
3331 ac_compiler_gnu=yes
3332 else
3333 ac_compiler_gnu=no
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3340 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3341 if test $ac_compiler_gnu = yes; then
3342 GXX=yes
3343 else
3344 GXX=
3346 ac_test_CXXFLAGS=${CXXFLAGS+set}
3347 ac_save_CXXFLAGS=$CXXFLAGS
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3349 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3350 if ${ac_cv_prog_cxx_g+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3354 ac_cxx_werror_flag=yes
3355 ac_cv_prog_cxx_g=no
3356 CXXFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 main ()
3365 return 0;
3367 _ACEOF
3368 if ac_fn_cxx_try_compile "$LINENO"; then :
3369 ac_cv_prog_cxx_g=yes
3370 else
3371 CXXFLAGS=""
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3376 main ()
3380 return 0;
3382 _ACEOF
3383 if ac_fn_cxx_try_compile "$LINENO"; then :
3385 else
3386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3387 CXXFLAGS="-g"
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3392 main ()
3396 return 0;
3398 _ACEOF
3399 if ac_fn_cxx_try_compile "$LINENO"; then :
3400 ac_cv_prog_cxx_g=yes
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3410 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3411 if test "$ac_test_CXXFLAGS" = set; then
3412 CXXFLAGS=$ac_save_CXXFLAGS
3413 elif test $ac_cv_prog_cxx_g = yes; then
3414 if test "$GXX" = yes; then
3415 CXXFLAGS="-g -O2"
3416 else
3417 CXXFLAGS="-g"
3419 else
3420 if test "$GXX" = yes; then
3421 CXXFLAGS="-O2"
3422 else
3423 CXXFLAGS=
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 CXX_BASE=$CXX
3433 # Extract the first word of "$CXX", so it can be a program name with args.
3434 set dummy $CXX; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_path_CXX+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 case $CXX in
3441 [\\/]* | ?:[\\/]*)
3442 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3461 esac
3463 CXX=$ac_cv_path_CXX
3464 if test -n "$CXX"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3466 $as_echo "$CXX" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test -n "$ac_tool_prefix"; then
3479 for ac_prog in ${host_c_compilers}
3481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3504 IFS=$as_save_IFS
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3518 test -n "$CC" && break
3519 done
3521 if test -z "$CC"; then
3522 ac_ct_CC=$CC
3523 for ac_prog in ${host_c_compilers}
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -n "$ac_ct_CC"; then
3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_CC="$ac_prog"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3548 IFS=$as_save_IFS
3552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3553 if test -n "$ac_ct_CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3555 $as_echo "$ac_ct_CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3562 test -n "$ac_ct_CC" && break
3563 done
3565 if test "x$ac_ct_CC" = x; then
3566 CC=""
3567 else
3568 case $cross_compiling:$ac_tool_warned in
3569 yes:)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3573 esac
3574 CC=$ac_ct_CC
3579 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details" "$LINENO" 5; }
3584 # Provide some information about the compiler.
3585 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3586 set X $ac_compile
3587 ac_compiler=$2
3588 for ac_option in --version -v -V -qversion; do
3589 { { ac_try="$ac_compiler $ac_option >&5"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3597 ac_status=$?
3598 if test -s conftest.err; then
3599 sed '10a\
3600 ... rest of stderr output deleted ...
3601 10q' conftest.err >conftest.er1
3602 cat conftest.er1 >&5
3604 rm -f conftest.er1 conftest.err
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }
3607 done
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611 if ${ac_cv_c_compiler_gnu+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3618 main ()
3620 #ifndef __GNUC__
3621 choke me
3622 #endif
3625 return 0;
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_compiler_gnu=yes
3630 else
3631 ac_compiler_gnu=no
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639 if test $ac_compiler_gnu = yes; then
3640 GCC=yes
3641 else
3642 GCC=
3644 ac_test_CFLAGS=${CFLAGS+set}
3645 ac_save_CFLAGS=$CFLAGS
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3648 if ${ac_cv_prog_cc_g+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 ac_save_c_werror_flag=$ac_c_werror_flag
3652 ac_c_werror_flag=yes
3653 ac_cv_prog_cc_g=no
3654 CFLAGS="-g"
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3659 main ()
3663 return 0;
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_cv_prog_cc_g=yes
3668 else
3669 CFLAGS=""
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3674 main ()
3678 return 0;
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3683 else
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_g=yes
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_c_werror_flag=$ac_save_c_werror_flag
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708 $as_echo "$ac_cv_prog_cc_g" >&6; }
3709 if test "$ac_test_CFLAGS" = set; then
3710 CFLAGS=$ac_save_CFLAGS
3711 elif test $ac_cv_prog_cc_g = yes; then
3712 if test "$GCC" = yes; then
3713 CFLAGS="-g -O2"
3714 else
3715 CFLAGS="-g"
3717 else
3718 if test "$GCC" = yes; then
3719 CFLAGS="-O2"
3720 else
3721 CFLAGS=
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726 if ${ac_cv_prog_cc_c89+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_cv_prog_cc_c89=no
3730 ac_save_CC=$CC
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdarg.h>
3734 #include <stdio.h>
3735 struct stat;
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3740 char **p;
3741 int i;
3743 return p[i];
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3747 char *s;
3748 va_list v;
3749 va_start (v,p);
3750 s = g (p, va_arg (v,int));
3751 va_end (v);
3752 return s;
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3756 function prototypes and stuff, but not '\xHH' hex character constants.
3757 These don't provoke an error unfortunately, instead are silently treated
3758 as 'x'. The following induces an error, until -std is added to get
3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3760 array size at least. It's necessary to write '\x00'==0 to get something
3761 that's true only with -std. */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765 inside strings and character constants. */
3766 #define FOO(x) 'x'
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773 int argc;
3774 char **argv;
3776 main ()
3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 return 0;
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC="$ac_save_CC $ac_arg"
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_c89=$ac_arg
3790 rm -f core conftest.err conftest.$ac_objext
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC
3797 # AC_CACHE_VAL
3798 case "x$ac_cv_prog_cc_c89" in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801 $as_echo "none needed" >&6; } ;;
3802 xno)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804 $as_echo "unsupported" >&6; } ;;
3806 CC="$CC $ac_cv_prog_cc_c89"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809 esac
3810 if test "x$ac_cv_prog_cc_c89" != xno; then :
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 CC_BASE=$CC
3821 # Extract the first word of "$CC", so it can be a program name with args.
3822 set dummy $CC; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_path_CC+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 case $CC in
3829 [\\/]* | ?:[\\/]*)
3830 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3844 done
3845 done
3846 IFS=$as_save_IFS
3849 esac
3851 CC=$ac_cv_path_CC
3852 if test -n "$CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 $as_echo "$CC" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3861 aros_host_def_cc="$CC"
3862 case $ac_cv_prog_cc_stdc in #(
3863 no) :
3864 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3865 *) :
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3867 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3868 if ${ac_cv_prog_cc_c99+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_cv_prog_cc_c99=no
3872 ac_save_CC=$CC
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <stdarg.h>
3876 #include <stdbool.h>
3877 #include <stdlib.h>
3878 #include <wchar.h>
3879 #include <stdio.h>
3881 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3882 #define debug(...) fprintf (stderr, __VA_ARGS__)
3883 #define showlist(...) puts (#__VA_ARGS__)
3884 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3885 static void
3886 test_varargs_macros (void)
3888 int x = 1234;
3889 int y = 5678;
3890 debug ("Flag");
3891 debug ("X = %d\n", x);
3892 showlist (The first, second, and third items.);
3893 report (x>y, "x is %d but y is %d", x, y);
3896 // Check long long types.
3897 #define BIG64 18446744073709551615ull
3898 #define BIG32 4294967295ul
3899 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3900 #if !BIG_OK
3901 your preprocessor is broken;
3902 #endif
3903 #if BIG_OK
3904 #else
3905 your preprocessor is broken;
3906 #endif
3907 static long long int bignum = -9223372036854775807LL;
3908 static unsigned long long int ubignum = BIG64;
3910 struct incomplete_array
3912 int datasize;
3913 double data[];
3916 struct named_init {
3917 int number;
3918 const wchar_t *name;
3919 double average;
3922 typedef const char *ccp;
3924 static inline int
3925 test_restrict (ccp restrict text)
3927 // See if C++-style comments work.
3928 // Iterate through items via the restricted pointer.
3929 // Also check for declarations in for loops.
3930 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3931 continue;
3932 return 0;
3935 // Check varargs and va_copy.
3936 static void
3937 test_varargs (const char *format, ...)
3939 va_list args;
3940 va_start (args, format);
3941 va_list args_copy;
3942 va_copy (args_copy, args);
3944 const char *str;
3945 int number;
3946 float fnumber;
3948 while (*format)
3950 switch (*format++)
3952 case 's': // string
3953 str = va_arg (args_copy, const char *);
3954 break;
3955 case 'd': // int
3956 number = va_arg (args_copy, int);
3957 break;
3958 case 'f': // float
3959 fnumber = va_arg (args_copy, double);
3960 break;
3961 default:
3962 break;
3965 va_end (args_copy);
3966 va_end (args);
3970 main ()
3973 // Check bool.
3974 _Bool success = false;
3976 // Check restrict.
3977 if (test_restrict ("String literal") == 0)
3978 success = true;
3979 char *restrict newvar = "Another string";
3981 // Check varargs.
3982 test_varargs ("s, d' f .", "string", 65, 34.234);
3983 test_varargs_macros ();
3985 // Check flexible array members.
3986 struct incomplete_array *ia =
3987 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3988 ia->datasize = 10;
3989 for (int i = 0; i < ia->datasize; ++i)
3990 ia->data[i] = i * 1.234;
3992 // Check named initializers.
3993 struct named_init ni = {
3994 .number = 34,
3995 .name = L"Test wide string",
3996 .average = 543.34343,
3999 ni.number = 58;
4001 int dynamic_array[ni.number];
4002 dynamic_array[ni.number - 1] = 543;
4004 // work around unused variable warnings
4005 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4006 || dynamic_array[ni.number - 1] != 543);
4009 return 0;
4011 _ACEOF
4012 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4014 CC="$ac_save_CC $ac_arg"
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_prog_cc_c99=$ac_arg
4018 rm -f core conftest.err conftest.$ac_objext
4019 test "x$ac_cv_prog_cc_c99" != "xno" && break
4020 done
4021 rm -f conftest.$ac_ext
4022 CC=$ac_save_CC
4025 # AC_CACHE_VAL
4026 case "x$ac_cv_prog_cc_c99" in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4029 $as_echo "none needed" >&6; } ;;
4030 xno)
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032 $as_echo "unsupported" >&6; } ;;
4034 CC="$CC $ac_cv_prog_cc_c99"
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4036 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4037 esac
4038 if test "x$ac_cv_prog_cc_c99" != xno; then :
4039 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4040 else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4043 if ${ac_cv_prog_cc_c89+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_cv_prog_cc_c89=no
4047 ac_save_CC=$CC
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <stdarg.h>
4051 #include <stdio.h>
4052 struct stat;
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057 char **p;
4058 int i;
4060 return p[i];
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4064 char *s;
4065 va_list v;
4066 va_start (v,p);
4067 s = g (p, va_arg (v,int));
4068 va_end (v);
4069 return s;
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4093 main ()
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 return 0;
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC="$ac_save_CC $ac_arg"
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_prog_cc_c89=$ac_arg
4107 rm -f core conftest.err conftest.$ac_objext
4108 test "x$ac_cv_prog_cc_c89" != "xno" && break
4109 done
4110 rm -f conftest.$ac_ext
4111 CC=$ac_save_CC
4114 # AC_CACHE_VAL
4115 case "x$ac_cv_prog_cc_c89" in
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4119 xno)
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4123 CC="$CC $ac_cv_prog_cc_c89"
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4126 esac
4127 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4129 else
4130 ac_cv_prog_cc_stdc=no
4135 esac
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4137 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4138 if ${ac_cv_prog_cc_stdc+:} false; then :
4139 $as_echo_n "(cached) " >&6
4142 case $ac_cv_prog_cc_stdc in #(
4143 no) :
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;; #(
4146 '') :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4148 $as_echo "none needed" >&6; } ;; #(
4149 *) :
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4151 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4152 esac
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4160 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4163 CPP=
4165 if test -z "$CPP"; then
4166 if ${ac_cv_prog_CPP+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4172 ac_preproc_ok=false
4173 for ac_c_preproc_warn_flag in '' yes
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #ifdef __STDC__
4184 # include <limits.h>
4185 #else
4186 # include <assert.h>
4187 #endif
4188 Syntax error
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4192 else
4193 # Broken: fails on valid input.
4194 continue
4196 rm -f conftest.err conftest.i conftest.$ac_ext
4198 # OK, works on sane cases. Now check whether nonexistent headers
4199 # can be detected and how.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <ac_nonexistent.h>
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205 # Broken: success on invalid input.
4206 continue
4207 else
4208 # Passes both tests.
4209 ac_preproc_ok=:
4210 break
4212 rm -f conftest.err conftest.i conftest.$ac_ext
4214 done
4215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4216 rm -f conftest.i conftest.err conftest.$ac_ext
4217 if $ac_preproc_ok; then :
4218 break
4221 done
4222 ac_cv_prog_CPP=$CPP
4225 CPP=$ac_cv_prog_CPP
4226 else
4227 ac_cv_prog_CPP=$CPP
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4230 $as_echo "$CPP" >&6; }
4231 ac_preproc_ok=false
4232 for ac_c_preproc_warn_flag in '' yes
4234 # Use a header file that comes with gcc, so configuring glibc
4235 # with a fresh cross-compiler works.
4236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 # <limits.h> exists even on freestanding compilers.
4238 # On the NeXT, cc -E runs the code through the compiler's parser,
4239 # not just through cpp. "Syntax error" is here to catch this case.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #ifdef __STDC__
4243 # include <limits.h>
4244 #else
4245 # include <assert.h>
4246 #endif
4247 Syntax error
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4251 else
4252 # Broken: fails on valid input.
4253 continue
4255 rm -f conftest.err conftest.i conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <ac_nonexistent.h>
4262 _ACEOF
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4264 # Broken: success on invalid input.
4265 continue
4266 else
4267 # Passes both tests.
4268 ac_preproc_ok=:
4269 break
4271 rm -f conftest.err conftest.i conftest.$ac_ext
4273 done
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.i conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then :
4278 else
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details" "$LINENO" 5; }
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 # detect the compiler version
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC} belongs to" >&5
4294 $as_echo_n "checking which toolchain family ${CC} belongs to... " >&6; }
4295 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4296 if test x"$HOST_COMPILER_VERSION" = "x"; then
4297 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4299 if test x"$HOST_COMPILER_VERSION" = "x"; then
4300 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4303 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4304 if test "$IS_SUN_COMPILER" -ne "0"; then
4305 HOST_TOOLCHAIN_PREFIX=
4306 HOST_TOOLCHAIN_SUFFIX=
4307 HOST_TOOLCHAIN_FAMILY=sun
4309 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4310 if test "$IS_LLVM_COMPILER" -ne "0"; then
4311 if test "$CC_BASE" != "gcc"; then
4312 HOST_TOOLCHAIN_PREFIX=llvm-
4313 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4314 HOST_TOOLCHAIN_FAMILY=llvm
4315 else
4316 IS_GNU_COMPILER=1
4319 IS_GNU_COMPILER?=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4320 if test "$IS_GNU_COMPILER" -ne "0"; then
4321 HOST_TOOLCHAIN_PREFIX=
4322 HOST_TOOLCHAIN_SUFFIX=
4323 HOST_TOOLCHAIN_FAMILY=gnu
4325 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4326 HOST_TOOLCHAIN_FAMILY=unknown
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4329 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4331 # Check for a compatible awk
4332 for ac_prog in gawk nawk
4334 # Extract the first word of "$ac_prog", so it can be a program name with args.
4335 set dummy $ac_prog; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_AWK+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$AWK"; then
4342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_AWK="$ac_prog"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 AWK=$ac_cv_prog_AWK
4362 if test -n "$AWK"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4364 $as_echo "$AWK" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4371 test -n "$AWK" && break
4372 done
4374 req_avail=yes
4375 if test "$AWK" = ""; then
4376 req_avail=no
4378 if test "$AWK" = "no"; then
4379 req_avail=no
4381 if test "$req_avail" = "no"; then
4382 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4384 # Extract the first word of "mmake", so it can be a program name with args.
4385 set dummy mmake; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_MMAKE+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -n "$MMAKE"; then
4392 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_MMAKE="mmake "
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4411 MMAKE=$ac_cv_prog_MMAKE
4412 if test -n "$MMAKE"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4414 $as_echo "$MMAKE" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4422 # Perform some default variable assignments. Note all of these will be
4423 # Regenerated from the script, so there is no need to cache them.
4425 aros_build_host=$host
4426 aros_host_cpp="$CPP"
4427 aros_host_cc="$CC"
4428 aros_host_cxx="$CXX"
4429 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4430 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4431 for ac_prog in $base_ld_name ld.lld${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
4433 # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_prog_base_lld_name+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$base_lld_name"; then
4441 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_base_lld_name="$ac_prog"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4460 base_lld_name=$ac_cv_prog_base_lld_name
4461 if test -n "$base_lld_name"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4463 $as_echo "$base_lld_name" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4470 test -n "$base_lld_name" && break
4471 done
4473 base_ld_name=$base_lld_name
4476 if test "$base_ld_name" = ""; then
4477 ac_tool_ld=ld
4478 else
4479 ac_tool_ld=$base_ld_name
4481 if test "$GCC" = "yes"; then
4482 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4483 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4484 set dummy `basename $aros_gcc_ld`; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_path_aros_host_ld+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 case $aros_host_ld in
4491 [\\/]* | ?:[\\/]*)
4492 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in `dirname $aros_gcc_ld`
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4511 esac
4513 aros_host_ld=$ac_cv_path_aros_host_ld
4514 if test -n "$aros_host_ld"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4516 $as_echo "$aros_host_ld" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4524 if test "$aros_host_ld" = ""; then
4525 for ac_prog in $ac_tool_ld
4527 # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_path_aros_host_ld+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 case $aros_host_ld in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4550 done
4551 done
4552 IFS=$as_save_IFS
4555 esac
4557 aros_host_ld=$ac_cv_path_aros_host_ld
4558 if test -n "$aros_host_ld"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4560 $as_echo "$aros_host_ld" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4567 test -n "$aros_host_ld" && break
4568 done
4572 req_avail=yes
4573 if test "$aros_host_ld" = ""; then
4574 req_avail=no
4576 if test "$aros_host_ld" = "no"; then
4577 req_avail=no
4579 if test "$req_avail" = "no"; then
4580 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4582 aros_host_make="make"
4583 aros_host_cflags="$CFLAGS"
4584 aros_host_cxxflags="$CXXFLAGS"
4585 aros_host_cppflags="$CPPFLAGS"
4586 aros_host_ldflags="$LDFLAGS"
4587 aros_host_debug="-g -O0"
4588 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4589 aros_host_mkargs="--no-print-directory"
4590 aros_host_exe_suffix="$EXEEXT"
4591 aros_host_lib_suffix=""
4593 # Ignore all compliance, AROS ROMs = 0
4594 # KickStart v1.0 = 30
4595 # KickStart v1.3 = 34
4596 # KickStart v2.0 = 37
4597 # KickStart v3.0 = 39
4598 # KickStart v3.1 = 40
4599 # AmigaOS v3.5 = 44
4600 aros_amigaos_compliance=0
4602 for ac_prog in aclocal aclocal19 aclocal-1.9
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$aros_host_aclocal"; then
4612 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_aros_host_aclocal="$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4627 IFS=$as_save_IFS
4631 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4632 if test -n "$aros_host_aclocal"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4634 $as_echo "$aros_host_aclocal" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 test -n "$aros_host_aclocal" && break
4642 done
4644 for ac_prog in autoconf autoconf259 autoconf253
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$aros_host_autoconf"; then
4654 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_aros_host_autoconf="$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4669 IFS=$as_save_IFS
4673 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4674 if test -n "$aros_host_autoconf"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4676 $as_echo "$aros_host_autoconf" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4683 test -n "$aros_host_autoconf" && break
4684 done
4686 for ac_prog in autoheader autoheader259 autoheader253
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$aros_host_autoheader"; then
4696 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_aros_host_autoheader="$ac_prog"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4715 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4716 if test -n "$aros_host_autoheader"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4718 $as_echo "$aros_host_autoheader" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4725 test -n "$aros_host_autoheader" && break
4726 done
4728 for ac_prog in automake automake19 automake-1.9
4730 # Extract the first word of "$ac_prog", so it can be a program name with args.
4731 set dummy $ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_aros_host_automake+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$aros_host_automake"; then
4738 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_aros_host_automake="$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4751 done
4752 done
4753 IFS=$as_save_IFS
4757 aros_host_automake=$ac_cv_prog_aros_host_automake
4758 if test -n "$aros_host_automake"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4760 $as_echo "$aros_host_automake" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 test -n "$aros_host_automake" && break
4768 done
4771 req_avail=yes
4772 if test "$aros_host_aclocal" = ""; then
4773 req_avail=no
4775 if test "$aros_host_aclocal" = "no"; then
4776 req_avail=no
4778 if test "$req_avail" = "no"; then
4779 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4781 req_avail=yes
4782 if test "$aros_host_automake" = ""; then
4783 req_avail=no
4785 if test "$aros_host_automake" = "no"; then
4786 req_avail=no
4788 if test "$req_avail" = "no"; then
4789 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4792 case "$aros_host_cc" in
4793 *clang*)
4794 aros_host_cc_pipe=""
4796 *gcc*)
4797 aros_host_cc_pipe="-pipe"
4799 icc)
4800 aros_host_cc_pipe=""
4803 aros_host_cc_pipe=""
4805 esac
4807 aros_kernel_cc_includes=""
4808 aros_target_cc_includes=""
4809 host_cc_elf=yes
4811 # ----------------------------------------------------------------------------------------
4812 # Host-specific defaults
4814 # This is the main host configuration section. It is where the host
4815 # can change the values of any variables it needs to change. We do
4816 # not look at anything that compiles to the target yet, we'll get
4817 # to that later.
4819 case "$host_os" in
4820 aros*)
4821 aros_host_arch="aros"
4822 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4823 case "$host_cpu" in
4824 *i?86*)
4825 aros_host_cpu="i386"
4827 *x86_64*)
4828 aros_host_cpu="x86_64"
4830 *powerpc*)
4831 aros_host_cpu="ppc"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4835 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4836 aros_host_cpu="$host_cpu"
4838 esac
4841 linux*)
4842 aros_host_arch="linux"
4843 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4844 android_build_os="linux-x86"
4845 android_tool="android"
4846 default_android_sdk="/opt/android-sdk-linux_x86"
4847 case "$host_cpu" in
4848 *i?86*)
4849 aros_host_cpu="i386"
4851 *x86_64*)
4852 aros_host_cpu="x86_64"
4854 *m68k*)
4855 aros_host_cpu="m68k"
4857 *powerpc*)
4858 aros_host_cpu="ppc"
4860 *arm*)
4861 aros_host_cpu="arm"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4865 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4866 aros_host_cpu="$host_cpu"
4868 esac
4871 freebsd*)
4872 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4873 aros_host_make="gmake"
4874 aros_host_arch="freebsd"
4875 aros_host_cpu="i386"
4877 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4879 case $host_os in
4880 freebsd[234]*)
4881 aros_object_format="elf_i386"
4885 aros_object_format="elf_i386_fbsd"
4887 esac
4891 darwin*)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4893 $as_echo_n "checking for macOS SDK files... " >&6; }
4894 LOC=$( xcode-select -p )
4895 if test $? != 0; then :
4896 as_fn_error $? "XCode incorrectly configured!
4897 please run 'xcode-select --install' before
4898 re-running configure" "$LINENO" 5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4901 $as_echo "$LOC" >&6; }
4902 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4903 aros_host_arch="darwin"
4904 host_cc_elf=no
4905 if [ -z ${SED+x} ]; then SED="gsed"; fi
4906 android_build_os="darwin-x86"
4907 android_tool="android"
4908 default_android_sdk="/android-sdk-mac_x86"
4909 case "$host_cpu" in
4910 *i?86*)
4911 aros_host_cpu="i386"
4913 *x86_64*)
4914 aros_host_cpu="x86_64"
4916 *powerpc*)
4917 aros_host_cpu="ppc"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4921 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4922 aros_host_cpu="$host_cpu"
4924 esac
4926 aros_host_ldflags="$aros_host_ldflags -liconv"
4930 dragonfly*)
4931 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4932 aros_host_make="gmake"
4933 aros_host_arch="dragonfly"
4934 case $host_cpu in
4935 *i?86*)
4936 aros_host_cpu="i386"
4938 *amd64*)
4939 aros_host_cpu="x86_64"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4943 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4944 aros_host_cpu="$host_cpu"
4946 esac
4949 netbsd*)
4950 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4951 aros_host_make="gmake"
4952 aros_host_arch="netbsd"
4953 case "$host_cpu" in
4954 *i?86*)
4955 aros_host_cpu="i386"
4957 *m68k*)
4958 aros_host_cpu="m68k"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4962 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4963 aros_host_cpu="$host_cpu"
4965 esac
4966 aros_host_lib_suffix=".0.0"
4969 openbsd*)
4970 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4971 aros_host_make="gmake"
4972 aros_host_arch="openbsd"
4973 case "$host_cpu" in
4974 *i?86*)
4975 aros_host_cpu="i386"
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 solaris*)
4986 aros_host_arch="solaris"
4987 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4988 case "$host_cpu" in
4989 *i?86*)
4990 aros_host_cpu="i386"
4992 *sparc*)
4993 aros_host_cpu="sparc"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4997 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4998 aros_host_cpu="$host_cpu"
5000 esac
5003 morphos*)
5004 aros_host_arch="morphos"
5005 aros_host_cpu="ppc"
5006 host_cc_elf=no
5009 amiga*)
5010 aros_host_arch="amiga"
5011 host_cc_elf=no
5012 SORT="/gg/bin/sort"
5013 TEST="/gg/bin/test"
5014 UNIQ="/gg/bin/uniq"
5015 FOR="for"
5016 TOUCH="/gg/bin/touch"
5017 case "$host_cpu" in
5018 *m68k*)
5019 aros_host_cpu="m68k"
5021 *powerpc*)
5022 aros_host_cpu="ppc"
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5026 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5027 aros_host_cpu="$host_cpu"
5029 esac
5032 cygwin*)
5033 aros_host_arch="cygwin"
5034 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5035 host_cc_elf=no
5036 android_build_os="windows"
5037 android_tool="android.bat"
5038 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5040 case "$host_cpu" in
5041 *i?86*)
5042 aros_host_cpu="i386"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5046 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5047 aros_host_cpu="$host_cpu"
5049 esac
5052 mingw32*)
5053 aros_host_arch="mingw32"
5054 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5055 host_cc_elf=no
5056 android_build_os="windows"
5057 android_tool="android.bat"
5058 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5060 libpng_libextra="-lws2_32"
5062 case "$host_cpu" in
5063 *i?86*)
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5066 $as_echo_n "checking for Windows native gcc target... " >&6; }
5067 host_cpu=`gcc -dumpmachine`
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5069 $as_echo "$host_cpu" >&6; }
5072 esac
5074 case "$host_cpu" in
5075 *i?86*)
5076 aros_host_cpu="i386"
5079 mingw32*)
5080 aros_host_cpu="i386"
5083 *x86_64*)
5084 aros_host_cpu="x86_64"
5085 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5090 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5091 aros_host_cpu="$host_cpu"
5093 esac
5096 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5098 esac
5100 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5101 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5102 set dummy $base_ar_name; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_aros_host_cmd_ar+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$aros_host_cmd_ar"; then
5109 ac_cv_prog_aros_host_cmd_ar="$aros_host_cmd_ar" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_aros_host_cmd_ar="$base_ar_name cr"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5124 IFS=$as_save_IFS
5128 aros_host_cmd_ar=$ac_cv_prog_aros_host_cmd_ar
5129 if test -n "$aros_host_cmd_ar"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5131 $as_echo "$aros_host_cmd_ar" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5138 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5139 set dummy $aros_host_cmd_ar; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_aros_host_full_ar+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 case $aros_host_full_ar in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_aros_host_full_ar="$aros_host_full_ar" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_aros_host_full_ar="$as_dir/$ac_word$ac_exec_ext"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5165 test -z "$ac_cv_path_aros_host_full_ar" && ac_cv_path_aros_host_full_ar="$aros_host_cmd_ar "
5167 esac
5169 aros_host_full_ar=$ac_cv_path_aros_host_full_ar
5170 if test -n "$aros_host_full_ar"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_full_ar" >&5
5172 $as_echo "$aros_host_full_ar" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_full_ar|g"`
5180 req_avail=yes
5181 if test "$aros_host_ar" = ""; then
5182 req_avail=no
5184 if test "$aros_host_ar" = "no"; then
5185 req_avail=no
5187 if test "$req_avail" = "no"; then
5188 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5190 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5191 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5192 set dummy $base_ranlib_name; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 case $aros_host_ranlib in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5216 IFS=$as_save_IFS
5218 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$base_ranlib_name "
5220 esac
5222 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5223 if test -n "$aros_host_ranlib"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5225 $as_echo "$aros_host_ranlib" >&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_ranlib" = ""; then
5234 req_avail=no
5236 if test "$aros_host_ranlib" = "no"; then
5237 req_avail=no
5239 if test "$req_avail" = "no"; then
5240 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if ${ac_cv_prog_aros_host_strip+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 if test -n "$aros_host_strip"; then
5250 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_aros_host_strip="strip "
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5265 IFS=$as_save_IFS
5269 aros_host_strip=$ac_cv_prog_aros_host_strip
5270 if test -n "$aros_host_strip"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5272 $as_echo "$aros_host_strip" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5279 req_avail=yes
5280 if test "$aros_host_strip" = ""; then
5281 req_avail=no
5283 if test "$aros_host_strip" = "no"; then
5284 req_avail=no
5286 if test "$req_avail" = "no"; then
5287 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5290 # Extract the first word of "rm", so it can be a program name with args.
5291 set dummy rm; 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_RM+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$RM"; then
5298 ac_cv_prog_RM="$RM" # 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_RM="rm -rf"
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 RM=$ac_cv_prog_RM
5318 if test -n "$RM"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5320 $as_echo "$RM" >&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 "$RM" = ""; then
5329 req_avail=no
5331 if test "$RM" = "no"; then
5332 req_avail=no
5334 if test "$req_avail" = "no"; then
5335 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5337 # Extract the first word of "cp", so it can be a program name with args.
5338 set dummy cp; 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_CP+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$CP"; then
5345 ac_cv_prog_CP="$CP" # 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_CP="cp "
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 CP=$ac_cv_prog_CP
5365 if test -n "$CP"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5367 $as_echo "$CP" >&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 "$CP" = ""; then
5376 req_avail=no
5378 if test "$CP" = "no"; then
5379 req_avail=no
5381 if test "$req_avail" = "no"; then
5382 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5384 # Extract the first word of "mv", so it can be a program name with args.
5385 set dummy mv; 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_MV+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$MV"; then
5392 ac_cv_prog_MV="$MV" # 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_MV="mv "
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 MV=$ac_cv_prog_MV
5412 if test -n "$MV"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5414 $as_echo "$MV" >&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 "$MV" = ""; then
5423 req_avail=no
5425 if test "$MV" = "no"; then
5426 req_avail=no
5428 if test "$req_avail" = "no"; then
5429 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5431 # Extract the first word of "echo", so it can be a program name with args.
5432 set dummy echo; 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_ECHO+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$ECHO"; then
5439 ac_cv_prog_ECHO="$ECHO" # 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_ECHO="echo "
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 ECHO=$ac_cv_prog_ECHO
5459 if test -n "$ECHO"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5461 $as_echo "$ECHO" >&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 "$ECHO" = ""; then
5470 req_avail=no
5472 if test "$ECHO" = "no"; then
5473 req_avail=no
5475 if test "$req_avail" = "no"; then
5476 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5478 # Extract the first word of "mkdir", so it can be a program name with args.
5479 set dummy mkdir; 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_MKDIR+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -n "$MKDIR"; then
5486 ac_cv_prog_MKDIR="$MKDIR" # 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_MKDIR="mkdir -p"
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 MKDIR=$ac_cv_prog_MKDIR
5506 if test -n "$MKDIR"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5508 $as_echo "$MKDIR" >&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 "$MKDIR" = ""; then
5517 req_avail=no
5519 if test "$MKDIR" = "no"; then
5520 req_avail=no
5522 if test "$req_avail" = "no"; then
5523 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5525 # Extract the first word of "touch", so it can be a program name with args.
5526 set dummy touch; 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_TOUCH+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$TOUCH"; then
5533 ac_cv_prog_TOUCH="$TOUCH" # 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_TOUCH="touch "
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 TOUCH=$ac_cv_prog_TOUCH
5553 if test -n "$TOUCH"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5555 $as_echo "$TOUCH" >&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 "$TOUCH" = ""; then
5564 req_avail=no
5566 if test "$TOUCH" = "no"; then
5567 req_avail=no
5569 if test "$req_avail" = "no"; then
5570 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5572 # Extract the first word of "sort", so it can be a program name with args.
5573 set dummy sort; 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_SORT+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$SORT"; then
5580 ac_cv_prog_SORT="$SORT" # 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_SORT="sort "
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 SORT=$ac_cv_prog_SORT
5600 if test -n "$SORT"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5602 $as_echo "$SORT" >&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 "$SORT" = ""; then
5611 req_avail=no
5613 if test "$SORT" = "no"; then
5614 req_avail=no
5616 if test "$req_avail" = "no"; then
5617 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5619 # Extract the first word of "uniq", so it can be a program name with args.
5620 set dummy uniq; 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_UNIQ+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 if test -n "$UNIQ"; then
5627 ac_cv_prog_UNIQ="$UNIQ" # 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_UNIQ="uniq "
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 UNIQ=$ac_cv_prog_UNIQ
5647 if test -n "$UNIQ"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5649 $as_echo "$UNIQ" >&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 "$UNIQ" = ""; then
5658 req_avail=no
5660 if test "$UNIQ" = "no"; then
5661 req_avail=no
5663 if test "$req_avail" = "no"; then
5664 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5666 # Extract the first word of "true", so it can be a program name with args.
5667 set dummy true; 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_NOP+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$NOP"; then
5674 ac_cv_prog_NOP="$NOP" # 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_NOP="true "
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 NOP=$ac_cv_prog_NOP
5694 if test -n "$NOP"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5696 $as_echo "$NOP" >&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 "$NOP" = ""; then
5705 req_avail=no
5707 if test "$NOP" = "no"; then
5708 req_avail=no
5710 if test "$req_avail" = "no"; then
5711 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5713 # Extract the first word of "cat", so it can be a program name with args.
5714 set dummy cat; 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_CAT+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$CAT"; then
5721 ac_cv_prog_CAT="$CAT" # 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_CAT="cat "
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 CAT=$ac_cv_prog_CAT
5741 if test -n "$CAT"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5743 $as_echo "$CAT" >&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 "$CAT" = ""; then
5752 req_avail=no
5754 if test "$CAT" = "no"; then
5755 req_avail=no
5757 if test "$req_avail" = "no"; then
5758 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5760 # Extract the first word of "bison", so it can be a program name with args.
5761 set dummy bison; 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_BISON+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$BISON"; then
5768 ac_cv_prog_BISON="$BISON" # 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_BISON="bison "
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 BISON=$ac_cv_prog_BISON
5788 if test -n "$BISON"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5790 $as_echo "$BISON" >&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 "$BISON" = ""; then
5799 req_avail=no
5801 if test "$BISON" = "no"; then
5802 req_avail=no
5804 if test "$req_avail" = "no"; then
5805 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5807 # Extract the first word of "flex", so it can be a program name with args.
5808 set dummy flex; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_FLEX+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$FLEX"; then
5815 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_FLEX="flex "
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 FLEX=$ac_cv_prog_FLEX
5835 if test -n "$FLEX"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5837 $as_echo "$FLEX" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5844 req_avail=yes
5845 if test "$FLEX" = ""; then
5846 req_avail=no
5848 if test "$FLEX" = "no"; then
5849 req_avail=no
5851 if test "$req_avail" = "no"; then
5852 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5855 $as_echo_n "checking version of $FLEX... " >&6; }
5856 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5858 $as_echo "$ax_cv_flex_version" >&6; }
5859 # Extract the first word of "pngtopnm", so it can be a program name with args.
5860 set dummy pngtopnm; 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_PNGTOPNM+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$PNGTOPNM"; then
5867 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # 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_PNGTOPNM="pngtopnm "
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 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5887 if test -n "$PNGTOPNM"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5889 $as_echo "$PNGTOPNM" >&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 "$PNGTOPNM" = ""; then
5898 req_avail=no
5900 if test "$PNGTOPNM" = "no"; then
5901 req_avail=no
5903 if test "$req_avail" = "no"; then
5904 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5906 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5907 set dummy ppmtoilbm; 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_PPMTOILBM+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$PPMTOILBM"; then
5914 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # 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_PPMTOILBM="ppmtoilbm "
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 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5934 if test -n "$PPMTOILBM"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5936 $as_echo "$PPMTOILBM" >&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 "$PPMTOILBM" = ""; then
5945 req_avail=no
5947 if test "$PPMTOILBM" = "no"; then
5948 req_avail=no
5950 if test "$req_avail" = "no"; then
5951 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5953 # Extract the first word of "sed", so it can be a program name with args.
5954 set dummy sed; 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_SED+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$SED"; then
5961 ac_cv_prog_SED="$SED" # 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_SED="sed "
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 SED=$ac_cv_prog_SED
5981 if test -n "$SED"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5983 $as_echo "$SED" >&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 "$SED" = ""; then
5992 req_avail=no
5994 if test "$SED" = "no"; then
5995 req_avail=no
5997 if test "$req_avail" = "no"; then
5998 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6000 # Extract the first word of "chmod", so it can be a program name with args.
6001 set dummy chmod; 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_CHMOD+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$CHMOD"; then
6008 ac_cv_prog_CHMOD="$CHMOD" # 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_CHMOD="chmod "
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 CHMOD=$ac_cv_prog_CHMOD
6028 if test -n "$CHMOD"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6030 $as_echo "$CHMOD" >&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 "$CHMOD" = ""; then
6039 req_avail=no
6041 if test "$CHMOD" = "no"; then
6042 req_avail=no
6044 if test "$req_avail" = "no"; then
6045 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6047 # Extract the first word of "patch", so it can be a program name with args.
6048 set dummy patch; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if ${ac_cv_prog_PATCH+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if test -n "$PATCH"; then
6055 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_PATCH="patch "
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6068 done
6069 done
6070 IFS=$as_save_IFS
6074 PATCH=$ac_cv_prog_PATCH
6075 if test -n "$PATCH"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6077 $as_echo "$PATCH" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6084 req_avail=yes
6085 if test "$PATCH" = ""; then
6086 req_avail=no
6088 if test "$PATCH" = "no"; then
6089 req_avail=no
6091 if test "$req_avail" = "no"; then
6092 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6101 if test -n "$PYTHON"; then
6102 # If the user set $PYTHON, use it and don't search something else.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6104 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6105 prog="import sys
6106 # split strings by '.' and convert to numeric. Append some zeros
6107 # because we need at least 4 digits for the hex conversion.
6108 # map returns an iterator in Python 3.0 and a list in 2.x
6109 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6110 minverhex = 0
6111 # xrange is not present in Python 3.0 and range returns an iterator
6112 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6113 sys.exit(sys.hexversion < minverhex)"
6114 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6115 ($PYTHON -c "$prog") >&5 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; then :
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6120 $as_echo "yes" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6126 am_display_PYTHON=$PYTHON
6127 else
6128 # Otherwise, try each interpreter until we find one that satisfies
6129 # VERSION.
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6131 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6132 if ${am_cv_pathless_PYTHON+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6136 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
6137 test "$am_cv_pathless_PYTHON" = none && break
6138 prog="import sys
6139 # split strings by '.' and convert to numeric. Append some zeros
6140 # because we need at least 4 digits for the hex conversion.
6141 # map returns an iterator in Python 3.0 and a list in 2.x
6142 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6143 minverhex = 0
6144 # xrange is not present in Python 3.0 and range returns an iterator
6145 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6146 sys.exit(sys.hexversion < minverhex)"
6147 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6148 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; then :
6152 break
6154 done
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6157 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6158 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6159 if test "$am_cv_pathless_PYTHON" = none; then
6160 PYTHON=:
6161 else
6162 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6163 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_path_PYTHON+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 case $PYTHON in
6170 [\\/]* | ?:[\\/]*)
6171 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6190 esac
6192 PYTHON=$ac_cv_path_PYTHON
6193 if test -n "$PYTHON"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6195 $as_echo "$PYTHON" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6203 am_display_PYTHON=$am_cv_pathless_PYTHON
6207 if test "$PYTHON" = :; then
6208 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6209 else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6213 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6214 if ${am_cv_python_version+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6220 $as_echo "$am_cv_python_version" >&6; }
6221 PYTHON_VERSION=$am_cv_python_version
6225 PYTHON_PREFIX='${prefix}'
6227 PYTHON_EXEC_PREFIX='${exec_prefix}'
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6232 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6233 if ${am_cv_python_platform+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6239 $as_echo "$am_cv_python_platform" >&6; }
6240 PYTHON_PLATFORM=$am_cv_python_platform
6243 # Just factor out some code duplication.
6244 am_python_setup_sysconfig="\
6245 import sys
6246 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6247 # with python 3.x. See automake bug#10227.
6248 try:
6249 import sysconfig
6250 except ImportError:
6251 can_use_sysconfig = 0
6252 else:
6253 can_use_sysconfig = 1
6254 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6255 # <https://github.com/pypa/virtualenv/issues/118>
6256 try:
6257 from platform import python_implementation
6258 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6259 can_use_sysconfig = 0
6260 except ImportError:
6261 pass"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6265 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6266 if ${am_cv_python_pythondir+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test "x$prefix" = xNONE
6270 then
6271 am_py_prefix=$ac_default_prefix
6272 else
6273 am_py_prefix=$prefix
6275 am_cv_python_pythondir=`$PYTHON -c "
6276 $am_python_setup_sysconfig
6277 if can_use_sysconfig:
6278 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6279 else:
6280 from distutils import sysconfig
6281 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6282 sys.stdout.write(sitedir)"`
6283 case $am_cv_python_pythondir in
6284 $am_py_prefix*)
6285 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6286 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6289 case $am_py_prefix in
6290 /usr|/System*) ;;
6292 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6294 esac
6296 esac
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6300 $as_echo "$am_cv_python_pythondir" >&6; }
6301 pythondir=$am_cv_python_pythondir
6305 pkgpythondir=\${pythondir}/$PACKAGE
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6309 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6310 if ${am_cv_python_pyexecdir+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test "x$exec_prefix" = xNONE
6314 then
6315 am_py_exec_prefix=$am_py_prefix
6316 else
6317 am_py_exec_prefix=$exec_prefix
6319 am_cv_python_pyexecdir=`$PYTHON -c "
6320 $am_python_setup_sysconfig
6321 if can_use_sysconfig:
6322 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6323 else:
6324 from distutils import sysconfig
6325 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6326 sys.stdout.write(sitedir)"`
6327 case $am_cv_python_pyexecdir in
6328 $am_py_exec_prefix*)
6329 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6330 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6333 case $am_py_exec_prefix in
6334 /usr|/System*) ;;
6336 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6338 esac
6340 esac
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6344 $as_echo "$am_cv_python_pyexecdir" >&6; }
6345 pyexecdir=$am_cv_python_pyexecdir
6349 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6357 # Check whether --enable-libpng-config was given.
6358 if test "${enable_libpng_config+set}" = set; then :
6359 enableval=$enable_libpng_config;
6362 if test "$enable_libpng_config" != "no"; then
6363 # Extract the first word of "libpng-config", so it can be a program name with args.
6364 set dummy libpng-config; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -n "$arosconfig_use_libpngconfig"; then
6371 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6384 done
6385 done
6386 IFS=$as_save_IFS
6388 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6391 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6392 if test -n "$arosconfig_use_libpngconfig"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6394 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test "$arosconfig_use_libpngconfig" = "yes"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6404 $as_echo_n "checking libpng-config library... " >&6; }
6405 libpng_incdir="`libpng-config --cflags`"
6406 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6407 libpng="`libpng-config --libs`"
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6409 $as_echo "$libpng" >&6; }
6410 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6413 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6414 if ${ac_cv_lib_png_png_read_png+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 ac_check_lib_save_LIBS=$LIBS
6418 LIBS="-lpng $LIBS"
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6422 /* Override any GCC internal prototype to avoid an error.
6423 Use char because int might match the return type of a GCC
6424 builtin and then its argument prototype would still apply. */
6425 #ifdef __cplusplus
6426 extern "C"
6427 #endif
6428 char png_read_png ();
6430 main ()
6432 return png_read_png ();
6434 return 0;
6436 _ACEOF
6437 if ac_fn_c_try_link "$LINENO"; then :
6438 ac_cv_lib_png_png_read_png=yes
6439 else
6440 ac_cv_lib_png_png_read_png=no
6442 rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444 LIBS=$ac_check_lib_save_LIBS
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6447 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6448 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6449 libpng="-lpng"
6450 else
6451 libpng="no"
6454 if test "$libpng_libextra" != ""; then
6455 if test "$libpng" != "no"; then
6456 libpng_libextra="$libpng_libextra $libpng"
6460 req_avail=yes
6461 if test "$libpng" = ""; then
6462 req_avail=no
6464 if test "$libpng" = "no"; then
6465 req_avail=no
6467 if test "$req_avail" = "no"; then
6468 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6474 FOR=for
6476 IF=if
6478 TEST=test
6480 CMP=cmp
6484 # Check for some includes for the X11 HIDD and the kernel
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6487 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6488 if ${ac_cv_path_GREP+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 if test -z "$GREP"; then
6492 ac_path_GREP_found=false
6493 # Loop through the user's path and test for each of PROGNAME-LIST
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_prog in grep ggrep; do
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6502 as_fn_executable_p "$ac_path_GREP" || continue
6503 # Check for GNU ac_path_GREP and select it if it is found.
6504 # Check for GNU $ac_path_GREP
6505 case `"$ac_path_GREP" --version 2>&1` in
6506 *GNU*)
6507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6509 ac_count=0
6510 $as_echo_n 0123456789 >"conftest.in"
6511 while :
6513 cat "conftest.in" "conftest.in" >"conftest.tmp"
6514 mv "conftest.tmp" "conftest.in"
6515 cp "conftest.in" "conftest.nl"
6516 $as_echo 'GREP' >> "conftest.nl"
6517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6519 as_fn_arith $ac_count + 1 && ac_count=$as_val
6520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6521 # Best one so far, save it but keep looking for a better one
6522 ac_cv_path_GREP="$ac_path_GREP"
6523 ac_path_GREP_max=$ac_count
6525 # 10*(2^10) chars as input seems more than enough
6526 test $ac_count -gt 10 && break
6527 done
6528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6529 esac
6531 $ac_path_GREP_found && break 3
6532 done
6533 done
6534 done
6535 IFS=$as_save_IFS
6536 if test -z "$ac_cv_path_GREP"; then
6537 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6539 else
6540 ac_cv_path_GREP=$GREP
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6545 $as_echo "$ac_cv_path_GREP" >&6; }
6546 GREP="$ac_cv_path_GREP"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6550 $as_echo_n "checking for egrep... " >&6; }
6551 if ${ac_cv_path_EGREP+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6555 then ac_cv_path_EGREP="$GREP -E"
6556 else
6557 if test -z "$EGREP"; then
6558 ac_path_EGREP_found=false
6559 # Loop through the user's path and test for each of PROGNAME-LIST
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_prog in egrep; do
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6568 as_fn_executable_p "$ac_path_EGREP" || continue
6569 # Check for GNU ac_path_EGREP and select it if it is found.
6570 # Check for GNU $ac_path_EGREP
6571 case `"$ac_path_EGREP" --version 2>&1` in
6572 *GNU*)
6573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6575 ac_count=0
6576 $as_echo_n 0123456789 >"conftest.in"
6577 while :
6579 cat "conftest.in" "conftest.in" >"conftest.tmp"
6580 mv "conftest.tmp" "conftest.in"
6581 cp "conftest.in" "conftest.nl"
6582 $as_echo 'EGREP' >> "conftest.nl"
6583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6585 as_fn_arith $ac_count + 1 && ac_count=$as_val
6586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6587 # Best one so far, save it but keep looking for a better one
6588 ac_cv_path_EGREP="$ac_path_EGREP"
6589 ac_path_EGREP_max=$ac_count
6591 # 10*(2^10) chars as input seems more than enough
6592 test $ac_count -gt 10 && break
6593 done
6594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6595 esac
6597 $ac_path_EGREP_found && break 3
6598 done
6599 done
6600 done
6601 IFS=$as_save_IFS
6602 if test -z "$ac_cv_path_EGREP"; then
6603 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6605 else
6606 ac_cv_path_EGREP=$EGREP
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6612 $as_echo "$ac_cv_path_EGREP" >&6; }
6613 EGREP="$ac_cv_path_EGREP"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6617 $as_echo_n "checking for ANSI C header files... " >&6; }
6618 if ${ac_cv_header_stdc+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <stdlib.h>
6624 #include <stdarg.h>
6625 #include <string.h>
6626 #include <float.h>
6629 main ()
6633 return 0;
6635 _ACEOF
6636 if ac_fn_c_try_compile "$LINENO"; then :
6637 ac_cv_header_stdc=yes
6638 else
6639 ac_cv_header_stdc=no
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 if test $ac_cv_header_stdc = yes; then
6644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 #include <string.h>
6649 _ACEOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "memchr" >/dev/null 2>&1; then :
6653 else
6654 ac_cv_header_stdc=no
6656 rm -f conftest*
6660 if test $ac_cv_header_stdc = yes; then
6661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 #include <stdlib.h>
6666 _ACEOF
6667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6668 $EGREP "free" >/dev/null 2>&1; then :
6670 else
6671 ac_cv_header_stdc=no
6673 rm -f conftest*
6677 if test $ac_cv_header_stdc = yes; then
6678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6679 if test "$cross_compiling" = yes; then :
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 #include <ctype.h>
6685 #include <stdlib.h>
6686 #if ((' ' & 0x0FF) == 0x020)
6687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6689 #else
6690 # define ISLOWER(c) \
6691 (('a' <= (c) && (c) <= 'i') \
6692 || ('j' <= (c) && (c) <= 'r') \
6693 || ('s' <= (c) && (c) <= 'z'))
6694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6695 #endif
6697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6699 main ()
6701 int i;
6702 for (i = 0; i < 256; i++)
6703 if (XOR (islower (i), ISLOWER (i))
6704 || toupper (i) != TOUPPER (i))
6705 return 2;
6706 return 0;
6708 _ACEOF
6709 if ac_fn_c_try_run "$LINENO"; then :
6711 else
6712 ac_cv_header_stdc=no
6714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6715 conftest.$ac_objext conftest.beam conftest.$ac_ext
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6721 $as_echo "$ac_cv_header_stdc" >&6; }
6722 if test $ac_cv_header_stdc = yes; then
6724 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6728 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6729 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6730 inttypes.h stdint.h unistd.h
6731 do :
6732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6736 cat >>confdefs.h <<_ACEOF
6737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6738 _ACEOF
6742 done
6745 for ac_header in sys/ipc.h sys/shm.h \
6746 sys/mmap.h sys/mman.h sysexits.h \
6747 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6749 do :
6750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6753 cat >>confdefs.h <<_ACEOF
6754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755 _ACEOF
6759 done
6762 for ac_header in sys/mount.h
6763 do :
6764 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6766 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6767 cat >>confdefs.h <<_ACEOF
6768 #define HAVE_SYS_MOUNT_H 1
6769 _ACEOF
6773 done
6775 for ac_header in GL/glx.h
6776 do :
6777 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6778 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_GL_GLX_H 1
6781 _ACEOF
6782 host_feature_glx=yes
6783 else
6784 host_feature_glx=no
6787 done
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6791 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6795 #define __unused __attribute__((unused))
6796 #include <sys/stat.h>
6799 main ()
6803 return 0;
6805 _ACEOF
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 host_stat_h__unused_used=no
6808 else
6809 host_stat_h__unused_used=yes
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6813 $as_echo "$host_stat_h__unused_used" >&6; }
6815 ac_header_dirent=no
6816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6817 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6819 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6820 if eval \${$as_ac_Header+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6826 #include <$ac_hdr>
6829 main ()
6831 if ((DIR *) 0)
6832 return 0;
6834 return 0;
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 eval "$as_ac_Header=yes"
6839 else
6840 eval "$as_ac_Header=no"
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 eval ac_res=\$$as_ac_Header
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6848 cat >>confdefs.h <<_ACEOF
6849 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6850 _ACEOF
6852 ac_header_dirent=$ac_hdr; break
6855 done
6856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6857 if test $ac_header_dirent = dirent.h; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6859 $as_echo_n "checking for library containing opendir... " >&6; }
6860 if ${ac_cv_search_opendir+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 ac_func_search_save_LIBS=$LIBS
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6867 /* Override any GCC internal prototype to avoid an error.
6868 Use char because int might match the return type of a GCC
6869 builtin and then its argument prototype would still apply. */
6870 #ifdef __cplusplus
6871 extern "C"
6872 #endif
6873 char opendir ();
6875 main ()
6877 return opendir ();
6879 return 0;
6881 _ACEOF
6882 for ac_lib in '' dir; do
6883 if test -z "$ac_lib"; then
6884 ac_res="none required"
6885 else
6886 ac_res=-l$ac_lib
6887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6889 if ac_fn_c_try_link "$LINENO"; then :
6890 ac_cv_search_opendir=$ac_res
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext
6894 if ${ac_cv_search_opendir+:} false; then :
6895 break
6897 done
6898 if ${ac_cv_search_opendir+:} false; then :
6900 else
6901 ac_cv_search_opendir=no
6903 rm conftest.$ac_ext
6904 LIBS=$ac_func_search_save_LIBS
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6907 $as_echo "$ac_cv_search_opendir" >&6; }
6908 ac_res=$ac_cv_search_opendir
6909 if test "$ac_res" != no; then :
6910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6916 $as_echo_n "checking for library containing opendir... " >&6; }
6917 if ${ac_cv_search_opendir+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 ac_func_search_save_LIBS=$LIBS
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6924 /* Override any GCC internal prototype to avoid an error.
6925 Use char because int might match the return type of a GCC
6926 builtin and then its argument prototype would still apply. */
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 char opendir ();
6932 main ()
6934 return opendir ();
6936 return 0;
6938 _ACEOF
6939 for ac_lib in '' x; do
6940 if test -z "$ac_lib"; then
6941 ac_res="none required"
6942 else
6943 ac_res=-l$ac_lib
6944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6946 if ac_fn_c_try_link "$LINENO"; then :
6947 ac_cv_search_opendir=$ac_res
6949 rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext
6951 if ${ac_cv_search_opendir+:} false; then :
6952 break
6954 done
6955 if ${ac_cv_search_opendir+:} false; then :
6957 else
6958 ac_cv_search_opendir=no
6960 rm conftest.$ac_ext
6961 LIBS=$ac_func_search_save_LIBS
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6964 $as_echo "$ac_cv_search_opendir" >&6; }
6965 ac_res=$ac_cv_search_opendir
6966 if test "$ac_res" != no; then :
6967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6974 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6975 if ${ac_cv_header_stat_broken+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 #include <sys/types.h>
6981 #include <sys/stat.h>
6983 #if defined S_ISBLK && defined S_IFDIR
6984 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6985 #endif
6987 #if defined S_ISBLK && defined S_IFCHR
6988 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6989 #endif
6991 #if defined S_ISLNK && defined S_IFREG
6992 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6993 #endif
6995 #if defined S_ISSOCK && defined S_IFREG
6996 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6997 #endif
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 ac_cv_header_stat_broken=no
7002 else
7003 ac_cv_header_stat_broken=yes
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7008 $as_echo "$ac_cv_header_stat_broken" >&6; }
7009 if test $ac_cv_header_stat_broken = yes; then
7011 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7016 $as_echo_n "checking for ANSI C header files... " >&6; }
7017 if ${ac_cv_header_stdc+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 #include <stdlib.h>
7023 #include <stdarg.h>
7024 #include <string.h>
7025 #include <float.h>
7028 main ()
7032 return 0;
7034 _ACEOF
7035 if ac_fn_c_try_compile "$LINENO"; then :
7036 ac_cv_header_stdc=yes
7037 else
7038 ac_cv_header_stdc=no
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 if test $ac_cv_header_stdc = yes; then
7043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 #include <string.h>
7048 _ACEOF
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "memchr" >/dev/null 2>&1; then :
7052 else
7053 ac_cv_header_stdc=no
7055 rm -f conftest*
7059 if test $ac_cv_header_stdc = yes; then
7060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 #include <stdlib.h>
7065 _ACEOF
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 $EGREP "free" >/dev/null 2>&1; then :
7069 else
7070 ac_cv_header_stdc=no
7072 rm -f conftest*
7076 if test $ac_cv_header_stdc = yes; then
7077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7078 if test "$cross_compiling" = yes; then :
7080 else
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <ctype.h>
7084 #include <stdlib.h>
7085 #if ((' ' & 0x0FF) == 0x020)
7086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7088 #else
7089 # define ISLOWER(c) \
7090 (('a' <= (c) && (c) <= 'i') \
7091 || ('j' <= (c) && (c) <= 'r') \
7092 || ('s' <= (c) && (c) <= 'z'))
7093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7094 #endif
7096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7098 main ()
7100 int i;
7101 for (i = 0; i < 256; i++)
7102 if (XOR (islower (i), ISLOWER (i))
7103 || toupper (i) != TOUPPER (i))
7104 return 2;
7105 return 0;
7107 _ACEOF
7108 if ac_fn_c_try_run "$LINENO"; then :
7110 else
7111 ac_cv_header_stdc=no
7113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7114 conftest.$ac_objext conftest.beam conftest.$ac_ext
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7120 $as_echo "$ac_cv_header_stdc" >&6; }
7121 if test $ac_cv_header_stdc = yes; then
7123 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7128 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7129 if ${ac_cv_header_sys_wait_h+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 #include <sys/wait.h>
7136 #ifndef WEXITSTATUS
7137 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7138 #endif
7139 #ifndef WIFEXITED
7140 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7141 #endif
7144 main ()
7146 int s;
7147 wait (&s);
7148 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7150 return 0;
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_header_sys_wait_h=yes
7155 else
7156 ac_cv_header_sys_wait_h=no
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7161 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7162 if test $ac_cv_header_sys_wait_h = yes; then
7164 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7169 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7170 if ${ac_cv_header_time+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <sys/time.h>
7177 #include <time.h>
7180 main ()
7182 if ((struct tm *) 0)
7183 return 0;
7185 return 0;
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 ac_cv_header_time=yes
7190 else
7191 ac_cv_header_time=no
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7196 $as_echo "$ac_cv_header_time" >&6; }
7197 if test $ac_cv_header_time = yes; then
7199 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7203 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7204 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7208 _ACEOF
7211 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7216 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7217 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7219 cat >>confdefs.h <<_ACEOF
7220 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7221 _ACEOF
7224 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7226 else
7227 case " $LIBOBJS " in
7228 *" fileblocks.$ac_objext "* ) ;;
7229 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7231 esac
7236 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7237 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_STRUCT_STAT_ST_RDEV 1
7241 _ACEOF
7244 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7250 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7251 if ${ac_cv_struct_tm+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 #include <sys/types.h>
7257 #include <time.h>
7260 main ()
7262 struct tm tm;
7263 int *p = &tm.tm_sec;
7264 return !p;
7266 return 0;
7268 _ACEOF
7269 if ac_fn_c_try_compile "$LINENO"; then :
7270 ac_cv_struct_tm=time.h
7271 else
7272 ac_cv_struct_tm=sys/time.h
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7277 $as_echo "$ac_cv_struct_tm" >&6; }
7278 if test $ac_cv_struct_tm = sys/time.h; then
7280 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7284 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7285 #include <$ac_cv_struct_tm>
7288 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7290 cat >>confdefs.h <<_ACEOF
7291 #define HAVE_STRUCT_TM_TM_ZONE 1
7292 _ACEOF
7297 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7299 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7301 else
7302 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7304 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7305 ac_have_decl=1
7306 else
7307 ac_have_decl=0
7310 cat >>confdefs.h <<_ACEOF
7311 #define HAVE_DECL_TZNAME $ac_have_decl
7312 _ACEOF
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7315 $as_echo_n "checking for tzname... " >&6; }
7316 if ${ac_cv_var_tzname+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <time.h>
7322 #if !HAVE_DECL_TZNAME
7323 extern char *tzname[];
7324 #endif
7327 main ()
7329 return tzname[0][0];
7331 return 0;
7333 _ACEOF
7334 if ac_fn_c_try_link "$LINENO"; then :
7335 ac_cv_var_tzname=yes
7336 else
7337 ac_cv_var_tzname=no
7339 rm -f core conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7343 $as_echo "$ac_cv_var_tzname" >&6; }
7344 if test $ac_cv_var_tzname = yes; then
7346 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7351 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7352 if test "x$ac_cv_type_off_t" = xyes; then :
7354 else
7356 cat >>confdefs.h <<_ACEOF
7357 #define off_t long int
7358 _ACEOF
7362 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7363 if test "x$ac_cv_type_pid_t" = xyes; then :
7365 else
7367 cat >>confdefs.h <<_ACEOF
7368 #define pid_t int
7369 _ACEOF
7373 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7374 if test "x$ac_cv_type_size_t" = xyes; then :
7376 else
7378 cat >>confdefs.h <<_ACEOF
7379 #define size_t unsigned int
7380 _ACEOF
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7385 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7386 if ${ac_cv_type_uid_t+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 #include <sys/types.h>
7393 _ACEOF
7394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395 $EGREP "uid_t" >/dev/null 2>&1; then :
7396 ac_cv_type_uid_t=yes
7397 else
7398 ac_cv_type_uid_t=no
7400 rm -f conftest*
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7404 $as_echo "$ac_cv_type_uid_t" >&6; }
7405 if test $ac_cv_type_uid_t = no; then
7407 $as_echo "#define uid_t int" >>confdefs.h
7410 $as_echo "#define gid_t int" >>confdefs.h
7415 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7416 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7418 cat >>confdefs.h <<_ACEOF
7419 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7420 _ACEOF
7426 # Look for some functions
7427 for ac_func in getpagesize kqueue statfs statvfs \
7428 clone kse_create rfork_thread thr_create sa_register \
7429 getcontext makecontext setcontext sigaltstack swapcontext
7430 do :
7431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7432 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7433 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7434 cat >>confdefs.h <<_ACEOF
7435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7436 _ACEOF
7439 done
7445 for ac_header in $ac_header_list
7446 do :
7447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7451 cat >>confdefs.h <<_ACEOF
7452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453 _ACEOF
7457 done
7466 for ac_func in getpagesize
7467 do :
7468 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7469 if test "x$ac_cv_func_getpagesize" = xyes; then :
7470 cat >>confdefs.h <<_ACEOF
7471 #define HAVE_GETPAGESIZE 1
7472 _ACEOF
7475 done
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7478 $as_echo_n "checking for working mmap... " >&6; }
7479 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test "$cross_compiling" = yes; then :
7483 ac_cv_func_mmap_fixed_mapped=no
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 $ac_includes_default
7488 /* malloc might have been renamed as rpl_malloc. */
7489 #undef malloc
7491 /* Thanks to Mike Haertel and Jim Avera for this test.
7492 Here is a matrix of mmap possibilities:
7493 mmap private not fixed
7494 mmap private fixed at somewhere currently unmapped
7495 mmap private fixed at somewhere already mapped
7496 mmap shared not fixed
7497 mmap shared fixed at somewhere currently unmapped
7498 mmap shared fixed at somewhere already mapped
7499 For private mappings, we should verify that changes cannot be read()
7500 back from the file, nor mmap's back from the file at a different
7501 address. (There have been systems where private was not correctly
7502 implemented like the infamous i386 svr4.0, and systems where the
7503 VM page cache was not coherent with the file system buffer cache
7504 like early versions of FreeBSD and possibly contemporary NetBSD.)
7505 For shared mappings, we should conversely verify that changes get
7506 propagated back to all the places they're supposed to be.
7508 Grep wants private fixed already mapped.
7509 The main things grep needs to know about mmap are:
7510 * does it exist and is it safe to write into the mmap'd area
7511 * how to use it (BSD variants) */
7513 #include <fcntl.h>
7514 #include <sys/mman.h>
7516 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7517 char *malloc ();
7518 #endif
7520 /* This mess was copied from the GNU getpagesize.h. */
7521 #ifndef HAVE_GETPAGESIZE
7522 # ifdef _SC_PAGESIZE
7523 # define getpagesize() sysconf(_SC_PAGESIZE)
7524 # else /* no _SC_PAGESIZE */
7525 # ifdef HAVE_SYS_PARAM_H
7526 # include <sys/param.h>
7527 # ifdef EXEC_PAGESIZE
7528 # define getpagesize() EXEC_PAGESIZE
7529 # else /* no EXEC_PAGESIZE */
7530 # ifdef NBPG
7531 # define getpagesize() NBPG * CLSIZE
7532 # ifndef CLSIZE
7533 # define CLSIZE 1
7534 # endif /* no CLSIZE */
7535 # else /* no NBPG */
7536 # ifdef NBPC
7537 # define getpagesize() NBPC
7538 # else /* no NBPC */
7539 # ifdef PAGESIZE
7540 # define getpagesize() PAGESIZE
7541 # endif /* PAGESIZE */
7542 # endif /* no NBPC */
7543 # endif /* no NBPG */
7544 # endif /* no EXEC_PAGESIZE */
7545 # else /* no HAVE_SYS_PARAM_H */
7546 # define getpagesize() 8192 /* punt totally */
7547 # endif /* no HAVE_SYS_PARAM_H */
7548 # endif /* no _SC_PAGESIZE */
7550 #endif /* no HAVE_GETPAGESIZE */
7553 main ()
7555 char *data, *data2, *data3;
7556 const char *cdata2;
7557 int i, pagesize;
7558 int fd, fd2;
7560 pagesize = getpagesize ();
7562 /* First, make a file with some known garbage in it. */
7563 data = (char *) malloc (pagesize);
7564 if (!data)
7565 return 1;
7566 for (i = 0; i < pagesize; ++i)
7567 *(data + i) = rand ();
7568 umask (0);
7569 fd = creat ("conftest.mmap", 0600);
7570 if (fd < 0)
7571 return 2;
7572 if (write (fd, data, pagesize) != pagesize)
7573 return 3;
7574 close (fd);
7576 /* Next, check that the tail of a page is zero-filled. File must have
7577 non-zero length, otherwise we risk SIGBUS for entire page. */
7578 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7579 if (fd2 < 0)
7580 return 4;
7581 cdata2 = "";
7582 if (write (fd2, cdata2, 1) != 1)
7583 return 5;
7584 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7585 if (data2 == MAP_FAILED)
7586 return 6;
7587 for (i = 0; i < pagesize; ++i)
7588 if (*(data2 + i))
7589 return 7;
7590 close (fd2);
7591 if (munmap (data2, pagesize))
7592 return 8;
7594 /* Next, try to mmap the file at a fixed address which already has
7595 something else allocated at it. If we can, also make sure that
7596 we see the same garbage. */
7597 fd = open ("conftest.mmap", O_RDWR);
7598 if (fd < 0)
7599 return 9;
7600 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7601 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7602 return 10;
7603 for (i = 0; i < pagesize; ++i)
7604 if (*(data + i) != *(data2 + i))
7605 return 11;
7607 /* Finally, make sure that changes to the mapped area do not
7608 percolate back to the file as seen by read(). (This is a bug on
7609 some variants of i386 svr4.0.) */
7610 for (i = 0; i < pagesize; ++i)
7611 *(data2 + i) = *(data2 + i) + 1;
7612 data3 = (char *) malloc (pagesize);
7613 if (!data3)
7614 return 12;
7615 if (read (fd, data3, pagesize) != pagesize)
7616 return 13;
7617 for (i = 0; i < pagesize; ++i)
7618 if (*(data + i) != *(data3 + i))
7619 return 14;
7620 close (fd);
7621 free (data);
7622 free (data3);
7623 return 0;
7625 _ACEOF
7626 if ac_fn_c_try_run "$LINENO"; then :
7627 ac_cv_func_mmap_fixed_mapped=yes
7628 else
7629 ac_cv_func_mmap_fixed_mapped=no
7631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7632 conftest.$ac_objext conftest.beam conftest.$ac_ext
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7637 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7638 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7640 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7643 rm -f conftest.mmap conftest.txt
7646 #-----------------------------------------------------------------------------
7649 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7650 # it switched on by default, and we use the host compiler, so it compiles AROS
7651 # code with this enabled resulting in link failures as we don't have support
7652 # for it.
7654 # We use two methods to disable it. For the host compiler (used to compile
7655 # some hosted modules), we test to see if the compiler supports stack
7656 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7657 # work on all platforms.
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7661 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7662 save_cflags="$CFLAGS"
7663 CFLAGS="$CFLAGS -fno-stack-protector"
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7668 main ()
7672 return 0;
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 use_no_stack_protector="yes"
7677 else
7678 use_no_stack_protector="no"
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7682 $as_echo "$use_no_stack_protector" >&6; }
7683 if test "x-$use_no_stack_protector" = "x-yes" ; then
7684 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7686 CFLAGS="$save_cflags"
7688 #-----------------------------------------------------------------------------
7690 # Disable pointer-signedness warnings if the compiler recognises the option
7691 # (this only works for the host compiler at the moment)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7694 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7695 save_cflags="$CFLAGS"
7696 CFLAGS="$CFLAGS -Wno-pointer-sign"
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7701 main ()
7705 return 0;
7707 _ACEOF
7708 if ac_fn_c_try_compile "$LINENO"; then :
7709 use_no_sign_warning="yes"
7710 else
7711 use_no_sign_warning="no"
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7715 $as_echo "$use_no_sign_warning" >&6; }
7716 if test "x-$use_no_sign_warning" = "x-yes" ; then
7717 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7719 CFLAGS="$save_cflags"
7721 #-----------------------------------------------------------------------------
7723 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7726 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7727 save_cflags="$CFLAGS"
7728 CFLAGS="$CFLAGS -fgnu89-inline"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7733 main ()
7737 return 0;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 use_gnu89_inline="yes"
7742 else
7743 use_gnu89_inline="no"
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7747 $as_echo "$use_gnu89_inline" >&6; }
7748 if test "x-$use_gnu89_inline" = "x-yes" ; then
7749 gnu89_inline="-fgnu89-inline"
7751 CFLAGS="$save_cflags"
7754 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7755 # On GCC >= 4.0 -iquote should be used
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7758 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7759 CFLAGS="$CFLAGS -iquote."
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7764 main ()
7768 return 0;
7770 _ACEOF
7771 if ac_fn_c_try_compile "$LINENO"; then :
7772 has_iquote="yes"
7773 else
7774 has_iquote="no"
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7778 $as_echo "$has_iquote" >&6; }
7779 if test "x-$has_iquote" = "x-yes" ; then
7780 host_cflags_iquote=-iquote
7781 host_cflags_iquote_end=
7782 else
7783 host_cflags_iquote=-I
7784 host_cflags_iquote_end=-I-
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7788 $as_echo "$as_me: Performing target configuration..." >&6;}
7791 test_kernel_cc=no
7793 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7794 export_newline="
7797 aros_elf_translate=
7798 aros_warn_flags=
7799 aros_isa_extra=
7800 aros_isa_flags=
7801 aros_config_cppflags=
7802 aros_config_cflags=
7803 aros_config_cxxflags=
7804 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7805 aros_config_ldflags=""
7807 aros_shared_default=yes
7809 aros_shared_cflags="-fPIC"
7810 aros_shared_aflags=""
7811 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7812 aros_kernel_ldflags="-Wl,-rpath,./lib"
7814 aros_kernel_ar_flags="cr"
7815 aros_target_ar_flags="cr"
7816 aros_target_nm_flags="-C -ul"
7817 aros_target_strip_flags="--strip-unneeded -R.comment"
7819 aros_c_libs=
7820 aros_cxx_libs=
7822 aros_target_genmap="-Wl,-Map -Xlinker"
7824 # Native flavour stuff
7825 aros_serial_debug="0"
7827 # Palm native flavour stuff
7828 aros_palm_debug_hack="0"
7830 # Unix flavour stuff
7831 aros_nesting_supervisor="0"
7833 # Collect-aros stuff: "-ius" to ignore undefined symbols
7834 ignore_undefined_symbols=""
7836 # Check for X11 by default
7837 need_x11="auto"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7840 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7842 # Check whether --with-toolchain was given.
7843 if test "${with_toolchain+set}" = set; then :
7844 withval=$with_toolchain; aros_toolchain="$withval"
7845 else
7846 aros_toolchain="$default_toolchain_family"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7850 $as_echo "$aros_toolchain" >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7854 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7855 # Check whether --enable-lto was given.
7856 if test "${enable_lto+set}" = set; then :
7857 enableval=$enable_lto; aros_config_lto="$enableval"
7858 else
7859 aros_config_lto="no"
7862 if test "$aros_config_lto" != "no"; then
7863 aros_config_lto="yes"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7866 $as_echo "$aros_config_lto" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7869 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7870 # Check whether --enable-coverage was given.
7871 if test "${enable_coverage+set}" = set; then :
7872 enableval=$enable_coverage; aros_config_coverage="$enableval"
7873 else
7874 aros_config_coverage="no"
7877 if test "$aros_config_coverage" != "no"; then
7878 aros_config_coverage="yes"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7881 $as_echo "$aros_config_coverage" >&6; }
7883 use_ld_wrapper=yes
7885 case "$aros_toolchain" in
7886 *llvm*)
7887 toolchain_c_compiler="clang"
7888 toolchain_cxx_compiler="clang++"
7889 toolchain_cpp_preprocessor="clang -E"
7890 toolchain_ld="ld.lld"
7891 aros_ld="ld"
7892 toolchain_as="llvm-as"
7893 toolchain_ar="llvm-ar"
7894 toolchain_ranlib="llvm-ranlib"
7895 toolchain_nm="llvm-nm"
7896 toolchain_strip="true"
7897 toolchain_objcopy="llvm-objcopy"
7898 toolchain_objdump="llvm-objdump"
7899 use_libatomic=yes
7901 *gnu*)
7902 toolchain_c_compiler="gcc"
7903 toolchain_cxx_compiler="g++"
7904 toolchain_cpp_preprocessor="gcc -E"
7905 toolchain_as="as"
7906 aros_ld="ld"
7907 if test "$aros_config_lto" != "yes"; then
7908 toolchain_ld="ld"
7909 toolchain_ar="ar"
7910 toolchain_ranlib="ranlib"
7911 toolchain_nm="nm"
7912 else
7913 toolchain_ld="ld.bfd"
7914 toolchain_ar="gcc-ar"
7915 toolchain_ranlib="gcc-ranlib"
7916 toolchain_nm="gcc-nm"
7918 toolchain_strip="strip"
7919 toolchain_objcopy="objcopy"
7920 toolchain_objdump="objdump"
7921 use_libatomic=yes
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7925 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7926 toolchain_c_compiler="cc"
7927 toolchain_cxx_compiler="c++"
7928 toolchain_cpp_preprocessor="cpp"
7929 toolchain_ld="ld"
7930 aros_ld="ld"
7931 toolchain_as="as"
7932 toolchain_ar="ar"
7933 toolchain_ranlib="ranlib"
7934 toolchain_nm="nm"
7935 toolchain_strip="strip"
7936 toolchain_objcopy="objcopy"
7937 toolchain_objdump="objdump"
7939 esac
7941 #-----------------------------------------------------------------------------
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7944 $as_echo_n "checking which type of build to do... " >&6; }
7945 # Check whether --enable-build_type was given.
7946 if test "${enable_build_type+set}" = set; then :
7947 enableval=$enable_build_type; build_type=$enableval
7948 else
7949 build_type="personal"
7953 if test "$build_type" = "nightly"; then
7954 build_type_string="NIGHTLY"
7955 elif test "$build_type" = "snapshot"; then
7956 build_type_string="SNAPSHOT"
7957 elif test "$build_type" = "milestone"; then
7958 build_type_string="MILESTONE"
7959 elif test "$build_type" = "release"; then
7960 build_type_string="RELEASE"
7961 else
7962 build_type_string="PERSONAL"
7963 build_type="personal"
7966 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7969 $as_echo "$build_type" >&6; }
7971 #-----------------------------------------------------------------------------
7972 all_debug_types="messages stack modules mungwall symbols"
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7975 $as_echo_n "checking which debug types to enable... " >&6; }
7976 # Check whether --enable-debug was given.
7977 if test "${enable_debug+set}" = set; then :
7978 enableval=$enable_debug; debug="$enableval"
7979 else
7980 debug=""
7984 if test "$debug" = "" -o "$debug" = "no"; then
7985 debug="none"
7986 elif test "$debug" = "yes"; then
7987 debug="all"
7990 if test "$debug" = "all" ; then
7991 debug="messages stack modules symbols"
7992 for d in $all_debug_types; do
7993 export aros_${d}_debug="1"
7994 done
7995 else
7996 for d in $all_debug_types; do
7997 export aros_${d}_debug="0"
7998 done
8001 if test "$debug" != "none"; then
8002 debug=`echo $debug | sed s/,/\ /g`
8003 for d in $debug; do
8004 found="0"
8005 for d2 in $all_debug_types; do
8006 if test "$d2" = "$d"; then
8007 found="1"
8008 break
8010 done
8011 if test "$found" = "0"; then
8012 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8014 export aros_${d}_debug="1"
8015 done
8016 aros_debug="yes"
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8019 $as_echo "$debug" >&6; }
8021 if test "$aros_messages_debug" = "1"; then
8022 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8023 else
8024 aros_messages_debug=""
8026 if test "$aros_symbols_debug" = "1"; then
8027 aros_symbols_debug="-g"
8028 else
8029 aros_symbols_debug=""
8032 # These are the flags to pass when compiling debugged programs
8033 aros_debug_cppflags="$aros_messages_debug"
8034 aros_debug_cflags="$aros_symbols_debug"
8035 aros_debug_cxxflags=
8036 aros_debug_aflags=""
8037 aros_debug_ldflags="$aros_symbols_debug"
8039 #-----------------------------------------------------------------------------
8040 # Checking for distcc and ccache.
8042 # Always apply the transforms in this particular order. Basically you should
8043 # always run 'ccache distcc compiler' in that order for the best performance.
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8046 $as_echo_n "checking whether to enable distcc... " >&6; }
8047 # Check whether --enable-distcc was given.
8048 if test "${enable_distcc+set}" = set; then :
8049 enableval=$enable_distcc; distcc="$enableval"
8050 else
8051 distcc="no"
8054 if test "$distcc" != "" -a "$distcc" != "no"; then
8055 # AC_CHECK_PROG will print out the result in this case
8056 # Extract the first word of "distcc", so it can be a program name with args.
8057 set dummy distcc; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_path_DISTCC+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 case $DISTCC in
8064 [\\/]* | ?:[\\/]*)
8065 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8075 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8079 done
8080 done
8081 IFS=$as_save_IFS
8083 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8085 esac
8087 DISTCC=$ac_cv_path_DISTCC
8088 if test -n "$DISTCC"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8090 $as_echo "$DISTCC" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8103 $as_echo_n "checking whether to enable ccache... " >&6; }
8104 # Check whether --enable-ccache was given.
8105 if test "${enable_ccache+set}" = set; then :
8106 enableval=$enable_ccache; ccache="$enableval"
8107 else
8108 ccache="no"
8111 if test "$ccache" != "" -a "$ccache" != "no"; then
8112 # AC_CHECK_PROG will print out the result in this case
8113 # Extract the first word of "ccache", so it can be a program name with args.
8114 set dummy ccache; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_CCACHE+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$CCACHE"; then
8121 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_CCACHE="ccache"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8134 done
8135 done
8136 IFS=$as_save_IFS
8140 CCACHE=$ac_cv_prog_CCACHE
8141 if test -n "$CCACHE"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8143 $as_echo "$CCACHE" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8155 #-----------------------------------------------------------------------------
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8157 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8159 # Check whether --with-kernel-gcc-version was given.
8160 if test "${with_kernel_gcc_version+set}" = set; then :
8161 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8162 else
8163 kernel_tool_version=""
8166 if test "$kernel_tool_version" != "" ; then
8167 msg_result=$kernel_tool_version
8168 else
8169 msg_result="default"
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8172 $as_echo "$msg_result" >&6; }
8174 #-----------------------------------------------------------------------------
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8176 $as_echo_n "checking what optimization flags to use... " >&6; }
8178 # Check whether --with-optimization was given.
8179 if test "${with_optimization+set}" = set; then :
8180 withval=$with_optimization; optimization_level="$withval"
8181 else
8182 optimization_level="unknown"
8185 if test "$optimization_level" = "unknown"; then
8186 optimization="default"
8187 if test "$debug" != "none"; then
8188 optimization_level="-O0"
8189 else
8190 optimization_level="-O2"
8192 else
8193 optimization="$optimization_level"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8196 $as_echo "$optimization" >&6; }
8198 paranoia_default=yes
8199 #-----------------------------------------------------------------------------
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8201 $as_echo_n "checking which paranoia flags to use... " >&6; }
8203 # Check whether --with-paranoia was given.
8204 if test "${with_paranoia+set}" = set; then :
8205 withval=$with_paranoia; paranoia_flags="$withval"
8206 else
8207 paranoia_flags="$paranoia_default"
8210 if test "$paranoia_flags" = "no"; then
8211 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8212 msg_result="none"
8213 else
8214 if test "$paranoia_flags" = "yes"; then
8215 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8217 msg_result="$paranoia_flags"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8220 $as_echo "$msg_result" >&6; }
8221 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8223 #-----------------------------------------------------------------------------
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8225 $as_echo_n "checking what target variant to enable... " >&6; }
8226 # Check whether --enable-target_variant was given.
8227 if test "${enable_target_variant+set}" = set; then :
8228 enableval=$enable_target_variant; target_variant=$enableval
8229 else
8230 target_variant=""
8233 if test "$target_variant" = ""; then
8234 aros_target_variant=""
8235 aros_target_suffix=""
8236 enableval="none"
8237 else
8238 aros_target_variant="$target_variant"
8239 aros_target_suffix="-$target_variant"
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8242 $as_echo "$enableval" >&6; }
8244 #-----------------------------------------------------------------------------
8245 # Target-specific defaults. You can override then on a per-target basis.
8247 # Bootloader name. Currently used by PC target.
8248 target_bootloader="none"
8249 PLATFORM_EXECSMP=
8250 ENABLE_EXECSMP=
8252 #-----------------------------------------------------------------------------
8253 # Additional options for some specific targets
8255 case "$aros_target_variant" in
8256 ios)
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8258 $as_echo_n "checking XCode path... " >&6; }
8260 # Check whether --with-xcode was given.
8261 if test "${with_xcode+set}" = set; then :
8262 withval=$with_xcode; aros_xcode_path="$withval"
8263 else
8264 aros_xcode_path="/Developer"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8268 $as_echo "$aros_xcode_path" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8271 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8273 # Check whether --with-sdk-version was given.
8274 if test "${with_sdk_version+set}" = set; then :
8275 withval=$with_sdk_version; aros_sdk_version="$withval"
8276 else
8277 aros_sdk_version="4.1"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8281 $as_echo "$aros_sdk_version" >&6; }
8285 "android")
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8287 $as_echo_n "checking Android SDK path... " >&6; }
8289 # Check whether --with-sdk was given.
8290 if test "${with_sdk+set}" = set; then :
8291 withval=$with_sdk; aros_android_sdk="$withval"
8292 else
8293 aros_android_sdk=$default_android_sdk
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8297 $as_echo "$aros_android_sdk" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8300 $as_echo_n "checking Android NDK path... " >&6; }
8302 # Check whether --with-ndk was given.
8303 if test "${with_ndk+set}" = set; then :
8304 withval=$with_ndk; aros_android_ndk="$withval"
8305 else
8306 aros_android_ndk="none"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8310 $as_echo "$aros_android_ndk" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8313 $as_echo_n "checking what Android SDK version to use... " >&6; }
8315 # Check whether --with-sdk-version was given.
8316 if test "${with_sdk_version+set}" = set; then :
8317 withval=$with_sdk_version; aros_sdk_version="$withval"
8318 else
8319 aros_sdk_version="12"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8323 $as_echo "$aros_sdk_version" >&6; }
8325 aros_android_level=android-$aros_sdk_version
8326 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8327 echo "Platform $aros_android_level is not installed in your SDK"
8328 echo "Use --with-sdk-version=<API level number> to select another platform version"
8329 echo "You can check what plaform versions are installed in your SDK"
8330 echo "by examining contents of $aros_android_sdk/platforms directory"
8331 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8334 export PATH="$aros_android_sdk/tools:$PATH"
8335 # Extract the first word of "$android_tool", so it can be a program name with args.
8336 set dummy $android_tool; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_path_android_tool+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 case $android_tool in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8360 IFS=$as_save_IFS
8363 esac
8365 android_tool=$ac_cv_path_android_tool
8366 if test -n "$android_tool"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8368 $as_echo "$android_tool" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8375 req_avail=yes
8376 if test "$android_tool" = ""; then
8377 req_avail=no
8379 if test "$android_tool" = "no"; then
8380 req_avail=no
8382 if test "$req_avail" = "no"; then
8383 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8386 if test "$aros_android_ndk" != "none"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8388 $as_echo_n "checking what Android NDK version to use... " >&6; }
8390 # Check whether --with-ndk-version was given.
8391 if test "${with_ndk_version+set}" = set; then :
8392 withval=$with_ndk_version; aros_ndk_version="$withval"
8393 else
8394 aros_ndk_version="9"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8398 $as_echo "$aros_ndk_version" >&6; }
8401 # Extract the first word of "ant", so it can be a program name with args.
8402 set dummy ant; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_path_ant+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 case $ant in
8409 [\\/]* | ?:[\\/]*)
8410 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8424 done
8425 done
8426 IFS=$as_save_IFS
8429 esac
8431 ant=$ac_cv_path_ant
8432 if test -n "$ant"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8434 $as_echo "$ant" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8441 if test "$ant" = ""; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8443 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8447 $as_echo_n "checking Build debug or release apk... " >&6; }
8449 # Check whether --with-apk-version was given.
8450 if test "${with_apk_version+set}" = set; then :
8451 withval=$with_apk_version; aros_android_antapk=$withval
8452 else
8453 aros_android_antapk=release
8456 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8457 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8460 $as_echo "$aros_android_antapk" >&6; }
8462 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8463 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8464 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8466 if test "$host_os" = "mingw32"; then
8467 android_tool="cmd //c $android_tool"
8470 need_dlopen="no"
8473 esac
8475 #-----------------------------------------------------------------------------
8476 # External toolchains
8477 kernel_tool_prefix="none"
8478 aros_tool_prefix="none"
8479 elf_tool_prefix="${target_cpu}-elf-"
8481 # Base target cpu ISA configuration switch.
8482 case "$target_cpu" in
8483 *aarch64*)
8485 *arm*)
8487 *m68k*)
8488 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8489 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8490 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8491 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8492 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8493 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8494 m68k_020_ext="ISA_MC68020_EXT :=020"
8495 m68k_030_ext="ISA_MC68030_EXT :=030"
8496 m68k_040_ext="ISA_MC68040_EXT :=040"
8497 m68k_060_ext="ISA_MC68060_EXT :=060"
8498 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8499 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8500 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8501 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8502 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8503 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8504 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8505 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8506 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8507 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8508 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8509 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8511 *x86_64* | *i?86*)
8512 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8513 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8515 *powerpc*)
8517 esac
8519 # This is the target configuration switch.
8520 case "$target_os" in
8521 linux*)
8522 aros_target_arch="linux"
8523 aros_target_family="unix"
8524 case "$target_cpu" in
8525 *m68k*)
8526 aros_target_cpu="m68k"
8527 aros_object_format="m68kelf"
8528 aros_flavour="emulcompat"
8529 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8530 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8531 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8532 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8533 gcc_target_cpu="mc68000"
8535 *i?86*)
8536 aros_target_cpu="i386"
8537 aros_object_format="elf_i386"
8538 aros_flavour="emulation"
8539 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8540 aros_isa_flags="$""(ISA_X86_FLAGS)"
8541 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8542 aros_kernel_ldflags="-Wl,-melf_i386"
8543 aros_nominal_depth=8
8544 gcc_target_cpu="i386"
8545 pci_hidd_target="hidd-pci-linux"
8546 android_tool_dir_prefix="x86"
8547 android_tool_prefix="i686-android-linux"
8548 android_ndk_arch="x86"
8550 *x86_64*)
8551 aros_target_cpu="x86_64"
8552 aros_object_format="elf_x86_64"
8553 aros_flavour="emulation"
8554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8555 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8556 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8557 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8558 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8559 aros_nominal_depth=8
8560 pci_hidd_target="hidd-pci-linux"
8562 *powerpc*)
8563 aros_target_cpu="ppc"
8564 aros_object_format="elf32ppc"
8565 aros_flavour="emulation"
8566 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8567 aros_nominal_depth=8
8568 gcc_target_cpu="ppc"
8570 # TODO
8571 # Same as powerpc, but I need this for the nightly build to work again.
8572 # Actually, the nightly should be made working with powerpc target.
8573 # That just was too much work for the moment, another week or two.
8574 *ppc*)
8575 aros_target_cpu="ppc"
8576 aros_object_format="elf32ppc"
8577 aros_flavour="emulation"
8578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8579 aros_nominal_depth=8
8580 gcc_target_cpu="ppc"
8582 *aarch64*)
8583 aros_target_cpu="aarch64"
8584 target_cpu="aarch64"
8585 aros_object_format="aarch64elf_aros"
8586 aros_flavour="emulation"
8587 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8588 gcc_target_cpu="aarch64"
8589 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8590 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8591 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8592 aros_c_libs="$aros_c_libs -laeabi"
8593 gcc_default_float_abi="hard"
8594 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8596 *armhf*)
8597 aros_target_cpu="arm"
8598 target_cpu="arm"
8599 aros_object_format="armelf_aros"
8600 aros_flavour="emulation"
8601 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8602 gcc_target_cpu="arm"
8603 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8604 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8605 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8606 aros_c_libs="$aros_c_libs -laeabi"
8607 gcc_default_float_abi="hard"
8608 android_tool_dir_prefix="arm-linux-androideabi"
8609 android_tool_prefix="arm-linux-androideabi"
8610 android_ndk_arch="arm"
8611 kernel_tool_prefix="arm-linux-gnueabihf-"
8613 *arm*)
8614 aros_target_cpu="arm"
8615 aros_object_format="armelf_aros"
8616 aros_flavour="emulation"
8617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8618 gcc_target_cpu="arm"
8619 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8620 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8621 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8622 aros_c_libs="$aros_c_libs -laeabi"
8623 android_tool_dir_prefix="arm-linux-androideabi"
8624 android_tool_prefix="arm-linux-androideabi"
8625 android_ndk_arch="arm"
8626 kernel_tool_prefix="arm-linux-gnueabi-"
8629 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8631 esac
8632 case "$aros_target_variant" in
8633 android)
8635 if test "$android_ndk_arch" = ""; then
8636 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8639 aros_nominal_width=320
8640 aros_nominal_height=480
8641 if test "$aros_android_ndk" = "none"; then
8642 aros_kernel_cflags="-mandroid"
8643 aros_kernel_ldflags="-mandroid"
8644 CFLAGS="-mandroid"
8645 else
8646 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8647 kernel_tool_version=""
8648 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8649 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8650 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8651 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8652 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8654 need_x11=no
8655 # Disable implicit PIC mode
8656 aros_config_cflags="$aros_config_cflags -fno-pic"
8657 kernel_tool_prefix="$android_tool_prefix-"
8659 esac
8663 aros_target_arch="pc"
8664 aros_shared_default="no"
8665 target_bootloader="grub2"
8666 case "$target_cpu" in
8667 *i?86*)
8668 aros_target_cpu="i386"
8671 if test "$aros_object_format" = "" ; then
8672 aros_object_format="elf_i386"
8674 aros_flavour="standalone"
8675 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8676 aros_isa_flags="$""(ISA_X86_FLAGS)"
8677 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8678 aros_kernel_ldflags="-Wl,-melf_i386"
8679 aros_nominal_width=640
8680 aros_nominal_height=480
8681 gcc_target_cpu="i386"
8683 *x86_64*)
8684 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8685 aros_target_cpu="x86_64"
8686 aros_serial_debug=1
8687 if test "$aros_object_format" = "" ; then
8688 aros_object_format="elf_x86_64"
8690 aros_flavour="standalone"
8691 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8692 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8693 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8694 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8695 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8696 aros_kernel_ldflags=""
8697 aros_nominal_width=640
8698 aros_nominal_height=480
8699 case "$aros_target_variant" in
8700 smp)
8701 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8703 esac
8706 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8708 esac
8711 prep)
8712 aros_target_arch="prep"
8713 aros_shared_default="no"
8714 aros_target_cpu="ppc"
8715 aros_object_format="elf32ppc"
8716 aros_flavour="ppcnative"
8717 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8718 aros_kernel_ldflags=""
8719 aros_nominal_width=640
8720 aros_nominal_height=480
8721 gcc_target_cpu="ppc"
8724 freebsd*)
8725 aros_target_arch="freebsd"
8726 aros_target_family="unix"
8727 aros_target_cpu="i386"
8728 aros_flavour="emulation"
8729 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8730 gcc_target_cpu="i386"
8732 aros_target_strip_flags="-x"
8735 darwin*)
8736 aros_target_arch="darwin"
8737 aros_target_family="unix"
8738 aros_flavour="emulation"
8739 case "$target_cpu" in
8740 *i?86*)
8741 aros_ios_platform="iPhoneSimulator"
8742 aros_target_cpu="i386"
8743 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8744 aros_isa_flags="$""(ISA_X86_FLAGS)"
8745 aros_kernel_ldflags=""
8746 aros_macosx_version="10.4"
8747 aros_nominal_depth=8
8748 gcc_target_cpu="i386"
8749 aros_object_format="elf_i386"
8750 aros_kernel_ar_flags="-cr"
8751 aros_target_strip_flags="-x"
8752 kernel_tool_flags="-m32"
8754 *x86_64*)
8755 aros_target_cpu="x86_64"
8756 aros_object_format="elf_x86_64"
8757 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8758 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8759 aros_macosx_version="10.6"
8760 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8761 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8762 aros_kernel_cflags="-m64"
8763 aros_kernel_ldflags="-m64"
8764 aros_nominal_depth=8
8765 aros_kernel_rs="$AR"
8766 aros_kernel_ar_flags="-cr"
8767 aros_kernel_ld="$LD"
8768 aros_kernel_as="$AS"
8769 aros_kernel_ranlib="$RANLIB"
8770 aros_kernel_nm="$NM"
8771 aros_kernel_strip="strip"
8772 kernel_tool_prefix="i686-apple-darwin10-"
8774 *ppc*)
8775 aros_target_cpu="ppc"
8776 aros_object_format="elf32ppc"
8777 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8778 aros_kernel_ldflags=""
8779 aros_macosx_version="10.0"
8780 aros_nominal_depth=8
8781 gcc_target_cpu="ppc"
8782 aros_kernel_rs="$AR"
8783 aros_kernel_ar_flags="-cr"
8784 aros_kernel_ld="$LD -arch ppc"
8785 aros_kernel_as="$AS -arch ppc"
8786 aros_kernel_ranlib="$RANLIB -arch ppc"
8787 aros_kernel_nm="$NM -arch ppc"
8788 aros_kernel_strip="strip -arch ppc"
8789 kernel_tool_prefix="powerpc-apple-darwin10-"
8791 *arm*)
8792 aros_ios_platform="iPhoneOS"
8793 aros_target_cpu="arm"
8794 aros_object_format="armelf_aros"
8795 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8796 aros_c_libs="$aros_c_libs -laeabi"
8797 aros_nominal_depth=8
8798 gcc_target_cpu="arm"
8799 aros_kernel_rs="$AR"
8800 aros_kernel_ar_flags="-cr"
8801 aros_kernel_ld="$LD -arch arm"
8802 aros_kernel_ranlib="$RANLIB -arch arm"
8803 kernel_tool_prefix="arm-apple-darwin10-"
8804 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8807 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8809 esac
8810 case "$aros_target_variant" in
8811 ios)
8812 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8813 aros_ios_version="3.0"
8814 aros_nominal_width=320
8815 aros_nominal_height=480
8816 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8817 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"
8818 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8819 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8820 need_x11=no
8821 # This is here because it may depend on iOS or SDK version
8822 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8823 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8824 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8827 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8828 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8830 esac
8833 dragonfly*)
8834 aros_target_arch="dragonfly"
8835 aros_target_family="unix"
8836 aros_flavour="emulation"
8837 case "$target_cpu" in
8838 *i?86*)
8839 aros_target_cpu="i386"
8840 aros_object_format="elf_i386"
8841 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8842 aros_isa_flags="$""(ISA_X86_FLAGS)"
8844 *x86_64*)
8845 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8846 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8847 aros_target_cpu="x86_64"
8848 aros_object_format="elf_x86_64"
8849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8850 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8853 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8855 esac
8858 netbsd*)
8859 aros_target_arch="netbsd"
8860 aros_target_family="unix"
8861 case "$target_cpu" in
8862 *m68k*)
8863 aros_target_cpu="m68k"
8864 aros_object_format="m68kelf"
8865 aros_flavour="emulcompat"
8866 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8867 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8868 gcc_target_cpu="mc68000"
8870 *i?86*)
8871 aros_target_cpu="i386"
8872 aros_object_format="elf_i386"
8873 aros_flavour="emulation"
8874 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8875 aros_isa_flags="$""(ISA_X86_FLAGS)"
8876 aros_nominal_depth=8
8877 gcc_target_cpu="i386"
8880 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8882 esac
8883 aros_target_genmap="-Wl,-M -Xlinker >"
8884 aros_flavour="emulation"
8885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8888 openbsd*)
8889 aros_target_arch="openbsd"
8890 aros_target_family="unix"
8891 case "$target_cpu" in
8892 *i?86*)
8893 aros_target_cpu="i386"
8894 aros_object_format="elf_i386"
8895 aros_flavour="emulation"
8896 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8897 aros_isa_flags="$""(ISA_X86_FLAGS)"
8898 gcc_target_cpu="i386"
8901 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8903 esac
8904 aros_target_genmap="-Wl,-M -Xlinker >"
8905 aros_target_nm_flags="-u"
8906 aros_flavour="emulation"
8909 solaris*)
8910 aros_target_arch="solaris"
8911 aros_target_family="unix"
8912 case "$target_cpu" in
8913 *i?86*)
8914 aros_target_cpu="i386"
8915 aros_object_format="elf_i386"
8916 aros_flavour="emulation"
8917 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8918 aros_isa_flags="$""(ISA_X86_FLAGS)"
8919 aros_nominal_depth=8
8920 gcc_target_cpu="i386"
8922 *sparc*)
8923 aros_target_cpu="sparc"
8924 aros_object_format="elf_sparc"
8925 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8926 gcc_target_cpu="sparc"
8929 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8931 esac
8932 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8933 aros_flavour="emulation"
8936 morphos*)
8937 aros_target_arch="morphos"
8938 aros_shared_default="no"
8939 aros_target_cpu="ppc"
8940 aros_object_format="elf_ppc"
8941 aros_flavour="nativecompat"
8942 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8943 gcc_target_cpu="ppc"
8946 sam440)
8947 aros_target_arch="sam440"
8948 aros_shared_default="no"
8949 aros_target_cpu="ppc"
8950 aros_object_format="elf32ppc"
8951 aros_flavour="ppcnative"
8952 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8953 aros_kernel_ldflags=""
8954 aros_nominal_width=1024
8955 aros_nominal_height=768
8956 aros_nominal_depth=24
8957 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8958 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8959 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8960 gcc_target_cpu="powerpc"
8963 efika)
8964 aros_target_arch="efika"
8965 aros_shared_default="no"
8966 aros_target_cpu="arm"
8967 aros_object_format="armelf_aros"
8968 aros_flavour="standalone"
8969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8970 aros_kernel_ldflags=""
8971 aros_nominal_width=1024
8972 aros_nominal_height=600
8973 aros_c_libs="$aros_c_libs -laeabi"
8974 gcc_default_cpu="armv7-a"
8975 gcc_default_fpu="vfpv3"
8976 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8977 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8978 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8979 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8980 if test "$optimization" = "default"; then
8981 optimization_level="-Os"
8983 case "$target_cpu" in
8984 *armhf*)
8985 gcc_default_float_abi="hard"
8986 target_cpu=arm
8987 aros_target_cpu=arm
8989 *arm*)
8990 gcc_default_float_abi="softfp"
8993 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8995 esac
8998 chrp)
8999 aros_target_arch="chrp"
9000 aros_shared_default="no"
9001 aros_target_cpu="ppc"
9002 aros_object_format="elf32ppc"
9003 aros_flavour="ppcnative"
9004 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9005 aros_kernel_ldflags=""
9006 aros_nominal_width=640
9007 aros_nominal_height=480
9008 aros_isa_flags="$aros_isa_flags -mno-toc"
9009 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9010 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9011 gcc_target_cpu="powerpc"
9012 case "$aros_target_variant" in
9013 efika)
9014 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9015 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9017 esac
9020 r*pi)
9021 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9022 aros_flavour="standalone"
9023 aros_target_arch="raspi"
9025 aros_shared_default="no"
9027 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9029 case "$target_cpu" in
9030 *aarch64*)
9031 aros_target_cpu="aarch64"
9032 gcc_default_cpu="aarch64"
9033 aros_object_format="aarch64elf_aros"
9035 *armhf*)
9036 aros_target_cpu="arm"
9037 gcc_default_cpu="armv6zk"
9038 gcc_default_cpu_tune="arm1176jzf-s"
9039 aros_object_format="armelf_aros"
9040 aros_isa_flags="$aros_isa_flags -marm"
9041 aros_config_cflags="$aros_config_cflags"
9042 aros_config_cxxflags="$aros_config_cxxflags"
9043 aros_config_aflags="$aros_config_aflags -marm"
9044 aros_kernel_cflags="$aros_kernel_cflags -marm"
9045 aros_target_mkdep="$aros_target_mkdep -Darm"
9046 aros_c_libs="$aros_c_libs -laeabi"
9048 *armeb*)
9049 aros_flavour="standcompat"
9050 aros_target_cpu="armeb"
9051 gcc_default_float_abi="hard"
9052 gcc_default_cpu="armv7ve"
9053 gcc_default_cpu_tune="cortex-a7"
9054 aros_object_format="armelfb_aros"
9055 aros_isa_flags="$aros_isa_flags -marm"
9056 aros_config_cflags="$aros_config_cflags"
9057 aros_config_cxxflags="$aros_config_cxxflags"
9058 aros_config_aflags="$aros_config_aflags -marm"
9059 aros_kernel_cflags="$aros_kernel_cflags -marm"
9060 aros_target_mkdep="$aros_target_mkdep -Darm"
9061 aros_c_libs="$aros_c_libs -laeabi"
9063 *arm*)
9064 aros_target_cpu="arm"
9065 gcc_default_cpu="armv6zk"
9066 gcc_default_cpu_tune="arm1176jzf-s"
9067 aros_object_format="armelf_aros"
9068 aros_isa_flags="$aros_isa_flags -marm"
9069 aros_config_cflags="$aros_config_cflags"
9070 aros_config_cxxflags="$aros_config_cxxflags"
9071 aros_config_aflags="$aros_config_aflags -marm"
9072 aros_kernel_cflags="$aros_kernel_cflags -marm"
9073 aros_target_mkdep="$aros_target_mkdep -Darm"
9074 aros_c_libs="$aros_c_libs -laeabi"
9077 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9079 esac
9081 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9082 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9083 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9084 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9086 case "$aros_target_variant" in
9087 smp)
9088 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9090 esac
9093 stm32f7_discovery)
9094 aros_flavour="standalone"
9095 aros_target_arch="stm32f7_discovery"
9096 aros_target_cpu="arm"
9097 aros_target_cpu_mode="thumb2"
9098 aros_object_format="armelf_aros"
9099 aros_shared_default="no"
9101 gcc_default_cpu="armv7e-m"
9102 gcc_default_cpu_tune="cortex-m7"
9103 gcc_default_fpu="fpv5-sp-d16"
9104 gcc_default_float_abi="hard"
9106 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9109 amiga*)
9110 aros_elf_translate="$""(ELF2HUNK)"
9111 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9112 aros_target_arch="amiga"
9113 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9114 aros_shared_default="no"
9116 case "$target_cpu" in
9117 *m68k*)
9118 # Check whether --enable-amigaos_compliance was given.
9119 if test "${enable_amigaos_compliance+set}" = set; then :
9120 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9123 aros_enable_mmu=no
9124 aros_target_cpu="m68k"
9125 aros_object_format="m68kelf"
9126 aros_flavour="standcompat"
9127 gcc_target_cpu="m68000"
9128 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9129 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9130 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9131 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9132 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9133 if test "$optimization" = "default"; then
9134 optimization_level="-Os"
9136 aros_config_aflags="$aros_config_aflags"
9137 aros_target_strip_flags="-R.comment --strip-debug"
9138 aros_nominal_width=640
9139 aros_nominal_height=256
9140 aros_nominal_depth=2
9142 *ppc*)
9143 aros_cpu="ppc"
9144 aros_flavour="native"
9145 gcc_target_cpu="ppc"
9148 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9150 esac
9153 mingw*)
9154 aros_target_arch="mingw32"
9155 aros_shared_default="no"
9156 aros_flavour="emulation"
9157 aros_shared_cflags=""
9158 need_crosstools="yes"
9159 need_dlopen="no"
9160 rescomp="windres"
9161 case "$target_cpu" in
9162 *i?86*)
9163 aros_target_cpu="i386"
9164 aros_object_format="elf_i386"
9165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9166 aros_isa_flags="$""(ISA_X86_FLAGS)"
9167 aros_nominal_depth=8
9168 gcc_target_cpu="i386"
9170 kernel_tool_prefix="i386-mingw32-"
9172 *x86_64*)
9173 aros_target_cpu="x86_64"
9174 aros_object_format="elf_x86_64"
9175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9176 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9177 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9178 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9179 aros_nominal_depth=8
9180 kernel_tool_prefix="x86_64-w64-mingw32-"
9182 *arm*)
9183 aros_target_cpu="arm"
9184 aros_object_format="armelf_aros"
9185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9186 aros_c_libs="$aros_c_libs -laeabi"
9187 aros_nominal_depth=8
9188 gcc_target_cpu="arm"
9189 gcc_default_float_abi="soft"
9190 kernel_tool_prefix="arm-mingw32ce-"
9191 aros_nominal_width=160
9192 aros_nominal_height=160
9195 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9197 esac
9198 if test $host_os = "cygwin"; then
9199 aros_kernel_cflags="-mno-cygwin"
9202 pp*)
9203 aros_target_arch="pp"
9204 aros_shared_default="no"
9205 case "$target_cpu" in
9206 *m68k*)
9207 aros_target_cpu="m68k"
9208 aros_object_format="m68kelf"
9209 aros_flavour="palmnative"
9210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9211 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9212 aros_nominal_width=160
9213 aros_nominal_height=160
9214 aros_nominal_depth=1
9215 aros_target_ar_flags="cru"
9216 aros_c_libs="$aros_c_libs -lgcc1"
9217 aros_shared_default=no
9218 aros_shared_cflags="-fpic"
9219 aros_shared_aflags=""
9220 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9221 aros_kernel_ldflags="-Wl,-rpath,./lib"
9222 aros_debug_cppflags="$aros_messages_debug"
9223 aros_debug_cflags="$aros_symbols_debug"
9224 aros_debug_aflags=""
9225 aros_debug_ldflags="$aros_symbols_debug"
9226 aros_mungwall_debug="0"
9227 aros_modules_debug="0"
9228 gcc_target_cpu="mc68000"
9229 ignore_undefined_symbols="-ius"
9232 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9234 esac
9237 mac*)
9238 aros_target_arch="mac"
9239 aros_shared_default="no"
9240 case "$target_cpu" in
9241 *m68k*)
9242 aros_target_cpu="m68k"
9243 aros_object_format="m68kelf"
9244 aros_flavour="mac68knative"
9245 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9246 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9247 aros_nominal_width=512
9248 aros_nominal_height=384
9249 aros_nominal_depth=8
9250 aros_target_ar_flags="cru"
9251 aros_c_libs="$aros_c_libs -lgcc1"
9252 aros_shared_default=no
9253 aros_shared_cflags="-fpic"
9254 aros_shared_aflags=""
9255 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9256 aros_kernel_ldflags="-Wl,-rpath,./lib"
9257 aros_debug_cppflags="$aros_messages_debug"
9258 aros_debug_cflags="$aros_symbols_debug"
9259 aros_debug_aflags=""
9260 aros_debug_ldflags="$aros_symbols_debug"
9261 aros_mungwall_debug="0"
9262 aros_modules_debug="0"
9263 gcc_target_cpu="mc68000"
9264 ignore_undefined_symbols="-ius"
9267 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9269 esac
9273 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9275 esac
9277 #-----------------------------------------------------------------------------
9278 crosstools_guess="yes"
9279 aros_target_toolchain="no"
9280 aros_kernel_sysroot=""
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9283 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9285 # Check whether --with-kernel-toolchain-prefix was given.
9286 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9287 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9291 $as_echo "$kernel_tool_prefix" >&6; }
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9294 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9296 # Check whether --with-elf-toolchain-prefix was given.
9297 if test "${with_elf_toolchain_prefix+set}" = set; then :
9298 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9299 crosstools_guess="no"
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9303 $as_echo "$elf_tool_prefix" >&6; }
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9306 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9308 # Check whether --with-aros-toolchain was given.
9309 if test "${with_aros_toolchain+set}" = set; then :
9310 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9311 crosstools_guess="no"
9314 if test "$aros_tool_prefix" = "yes" ; then
9315 aros_tool_prefix=$aros_target_cpu-aros-
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9318 $as_echo "$aros_tool_prefix" >&6; }
9320 #-----------------------------------------------------------------------------
9321 # Checking if we should build crosstools..
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9323 $as_echo_n "checking whether to build crosstools... " >&6; }
9324 # Check whether --enable-crosstools was given.
9325 if test "${enable_crosstools+set}" = set; then :
9326 enableval=$enable_crosstools; crosstools="$enableval"
9327 else
9328 crosstools="$crosstools_guess"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9332 $as_echo "$crosstools" >&6; }
9334 if test "${crosstools}" = "yes"; then
9335 if test "${crosstools_guess}" = "no"; then
9336 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9340 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9341 aros_target_toolchain="yes"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9345 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9347 # Check whether --with-aros-toolchain-install was given.
9348 if test "${with_aros_toolchain_install+set}" = set; then :
9349 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9352 if test "x$aros_toolchain_install" = "x"; then
9353 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9354 else
9355 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9356 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9357 if test "$crosstools_guess" = "no" ; then
9358 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9359 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9364 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9366 #-----------------------------------------------------------------------------
9367 if test "$aros_toolchain" = "gnu" ; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9369 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9372 # Check whether --with-binutils-version was given.
9373 if test "${with_binutils_version+set}" = set; then :
9374 withval=$with_binutils_version; use_binutils_version="$withval"
9375 else
9376 use_binutils_version=""
9379 if test "$use_binutils_version" = ""; then
9380 target_binutils_version="$default_binutils_version"
9381 else
9382 target_binutils_version="$use_binutils_version"
9384 if test "$aros_toolchain" = "gnu" ; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9386 $as_echo "$target_binutils_version" >&6; }
9390 # Helper to identify gcc version
9393 #-----------------------------------------------------------------------------
9394 if test "$aros_toolchain" = "gnu" ; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9396 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9399 # Check whether --with-gcc-version was given.
9400 if test "${with_gcc_version+set}" = set; then :
9401 withval=$with_gcc_version; use_gcc_version="$withval"
9402 else
9403 use_gcc_version=""
9406 if test "$use_gcc_version" = ""; then
9407 if test "${crosstools}" = "no"; then
9408 if test "x$aros_toolchain_install" != "x"; then
9410 target_gcc_version=""
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9412 $as_echo_n "checking gcc version... " >&6; }
9413 if ${ax_cv_gcc_version+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9417 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9418 if test "x$ax_cv_gcc_version" = "x"; then :
9420 ax_cv_gcc_version=""
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9426 $as_echo "$ax_cv_gcc_version" >&6; }
9427 target_gcc_version=$ax_cv_gcc_version
9432 if test "$use_gcc_version" = ""; then
9433 target_gcc_version="$default_gcc_version"
9435 else
9436 target_gcc_version="$use_gcc_version"
9438 if test "$aros_toolchain" = "gnu" ; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9440 $as_echo "$target_gcc_version" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9443 $as_echo_n "checking version string style... " >&6; }
9444 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9446 $as_echo "snapshot" >&6; }
9447 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9448 GCC_VERSION_MINOR=-1
9449 GCC_VERSION_PATCH=-1
9450 else
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9452 $as_echo "release" >&6; }
9453 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9454 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9455 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9458 gcc_fix_bitfields="false"
9459 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9460 gcc_fix_bitfields="true"
9461 else
9462 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9463 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9464 gcc_fix_bitfields="true"
9469 if test "$gcc_fix_bitfields" = "true" ; then
9470 case "$aros_target_cpu" in
9471 *x86_64* | *i?86*)
9472 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9473 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9475 esac
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9480 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9481 # Check whether --enable-objc was given.
9482 if test "${enable_objc+set}" = set; then :
9483 enableval=$enable_objc; objc="$enableval"
9484 else
9485 objc="no"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9489 $as_echo "$objc" >&6; }
9490 if test "x$objc" = "xyes"; then
9491 objc_target="$objc"
9492 else
9493 objc_target="no-objc"
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9497 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9498 # Check whether --enable-java was given.
9499 if test "${enable_java+set}" = set; then :
9500 enableval=$enable_java; java="$enableval"
9501 else
9502 java="no"
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9506 $as_echo "$java" >&6; }
9507 if test "x$java" != "xno"; then
9508 java_target="$java"
9509 else
9510 java_target="no-java"
9513 spec_obj_format="-m $aros_object_format"
9514 # Now process extra architecture-specific options.
9515 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9516 # as well as floating-point ABI.
9517 case "$aros_target_cpu" in
9518 *m68k*)
9519 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9520 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9521 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"
9522 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"
9523 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"
9524 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"
9525 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"
9527 *x86_64*)
9528 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9529 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9531 arm*)
9532 if test "$gcc_default_cpu" = ""; then
9533 gcc_default_cpu="armv6"
9535 if test "$gcc_default_fpu" = ""; then
9536 gcc_default_fpu="vfp"
9538 if test "$gcc_default_endian" = ""; then
9539 if test "$target_cpu" = "armeb"; then
9540 gcc_default_endian="big-endian"
9541 else
9542 gcc_default_endian="little-endian"
9545 if test "$gcc_default_float_abi" = ""; then
9546 if test "$target_cpu" = "armhf"; then
9547 gcc_default_float_abi="hard"
9548 else
9549 gcc_default_float_abi="softfp"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9554 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9556 # Check whether --with-cpu was given.
9557 if test "${with_cpu+set}" = set; then :
9558 withval=$with_cpu; aros_gcc_cpu="$withval"
9559 else
9560 aros_gcc_cpu=$gcc_default_cpu
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9564 $as_echo "$aros_gcc_cpu" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9567 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9569 # Check whether --with-fpu was given.
9570 if test "${with_fpu+set}" = set; then :
9571 withval=$with_fpu; aros_gcc_fpu="$withval"
9572 else
9573 aros_gcc_fpu=$gcc_default_fpu
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9577 $as_echo "$aros_gcc_fpu" >&6; }
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9580 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9582 # Check whether --with-float was given.
9583 if test "${with_float+set}" = set; then :
9584 withval=$with_float; aros_gcc_float_abi="$withval"
9585 else
9586 aros_gcc_float_abi=$gcc_default_float_abi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9590 $as_echo "$aros_gcc_float_abi" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9593 $as_echo_n "checking Which ARM mode to use... " >&6; }
9594 if test "$aros_target_cpu_mode" = ""; then
9595 aros_target_cpu_mode="arm32"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9597 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9600 $as_echo "$aros_target_cpu_mode" >&6; }
9603 case "$aros_target_cpu_mode" in
9604 arm32)
9605 gcc_default_mode="arm"
9606 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"
9608 arm64)
9609 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9611 thumb)
9612 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9614 thumb1)
9615 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9617 thumb2)
9618 gcc_default_mode="thumb"
9619 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9620 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"
9623 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9625 esac
9627 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9628 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9629 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9631 i386)
9632 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9633 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9635 esac
9637 # Some architectures may need custom ELF specs.
9638 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9639 elf_specs_in=config/${aros_object_format}-specs.in
9640 else
9641 elf_specs_in=config/elf-specs.in
9644 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9645 # Since we override specs, we may need to put these defines there
9646 if test "$gcc_target_cpu" != ""; then
9647 gcc_target_cpu="-D__${gcc_target_cpu}__"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9651 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9653 # Check whether --with-portssources was given.
9654 if test "${with_portssources+set}" = set; then :
9655 withval=$with_portssources; with_portssrcdir=$withval
9656 else
9657 with_portssrcdir="default"
9660 if test "$with_portssrcdir" = "default"; then
9661 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9662 else
9663 AROS_PORTSSRCDIR="$with_portssrcdir"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9666 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9669 $as_echo_n "checking which bootloader to use... " >&6; }
9671 # Check whether --with-bootloader was given.
9672 if test "${with_bootloader+set}" = set; then :
9673 withval=$with_bootloader; target_bootloader=$withval
9674 else
9675 target_bootloader=$target_bootloader
9678 if test "$target_bootloader" = "none"; then
9679 aros_target_bootloader=""
9680 else
9681 aros_target_bootloader="$target_bootloader"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9684 $as_echo "$target_bootloader" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9687 $as_echo_n "checking which icon-set to use... " >&6; }
9689 # Check whether --with-iconset was given.
9690 if test "${with_iconset+set}" = set; then :
9691 withval=$with_iconset; target_iconset=$withval
9692 else
9693 target_iconset="default"
9696 if test "$target_iconset" = "default"; then
9697 aros_target_iconset="Gorilla"
9698 target_iconset="default (Gorilla)"
9699 else
9700 aros_target_iconset="$target_iconset"
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9703 $as_echo "$target_iconset" >&6; }
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9706 $as_echo_n "checking which GUI Theme to use... " >&6; }
9708 # Check whether --with-theme was given.
9709 if test "${with_theme+set}" = set; then :
9710 withval=$with_theme; target_guitheme=$withval
9711 else
9712 target_guitheme="default"
9715 if test "$target_guitheme" = "default"; then
9716 aros_target_guitheme="Ice"
9717 else
9718 aros_target_guitheme="$target_guitheme"
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9721 $as_echo "$aros_target_guitheme" >&6; }
9723 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9724 # for target code)
9725 cross_compiling=no
9727 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9728 cross_compiling=yes
9731 if test "$aros_host_cpu" == "x86_64" ; then
9732 if test "$aros_target_cpu" == "i386" ; then
9733 cross_compiling=no
9737 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9738 if test "$aros_host_arch" != "$aros_target_arch" ; then
9739 cross_compiling=yes
9741 else
9742 cross_compiling=yes
9745 if test "$cross_compiling" = "no" ; then
9746 kernel_tool_prefix=""
9747 if test "$host_cc_elf" = "yes" ; then
9748 elf_tool_prefix=""
9752 if test "$kernel_tool_version" != ""; then
9753 kernel_tool_version="-$kernel_tool_version"
9756 #######################################################################
9757 ## Compute what toolchains to use, and their paths ##
9758 #######################################################################
9760 # This takes, as input:
9761 # crosstools {yes,no}
9762 # kernel_tool_version {"",[version]}
9763 # target_tool_version {"",[version]}
9764 # kernel_tool_prefix {none,[some-arch-os-]}
9765 # gnu-toolchain -:
9766 # target_tool_prefix ${aros_target_cpu}-aros-
9767 # aros_tool_prefix ${aros_target_cpu}-aros-
9769 # The output is
9770 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9771 # Where the 'kernel' binaries are located
9772 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9773 # Where the 'target' binaries are located
9774 # (not the symlink farm - that is aros_target_*!)
9776 # The rules are:
9777 # if crosstools then
9778 # if kernel_tools_prefix = "no-kernel-prefix-"
9779 # aros_kernel_* = crosstools cc paths
9780 # aros_kernel_cc = elf cc wrapper around crosstools cc
9781 # else
9782 # VALIDATE(${kernel_tools_prefix}*)
9783 # aros_kernel_* = ${kernel_tools_prefix}*
9784 # if ${kernel_tools_prefix}cc is an AROS gcc
9785 # aros_kernel_cc = ${kernel_tools_prefix}cc
9786 # else
9787 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9788 # fi
9789 # fi
9791 # orig_target_* = aros built crosstools
9792 # orig_target_cc = elf cc wrapper around crosstools cc
9793 # else
9794 # VALIDATE(${kernel_tools_prefix}*)
9796 # orig_target_* = aros_kernel_*
9797 # if aros_kernel_cc is an AROS gcc
9798 # orig_target_cc = aros_kernel_cc
9799 # else
9800 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9801 # fi
9802 # fi
9804 if test "$aros_toolchain" = "gnu" ; then
9805 target_tool_prefix="${aros_target_cpu}-aros-"
9806 elif test "$aros_toolchain" = "llvm" ; then
9807 target_tool_prefix="bin/"
9810 if test "$kernel_tool_prefix" != "" ; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9812 $as_echo_n "checking which kernel tools... " >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9814 $as_echo "$kernel_tool_prefix" >&6; };
9817 if test "$kernel_tool_prefix" = "none" ; then
9818 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9819 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9821 else
9822 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9823 # Kernel tools required - find them
9824 # Note that 'normally', aros_kernel_* overrides will be
9825 # empty, unless specified in the per-arch sections above.
9826 test_kernel_cc=yes
9827 if test "x$aros_kernel_cpp" = "x"; then
9828 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9830 if test "${kernel_tool_version}" != ""; then
9831 if test "$aros_kernel_cpp" != ""; then
9832 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9833 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9834 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9838 if test "$aros_kernel_cpp" = ""; then
9839 if test "$cross_compiling" = "yes" ; then
9840 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9841 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 case $aros_kernel_cpp in
9848 [\\/]* | ?:[\\/]*)
9849 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9859 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 break 2
9863 done
9864 done
9865 IFS=$as_save_IFS
9868 esac
9870 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9871 if test -n "$aros_kernel_cpp"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9873 $as_echo "$aros_kernel_cpp" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9880 else
9882 if test "" = ""; then
9883 ac_tool_cpp=cpp
9884 else
9885 ac_tool_cpp=
9887 if test "$GCC" = "yes"; then
9888 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
9889 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9890 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 case $aros_kernel_cpp in
9897 [\\/]* | ?:[\\/]*)
9898 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in `dirname $aros_gcc_cpp`
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9917 esac
9919 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9920 if test -n "$aros_kernel_cpp"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9922 $as_echo "$aros_kernel_cpp" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9930 if test "$aros_kernel_cpp" = ""; then
9931 for ac_prog in $ac_tool_cpp
9933 # Extract the first word of "$ac_prog", so it can be a program name with args.
9934 set dummy $ac_prog; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 case $aros_kernel_cpp in
9941 [\\/]* | ?:[\\/]*)
9942 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9961 esac
9963 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9964 if test -n "$aros_kernel_cpp"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9966 $as_echo "$aros_kernel_cpp" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9973 test -n "$aros_kernel_cpp" && break
9974 done
9979 else
9980 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9981 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9982 set dummy $aros_kernel_cpp; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 case $aros_kernel_cpp in
9989 [\\/]* | ?:[\\/]*)
9990 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 for as_dir in $PATH
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10004 done
10005 done
10006 IFS=$as_save_IFS
10009 esac
10011 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10012 if test -n "$aros_kernel_cpp"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10014 $as_echo "$aros_kernel_cpp" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10021 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10024 req_avail=yes
10025 if test "$aros_kernel_cpp" = ""; then
10026 req_avail=no
10028 if test "$aros_kernel_cpp" = "no"; then
10029 req_avail=no
10031 if test "$req_avail" = "no"; then
10032 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10035 if test "x$aros_kernel_cc" = "x"; then
10036 aros_kernel_cc=${kernel_tool_prefix}${CC}
10038 if test "${kernel_tool_version}" != ""; then
10039 if test "$aros_kernel_cc" != ""; then
10040 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10041 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10042 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10046 if test "$aros_kernel_cc" = ""; then
10047 if test "$cross_compiling" = "yes" ; then
10048 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10049 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 case $aros_kernel_cc in
10056 [\\/]* | ?:[\\/]*)
10057 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10071 done
10072 done
10073 IFS=$as_save_IFS
10076 esac
10078 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10079 if test -n "$aros_kernel_cc"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10081 $as_echo "$aros_kernel_cc" >&6; }
10082 else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10088 else
10090 if test "" = ""; then
10091 ac_tool_cc=cc
10092 else
10093 ac_tool_cc=
10095 if test "$GCC" = "yes"; then
10096 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10097 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10098 set dummy `basename $aros_gcc_cc`; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 case $aros_kernel_cc in
10105 [\\/]* | ?:[\\/]*)
10106 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in `dirname $aros_gcc_cc`
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10120 done
10121 done
10122 IFS=$as_save_IFS
10125 esac
10127 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10128 if test -n "$aros_kernel_cc"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10130 $as_echo "$aros_kernel_cc" >&6; }
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10138 if test "$aros_kernel_cc" = ""; then
10139 for ac_prog in $ac_tool_cc
10141 # Extract the first word of "$ac_prog", so it can be a program name with args.
10142 set dummy $ac_prog; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 case $aros_kernel_cc in
10149 [\\/]* | ?:[\\/]*)
10150 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10164 done
10165 done
10166 IFS=$as_save_IFS
10169 esac
10171 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10172 if test -n "$aros_kernel_cc"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10174 $as_echo "$aros_kernel_cc" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10181 test -n "$aros_kernel_cc" && break
10182 done
10187 else
10188 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10189 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10190 set dummy $aros_kernel_cc; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 case $aros_kernel_cc in
10197 [\\/]* | ?:[\\/]*)
10198 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10212 done
10213 done
10214 IFS=$as_save_IFS
10217 esac
10219 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10220 if test -n "$aros_kernel_cc"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10222 $as_echo "$aros_kernel_cc" >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10229 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10232 req_avail=yes
10233 if test "$aros_kernel_cc" = ""; then
10234 req_avail=no
10236 if test "$aros_kernel_cc" = "no"; then
10237 req_avail=no
10239 if test "$req_avail" = "no"; then
10240 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10243 if test "x$aros_kernel_cxx" = "x"; then
10244 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
10246 if test "${kernel_tool_version}" != ""; then
10247 if test "$aros_kernel_cxx" != ""; then
10248 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10249 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10250 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10254 if test "$aros_kernel_cxx" = ""; then
10255 if test "$cross_compiling" = "yes" ; then
10256 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10257 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 case $aros_kernel_cxx in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10284 esac
10286 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10287 if test -n "$aros_kernel_cxx"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10289 $as_echo "$aros_kernel_cxx" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10296 else
10298 if test "" = ""; then
10299 ac_tool_cxx=cxx
10300 else
10301 ac_tool_cxx=
10303 if test "$GCC" = "yes"; then
10304 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10305 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10306 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 case $aros_kernel_cxx in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in `dirname $aros_gcc_cxx`
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10336 if test -n "$aros_kernel_cxx"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10338 $as_echo "$aros_kernel_cxx" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10346 if test "$aros_kernel_cxx" = ""; then
10347 for ac_prog in $ac_tool_cxx
10349 # Extract the first word of "$ac_prog", so it can be a program name with args.
10350 set dummy $ac_prog; ac_word=$2
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352 $as_echo_n "checking for $ac_word... " >&6; }
10353 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 case $aros_kernel_cxx in
10357 [\\/]* | ?:[\\/]*)
10358 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10372 done
10373 done
10374 IFS=$as_save_IFS
10377 esac
10379 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10380 if test -n "$aros_kernel_cxx"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10382 $as_echo "$aros_kernel_cxx" >&6; }
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10389 test -n "$aros_kernel_cxx" && break
10390 done
10395 else
10396 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10397 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10398 set dummy $aros_kernel_cxx; ac_word=$2
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400 $as_echo_n "checking for $ac_word... " >&6; }
10401 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 case $aros_kernel_cxx in
10405 [\\/]* | ?:[\\/]*)
10406 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10420 done
10421 done
10422 IFS=$as_save_IFS
10425 esac
10427 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10428 if test -n "$aros_kernel_cxx"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10430 $as_echo "$aros_kernel_cxx" >&6; }
10431 else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10437 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10440 # If it's set, make sure it's really there
10441 if test "x$aros_kernel_cxx" != "x" ; then
10442 req_avail=yes
10443 if test "$aros_kernel_cxx" = ""; then
10444 req_avail=no
10446 if test "$aros_kernel_cxx" = "no"; then
10447 req_avail=no
10449 if test "$req_avail" = "no"; then
10450 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10453 if test "x$aros_kernel_ld" = "x"; then
10454 aros_kernel_ld=$aros_host_ld
10457 if test "$aros_kernel_ld" = ""; then
10458 if test "$cross_compiling" = "yes" ; then
10459 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10460 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462 $as_echo_n "checking for $ac_word... " >&6; }
10463 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 case $aros_kernel_ld in
10467 [\\/]* | ?:[\\/]*)
10468 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472 for as_dir in $PATH
10474 IFS=$as_save_IFS
10475 test -z "$as_dir" && as_dir=.
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10478 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 break 2
10482 done
10483 done
10484 IFS=$as_save_IFS
10487 esac
10489 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10490 if test -n "$aros_kernel_ld"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10492 $as_echo "$aros_kernel_ld" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10499 else
10501 if test "" = ""; then
10502 ac_tool_ld=ld
10503 else
10504 ac_tool_ld=
10506 if test "$GCC" = "yes"; then
10507 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10508 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10509 set dummy `basename $aros_gcc_ld`; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 case $aros_kernel_ld in
10516 [\\/]* | ?:[\\/]*)
10517 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in `dirname $aros_gcc_ld`
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10527 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10531 done
10532 done
10533 IFS=$as_save_IFS
10536 esac
10538 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10539 if test -n "$aros_kernel_ld"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10541 $as_echo "$aros_kernel_ld" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10549 if test "$aros_kernel_ld" = ""; then
10550 for ac_prog in $ac_tool_ld
10552 # Extract the first word of "$ac_prog", so it can be a program name with args.
10553 set dummy $ac_prog; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 case $aros_kernel_ld in
10560 [\\/]* | ?:[\\/]*)
10561 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10575 done
10576 done
10577 IFS=$as_save_IFS
10580 esac
10582 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10583 if test -n "$aros_kernel_ld"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10585 $as_echo "$aros_kernel_ld" >&6; }
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10592 test -n "$aros_kernel_ld" && break
10593 done
10598 else
10599 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10600 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10601 set dummy $aros_kernel_ld; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 case $aros_kernel_ld in
10608 [\\/]* | ?:[\\/]*)
10609 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10628 esac
10630 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10631 if test -n "$aros_kernel_ld"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10633 $as_echo "$aros_kernel_ld" >&6; }
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10640 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10643 req_avail=yes
10644 if test "$aros_kernel_ld" = ""; then
10645 req_avail=no
10647 if test "$aros_kernel_ld" = "no"; then
10648 req_avail=no
10650 if test "$req_avail" = "no"; then
10651 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10653 if test "x$aros_kernel_as" = "x"; then
10654 aros_kernel_as=$aros_host_as
10655 if test "x$aros_kernel_as" = "x"; then
10656 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10660 if test "$aros_kernel_as" = ""; then
10661 if test "$cross_compiling" = "yes" ; then
10662 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10663 set dummy ${kernel_tool_prefix}as; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_path_aros_kernel_as+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 case $aros_kernel_as in
10670 [\\/]* | ?:[\\/]*)
10671 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10690 esac
10692 aros_kernel_as=$ac_cv_path_aros_kernel_as
10693 if test -n "$aros_kernel_as"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10695 $as_echo "$aros_kernel_as" >&6; }
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10702 else
10704 if test "" = ""; then
10705 ac_tool_as=as
10706 else
10707 ac_tool_as=
10709 if test "$GCC" = "yes"; then
10710 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10711 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10712 set dummy `basename $aros_gcc_as`; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_path_aros_kernel_as+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 case $aros_kernel_as in
10719 [\\/]* | ?:[\\/]*)
10720 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724 for as_dir in `dirname $aros_gcc_as`
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10730 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 break 2
10734 done
10735 done
10736 IFS=$as_save_IFS
10739 esac
10741 aros_kernel_as=$ac_cv_path_aros_kernel_as
10742 if test -n "$aros_kernel_as"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10744 $as_echo "$aros_kernel_as" >&6; }
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10752 if test "$aros_kernel_as" = ""; then
10753 for ac_prog in $ac_tool_as
10755 # Extract the first word of "$ac_prog", so it can be a program name with args.
10756 set dummy $ac_prog; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_path_aros_kernel_as+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 case $aros_kernel_as in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10774 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 aros_kernel_as=$ac_cv_path_aros_kernel_as
10786 if test -n "$aros_kernel_as"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10788 $as_echo "$aros_kernel_as" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10795 test -n "$aros_kernel_as" && break
10796 done
10801 else
10802 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10803 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10804 set dummy $aros_kernel_as; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if ${ac_cv_path_aros_kernel_as+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 case $aros_kernel_as in
10811 [\\/]* | ?:[\\/]*)
10812 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10822 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10826 done
10827 done
10828 IFS=$as_save_IFS
10831 esac
10833 aros_kernel_as=$ac_cv_path_aros_kernel_as
10834 if test -n "$aros_kernel_as"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10836 $as_echo "$aros_kernel_as" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10843 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10846 req_avail=yes
10847 if test "$aros_kernel_as" = ""; then
10848 req_avail=no
10850 if test "$aros_kernel_as" = "no"; then
10851 req_avail=no
10853 if test "$req_avail" = "no"; then
10854 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10856 if test "x$aros_kernel_ar" = "x"; then
10857 aros_kernel_ar=$aros_host_ar
10860 if test "$aros_kernel_ar" = ""; then
10861 if test "$cross_compiling" = "yes" ; then
10862 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10863 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 case $aros_kernel_ar in
10870 [\\/]* | ?:[\\/]*)
10871 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10885 done
10886 done
10887 IFS=$as_save_IFS
10890 esac
10892 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10893 if test -n "$aros_kernel_ar"; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10895 $as_echo "$aros_kernel_ar" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10902 else
10904 if test "" = ""; then
10905 ac_tool_ar=ar
10906 else
10907 ac_tool_ar=
10909 if test "$GCC" = "yes"; then
10910 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
10911 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10912 set dummy `basename $aros_gcc_ar`; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10916 $as_echo_n "(cached) " >&6
10917 else
10918 case $aros_kernel_ar in
10919 [\\/]* | ?:[\\/]*)
10920 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in `dirname $aros_gcc_ar`
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10934 done
10935 done
10936 IFS=$as_save_IFS
10939 esac
10941 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10942 if test -n "$aros_kernel_ar"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10944 $as_echo "$aros_kernel_ar" >&6; }
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10952 if test "$aros_kernel_ar" = ""; then
10953 for ac_prog in $ac_tool_ar
10955 # Extract the first word of "$ac_prog", so it can be a program name with args.
10956 set dummy $ac_prog; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 case $aros_kernel_ar in
10963 [\\/]* | ?:[\\/]*)
10964 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10978 done
10979 done
10980 IFS=$as_save_IFS
10983 esac
10985 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10986 if test -n "$aros_kernel_ar"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10988 $as_echo "$aros_kernel_ar" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10995 test -n "$aros_kernel_ar" && break
10996 done
11001 else
11002 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11003 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11004 set dummy $aros_kernel_ar; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 case $aros_kernel_ar in
11011 [\\/]* | ?:[\\/]*)
11012 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11026 done
11027 done
11028 IFS=$as_save_IFS
11031 esac
11033 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11034 if test -n "$aros_kernel_ar"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11036 $as_echo "$aros_kernel_ar" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11043 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11046 req_avail=yes
11047 if test "$aros_kernel_ar" = ""; then
11048 req_avail=no
11050 if test "$aros_kernel_ar" = "no"; then
11051 req_avail=no
11053 if test "$req_avail" = "no"; then
11054 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11056 if test "x$aros_kernel_ranlib" = "x"; then
11057 aros_kernel_ranlib=$aros_host_ranlib
11060 if test "$aros_kernel_ranlib" = ""; then
11061 if test "$cross_compiling" = "yes" ; then
11062 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11063 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 case $aros_kernel_ranlib in
11070 [\\/]* | ?:[\\/]*)
11071 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11081 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11085 done
11086 done
11087 IFS=$as_save_IFS
11090 esac
11092 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11093 if test -n "$aros_kernel_ranlib"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11095 $as_echo "$aros_kernel_ranlib" >&6; }
11096 else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11102 else
11104 if test "" = ""; then
11105 ac_tool_ranlib=ranlib
11106 else
11107 ac_tool_ranlib=
11109 if test "$GCC" = "yes"; then
11110 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11111 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11112 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 case $aros_kernel_ranlib in
11119 [\\/]* | ?:[\\/]*)
11120 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in `dirname $aros_gcc_ranlib`
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11134 done
11135 done
11136 IFS=$as_save_IFS
11139 esac
11141 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11142 if test -n "$aros_kernel_ranlib"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11144 $as_echo "$aros_kernel_ranlib" >&6; }
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11152 if test "$aros_kernel_ranlib" = ""; then
11153 for ac_prog in $ac_tool_ranlib
11155 # Extract the first word of "$ac_prog", so it can be a program name with args.
11156 set dummy $ac_prog; ac_word=$2
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158 $as_echo_n "checking for $ac_word... " >&6; }
11159 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 case $aros_kernel_ranlib in
11163 [\\/]* | ?:[\\/]*)
11164 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11178 done
11179 done
11180 IFS=$as_save_IFS
11183 esac
11185 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11186 if test -n "$aros_kernel_ranlib"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11188 $as_echo "$aros_kernel_ranlib" >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11195 test -n "$aros_kernel_ranlib" && break
11196 done
11201 else
11202 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11203 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11204 set dummy $aros_kernel_ranlib; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 case $aros_kernel_ranlib in
11211 [\\/]* | ?:[\\/]*)
11212 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11226 done
11227 done
11228 IFS=$as_save_IFS
11231 esac
11233 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11234 if test -n "$aros_kernel_ranlib"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11236 $as_echo "$aros_kernel_ranlib" >&6; }
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11243 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11246 req_avail=yes
11247 if test "$aros_kernel_ranlib" = ""; then
11248 req_avail=no
11250 if test "$aros_kernel_ranlib" = "no"; then
11251 req_avail=no
11253 if test "$req_avail" = "no"; then
11254 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11256 if test "x$aros_kernel_nm" = "x"; then
11257 aros_kernel_nm=$aros_host_nm
11258 if test "x$aros_kernel_nm" = "x"; then
11259 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11263 if test "$aros_kernel_nm" = ""; then
11264 if test "$cross_compiling" = "yes" ; then
11265 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11266 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 case $aros_kernel_nm in
11273 [\\/]* | ?:[\\/]*)
11274 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11288 done
11289 done
11290 IFS=$as_save_IFS
11293 esac
11295 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11296 if test -n "$aros_kernel_nm"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11298 $as_echo "$aros_kernel_nm" >&6; }
11299 else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11305 else
11307 if test "" = ""; then
11308 ac_tool_nm=nm
11309 else
11310 ac_tool_nm=
11312 if test "$GCC" = "yes"; then
11313 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11314 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11315 set dummy `basename $aros_gcc_nm`; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 case $aros_kernel_nm in
11322 [\\/]* | ?:[\\/]*)
11323 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in `dirname $aros_gcc_nm`
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11337 done
11338 done
11339 IFS=$as_save_IFS
11342 esac
11344 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11345 if test -n "$aros_kernel_nm"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11347 $as_echo "$aros_kernel_nm" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11355 if test "$aros_kernel_nm" = ""; then
11356 for ac_prog in $ac_tool_nm
11358 # Extract the first word of "$ac_prog", so it can be a program name with args.
11359 set dummy $ac_prog; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 case $aros_kernel_nm in
11366 [\\/]* | ?:[\\/]*)
11367 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11381 done
11382 done
11383 IFS=$as_save_IFS
11386 esac
11388 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11389 if test -n "$aros_kernel_nm"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11391 $as_echo "$aros_kernel_nm" >&6; }
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11398 test -n "$aros_kernel_nm" && break
11399 done
11404 else
11405 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11406 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11407 set dummy $aros_kernel_nm; ac_word=$2
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409 $as_echo_n "checking for $ac_word... " >&6; }
11410 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 case $aros_kernel_nm in
11414 [\\/]* | ?:[\\/]*)
11415 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419 for as_dir in $PATH
11421 IFS=$as_save_IFS
11422 test -z "$as_dir" && as_dir=.
11423 for ac_exec_ext in '' $ac_executable_extensions; do
11424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11425 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 break 2
11429 done
11430 done
11431 IFS=$as_save_IFS
11434 esac
11436 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11437 if test -n "$aros_kernel_nm"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11439 $as_echo "$aros_kernel_nm" >&6; }
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11446 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11449 req_avail=yes
11450 if test "$aros_kernel_nm" = ""; then
11451 req_avail=no
11453 if test "$aros_kernel_nm" = "no"; then
11454 req_avail=no
11456 if test "$req_avail" = "no"; then
11457 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11460 if test "$aros_kernel_strip" = ""; then
11461 if test "$cross_compiling" = "yes" ; then
11462 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11463 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 case $aros_kernel_strip in
11470 [\\/]* | ?:[\\/]*)
11471 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11485 done
11486 done
11487 IFS=$as_save_IFS
11490 esac
11492 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11493 if test -n "$aros_kernel_strip"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11495 $as_echo "$aros_kernel_strip" >&6; }
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11502 else
11504 if test "" = ""; then
11505 ac_tool_strip=strip
11506 else
11507 ac_tool_strip=
11509 if test "$GCC" = "yes"; then
11510 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11511 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11512 set dummy `basename $aros_gcc_strip`; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 case $aros_kernel_strip in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in `dirname $aros_gcc_strip`
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11534 done
11535 done
11536 IFS=$as_save_IFS
11539 esac
11541 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11542 if test -n "$aros_kernel_strip"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11544 $as_echo "$aros_kernel_strip" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11552 if test "$aros_kernel_strip" = ""; then
11553 for ac_prog in $ac_tool_strip
11555 # Extract the first word of "$ac_prog", so it can be a program name with args.
11556 set dummy $ac_prog; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 case $aros_kernel_strip in
11563 [\\/]* | ?:[\\/]*)
11564 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11578 done
11579 done
11580 IFS=$as_save_IFS
11583 esac
11585 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11586 if test -n "$aros_kernel_strip"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11588 $as_echo "$aros_kernel_strip" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11595 test -n "$aros_kernel_strip" && break
11596 done
11601 else
11602 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11603 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11604 set dummy $aros_kernel_strip; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 case $aros_kernel_strip in
11611 [\\/]* | ?:[\\/]*)
11612 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11618 IFS=$as_save_IFS
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11622 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 break 2
11626 done
11627 done
11628 IFS=$as_save_IFS
11631 esac
11633 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11634 if test -n "$aros_kernel_strip"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11636 $as_echo "$aros_kernel_strip" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11643 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11646 req_avail=yes
11647 if test "$aros_kernel_strip" = ""; then
11648 req_avail=no
11650 if test "$aros_kernel_strip" = "no"; then
11651 req_avail=no
11653 if test "$req_avail" = "no"; then
11654 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11657 # Objcopy and objdump are not required for the kernel
11658 # toolchain on many architectures.
11659 # So we'll look for them, but not make them strictly required.
11660 if test "x$aros_kernel_objcopy" = "x"; then
11661 aros_kernel_objcopy=$aros_host_objcopy
11662 if test "x$aros_kernel_objcopy" = "x"; then
11663 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11667 if test "$aros_kernel_objcopy" = ""; then
11668 if test "$cross_compiling" = "yes" ; then
11669 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11670 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 case $aros_kernel_objcopy in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11692 done
11693 done
11694 IFS=$as_save_IFS
11697 esac
11699 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11700 if test -n "$aros_kernel_objcopy"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11702 $as_echo "$aros_kernel_objcopy" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11709 else
11711 if test "" = ""; then
11712 ac_tool_objcopy=objcopy
11713 else
11714 ac_tool_objcopy=
11716 if test "$GCC" = "yes"; then
11717 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11718 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11719 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 case $aros_kernel_objcopy in
11726 [\\/]* | ?:[\\/]*)
11727 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in `dirname $aros_gcc_objcopy`
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11746 esac
11748 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11749 if test -n "$aros_kernel_objcopy"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11751 $as_echo "$aros_kernel_objcopy" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11759 if test "$aros_kernel_objcopy" = ""; then
11760 for ac_prog in $ac_tool_objcopy
11762 # Extract the first word of "$ac_prog", so it can be a program name with args.
11763 set dummy $ac_prog; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 case $aros_kernel_objcopy in
11770 [\\/]* | ?:[\\/]*)
11771 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11785 done
11786 done
11787 IFS=$as_save_IFS
11790 esac
11792 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11793 if test -n "$aros_kernel_objcopy"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11795 $as_echo "$aros_kernel_objcopy" >&6; }
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11802 test -n "$aros_kernel_objcopy" && break
11803 done
11808 else
11809 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11810 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11811 set dummy $aros_kernel_objcopy; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 case $aros_kernel_objcopy in
11818 [\\/]* | ?:[\\/]*)
11819 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11833 done
11834 done
11835 IFS=$as_save_IFS
11838 esac
11840 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11841 if test -n "$aros_kernel_objcopy"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11843 $as_echo "$aros_kernel_objcopy" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11850 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11853 if test "x$aros_kernel_objdump" = "x"; then
11854 aros_kernel_objdump=$aros_host_objdump
11855 if test "x$aros_kernel_objdump" = "x"; then
11856 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
11860 if test "$aros_kernel_objdump" = ""; then
11861 if test "$cross_compiling" = "yes" ; then
11862 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11863 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 case $aros_kernel_objdump in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11887 IFS=$as_save_IFS
11890 esac
11892 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11893 if test -n "$aros_kernel_objdump"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11895 $as_echo "$aros_kernel_objdump" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11902 else
11904 if test "" = ""; then
11905 ac_tool_objdump=objdump
11906 else
11907 ac_tool_objdump=
11909 if test "$GCC" = "yes"; then
11910 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
11911 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11912 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 case $aros_kernel_objdump in
11919 [\\/]* | ?:[\\/]*)
11920 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in `dirname $aros_gcc_objdump`
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11934 done
11935 done
11936 IFS=$as_save_IFS
11939 esac
11941 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11942 if test -n "$aros_kernel_objdump"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11944 $as_echo "$aros_kernel_objdump" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11952 if test "$aros_kernel_objdump" = ""; then
11953 for ac_prog in $ac_tool_objdump
11955 # Extract the first word of "$ac_prog", so it can be a program name with args.
11956 set dummy $ac_prog; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 case $aros_kernel_objdump in
11963 [\\/]* | ?:[\\/]*)
11964 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11970 IFS=$as_save_IFS
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976 break 2
11978 done
11979 done
11980 IFS=$as_save_IFS
11983 esac
11985 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11986 if test -n "$aros_kernel_objdump"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11988 $as_echo "$aros_kernel_objdump" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11995 test -n "$aros_kernel_objdump" && break
11996 done
12001 else
12002 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12003 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12004 set dummy $aros_kernel_objdump; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 case $aros_kernel_objdump in
12011 [\\/]* | ?:[\\/]*)
12012 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12022 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12026 done
12027 done
12028 IFS=$as_save_IFS
12031 esac
12033 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12034 if test -n "$aros_kernel_objdump"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12036 $as_echo "$aros_kernel_objdump" >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12043 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12046 if test "x${crosstools}" != "xyes" ; then
12047 req_avail=yes
12048 if test "$aros_kernel_objcopy" = ""; then
12049 req_avail=no
12051 if test "$aros_kernel_objcopy" = "no"; then
12052 req_avail=no
12054 if test "$req_avail" = "no"; then
12055 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12057 req_avail=yes
12058 if test "$aros_kernel_objdump" = ""; then
12059 req_avail=no
12061 if test "$aros_kernel_objdump" = "no"; then
12062 req_avail=no
12064 if test "$req_avail" = "no"; then
12065 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12072 $as_echo_n "checking which target tools to use... " >&6; }
12073 if test "$aros_target_toolchain" = "yes"; then
12074 if test "$aros_toolchain" = "llvm" ; then
12075 msg_result="llvm"
12076 else
12077 msg_result=$target_tool_prefix
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12080 $as_echo "$msg_result" >&6; }
12081 # We are building AROS crosstools
12082 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12083 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12084 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12085 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
12086 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12087 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12088 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12089 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12090 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12091 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12092 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12093 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12094 else
12095 # Determine whether AROS or ELF tools should be used
12096 if test "$aros_tool_prefix" = "none"; then
12097 aros_tool_prefix="${elf_tool_prefix}"
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12101 $as_echo "$aros_tool_prefix" >&6; }
12102 # We are *not* building AROS crosstools - use the AROS or ELF tools
12104 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
12105 if test "$cross_compiling" = "yes" ; then
12106 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12107 set dummy ${target_tool_prefix}cpp; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if ${ac_cv_path_orig_target_cpp+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 case $orig_target_cpp in
12114 [\\/]* | ?:[\\/]*)
12115 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12125 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12127 break 2
12129 done
12130 done
12131 IFS=$as_save_IFS
12134 esac
12136 orig_target_cpp=$ac_cv_path_orig_target_cpp
12137 if test -n "$orig_target_cpp"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12139 $as_echo "$orig_target_cpp" >&6; }
12140 else
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12146 else
12148 if test "" = ""; then
12149 ac_tool_cpp=cpp
12150 else
12151 ac_tool_cpp=
12153 if test "$GCC" = "yes"; then
12154 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12155 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12156 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12158 $as_echo_n "checking for $ac_word... " >&6; }
12159 if ${ac_cv_path_orig_target_cpp+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 case $orig_target_cpp in
12163 [\\/]* | ?:[\\/]*)
12164 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in `dirname $aros_gcc_cpp`
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12178 done
12179 done
12180 IFS=$as_save_IFS
12183 esac
12185 orig_target_cpp=$ac_cv_path_orig_target_cpp
12186 if test -n "$orig_target_cpp"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12188 $as_echo "$orig_target_cpp" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12196 if test "$orig_target_cpp" = ""; then
12197 for ac_prog in $ac_tool_cpp
12199 # Extract the first word of "$ac_prog", so it can be a program name with args.
12200 set dummy $ac_prog; ac_word=$2
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202 $as_echo_n "checking for $ac_word... " >&6; }
12203 if ${ac_cv_path_orig_target_cpp+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 case $orig_target_cpp in
12207 [\\/]* | ?:[\\/]*)
12208 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12222 done
12223 done
12224 IFS=$as_save_IFS
12227 esac
12229 orig_target_cpp=$ac_cv_path_orig_target_cpp
12230 if test -n "$orig_target_cpp"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12232 $as_echo "$orig_target_cpp" >&6; }
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12239 test -n "$orig_target_cpp" && break
12240 done
12245 else
12246 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
12247 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
12248 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250 $as_echo_n "checking for $ac_word... " >&6; }
12251 if ${ac_cv_path_orig_target_cpp+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 case $orig_target_cpp in
12255 [\\/]* | ?:[\\/]*)
12256 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12270 done
12271 done
12272 IFS=$as_save_IFS
12275 esac
12277 orig_target_cpp=$ac_cv_path_orig_target_cpp
12278 if test -n "$orig_target_cpp"; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12280 $as_echo "$orig_target_cpp" >&6; }
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12287 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12290 req_avail=yes
12291 if test "$orig_target_cpp" = ""; then
12292 req_avail=no
12294 if test "$orig_target_cpp" = "no"; then
12295 req_avail=no
12297 if test "$req_avail" = "no"; then
12298 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12301 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12302 if test "$cross_compiling" = "yes" ; then
12303 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12304 set dummy ${target_tool_prefix}gcc; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_orig_target_cc+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 case $orig_target_cc in
12311 [\\/]* | ?:[\\/]*)
12312 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12326 done
12327 done
12328 IFS=$as_save_IFS
12331 esac
12333 orig_target_cc=$ac_cv_path_orig_target_cc
12334 if test -n "$orig_target_cc"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12336 $as_echo "$orig_target_cc" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12343 else
12345 if test "" = ""; then
12346 ac_tool_gcc=gcc
12347 else
12348 ac_tool_gcc=
12350 if test "$GCC" = "yes"; then
12351 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12352 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12353 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_path_orig_target_cc+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 case $orig_target_cc in
12360 [\\/]* | ?:[\\/]*)
12361 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in `dirname $aros_gcc_gcc`
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12375 done
12376 done
12377 IFS=$as_save_IFS
12380 esac
12382 orig_target_cc=$ac_cv_path_orig_target_cc
12383 if test -n "$orig_target_cc"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12385 $as_echo "$orig_target_cc" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12393 if test "$orig_target_cc" = ""; then
12394 for ac_prog in $ac_tool_gcc
12396 # Extract the first word of "$ac_prog", so it can be a program name with args.
12397 set dummy $ac_prog; ac_word=$2
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399 $as_echo_n "checking for $ac_word... " >&6; }
12400 if ${ac_cv_path_orig_target_cc+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 case $orig_target_cc in
12404 [\\/]* | ?:[\\/]*)
12405 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12415 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12419 done
12420 done
12421 IFS=$as_save_IFS
12424 esac
12426 orig_target_cc=$ac_cv_path_orig_target_cc
12427 if test -n "$orig_target_cc"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12429 $as_echo "$orig_target_cc" >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12436 test -n "$orig_target_cc" && break
12437 done
12442 else
12443 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12444 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12445 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_path_orig_target_cc+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 case $orig_target_cc in
12452 [\\/]* | ?:[\\/]*)
12453 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12467 done
12468 done
12469 IFS=$as_save_IFS
12472 esac
12474 orig_target_cc=$ac_cv_path_orig_target_cc
12475 if test -n "$orig_target_cc"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12477 $as_echo "$orig_target_cc" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12484 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12487 req_avail=yes
12488 if test "$orig_target_cc" = ""; then
12489 req_avail=no
12491 if test "$orig_target_cc" = "no"; then
12492 req_avail=no
12494 if test "$req_avail" = "no"; then
12495 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12498 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12499 if test "$cross_compiling" = "yes" ; then
12500 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12501 set dummy ${target_tool_prefix}g++; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_path_orig_target_cxx+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 case $orig_target_cxx in
12508 [\\/]* | ?:[\\/]*)
12509 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in $PATH
12515 IFS=$as_save_IFS
12516 test -z "$as_dir" && as_dir=.
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 break 2
12523 done
12524 done
12525 IFS=$as_save_IFS
12528 esac
12530 orig_target_cxx=$ac_cv_path_orig_target_cxx
12531 if test -n "$orig_target_cxx"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12533 $as_echo "$orig_target_cxx" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12540 else
12542 if test "" = ""; then
12543 ac_tool_g++=g++
12544 else
12545 ac_tool_g++=
12547 if test "$GCC" = "yes"; then
12548 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12549 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12550 set dummy `basename $aros_gcc_g++`; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_path_orig_target_cxx+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 case $orig_target_cxx in
12557 [\\/]* | ?:[\\/]*)
12558 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in `dirname $aros_gcc_g++`
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12568 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12572 done
12573 done
12574 IFS=$as_save_IFS
12577 esac
12579 orig_target_cxx=$ac_cv_path_orig_target_cxx
12580 if test -n "$orig_target_cxx"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12582 $as_echo "$orig_target_cxx" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 if test "$orig_target_cxx" = ""; then
12591 for ac_prog in $ac_tool_g++
12593 # Extract the first word of "$ac_prog", so it can be a program name with args.
12594 set dummy $ac_prog; ac_word=$2
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if ${ac_cv_path_orig_target_cxx+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 case $orig_target_cxx in
12601 [\\/]* | ?:[\\/]*)
12602 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12616 done
12617 done
12618 IFS=$as_save_IFS
12621 esac
12623 orig_target_cxx=$ac_cv_path_orig_target_cxx
12624 if test -n "$orig_target_cxx"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12626 $as_echo "$orig_target_cxx" >&6; }
12627 else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12633 test -n "$orig_target_cxx" && break
12634 done
12639 else
12640 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12641 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12642 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_path_orig_target_cxx+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 case $orig_target_cxx in
12649 [\\/]* | ?:[\\/]*)
12650 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12669 esac
12671 orig_target_cxx=$ac_cv_path_orig_target_cxx
12672 if test -n "$orig_target_cxx"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12674 $as_echo "$orig_target_cxx" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12684 req_avail=yes
12685 if test "$orig_target_cxx" = ""; then
12686 req_avail=no
12688 if test "$orig_target_cxx" = "no"; then
12689 req_avail=no
12691 if test "$req_avail" = "no"; then
12692 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12695 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12696 if test "$cross_compiling" = "yes" ; then
12697 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12698 set dummy ${target_tool_prefix}gcc; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if ${ac_cv_path_orig_target_ld+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 case $orig_target_ld in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12720 done
12721 done
12722 IFS=$as_save_IFS
12725 esac
12727 orig_target_ld=$ac_cv_path_orig_target_ld
12728 if test -n "$orig_target_ld"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12730 $as_echo "$orig_target_ld" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12737 else
12739 if test "" = ""; then
12740 ac_tool_gcc=gcc
12741 else
12742 ac_tool_gcc=
12744 if test "$GCC" = "yes"; then
12745 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12746 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12747 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if ${ac_cv_path_orig_target_ld+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 case $orig_target_ld in
12754 [\\/]* | ?:[\\/]*)
12755 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in `dirname $aros_gcc_gcc`
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12769 done
12770 done
12771 IFS=$as_save_IFS
12774 esac
12776 orig_target_ld=$ac_cv_path_orig_target_ld
12777 if test -n "$orig_target_ld"; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12779 $as_echo "$orig_target_ld" >&6; }
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12787 if test "$orig_target_ld" = ""; then
12788 for ac_prog in $ac_tool_gcc
12790 # Extract the first word of "$ac_prog", so it can be a program name with args.
12791 set dummy $ac_prog; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if ${ac_cv_path_orig_target_ld+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 case $orig_target_ld in
12798 [\\/]* | ?:[\\/]*)
12799 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12809 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12813 done
12814 done
12815 IFS=$as_save_IFS
12818 esac
12820 orig_target_ld=$ac_cv_path_orig_target_ld
12821 if test -n "$orig_target_ld"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12823 $as_echo "$orig_target_ld" >&6; }
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12830 test -n "$orig_target_ld" && break
12831 done
12836 else
12837 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12838 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12839 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_path_orig_target_ld+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 case $orig_target_ld in
12846 [\\/]* | ?:[\\/]*)
12847 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12861 done
12862 done
12863 IFS=$as_save_IFS
12866 esac
12868 orig_target_ld=$ac_cv_path_orig_target_ld
12869 if test -n "$orig_target_ld"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12871 $as_echo "$orig_target_ld" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12878 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12881 req_avail=yes
12882 if test "$orig_target_ld" = ""; then
12883 req_avail=no
12885 if test "$orig_target_ld" = "no"; then
12886 req_avail=no
12888 if test "$req_avail" = "no"; then
12889 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12892 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12893 if test "$cross_compiling" = "yes" ; then
12894 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12895 set dummy ${target_tool_prefix}as; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if ${ac_cv_path_orig_target_as+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 case $orig_target_as in
12902 [\\/]* | ?:[\\/]*)
12903 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12917 done
12918 done
12919 IFS=$as_save_IFS
12922 esac
12924 orig_target_as=$ac_cv_path_orig_target_as
12925 if test -n "$orig_target_as"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12927 $as_echo "$orig_target_as" >&6; }
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12934 else
12936 if test "" = ""; then
12937 ac_tool_as=as
12938 else
12939 ac_tool_as=
12941 if test "$GCC" = "yes"; then
12942 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
12943 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12944 set dummy `basename $aros_gcc_as`; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_path_orig_target_as+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 case $orig_target_as in
12951 [\\/]* | ?:[\\/]*)
12952 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in `dirname $aros_gcc_as`
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12966 done
12967 done
12968 IFS=$as_save_IFS
12971 esac
12973 orig_target_as=$ac_cv_path_orig_target_as
12974 if test -n "$orig_target_as"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12976 $as_echo "$orig_target_as" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12984 if test "$orig_target_as" = ""; then
12985 for ac_prog in $ac_tool_as
12987 # Extract the first word of "$ac_prog", so it can be a program name with args.
12988 set dummy $ac_prog; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if ${ac_cv_path_orig_target_as+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 case $orig_target_as in
12995 [\\/]* | ?:[\\/]*)
12996 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13006 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 break 2
13010 done
13011 done
13012 IFS=$as_save_IFS
13015 esac
13017 orig_target_as=$ac_cv_path_orig_target_as
13018 if test -n "$orig_target_as"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13020 $as_echo "$orig_target_as" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13027 test -n "$orig_target_as" && break
13028 done
13033 else
13034 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13035 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13036 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_path_orig_target_as+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 case $orig_target_as in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13063 esac
13065 orig_target_as=$ac_cv_path_orig_target_as
13066 if test -n "$orig_target_as"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13068 $as_echo "$orig_target_as" >&6; }
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13075 orig_target_as="$orig_target_as $ac_tool_optarg"
13078 req_avail=yes
13079 if test "$orig_target_as" = ""; then
13080 req_avail=no
13082 if test "$orig_target_as" = "no"; then
13083 req_avail=no
13085 if test "$req_avail" = "no"; then
13086 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13089 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13090 if test "$cross_compiling" = "yes" ; then
13091 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13092 set dummy ${target_tool_prefix}ar; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if ${ac_cv_path_orig_target_ar+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 case $orig_target_ar in
13099 [\\/]* | ?:[\\/]*)
13100 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13110 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13114 done
13115 done
13116 IFS=$as_save_IFS
13119 esac
13121 orig_target_ar=$ac_cv_path_orig_target_ar
13122 if test -n "$orig_target_ar"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13124 $as_echo "$orig_target_ar" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13131 else
13133 if test "" = ""; then
13134 ac_tool_ar=ar
13135 else
13136 ac_tool_ar=
13138 if test "$GCC" = "yes"; then
13139 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13140 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13141 set dummy `basename $aros_gcc_ar`; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 $as_echo_n "checking for $ac_word... " >&6; }
13144 if ${ac_cv_path_orig_target_ar+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 case $orig_target_ar in
13148 [\\/]* | ?:[\\/]*)
13149 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in `dirname $aros_gcc_ar`
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13163 done
13164 done
13165 IFS=$as_save_IFS
13168 esac
13170 orig_target_ar=$ac_cv_path_orig_target_ar
13171 if test -n "$orig_target_ar"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13173 $as_echo "$orig_target_ar" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13181 if test "$orig_target_ar" = ""; then
13182 for ac_prog in $ac_tool_ar
13184 # Extract the first word of "$ac_prog", so it can be a program name with args.
13185 set dummy $ac_prog; ac_word=$2
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187 $as_echo_n "checking for $ac_word... " >&6; }
13188 if ${ac_cv_path_orig_target_ar+:} false; then :
13189 $as_echo_n "(cached) " >&6
13190 else
13191 case $orig_target_ar in
13192 [\\/]* | ?:[\\/]*)
13193 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13203 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13207 done
13208 done
13209 IFS=$as_save_IFS
13212 esac
13214 orig_target_ar=$ac_cv_path_orig_target_ar
13215 if test -n "$orig_target_ar"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13217 $as_echo "$orig_target_ar" >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13224 test -n "$orig_target_ar" && break
13225 done
13230 else
13231 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13232 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13233 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_path_orig_target_ar+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 case $orig_target_ar in
13240 [\\/]* | ?:[\\/]*)
13241 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13255 done
13256 done
13257 IFS=$as_save_IFS
13260 esac
13262 orig_target_ar=$ac_cv_path_orig_target_ar
13263 if test -n "$orig_target_ar"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13265 $as_echo "$orig_target_ar" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13272 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13275 req_avail=yes
13276 if test "$orig_target_ar" = ""; then
13277 req_avail=no
13279 if test "$orig_target_ar" = "no"; then
13280 req_avail=no
13282 if test "$req_avail" = "no"; then
13283 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13286 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13287 if test "$cross_compiling" = "yes" ; then
13288 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13289 set dummy ${target_tool_prefix}ar; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 case $orig_target_ranlib in
13296 [\\/]* | ?:[\\/]*)
13297 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
13305 for ac_exec_ext in '' $ac_executable_extensions; do
13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13307 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 break 2
13311 done
13312 done
13313 IFS=$as_save_IFS
13316 esac
13318 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13319 if test -n "$orig_target_ranlib"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13321 $as_echo "$orig_target_ranlib" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13328 else
13330 if test "" = ""; then
13331 ac_tool_ar=ar
13332 else
13333 ac_tool_ar=
13335 if test "$GCC" = "yes"; then
13336 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13337 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13338 set dummy `basename $aros_gcc_ar`; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 case $orig_target_ranlib in
13345 [\\/]* | ?:[\\/]*)
13346 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in `dirname $aros_gcc_ar`
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13360 done
13361 done
13362 IFS=$as_save_IFS
13365 esac
13367 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13368 if test -n "$orig_target_ranlib"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13370 $as_echo "$orig_target_ranlib" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13378 if test "$orig_target_ranlib" = ""; then
13379 for ac_prog in $ac_tool_ar
13381 # Extract the first word of "$ac_prog", so it can be a program name with args.
13382 set dummy $ac_prog; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 case $orig_target_ranlib in
13389 [\\/]* | ?:[\\/]*)
13390 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13404 done
13405 done
13406 IFS=$as_save_IFS
13409 esac
13411 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13412 if test -n "$orig_target_ranlib"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13414 $as_echo "$orig_target_ranlib" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13421 test -n "$orig_target_ranlib" && break
13422 done
13427 else
13428 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13429 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13430 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 case $orig_target_ranlib in
13437 [\\/]* | ?:[\\/]*)
13438 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13452 done
13453 done
13454 IFS=$as_save_IFS
13457 esac
13459 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13460 if test -n "$orig_target_ranlib"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13462 $as_echo "$orig_target_ranlib" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13469 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13472 req_avail=yes
13473 if test "$orig_target_ranlib" = ""; then
13474 req_avail=no
13476 if test "$orig_target_ranlib" = "no"; then
13477 req_avail=no
13479 if test "$req_avail" = "no"; then
13480 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13483 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13484 if test "$cross_compiling" = "yes" ; then
13485 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13486 set dummy ${target_tool_prefix}nm; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_path_orig_target_nm+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 case $orig_target_nm in
13493 [\\/]* | ?:[\\/]*)
13494 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13504 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13508 done
13509 done
13510 IFS=$as_save_IFS
13513 esac
13515 orig_target_nm=$ac_cv_path_orig_target_nm
13516 if test -n "$orig_target_nm"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13518 $as_echo "$orig_target_nm" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13525 else
13527 if test "" = ""; then
13528 ac_tool_nm=nm
13529 else
13530 ac_tool_nm=
13532 if test "$GCC" = "yes"; then
13533 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13534 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13535 set dummy `basename $aros_gcc_nm`; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_path_orig_target_nm+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 case $orig_target_nm in
13542 [\\/]* | ?:[\\/]*)
13543 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in `dirname $aros_gcc_nm`
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13553 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13557 done
13558 done
13559 IFS=$as_save_IFS
13562 esac
13564 orig_target_nm=$ac_cv_path_orig_target_nm
13565 if test -n "$orig_target_nm"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13567 $as_echo "$orig_target_nm" >&6; }
13568 else
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13575 if test "$orig_target_nm" = ""; then
13576 for ac_prog in $ac_tool_nm
13578 # Extract the first word of "$ac_prog", so it can be a program name with args.
13579 set dummy $ac_prog; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if ${ac_cv_path_orig_target_nm+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 case $orig_target_nm in
13586 [\\/]* | ?:[\\/]*)
13587 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13601 done
13602 done
13603 IFS=$as_save_IFS
13606 esac
13608 orig_target_nm=$ac_cv_path_orig_target_nm
13609 if test -n "$orig_target_nm"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13611 $as_echo "$orig_target_nm" >&6; }
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13618 test -n "$orig_target_nm" && break
13619 done
13624 else
13625 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13626 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13627 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_path_orig_target_nm+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 case $orig_target_nm in
13634 [\\/]* | ?:[\\/]*)
13635 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13641 IFS=$as_save_IFS
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13649 done
13650 done
13651 IFS=$as_save_IFS
13654 esac
13656 orig_target_nm=$ac_cv_path_orig_target_nm
13657 if test -n "$orig_target_nm"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13659 $as_echo "$orig_target_nm" >&6; }
13660 else
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13666 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13669 req_avail=yes
13670 if test "$orig_target_nm" = ""; then
13671 req_avail=no
13673 if test "$orig_target_nm" = "no"; then
13674 req_avail=no
13676 if test "$req_avail" = "no"; then
13677 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13680 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13681 if test "$cross_compiling" = "yes" ; then
13682 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13683 set dummy ${target_tool_prefix}strip; ac_word=$2
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13685 $as_echo_n "checking for $ac_word... " >&6; }
13686 if ${ac_cv_path_orig_target_strip+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 case $orig_target_strip in
13690 [\\/]* | ?:[\\/]*)
13691 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $PATH
13697 IFS=$as_save_IFS
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
13700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13701 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13703 break 2
13705 done
13706 done
13707 IFS=$as_save_IFS
13710 esac
13712 orig_target_strip=$ac_cv_path_orig_target_strip
13713 if test -n "$orig_target_strip"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13715 $as_echo "$orig_target_strip" >&6; }
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13722 else
13724 if test "" = ""; then
13725 ac_tool_strip=strip
13726 else
13727 ac_tool_strip=
13729 if test "$GCC" = "yes"; then
13730 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13731 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13732 set dummy `basename $aros_gcc_strip`; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if ${ac_cv_path_orig_target_strip+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 case $orig_target_strip in
13739 [\\/]* | ?:[\\/]*)
13740 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in `dirname $aros_gcc_strip`
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13750 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13754 done
13755 done
13756 IFS=$as_save_IFS
13759 esac
13761 orig_target_strip=$ac_cv_path_orig_target_strip
13762 if test -n "$orig_target_strip"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13764 $as_echo "$orig_target_strip" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13772 if test "$orig_target_strip" = ""; then
13773 for ac_prog in $ac_tool_strip
13775 # Extract the first word of "$ac_prog", so it can be a program name with args.
13776 set dummy $ac_prog; ac_word=$2
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 $as_echo_n "checking for $ac_word... " >&6; }
13779 if ${ac_cv_path_orig_target_strip+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13782 case $orig_target_strip in
13783 [\\/]* | ?:[\\/]*)
13784 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13790 IFS=$as_save_IFS
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13794 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 break 2
13798 done
13799 done
13800 IFS=$as_save_IFS
13803 esac
13805 orig_target_strip=$ac_cv_path_orig_target_strip
13806 if test -n "$orig_target_strip"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13808 $as_echo "$orig_target_strip" >&6; }
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13815 test -n "$orig_target_strip" && break
13816 done
13821 else
13822 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13823 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13824 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if ${ac_cv_path_orig_target_strip+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 case $orig_target_strip in
13831 [\\/]* | ?:[\\/]*)
13832 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13846 done
13847 done
13848 IFS=$as_save_IFS
13851 esac
13853 orig_target_strip=$ac_cv_path_orig_target_strip
13854 if test -n "$orig_target_strip"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13856 $as_echo "$orig_target_strip" >&6; }
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13863 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13866 req_avail=yes
13867 if test "$orig_target_strip" = ""; then
13868 req_avail=no
13870 if test "$orig_target_strip" = "no"; then
13871 req_avail=no
13873 if test "$req_avail" = "no"; then
13874 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13877 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13878 if test "$cross_compiling" = "yes" ; then
13879 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13880 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 case $orig_target_objcopy in
13887 [\\/]* | ?:[\\/]*)
13888 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892 for as_dir in $PATH
13894 IFS=$as_save_IFS
13895 test -z "$as_dir" && as_dir=.
13896 for ac_exec_ext in '' $ac_executable_extensions; do
13897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13898 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 break 2
13902 done
13903 done
13904 IFS=$as_save_IFS
13907 esac
13909 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13910 if test -n "$orig_target_objcopy"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13912 $as_echo "$orig_target_objcopy" >&6; }
13913 else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915 $as_echo "no" >&6; }
13919 else
13921 if test "" = ""; then
13922 ac_tool_objcopy=objcopy
13923 else
13924 ac_tool_objcopy=
13926 if test "$GCC" = "yes"; then
13927 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
13928 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13929 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 case $orig_target_objcopy in
13936 [\\/]* | ?:[\\/]*)
13937 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in `dirname $aros_gcc_objcopy`
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13951 done
13952 done
13953 IFS=$as_save_IFS
13956 esac
13958 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13959 if test -n "$orig_target_objcopy"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13961 $as_echo "$orig_target_objcopy" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13969 if test "$orig_target_objcopy" = ""; then
13970 for ac_prog in $ac_tool_objcopy
13972 # Extract the first word of "$ac_prog", so it can be a program name with args.
13973 set dummy $ac_prog; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975 $as_echo_n "checking for $ac_word... " >&6; }
13976 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 case $orig_target_objcopy in
13980 [\\/]* | ?:[\\/]*)
13981 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13995 done
13996 done
13997 IFS=$as_save_IFS
14000 esac
14002 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14003 if test -n "$orig_target_objcopy"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14005 $as_echo "$orig_target_objcopy" >&6; }
14006 else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14012 test -n "$orig_target_objcopy" && break
14013 done
14018 else
14019 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14020 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14021 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 case $orig_target_objcopy in
14028 [\\/]* | ?:[\\/]*)
14029 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14035 IFS=$as_save_IFS
14036 test -z "$as_dir" && as_dir=.
14037 for ac_exec_ext in '' $ac_executable_extensions; do
14038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14039 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041 break 2
14043 done
14044 done
14045 IFS=$as_save_IFS
14048 esac
14050 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14051 if test -n "$orig_target_objcopy"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14053 $as_echo "$orig_target_objcopy" >&6; }
14054 else
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14060 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14063 req_avail=yes
14064 if test "$orig_target_objcopy" = ""; then
14065 req_avail=no
14067 if test "$orig_target_objcopy" = "no"; then
14068 req_avail=no
14070 if test "$req_avail" = "no"; then
14071 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14074 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14075 if test "$cross_compiling" = "yes" ; then
14076 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14077 set dummy ${target_tool_prefix}objdump; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if ${ac_cv_path_orig_target_objdump+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 case $orig_target_objdump in
14084 [\\/]* | ?:[\\/]*)
14085 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14099 done
14100 done
14101 IFS=$as_save_IFS
14104 esac
14106 orig_target_objdump=$ac_cv_path_orig_target_objdump
14107 if test -n "$orig_target_objdump"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14109 $as_echo "$orig_target_objdump" >&6; }
14110 else
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14116 else
14118 if test "" = ""; then
14119 ac_tool_objdump=objdump
14120 else
14121 ac_tool_objdump=
14123 if test "$GCC" = "yes"; then
14124 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14125 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14126 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if ${ac_cv_path_orig_target_objdump+:} false; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 case $orig_target_objdump in
14133 [\\/]* | ?:[\\/]*)
14134 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in `dirname $aros_gcc_objdump`
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14148 done
14149 done
14150 IFS=$as_save_IFS
14153 esac
14155 orig_target_objdump=$ac_cv_path_orig_target_objdump
14156 if test -n "$orig_target_objdump"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14158 $as_echo "$orig_target_objdump" >&6; }
14159 else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14166 if test "$orig_target_objdump" = ""; then
14167 for ac_prog in $ac_tool_objdump
14169 # Extract the first word of "$ac_prog", so it can be a program name with args.
14170 set dummy $ac_prog; ac_word=$2
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14172 $as_echo_n "checking for $ac_word... " >&6; }
14173 if ${ac_cv_path_orig_target_objdump+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 case $orig_target_objdump in
14177 [\\/]* | ?:[\\/]*)
14178 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14184 IFS=$as_save_IFS
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14188 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 break 2
14192 done
14193 done
14194 IFS=$as_save_IFS
14197 esac
14199 orig_target_objdump=$ac_cv_path_orig_target_objdump
14200 if test -n "$orig_target_objdump"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14202 $as_echo "$orig_target_objdump" >&6; }
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14209 test -n "$orig_target_objdump" && break
14210 done
14215 else
14216 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14217 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14218 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_path_orig_target_objdump+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 case $orig_target_objdump in
14225 [\\/]* | ?:[\\/]*)
14226 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $PATH
14232 IFS=$as_save_IFS
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 break 2
14240 done
14241 done
14242 IFS=$as_save_IFS
14245 esac
14247 orig_target_objdump=$ac_cv_path_orig_target_objdump
14248 if test -n "$orig_target_objdump"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14250 $as_echo "$orig_target_objdump" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14257 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14260 req_avail=yes
14261 if test "$orig_target_objdump" = ""; then
14262 req_avail=no
14264 if test "$orig_target_objdump" = "no"; then
14265 req_avail=no
14267 if test "$req_avail" = "no"; then
14268 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14272 if test "$kernel_tool_prefix" = "none" ; then
14273 # No kernel tools specified
14274 # Assume target tools == kernel tools with ELF wrapper
14275 aros_kernel_cc=$orig_target_cc
14276 aros_kernel_cxx=$orig_target_cxx
14277 aros_kernel_cpp=$orig_target_cpp
14278 aros_kernel_ld=$orig_target_ld
14279 aros_kernel_as=$orig_target_as
14280 aros_kernel_ar=$orig_target_ar
14281 aros_kernel_ranlib=$orig_target_ranlib
14282 aros_kernel_nm=$orig_target_nm
14283 aros_kernel_strip=$orig_target_strip
14284 aros_kernel_objcopy=$orig_target_objcopy
14285 aros_kernel_objdump=$orig_target_objdump
14286 use_kernel_cc_wrapper=yes
14289 # At this point, all aros_kernel_* and aros_target_*
14290 # tools should be set up correctly
14292 CC="$aros_kernel_cc $kernel_tool_flags"
14293 CPP="$aros_kernel_cpp"
14295 #-----------------------------------------------------------------------------
14297 # Find all the tools we need to compile. This could be cross-compiling
14298 # though! If that is the case we use the GNU form of the target and
14299 # simply add this to the front of the binary name. This is rather simple,
14300 # but it should work under most circumstances.
14302 # The default tools are to use the same as the host, but only if the
14303 # host and target CPU are the same. With GCC this is normally enough.
14306 aros_cc_pre=""
14307 aros_shared_ld="$aros_host_ld"
14309 aros_target_mkdep="$aros_host_mkdep"
14311 # The default tools executables to be linked to.
14312 if test "$rescomp" != ""; then
14313 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14314 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 case $aros_kernel_rescomp in
14321 [\\/]* | ?:[\\/]*)
14322 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326 for as_dir in $PATH
14328 IFS=$as_save_IFS
14329 test -z "$as_dir" && as_dir=.
14330 for ac_exec_ext in '' $ac_executable_extensions; do
14331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14332 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14334 break 2
14336 done
14337 done
14338 IFS=$as_save_IFS
14341 esac
14343 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14344 if test -n "$aros_kernel_rescomp"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14346 $as_echo "$aros_kernel_rescomp" >&6; }
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14353 req_avail=yes
14354 if test "$aros_kernel_rescomp" = ""; then
14355 req_avail=no
14357 if test "$aros_kernel_rescomp" = "no"; then
14358 req_avail=no
14360 if test "$req_avail" = "no"; then
14361 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14365 # Set up the sources for the symlink farm
14366 if test "$crosstools" = "yes"; then
14367 crosstools_target=tools-crosstools
14370 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14371 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14373 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14374 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14375 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14376 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14377 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14378 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14379 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14381 # aros_cc_pre is a variable that is added to the front of the compiler name
14382 # in the generated aros-gcc shell script. We need this to enable the cache
14383 # to work across cleaned builds. Also, support DISTCC using the correct
14384 # environment variable.
14387 if test "x${DISTCC}" != "x" ; then
14388 if test "x${CCACHE}" != "x" ; then
14389 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14390 else
14391 aros_cc_pre="${DISTCC} "
14393 else
14394 if test "x${CCACHE}" != "x" ; then
14395 aros_cc_pre="${CCACHE} "
14399 aros_target_nostdinc_cflags=-nostdinc
14401 aros_target_nostartup_ldflags=-nostartfiles
14403 aros_target_nix_ldflags=-nix
14405 aros_target_detach_ldflags=-detach
14407 aros_target_nostdlib_ldflags=-nostdlib
14410 aros_target_cc_path=
14412 # Target tools
14414 if test "$aros_target_toolchain" != "yes"; then
14415 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14416 if test "$GCC" = "yes"; then
14417 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14419 else
14420 # We do not know which c compiler version we are going to build and what we need to know
14421 # here is different for different versions so this will be set later during the
14422 # build of crosstools.
14423 if test "$aros_toolchain" = "gnu" ; then
14424 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14425 elif test "$aros_toolchain" = "llvm" ; then
14426 prefix="$AROS_CROSSTOOLSDIR/bin/"
14428 aros_target_cc_path=@aros_target_cc_path@
14430 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
14431 aros_target_cc="${prefix}${toolchain_c_compiler}"
14432 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14433 aros_target_as="${prefix}${toolchain_as}"
14434 if test "${use_ld_wrapper}" = "yes"; then
14435 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14436 else
14437 aros_target_ld="${prefix}${toolchain_ld}"
14439 aros_toolchain_ld="${prefix}${toolchain_ld}"
14441 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14442 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14443 aros_target_objdump="${prefix}${toolchain_objdump}"
14444 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14445 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14446 aros_target_strip="${prefix}${toolchain_strip}"
14447 aros_plain_nm="${prefix}${toolchain_nm}"
14448 aros_plain_ar="${prefix}${toolchain_ar}"
14450 # Check whether --enable-includes was given.
14451 if test "${enable_includes+set}" = set; then :
14452 enableval=$enable_includes; aros_target_incl=$enable_includes
14453 else
14454 aros_target_incl=no
14458 if test "x$aros_target_incl" = "xno"; then
14459 if test "x$test_kernel_cc" != "xno"; then
14460 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14461 else
14462 aros_target_incl=
14466 if test "x$aros_kernel_includes" = "x"; then
14467 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14468 if test "x$aros_target_incl" != "x"; then
14469 aros_kernel_includes="-isystem $aros_target_incl"
14474 if test "x$test_kernel_cc" != "xno"; then
14475 if test "$aros_kernel_includes" != "" ; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14477 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14478 if test "$aros_kernel_cc_includes" = "" ; then
14479 # Try to guess where the directory is.
14480 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14481 if test -d $aros_kernel_cc_includes; then
14482 # Check if there is also an include-fixed directory and add it
14483 # to kernel compiler's include path as it may contain some of
14484 # the headers we need.
14485 if test -d "$aros_kernel_cc_includes"-fixed; then
14486 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14488 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14489 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14490 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14492 else
14493 # The directory doesn't exist, we need to do some more work.
14494 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14496 # These are the headers we're looking for.
14497 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14498 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14499 zutil.h stdint.h"
14501 dirs=
14502 for h in $headers; do
14503 # Which other headers are needed by each of the above?
14504 deps=$(echo "#include <$h>" | \
14505 $aros_kernel_cc -E -M - 2>/dev/null | \
14506 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14508 # Copy all the needed headers to a directory beneath gendir.
14509 for d in $deps; do
14510 h=$(basename $d)
14511 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14512 sed -n "s,^.*/include\(/.*\),\1,p")
14513 ! test -d $dir && mkdir -p $dir
14514 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14515 done
14516 done
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14520 $as_echo "$aros_kernel_cc_includes" >&6; }
14521 # Adding -nostdinc to kernel includes as they are always used together.
14522 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14526 if test "$crosstools" != "yes"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14528 $as_echo_n "checking for the target compiler's include path... " >&6; }
14529 if test "$aros_target_cc_includes" = "" ; then
14530 #try to guess where the directory is
14531 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14532 if ! test -d $aros_target_cc_includes; then
14533 #the directory doesn't exist, we need to do some more work
14534 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14536 #these are the headers we're looking for
14537 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14538 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14539 zutil.h"
14541 dirs=
14542 for h in $headers; do
14543 #which other headers each of the above headers needs?
14544 deps=$(echo "#include <$h>" | \
14545 $orig_target_cc -E -M - 2>/dev/null | \
14546 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14548 #copy all the needed headers to a directory beneath gendir
14549 for d in $deps; do
14550 h=$(basename $d)
14551 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14552 sed -n "s,^.*/include\(/.*\),\1,p")
14553 ! test -d $dir && mkdir -p $dir
14554 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14555 done
14556 done
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14560 $as_echo "$aros_target_cc_includes" >&6; }
14561 else
14562 # We do not know which c compiler version we are going to build and what we need to know
14563 # here is different for different versions so this will be set later during the
14564 # build of crosstools.
14565 aros_target_cc_includes=@aros_target_cc_includes@
14569 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14570 # On GCC >= 4.0 -iquote should be used
14573 save_cc="$CC"
14574 save_cflags="$CFLAGS"
14575 if test "x$test_kernel_cc" != "xno"; then
14576 CFLAGS="-iquote."
14577 kernel_cflags_iquote=$host_cflags_iquote
14578 kernel_cflags_iquote_end=$host_cflags_iquote_end
14579 if test "x-$cross_compiling" = "x-yes"; then
14580 CC="$aros_kernel_cc"
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14582 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14583 if test "x-$crosstools" != "x-yes"; then
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14588 main ()
14592 return 0;
14594 _ACEOF
14595 if ac_fn_c_try_compile "$LINENO"; then :
14596 use_no_stack_protector="yes"
14597 else
14598 use_no_stack_protector="no"
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 else
14602 # we do know it is supported for the smallest version of gcc we are going to build
14603 # we assume it's also supported by later versions
14604 use_no_stack_protector=yes
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14607 $as_echo "$use_no_stack_protector" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14609 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14610 if test "x-$crosstools" != "x-yes"; then
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14615 main ()
14619 return 0;
14621 _ACEOF
14622 if ac_fn_c_try_compile "$LINENO"; then :
14623 has_iquote="yes"
14624 else
14625 has_iquote="no"
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628 else
14629 # we do know it is supported for the smallest version of gcc we are going to build
14630 # we assume it's also supported by later versions
14631 has_iquote=yes
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14634 $as_echo "$has_iquote" >&6; }
14635 if test "x-$has_iquote" = "x-yes" ; then
14636 kernel_cflags_iquote=-iquote
14637 kernel_cflags_iquote_end=
14638 else
14639 kernel_cflags_iquote=-I
14640 kernel_cflags_iquote_end=-I-
14643 if test "x-$use_no_stack_protector" = "x-yes" ; then
14644 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14647 #-----------------------------------------------------------------------------
14649 # Check if we can explicitly choose older version of symbol hashing
14651 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14652 CC="$aros_kernel_cc"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14654 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14659 main ()
14663 return 0;
14665 _ACEOF
14666 if ac_fn_c_try_link "$LINENO"; then :
14667 use_hash_style="yes"
14668 else
14669 use_hash_style="no"
14671 rm -f core conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext conftest.$ac_ext
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14674 $as_echo "$use_hash_style" >&6; }
14675 if test "x-$use_hash_style" = "x-yes" ; then
14676 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14678 else
14679 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14680 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14682 CC="$save_cc"
14683 CFLAGS="$save_cflags"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14692 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14694 # Check whether --with-resolution was given.
14695 if test "${with_resolution+set}" = set; then :
14696 withval=$with_resolution; resolution=$withval
14697 else
14698 resolution=none
14701 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14702 if test "$resolution" = "yes" ; then
14703 resolution="none"
14705 if test "$resolution" = "no" ; then
14706 resolution="none"
14708 if test "$resolution" != "none" ; then
14709 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14710 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14711 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14714 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14715 aros_cv_nominal_width=$aros_nominal_width
14716 aros_cv_nominal_height=$aros_nominal_height
14717 aros_cv_nominal_depth=$aros_nominal_depth
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14720 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14722 # Check whether --with-serial-debug was given.
14723 if test "${with_serial_debug+set}" = set; then :
14724 withval=$with_serial_debug; serial_debug=$withval
14725 else
14726 serial_debug=none
14729 if test "$aros_serial_debug" = 0 ; then
14730 serial_debug_forced=""
14731 if test "$serial_debug" = "yes" ; then
14732 serial_debug="1"
14734 if test "$serial_debug" = "no" ; then
14735 serial_debug="none"
14737 else
14738 serial_debug_forced="(forced)"
14739 serial_debug=$aros_serial_debug
14741 if test "$serial_debug" != "none" ; then
14742 aros_serial_debug=$serial_debug
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14744 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14745 else
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14751 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14752 # Check whether --enable-palm_debug_hack was given.
14753 if test "${enable_palm_debug_hack+set}" = set; then :
14754 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14755 else
14756 palm_debug_hack="no"
14759 if test "$palm_debug_hack" = "yes" ; then
14760 aros_palm_debug_hack="1"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14763 $as_echo "$palm_debug_hack" >&6; }
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14766 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14767 # Check whether --enable-usb30_code was given.
14768 if test "${enable_usb30_code+set}" = set; then :
14769 enableval=$enable_usb30_code; usb30_code="yes"
14770 else
14771 usb30_code="no"
14774 if test "$usb30_code" = "yes" ; then
14775 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14776 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14779 $as_echo "$usb30_code" >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14782 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14783 # Check whether --enable-nesting_supervisor was given.
14784 if test "${enable_nesting_supervisor+set}" = set; then :
14785 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14786 else
14787 nesting_supervisor="no"
14790 if test "$nesting_supervisor" = "yes" ; then
14791 aros_nesting_supervisor="1"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14794 $as_echo "$nesting_supervisor" >&6; }
14796 if test "$aros_enable_mmu" = "" ; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14798 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14799 # Check whether --enable-mmu was given.
14800 if test "${enable_mmu+set}" = set; then :
14801 enableval=$enable_mmu; aros_enable_mmu=$enableval
14802 else
14803 aros_enable_mmu="yes"
14806 if test "$aros_enable_mmu" = "" ; then
14807 aros_enable_mmu="yes"
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14810 $as_echo "$aros_enable_mmu" >&6; }
14812 if test "$aros_enable_mmu" = "no" ; then
14813 aros_enable_mmu="0"
14814 else
14815 aros_enable_mmu="1"
14819 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14821 if test "x-$need_dlopen" != "x-no" ; then
14822 save_libs="$LIBS"
14823 LIBS=""
14824 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14825 if test "x$ac_cv_func_dlopen" = xyes; then :
14826 have_dl="yes"
14827 else
14828 have_dl="no"
14831 if test "x-$have_dl" = "x-no" ; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14833 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14834 if ${ac_cv_lib_dl_dlopen+:} false; then :
14835 $as_echo_n "(cached) " >&6
14836 else
14837 ac_check_lib_save_LIBS=$LIBS
14838 LIBS="-ldl $LIBS"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14842 /* Override any GCC internal prototype to avoid an error.
14843 Use char because int might match the return type of a GCC
14844 builtin and then its argument prototype would still apply. */
14845 #ifdef __cplusplus
14846 extern "C"
14847 #endif
14848 char dlopen ();
14850 main ()
14852 return dlopen ();
14854 return 0;
14856 _ACEOF
14857 if ac_fn_c_try_link "$LINENO"; then :
14858 ac_cv_lib_dl_dlopen=yes
14859 else
14860 ac_cv_lib_dl_dlopen=no
14862 rm -f core conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14868 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14869 have_dl="yes"
14870 aros_host_ldflags="$aros_host_ldflags -ldl"
14871 else
14872 have_dl="no"
14876 if test "x-$have_dl" = "x-no" ; then
14877 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14879 LIBS="$save_libs"
14883 # Check whether --enable-x11_hidd was given.
14884 if test "${enable_x11_hidd+set}" = set; then :
14885 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14886 else
14887 x11_hidd="$need_x11"
14890 case "x-$x11_hidd" in
14891 x-yes|x-no|x-auto) ;;
14892 *) x11_hidd="$need_x11" ;;
14893 esac
14895 ENABLE_X11=0
14897 if test "x-$x11_hidd" != "x-no" ; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14900 $as_echo_n "checking for X... " >&6; }
14903 # Check whether --with-x was given.
14904 if test "${with_x+set}" = set; then :
14905 withval=$with_x;
14908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14909 if test "x$with_x" = xno; then
14910 # The user explicitly disabled X.
14911 have_x=disabled
14912 else
14913 case $x_includes,$x_libraries in #(
14914 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14915 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 # One or both of the vars are not set, and there is no cached value.
14919 ac_x_includes=no ac_x_libraries=no
14920 rm -f -r conftest.dir
14921 if mkdir conftest.dir; then
14922 cd conftest.dir
14923 cat >Imakefile <<'_ACEOF'
14924 incroot:
14925 @echo incroot='${INCROOT}'
14926 usrlibdir:
14927 @echo usrlibdir='${USRLIBDIR}'
14928 libdir:
14929 @echo libdir='${LIBDIR}'
14930 _ACEOF
14931 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14932 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14933 for ac_var in incroot usrlibdir libdir; do
14934 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14935 done
14936 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14937 for ac_extension in a so sl dylib la dll; do
14938 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14939 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14940 ac_im_usrlibdir=$ac_im_libdir; break
14942 done
14943 # Screen out bogus values from the imake configuration. They are
14944 # bogus both because they are the default anyway, and because
14945 # using them would break gcc on systems where it needs fixed includes.
14946 case $ac_im_incroot in
14947 /usr/include) ac_x_includes= ;;
14948 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14949 esac
14950 case $ac_im_usrlibdir in
14951 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14952 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14953 esac
14955 cd ..
14956 rm -f -r conftest.dir
14959 # Standard set of common directories for X headers.
14960 # Check X11 before X11Rn because it is often a symlink to the current release.
14961 ac_x_header_dirs='
14962 /usr/X11/include
14963 /usr/X11R7/include
14964 /usr/X11R6/include
14965 /usr/X11R5/include
14966 /usr/X11R4/include
14968 /usr/include/X11
14969 /usr/include/X11R7
14970 /usr/include/X11R6
14971 /usr/include/X11R5
14972 /usr/include/X11R4
14974 /usr/local/X11/include
14975 /usr/local/X11R7/include
14976 /usr/local/X11R6/include
14977 /usr/local/X11R5/include
14978 /usr/local/X11R4/include
14980 /usr/local/include/X11
14981 /usr/local/include/X11R7
14982 /usr/local/include/X11R6
14983 /usr/local/include/X11R5
14984 /usr/local/include/X11R4
14986 /usr/X386/include
14987 /usr/x386/include
14988 /usr/XFree86/include/X11
14990 /usr/include
14991 /usr/local/include
14992 /usr/unsupported/include
14993 /usr/athena/include
14994 /usr/local/x11r5/include
14995 /usr/lpp/Xamples/include
14997 /usr/openwin/include
14998 /usr/openwin/share/include'
15000 if test "$ac_x_includes" = no; then
15001 # Guess where to find include files, by looking for Xlib.h.
15002 # First, try using that file with no special directory specified.
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <X11/Xlib.h>
15006 _ACEOF
15007 if ac_fn_c_try_cpp "$LINENO"; then :
15008 # We can compile using X headers with no special include directory.
15009 ac_x_includes=
15010 else
15011 for ac_dir in $ac_x_header_dirs; do
15012 if test -r "$ac_dir/X11/Xlib.h"; then
15013 ac_x_includes=$ac_dir
15014 break
15016 done
15018 rm -f conftest.err conftest.i conftest.$ac_ext
15019 fi # $ac_x_includes = no
15021 if test "$ac_x_libraries" = no; then
15022 # Check for the libraries.
15023 # See if we find them without any special options.
15024 # Don't add to $LIBS permanently.
15025 ac_save_LIBS=$LIBS
15026 LIBS="-lX11 $LIBS"
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #include <X11/Xlib.h>
15031 main ()
15033 XrmInitialize ()
15035 return 0;
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"; then :
15039 LIBS=$ac_save_LIBS
15040 # We can link X programs with no special library path.
15041 ac_x_libraries=
15042 else
15043 LIBS=$ac_save_LIBS
15044 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15046 # Don't even attempt the hair of trying to link an X program!
15047 for ac_extension in a so sl dylib la dll; do
15048 if test -r "$ac_dir/libX11.$ac_extension"; then
15049 ac_x_libraries=$ac_dir
15050 break 2
15052 done
15053 done
15055 rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15057 fi # $ac_x_libraries = no
15059 case $ac_x_includes,$ac_x_libraries in #(
15060 no,* | *,no | *\'*)
15061 # Didn't find X, or a directory has "'" in its name.
15062 ac_cv_have_x="have_x=no";; #(
15064 # Record where we found X for the cache.
15065 ac_cv_have_x="have_x=yes\
15066 ac_x_includes='$ac_x_includes'\
15067 ac_x_libraries='$ac_x_libraries'"
15068 esac
15070 ;; #(
15071 *) have_x=yes;;
15072 esac
15073 eval "$ac_cv_have_x"
15074 fi # $with_x != no
15076 if test "$have_x" != yes; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15078 $as_echo "$have_x" >&6; }
15079 no_x=yes
15080 else
15081 # If each of the values was on the command line, it overrides each guess.
15082 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15083 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15084 # Update the cache value to reflect the command line values.
15085 ac_cv_have_x="have_x=yes\
15086 ac_x_includes='$x_includes'\
15087 ac_x_libraries='$x_libraries'"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15089 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15093 if test -n "$x_includes"; then
15094 X_CFLAGS="$X_CFLAGS -I$x_includes"
15097 if test -n "$x_libraries"; then
15098 X_LIBS="$X_LIBS -L$x_libraries"
15101 if test "x-$no_x" = "x-yes" ; then
15103 if test "x-$x11_hidd" != "x-auto" ; then
15104 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15107 else
15108 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15109 if test "x-$host_feature_glx" != "x-no" ; then
15110 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15112 ENABLE_X11=1
15114 aros_host_x11_cflags="$X_CFLAGS"
15115 aros_host_x11_ldflags="$X_LIBS -lX11"
15117 # Check whether --enable-x11_shm was given.
15118 if test "${enable_x11_shm+set}" = set; then :
15119 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15120 else
15121 x11_hidd_shm="auto"
15124 case "x-$x11_hidd_shm" in
15125 x-yes|x-no|x-auto) ;;
15126 *) x11_hidd_shm="auto" ;;
15127 esac
15129 have_xshm=no
15131 if test "x-$x11_hidd_shm" != "x-no" ; then
15133 for ac_header in sys/ipc.h
15134 do :
15135 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15136 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_SYS_IPC_H 1
15139 _ACEOF
15143 done
15145 for ac_header in sys/shm.h
15146 do :
15147 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15148 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_SYS_SHM_H 1
15151 _ACEOF
15155 done
15158 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15160 save_cflags="$CFLAGS"
15161 save_ldflags="$LDFLAGS"
15162 CFLAGS="$CFLAGS $X_CFLAGS"
15163 LDFLAGS="$LDFLAGS $X_LIBS"
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15165 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15166 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 ac_check_lib_save_LIBS=$LIBS
15170 LIBS="-lXext $LIBS"
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15174 /* Override any GCC internal prototype to avoid an error.
15175 Use char because int might match the return type of a GCC
15176 builtin and then its argument prototype would still apply. */
15177 #ifdef __cplusplus
15178 extern "C"
15179 #endif
15180 char XShmQueryExtension ();
15182 main ()
15184 return XShmQueryExtension ();
15186 return 0;
15188 _ACEOF
15189 if ac_fn_c_try_link "$LINENO"; then :
15190 ac_cv_lib_Xext_XShmQueryExtension=yes
15191 else
15192 ac_cv_lib_Xext_XShmQueryExtension=no
15194 rm -f core conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196 LIBS=$ac_check_lib_save_LIBS
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15199 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15200 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15201 have_xshm=yes
15204 CFLAGS="$save_cflags"
15205 LDFLAGS="$save_ldflags"
15209 if test "x-$have_xshm" = "x-yes" ; then
15210 DO_XSHM_SUPPORT="1"
15211 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15212 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15213 else
15214 DO_XSHM_SUPPORT="0"
15218 # Check whether --enable-x11_vidmode was given.
15219 if test "${enable_x11_vidmode+set}" = set; then :
15220 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15221 else
15222 x11_hidd_vidmode="auto"
15225 case "x-$x11_hidd_vidmode" in
15226 x-yes|x-no|x-auto) ;;
15227 *) x11_hidd_vidmode="auto" ;;
15228 esac
15230 have_vidmode=no
15232 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15234 save_cflags="$CFLAGS"
15235 save_ldflags="$LDFLAGS"
15236 CFLAGS="$CFLAGS $X_CFLAGS"
15237 LDFLAGS="$LDFLAGS $X_LIBS"
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15239 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15240 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 ac_check_lib_save_LIBS=$LIBS
15244 LIBS="-lXxf86vm $LIBS"
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15248 /* Override any GCC internal prototype to avoid an error.
15249 Use char because int might match the return type of a GCC
15250 builtin and then its argument prototype would still apply. */
15251 #ifdef __cplusplus
15252 extern "C"
15253 #endif
15254 char XF86VidModeQueryExtension ();
15256 main ()
15258 return XF86VidModeQueryExtension ();
15260 return 0;
15262 _ACEOF
15263 if ac_fn_c_try_link "$LINENO"; then :
15264 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15265 else
15266 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15268 rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$ac_check_lib_save_LIBS
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15273 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15274 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15275 have_vidmode=yes
15278 CFLAGS="$save_cflags"
15279 LDFLAGS="$save_ldflags"
15282 if test "x-$have_vidmode" = "x-yes" ; then
15283 DO_VIDMODE_SUPPORT="1"
15284 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15285 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15286 else
15287 DO_VIDMODE_SUPPORT="0"
15292 # Check whether --enable-sdl_hidd was given.
15293 if test "${enable_sdl_hidd+set}" = set; then :
15294 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15295 else
15296 sdl_hidd="auto"
15299 case "x-$sdl_hidd" in
15300 x-yes|x-no|x-auto) ;;
15301 *) sdl_hidd="auto" ;;
15302 esac
15304 if test "x-$sdl_hidd" != "x-no" ; then
15306 SDL_VERSION=1.2.5
15308 # Check whether --with-sdl-prefix was given.
15309 if test "${with_sdl_prefix+set}" = set; then :
15310 withval=$with_sdl_prefix; sdl_prefix="$withval"
15311 else
15312 sdl_prefix=""
15316 # Check whether --with-sdl-exec-prefix was given.
15317 if test "${with_sdl_exec_prefix+set}" = set; then :
15318 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15319 else
15320 sdl_exec_prefix=""
15323 # Check whether --enable-sdltest was given.
15324 if test "${enable_sdltest+set}" = set; then :
15325 enableval=$enable_sdltest;
15326 else
15327 enable_sdltest=yes
15331 if test x$sdl_exec_prefix != x ; then
15332 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15333 if test x${SDL_CONFIG+set} != xset ; then
15334 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15337 if test x$sdl_prefix != x ; then
15338 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15339 if test x${SDL_CONFIG+set} != xset ; then
15340 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15344 as_save_PATH="$PATH"
15345 if test "x$prefix" != xNONE; then
15346 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15348 # Extract the first word of "sdl-config", so it can be a program name with args.
15349 set dummy sdl-config; ac_word=$2
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15351 $as_echo_n "checking for $ac_word... " >&6; }
15352 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15353 $as_echo_n "(cached) " >&6
15354 else
15355 case $SDL_CONFIG in
15356 [\\/]* | ?:[\\/]*)
15357 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15361 for as_dir in $PATH
15363 IFS=$as_save_IFS
15364 test -z "$as_dir" && as_dir=.
15365 for ac_exec_ext in '' $ac_executable_extensions; do
15366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15367 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15369 break 2
15371 done
15372 done
15373 IFS=$as_save_IFS
15375 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15377 esac
15379 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15380 if test -n "$SDL_CONFIG"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15382 $as_echo "$SDL_CONFIG" >&6; }
15383 else
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385 $as_echo "no" >&6; }
15389 PATH="$as_save_PATH"
15390 min_sdl_version=$SDL_VERSION
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15392 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15393 no_sdl=""
15394 if test "$SDL_CONFIG" = "no" ; then
15395 no_sdl=yes
15396 else
15397 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15398 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15400 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15401 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15402 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15403 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15404 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15405 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15406 if test "x$enable_sdltest" = "xyes" ; then
15407 ac_save_CFLAGS="$CFLAGS"
15408 ac_save_CXXFLAGS="$CXXFLAGS"
15409 ac_save_LIBS="$LIBS"
15410 CFLAGS="$CFLAGS $SDL_CFLAGS"
15411 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15412 LIBS="$LIBS $SDL_LIBS"
15413 rm -f conf.sdltest
15414 if test "$cross_compiling" = yes; then :
15415 echo $ac_n "cross compiling; assumed OK... $ac_c"
15416 else
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15420 #include <stdio.h>
15421 #include <stdlib.h>
15422 #include <string.h>
15423 #include "SDL.h"
15425 char*
15426 my_strdup (char *str)
15428 char *new_str;
15430 if (str)
15432 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15433 strcpy (new_str, str);
15435 else
15436 new_str = NULL;
15438 return new_str;
15441 int main (int argc, char *argv[])
15443 int major, minor, micro;
15444 char *tmp_version;
15446 /* This hangs on some systems (?)
15447 system ("touch conf.sdltest");
15449 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15451 /* HP/UX 9 (%@#!) writes to sscanf strings */
15452 tmp_version = my_strdup("$min_sdl_version");
15453 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15454 printf("%s, bad version string\n", "$min_sdl_version");
15455 exit(1);
15458 if (($sdl_major_version > major) ||
15459 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15460 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15462 return 0;
15464 else
15466 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15467 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15468 printf("*** best to upgrade to the required version.\n");
15469 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15470 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15471 printf("*** config.cache before re-running configure\n");
15472 return 1;
15477 _ACEOF
15478 if ac_fn_c_try_run "$LINENO"; then :
15480 else
15481 no_sdl=yes
15483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15484 conftest.$ac_objext conftest.beam conftest.$ac_ext
15487 CFLAGS="$ac_save_CFLAGS"
15488 CXXFLAGS="$ac_save_CXXFLAGS"
15489 LIBS="$ac_save_LIBS"
15492 if test "x$no_sdl" = x ; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15494 $as_echo "yes" >&6; }
15495 have_sdl="yes"
15496 else
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15498 $as_echo "no" >&6; }
15499 if test "$SDL_CONFIG" = "no" ; then
15500 echo "*** The sdl-config script installed by SDL could not be found"
15501 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15502 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15503 echo "*** full path to sdl-config."
15504 else
15505 if test -f conf.sdltest ; then
15507 else
15508 echo "*** Could not run SDL test program, checking why..."
15509 CFLAGS="$CFLAGS $SDL_CFLAGS"
15510 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15511 LIBS="$LIBS $SDL_LIBS"
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15515 #include <stdio.h>
15516 #include "SDL.h"
15518 int main(int argc, char *argv[])
15519 { return 0; }
15520 #undef main
15521 #define main K_and_R_C_main
15524 main ()
15526 return 0;
15528 return 0;
15530 _ACEOF
15531 if ac_fn_c_try_link "$LINENO"; then :
15532 echo "*** The test program compiled, but did not run. This usually means"
15533 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15534 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15535 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15536 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15537 echo "*** is required on your system"
15538 echo "***"
15539 echo "*** If you have an old version installed, it is best to remove it, although"
15540 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15541 else
15542 echo "*** The test program failed to compile or link. See the file config.log for the"
15543 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15544 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15545 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15547 rm -f core conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15549 CFLAGS="$ac_save_CFLAGS"
15550 CXXFLAGS="$ac_save_CXXFLAGS"
15551 LIBS="$ac_save_LIBS"
15554 SDL_CFLAGS=""
15555 SDL_LIBS=""
15556 have_sdl="no"
15560 rm -f conf.sdltest
15563 if test "x-$have_sdl" != "x-yes" ; then
15565 if test "x-$sdl_hidd" != "x-auto" ; then
15566 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15569 else
15570 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15571 aros_host_sdl_cflags=$SDL_CFLAGS
15572 aros_host_sdl_libs=$SDL_LIBS
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15580 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15581 # Check whether --enable-dbus was given.
15582 if test "${enable_dbus+set}" = set; then :
15583 enableval=$enable_dbus; dbus="yes"
15584 else
15585 dbus="no"
15588 if test "$dbus" = "yes" ; then
15589 ENABLE_DBUS=1
15590 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15591 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15592 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15593 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15594 else
15595 ENABLE_DBUS=0
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15598 $as_echo "$dbus" >&6; }
15600 if test "$use_kernel_cc_wrapper" = "yes" ; then
15601 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15604 aros_kernel_cppflags=$aros_config_cppflags
15605 aros_optimization_cflags="$optimization_level"
15606 if test "$optimization" = "default"; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15608 $as_echo_n "checking default optimization level to use... " >&6; }
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15610 $as_echo "$optimization_level" >&6; }
15613 if ! test "$gcc_default_cpu" = "" ; then
15614 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"
15617 if test "$use_libatomic" = "yes" ; then
15618 aros_cxx_libs="$aros_cxx_libs -latomic"
15622 # Generic
15636 # Compatability with other Amiga-like operating systems
15639 # Host Related ###########################
15671 # Target Related #########################
15764 # Native version related
15769 # MMU related
15772 # Bootloader related
15775 # Unix/Hosted version related
15778 # ARM default GCC target related
15785 # Palm native version related
15788 # Apple iOS related
15793 # Android related
15799 # Debug related
15805 # Collect-aros stuff: "-ius" to ignore undefined symbols
15808 # C compiler related
15813 #ObjC compiler related
15816 #Java related
15819 # DBUS related
15826 #X11 related
15834 #X11 related
15838 # USB3.0 code
15841 case "$aros_flavour" in
15842 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15843 aros_flavour="emulation" ;;
15844 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15845 aros_flavour="emulation" ;;
15846 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15847 aros_flavour="standalone";;
15848 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15849 aros_flavour="standalone";;
15850 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15851 aros_flavour="native" ;;
15852 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15853 aros_flavour="native" ;;
15854 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15855 aros_flavour="linklib" ;;
15856 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15857 aros_flavour="palmnative" ;;
15858 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15859 aros_flavour="mac68knative" ;;
15860 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15861 aros_flavour="ppcnative" ;;
15862 esac
15864 if test ! -d ${aros_inc_dir} ; then
15865 ${MKDIR} ${aros_inc_dir}
15867 if test ! -d ${aros_geninc_dir} ; then
15868 ${MKDIR} ${aros_geninc_dir}
15870 if test ! -d ${aros_hostcfg_dir} ; then
15871 ${MKDIR} ${aros_hostcfg_dir}
15873 if test ! -d ${aros_targetcfg_dir} ; then
15874 ${MKDIR} ${aros_targetcfg_dir}
15876 if test ! -d ${aros_tools_dir} ; then
15877 ${MKDIR} ${aros_tools_dir}
15879 if test ! -d ${aros_scripts_dir} ; then
15880 ${MKDIR} ${aros_scripts_dir}
15883 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15886 # Generic build tools (metamake, etc)
15887 ac_config_commands="$ac_config_commands genmf-executable-support"
15889 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"
15892 # Binutils
15893 ac_config_commands="$ac_config_commands binutils-support"
15895 if test "${use_ld_wrapper}" = "yes"; then
15896 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"
15899 # Bare Elf support script and spec
15900 if test "${use_kernel_cc_wrapper}" = "yes"; then
15901 ac_config_commands="$ac_config_commands elf-compiler-support"
15903 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"
15907 # Host compiler support scripts and spec
15908 if test "${aros_target_toolchain}" = "no"; then
15909 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15911 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"
15915 # Android support
15916 if test "$aros_target_variant" == "android"; then
15917 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15921 # cmake helper
15922 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15925 cat >confcache <<\_ACEOF
15926 # This file is a shell script that caches the results of configure
15927 # tests run on this system so they can be shared between configure
15928 # scripts and configure runs, see configure's option --config-cache.
15929 # It is not useful on other systems. If it contains results you don't
15930 # want to keep, you may remove or edit it.
15932 # config.status only pays attention to the cache file if you give it
15933 # the --recheck option to rerun configure.
15935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15937 # following values.
15939 _ACEOF
15941 # The following way of writing the cache mishandles newlines in values,
15942 # but we know of no workaround that is simple, portable, and efficient.
15943 # So, we kill variables containing newlines.
15944 # Ultrix sh set writes to stderr and can't be redirected directly,
15945 # and sets the high bit in the cache file unless we assign to the vars.
15947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15948 eval ac_val=\$$ac_var
15949 case $ac_val in #(
15950 *${as_nl}*)
15951 case $ac_var in #(
15952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15954 esac
15955 case $ac_var in #(
15956 _ | IFS | as_nl) ;; #(
15957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15958 *) { eval $ac_var=; unset $ac_var;} ;;
15959 esac ;;
15960 esac
15961 done
15963 (set) 2>&1 |
15964 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15965 *${as_nl}ac_space=\ *)
15966 # `set' does not quote correctly, so add quotes: double-quote
15967 # substitution turns \\\\ into \\, and sed turns \\ into \.
15968 sed -n \
15969 "s/'/'\\\\''/g;
15970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15971 ;; #(
15973 # `set' quotes correctly as required by POSIX, so do not add quotes.
15974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15976 esac |
15977 sort
15979 sed '
15980 /^ac_cv_env_/b end
15981 t clear
15982 :clear
15983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15984 t end
15985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15986 :end' >>confcache
15987 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15988 if test -w "$cache_file"; then
15989 if test "x$cache_file" != "x/dev/null"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15991 $as_echo "$as_me: updating cache $cache_file" >&6;}
15992 if test ! -f "$cache_file" || test -h "$cache_file"; then
15993 cat confcache >"$cache_file"
15994 else
15995 case $cache_file in #(
15996 */* | ?:*)
15997 mv -f confcache "$cache_file"$$ &&
15998 mv -f "$cache_file"$$ "$cache_file" ;; #(
16000 mv -f confcache "$cache_file" ;;
16001 esac
16004 else
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16006 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16009 rm -f confcache
16011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16012 # Let make expand exec_prefix.
16013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16015 DEFS=-DHAVE_CONFIG_H
16017 ac_libobjs=
16018 ac_ltlibobjs=
16020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16021 # 1. Remove the extension, and $U if already installed.
16022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16023 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16025 # will be set to the directory where LIBOBJS objects are built.
16026 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16027 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16028 done
16029 LIBOBJS=$ac_libobjs
16031 LTLIBOBJS=$ac_ltlibobjs
16035 : "${CONFIG_STATUS=./config.status}"
16036 ac_write_fail=0
16037 ac_clean_files_save=$ac_clean_files
16038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16040 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16041 as_write_fail=0
16042 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16043 #! $SHELL
16044 # Generated by $as_me.
16045 # Run this file to recreate the current configuration.
16046 # Compiler output produced by configure, useful for debugging
16047 # configure, is in config.log if it exists.
16049 debug=false
16050 ac_cs_recheck=false
16051 ac_cs_silent=false
16053 SHELL=\${CONFIG_SHELL-$SHELL}
16054 export SHELL
16055 _ASEOF
16056 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16057 ## -------------------- ##
16058 ## M4sh Initialization. ##
16059 ## -------------------- ##
16061 # Be more Bourne compatible
16062 DUALCASE=1; export DUALCASE # for MKS sh
16063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16064 emulate sh
16065 NULLCMD=:
16066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16067 # is contrary to our usage. Disable this feature.
16068 alias -g '${1+"$@"}'='"$@"'
16069 setopt NO_GLOB_SUBST
16070 else
16071 case `(set -o) 2>/dev/null` in #(
16072 *posix*) :
16073 set -o posix ;; #(
16074 *) :
16076 esac
16080 as_nl='
16082 export as_nl
16083 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16084 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16087 # Prefer a ksh shell builtin over an external printf program on Solaris,
16088 # but without wasting forks for bash or zsh.
16089 if test -z "$BASH_VERSION$ZSH_VERSION" \
16090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16091 as_echo='print -r --'
16092 as_echo_n='print -rn --'
16093 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16094 as_echo='printf %s\n'
16095 as_echo_n='printf %s'
16096 else
16097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16099 as_echo_n='/usr/ucb/echo -n'
16100 else
16101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16102 as_echo_n_body='eval
16103 arg=$1;
16104 case $arg in #(
16105 *"$as_nl"*)
16106 expr "X$arg" : "X\\(.*\\)$as_nl";
16107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16108 esac;
16109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16111 export as_echo_n_body
16112 as_echo_n='sh -c $as_echo_n_body as_echo'
16114 export as_echo_body
16115 as_echo='sh -c $as_echo_body as_echo'
16118 # The user is always right.
16119 if test "${PATH_SEPARATOR+set}" != set; then
16120 PATH_SEPARATOR=:
16121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16123 PATH_SEPARATOR=';'
16128 # IFS
16129 # We need space, tab and new line, in precisely that order. Quoting is
16130 # there to prevent editors from complaining about space-tab.
16131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16132 # splitting by setting IFS to empty value.)
16133 IFS=" "" $as_nl"
16135 # Find who we are. Look in the path if we contain no directory separator.
16136 as_myself=
16137 case $0 in #((
16138 *[\\/]* ) as_myself=$0 ;;
16139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16142 IFS=$as_save_IFS
16143 test -z "$as_dir" && as_dir=.
16144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16145 done
16146 IFS=$as_save_IFS
16149 esac
16150 # We did not find ourselves, most probably we were run as `sh COMMAND'
16151 # in which case we are not to be found in the path.
16152 if test "x$as_myself" = x; then
16153 as_myself=$0
16155 if test ! -f "$as_myself"; then
16156 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16157 exit 1
16160 # Unset variables that we do not need and which cause bugs (e.g. in
16161 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16162 # suppresses any "Segmentation fault" message there. '((' could
16163 # trigger a bug in pdksh 5.2.14.
16164 for as_var in BASH_ENV ENV MAIL MAILPATH
16165 do eval test x\${$as_var+set} = xset \
16166 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16167 done
16168 PS1='$ '
16169 PS2='> '
16170 PS4='+ '
16172 # NLS nuisances.
16173 LC_ALL=C
16174 export LC_ALL
16175 LANGUAGE=C
16176 export LANGUAGE
16178 # CDPATH.
16179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16182 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16183 # ----------------------------------------
16184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16186 # script with STATUS, using 1 if that was 0.
16187 as_fn_error ()
16189 as_status=$1; test $as_status -eq 0 && as_status=1
16190 if test "$4"; then
16191 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16192 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16194 $as_echo "$as_me: error: $2" >&2
16195 as_fn_exit $as_status
16196 } # as_fn_error
16199 # as_fn_set_status STATUS
16200 # -----------------------
16201 # Set $? to STATUS, without forking.
16202 as_fn_set_status ()
16204 return $1
16205 } # as_fn_set_status
16207 # as_fn_exit STATUS
16208 # -----------------
16209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16210 as_fn_exit ()
16212 set +e
16213 as_fn_set_status $1
16214 exit $1
16215 } # as_fn_exit
16217 # as_fn_unset VAR
16218 # ---------------
16219 # Portably unset VAR.
16220 as_fn_unset ()
16222 { eval $1=; unset $1;}
16224 as_unset=as_fn_unset
16225 # as_fn_append VAR VALUE
16226 # ----------------------
16227 # Append the text in VALUE to the end of the definition contained in VAR. Take
16228 # advantage of any shell optimizations that allow amortized linear growth over
16229 # repeated appends, instead of the typical quadratic growth present in naive
16230 # implementations.
16231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16232 eval 'as_fn_append ()
16234 eval $1+=\$2
16236 else
16237 as_fn_append ()
16239 eval $1=\$$1\$2
16241 fi # as_fn_append
16243 # as_fn_arith ARG...
16244 # ------------------
16245 # Perform arithmetic evaluation on the ARGs, and store the result in the
16246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16247 # must be portable across $(()) and expr.
16248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16249 eval 'as_fn_arith ()
16251 as_val=$(( $* ))
16253 else
16254 as_fn_arith ()
16256 as_val=`expr "$@" || test $? -eq 1`
16258 fi # as_fn_arith
16261 if expr a : '\(a\)' >/dev/null 2>&1 &&
16262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16263 as_expr=expr
16264 else
16265 as_expr=false
16268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16269 as_basename=basename
16270 else
16271 as_basename=false
16274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16275 as_dirname=dirname
16276 else
16277 as_dirname=false
16280 as_me=`$as_basename -- "$0" ||
16281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16282 X"$0" : 'X\(//\)$' \| \
16283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16284 $as_echo X/"$0" |
16285 sed '/^.*\/\([^/][^/]*\)\/*$/{
16286 s//\1/
16289 /^X\/\(\/\/\)$/{
16290 s//\1/
16293 /^X\/\(\/\).*/{
16294 s//\1/
16297 s/.*/./; q'`
16299 # Avoid depending upon Character Ranges.
16300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16303 as_cr_digits='0123456789'
16304 as_cr_alnum=$as_cr_Letters$as_cr_digits
16306 ECHO_C= ECHO_N= ECHO_T=
16307 case `echo -n x` in #(((((
16308 -n*)
16309 case `echo 'xy\c'` in
16310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16311 xy) ECHO_C='\c';;
16312 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16313 ECHO_T=' ';;
16314 esac;;
16316 ECHO_N='-n';;
16317 esac
16319 rm -f conf$$ conf$$.exe conf$$.file
16320 if test -d conf$$.dir; then
16321 rm -f conf$$.dir/conf$$.file
16322 else
16323 rm -f conf$$.dir
16324 mkdir conf$$.dir 2>/dev/null
16326 if (echo >conf$$.file) 2>/dev/null; then
16327 if ln -s conf$$.file conf$$ 2>/dev/null; then
16328 as_ln_s='ln -s'
16329 # ... but there are two gotchas:
16330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16332 # In both cases, we have to default to `cp -pR'.
16333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16334 as_ln_s='cp -pR'
16335 elif ln conf$$.file conf$$ 2>/dev/null; then
16336 as_ln_s=ln
16337 else
16338 as_ln_s='cp -pR'
16340 else
16341 as_ln_s='cp -pR'
16343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16344 rmdir conf$$.dir 2>/dev/null
16347 # as_fn_mkdir_p
16348 # -------------
16349 # Create "$as_dir" as a directory, including parents if necessary.
16350 as_fn_mkdir_p ()
16353 case $as_dir in #(
16354 -*) as_dir=./$as_dir;;
16355 esac
16356 test -d "$as_dir" || eval $as_mkdir_p || {
16357 as_dirs=
16358 while :; do
16359 case $as_dir in #(
16360 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16361 *) as_qdir=$as_dir;;
16362 esac
16363 as_dirs="'$as_qdir' $as_dirs"
16364 as_dir=`$as_dirname -- "$as_dir" ||
16365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16366 X"$as_dir" : 'X\(//\)[^/]' \| \
16367 X"$as_dir" : 'X\(//\)$' \| \
16368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16369 $as_echo X"$as_dir" |
16370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16371 s//\1/
16374 /^X\(\/\/\)[^/].*/{
16375 s//\1/
16378 /^X\(\/\/\)$/{
16379 s//\1/
16382 /^X\(\/\).*/{
16383 s//\1/
16386 s/.*/./; q'`
16387 test -d "$as_dir" && break
16388 done
16389 test -z "$as_dirs" || eval "mkdir $as_dirs"
16390 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16393 } # as_fn_mkdir_p
16394 if mkdir -p . 2>/dev/null; then
16395 as_mkdir_p='mkdir -p "$as_dir"'
16396 else
16397 test -d ./-p && rmdir ./-p
16398 as_mkdir_p=false
16402 # as_fn_executable_p FILE
16403 # -----------------------
16404 # Test if FILE is an executable regular file.
16405 as_fn_executable_p ()
16407 test -f "$1" && test -x "$1"
16408 } # as_fn_executable_p
16409 as_test_x='test -x'
16410 as_executable_p=as_fn_executable_p
16412 # Sed expression to map a string onto a valid CPP name.
16413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16415 # Sed expression to map a string onto a valid variable name.
16416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16419 exec 6>&1
16420 ## ----------------------------------- ##
16421 ## Main body of $CONFIG_STATUS script. ##
16422 ## ----------------------------------- ##
16423 _ASEOF
16424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16427 # Save the log message, to keep $0 and so on meaningful, and to
16428 # report actual input values of CONFIG_FILES etc. instead of their
16429 # values after options handling.
16430 ac_log="
16431 This file was extended by $as_me, which was
16432 generated by GNU Autoconf 2.69. Invocation command line was
16434 CONFIG_FILES = $CONFIG_FILES
16435 CONFIG_HEADERS = $CONFIG_HEADERS
16436 CONFIG_LINKS = $CONFIG_LINKS
16437 CONFIG_COMMANDS = $CONFIG_COMMANDS
16438 $ $0 $@
16440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16443 _ACEOF
16445 case $ac_config_files in *"
16446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16447 esac
16449 case $ac_config_headers in *"
16450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16451 esac
16454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16455 # Files that config.status was made for.
16456 config_files="$ac_config_files"
16457 config_headers="$ac_config_headers"
16458 config_commands="$ac_config_commands"
16460 _ACEOF
16462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16463 ac_cs_usage="\
16464 \`$as_me' instantiates files and other configuration actions
16465 from templates according to the current configuration. Unless the files
16466 and actions are specified as TAGs, all are instantiated by default.
16468 Usage: $0 [OPTION]... [TAG]...
16470 -h, --help print this help, then exit
16471 -V, --version print version number and configuration settings, then exit
16472 --config print configuration, then exit
16473 -q, --quiet, --silent
16474 do not print progress messages
16475 -d, --debug don't remove temporary files
16476 --recheck update $as_me by reconfiguring in the same conditions
16477 --file=FILE[:TEMPLATE]
16478 instantiate the configuration file FILE
16479 --header=FILE[:TEMPLATE]
16480 instantiate the configuration header FILE
16482 Configuration files:
16483 $config_files
16485 Configuration headers:
16486 $config_headers
16488 Configuration commands:
16489 $config_commands
16491 Report bugs to the package provider."
16493 _ACEOF
16494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16496 ac_cs_version="\\
16497 config.status
16498 configured by $0, generated by GNU Autoconf 2.69,
16499 with options \\"\$ac_cs_config\\"
16501 Copyright (C) 2012 Free Software Foundation, Inc.
16502 This config.status script is free software; the Free Software Foundation
16503 gives unlimited permission to copy, distribute and modify it."
16505 ac_pwd='$ac_pwd'
16506 srcdir='$srcdir'
16507 test -n "\$AWK" || AWK=awk
16508 _ACEOF
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511 # The default lists apply if the user does not specify any file.
16512 ac_need_defaults=:
16513 while test $# != 0
16515 case $1 in
16516 --*=?*)
16517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16519 ac_shift=:
16521 --*=)
16522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16523 ac_optarg=
16524 ac_shift=:
16527 ac_option=$1
16528 ac_optarg=$2
16529 ac_shift=shift
16531 esac
16533 case $ac_option in
16534 # Handling of the options.
16535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16536 ac_cs_recheck=: ;;
16537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16538 $as_echo "$ac_cs_version"; exit ;;
16539 --config | --confi | --conf | --con | --co | --c )
16540 $as_echo "$ac_cs_config"; exit ;;
16541 --debug | --debu | --deb | --de | --d | -d )
16542 debug=: ;;
16543 --file | --fil | --fi | --f )
16544 $ac_shift
16545 case $ac_optarg in
16546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16547 '') as_fn_error $? "missing file argument" ;;
16548 esac
16549 as_fn_append CONFIG_FILES " '$ac_optarg'"
16550 ac_need_defaults=false;;
16551 --header | --heade | --head | --hea )
16552 $ac_shift
16553 case $ac_optarg in
16554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16555 esac
16556 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16557 ac_need_defaults=false;;
16558 --he | --h)
16559 # Conflict between --help and --header
16560 as_fn_error $? "ambiguous option: \`$1'
16561 Try \`$0 --help' for more information.";;
16562 --help | --hel | -h )
16563 $as_echo "$ac_cs_usage"; exit ;;
16564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16566 ac_cs_silent=: ;;
16568 # This is an error.
16569 -*) as_fn_error $? "unrecognized option: \`$1'
16570 Try \`$0 --help' for more information." ;;
16572 *) as_fn_append ac_config_targets " $1"
16573 ac_need_defaults=false ;;
16575 esac
16576 shift
16577 done
16579 ac_configure_extra_args=
16581 if $ac_cs_silent; then
16582 exec 6>/dev/null
16583 ac_configure_extra_args="$ac_configure_extra_args --silent"
16586 _ACEOF
16587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16588 if \$ac_cs_recheck; then
16589 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16590 shift
16591 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16592 CONFIG_SHELL='$SHELL'
16593 export CONFIG_SHELL
16594 exec "\$@"
16597 _ACEOF
16598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16599 exec 5>>config.log
16601 echo
16602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16603 ## Running $as_me. ##
16604 _ASBOX
16605 $as_echo "$ac_log"
16606 } >&5
16608 _ACEOF
16609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16611 # INIT-COMMANDS
16614 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16615 aros_tools_dir=${aros_tools_dir}
16619 aros_host_exe_suffix=${aros_host_exe_suffix}
16620 aros_tools_dir=${aros_tools_dir}
16621 aros_target_cpu=${aros_target_cpu}
16622 aros_target_arch=${aros_target_arch}
16623 aros_target_suffix=${aros_target_suffix}
16624 orig_target_nm=${orig_target_nm}
16625 orig_target_as=${orig_target_as}
16626 orig_target_ar=${orig_target_ar}
16627 orig_target_ranlib=${orig_target_ranlib}
16628 orig_target_objdump=${orig_target_objdump}
16629 orig_target_objcopy=${orig_target_objcopy}
16630 orig_target_strip=${orig_target_strip}
16631 aros_kernel_ld=${aros_kernel_ld}
16635 aros_host_exe_suffix=${aros_host_exe_suffix}
16636 aros_tools_dir=${aros_tools_dir}
16637 aros_target_cpu=${aros_target_cpu}
16638 aros_target_arch=${aros_target_arch}
16639 aros_target_suffix=${aros_target_suffix}
16640 aros_kernel_ld=${aros_kernel_ld}
16644 aros_host_exe_suffix=${aros_host_exe_suffix}
16645 aros_tools_dir=${aros_tools_dir}
16646 aros_target_cpu=${aros_target_cpu}
16647 aros_target_arch=${aros_target_arch}
16648 aros_target_suffix=${aros_target_suffix}
16652 _ACEOF
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656 # Handling of arguments.
16657 for ac_config_target in $ac_config_targets
16659 case $ac_config_target in
16660 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16661 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16662 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16663 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16664 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16665 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16666 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16667 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16668 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16669 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16670 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16671 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16672 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16673 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16674 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16675 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16676 "${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" ;;
16677 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16678 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16679 "${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" ;;
16680 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16681 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16682 "${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" ;;
16683 "${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" ;;
16684 "${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" ;;
16685 "${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" ;;
16686 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16689 esac
16690 done
16693 # If the user did not use the arguments to specify the items to instantiate,
16694 # then the envvar interface is used. Set only those that are not.
16695 # We use the long form for the default assignment because of an extremely
16696 # bizarre bug on SunOS 4.1.3.
16697 if $ac_need_defaults; then
16698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16703 # Have a temporary directory for convenience. Make it in the build tree
16704 # simply because there is no reason against having it here, and in addition,
16705 # creating and moving files from /tmp can sometimes cause problems.
16706 # Hook for its removal unless debugging.
16707 # Note that there is a small window in which the directory will not be cleaned:
16708 # after its creation but before its name has been assigned to `$tmp'.
16709 $debug ||
16711 tmp= ac_tmp=
16712 trap 'exit_status=$?
16713 : "${ac_tmp:=$tmp}"
16714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16716 trap 'as_fn_exit 1' 1 2 13 15
16718 # Create a (secure) tmp directory for tmp files.
16721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16722 test -d "$tmp"
16723 } ||
16725 tmp=./conf$$-$RANDOM
16726 (umask 077 && mkdir "$tmp")
16727 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16728 ac_tmp=$tmp
16730 # Set up the scripts for CONFIG_FILES section.
16731 # No need to generate them if there are no CONFIG_FILES.
16732 # This happens for instance with `./config.status config.h'.
16733 if test -n "$CONFIG_FILES"; then
16736 ac_cr=`echo X | tr X '\015'`
16737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16738 # But we know of no other shell where ac_cr would be empty at this
16739 # point, so we can use a bashism as a fallback.
16740 if test "x$ac_cr" = x; then
16741 eval ac_cr=\$\'\\r\'
16743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16745 ac_cs_awk_cr='\\r'
16746 else
16747 ac_cs_awk_cr=$ac_cr
16750 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16751 _ACEOF
16755 echo "cat >conf$$subs.awk <<_ACEOF" &&
16756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16757 echo "_ACEOF"
16758 } >conf$$subs.sh ||
16759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16761 ac_delim='%!_!# '
16762 for ac_last_try in false false false false false :; do
16763 . ./conf$$subs.sh ||
16764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16767 if test $ac_delim_n = $ac_delim_num; then
16768 break
16769 elif $ac_last_try; then
16770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16771 else
16772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16774 done
16775 rm -f conf$$subs.sh
16777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16778 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16779 _ACEOF
16780 sed -n '
16782 s/^/S["/; s/!.*/"]=/
16785 s/^[^!]*!//
16786 :repl
16787 t repl
16788 s/'"$ac_delim"'$//
16789 t delim
16792 s/\(.\{148\}\)..*/\1/
16793 t more1
16794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16797 b repl
16798 :more1
16799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16802 s/.\{148\}//
16803 t nl
16804 :delim
16806 s/\(.\{148\}\)..*/\1/
16807 t more2
16808 s/["\\]/\\&/g; s/^/"/; s/$/"/
16811 :more2
16812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16815 s/.\{148\}//
16816 t delim
16817 ' <conf$$subs.awk | sed '
16818 /^[^""]/{
16820 s/\n//
16822 ' >>$CONFIG_STATUS || ac_write_fail=1
16823 rm -f conf$$subs.awk
16824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825 _ACAWK
16826 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16827 for (key in S) S_is_set[key] = 1
16828 FS = "\a"
16832 line = $ 0
16833 nfields = split(line, field, "@")
16834 substed = 0
16835 len = length(field[1])
16836 for (i = 2; i < nfields; i++) {
16837 key = field[i]
16838 keylen = length(key)
16839 if (S_is_set[key]) {
16840 value = S[key]
16841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16842 len += length(value) + length(field[++i])
16843 substed = 1
16844 } else
16845 len += 1 + keylen
16848 print line
16851 _ACAWK
16852 _ACEOF
16853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16856 else
16858 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16860 _ACEOF
16862 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16863 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16864 # trailing colons and then remove the whole line if VPATH becomes empty
16865 # (actually we leave an empty line to preserve line numbers).
16866 if test "x$srcdir" = x.; then
16867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16869 s///
16870 s/^/:/
16871 s/[ ]*$/:/
16872 s/:\$(srcdir):/:/g
16873 s/:\${srcdir}:/:/g
16874 s/:@srcdir@:/:/g
16875 s/^:*//
16876 s/:*$//
16878 s/\(=[ ]*\).*/\1/
16880 s/\n//
16881 s/^[^=]*=[ ]*$//
16885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886 fi # test -n "$CONFIG_FILES"
16888 # Set up the scripts for CONFIG_HEADERS section.
16889 # No need to generate them if there are no CONFIG_HEADERS.
16890 # This happens for instance with `./config.status Makefile'.
16891 if test -n "$CONFIG_HEADERS"; then
16892 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16893 BEGIN {
16894 _ACEOF
16896 # Transform confdefs.h into an awk script `defines.awk', embedded as
16897 # here-document in config.status, that substitutes the proper values into
16898 # config.h.in to produce config.h.
16900 # Create a delimiter string that does not exist in confdefs.h, to ease
16901 # handling of long lines.
16902 ac_delim='%!_!# '
16903 for ac_last_try in false false :; do
16904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16905 if test -z "$ac_tt"; then
16906 break
16907 elif $ac_last_try; then
16908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16909 else
16910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16912 done
16914 # For the awk script, D is an array of macro values keyed by name,
16915 # likewise P contains macro parameters if any. Preserve backslash
16916 # newline sequences.
16918 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16919 sed -n '
16920 s/.\{148\}/&'"$ac_delim"'/g
16921 t rset
16922 :rset
16923 s/^[ ]*#[ ]*define[ ][ ]*/ /
16924 t def
16926 :def
16927 s/\\$//
16928 t bsnl
16929 s/["\\]/\\&/g
16930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16931 D["\1"]=" \3"/p
16932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16934 :bsnl
16935 s/["\\]/\\&/g
16936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16937 D["\1"]=" \3\\\\\\n"\\/p
16938 t cont
16939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16940 t cont
16942 :cont
16944 s/.\{148\}/&'"$ac_delim"'/g
16945 t clear
16946 :clear
16947 s/\\$//
16948 t bsnlc
16949 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16951 :bsnlc
16952 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16953 b cont
16954 ' <confdefs.h | sed '
16955 s/'"$ac_delim"'/"\\\
16956 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 for (key in D) D_is_set[key] = 1
16960 FS = "\a"
16962 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16963 line = \$ 0
16964 split(line, arg, " ")
16965 if (arg[1] == "#") {
16966 defundef = arg[2]
16967 mac1 = arg[3]
16968 } else {
16969 defundef = substr(arg[1], 2)
16970 mac1 = arg[2]
16972 split(mac1, mac2, "(") #)
16973 macro = mac2[1]
16974 prefix = substr(line, 1, index(line, defundef) - 1)
16975 if (D_is_set[macro]) {
16976 # Preserve the white space surrounding the "#".
16977 print prefix "define", macro P[macro] D[macro]
16978 next
16979 } else {
16980 # Replace #undef with comments. This is necessary, for example,
16981 # in the case of _POSIX_SOURCE, which is predefined and required
16982 # on some systems where configure will not decide to define it.
16983 if (defundef == "undef") {
16984 print "/*", prefix defundef, macro, "*/"
16985 next
16989 { print }
16990 _ACAWK
16991 _ACEOF
16992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16994 fi # test -n "$CONFIG_HEADERS"
16997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16998 shift
16999 for ac_tag
17001 case $ac_tag in
17002 :[FHLC]) ac_mode=$ac_tag; continue;;
17003 esac
17004 case $ac_mode$ac_tag in
17005 :[FHL]*:*);;
17006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17007 :[FH]-) ac_tag=-:-;;
17008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17009 esac
17010 ac_save_IFS=$IFS
17011 IFS=:
17012 set x $ac_tag
17013 IFS=$ac_save_IFS
17014 shift
17015 ac_file=$1
17016 shift
17018 case $ac_mode in
17019 :L) ac_source=$1;;
17020 :[FH])
17021 ac_file_inputs=
17022 for ac_f
17024 case $ac_f in
17025 -) ac_f="$ac_tmp/stdin";;
17026 *) # Look for the file first in the build tree, then in the source tree
17027 # (if the path is not absolute). The absolute path cannot be DOS-style,
17028 # because $ac_f cannot contain `:'.
17029 test -f "$ac_f" ||
17030 case $ac_f in
17031 [\\/$]*) false;;
17032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17033 esac ||
17034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17035 esac
17036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17037 as_fn_append ac_file_inputs " '$ac_f'"
17038 done
17040 # Let's still pretend it is `configure' which instantiates (i.e., don't
17041 # use $as_me), people would be surprised to read:
17042 # /* config.h. Generated by config.status. */
17043 configure_input='Generated from '`
17044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17045 `' by configure.'
17046 if test x"$ac_file" != x-; then
17047 configure_input="$ac_file. $configure_input"
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17049 $as_echo "$as_me: creating $ac_file" >&6;}
17051 # Neutralize special characters interpreted by sed in replacement strings.
17052 case $configure_input in #(
17053 *\&* | *\|* | *\\* )
17054 ac_sed_conf_input=`$as_echo "$configure_input" |
17055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17056 *) ac_sed_conf_input=$configure_input;;
17057 esac
17059 case $ac_tag in
17060 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17062 esac
17064 esac
17066 ac_dir=`$as_dirname -- "$ac_file" ||
17067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17068 X"$ac_file" : 'X\(//\)[^/]' \| \
17069 X"$ac_file" : 'X\(//\)$' \| \
17070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17071 $as_echo X"$ac_file" |
17072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17073 s//\1/
17076 /^X\(\/\/\)[^/].*/{
17077 s//\1/
17080 /^X\(\/\/\)$/{
17081 s//\1/
17084 /^X\(\/\).*/{
17085 s//\1/
17088 s/.*/./; q'`
17089 as_dir="$ac_dir"; as_fn_mkdir_p
17090 ac_builddir=.
17092 case "$ac_dir" in
17093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17096 # A ".." for each directory in $ac_dir_suffix.
17097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17098 case $ac_top_builddir_sub in
17099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17101 esac ;;
17102 esac
17103 ac_abs_top_builddir=$ac_pwd
17104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17105 # for backward compatibility:
17106 ac_top_builddir=$ac_top_build_prefix
17108 case $srcdir in
17109 .) # We are building in place.
17110 ac_srcdir=.
17111 ac_top_srcdir=$ac_top_builddir_sub
17112 ac_abs_top_srcdir=$ac_pwd ;;
17113 [\\/]* | ?:[\\/]* ) # Absolute name.
17114 ac_srcdir=$srcdir$ac_dir_suffix;
17115 ac_top_srcdir=$srcdir
17116 ac_abs_top_srcdir=$srcdir ;;
17117 *) # Relative name.
17118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17119 ac_top_srcdir=$ac_top_build_prefix$srcdir
17120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17121 esac
17122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17125 case $ac_mode in
17128 # CONFIG_FILE
17131 _ACEOF
17133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17134 # If the template does not know about datarootdir, expand it.
17135 # FIXME: This hack should be removed a few years after 2.60.
17136 ac_datarootdir_hack=; ac_datarootdir_seen=
17137 ac_sed_dataroot='
17138 /datarootdir/ {
17142 /@datadir@/p
17143 /@docdir@/p
17144 /@infodir@/p
17145 /@localedir@/p
17146 /@mandir@/p'
17147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17148 *datarootdir*) ac_datarootdir_seen=yes;;
17149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17152 _ACEOF
17153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154 ac_datarootdir_hack='
17155 s&@datadir@&$datadir&g
17156 s&@docdir@&$docdir&g
17157 s&@infodir@&$infodir&g
17158 s&@localedir@&$localedir&g
17159 s&@mandir@&$mandir&g
17160 s&\\\${datarootdir}&$datarootdir&g' ;;
17161 esac
17162 _ACEOF
17164 # Neutralize VPATH when `$srcdir' = `.'.
17165 # Shell code in configure.ac might set extrasub.
17166 # FIXME: do we really want to maintain this feature?
17167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168 ac_sed_extra="$ac_vpsub
17169 $extrasub
17170 _ACEOF
17171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17174 s|@configure_input@|$ac_sed_conf_input|;t t
17175 s&@top_builddir@&$ac_top_builddir_sub&;t t
17176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17177 s&@srcdir@&$ac_srcdir&;t t
17178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17179 s&@top_srcdir@&$ac_top_srcdir&;t t
17180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17181 s&@builddir@&$ac_builddir&;t t
17182 s&@abs_builddir@&$ac_abs_builddir&;t t
17183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17184 $ac_datarootdir_hack
17186 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17187 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17189 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17190 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17191 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17192 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17194 which seems to be undefined. Please make sure it is defined" >&5
17195 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17196 which seems to be undefined. Please make sure it is defined" >&2;}
17198 rm -f "$ac_tmp/stdin"
17199 case $ac_file in
17200 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17201 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17202 esac \
17203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17207 # CONFIG_HEADER
17209 if test x"$ac_file" != x-; then
17211 $as_echo "/* $configure_input */" \
17212 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17213 } >"$ac_tmp/config.h" \
17214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17215 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17217 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17218 else
17219 rm -f "$ac_file"
17220 mv "$ac_tmp/config.h" "$ac_file" \
17221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17223 else
17224 $as_echo "/* $configure_input */" \
17225 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17226 || as_fn_error $? "could not create -" "$LINENO" 5
17230 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17231 $as_echo "$as_me: executing $ac_file commands" >&6;}
17233 esac
17236 case $ac_file$ac_mode in
17237 "genmf-executable-support":C)
17238 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17239 chmod a+x ${aros_tools_dir}/genmf.py
17241 "binutils-support":C)
17242 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17243 mkdir -p $prefix
17244 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17246 chmod a+x ${prefix2}-ld
17248 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17249 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17250 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17251 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17252 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17253 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17254 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17256 "elf-compiler-support":C)
17257 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17258 mkdir -p $prefix
17259 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17261 chmod a+x ${prefix2}-gcc
17263 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17265 "host-compiler-wrapper-support":C)
17266 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17267 mkdir -p $prefix
17268 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17270 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17273 esac
17274 done # for ac_tag
17277 as_fn_exit 0
17278 _ACEOF
17279 ac_clean_files=$ac_clean_files_save
17281 test $ac_write_fail = 0 ||
17282 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17285 # configure is writing to config.log, and then calls config.status.
17286 # config.status does its own redirection, appending to config.log.
17287 # Unfortunately, on DOS this fails, as config.log is still kept open
17288 # by configure, so config.status won't be able to write to it; its
17289 # output is simply discarded. So we exec the FD to /dev/null,
17290 # effectively closing config.log, so it can be properly (re)opened and
17291 # appended to by config.status. When coming back to configure, we
17292 # need to make the FD available again.
17293 if test "$no_create" != yes; then
17294 ac_cs_success=:
17295 ac_config_status_args=
17296 test "$silent" = yes &&
17297 ac_config_status_args="$ac_config_status_args --quiet"
17298 exec 5>/dev/null
17299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17300 exec 5>>config.log
17301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17302 # would make configure fail if this is the last instruction.
17303 $ac_cs_success || as_fn_exit 1
17305 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17307 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17312 #XXX compatability...
17313 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17315 if test -n "$aros_shared_cflags" ; then
17316 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17317 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg