correction to previous commit.
[AROS.git] / configure
blobf6436e97cc573d0afd9cbfdc63a09ec52a83c9e6
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 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 target_grub2_version
657 aros_host_sdl_libs
658 aros_host_sdl_cflags
659 aros_host_x11_ldflags
660 aros_host_x11_cflags
661 DO_VIDMODE_SUPPORT
662 DO_XSHM_SUPPORT
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 host_android_gfx
668 host_sdl_gfx
669 host_x_gfx
670 crosstools_cxx_target
671 crosstools_target
672 aros_isa_flags
673 aros_isa_extra
674 aros_optimization_cflags
675 aros_config_coverage
676 aros_config_lto
677 aros_target_strip_flags
678 aros_target_genmap
679 aros_debug_ldflags
680 aros_debug_aflags
681 aros_debug_cxxflags
682 aros_debug_cflags
683 aros_debug_cppflags
684 aros_kernel_ldflags
685 aros_kernel_objcflags
686 aros_kernel_includes
687 aros_kernel_cflags
688 aros_kernel_cppflags
689 aros_kernel_sysroot
690 aros_config_ldflags
691 aros_config_aflags
692 aros_config_cxxflags
693 aros_config_cflags
694 aros_config_cppflags
695 aros_nowarn_flags
696 aros_warn_flags
697 aros_config_sysroot
698 aros_shared_ldflags
699 aros_shared_aflags
700 aros_shared_cflags
701 aros_arch_libs
702 aros_compiler_libs
703 spec_obj_format
704 aros_object_format
705 aros_shared_ld
706 aros_shared_default
707 aros_target_nm
708 aros_target_strip
709 aros_target_objcopy
710 aros_target_objdump
711 aros_target_cc_path
712 aros_target_cc_includes
713 aros_target_ld
714 aros_target_as
715 aros_target_cpp
716 aros_target_cxx
717 aros_target_cc
718 aros_plain_ar
719 aros_plain_nm
720 aros_target_ranlib
721 aros_target_ar
722 aros_target_suffix
723 aros_target_variant
724 aros_target_cpu_mode
725 aros_target_cpu
726 aros_target_family
727 aros_target_arch
728 aros_target_bootloader
729 aros_target_iconset
730 aros_target_guitheme
731 aros_tools_dir
732 aros_host_lib_suffix
733 aros_host_exe_suffix
734 aros_host_mkargs
735 aros_host_mkdep
736 aros_host_debug
737 aros_host_ldflags
738 gnu89_inline
739 aros_host_cxxflags
740 aros_host_cflags
741 aros_host_cppflags
742 aros_host_make
743 aros_host_cxx
744 aros_host_cc
745 aros_host_def_cc
746 aros_host_cpp
747 aros_host_cpu
748 aros_host_arch
749 aros_cc_pre
750 aros_amigaos_compliance
751 AROS_PORTSSRCDIR
752 AROS_CROSSTOOLSDIR
753 SRCDIR
754 AROS_BUILDDIR_UNIX
755 AROS_BUILDDIR
756 aros_build_host
757 aros_toolchain_ld
758 aros_target_toolchain
759 aros_flavour_uc
760 aros_flavour
761 aros_cpu
762 aros_arch
763 SDL_LIBS
764 SDL_CFLAGS
765 SDL_CONFIG
766 XMKMF
767 kernel_cflags_iquote_end
768 kernel_cflags_iquote
769 host_cflags_iquote_end
770 host_cflags_iquote
771 aros_toolchain
772 aros_target_nostdlib_ldflags
773 aros_target_detach_ldflags
774 aros_target_nix_ldflags
775 aros_target_nostartup_ldflags
776 aros_target_nostdinc_cflags
777 aros_kernel_rescomp
778 orig_target_objdump
779 orig_target_objcopy
780 orig_target_strip
781 orig_target_nm
782 orig_target_ranlib
783 orig_target_ar
784 orig_target_as
785 orig_target_ld
786 orig_target_cxx
787 orig_target_cc
788 orig_target_cpp
789 aros_kernel_objdump
790 aros_kernel_objcopy
791 aros_kernel_strip
792 aros_kernel_nm
793 aros_kernel_ranlib
794 aros_kernel_ar
795 aros_kernel_as
796 aros_kernel_ld
797 aros_kernel_cxx
798 aros_kernel_cc
799 aros_kernel_cpp
800 target_gcc_version
802 android_tool
803 CCACHE
804 DISTCC
805 LIBOBJS
806 EGREP
807 GREP
809 TEST
812 libpng_incdir
813 libpng_libextra
814 libpng
815 arosconfig_use_libpngconfig
816 pkgpyexecdir
817 pyexecdir
818 pkgpythondir
819 pythondir
820 PYTHON_PLATFORM
821 PYTHON_EXEC_PREFIX
822 PYTHON_PREFIX
823 PYTHON_VERSION
824 PYTHON
825 PATCH
826 CHMOD
828 PPMTOILBM
829 PNGTOPNM
830 FLEX
831 BISON
834 UNIQ
835 SORT
836 TOUCH
837 MKDIR
838 ECHO
842 aros_host_strip
843 aros_host_ranlib
844 aros_host_ar
845 aros_host_automake
846 aros_host_autoheader
847 aros_host_autoconf
848 aros_host_aclocal
849 aros_host_ld
850 MMAKE
853 ac_ct_CC
854 CFLAGS
856 OBJEXT
857 EXEEXT
858 ac_ct_CXX
859 CPPFLAGS
860 LDFLAGS
861 CXXFLAGS
863 host_os
864 host_vendor
865 host_cpu
866 host
867 build_os
868 build_vendor
869 build_cpu
870 build
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 localstatedir
891 sharedstatedir
892 sysconfdir
893 datadir
894 datarootdir
895 libexecdir
896 sbindir
897 bindir
898 program_transform_name
899 prefix
900 exec_prefix
901 PACKAGE_URL
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 with_c_compiler
913 with_cxx_compiler
914 enable_libpng_config
915 with_toolchain
916 enable_lto
917 enable_coverage
918 enable_build_type
919 enable_debug
920 enable_distcc
921 enable_ccache
922 with_kernel_gcc_version
923 with_optimization
924 with_paranoia
925 enable_target_variant
926 with_xcode
927 with_sdk_version
928 with_sdk
929 with_ndk
930 with_ndk_version
931 with_apk_version
932 enable_amigaos_compliance
933 with_kernel_toolchain_prefix
934 with_elf_toolchain_prefix
935 with_aros_toolchain
936 enable_crosstools
937 with_aros_toolchain_install
938 with_binutils_version
939 with_gcc_version
940 enable_objc
941 enable_java
942 with_cpu
943 with_fpu
944 with_float
945 with_portssources
946 with_bootloader
947 with_iconset
948 with_theme
949 enable_includes
950 with_resolution
951 with_serial_debug
952 enable_palm_debug_hack
953 enable_usb30_code
954 enable_nesting_supervisor
955 enable_mmu
956 enable_x11_hidd
957 with_x
958 enable_x11_shm
959 enable_x11_vidmode
960 enable_sdl_hidd
961 with_sdl_prefix
962 with_sdl_exec_prefix
963 enable_sdltest
964 enable_dbus
966 ac_precious_vars='build_alias
967 host_alias
968 target_alias
970 CXXFLAGS
971 LDFLAGS
972 LIBS
973 CPPFLAGS
976 CFLAGS
978 PYTHON
979 XMKMF'
982 # Initialize some variables set by options.
983 ac_init_help=
984 ac_init_version=false
985 ac_unrecognized_opts=
986 ac_unrecognized_sep=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
989 cache_file=/dev/null
990 exec_prefix=NONE
991 no_create=
992 no_recursion=
993 prefix=NONE
994 program_prefix=NONE
995 program_suffix=NONE
996 program_transform_name=s,x,x,
997 silent=
998 site=
999 srcdir=
1000 verbose=
1001 x_includes=NONE
1002 x_libraries=NONE
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir='${exec_prefix}/bin'
1011 sbindir='${exec_prefix}/sbin'
1012 libexecdir='${exec_prefix}/libexec'
1013 datarootdir='${prefix}/share'
1014 datadir='${datarootdir}'
1015 sysconfdir='${prefix}/etc'
1016 sharedstatedir='${prefix}/com'
1017 localstatedir='${prefix}/var'
1018 includedir='${prefix}/include'
1019 oldincludedir='/usr/include'
1020 docdir='${datarootdir}/doc/${PACKAGE}'
1021 infodir='${datarootdir}/info'
1022 htmldir='${docdir}'
1023 dvidir='${docdir}'
1024 pdfdir='${docdir}'
1025 psdir='${docdir}'
1026 libdir='${exec_prefix}/lib'
1027 localedir='${datarootdir}/locale'
1028 mandir='${datarootdir}/man'
1030 ac_prev=
1031 ac_dashdash=
1032 for ac_option
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\$ac_option
1037 ac_prev=
1038 continue
1041 case $ac_option in
1042 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 *=) ac_optarg= ;;
1044 *) ac_optarg=yes ;;
1045 esac
1047 # Accept the important Cygnus configure options, so we can diagnose typos.
1049 case $ac_dashdash$ac_option in
1051 ac_dashdash=yes ;;
1053 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054 ac_prev=bindir ;;
1055 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056 bindir=$ac_optarg ;;
1058 -build | --build | --buil | --bui | --bu)
1059 ac_prev=build_alias ;;
1060 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061 build_alias=$ac_optarg ;;
1063 -cache-file | --cache-file | --cache-fil | --cache-fi \
1064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065 ac_prev=cache_file ;;
1066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068 cache_file=$ac_optarg ;;
1070 --config-cache | -C)
1071 cache_file=config.cache ;;
1073 -datadir | --datadir | --datadi | --datad)
1074 ac_prev=datadir ;;
1075 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076 datadir=$ac_optarg ;;
1078 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079 | --dataroo | --dataro | --datar)
1080 ac_prev=datarootdir ;;
1081 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083 datarootdir=$ac_optarg ;;
1085 -disable-* | --disable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=no ;;
1101 -docdir | --docdir | --docdi | --doc | --do)
1102 ac_prev=docdir ;;
1103 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104 docdir=$ac_optarg ;;
1106 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107 ac_prev=dvidir ;;
1108 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109 dvidir=$ac_optarg ;;
1111 -enable-* | --enable-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid feature name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval enable_$ac_useropt=\$ac_optarg ;;
1127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129 | --exec | --exe | --ex)
1130 ac_prev=exec_prefix ;;
1131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133 | --exec=* | --exe=* | --ex=*)
1134 exec_prefix=$ac_optarg ;;
1136 -gas | --gas | --ga | --g)
1137 # Obsolete; use --with-gas.
1138 with_gas=yes ;;
1140 -help | --help | --hel | --he | -h)
1141 ac_init_help=long ;;
1142 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143 ac_init_help=recursive ;;
1144 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145 ac_init_help=short ;;
1147 -host | --host | --hos | --ho)
1148 ac_prev=host_alias ;;
1149 -host=* | --host=* | --hos=* | --ho=*)
1150 host_alias=$ac_optarg ;;
1152 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153 ac_prev=htmldir ;;
1154 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155 | --ht=*)
1156 htmldir=$ac_optarg ;;
1158 -includedir | --includedir | --includedi | --included | --include \
1159 | --includ | --inclu | --incl | --inc)
1160 ac_prev=includedir ;;
1161 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162 | --includ=* | --inclu=* | --incl=* | --inc=*)
1163 includedir=$ac_optarg ;;
1165 -infodir | --infodir | --infodi | --infod | --info | --inf)
1166 ac_prev=infodir ;;
1167 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168 infodir=$ac_optarg ;;
1170 -libdir | --libdir | --libdi | --libd)
1171 ac_prev=libdir ;;
1172 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173 libdir=$ac_optarg ;;
1175 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176 | --libexe | --libex | --libe)
1177 ac_prev=libexecdir ;;
1178 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179 | --libexe=* | --libex=* | --libe=*)
1180 libexecdir=$ac_optarg ;;
1182 -localedir | --localedir | --localedi | --localed | --locale)
1183 ac_prev=localedir ;;
1184 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185 localedir=$ac_optarg ;;
1187 -localstatedir | --localstatedir | --localstatedi | --localstated \
1188 | --localstate | --localstat | --localsta | --localst | --locals)
1189 ac_prev=localstatedir ;;
1190 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192 localstatedir=$ac_optarg ;;
1194 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195 ac_prev=mandir ;;
1196 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197 mandir=$ac_optarg ;;
1199 -nfp | --nfp | --nf)
1200 # Obsolete; use --without-fp.
1201 with_fp=no ;;
1203 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204 | --no-cr | --no-c | -n)
1205 no_create=yes ;;
1207 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209 no_recursion=yes ;;
1211 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213 | --oldin | --oldi | --old | --ol | --o)
1214 ac_prev=oldincludedir ;;
1215 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218 oldincludedir=$ac_optarg ;;
1220 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221 ac_prev=prefix ;;
1222 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223 prefix=$ac_optarg ;;
1225 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226 | --program-pre | --program-pr | --program-p)
1227 ac_prev=program_prefix ;;
1228 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230 program_prefix=$ac_optarg ;;
1232 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233 | --program-suf | --program-su | --program-s)
1234 ac_prev=program_suffix ;;
1235 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237 program_suffix=$ac_optarg ;;
1239 -program-transform-name | --program-transform-name \
1240 | --program-transform-nam | --program-transform-na \
1241 | --program-transform-n | --program-transform- \
1242 | --program-transform | --program-transfor \
1243 | --program-transfo | --program-transf \
1244 | --program-trans | --program-tran \
1245 | --progr-tra | --program-tr | --program-t)
1246 ac_prev=program_transform_name ;;
1247 -program-transform-name=* | --program-transform-name=* \
1248 | --program-transform-nam=* | --program-transform-na=* \
1249 | --program-transform-n=* | --program-transform-=* \
1250 | --program-transform=* | --program-transfor=* \
1251 | --program-transfo=* | --program-transf=* \
1252 | --program-trans=* | --program-tran=* \
1253 | --progr-tra=* | --program-tr=* | --program-t=*)
1254 program_transform_name=$ac_optarg ;;
1256 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257 ac_prev=pdfdir ;;
1258 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259 pdfdir=$ac_optarg ;;
1261 -psdir | --psdir | --psdi | --psd | --ps)
1262 ac_prev=psdir ;;
1263 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264 psdir=$ac_optarg ;;
1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267 | -silent | --silent | --silen | --sile | --sil)
1268 silent=yes ;;
1270 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271 ac_prev=sbindir ;;
1272 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273 | --sbi=* | --sb=*)
1274 sbindir=$ac_optarg ;;
1276 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1277 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1278 | --sharedst | --shareds | --shared | --share | --shar \
1279 | --sha | --sh)
1280 ac_prev=sharedstatedir ;;
1281 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1282 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1283 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284 | --sha=* | --sh=*)
1285 sharedstatedir=$ac_optarg ;;
1287 -site | --site | --sit)
1288 ac_prev=site ;;
1289 -site=* | --site=* | --sit=*)
1290 site=$ac_optarg ;;
1292 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293 ac_prev=srcdir ;;
1294 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1295 srcdir=$ac_optarg ;;
1297 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1298 | --syscon | --sysco | --sysc | --sys | --sy)
1299 ac_prev=sysconfdir ;;
1300 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1301 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1302 sysconfdir=$ac_optarg ;;
1304 -target | --target | --targe | --targ | --tar | --ta | --t)
1305 ac_prev=target_alias ;;
1306 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1307 target_alias=$ac_optarg ;;
1309 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310 verbose=yes ;;
1312 -version | --version | --versio | --versi | --vers | -V)
1313 ac_init_version=: ;;
1315 -with-* | --with-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=\$ac_optarg ;;
1331 -without-* | --without-*)
1332 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335 as_fn_error $? "invalid package name: $ac_useropt"
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1340 "with_$ac_useropt"
1341 "*) ;;
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=no ;;
1347 --x)
1348 # Obsolete; use --with-x.
1349 with_x=yes ;;
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1365 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1366 Try \`$0 --help' for more information"
1369 *=*)
1370 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371 # Reject names that are not valid shell variable names.
1372 case $ac_envvar in #(
1373 '' | [0-9]* | *[!_$as_cr_alnum]* )
1374 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1375 esac
1376 eval $ac_envvar=\$ac_optarg
1377 export $ac_envvar ;;
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1387 esac
1388 done
1390 if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392 as_fn_error $? "missing argument to $ac_option"
1395 if test -n "$ac_unrecognized_opts"; then
1396 case $enable_option_checking in
1397 no) ;;
1398 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1399 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1400 esac
1403 # Check all directory arguments for consistency.
1404 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1405 datadir sysconfdir sharedstatedir localstatedir includedir \
1406 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1407 libdir localedir mandir
1409 eval ac_val=\$$ac_var
1410 # Remove trailing slashes.
1411 case $ac_val in
1412 */ )
1413 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1414 eval $ac_var=\$ac_val;;
1415 esac
1416 # Be sure to have absolute directory names.
1417 case $ac_val in
1418 [\\/$]* | ?:[\\/]* ) continue;;
1419 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420 esac
1421 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1422 done
1424 # There might be people who depend on the old broken behavior: `$host'
1425 # used to hold the argument of --host etc.
1426 # FIXME: To remove some day.
1427 build=$build_alias
1428 host=$host_alias
1429 target=$target_alias
1431 # FIXME: To remove some day.
1432 if test "x$host_alias" != x; then
1433 if test "x$build_alias" = x; then
1434 cross_compiling=maybe
1435 elif test "x$build_alias" != "x$host_alias"; then
1436 cross_compiling=yes
1440 ac_tool_prefix=
1441 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443 test "$silent" = yes && exec 6>/dev/null
1446 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447 ac_ls_di=`ls -di .` &&
1448 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449 as_fn_error $? "working directory cannot be determined"
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 as_fn_error $? "pwd does not report name of working directory"
1454 # Find the source files, if location was not specified.
1455 if test -z "$srcdir"; then
1456 ac_srcdir_defaulted=yes
1457 # Try the directory containing this script, then the parent directory.
1458 ac_confdir=`$as_dirname -- "$as_myself" ||
1459 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460 X"$as_myself" : 'X\(//\)[^/]' \| \
1461 X"$as_myself" : 'X\(//\)$' \| \
1462 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463 $as_echo X"$as_myself" |
1464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 s//\1/
1468 /^X\(\/\/\)[^/].*/{
1469 s//\1/
1472 /^X\(\/\/\)$/{
1473 s//\1/
1476 /^X\(\/\).*/{
1477 s//\1/
1480 s/.*/./; q'`
1481 srcdir=$ac_confdir
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 srcdir=..
1485 else
1486 ac_srcdir_defaulted=no
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1490 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1492 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1493 ac_abs_confdir=`(
1494 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1495 pwd)`
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498 srcdir=.
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1503 case $srcdir in
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 esac
1506 for ac_var in $ac_precious_vars; do
1507 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_${ac_var}_value=\$${ac_var}
1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511 done
1514 # Report the --help message.
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1519 cat <<_ACEOF
1520 \`configure' configures this package to adapt to many kinds of systems.
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1527 Defaults for the options are specified in brackets.
1529 Configuration:
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking ...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1544 [PREFIX]
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1551 For better control, use the options below.
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1573 _ACEOF
1575 cat <<\_ACEOF
1577 X features:
1578 --x-includes=DIR X include files are in DIR
1579 --x-libraries=DIR X library files are in DIR
1581 System types:
1582 --build=BUILD configure for building on BUILD [guessed]
1583 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1584 _ACEOF
1587 if test -n "$ac_init_help"; then
1589 cat <<\_ACEOF
1591 Optional Features:
1592 --disable-option-checking ignore unrecognized --enable/--with options
1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1595 --disable-libpng-config disable libpng-config test and configuration
1596 --enable-lto=yes|no Enable link time optimizations if the target
1597 compiler supports them (default=no)
1598 --enable-coverage=yes|no
1599 Enable coverage instrumentation if the target
1600 compiler supports it (default=no)
1601 --enable-build-type=TYPE
1602 Select the build type. Available types are:
1603 personal, nightly, snapshot, milestone, release. Do
1604 NOT use this option unless you know what you are
1605 doing! (default=personal)
1606 --enable-debug=list Enable different types of debug. Commas or
1607 whitespaces can be used to separate the items in the
1608 list. Available types of debug are: all, none,
1609 messages, stack, mungwall, modules, symbols. If no
1610 list is provided then "all" is assumed.
1611 (default=none)
1612 --enable-distcc Use distcc as a front end to the compiler
1613 (default=no).
1614 --enable-ccache Use ccache as a front end to the compiler
1615 (default=no).
1616 --enable-target-variant=NAME
1617 Enable a specific target variant (default=none)
1618 --enable-amigaos-compliance=VERSION
1619 Enforce userspace AmigaOS compliance to a specific
1620 KickStart version (default=none).
1621 --disable-crosstools Do not build cross-compiler toolchain
1622 --enable-objc Enable Objectve-C support (default=no)
1623 --enable-java Enable Java support (default=no)
1624 --enable-includes=dir Alternative system include directory
1625 --enable-palm-debug-hack
1626 Enable palm debug output hack in palm native
1627 (default=no)
1628 --enable-usb30-code Enable usb3.0 code (default=no)
1629 --enable-nesting-supervisor
1630 Enable nesting supervisor support in unix
1631 (default=no)
1632 --disable-mmu Disable MMU support (default=enabled)
1633 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1634 --enable-x11-shm use X11 shared memory (default=auto)
1635 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1636 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1637 --disable-sdltest Do not try to compile and run a test SDL program
1638 --enable-dbus Enable DBUS support via dbus.library (default=no)
1640 Optional Packages:
1641 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1642 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1643 --with-c-compiler=VERSION
1644 Use specified c compiler for building AROS
1645 --with-cxx-compiler=VERSION
1646 Use specified c++ compiler building AROS
1647 --with-toolchain=family Which toolchain family to crosscompile with
1648 (defaults to gnu)
1649 --with-kernel-gcc-version=VERSION
1650 Use gcc-VERSION for building bootstrap
1651 --with-optimization=FLAGS
1652 Use optimization flags FLAGS (e.g
1653 --with-optimization=-O2).
1654 --with-paranoia=(yes|no|FLAGS)
1655 Specific compiler warning FLAGS to enable for
1656 paranoia builds (default=-Wall -Werror)
1657 --with-xcode=PATH Specify XCode path for iOS targets
1658 (default=/Developer).
1659 --with-sdk-version=VERSION
1660 Use iOS SDK version VERSION (default=4.1).
1661 --with-sdk=PATH Specify Android SDK path
1662 (default=$default_android_sdk).
1663 --with-ndk=PATH Specify Android NDK path (default=none).
1664 --with-sdk-version=LEVEL
1665 Use Android SDK for API LEVEL (default=12).
1666 --with-ndk-version=LEVEL
1667 Use Android NDK for API LEVEL (default=9).
1668 --with-apk-version=(release|debug)
1669 Which version of AROSBootstrap.apk to compile.
1670 Release version needs key for signing, debug version
1671 will only run in emulator. (default=release)
1672 --with-kernel-toolchain-prefix=...
1673 Specify crosscompile toolchain prefix for kernel
1674 objects
1675 --with-elf-toolchain-prefix=...
1676 Specify crosscompile toolchain prefix to wrap for
1677 AROS objects
1678 --with-aros-toolchain=PREFIX
1679 Specify prebuilt AROS toolchain. Use yes for default
1680 name
1681 --with-aros-toolchain-install=DIR
1682 Where to install or search for cross tools binaries
1683 --with-binutils-version=VERSION
1684 Use binutils-VERSION for building AROS
1685 --with-gcc-version=VERSION
1686 Compile gcc-VERSION for AROS
1687 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1688 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1689 --with-float=<spec> Specify floating point ABI
1690 (default=$gcc_default_float_abi).
1691 --with-portssources=DIR Where to download sourcecode for external ports
1692 --with-bootloader=NAME Use a specific bootloader
1693 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1694 --with-theme=NAME Use a specific GUI Theme
1695 --with-resolution=XRESxYRESxDEPTH
1696 Default resolution of the initial WorkbenchScreen
1697 --with-serial-debug Enable serial debug output in native (default=no)
1698 --with-x use the X Window System
1699 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1700 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1702 Some influential environment variables:
1703 CXX C++ compiler command
1704 CXXFLAGS C++ compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 CC C compiler command
1711 CFLAGS C compiler flags
1712 CPP C preprocessor
1713 PYTHON the Python interpreter
1714 XMKMF Path to xmkmf, Makefile generator for X Window System
1716 Use these variables to override the choices made by `configure' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1719 Report bugs to the package provider.
1720 _ACEOF
1721 ac_status=$?
1724 if test "$ac_init_help" = "recursive"; then
1725 # If there are subdirs, report their specific --help.
1726 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1727 test -d "$ac_dir" ||
1728 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1729 continue
1730 ac_builddir=.
1732 case "$ac_dir" in
1733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1736 # A ".." for each directory in $ac_dir_suffix.
1737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1738 case $ac_top_builddir_sub in
1739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1741 esac ;;
1742 esac
1743 ac_abs_top_builddir=$ac_pwd
1744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1745 # for backward compatibility:
1746 ac_top_builddir=$ac_top_build_prefix
1748 case $srcdir in
1749 .) # We are building in place.
1750 ac_srcdir=.
1751 ac_top_srcdir=$ac_top_builddir_sub
1752 ac_abs_top_srcdir=$ac_pwd ;;
1753 [\\/]* | ?:[\\/]* ) # Absolute name.
1754 ac_srcdir=$srcdir$ac_dir_suffix;
1755 ac_top_srcdir=$srcdir
1756 ac_abs_top_srcdir=$srcdir ;;
1757 *) # Relative name.
1758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1759 ac_top_srcdir=$ac_top_build_prefix$srcdir
1760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1761 esac
1762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764 cd "$ac_dir" || { ac_status=$?; continue; }
1765 # Check for guested configure.
1766 if test -f "$ac_srcdir/configure.gnu"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1769 elif test -f "$ac_srcdir/configure"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure" --help=recursive
1772 else
1773 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 fi || ac_status=$?
1775 cd "$ac_pwd" || { ac_status=$?; break; }
1776 done
1779 test -n "$ac_init_help" && exit $ac_status
1780 if $ac_init_version; then
1781 cat <<\_ACEOF
1782 configure
1783 generated by GNU Autoconf 2.69
1785 Copyright (C) 2012 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1788 _ACEOF
1789 exit
1792 ## ------------------------ ##
1793 ## Autoconf initialization. ##
1794 ## ------------------------ ##
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=1
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_cpp ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=1
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_cpp
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_c_check_header_mongrel ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2002 rm -f conftest.err conftest.i conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 eval "$3=\$ac_header_compiler"
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_mongrel
2042 # ac_fn_c_try_run LINENO
2043 # ----------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045 # that executables *can* be run.
2046 ac_fn_c_try_run ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if { { ac_try="$ac_link"
2050 case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_link") 2>&5
2057 ac_status=$?
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2060 { { case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_try") 2>&5
2067 ac_status=$?
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; }; }; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: program exited with status $ac_status" >&5
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=$ac_status
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status $ac_retval
2082 } # ac_fn_c_try_run
2084 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2085 # -------------------------------------------------------
2086 # Tests whether HEADER exists and can be compiled using the include files in
2087 # INCLUDES, setting the cache variable VAR accordingly.
2088 ac_fn_c_check_header_compile ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095 else
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$3=yes"
2103 else
2104 eval "$3=no"
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_header_compile
2115 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116 # ----------------------------------------------------
2117 # Tries to find if the field MEMBER exists in type AGGR, after including
2118 # INCLUDES, setting cache variable VAR accordingly.
2119 ac_fn_c_check_member ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123 $as_echo_n "checking for $2.$3... " >&6; }
2124 if eval \${$4+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static $2 ac_aggr;
2134 if (ac_aggr.$3)
2135 return 0;
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 eval "$4=yes"
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static $2 ac_aggr;
2150 if (sizeof ac_aggr.$3)
2151 return 0;
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158 else
2159 eval "$4=no"
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 eval ac_res=\$$4
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_member
2172 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2173 # ---------------------------------------------
2174 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2175 # accordingly.
2176 ac_fn_c_check_decl ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 as_decl_name=`echo $2|sed 's/ *(.*//'`
2180 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2182 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 #ifndef $as_decl_name
2193 #ifdef __cplusplus
2194 (void) $as_decl_use;
2195 #else
2196 (void) $as_decl_name;
2197 #endif
2198 #endif
2201 return 0;
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 eval "$3=yes"
2206 else
2207 eval "$3=no"
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 } # ac_fn_c_check_decl
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 eval "$3=no"
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 if (sizeof ($2))
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 if (sizeof (($2)))
2251 return 0;
2253 return 0;
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2258 else
2259 eval "$3=yes"
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_type
2272 # ac_fn_c_check_func LINENO FUNC VAR
2273 # ----------------------------------
2274 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2275 ac_fn_c_check_func ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2287 #define $2 innocuous_$2
2289 /* System header to define __stub macros and hopefully few prototypes,
2290 which can conflict with char $2 (); below.
2291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2292 <limits.h> exists even on freestanding compilers. */
2294 #ifdef __STDC__
2295 # include <limits.h>
2296 #else
2297 # include <assert.h>
2298 #endif
2300 #undef $2
2302 /* Override any GCC internal prototype to avoid an error.
2303 Use char because int might match the return type of a GCC
2304 builtin and then its argument prototype would still apply. */
2305 #ifdef __cplusplus
2306 extern "C"
2307 #endif
2308 char $2 ();
2309 /* The GNU C library defines this for functions which it implements
2310 to always fail with ENOSYS. Some functions are actually named
2311 something starting with __ and the normal name is an alias. */
2312 #if defined __stub_$2 || defined __stub___$2
2313 choke me
2314 #endif
2317 main ()
2319 return $2 ();
2321 return 0;
2323 _ACEOF
2324 if ac_fn_c_try_link "$LINENO"; then :
2325 eval "$3=yes"
2326 else
2327 eval "$3=no"
2329 rm -f core conftest.err conftest.$ac_objext \
2330 conftest$ac_exeext conftest.$ac_ext
2332 eval ac_res=\$$3
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 } # ac_fn_c_check_func
2338 cat >config.log <<_ACEOF
2339 This file contains any messages produced by compilers while
2340 running configure, to aid debugging if configure makes a mistake.
2342 It was created by $as_me, which was
2343 generated by GNU Autoconf 2.69. Invocation command line was
2345 $ $0 $@
2347 _ACEOF
2348 exec 5>>config.log
2350 cat <<_ASUNAME
2351 ## --------- ##
2352 ## Platform. ##
2353 ## --------- ##
2355 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2356 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2357 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2358 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2359 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2362 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2364 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2365 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2366 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2367 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2368 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2369 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2370 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2372 _ASUNAME
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 $as_echo "PATH: $as_dir"
2380 done
2381 IFS=$as_save_IFS
2383 } >&5
2385 cat >&5 <<_ACEOF
2388 ## ----------- ##
2389 ## Core tests. ##
2390 ## ----------- ##
2392 _ACEOF
2395 # Keep a trace of the command line.
2396 # Strip out --no-create and --no-recursion so they do not pile up.
2397 # Strip out --silent because we don't want to record it for future runs.
2398 # Also quote any args containing shell meta-characters.
2399 # Make two passes to allow for proper duplicate-argument suppression.
2400 ac_configure_args=
2401 ac_configure_args0=
2402 ac_configure_args1=
2403 ac_must_keep_next=false
2404 for ac_pass in 1 2
2406 for ac_arg
2408 case $ac_arg in
2409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2411 | -silent | --silent | --silen | --sile | --sil)
2412 continue ;;
2413 *\'*)
2414 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 esac
2416 case $ac_pass in
2417 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419 as_fn_append ac_configure_args1 " '$ac_arg'"
2420 if test $ac_must_keep_next = true; then
2421 ac_must_keep_next=false # Got value, back to normal.
2422 else
2423 case $ac_arg in
2424 *=* | --config-cache | -C | -disable-* | --disable-* \
2425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2427 | -with-* | --with-* | -without-* | --without-* | --x)
2428 case "$ac_configure_args0 " in
2429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2430 esac
2432 -* ) ac_must_keep_next=true ;;
2433 esac
2435 as_fn_append ac_configure_args " '$ac_arg'"
2437 esac
2438 done
2439 done
2440 { ac_configure_args0=; unset ac_configure_args0;}
2441 { ac_configure_args1=; unset ac_configure_args1;}
2443 # When interrupted or exit'd, cleanup temporary files, and complete
2444 # config.log. We remove comments because anyway the quotes in there
2445 # would cause problems or look ugly.
2446 # WARNING: Use '\'' to represent an apostrophe within the trap.
2447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2448 trap 'exit_status=$?
2449 # Save into config.log some information that might help in debugging.
2451 echo
2453 $as_echo "## ---------------- ##
2454 ## Cache variables. ##
2455 ## ---------------- ##"
2456 echo
2457 # The following way of writing the cache mishandles newlines in values,
2459 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in #(
2462 *${as_nl}*)
2463 case $ac_var in #(
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2466 esac
2467 case $ac_var in #(
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2471 esac ;;
2472 esac
2473 done
2474 (set) 2>&1 |
2475 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2477 sed -n \
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2480 ;; #(
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2484 esac |
2485 sort
2487 echo
2489 $as_echo "## ----------------- ##
2490 ## Output variables. ##
2491 ## ----------------- ##"
2492 echo
2493 for ac_var in $ac_subst_vars
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2503 if test -n "$ac_subst_files"; then
2504 $as_echo "## ------------------- ##
2505 ## File substitutions. ##
2506 ## ------------------- ##"
2507 echo
2508 for ac_var in $ac_subst_files
2510 eval ac_val=\$$ac_var
2511 case $ac_val in
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 esac
2514 $as_echo "$ac_var='\''$ac_val'\''"
2515 done | sort
2516 echo
2519 if test -s confdefs.h; then
2520 $as_echo "## ----------- ##
2521 ## confdefs.h. ##
2522 ## ----------- ##"
2523 echo
2524 cat confdefs.h
2525 echo
2527 test "$ac_signal" != 0 &&
2528 $as_echo "$as_me: caught signal $ac_signal"
2529 $as_echo "$as_me: exit $exit_status"
2530 } >&5
2531 rm -f core *.core core.conftest.* &&
2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2533 exit $exit_status
2535 for ac_signal in 1 2 13 15; do
2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 done
2538 ac_signal=0
2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2541 rm -f -r conftest* confdefs.h
2543 $as_echo "/* confdefs.h */" > confdefs.h
2545 # Predefined preprocessor variables.
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_NAME "$PACKAGE_NAME"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2553 _ACEOF
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2557 _ACEOF
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_STRING "$PACKAGE_STRING"
2561 _ACEOF
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2565 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_URL "$PACKAGE_URL"
2569 _ACEOF
2572 # Let the site file select an alternate cache file if it wants to.
2573 # Prefer an explicitly selected file to automatically selected ones.
2574 ac_site_file1=NONE
2575 ac_site_file2=NONE
2576 if test -n "$CONFIG_SITE"; then
2577 # We do not want a PATH search for config.site.
2578 case $CONFIG_SITE in #((
2579 -*) ac_site_file1=./$CONFIG_SITE;;
2580 */*) ac_site_file1=$CONFIG_SITE;;
2581 *) ac_site_file1=./$CONFIG_SITE;;
2582 esac
2583 elif test "x$prefix" != xNONE; then
2584 ac_site_file1=$prefix/share/config.site
2585 ac_site_file2=$prefix/etc/config.site
2586 else
2587 ac_site_file1=$ac_default_prefix/share/config.site
2588 ac_site_file2=$ac_default_prefix/etc/config.site
2590 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 test "x$ac_site_file" = xNONE && continue
2593 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2595 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2596 sed 's/^/| /' "$ac_site_file" >&5
2597 . "$ac_site_file" \
2598 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 as_fn_error $? "failed to load site script $ac_site_file
2601 See \`config.log' for more details" "$LINENO" 5; }
2603 done
2605 if test -r "$cache_file"; then
2606 # Some versions of bash will fail to source /dev/null (special files
2607 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2608 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2610 $as_echo "$as_me: loading cache $cache_file" >&6;}
2611 case $cache_file in
2612 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2613 *) . "./$cache_file";;
2614 esac
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2618 $as_echo "$as_me: creating cache $cache_file" >&6;}
2619 >$cache_file
2622 as_fn_append ac_header_list " stdlib.h"
2623 as_fn_append ac_header_list " unistd.h"
2624 as_fn_append ac_header_list " sys/param.h"
2625 # Check that the precious variables saved in the cache have kept the same
2626 # value.
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2634 set,)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2638 ,set)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2642 ,);;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x $ac_old_val`
2647 ac_new_val_w=`echo x $ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2651 ac_cache_corrupted=:
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2661 fi;;
2662 esac
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2665 case $ac_new_val in
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2668 esac
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2672 esac
2674 done
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 ac_aux_dir=
2695 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2696 if test -f "$ac_dir/install-sh"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/install-sh -c"
2699 break
2700 elif test -f "$ac_dir/install.sh"; then
2701 ac_aux_dir=$ac_dir
2702 ac_install_sh="$ac_aux_dir/install.sh -c"
2703 break
2704 elif test -f "$ac_dir/shtool"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/shtool install -c"
2707 break
2709 done
2710 if test -z "$ac_aux_dir"; then
2711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2714 # These three variables are undocumented and unsupported,
2715 # and are intended to be withdrawn in a future Autoconf release.
2716 # They can cause serious problems if a builder's source tree is in a directory
2717 # whose full name contains unusual characters.
2718 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2719 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2720 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2724 # Check what host we are running on.
2725 # If a target is not suggested, we use this one.
2726 # Note that what we call a target, Autoconf calls a host.
2727 # Make sure we can run config.sub.
2728 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2729 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2732 $as_echo_n "checking build system type... " >&6; }
2733 if ${ac_cv_build+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 ac_build_alias=$build_alias
2737 test "x$ac_build_alias" = x &&
2738 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2739 test "x$ac_build_alias" = x &&
2740 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2746 $as_echo "$ac_cv_build" >&6; }
2747 case $ac_cv_build in
2748 *-*-*) ;;
2749 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2750 esac
2751 build=$ac_cv_build
2752 ac_save_IFS=$IFS; IFS='-'
2753 set x $ac_cv_build
2754 shift
2755 build_cpu=$1
2756 build_vendor=$2
2757 shift; shift
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2760 build_os=$*
2761 IFS=$ac_save_IFS
2762 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2766 $as_echo_n "checking host system type... " >&6; }
2767 if ${ac_cv_host+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test "x$host_alias" = x; then
2771 ac_cv_host=$ac_cv_build
2772 else
2773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2779 $as_echo "$ac_cv_host" >&6; }
2780 case $ac_cv_host in
2781 *-*-*) ;;
2782 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2783 esac
2784 host=$ac_cv_host
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_host
2787 shift
2788 host_cpu=$1
2789 host_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 host_os=$*
2794 IFS=$ac_save_IFS
2795 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 # Default versions for the gnu tools we build
2800 default_gcc_version="4.6.4"
2801 default_binutils_version="2.23.2"
2802 default_grub2_version="2.02"
2803 target_grub2_version=$default_grub2_version
2805 # The AROS target is slightly different to the normal GNU style
2806 # format. We don't have the middle part, and we reverse the order
2807 # of the $(CPU) and $(OS) bits.
2809 # Don't strip the version of the target yet, it might be
2810 # useful on some systems.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2813 $as_echo_n "checking for AROS style target... " >&6; }
2815 if test "$target" = "NONE" ; then
2816 target=$host_os-$host_cpu
2817 else
2818 if test "$target" = "" ; then
2819 target=$host_os-$host_cpu
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2823 $as_echo "$target" >&6; }
2825 if test "$host_os" = "mingw32" ; then
2826 PWDCMD="pwd -W"
2829 # Don't know where else to put this...
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2831 $as_echo_n "checking building AROS in... " >&6; }
2832 AROS_BUILDDIR=`${PWDCMD-pwd}`
2833 AROS_BUILDDIR_UNIX=${PWD}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2835 $as_echo "$AROS_BUILDDIR" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2838 $as_echo_n "checking AROS source in... " >&6; }
2839 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2840 SRCDIR=${srcpwd}
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2842 $as_echo "$SRCDIR" >&6; }
2844 # Parse the target field into something useful.
2846 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2847 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2850 # Some debug output, to be removed again.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2852 $as_echo_n "checking for target system (debug output)... " >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2854 $as_echo "$target_os" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2856 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2858 $as_echo "$target_cpu" >&6; }
2860 aros_nominal_width=800
2861 aros_nominal_height=600
2862 aros_nominal_depth=4
2865 default_c_compilers="gcc clang cc"
2867 # Check whether --with-c-compiler was given.
2868 if test "${with_c_compiler+set}" = set; then :
2869 withval=$with_c_compiler; use_c_compiler="$withval"
2870 else
2871 use_c_compiler=""
2874 if test "$use_c_compiler" = ""; then
2875 host_c_compilers="$default_c_compilers"
2876 else
2877 host_c_compilers="$use_c_compiler"
2880 default_cxx_compilers="g++ clang++ c++"
2882 # Check whether --with-cxx-compiler was given.
2883 if test "${with_cxx_compiler+set}" = set; then :
2884 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2885 else
2886 use_cxx_compiler=""
2889 if test "$use_cxx_compiler" = ""; then
2890 host_cxx_compilers="$default_cxx_compilers"
2891 else
2892 host_cxx_compilers="$use_cxx_compiler"
2896 # The first step is to find the host binaries.
2897 # Check for a compiler.
2898 # Due to a bug in autoconf check for c++ compiler first.
2899 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2900 ac_ext=cpp
2901 ac_cpp='$CXXCPP $CPPFLAGS'
2902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2905 if test -z "$CXX"; then
2906 if test -n "$CCC"; then
2907 CXX=$CCC
2908 else
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in ${host_cxx_compilers}
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CXX+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$CXX"; then
2920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2935 IFS=$as_save_IFS
2939 CXX=$ac_cv_prog_CXX
2940 if test -n "$CXX"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2942 $as_echo "$CXX" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$CXX" && break
2950 done
2952 if test -z "$CXX"; then
2953 ac_ct_CXX=$CXX
2954 for ac_prog in ${host_cxx_compilers}
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$ac_ct_CXX"; then
2964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_ac_ct_CXX="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2977 done
2978 done
2979 IFS=$as_save_IFS
2983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2984 if test -n "$ac_ct_CXX"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2986 $as_echo "$ac_ct_CXX" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$ac_ct_CXX" && break
2994 done
2996 if test "x$ac_ct_CXX" = x; then
2997 CXX="g++"
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 CXX=$ac_ct_CXX
3011 # Provide some information about the compiler.
3012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3013 set X $ac_compile
3014 ac_compiler=$2
3015 for ac_option in --version -v -V -qversion; do
3016 { { ac_try="$ac_compiler $ac_option >&5"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3024 ac_status=$?
3025 if test -s conftest.err; then
3026 sed '10a\
3027 ... rest of stderr output deleted ...
3028 10q' conftest.err >conftest.er1
3029 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3034 done
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 ac_clean_files_save=$ac_clean_files
3048 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3049 # Try to create an executable without -o first, disregard a.out.
3050 # It will help us diagnose broken compilers, and finding out an intuition
3051 # of exeext.
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3053 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3054 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3056 # The possible output files:
3057 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3059 ac_rmfiles=
3060 for ac_file in $ac_files
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3065 esac
3066 done
3067 rm -f $ac_rmfiles
3069 if { { ac_try="$ac_link_default"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link_default") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3081 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3083 # so that the user can short-circuit this test for compilers unknown to
3084 # Autoconf.
3085 for ac_file in $ac_files ''
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3091 [ab].out )
3092 # We found the default executable, but exeext='' is most
3093 # certainly right.
3094 break;;
3095 *.* )
3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3097 then :; else
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # We set ac_cv_exeext here because the later test for it is not
3101 # safe: cross compilers may not add the suffix if given an `-o'
3102 # argument, so we may need to know it at that point already.
3103 # Even if this section looks crufty: it has the advantage of
3104 # actually working.
3105 break;;
3107 break;;
3108 esac
3109 done
3110 test "$ac_cv_exeext" = no && ac_cv_exeext=
3112 else
3113 ac_file=''
3115 if test -z "$ac_file"; then :
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 $as_echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error 77 "C++ compiler cannot create executables
3124 See \`config.log' for more details" "$LINENO" 5; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3130 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3132 $as_echo "$ac_file" >&6; }
3133 ac_exeext=$ac_cv_exeext
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3138 $as_echo_n "checking for suffix of executables... " >&6; }
3139 if { { ac_try="$ac_link"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3152 # work properly (i.e., refer to `conftest.exe'), while it won't with
3153 # `rm'.
3154 for ac_file in conftest.exe conftest conftest.*; do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159 break;;
3160 * ) break;;
3161 esac
3162 done
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 rm -f conftest conftest$ac_cv_exeext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3171 $as_echo "$ac_cv_exeext" >&6; }
3173 rm -f conftest.$ac_ext
3174 EXEEXT=$ac_cv_exeext
3175 ac_exeext=$EXEEXT
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 #include <stdio.h>
3180 main ()
3182 FILE *f = fopen ("conftest.out", "w");
3183 return ferror (f) || fclose (f) != 0;
3186 return 0;
3188 _ACEOF
3189 ac_clean_files="$ac_clean_files conftest.out"
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3193 $as_echo_n "checking whether we are cross compiling... " >&6; }
3194 if test "$cross_compiling" != yes; then
3195 { { ac_try="$ac_link"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3206 if { ac_try='./conftest$ac_cv_exeext'
3207 { { case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; }; then
3217 cross_compiling=no
3218 else
3219 if test "$cross_compiling" = maybe; then
3220 cross_compiling=yes
3221 else
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "cannot run C++ compiled programs.
3225 If you meant to cross compile, use \`--host'.
3226 See \`config.log' for more details" "$LINENO" 5; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3233 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3234 ac_clean_files=$ac_clean_files_save
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if ${ac_cv_objext+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270 done
3271 else
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3285 ac_objext=$OBJEXT
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3288 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3295 main ()
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3302 return 0;
3304 _ACEOF
3305 if ac_fn_cxx_try_compile "$LINENO"; then :
3306 ac_compiler_gnu=yes
3307 else
3308 ac_compiler_gnu=no
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3317 GXX=yes
3318 else
3319 GXX=
3321 ac_test_CXXFLAGS=${CXXFLAGS+set}
3322 ac_save_CXXFLAGS=$CXXFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3324 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3325 if ${ac_cv_prog_cxx_g+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3329 ac_cxx_werror_flag=yes
3330 ac_cv_prog_cxx_g=no
3331 CXXFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 if ac_fn_cxx_try_compile "$LINENO"; then :
3344 ac_cv_prog_cxx_g=yes
3345 else
3346 CXXFLAGS=""
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 if ac_fn_cxx_try_compile "$LINENO"; then :
3360 else
3361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3362 CXXFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 if ac_fn_cxx_try_compile "$LINENO"; then :
3375 ac_cv_prog_cxx_g=yes
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3385 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3386 if test "$ac_test_CXXFLAGS" = set; then
3387 CXXFLAGS=$ac_save_CXXFLAGS
3388 elif test $ac_cv_prog_cxx_g = yes; then
3389 if test "$GXX" = yes; then
3390 CXXFLAGS="-g -O2"
3391 else
3392 CXXFLAGS="-g"
3394 else
3395 if test "$GXX" = yes; then
3396 CXXFLAGS="-O2"
3397 else
3398 CXXFLAGS=
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 for ac_prog in ${host_c_compilers}
3415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 $as_echo "$CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3452 test -n "$CC" && break
3453 done
3455 if test -z "$CC"; then
3456 ac_ct_CC=$CC
3457 for ac_prog in ${host_c_compilers}
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_CC="$ac_prog"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3496 test -n "$ac_ct_CC" && break
3497 done
3499 if test "x$ac_ct_CC" = x; then
3500 CC=""
3501 else
3502 case $cross_compiling:$ac_tool_warned in
3503 yes:)
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3507 esac
3508 CC=$ac_ct_CC
3513 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "no acceptable C compiler found in \$PATH
3516 See \`config.log' for more details" "$LINENO" 5; }
3518 # Provide some information about the compiler.
3519 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3520 set X $ac_compile
3521 ac_compiler=$2
3522 for ac_option in --version -v -V -qversion; do
3523 { { ac_try="$ac_compiler $ac_option >&5"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3531 ac_status=$?
3532 if test -s conftest.err; then
3533 sed '10a\
3534 ... rest of stderr output deleted ...
3535 10q' conftest.err >conftest.er1
3536 cat conftest.er1 >&5
3538 rm -f conftest.er1 conftest.err
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }
3541 done
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3554 #ifndef __GNUC__
3555 choke me
3556 #endif
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_compiler_gnu=yes
3564 else
3565 ac_compiler_gnu=no
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3574 GCC=yes
3575 else
3576 GCC=
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3587 ac_cv_prog_cc_g=no
3588 CFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3593 main ()
3597 return 0;
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_g=yes
3602 else
3603 CFLAGS=""
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3608 main ()
3612 return 0;
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3617 else
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3619 CFLAGS="-g"
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3624 main ()
3628 return 0;
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_g=yes
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3651 else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_cv_prog_cc_c89=no
3664 ac_save_CC=$CC
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #include <stdarg.h>
3668 #include <stdio.h>
3669 struct stat;
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3674 char **p;
3675 int i;
3677 return p[i];
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3681 char *s;
3682 va_list v;
3683 va_start (v,p);
3684 s = g (p, va_arg (v,int));
3685 va_end (v);
3686 return s;
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3700 #define FOO(x) 'x'
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707 int argc;
3708 char **argv;
3710 main ()
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3724 rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3726 done
3727 rm -f conftest.$ac_ext
3728 CC=$ac_save_CC
3731 # AC_CACHE_VAL
3732 case "x$ac_cv_prog_cc_c89" in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3736 xno)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743 esac
3744 if test "x$ac_cv_prog_cc_c89" != xno; then :
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 aros_host_def_cc="$CC"
3755 case $ac_cv_prog_cc_stdc in #(
3756 no) :
3757 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3758 *) :
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3760 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3761 if ${ac_cv_prog_cc_c99+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 ac_cv_prog_cc_c99=no
3765 ac_save_CC=$CC
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <stdarg.h>
3769 #include <stdbool.h>
3770 #include <stdlib.h>
3771 #include <wchar.h>
3772 #include <stdio.h>
3774 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3775 #define debug(...) fprintf (stderr, __VA_ARGS__)
3776 #define showlist(...) puts (#__VA_ARGS__)
3777 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3778 static void
3779 test_varargs_macros (void)
3781 int x = 1234;
3782 int y = 5678;
3783 debug ("Flag");
3784 debug ("X = %d\n", x);
3785 showlist (The first, second, and third items.);
3786 report (x>y, "x is %d but y is %d", x, y);
3789 // Check long long types.
3790 #define BIG64 18446744073709551615ull
3791 #define BIG32 4294967295ul
3792 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3793 #if !BIG_OK
3794 your preprocessor is broken;
3795 #endif
3796 #if BIG_OK
3797 #else
3798 your preprocessor is broken;
3799 #endif
3800 static long long int bignum = -9223372036854775807LL;
3801 static unsigned long long int ubignum = BIG64;
3803 struct incomplete_array
3805 int datasize;
3806 double data[];
3809 struct named_init {
3810 int number;
3811 const wchar_t *name;
3812 double average;
3815 typedef const char *ccp;
3817 static inline int
3818 test_restrict (ccp restrict text)
3820 // See if C++-style comments work.
3821 // Iterate through items via the restricted pointer.
3822 // Also check for declarations in for loops.
3823 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3824 continue;
3825 return 0;
3828 // Check varargs and va_copy.
3829 static void
3830 test_varargs (const char *format, ...)
3832 va_list args;
3833 va_start (args, format);
3834 va_list args_copy;
3835 va_copy (args_copy, args);
3837 const char *str;
3838 int number;
3839 float fnumber;
3841 while (*format)
3843 switch (*format++)
3845 case 's': // string
3846 str = va_arg (args_copy, const char *);
3847 break;
3848 case 'd': // int
3849 number = va_arg (args_copy, int);
3850 break;
3851 case 'f': // float
3852 fnumber = va_arg (args_copy, double);
3853 break;
3854 default:
3855 break;
3858 va_end (args_copy);
3859 va_end (args);
3863 main ()
3866 // Check bool.
3867 _Bool success = false;
3869 // Check restrict.
3870 if (test_restrict ("String literal") == 0)
3871 success = true;
3872 char *restrict newvar = "Another string";
3874 // Check varargs.
3875 test_varargs ("s, d' f .", "string", 65, 34.234);
3876 test_varargs_macros ();
3878 // Check flexible array members.
3879 struct incomplete_array *ia =
3880 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3881 ia->datasize = 10;
3882 for (int i = 0; i < ia->datasize; ++i)
3883 ia->data[i] = i * 1.234;
3885 // Check named initializers.
3886 struct named_init ni = {
3887 .number = 34,
3888 .name = L"Test wide string",
3889 .average = 543.34343,
3892 ni.number = 58;
3894 int dynamic_array[ni.number];
3895 dynamic_array[ni.number - 1] = 543;
3897 // work around unused variable warnings
3898 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3899 || dynamic_array[ni.number - 1] != 543);
3902 return 0;
3904 _ACEOF
3905 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c99=$ac_arg
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c99" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c99" in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923 xno)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3927 CC="$CC $ac_cv_prog_cc_c99"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3929 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c99" != xno; then :
3932 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3935 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3936 if ${ac_cv_prog_cc_c89+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 ac_cv_prog_cc_c89=no
3940 ac_save_CC=$CC
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <stdarg.h>
3944 #include <stdio.h>
3945 struct stat;
3946 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3947 struct buf { int x; };
3948 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3949 static char *e (p, i)
3950 char **p;
3951 int i;
3953 return p[i];
3955 static char *f (char * (*g) (char **, int), char **p, ...)
3957 char *s;
3958 va_list v;
3959 va_start (v,p);
3960 s = g (p, va_arg (v,int));
3961 va_end (v);
3962 return s;
3965 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3966 function prototypes and stuff, but not '\xHH' hex character constants.
3967 These don't provoke an error unfortunately, instead are silently treated
3968 as 'x'. The following induces an error, until -std is added to get
3969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3970 array size at least. It's necessary to write '\x00'==0 to get something
3971 that's true only with -std. */
3972 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3974 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3975 inside strings and character constants. */
3976 #define FOO(x) 'x'
3977 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3979 int test (int i, double x);
3980 struct s1 {int (*f) (int a);};
3981 struct s2 {int (*f) (double a);};
3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983 int argc;
3984 char **argv;
3986 main ()
3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 return 0;
3992 _ACEOF
3993 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3996 CC="$ac_save_CC $ac_arg"
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_prog_cc_c89=$ac_arg
4000 rm -f core conftest.err conftest.$ac_objext
4001 test "x$ac_cv_prog_cc_c89" != "xno" && break
4002 done
4003 rm -f conftest.$ac_ext
4004 CC=$ac_save_CC
4007 # AC_CACHE_VAL
4008 case "x$ac_cv_prog_cc_c89" in
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4011 $as_echo "none needed" >&6; } ;;
4012 xno)
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4014 $as_echo "unsupported" >&6; } ;;
4016 CC="$CC $ac_cv_prog_cc_c89"
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4019 esac
4020 if test "x$ac_cv_prog_cc_c89" != xno; then :
4021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4022 else
4023 ac_cv_prog_cc_stdc=no
4028 esac
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4030 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4031 if ${ac_cv_prog_cc_stdc+:} false; then :
4032 $as_echo_n "(cached) " >&6
4035 case $ac_cv_prog_cc_stdc in #(
4036 no) :
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038 $as_echo "unsupported" >&6; } ;; #(
4039 '') :
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 $as_echo "none needed" >&6; } ;; #(
4042 *) :
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4044 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4045 esac
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4054 # On Suns, sometimes $CPP names a directory.
4055 if test -n "$CPP" && test -d "$CPP"; then
4056 CPP=
4058 if test -z "$CPP"; then
4059 if ${ac_cv_prog_CPP+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 # Double quotes because CPP needs to be expanded
4063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081 Syntax error
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4085 else
4086 # Broken: fails on valid input.
4087 continue
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: success on invalid input.
4099 continue
4100 else
4101 # Passes both tests.
4102 ac_preproc_ok=:
4103 break
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4107 done
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4111 break
4114 done
4115 ac_cv_prog_CPP=$CPP
4118 CPP=$ac_cv_prog_CPP
4119 else
4120 ac_cv_prog_CPP=$CPP
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4123 $as_echo "$CPP" >&6; }
4124 ac_preproc_ok=false
4125 for ac_c_preproc_warn_flag in '' yes
4127 # Use a header file that comes with gcc, so configuring glibc
4128 # with a fresh cross-compiler works.
4129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130 # <limits.h> exists even on freestanding compilers.
4131 # On the NeXT, cc -E runs the code through the compiler's parser,
4132 # not just through cpp. "Syntax error" is here to catch this case.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #ifdef __STDC__
4136 # include <limits.h>
4137 #else
4138 # include <assert.h>
4139 #endif
4140 Syntax error
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4144 else
4145 # Broken: fails on valid input.
4146 continue
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <ac_nonexistent.h>
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157 # Broken: success on invalid input.
4158 continue
4159 else
4160 # Passes both tests.
4161 ac_preproc_ok=:
4162 break
4164 rm -f conftest.err conftest.i conftest.$ac_ext
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.i conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then :
4171 else
4172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details" "$LINENO" 5; }
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 # Check for a compatible awk
4186 for ac_prog in gawk nawk
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_AWK+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$AWK"; then
4196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_AWK="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 AWK=$ac_cv_prog_AWK
4216 if test -n "$AWK"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4218 $as_echo "$AWK" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$AWK" && break
4226 done
4228 req_avail=yes
4229 if test "$AWK" = ""; then
4230 req_avail=no
4232 if test "$AWK" = "no"; then
4233 req_avail=no
4235 if test "$req_avail" = "no"; then
4236 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4238 # Extract the first word of "mmake", so it can be a program name with args.
4239 set dummy mmake; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_MMAKE+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$MMAKE"; then
4246 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_MMAKE="mmake "
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 MMAKE=$ac_cv_prog_MMAKE
4266 if test -n "$MMAKE"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4268 $as_echo "$MMAKE" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4276 # Perform some default variable assignments. Note all of these will be
4277 # Regenerated from the script, so there is no need to cache them.
4279 aros_build_host=$host
4280 aros_host_cpp="$CPP"
4281 aros_host_cc="$CC"
4282 aros_host_cxx="$CXX"
4283 if test "$GCC" = "yes"; then
4284 aros_gcc_ld=`$CC -print-prog-name=ld`
4285 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4286 set dummy `basename $aros_gcc_ld`; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_path_aros_host_ld+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 case $aros_host_ld in
4293 [\\/]* | ?:[\\/]*)
4294 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in `dirname $aros_gcc_ld`
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4310 IFS=$as_save_IFS
4313 esac
4315 aros_host_ld=$ac_cv_path_aros_host_ld
4316 if test -n "$aros_host_ld"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4318 $as_echo "$aros_host_ld" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test "$aros_host_ld" = ""; then
4327 # Extract the first word of "ld", so it can be a program name with args.
4328 set dummy ld; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_path_aros_host_ld+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 case $aros_host_ld in
4335 [\\/]* | ?:[\\/]*)
4336 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4355 esac
4357 aros_host_ld=$ac_cv_path_aros_host_ld
4358 if test -n "$aros_host_ld"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4360 $as_echo "$aros_host_ld" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4368 req_avail=yes
4369 if test "$aros_host_ld" = ""; then
4370 req_avail=no
4372 if test "$aros_host_ld" = "no"; then
4373 req_avail=no
4375 if test "$req_avail" = "no"; then
4376 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4378 aros_host_make="make"
4379 aros_host_cflags="$CFLAGS"
4380 aros_host_cxxflags="$CXXFLAGS"
4381 aros_host_cppflags="$CPPFLAGS"
4382 aros_host_ldflags="$LDFLAGS"
4383 aros_host_debug="-g -O0"
4384 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4385 aros_host_mkargs="--no-print-directory"
4386 aros_host_exe_suffix="$EXEEXT"
4387 aros_host_lib_suffix=""
4389 # Ignore all compliance, AROS ROMs = 0
4390 # KickStart v1.0 = 30
4391 # KickStart v1.3 = 34
4392 # KickStart v2.0 = 37
4393 # KickStart v3.0 = 39
4394 # KickStart v3.1 = 40
4395 # AmigaOS v3.5 = 44
4396 aros_amigaos_compliance=0
4398 for ac_prog in aclocal aclocal19 aclocal-1.9
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$aros_host_aclocal"; then
4408 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_aros_host_aclocal="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4428 if test -n "$aros_host_aclocal"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4430 $as_echo "$aros_host_aclocal" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$aros_host_aclocal" && break
4438 done
4440 for ac_prog in autoconf autoconf259 autoconf253
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$aros_host_autoconf"; then
4450 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_aros_host_autoconf="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4470 if test -n "$aros_host_autoconf"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4472 $as_echo "$aros_host_autoconf" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$aros_host_autoconf" && break
4480 done
4482 for ac_prog in autoheader autoheader259 autoheader253
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy $ac_prog; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$aros_host_autoheader"; then
4492 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_aros_host_autoheader="$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4512 if test -n "$aros_host_autoheader"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4514 $as_echo "$aros_host_autoheader" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4521 test -n "$aros_host_autoheader" && break
4522 done
4524 for ac_prog in automake automake19 automake-1.9
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_aros_host_automake+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$aros_host_automake"; then
4534 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_aros_host_automake="$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 aros_host_automake=$ac_cv_prog_aros_host_automake
4554 if test -n "$aros_host_automake"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4556 $as_echo "$aros_host_automake" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$aros_host_automake" && break
4564 done
4567 req_avail=yes
4568 if test "$aros_host_aclocal" = ""; then
4569 req_avail=no
4571 if test "$aros_host_aclocal" = "no"; then
4572 req_avail=no
4574 if test "$req_avail" = "no"; then
4575 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4577 req_avail=yes
4578 if test "$aros_host_automake" = ""; then
4579 req_avail=no
4581 if test "$aros_host_automake" = "no"; then
4582 req_avail=no
4584 if test "$req_avail" = "no"; then
4585 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4588 case "$aros_host_cc" in
4589 *clang*)
4590 aros_host_cc_pipe=""
4592 *gcc*)
4593 aros_host_cc_pipe="-pipe"
4595 icc)
4596 aros_host_cc_pipe=""
4599 aros_host_cc_pipe=""
4601 esac
4603 aros_kernel_cc_includes=""
4604 aros_target_cc_includes=""
4605 host_cc_elf=yes
4607 # ----------------------------------------------------------------------------------------
4608 # Host-specific defaults
4610 # This is the main host configuration section. It is where the host
4611 # can change the values of any variables it needs to change. We do
4612 # not look at anything that compiles to the target yet, we'll get
4613 # to that later.
4615 case "$host_os" in
4616 aros*)
4617 aros_host_arch="aros"
4618 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4619 case "$host_cpu" in
4620 *i?86*)
4621 aros_host_cpu="i386"
4623 *x86_64*)
4624 aros_host_cpu="x86_64"
4626 *powerpc*)
4627 aros_host_cpu="ppc"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4631 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4632 aros_host_cpu="$host_cpu"
4634 esac
4637 linux*)
4638 aros_host_arch="linux"
4639 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4640 android_build_os="linux-x86"
4641 android_tool="android"
4642 default_android_sdk="/opt/android-sdk-linux_x86"
4643 case "$host_cpu" in
4644 *i?86*)
4645 aros_host_cpu="i386"
4647 *x86_64*)
4648 aros_host_cpu="x86_64"
4650 *m68k*)
4651 aros_host_cpu="m68k"
4653 *powerpc*)
4654 aros_host_cpu="ppc"
4656 *arm*)
4657 aros_host_cpu="arm"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4661 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4662 aros_host_cpu="$host_cpu"
4664 esac
4667 freebsd*)
4668 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4669 aros_host_make="gmake"
4670 aros_host_arch="freebsd"
4671 aros_host_cpu="i386"
4673 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4675 case $host_os in
4676 freebsd[234]*)
4677 aros_object_format="elf_i386"
4681 aros_object_format="elf_i386_fbsd"
4683 esac
4687 darwin*)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4689 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4690 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 test "$cross_compiling" = yes &&
4694 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4695 if test -r "/usr/include/stddef.h"; then
4696 ac_cv_file__usr_include_stddef_h=yes
4697 else
4698 ac_cv_file__usr_include_stddef_h=no
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4702 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4703 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4705 else
4706 as_fn_error $? "XCode incorrectly configured!
4707 please run 'xcode-select --install' before
4708 re-running configure" "$LINENO" 5
4712 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4713 aros_host_arch="darwin"
4714 host_cc_elf=no
4715 if [ -z ${SED+x} ]; then SED="gsed"; fi
4716 android_build_os="darwin-x86"
4717 android_tool="android"
4718 default_android_sdk="/android-sdk-mac_x86"
4719 case "$host_cpu" in
4720 *i?86*)
4721 aros_host_cpu="i386"
4723 *x86_64*)
4724 aros_host_cpu="x86_64"
4726 *powerpc*)
4727 aros_host_cpu="ppc"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4731 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4732 aros_host_cpu="$host_cpu"
4734 esac
4736 aros_host_ldflags="$aros_host_ldflags -liconv"
4740 dragonfly*)
4741 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4742 aros_host_make="gmake"
4743 aros_host_arch="dragonfly"
4744 case $host_cpu in
4745 *i?86*)
4746 aros_host_cpu="i386"
4748 *amd64*)
4749 aros_host_cpu="x86_64"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4753 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4754 aros_host_cpu="$host_cpu"
4756 esac
4759 netbsd*)
4760 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4761 aros_host_make="gmake"
4762 aros_host_arch="netbsd"
4763 case "$host_cpu" in
4764 *i?86*)
4765 aros_host_cpu="i386"
4767 *m68k*)
4768 aros_host_cpu="m68k"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4772 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4773 aros_host_cpu="$host_cpu"
4775 esac
4776 aros_host_lib_suffix=".0.0"
4779 openbsd*)
4780 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4781 aros_host_make="gmake"
4782 aros_host_arch="openbsd"
4783 case "$host_cpu" in
4784 *i?86*)
4785 aros_host_cpu="i386"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4789 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4790 aros_host_cpu="$host_cpu"
4792 esac
4795 solaris*)
4796 aros_host_arch="solaris"
4797 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4798 case "$host_cpu" in
4799 *i?86*)
4800 aros_host_cpu="i386"
4802 *sparc*)
4803 aros_host_cpu="sparc"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4807 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4808 aros_host_cpu="$host_cpu"
4810 esac
4813 morphos*)
4814 aros_host_arch="morphos"
4815 aros_host_cpu="ppc"
4816 host_cc_elf=no
4819 amiga*)
4820 aros_host_arch="amiga"
4821 host_cc_elf=no
4822 SORT="/gg/bin/sort"
4823 TEST="/gg/bin/test"
4824 UNIQ="/gg/bin/uniq"
4825 FOR="for"
4826 TOUCH="/gg/bin/touch"
4827 case "$host_cpu" in
4828 *m68k*)
4829 aros_host_cpu="m68k"
4831 *powerpc*)
4832 aros_host_cpu="ppc"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4836 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4837 aros_host_cpu="$host_cpu"
4839 esac
4842 cygwin*)
4843 aros_host_arch="cygwin"
4844 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4845 host_cc_elf=no
4846 android_build_os="windows"
4847 android_tool="android.bat"
4848 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4850 case "$host_cpu" in
4851 *i?86*)
4852 aros_host_cpu="i386"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4856 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4857 aros_host_cpu="$host_cpu"
4859 esac
4862 mingw32*)
4863 aros_host_arch="mingw32"
4864 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4865 host_cc_elf=no
4866 android_build_os="windows"
4867 android_tool="android.bat"
4868 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4870 libpng_libextra="-lws2_32"
4872 case "$host_cpu" in
4873 *i?86*)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4876 $as_echo_n "checking for Windows native gcc target... " >&6; }
4877 host_cpu=`gcc -dumpmachine`
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4879 $as_echo "$host_cpu" >&6; }
4882 esac
4884 case "$host_cpu" in
4885 *i?86*)
4886 aros_host_cpu="i386"
4889 mingw32*)
4890 aros_host_cpu="i386"
4893 *x86_64*)
4894 aros_host_cpu="x86_64"
4895 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4900 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4901 aros_host_cpu="$host_cpu"
4903 esac
4906 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4908 esac
4910 # Extract the first word of "ar", so it can be a program name with args.
4911 set dummy ar; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_aros_host_ar+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$aros_host_ar"; then
4918 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_aros_host_ar="ar cr"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 aros_host_ar=$ac_cv_prog_aros_host_ar
4938 if test -n "$aros_host_ar"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4940 $as_echo "$aros_host_ar" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 req_avail=yes
4948 if test "$aros_host_ar" = ""; then
4949 req_avail=no
4951 if test "$aros_host_ar" = "no"; then
4952 req_avail=no
4954 if test "$req_avail" = "no"; then
4955 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4957 # Extract the first word of "ranlib", so it can be a program name with args.
4958 set dummy ranlib; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$aros_host_ranlib"; then
4965 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_aros_host_ranlib="ranlib "
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4978 done
4979 done
4980 IFS=$as_save_IFS
4984 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4985 if test -n "$aros_host_ranlib"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4987 $as_echo "$aros_host_ranlib" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 req_avail=yes
4995 if test "$aros_host_ranlib" = ""; then
4996 req_avail=no
4998 if test "$aros_host_ranlib" = "no"; then
4999 req_avail=no
5001 if test "$req_avail" = "no"; then
5002 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5004 # Extract the first word of "strip", so it can be a program name with args.
5005 set dummy strip; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_aros_host_strip+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$aros_host_strip"; then
5012 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_aros_host_strip="strip "
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 aros_host_strip=$ac_cv_prog_aros_host_strip
5032 if test -n "$aros_host_strip"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5034 $as_echo "$aros_host_strip" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 req_avail=yes
5042 if test "$aros_host_strip" = ""; then
5043 req_avail=no
5045 if test "$aros_host_strip" = "no"; then
5046 req_avail=no
5048 if test "$req_avail" = "no"; then
5049 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5052 # Extract the first word of "rm", so it can be a program name with args.
5053 set dummy rm; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_RM+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$RM"; then
5060 ac_cv_prog_RM="$RM" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_RM="rm -rf"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5073 done
5074 done
5075 IFS=$as_save_IFS
5079 RM=$ac_cv_prog_RM
5080 if test -n "$RM"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5082 $as_echo "$RM" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5089 req_avail=yes
5090 if test "$RM" = ""; then
5091 req_avail=no
5093 if test "$RM" = "no"; then
5094 req_avail=no
5096 if test "$req_avail" = "no"; then
5097 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5099 # Extract the first word of "cp", so it can be a program name with args.
5100 set dummy cp; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_CP+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -n "$CP"; then
5107 ac_cv_prog_CP="$CP" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_CP="cp "
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5122 IFS=$as_save_IFS
5126 CP=$ac_cv_prog_CP
5127 if test -n "$CP"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5129 $as_echo "$CP" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 req_avail=yes
5137 if test "$CP" = ""; then
5138 req_avail=no
5140 if test "$CP" = "no"; then
5141 req_avail=no
5143 if test "$req_avail" = "no"; then
5144 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5146 # Extract the first word of "mv", so it can be a program name with args.
5147 set dummy mv; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_MV+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$MV"; then
5154 ac_cv_prog_MV="$MV" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_MV="mv "
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 MV=$ac_cv_prog_MV
5174 if test -n "$MV"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5176 $as_echo "$MV" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 req_avail=yes
5184 if test "$MV" = ""; then
5185 req_avail=no
5187 if test "$MV" = "no"; then
5188 req_avail=no
5190 if test "$req_avail" = "no"; then
5191 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5193 # Extract the first word of "echo", so it can be a program name with args.
5194 set dummy echo; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ECHO+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$ECHO"; then
5201 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5202 else
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_prog_ECHO="echo "
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
5220 ECHO=$ac_cv_prog_ECHO
5221 if test -n "$ECHO"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5223 $as_echo "$ECHO" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5230 req_avail=yes
5231 if test "$ECHO" = ""; then
5232 req_avail=no
5234 if test "$ECHO" = "no"; then
5235 req_avail=no
5237 if test "$req_avail" = "no"; then
5238 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5240 # Extract the first word of "mkdir", so it can be a program name with args.
5241 set dummy mkdir; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_MKDIR+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$MKDIR"; then
5248 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_MKDIR="mkdir -p"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 MKDIR=$ac_cv_prog_MKDIR
5268 if test -n "$MKDIR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5270 $as_echo "$MKDIR" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 req_avail=yes
5278 if test "$MKDIR" = ""; then
5279 req_avail=no
5281 if test "$MKDIR" = "no"; then
5282 req_avail=no
5284 if test "$req_avail" = "no"; then
5285 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5287 # Extract the first word of "touch", so it can be a program name with args.
5288 set dummy touch; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_TOUCH+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$TOUCH"; then
5295 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_TOUCH="touch "
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 TOUCH=$ac_cv_prog_TOUCH
5315 if test -n "$TOUCH"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5317 $as_echo "$TOUCH" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 req_avail=yes
5325 if test "$TOUCH" = ""; then
5326 req_avail=no
5328 if test "$TOUCH" = "no"; then
5329 req_avail=no
5331 if test "$req_avail" = "no"; then
5332 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5334 # Extract the first word of "sort", so it can be a program name with args.
5335 set dummy sort; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_SORT+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$SORT"; then
5342 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_SORT="sort "
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5357 IFS=$as_save_IFS
5361 SORT=$ac_cv_prog_SORT
5362 if test -n "$SORT"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5364 $as_echo "$SORT" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 req_avail=yes
5372 if test "$SORT" = ""; then
5373 req_avail=no
5375 if test "$SORT" = "no"; then
5376 req_avail=no
5378 if test "$req_avail" = "no"; then
5379 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5381 # Extract the first word of "uniq", so it can be a program name with args.
5382 set dummy uniq; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_UNIQ+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$UNIQ"; then
5389 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_UNIQ="uniq "
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5402 done
5403 done
5404 IFS=$as_save_IFS
5408 UNIQ=$ac_cv_prog_UNIQ
5409 if test -n "$UNIQ"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5411 $as_echo "$UNIQ" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5418 req_avail=yes
5419 if test "$UNIQ" = ""; then
5420 req_avail=no
5422 if test "$UNIQ" = "no"; then
5423 req_avail=no
5425 if test "$req_avail" = "no"; then
5426 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5428 # Extract the first word of "true", so it can be a program name with args.
5429 set dummy true; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_NOP+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 if test -n "$NOP"; then
5436 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_NOP="true "
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5449 done
5450 done
5451 IFS=$as_save_IFS
5455 NOP=$ac_cv_prog_NOP
5456 if test -n "$NOP"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5458 $as_echo "$NOP" >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5465 req_avail=yes
5466 if test "$NOP" = ""; then
5467 req_avail=no
5469 if test "$NOP" = "no"; then
5470 req_avail=no
5472 if test "$req_avail" = "no"; then
5473 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5475 # Extract the first word of "cat", so it can be a program name with args.
5476 set dummy cat; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_CAT+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$CAT"; then
5483 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_CAT="cat "
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5502 CAT=$ac_cv_prog_CAT
5503 if test -n "$CAT"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5505 $as_echo "$CAT" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 req_avail=yes
5513 if test "$CAT" = ""; then
5514 req_avail=no
5516 if test "$CAT" = "no"; then
5517 req_avail=no
5519 if test "$req_avail" = "no"; then
5520 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5522 # Extract the first word of "bison", so it can be a program name with args.
5523 set dummy bison; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_BISON+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if test -n "$BISON"; then
5530 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_BISON="bison "
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5543 done
5544 done
5545 IFS=$as_save_IFS
5549 BISON=$ac_cv_prog_BISON
5550 if test -n "$BISON"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5552 $as_echo "$BISON" >&6; }
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5559 req_avail=yes
5560 if test "$BISON" = ""; then
5561 req_avail=no
5563 if test "$BISON" = "no"; then
5564 req_avail=no
5566 if test "$req_avail" = "no"; then
5567 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5569 # Extract the first word of "flex", so it can be a program name with args.
5570 set dummy flex; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_FLEX+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$FLEX"; then
5577 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_FLEX="flex "
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5592 IFS=$as_save_IFS
5596 FLEX=$ac_cv_prog_FLEX
5597 if test -n "$FLEX"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5599 $as_echo "$FLEX" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5606 req_avail=yes
5607 if test "$FLEX" = ""; then
5608 req_avail=no
5610 if test "$FLEX" = "no"; then
5611 req_avail=no
5613 if test "$req_avail" = "no"; then
5614 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5616 # Extract the first word of "pngtopnm", so it can be a program name with args.
5617 set dummy pngtopnm; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$PNGTOPNM"; then
5624 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_PNGTOPNM="pngtopnm "
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5637 done
5638 done
5639 IFS=$as_save_IFS
5643 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5644 if test -n "$PNGTOPNM"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5646 $as_echo "$PNGTOPNM" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5653 req_avail=yes
5654 if test "$PNGTOPNM" = ""; then
5655 req_avail=no
5657 if test "$PNGTOPNM" = "no"; then
5658 req_avail=no
5660 if test "$req_avail" = "no"; then
5661 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5663 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5664 set dummy ppmtoilbm; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$PPMTOILBM"; then
5671 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5691 if test -n "$PPMTOILBM"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5693 $as_echo "$PPMTOILBM" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5700 req_avail=yes
5701 if test "$PPMTOILBM" = ""; then
5702 req_avail=no
5704 if test "$PPMTOILBM" = "no"; then
5705 req_avail=no
5707 if test "$req_avail" = "no"; then
5708 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5710 # Extract the first word of "sed", so it can be a program name with args.
5711 set dummy sed; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_SED+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$SED"; then
5718 ac_cv_prog_SED="$SED" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_SED="sed "
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5731 done
5732 done
5733 IFS=$as_save_IFS
5737 SED=$ac_cv_prog_SED
5738 if test -n "$SED"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5740 $as_echo "$SED" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5747 req_avail=yes
5748 if test "$SED" = ""; then
5749 req_avail=no
5751 if test "$SED" = "no"; then
5752 req_avail=no
5754 if test "$req_avail" = "no"; then
5755 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5757 # Extract the first word of "chmod", so it can be a program name with args.
5758 set dummy chmod; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_CHMOD+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$CHMOD"; then
5765 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_CHMOD="chmod "
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5778 done
5779 done
5780 IFS=$as_save_IFS
5784 CHMOD=$ac_cv_prog_CHMOD
5785 if test -n "$CHMOD"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5787 $as_echo "$CHMOD" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5794 req_avail=yes
5795 if test "$CHMOD" = ""; then
5796 req_avail=no
5798 if test "$CHMOD" = "no"; then
5799 req_avail=no
5801 if test "$req_avail" = "no"; then
5802 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5804 # Extract the first word of "patch", so it can be a program name with args.
5805 set dummy patch; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_PATCH+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if test -n "$PATCH"; then
5812 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_PATCH="patch "
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5827 IFS=$as_save_IFS
5831 PATCH=$ac_cv_prog_PATCH
5832 if test -n "$PATCH"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5834 $as_echo "$PATCH" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5841 req_avail=yes
5842 if test "$PATCH" = ""; then
5843 req_avail=no
5845 if test "$PATCH" = "no"; then
5846 req_avail=no
5848 if test "$req_avail" = "no"; then
5849 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5858 if test -n "$PYTHON"; then
5859 # If the user set $PYTHON, use it and don't search something else.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5861 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5862 prog="import sys
5863 # split strings by '.' and convert to numeric. Append some zeros
5864 # because we need at least 4 digits for the hex conversion.
5865 # map returns an iterator in Python 3.0 and a list in 2.x
5866 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5867 minverhex = 0
5868 # xrange is not present in Python 3.0 and range returns an iterator
5869 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5870 sys.exit(sys.hexversion < minverhex)"
5871 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5872 ($PYTHON -c "$prog") >&5 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; then :
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5877 $as_echo "yes" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5883 am_display_PYTHON=$PYTHON
5884 else
5885 # Otherwise, try each interpreter until we find one that satisfies
5886 # VERSION.
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5888 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5889 if ${am_cv_pathless_PYTHON+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5893 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5894 test "$am_cv_pathless_PYTHON" = none && break
5895 prog="import sys
5896 # split strings by '.' and convert to numeric. Append some zeros
5897 # because we need at least 4 digits for the hex conversion.
5898 # map returns an iterator in Python 3.0 and a list in 2.x
5899 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5900 minverhex = 0
5901 # xrange is not present in Python 3.0 and range returns an iterator
5902 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5903 sys.exit(sys.hexversion < minverhex)"
5904 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5905 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; then :
5909 break
5911 done
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5914 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5915 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5916 if test "$am_cv_pathless_PYTHON" = none; then
5917 PYTHON=:
5918 else
5919 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5920 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_path_PYTHON+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 case $PYTHON in
5927 [\\/]* | ?:[\\/]*)
5928 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5942 done
5943 done
5944 IFS=$as_save_IFS
5947 esac
5949 PYTHON=$ac_cv_path_PYTHON
5950 if test -n "$PYTHON"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5952 $as_echo "$PYTHON" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5960 am_display_PYTHON=$am_cv_pathless_PYTHON
5964 if test "$PYTHON" = :; then
5965 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5966 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5970 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5971 if ${am_cv_python_version+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5977 $as_echo "$am_cv_python_version" >&6; }
5978 PYTHON_VERSION=$am_cv_python_version
5982 PYTHON_PREFIX='${prefix}'
5984 PYTHON_EXEC_PREFIX='${exec_prefix}'
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5989 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5990 if ${am_cv_python_platform+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5996 $as_echo "$am_cv_python_platform" >&6; }
5997 PYTHON_PLATFORM=$am_cv_python_platform
6000 # Just factor out some code duplication.
6001 am_python_setup_sysconfig="\
6002 import sys
6003 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6004 # with python 3.x. See automake bug#10227.
6005 try:
6006 import sysconfig
6007 except ImportError:
6008 can_use_sysconfig = 0
6009 else:
6010 can_use_sysconfig = 1
6011 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6012 # <https://github.com/pypa/virtualenv/issues/118>
6013 try:
6014 from platform import python_implementation
6015 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6016 can_use_sysconfig = 0
6017 except ImportError:
6018 pass"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6022 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6023 if ${am_cv_python_pythondir+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test "x$prefix" = xNONE
6027 then
6028 am_py_prefix=$ac_default_prefix
6029 else
6030 am_py_prefix=$prefix
6032 am_cv_python_pythondir=`$PYTHON -c "
6033 $am_python_setup_sysconfig
6034 if can_use_sysconfig:
6035 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6036 else:
6037 from distutils import sysconfig
6038 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6039 sys.stdout.write(sitedir)"`
6040 case $am_cv_python_pythondir in
6041 $am_py_prefix*)
6042 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6043 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6046 case $am_py_prefix in
6047 /usr|/System*) ;;
6049 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6051 esac
6053 esac
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6057 $as_echo "$am_cv_python_pythondir" >&6; }
6058 pythondir=$am_cv_python_pythondir
6062 pkgpythondir=\${pythondir}/$PACKAGE
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6066 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6067 if ${am_cv_python_pyexecdir+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test "x$exec_prefix" = xNONE
6071 then
6072 am_py_exec_prefix=$am_py_prefix
6073 else
6074 am_py_exec_prefix=$exec_prefix
6076 am_cv_python_pyexecdir=`$PYTHON -c "
6077 $am_python_setup_sysconfig
6078 if can_use_sysconfig:
6079 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6080 else:
6081 from distutils import sysconfig
6082 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6083 sys.stdout.write(sitedir)"`
6084 case $am_cv_python_pyexecdir in
6085 $am_py_exec_prefix*)
6086 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6087 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6090 case $am_py_exec_prefix in
6091 /usr|/System*) ;;
6093 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6095 esac
6097 esac
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6101 $as_echo "$am_cv_python_pyexecdir" >&6; }
6102 pyexecdir=$am_cv_python_pyexecdir
6106 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6114 # Check whether --enable-libpng-config was given.
6115 if test "${enable_libpng_config+set}" = set; then :
6116 enableval=$enable_libpng_config;
6119 if test "$enable_libpng_config" != "no"; then
6120 # Extract the first word of "libpng-config", so it can be a program name with args.
6121 set dummy libpng-config; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$arosconfig_use_libpngconfig"; then
6128 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6141 done
6142 done
6143 IFS=$as_save_IFS
6145 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6148 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6149 if test -n "$arosconfig_use_libpngconfig"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6151 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6159 if test "$arosconfig_use_libpngconfig" = "yes"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6161 $as_echo_n "checking libpng-config library... " >&6; }
6162 libpng_incdir="`libpng-config --cflags`"
6163 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6164 libpng="`libpng-config --libs`"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6166 $as_echo "$libpng" >&6; }
6167 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6170 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6171 if ${ac_cv_lib_png_png_read_png+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 ac_check_lib_save_LIBS=$LIBS
6175 LIBS="-lpng $LIBS"
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6179 /* Override any GCC internal prototype to avoid an error.
6180 Use char because int might match the return type of a GCC
6181 builtin and then its argument prototype would still apply. */
6182 #ifdef __cplusplus
6183 extern "C"
6184 #endif
6185 char png_read_png ();
6187 main ()
6189 return png_read_png ();
6191 return 0;
6193 _ACEOF
6194 if ac_fn_c_try_link "$LINENO"; then :
6195 ac_cv_lib_png_png_read_png=yes
6196 else
6197 ac_cv_lib_png_png_read_png=no
6199 rm -f core conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201 LIBS=$ac_check_lib_save_LIBS
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6204 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6205 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6206 libpng="-lpng"
6207 else
6208 libpng="no"
6211 if test "$libpng_libextra" != ""; then
6212 if test "$libpng" != "no"; then
6213 libpng_libextra="$libpng_libextra $libpng"
6217 req_avail=yes
6218 if test "$libpng" = ""; then
6219 req_avail=no
6221 if test "$libpng" = "no"; then
6222 req_avail=no
6224 if test "$req_avail" = "no"; then
6225 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6231 FOR=for
6233 IF=if
6235 TEST=test
6237 CMP=cmp
6241 # Check for some includes for the X11 HIDD and the kernel
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6245 if ${ac_cv_path_GREP+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -z "$GREP"; then
6249 ac_path_GREP_found=false
6250 # Loop through the user's path and test for each of PROGNAME-LIST
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_prog in grep ggrep; do
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6259 as_fn_executable_p "$ac_path_GREP" || continue
6260 # Check for GNU ac_path_GREP and select it if it is found.
6261 # Check for GNU $ac_path_GREP
6262 case `"$ac_path_GREP" --version 2>&1` in
6263 *GNU*)
6264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6266 ac_count=0
6267 $as_echo_n 0123456789 >"conftest.in"
6268 while :
6270 cat "conftest.in" "conftest.in" >"conftest.tmp"
6271 mv "conftest.tmp" "conftest.in"
6272 cp "conftest.in" "conftest.nl"
6273 $as_echo 'GREP' >> "conftest.nl"
6274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6276 as_fn_arith $ac_count + 1 && ac_count=$as_val
6277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6278 # Best one so far, save it but keep looking for a better one
6279 ac_cv_path_GREP="$ac_path_GREP"
6280 ac_path_GREP_max=$ac_count
6282 # 10*(2^10) chars as input seems more than enough
6283 test $ac_count -gt 10 && break
6284 done
6285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6286 esac
6288 $ac_path_GREP_found && break 3
6289 done
6290 done
6291 done
6292 IFS=$as_save_IFS
6293 if test -z "$ac_cv_path_GREP"; then
6294 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6296 else
6297 ac_cv_path_GREP=$GREP
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6302 $as_echo "$ac_cv_path_GREP" >&6; }
6303 GREP="$ac_cv_path_GREP"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6307 $as_echo_n "checking for egrep... " >&6; }
6308 if ${ac_cv_path_EGREP+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6312 then ac_cv_path_EGREP="$GREP -E"
6313 else
6314 if test -z "$EGREP"; then
6315 ac_path_EGREP_found=false
6316 # Loop through the user's path and test for each of PROGNAME-LIST
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_prog in egrep; do
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6325 as_fn_executable_p "$ac_path_EGREP" || continue
6326 # Check for GNU ac_path_EGREP and select it if it is found.
6327 # Check for GNU $ac_path_EGREP
6328 case `"$ac_path_EGREP" --version 2>&1` in
6329 *GNU*)
6330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6332 ac_count=0
6333 $as_echo_n 0123456789 >"conftest.in"
6334 while :
6336 cat "conftest.in" "conftest.in" >"conftest.tmp"
6337 mv "conftest.tmp" "conftest.in"
6338 cp "conftest.in" "conftest.nl"
6339 $as_echo 'EGREP' >> "conftest.nl"
6340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6342 as_fn_arith $ac_count + 1 && ac_count=$as_val
6343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6344 # Best one so far, save it but keep looking for a better one
6345 ac_cv_path_EGREP="$ac_path_EGREP"
6346 ac_path_EGREP_max=$ac_count
6348 # 10*(2^10) chars as input seems more than enough
6349 test $ac_count -gt 10 && break
6350 done
6351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6352 esac
6354 $ac_path_EGREP_found && break 3
6355 done
6356 done
6357 done
6358 IFS=$as_save_IFS
6359 if test -z "$ac_cv_path_EGREP"; then
6360 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6362 else
6363 ac_cv_path_EGREP=$EGREP
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6369 $as_echo "$ac_cv_path_EGREP" >&6; }
6370 EGREP="$ac_cv_path_EGREP"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6374 $as_echo_n "checking for ANSI C header files... " >&6; }
6375 if ${ac_cv_header_stdc+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 #include <stdlib.h>
6381 #include <stdarg.h>
6382 #include <string.h>
6383 #include <float.h>
6386 main ()
6390 return 0;
6392 _ACEOF
6393 if ac_fn_c_try_compile "$LINENO"; then :
6394 ac_cv_header_stdc=yes
6395 else
6396 ac_cv_header_stdc=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 if test $ac_cv_header_stdc = yes; then
6401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 #include <string.h>
6406 _ACEOF
6407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408 $EGREP "memchr" >/dev/null 2>&1; then :
6410 else
6411 ac_cv_header_stdc=no
6413 rm -f conftest*
6417 if test $ac_cv_header_stdc = yes; then
6418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <stdlib.h>
6423 _ACEOF
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "free" >/dev/null 2>&1; then :
6427 else
6428 ac_cv_header_stdc=no
6430 rm -f conftest*
6434 if test $ac_cv_header_stdc = yes; then
6435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6436 if test "$cross_compiling" = yes; then :
6438 else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 #include <ctype.h>
6442 #include <stdlib.h>
6443 #if ((' ' & 0x0FF) == 0x020)
6444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6446 #else
6447 # define ISLOWER(c) \
6448 (('a' <= (c) && (c) <= 'i') \
6449 || ('j' <= (c) && (c) <= 'r') \
6450 || ('s' <= (c) && (c) <= 'z'))
6451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6452 #endif
6454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6456 main ()
6458 int i;
6459 for (i = 0; i < 256; i++)
6460 if (XOR (islower (i), ISLOWER (i))
6461 || toupper (i) != TOUPPER (i))
6462 return 2;
6463 return 0;
6465 _ACEOF
6466 if ac_fn_c_try_run "$LINENO"; then :
6468 else
6469 ac_cv_header_stdc=no
6471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6472 conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6478 $as_echo "$ac_cv_header_stdc" >&6; }
6479 if test $ac_cv_header_stdc = yes; then
6481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6487 inttypes.h stdint.h unistd.h
6488 do :
6489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6493 cat >>confdefs.h <<_ACEOF
6494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6495 _ACEOF
6499 done
6502 for ac_header in sys/ipc.h sys/shm.h \
6503 sys/mmap.h sys/mman.h sysexits.h \
6504 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6506 do :
6507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6509 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6510 cat >>confdefs.h <<_ACEOF
6511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512 _ACEOF
6516 done
6519 for ac_header in sys/mount.h
6520 do :
6521 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6523 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6524 cat >>confdefs.h <<_ACEOF
6525 #define HAVE_SYS_MOUNT_H 1
6526 _ACEOF
6530 done
6533 ac_header_dirent=no
6534 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6535 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6537 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6538 if eval \${$as_ac_Header+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 #include <sys/types.h>
6544 #include <$ac_hdr>
6547 main ()
6549 if ((DIR *) 0)
6550 return 0;
6552 return 0;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 eval "$as_ac_Header=yes"
6557 else
6558 eval "$as_ac_Header=no"
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 eval ac_res=\$$as_ac_Header
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6564 $as_echo "$ac_res" >&6; }
6565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6566 cat >>confdefs.h <<_ACEOF
6567 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6568 _ACEOF
6570 ac_header_dirent=$ac_hdr; break
6573 done
6574 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6575 if test $ac_header_dirent = dirent.h; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6577 $as_echo_n "checking for library containing opendir... " >&6; }
6578 if ${ac_cv_search_opendir+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 ac_func_search_save_LIBS=$LIBS
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 char opendir ();
6593 main ()
6595 return opendir ();
6597 return 0;
6599 _ACEOF
6600 for ac_lib in '' dir; do
6601 if test -z "$ac_lib"; then
6602 ac_res="none required"
6603 else
6604 ac_res=-l$ac_lib
6605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6607 if ac_fn_c_try_link "$LINENO"; then :
6608 ac_cv_search_opendir=$ac_res
6610 rm -f core conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext
6612 if ${ac_cv_search_opendir+:} false; then :
6613 break
6615 done
6616 if ${ac_cv_search_opendir+:} false; then :
6618 else
6619 ac_cv_search_opendir=no
6621 rm conftest.$ac_ext
6622 LIBS=$ac_func_search_save_LIBS
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6625 $as_echo "$ac_cv_search_opendir" >&6; }
6626 ac_res=$ac_cv_search_opendir
6627 if test "$ac_res" != no; then :
6628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6634 $as_echo_n "checking for library containing opendir... " >&6; }
6635 if ${ac_cv_search_opendir+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 ac_func_search_save_LIBS=$LIBS
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 char opendir ();
6650 main ()
6652 return opendir ();
6654 return 0;
6656 _ACEOF
6657 for ac_lib in '' x; do
6658 if test -z "$ac_lib"; then
6659 ac_res="none required"
6660 else
6661 ac_res=-l$ac_lib
6662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6664 if ac_fn_c_try_link "$LINENO"; then :
6665 ac_cv_search_opendir=$ac_res
6667 rm -f core conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext
6669 if ${ac_cv_search_opendir+:} false; then :
6670 break
6672 done
6673 if ${ac_cv_search_opendir+:} false; then :
6675 else
6676 ac_cv_search_opendir=no
6678 rm conftest.$ac_ext
6679 LIBS=$ac_func_search_save_LIBS
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6682 $as_echo "$ac_cv_search_opendir" >&6; }
6683 ac_res=$ac_cv_search_opendir
6684 if test "$ac_res" != no; then :
6685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6692 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6693 if ${ac_cv_header_stat_broken+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <sys/stat.h>
6701 #if defined S_ISBLK && defined S_IFDIR
6702 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6703 #endif
6705 #if defined S_ISBLK && defined S_IFCHR
6706 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6707 #endif
6709 #if defined S_ISLNK && defined S_IFREG
6710 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6711 #endif
6713 #if defined S_ISSOCK && defined S_IFREG
6714 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6715 #endif
6717 _ACEOF
6718 if ac_fn_c_try_compile "$LINENO"; then :
6719 ac_cv_header_stat_broken=no
6720 else
6721 ac_cv_header_stat_broken=yes
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6726 $as_echo "$ac_cv_header_stat_broken" >&6; }
6727 if test $ac_cv_header_stat_broken = yes; then
6729 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6734 $as_echo_n "checking for ANSI C header files... " >&6; }
6735 if ${ac_cv_header_stdc+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <stdlib.h>
6741 #include <stdarg.h>
6742 #include <string.h>
6743 #include <float.h>
6746 main ()
6750 return 0;
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754 ac_cv_header_stdc=yes
6755 else
6756 ac_cv_header_stdc=no
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 if test $ac_cv_header_stdc = yes; then
6761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 #include <string.h>
6766 _ACEOF
6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6768 $EGREP "memchr" >/dev/null 2>&1; then :
6770 else
6771 ac_cv_header_stdc=no
6773 rm -f conftest*
6777 if test $ac_cv_header_stdc = yes; then
6778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <stdlib.h>
6783 _ACEOF
6784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6785 $EGREP "free" >/dev/null 2>&1; then :
6787 else
6788 ac_cv_header_stdc=no
6790 rm -f conftest*
6794 if test $ac_cv_header_stdc = yes; then
6795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6796 if test "$cross_compiling" = yes; then :
6798 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <ctype.h>
6802 #include <stdlib.h>
6803 #if ((' ' & 0x0FF) == 0x020)
6804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6806 #else
6807 # define ISLOWER(c) \
6808 (('a' <= (c) && (c) <= 'i') \
6809 || ('j' <= (c) && (c) <= 'r') \
6810 || ('s' <= (c) && (c) <= 'z'))
6811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6812 #endif
6814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6816 main ()
6818 int i;
6819 for (i = 0; i < 256; i++)
6820 if (XOR (islower (i), ISLOWER (i))
6821 || toupper (i) != TOUPPER (i))
6822 return 2;
6823 return 0;
6825 _ACEOF
6826 if ac_fn_c_try_run "$LINENO"; then :
6828 else
6829 ac_cv_header_stdc=no
6831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6832 conftest.$ac_objext conftest.beam conftest.$ac_ext
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6838 $as_echo "$ac_cv_header_stdc" >&6; }
6839 if test $ac_cv_header_stdc = yes; then
6841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6846 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6847 if ${ac_cv_header_sys_wait_h+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <sys/types.h>
6853 #include <sys/wait.h>
6854 #ifndef WEXITSTATUS
6855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6856 #endif
6857 #ifndef WIFEXITED
6858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6859 #endif
6862 main ()
6864 int s;
6865 wait (&s);
6866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6868 return 0;
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 ac_cv_header_sys_wait_h=yes
6873 else
6874 ac_cv_header_sys_wait_h=no
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6879 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6880 if test $ac_cv_header_sys_wait_h = yes; then
6882 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6888 if ${ac_cv_header_time+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 #include <sys/types.h>
6894 #include <sys/time.h>
6895 #include <time.h>
6898 main ()
6900 if ((struct tm *) 0)
6901 return 0;
6903 return 0;
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907 ac_cv_header_time=yes
6908 else
6909 ac_cv_header_time=no
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6914 $as_echo "$ac_cv_header_time" >&6; }
6915 if test $ac_cv_header_time = yes; then
6917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6921 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6922 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6924 cat >>confdefs.h <<_ACEOF
6925 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6926 _ACEOF
6929 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6934 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6935 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6937 cat >>confdefs.h <<_ACEOF
6938 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6939 _ACEOF
6942 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6944 else
6945 case " $LIBOBJS " in
6946 *" fileblocks.$ac_objext "* ) ;;
6947 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6949 esac
6954 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6955 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6957 cat >>confdefs.h <<_ACEOF
6958 #define HAVE_STRUCT_STAT_ST_RDEV 1
6959 _ACEOF
6962 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6968 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6969 if ${ac_cv_struct_tm+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <time.h>
6978 main ()
6980 struct tm tm;
6981 int *p = &tm.tm_sec;
6982 return !p;
6984 return 0;
6986 _ACEOF
6987 if ac_fn_c_try_compile "$LINENO"; then :
6988 ac_cv_struct_tm=time.h
6989 else
6990 ac_cv_struct_tm=sys/time.h
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6995 $as_echo "$ac_cv_struct_tm" >&6; }
6996 if test $ac_cv_struct_tm = sys/time.h; then
6998 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7002 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7003 #include <$ac_cv_struct_tm>
7006 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define HAVE_STRUCT_TM_TM_ZONE 1
7010 _ACEOF
7015 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7017 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7019 else
7020 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7022 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7023 ac_have_decl=1
7024 else
7025 ac_have_decl=0
7028 cat >>confdefs.h <<_ACEOF
7029 #define HAVE_DECL_TZNAME $ac_have_decl
7030 _ACEOF
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7033 $as_echo_n "checking for tzname... " >&6; }
7034 if ${ac_cv_var_tzname+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 #include <time.h>
7040 #if !HAVE_DECL_TZNAME
7041 extern char *tzname[];
7042 #endif
7045 main ()
7047 return tzname[0][0];
7049 return 0;
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 ac_cv_var_tzname=yes
7054 else
7055 ac_cv_var_tzname=no
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7061 $as_echo "$ac_cv_var_tzname" >&6; }
7062 if test $ac_cv_var_tzname = yes; then
7064 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7069 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7070 if test "x$ac_cv_type_off_t" = xyes; then :
7072 else
7074 cat >>confdefs.h <<_ACEOF
7075 #define off_t long int
7076 _ACEOF
7080 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7081 if test "x$ac_cv_type_pid_t" = xyes; then :
7083 else
7085 cat >>confdefs.h <<_ACEOF
7086 #define pid_t int
7087 _ACEOF
7091 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7092 if test "x$ac_cv_type_size_t" = xyes; then :
7094 else
7096 cat >>confdefs.h <<_ACEOF
7097 #define size_t unsigned int
7098 _ACEOF
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7103 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7104 if ${ac_cv_type_uid_t+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7111 _ACEOF
7112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113 $EGREP "uid_t" >/dev/null 2>&1; then :
7114 ac_cv_type_uid_t=yes
7115 else
7116 ac_cv_type_uid_t=no
7118 rm -f conftest*
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7122 $as_echo "$ac_cv_type_uid_t" >&6; }
7123 if test $ac_cv_type_uid_t = no; then
7125 $as_echo "#define uid_t int" >>confdefs.h
7128 $as_echo "#define gid_t int" >>confdefs.h
7133 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7134 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7136 cat >>confdefs.h <<_ACEOF
7137 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7138 _ACEOF
7144 # Look for some functions
7145 for ac_func in getpagesize kqueue statfs statvfs \
7146 clone kse_create rfork_thread thr_create sa_register \
7147 getcontext makecontext setcontext sigaltstack swapcontext
7148 do :
7149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7152 cat >>confdefs.h <<_ACEOF
7153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7154 _ACEOF
7157 done
7163 for ac_header in $ac_header_list
7164 do :
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7169 cat >>confdefs.h <<_ACEOF
7170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171 _ACEOF
7175 done
7184 for ac_func in getpagesize
7185 do :
7186 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7187 if test "x$ac_cv_func_getpagesize" = xyes; then :
7188 cat >>confdefs.h <<_ACEOF
7189 #define HAVE_GETPAGESIZE 1
7190 _ACEOF
7193 done
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7196 $as_echo_n "checking for working mmap... " >&6; }
7197 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 if test "$cross_compiling" = yes; then :
7201 ac_cv_func_mmap_fixed_mapped=no
7202 else
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 $ac_includes_default
7206 /* malloc might have been renamed as rpl_malloc. */
7207 #undef malloc
7209 /* Thanks to Mike Haertel and Jim Avera for this test.
7210 Here is a matrix of mmap possibilities:
7211 mmap private not fixed
7212 mmap private fixed at somewhere currently unmapped
7213 mmap private fixed at somewhere already mapped
7214 mmap shared not fixed
7215 mmap shared fixed at somewhere currently unmapped
7216 mmap shared fixed at somewhere already mapped
7217 For private mappings, we should verify that changes cannot be read()
7218 back from the file, nor mmap's back from the file at a different
7219 address. (There have been systems where private was not correctly
7220 implemented like the infamous i386 svr4.0, and systems where the
7221 VM page cache was not coherent with the file system buffer cache
7222 like early versions of FreeBSD and possibly contemporary NetBSD.)
7223 For shared mappings, we should conversely verify that changes get
7224 propagated back to all the places they're supposed to be.
7226 Grep wants private fixed already mapped.
7227 The main things grep needs to know about mmap are:
7228 * does it exist and is it safe to write into the mmap'd area
7229 * how to use it (BSD variants) */
7231 #include <fcntl.h>
7232 #include <sys/mman.h>
7234 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7235 char *malloc ();
7236 #endif
7238 /* This mess was copied from the GNU getpagesize.h. */
7239 #ifndef HAVE_GETPAGESIZE
7240 # ifdef _SC_PAGESIZE
7241 # define getpagesize() sysconf(_SC_PAGESIZE)
7242 # else /* no _SC_PAGESIZE */
7243 # ifdef HAVE_SYS_PARAM_H
7244 # include <sys/param.h>
7245 # ifdef EXEC_PAGESIZE
7246 # define getpagesize() EXEC_PAGESIZE
7247 # else /* no EXEC_PAGESIZE */
7248 # ifdef NBPG
7249 # define getpagesize() NBPG * CLSIZE
7250 # ifndef CLSIZE
7251 # define CLSIZE 1
7252 # endif /* no CLSIZE */
7253 # else /* no NBPG */
7254 # ifdef NBPC
7255 # define getpagesize() NBPC
7256 # else /* no NBPC */
7257 # ifdef PAGESIZE
7258 # define getpagesize() PAGESIZE
7259 # endif /* PAGESIZE */
7260 # endif /* no NBPC */
7261 # endif /* no NBPG */
7262 # endif /* no EXEC_PAGESIZE */
7263 # else /* no HAVE_SYS_PARAM_H */
7264 # define getpagesize() 8192 /* punt totally */
7265 # endif /* no HAVE_SYS_PARAM_H */
7266 # endif /* no _SC_PAGESIZE */
7268 #endif /* no HAVE_GETPAGESIZE */
7271 main ()
7273 char *data, *data2, *data3;
7274 const char *cdata2;
7275 int i, pagesize;
7276 int fd, fd2;
7278 pagesize = getpagesize ();
7280 /* First, make a file with some known garbage in it. */
7281 data = (char *) malloc (pagesize);
7282 if (!data)
7283 return 1;
7284 for (i = 0; i < pagesize; ++i)
7285 *(data + i) = rand ();
7286 umask (0);
7287 fd = creat ("conftest.mmap", 0600);
7288 if (fd < 0)
7289 return 2;
7290 if (write (fd, data, pagesize) != pagesize)
7291 return 3;
7292 close (fd);
7294 /* Next, check that the tail of a page is zero-filled. File must have
7295 non-zero length, otherwise we risk SIGBUS for entire page. */
7296 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7297 if (fd2 < 0)
7298 return 4;
7299 cdata2 = "";
7300 if (write (fd2, cdata2, 1) != 1)
7301 return 5;
7302 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7303 if (data2 == MAP_FAILED)
7304 return 6;
7305 for (i = 0; i < pagesize; ++i)
7306 if (*(data2 + i))
7307 return 7;
7308 close (fd2);
7309 if (munmap (data2, pagesize))
7310 return 8;
7312 /* Next, try to mmap the file at a fixed address which already has
7313 something else allocated at it. If we can, also make sure that
7314 we see the same garbage. */
7315 fd = open ("conftest.mmap", O_RDWR);
7316 if (fd < 0)
7317 return 9;
7318 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7319 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7320 return 10;
7321 for (i = 0; i < pagesize; ++i)
7322 if (*(data + i) != *(data2 + i))
7323 return 11;
7325 /* Finally, make sure that changes to the mapped area do not
7326 percolate back to the file as seen by read(). (This is a bug on
7327 some variants of i386 svr4.0.) */
7328 for (i = 0; i < pagesize; ++i)
7329 *(data2 + i) = *(data2 + i) + 1;
7330 data3 = (char *) malloc (pagesize);
7331 if (!data3)
7332 return 12;
7333 if (read (fd, data3, pagesize) != pagesize)
7334 return 13;
7335 for (i = 0; i < pagesize; ++i)
7336 if (*(data + i) != *(data3 + i))
7337 return 14;
7338 close (fd);
7339 return 0;
7341 _ACEOF
7342 if ac_fn_c_try_run "$LINENO"; then :
7343 ac_cv_func_mmap_fixed_mapped=yes
7344 else
7345 ac_cv_func_mmap_fixed_mapped=no
7347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7348 conftest.$ac_objext conftest.beam conftest.$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7353 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7356 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7359 rm -f conftest.mmap conftest.txt
7362 #-----------------------------------------------------------------------------
7365 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7366 # it switched on by default, and we use the host compiler, so it compiles AROS
7367 # code with this enabled resulting in link failures as we don't have support
7368 # for it.
7370 # We use two methods to disable it. For the host compiler (used to compile
7371 # some hosted modules), we test to see if the compiler supports stack
7372 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7373 # work on all platforms.
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7377 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7378 save_cflags="$CFLAGS"
7379 CFLAGS="$CFLAGS -fno-stack-protector"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7384 main ()
7388 return 0;
7390 _ACEOF
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392 use_no_stack_protector="yes"
7393 else
7394 use_no_stack_protector="no"
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7398 $as_echo "$use_no_stack_protector" >&6; }
7399 if test "x-$use_no_stack_protector" = "x-yes" ; then
7400 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7402 CFLAGS="$save_cflags"
7404 #-----------------------------------------------------------------------------
7406 # Disable pointer-signedness warnings if the compiler recognises the option
7407 # (this only works for the host compiler at the moment)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7410 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7411 save_cflags="$CFLAGS"
7412 CFLAGS="$CFLAGS -Wno-pointer-sign"
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7417 main ()
7421 return 0;
7423 _ACEOF
7424 if ac_fn_c_try_compile "$LINENO"; then :
7425 use_no_sign_warning="yes"
7426 else
7427 use_no_sign_warning="no"
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7431 $as_echo "$use_no_sign_warning" >&6; }
7432 if test "x-$use_no_sign_warning" = "x-yes" ; then
7433 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7435 CFLAGS="$save_cflags"
7437 #-----------------------------------------------------------------------------
7439 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7442 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7443 save_cflags="$CFLAGS"
7444 CFLAGS="$CFLAGS -fgnu89-inline"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7449 main ()
7453 return 0;
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 use_gnu89_inline="yes"
7458 else
7459 use_gnu89_inline="no"
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7463 $as_echo "$use_gnu89_inline" >&6; }
7464 if test "x-$use_gnu89_inline" = "x-yes" ; then
7465 gnu89_inline="-fgnu89-inline"
7467 CFLAGS="$save_cflags"
7470 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7471 # On GCC >= 4.0 -iquote should be used
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7474 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7475 CFLAGS="$CFLAGS -iquote."
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7480 main ()
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_compile "$LINENO"; then :
7488 has_iquote="yes"
7489 else
7490 has_iquote="no"
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7494 $as_echo "$has_iquote" >&6; }
7495 if test "x-$has_iquote" = "x-yes" ; then
7496 host_cflags_iquote=-iquote
7497 host_cflags_iquote_end=
7498 else
7499 host_cflags_iquote=-I
7500 host_cflags_iquote_end=-I-
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7504 $as_echo "$as_me: Performing target configuration..." >&6;}
7507 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7509 toolchain_needs_sysroot=no
7511 aros_warn_flags=
7512 aros_isa_extra=
7513 aros_isa_flags=
7514 aros_config_cppflags=
7515 aros_config_cflags=
7516 aros_config_cxxflags=
7517 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7518 aros_config_ldflags=""
7520 aros_shared_default=yes
7522 aros_shared_cflags="-fPIC"
7523 aros_shared_aflags=""
7524 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7525 aros_kernel_ldflags="-Wl,-rpath,./lib"
7527 aros_kernel_ar_flags="cr"
7528 aros_target_ar_flags="cr"
7529 aros_target_nm_flags="-C -ul"
7530 aros_target_strip_flags="--strip-unneeded -R.comment"
7532 aros_compiler_libs=
7533 aros_arch_libs=
7535 aros_target_genmap="-Wl,-Map -Xlinker"
7537 # Native flavour stuff
7538 aros_serial_debug="0"
7540 # Palm native flavour stuff
7541 aros_palm_debug_hack="0"
7543 # Unix flavour stuff
7544 aros_nesting_supervisor="0"
7546 # Collect-aros stuff: "-ius" to ignore undefined symbols
7547 ignore_undefined_symbols=""
7549 # Check for X11 by default
7550 need_x11="auto"
7552 host_x_gfx=no
7553 host_sdl_gfx=no
7554 host_android_gfx=no
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7558 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7560 # Check whether --with-toolchain was given.
7561 if test "${with_toolchain+set}" = set; then :
7562 withval=$with_toolchain; aros_toolchain="$withval"
7563 else
7564 aros_toolchain="gnu"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7568 $as_echo "$aros_toolchain" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7572 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7573 # Check whether --enable-lto was given.
7574 if test "${enable_lto+set}" = set; then :
7575 enableval=$enable_lto; aros_config_lto="$enableval"
7576 else
7577 aros_config_lto="no"
7580 if test "$aros_config_lto" != "no"; then
7581 aros_config_lto="yes"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7584 $as_echo "$aros_config_lto" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7587 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7588 # Check whether --enable-coverage was given.
7589 if test "${enable_coverage+set}" = set; then :
7590 enableval=$enable_coverage; aros_config_coverage="$enableval"
7591 else
7592 aros_config_coverage="no"
7595 if test "$aros_config_coverage" != "no"; then
7596 aros_config_coverage="yes"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7599 $as_echo "$aros_config_coverage" >&6; }
7601 use_ld_wrapper=yes
7603 case "$aros_toolchain" in
7604 *llvm*)
7605 # toolchain_needs_sysroot=yes
7606 toolchain_c_compiler="clang"
7607 toolchain_cxx_compiler="clang++"
7608 toolchain_cpp_preprocessor="clang -E"
7609 toolchain_ld="ld.lld"
7610 aros_ld="ld"
7611 toolchain_as="llvm-as"
7612 toolchain_ar="llvm-ar"
7613 toolchain_ranlib="llvm-ranlib"
7614 toolchain_nm="llvm-nm"
7615 toolchain_strip="true"
7616 toolchain_objcopy="llvm-objcopy"
7617 toolchain_objdump="llvm-objdump"
7619 *gnu*)
7620 toolchain_c_compiler="gcc"
7621 toolchain_cxx_compiler="g++"
7622 toolchain_cpp_preprocessor="gcc -E"
7623 toolchain_as="as"
7624 aros_ld="ld"
7625 if test "$aros_config_lto" != "yes"; then
7626 toolchain_ld="ld"
7627 toolchain_ar="ar"
7628 toolchain_ranlib="ranlib"
7629 toolchain_nm="nm"
7630 else
7631 toolchain_ld="ld.bfd"
7632 toolchain_ar="gcc-ar"
7633 toolchain_ranlib="gcc-ranlib"
7634 toolchain_nm="gcc-nm"
7636 toolchain_strip="strip"
7637 toolchain_objcopy="objcopy"
7638 toolchain_objdump="objdump"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7642 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7643 toolchain_c_compiler="cc"
7644 toolchain_cxx_compiler="c++"
7645 toolchain_cpp_preprocessor="cpp"
7646 toolchain_ld="ld"
7647 aros_ld="ld"
7648 toolchain_as="as"
7649 toolchain_ar="ar"
7650 toolchain_ranlib="ranlib"
7651 toolchain_nm="nm"
7652 toolchain_strip="strip"
7653 toolchain_objcopy="objcopy"
7654 toolchain_objdump="objdump"
7656 esac
7658 #-----------------------------------------------------------------------------
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7661 $as_echo_n "checking which type of build to do... " >&6; }
7662 # Check whether --enable-build_type was given.
7663 if test "${enable_build_type+set}" = set; then :
7664 enableval=$enable_build_type; build_type=$enableval
7665 else
7666 build_type="personal"
7670 if test "$build_type" = "nightly"; then
7671 build_type_string="NIGHTLY"
7672 elif test "$build_type" = "snapshot"; then
7673 build_type_string="SNAPSHOT"
7674 elif test "$build_type" = "milestone"; then
7675 build_type_string="MILESTONE"
7676 elif test "$build_type" = "release"; then
7677 build_type_string="RELEASE"
7678 else
7679 build_type_string="PERSONAL"
7680 build_type="personal"
7683 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7686 $as_echo "$build_type" >&6; }
7688 #-----------------------------------------------------------------------------
7689 all_debug_types="messages stack modules mungwall symbols"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7692 $as_echo_n "checking which debug types to enable... " >&6; }
7693 # Check whether --enable-debug was given.
7694 if test "${enable_debug+set}" = set; then :
7695 enableval=$enable_debug; debug="$enableval"
7696 else
7697 debug=""
7701 if test "$debug" = "" -o "$debug" = "no"; then
7702 debug="none"
7703 elif test "$debug" = "yes"; then
7704 debug="all"
7707 if test "$debug" = "all" ; then
7708 debug="messages stack modules symbols"
7709 for d in $all_debug_types; do
7710 export aros_${d}_debug="1"
7711 done
7712 else
7713 for d in $all_debug_types; do
7714 export aros_${d}_debug="0"
7715 done
7718 if test "$debug" != "none"; then
7719 debug=`echo $debug | sed s/,/\ /g`
7720 for d in $debug; do
7721 found="0"
7722 for d2 in $all_debug_types; do
7723 if test "$d2" = "$d"; then
7724 found="1"
7725 break
7727 done
7728 if test "$found" = "0"; then
7729 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7731 export aros_${d}_debug="1"
7732 done
7733 aros_debug="yes"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7736 $as_echo "$debug" >&6; }
7738 if test "$aros_messages_debug" = "1"; then
7739 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7740 else
7741 aros_messages_debug=""
7743 if test "$aros_symbols_debug" = "1"; then
7744 aros_symbols_debug="-g"
7745 else
7746 aros_symbols_debug=""
7749 # These are the flags to pass when compiling debugged programs
7750 aros_debug_cppflags="$aros_messages_debug"
7751 aros_debug_cflags="$aros_symbols_debug"
7752 aros_debug_cxxflags=
7753 aros_debug_aflags=""
7754 aros_debug_ldflags="$aros_symbols_debug"
7756 #-----------------------------------------------------------------------------
7757 # Checking for distcc and ccache.
7759 # Always apply the transforms in this particular order. Basically you should
7760 # always run 'ccache distcc compiler' in that order for the best performance.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7763 $as_echo_n "checking whether to enable distcc... " >&6; }
7764 # Check whether --enable-distcc was given.
7765 if test "${enable_distcc+set}" = set; then :
7766 enableval=$enable_distcc; distcc="$enableval"
7767 else
7768 distcc="no"
7771 if test "$distcc" != "" -a "$distcc" != "no"; then
7772 # AC_CHECK_PROG will print out the result in this case
7773 # Extract the first word of "distcc", so it can be a program name with args.
7774 set dummy distcc; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_path_DISTCC+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 case $DISTCC in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7800 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7802 esac
7804 DISTCC=$ac_cv_path_DISTCC
7805 if test -n "$DISTCC"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7807 $as_echo "$DISTCC" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7820 $as_echo_n "checking whether to enable ccache... " >&6; }
7821 # Check whether --enable-ccache was given.
7822 if test "${enable_ccache+set}" = set; then :
7823 enableval=$enable_ccache; ccache="$enableval"
7824 else
7825 ccache="no"
7828 if test "$ccache" != "" -a "$ccache" != "no"; then
7829 # AC_CHECK_PROG will print out the result in this case
7830 # Extract the first word of "ccache", so it can be a program name with args.
7831 set dummy ccache; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_CCACHE+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$CCACHE"; then
7838 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_CCACHE="ccache"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 CCACHE=$ac_cv_prog_CCACHE
7858 if test -n "$CCACHE"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7860 $as_echo "$CCACHE" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 #-----------------------------------------------------------------------------
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7874 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7876 # Check whether --with-kernel-gcc-version was given.
7877 if test "${with_kernel_gcc_version+set}" = set; then :
7878 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7879 else
7880 kernel_tool_version=""
7883 if test "$kernel_tool_version" != "" ; then
7884 msg_result=$kernel_tool_version
7885 else
7886 msg_result="default"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7889 $as_echo "$msg_result" >&6; }
7891 #-----------------------------------------------------------------------------
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7893 $as_echo_n "checking what optimization flags to use... " >&6; }
7895 # Check whether --with-optimization was given.
7896 if test "${with_optimization+set}" = set; then :
7897 withval=$with_optimization; optimization_level="$withval"
7898 else
7899 optimization_level="unknown"
7902 if test "$optimization_level" = "unknown"; then
7903 optimization="default"
7904 if test "$debug" != "none"; then
7905 optimization_level="-O0"
7906 else
7907 optimization_level="-O2"
7909 else
7910 optimization="$optimization_level"
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7913 $as_echo "$optimization" >&6; }
7915 paranoia_default=yes
7916 #-----------------------------------------------------------------------------
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7918 $as_echo_n "checking which paranoia flags to use... " >&6; }
7920 # Check whether --with-paranoia was given.
7921 if test "${with_paranoia+set}" = set; then :
7922 withval=$with_paranoia; paranoia_flags="$withval"
7923 else
7924 paranoia_flags="$paranoia_default"
7927 if test "$paranoia_flags" = "no"; then
7928 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7929 msg_result="none"
7930 else
7931 if test "$paranoia_flags" = "yes"; then
7932 paranoia_flags="-Wall -Werror"
7934 msg_result="$paranoia_flags"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7937 $as_echo "$msg_result" >&6; }
7938 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7940 #-----------------------------------------------------------------------------
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7942 $as_echo_n "checking what target variant to enable... " >&6; }
7943 # Check whether --enable-target_variant was given.
7944 if test "${enable_target_variant+set}" = set; then :
7945 enableval=$enable_target_variant; target_variant=$enableval
7946 else
7947 target_variant=""
7950 if test "$target_variant" = ""; then
7951 aros_target_variant=""
7952 aros_target_suffix=""
7953 enableval="none"
7954 else
7955 aros_target_variant="$target_variant"
7956 aros_target_suffix="-$target_variant"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7959 $as_echo "$enableval" >&6; }
7961 #-----------------------------------------------------------------------------
7962 # Target-specific defaults. You can override then on a per-target basis.
7964 # Bootloader name. Currently used by PC target.
7965 target_bootloader="none"
7966 PLATFORM_EXECSMP=
7967 ENABLE_EXECSMP=
7969 #-----------------------------------------------------------------------------
7970 # Additional options for some specific targets
7972 case "$aros_target_variant" in
7973 ios)
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7975 $as_echo_n "checking XCode path... " >&6; }
7977 # Check whether --with-xcode was given.
7978 if test "${with_xcode+set}" = set; then :
7979 withval=$with_xcode; aros_xcode_path="$withval"
7980 else
7981 aros_xcode_path="/Developer"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7985 $as_echo "$aros_xcode_path" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7988 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7990 # Check whether --with-sdk-version was given.
7991 if test "${with_sdk_version+set}" = set; then :
7992 withval=$with_sdk_version; aros_sdk_version="$withval"
7993 else
7994 aros_sdk_version="4.1"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7998 $as_echo "$aros_sdk_version" >&6; }
8002 "android")
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8004 $as_echo_n "checking Android SDK path... " >&6; }
8006 # Check whether --with-sdk was given.
8007 if test "${with_sdk+set}" = set; then :
8008 withval=$with_sdk; aros_android_sdk="$withval"
8009 else
8010 aros_android_sdk=$default_android_sdk
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8014 $as_echo "$aros_android_sdk" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8017 $as_echo_n "checking Android NDK path... " >&6; }
8019 # Check whether --with-ndk was given.
8020 if test "${with_ndk+set}" = set; then :
8021 withval=$with_ndk; aros_android_ndk="$withval"
8022 else
8023 aros_android_ndk="none"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8027 $as_echo "$aros_android_ndk" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8030 $as_echo_n "checking what Android SDK version to use... " >&6; }
8032 # Check whether --with-sdk-version was given.
8033 if test "${with_sdk_version+set}" = set; then :
8034 withval=$with_sdk_version; aros_sdk_version="$withval"
8035 else
8036 aros_sdk_version="12"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8040 $as_echo "$aros_sdk_version" >&6; }
8042 aros_android_level=android-$aros_sdk_version
8043 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8044 echo "Platform $aros_android_level is not installed in your SDK"
8045 echo "Use --with-sdk-version=<API level number> to select another platform version"
8046 echo "You can check what plaform versions are installed in your SDK"
8047 echo "by examining contents of $aros_android_sdk/platforms directory"
8048 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8051 export PATH="$aros_android_sdk/tools:$PATH"
8052 # Extract the first word of "$android_tool", so it can be a program name with args.
8053 set dummy $android_tool; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_android_tool+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 case $android_tool in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8080 esac
8082 android_tool=$ac_cv_path_android_tool
8083 if test -n "$android_tool"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8085 $as_echo "$android_tool" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8092 req_avail=yes
8093 if test "$android_tool" = ""; then
8094 req_avail=no
8096 if test "$android_tool" = "no"; then
8097 req_avail=no
8099 if test "$req_avail" = "no"; then
8100 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8103 if test "$aros_android_ndk" != "none"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8105 $as_echo_n "checking what Android NDK version to use... " >&6; }
8107 # Check whether --with-ndk-version was given.
8108 if test "${with_ndk_version+set}" = set; then :
8109 withval=$with_ndk_version; aros_ndk_version="$withval"
8110 else
8111 aros_ndk_version="9"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8115 $as_echo "$aros_ndk_version" >&6; }
8118 # Extract the first word of "ant", so it can be a program name with args.
8119 set dummy ant; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if ${ac_cv_path_ant+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 case $ant in
8126 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8141 done
8142 done
8143 IFS=$as_save_IFS
8146 esac
8148 ant=$ac_cv_path_ant
8149 if test -n "$ant"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8151 $as_echo "$ant" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 if test "$ant" = ""; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8160 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8164 $as_echo_n "checking Build debug or release apk... " >&6; }
8166 # Check whether --with-apk-version was given.
8167 if test "${with_apk_version+set}" = set; then :
8168 withval=$with_apk_version; aros_android_antapk=$withval
8169 else
8170 aros_android_antapk=release
8173 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8174 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8177 $as_echo "$aros_android_antapk" >&6; }
8179 if test "$host_os" = "mingw32"; then
8180 android_tool="cmd //c $android_tool"
8183 need_dlopen="no"
8186 esac
8188 #-----------------------------------------------------------------------------
8189 # External toolchains
8190 kernel_tool_prefix="none"
8191 aros_tool_prefix="none"
8192 elf_tool_prefix="${target_cpu}-elf-"
8193 x86_isa_extra="ISA_X86_FLAGS := -m32 -march=i486"
8194 x86_64_isa_extra="ISA_X8664_FLAGS := -mcmodel=large"
8195 export_newline="
8197 # This is the target configuration switch.
8198 case "$target_os" in
8199 linux*)
8200 aros_target_arch="linux"
8201 aros_target_family="unix"
8202 case "$target_cpu" in
8203 *m68k*)
8204 aros_target_cpu="m68k"
8205 aros_object_format="m68kelf"
8206 aros_flavour="emulcompat"
8207 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8208 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8209 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8210 gcc_target_cpu="mc68000"
8212 *i?86*)
8213 aros_target_cpu="i386"
8214 aros_object_format="elf_i386"
8215 aros_flavour="emulation"
8216 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8217 aros_isa_flags="$""(ISA_X86_FLAGS)"
8218 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8219 aros_kernel_ldflags="-Wl,-melf_i386"
8220 aros_nominal_depth=8
8221 gcc_target_cpu="i386"
8222 pci_hidd_target="hidd-pci-linux"
8223 android_tool_dir_prefix="x86"
8224 android_tool_prefix="i686-android-linux"
8225 android_ndk_arch="x86"
8227 *x86_64*)
8228 aros_target_cpu="x86_64"
8229 aros_object_format="elf_x86_64"
8230 aros_flavour="emulation"
8231 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8232 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8233 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8234 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8235 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8236 aros_nominal_depth=8
8237 pci_hidd_target="hidd-pci-linux"
8239 *powerpc*)
8240 aros_target_cpu="ppc"
8241 aros_object_format="elf32ppc"
8242 aros_flavour="emulation"
8243 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8244 aros_nominal_depth=8
8245 gcc_target_cpu="ppc"
8247 # TODO
8248 # Same as powerpc, but I need this for the nightly build to work again.
8249 # Actually, the nightly should be made working with powerpc target.
8250 # That just was too much work for the moment, another week or two.
8251 *ppc*)
8252 aros_target_cpu="ppc"
8253 aros_object_format="elf32ppc"
8254 aros_flavour="emulation"
8255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8256 aros_nominal_depth=8
8257 gcc_target_cpu="ppc"
8259 *aarch64*)
8260 aros_target_cpu="aarch64"
8261 target_cpu="aarch64"
8262 aros_object_format="aarch64elf_aros"
8263 aros_flavour="emulation"
8264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8265 gcc_target_cpu="aarch64"
8266 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8267 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8268 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8269 aros_arch_libs="-laeabi"
8270 gcc_default_float_abi="hard"
8271 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8273 *armhf*)
8274 aros_target_cpu="arm"
8275 target_cpu="arm"
8276 aros_object_format="armelf_aros"
8277 aros_flavour="emulation"
8278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8279 gcc_target_cpu="arm"
8280 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8281 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8282 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8283 aros_arch_libs="-laeabi"
8284 gcc_default_float_abi="hard"
8285 android_tool_dir_prefix="arm-linux-androideabi"
8286 android_tool_prefix="arm-linux-androideabi"
8287 android_ndk_arch="arm"
8288 kernel_tool_prefix="arm-linux-gnueabihf-"
8290 *arm*)
8291 aros_target_cpu="arm"
8292 aros_object_format="armelf_aros"
8293 aros_flavour="emulation"
8294 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8295 gcc_target_cpu="arm"
8296 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8297 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8298 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8299 aros_arch_libs="-laeabi"
8300 android_tool_dir_prefix="arm-linux-androideabi"
8301 android_tool_prefix="arm-linux-androideabi"
8302 android_ndk_arch="arm"
8303 kernel_tool_prefix="arm-linux-gnueabi-"
8306 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8308 esac
8309 case "$aros_target_variant" in
8310 android)
8312 if test "$android_ndk_arch" = ""; then
8313 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8316 aros_nominal_width=320
8317 aros_nominal_height=480
8318 if test "$aros_android_ndk" = "none"; then
8319 aros_kernel_cflags="-mandroid"
8320 aros_kernel_ldflags="-mandroid"
8321 CFLAGS="-mandroid"
8322 else
8323 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8324 kernel_tool_version=""
8325 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8326 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8327 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8328 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8329 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8331 need_x11=no
8332 host_android_gfx=yes
8333 # Disable implicit PIC mode
8334 aros_config_cflags="$aros_config_cflags -fno-pic"
8335 kernel_tool_prefix="$android_tool_prefix-"
8337 esac
8341 aros_target_arch="pc"
8342 aros_shared_default="no"
8343 target_bootloader="grub2"
8344 case "$target_cpu" in
8345 *i?86*)
8346 aros_target_cpu="i386"
8349 if test "$aros_object_format" = "" ; then
8350 aros_object_format="elf_i386"
8352 aros_flavour="standalone"
8353 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8354 aros_isa_flags="$""(ISA_X86_FLAGS)"
8355 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8356 aros_kernel_ldflags="-Wl,-melf_i386"
8357 aros_nominal_width=640
8358 aros_nominal_height=480
8359 gcc_target_cpu="i386"
8361 *x86_64*)
8362 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8363 aros_target_cpu="x86_64"
8364 aros_serial_debug=1
8365 if test "$aros_object_format" = "" ; then
8366 aros_object_format="elf_x86_64"
8368 aros_flavour="standalone"
8369 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8370 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8371 x86_64_isa_extra="$x86_64_isa_extra -mno-red-zone"
8372 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8373 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8374 aros_kernel_ldflags=""
8375 aros_nominal_width=640
8376 aros_nominal_height=480
8377 case "$aros_target_variant" in
8378 smp)
8379 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8381 esac
8384 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8386 esac
8389 prep)
8390 aros_target_arch="prep"
8391 aros_shared_default="no"
8392 aros_target_cpu="ppc"
8393 aros_object_format="elf32ppc"
8394 aros_flavour="ppcnative"
8395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8396 aros_kernel_ldflags=""
8397 aros_nominal_width=640
8398 aros_nominal_height=480
8399 gcc_target_cpu="ppc"
8402 freebsd*)
8403 aros_target_arch="freebsd"
8404 aros_target_family="unix"
8405 aros_target_cpu="i386"
8406 aros_flavour="emulation"
8407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8408 gcc_target_cpu="i386"
8410 aros_target_strip_flags="-x"
8413 darwin*)
8414 aros_target_arch="darwin"
8415 aros_target_family="unix"
8416 aros_flavour="emulation"
8417 case "$target_cpu" in
8418 *i?86*)
8419 aros_ios_platform="iPhoneSimulator"
8420 aros_target_cpu="i386"
8421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8422 aros_isa_flags="$""(ISA_X86_FLAGS)"
8423 aros_kernel_ldflags=""
8424 aros_macosx_version="10.4"
8425 aros_nominal_depth=8
8426 gcc_target_cpu="i386"
8427 aros_object_format="elf_i386"
8428 aros_kernel_ar_flags="-cr"
8429 aros_target_strip_flags="-x"
8430 kernel_tool_flags="-m32"
8432 *x86_64*)
8433 aros_target_cpu="x86_64"
8434 aros_object_format="elf_x86_64"
8435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8436 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8437 aros_macosx_version="10.6"
8438 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8439 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8440 aros_kernel_cflags="-m64"
8441 aros_kernel_ldflags="-m64"
8442 aros_nominal_depth=8
8443 aros_kernel_ar="ar"
8444 aros_kernel_ar_flags="-cr"
8445 aros_kernel_ld="ld"
8446 aros_kernel_as="as"
8447 aros_kernel_ranlib="ranlib"
8448 aros_kernel_nm="nm"
8449 aros_kernel_strip="strip"
8450 kernel_tool_prefix="i686-apple-darwin10-"
8452 *ppc*)
8453 aros_target_cpu="ppc"
8454 aros_object_format="elf32ppc"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8456 aros_kernel_ldflags=""
8457 aros_macosx_version="10.0"
8458 aros_nominal_depth=8
8459 gcc_target_cpu="ppc"
8460 aros_kernel_ar="ar"
8461 aros_kernel_ar_flags="-cr"
8462 aros_kernel_ld="ld -arch ppc"
8463 aros_kernel_as="as -arch ppc"
8464 aros_kernel_ranlib="ranlib -arch ppc"
8465 aros_kernel_nm="nm -arch ppc"
8466 aros_kernel_strip="strip -arch ppc"
8467 kernel_tool_prefix="powerpc-apple-darwin10-"
8469 *arm*)
8470 aros_ios_platform="iPhoneOS"
8471 aros_target_cpu="arm"
8472 aros_object_format="armelf_aros"
8473 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8474 aros_arch_libs="-laeabi"
8475 aros_nominal_depth=8
8476 gcc_target_cpu="arm"
8477 aros_kernel_ar="ar"
8478 aros_kernel_ar_flags="-cr"
8479 aros_kernel_ld="ld -arch arm"
8480 aros_kernel_ranlib="ranlib -arch arm"
8481 kernel_tool_prefix="arm-apple-darwin10-"
8482 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8485 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8487 esac
8488 case "$aros_target_variant" in
8489 ios)
8490 aros_ios_version="3.0"
8491 aros_nominal_width=320
8492 aros_nominal_height=480
8493 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8494 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8495 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8496 need_x11=no
8497 # This is here because it may depend on iOS or SDK version
8498 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8499 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8500 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8503 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8504 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8506 esac
8509 dragonfly*)
8510 aros_target_arch="dragonfly"
8511 aros_target_family="unix"
8512 aros_flavour="emulation"
8513 case "$target_cpu" in
8514 *i?86*)
8515 aros_target_cpu="i386"
8516 aros_object_format="elf_i386"
8517 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8518 aros_isa_flags="$""(ISA_X86_FLAGS)"
8520 *x86_64*)
8521 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8522 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8523 aros_target_cpu="x86_64"
8524 aros_object_format="elf_x86_64"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8526 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8529 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8531 esac
8534 netbsd*)
8535 aros_target_arch="netbsd"
8536 aros_target_family="unix"
8537 case "$target_cpu" in
8538 *m68k*)
8539 aros_target_cpu="m68k"
8540 aros_object_format="m68kelf"
8541 aros_flavour="emulcompat"
8542 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8543 gcc_target_cpu="mc68000"
8545 *i?86*)
8546 aros_target_cpu="i386"
8547 aros_object_format="elf_i386"
8548 aros_flavour="emulation"
8549 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8550 aros_isa_flags="$""(ISA_X86_FLAGS)"
8551 aros_nominal_depth=8
8552 gcc_target_cpu="i386"
8555 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8557 esac
8558 aros_target_genmap="-Wl,-M -Xlinker >"
8559 aros_flavour="emulation"
8560 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8563 openbsd*)
8564 aros_target_arch="openbsd"
8565 aros_target_family="unix"
8566 case "$target_cpu" in
8567 *i?86*)
8568 aros_target_cpu="i386"
8569 aros_object_format="elf_i386"
8570 aros_flavour="emulation"
8571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8572 aros_isa_flags="$""(ISA_X86_FLAGS)"
8573 gcc_target_cpu="i386"
8576 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8578 esac
8579 aros_target_genmap="-Wl,-M -Xlinker >"
8580 aros_target_nm_flags="-u"
8581 aros_flavour="emulation"
8584 solaris*)
8585 aros_target_arch="solaris"
8586 aros_target_family="unix"
8587 case "$target_cpu" in
8588 *i?86*)
8589 aros_target_cpu="i386"
8590 aros_object_format="elf_i386"
8591 aros_flavour="emulation"
8592 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8593 aros_isa_flags="$""(ISA_X86_FLAGS)"
8594 aros_nominal_depth=8
8595 gcc_target_cpu="i386"
8597 *sparc*)
8598 aros_target_cpu="sparc"
8599 aros_object_format="elf_sparc"
8600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8601 gcc_target_cpu="sparc"
8604 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8606 esac
8607 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8608 aros_flavour="emulation"
8611 morphos*)
8612 aros_target_arch="morphos"
8613 aros_shared_default="no"
8614 aros_target_cpu="ppc"
8615 aros_object_format="elf_ppc"
8616 aros_flavour="nativecompat"
8617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8618 gcc_target_cpu="ppc"
8621 sam440)
8622 aros_target_arch="sam440"
8623 aros_shared_default="no"
8624 aros_target_cpu="ppc"
8625 aros_object_format="elf32ppc"
8626 aros_flavour="ppcnative"
8627 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8628 aros_kernel_ldflags=""
8629 aros_nominal_width=1024
8630 aros_nominal_height=768
8631 aros_nominal_depth=24
8632 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8633 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8634 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8635 gcc_target_cpu="powerpc"
8638 efika)
8639 aros_target_arch="efika"
8640 aros_shared_default="no"
8641 aros_target_cpu="arm"
8642 aros_object_format="armelf_aros"
8643 aros_flavour="standalone"
8644 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8645 aros_kernel_ldflags=""
8646 aros_nominal_width=1024
8647 aros_nominal_height=600
8648 aros_arch_libs="-laeabi"
8649 gcc_default_cpu="armv7-a"
8650 gcc_default_fpu="vfpv3"
8651 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8652 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8653 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8654 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8655 if test "$optimization" = "default"; then
8656 optimization_level="-Os"
8658 case "$target_cpu" in
8659 *armhf*)
8660 gcc_default_float_abi="hard"
8661 target_cpu=arm
8662 aros_target_cpu=arm
8664 *arm*)
8665 gcc_default_float_abi="softfp"
8668 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8670 esac
8673 chrp)
8674 aros_target_arch="chrp"
8675 aros_shared_default="no"
8676 aros_target_cpu="ppc"
8677 aros_object_format="elf32ppc"
8678 aros_flavour="ppcnative"
8679 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8680 aros_kernel_ldflags=""
8681 aros_nominal_width=640
8682 aros_nominal_height=480
8683 aros_isa_flags="$aros_isa_flags -mno-toc"
8684 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8685 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8686 gcc_target_cpu="powerpc"
8687 case "$aros_target_variant" in
8688 efika)
8689 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8690 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8692 esac
8695 r*pi)
8696 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8697 aros_flavour="standalone"
8698 aros_target_arch="raspi"
8700 aros_shared_default="no"
8702 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8704 case "$target_cpu" in
8705 *aarch64*)
8706 aros_target_cpu="aarch64"
8707 gcc_default_cpu="aarch64"
8708 aros_object_format="aarch64elf_aros"
8710 *armhf*)
8711 aros_target_cpu="arm"
8712 gcc_default_cpu="armv6zk"
8713 gcc_default_cpu_tune="arm1176jzf-s"
8714 aros_object_format="armelf_aros"
8715 aros_isa_flags="$aros_isa_flags -marm"
8716 aros_config_cflags="$aros_config_cflags"
8717 aros_config_cxxflags="$aros_config_cxxflags"
8718 aros_config_aflags="$aros_config_aflags -marm"
8719 aros_kernel_cflags="$aros_kernel_cflags -marm"
8720 aros_target_mkdep="$aros_target_mkdep -Darm"
8721 aros_arch_libs="-laeabi"
8723 *arm*)
8724 aros_target_cpu="arm"
8725 gcc_default_cpu="armv6zk"
8726 gcc_default_cpu_tune="arm1176jzf-s"
8727 aros_object_format="armelf_aros"
8728 aros_isa_flags="$aros_isa_flags -marm"
8729 aros_config_cflags="$aros_config_cflags"
8730 aros_config_cxxflags="$aros_config_cxxflags"
8731 aros_config_aflags="$aros_config_aflags -marm"
8732 aros_kernel_cflags="$aros_kernel_cflags -marm"
8733 aros_target_mkdep="$aros_target_mkdep -Darm"
8734 aros_arch_libs="-laeabi"
8737 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8739 esac
8741 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8742 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8743 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8744 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8746 case "$aros_target_variant" in
8747 smp)
8748 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8750 esac
8753 stm32f7_discovery)
8754 aros_flavour="standalone"
8755 aros_target_arch="stm32f7_discovery"
8756 aros_target_cpu="arm"
8757 aros_target_cpu_mode="thumb2"
8758 aros_object_format="armelf_aros"
8759 aros_shared_default="no"
8761 gcc_default_cpu="armv7e-m"
8762 gcc_default_cpu_tune="cortex-m7"
8763 gcc_default_fpu="fpv5-sp-d16"
8764 gcc_default_float_abi="hard"
8766 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8769 amiga*)
8770 aros_target_arch="amiga"
8771 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8772 aros_shared_default="no"
8774 case "$target_cpu" in
8775 *m68k*)
8776 # Check whether --enable-amigaos_compliance was given.
8777 if test "${enable_amigaos_compliance+set}" = set; then :
8778 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8781 aros_enable_mmu=no
8782 aros_target_cpu="m68k"
8783 aros_object_format="m68kelf"
8784 aros_flavour="standcompat"
8785 gcc_target_cpu="m68000"
8786 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8787 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8788 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8789 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8790 if test "$optimization" = "default"; then
8791 optimization_level="-Os"
8793 aros_config_aflags="$aros_config_aflags"
8794 aros_target_strip_flags="-R.comment --strip-debug"
8795 aros_nominal_width=640
8796 aros_nominal_height=256
8797 aros_nominal_depth=2
8799 *ppc*)
8800 aros_cpu="ppc"
8801 aros_flavour="native"
8802 gcc_target_cpu="ppc"
8805 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8807 esac
8810 mingw*)
8811 aros_target_arch="mingw32"
8812 aros_shared_default="no"
8813 aros_flavour="emulation"
8814 aros_shared_cflags=""
8815 need_crosstools="yes"
8816 need_dlopen="no"
8817 rescomp="windres"
8818 case "$target_cpu" in
8819 *i?86*)
8820 aros_target_cpu="i386"
8821 aros_object_format="elf_i386"
8822 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8823 aros_isa_flags="$""(ISA_X86_FLAGS)"
8824 aros_nominal_depth=8
8825 gcc_target_cpu="i386"
8827 kernel_tool_prefix="i386-mingw32-"
8829 *x86_64*)
8830 aros_target_cpu="x86_64"
8831 aros_object_format="elf_x86_64"
8832 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8833 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8834 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8835 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8836 aros_nominal_depth=8
8837 kernel_tool_prefix="x86_64-w64-mingw32-"
8839 *arm*)
8840 aros_target_cpu="arm"
8841 aros_object_format="armelf_aros"
8842 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8843 aros_arch_libs="-laeabi"
8844 aros_nominal_depth=8
8845 gcc_target_cpu="arm"
8846 gcc_default_float_abi="soft"
8847 kernel_tool_prefix="arm-mingw32ce-"
8848 aros_nominal_width=160
8849 aros_nominal_height=160
8852 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8854 esac
8855 if test $host_os = "cygwin"; then
8856 aros_kernel_cflags="-mno-cygwin"
8859 pp*)
8860 aros_target_arch="pp"
8861 aros_shared_default="no"
8862 case "$target_cpu" in
8863 *m68k*)
8864 aros_target_cpu="m68k"
8865 aros_object_format="m68kelf"
8866 aros_flavour="palmnative"
8867 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8868 aros_nominal_width=160
8869 aros_nominal_height=160
8870 aros_nominal_depth=1
8871 aros_target_ar_flags="cru"
8872 aros_compiler_libs="-lgcc1"
8873 aros_shared_default=no
8874 aros_shared_cflags="-fpic"
8875 aros_shared_aflags=""
8876 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8877 aros_kernel_ldflags="-Wl,-rpath,./lib"
8878 aros_debug_cppflags="$aros_messages_debug"
8879 aros_debug_cflags="$aros_symbols_debug"
8880 aros_debug_aflags=""
8881 aros_debug_ldflags="$aros_symbols_debug"
8882 aros_mungwall_debug="0"
8883 aros_modules_debug="0"
8884 gcc_target_cpu="mc68000"
8885 ignore_undefined_symbols="-ius"
8888 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8890 esac
8893 mac*)
8894 aros_target_arch="mac"
8895 aros_shared_default="no"
8896 case "$target_cpu" in
8897 *m68k*)
8898 aros_target_cpu="m68k"
8899 aros_object_format="m68kelf"
8900 aros_flavour="mac68knative"
8901 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8902 aros_nominal_width=512
8903 aros_nominal_height=384
8904 aros_nominal_depth=8
8905 aros_target_ar_flags="cru"
8906 aros_compiler_libs="-lgcc1"
8907 aros_shared_default=no
8908 aros_shared_cflags="-fpic"
8909 aros_shared_aflags=""
8910 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8911 aros_kernel_ldflags="-Wl,-rpath,./lib"
8912 aros_debug_cppflags="$aros_messages_debug"
8913 aros_debug_cflags="$aros_symbols_debug"
8914 aros_debug_aflags=""
8915 aros_debug_ldflags="$aros_symbols_debug"
8916 aros_mungwall_debug="0"
8917 aros_modules_debug="0"
8918 gcc_target_cpu="mc68000"
8919 ignore_undefined_symbols="-ius"
8922 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8924 esac
8928 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8930 esac
8932 #-----------------------------------------------------------------------------
8933 crosstools_guess="yes"
8934 aros_target_toolchain="no"
8935 aros_config_sysroot=""
8936 aros_kernel_sysroot=""
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8939 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8941 # Check whether --with-kernel-toolchain-prefix was given.
8942 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8943 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8947 $as_echo "$kernel_tool_prefix" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8950 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8952 # Check whether --with-elf-toolchain-prefix was given.
8953 if test "${with_elf_toolchain_prefix+set}" = set; then :
8954 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8955 crosstools_guess="no"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8959 $as_echo "$elf_tool_prefix" >&6; }
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8962 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8964 # Check whether --with-aros-toolchain was given.
8965 if test "${with_aros_toolchain+set}" = set; then :
8966 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8967 crosstools_guess="no"
8970 if test "$aros_tool_prefix" = "yes" ; then
8971 aros_tool_prefix=$aros_target_cpu-aros-
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8974 $as_echo "$aros_tool_prefix" >&6; }
8976 #-----------------------------------------------------------------------------
8977 # Checking if we should build crosstools..
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8979 $as_echo_n "checking whether to build crosstools... " >&6; }
8980 # Check whether --enable-crosstools was given.
8981 if test "${enable_crosstools+set}" = set; then :
8982 enableval=$enable_crosstools; crosstools="$enableval"
8983 else
8984 crosstools="$crosstools_guess"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8988 $as_echo "$crosstools" >&6; }
8990 if test "${crosstools}" = "yes"; then
8991 if test "${crosstools_guess}" = "no"; then
8992 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8996 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8997 aros_target_toolchain="yes"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9001 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9003 # Check whether --with-aros-toolchain-install was given.
9004 if test "${with_aros_toolchain_install+set}" = set; then :
9005 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9008 if test "x$aros_toolchain_install" = "x"; then
9009 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9010 else
9011 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9012 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9013 if test "$crosstools_guess" = "no" ; then
9014 toolchain_needs_sysroot=yes
9016 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9017 aros_kernel_sysroot = $aros_config_sysroot
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9022 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9025 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9026 if test "$toolchain_needs_sysroot" = "yes" ; then
9027 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9030 $as_echo "$toolchain_needs_sysroot" >&6; }
9032 #-----------------------------------------------------------------------------
9033 if test "$aros_toolchain" = "gnu" ; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9035 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9038 # Check whether --with-binutils-version was given.
9039 if test "${with_binutils_version+set}" = set; then :
9040 withval=$with_binutils_version; use_binutils_version="$withval"
9041 else
9042 use_binutils_version=""
9045 if test "$use_binutils_version" = ""; then
9046 target_binutils_version="$default_binutils_version"
9047 else
9048 target_binutils_version="$use_binutils_version"
9050 if test "$aros_toolchain" = "gnu" ; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9052 $as_echo "$target_binutils_version" >&6; }
9056 # Helper to identify gcc version
9059 #-----------------------------------------------------------------------------
9060 if test "$aros_toolchain" = "gnu" ; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9062 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9065 # Check whether --with-gcc-version was given.
9066 if test "${with_gcc_version+set}" = set; then :
9067 withval=$with_gcc_version; use_gcc_version="$withval"
9068 else
9069 use_gcc_version=""
9072 if test "$use_gcc_version" = ""; then
9073 if test "${crosstools}" = "no"; then
9074 if test "x$aros_toolchain_install" != "x"; then
9076 target_gcc_version=""
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9078 $as_echo_n "checking gcc version... " >&6; }
9079 if ${ax_cv_gcc_version+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9083 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9084 if test "x$ax_cv_gcc_version" = "x"; then :
9086 ax_cv_gcc_version=""
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9092 $as_echo "$ax_cv_gcc_version" >&6; }
9093 target_gcc_version=$ax_cv_gcc_version
9098 if test "$use_gcc_version" = ""; then
9099 target_gcc_version="$default_gcc_version"
9101 else
9102 target_gcc_version="$use_gcc_version"
9104 if test "$aros_toolchain" = "gnu" ; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9106 $as_echo "$target_gcc_version" >&6; }
9108 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9109 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9110 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9112 gcc_fix_bitfields="false"
9113 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9114 gcc_fix_bitfields="true"
9115 else
9116 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9117 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9118 gcc_fix_bitfields="true"
9123 if test "$gcc_fix_bitfields" = "true" ; then
9124 case "$aros_target_cpu" in
9125 *x86_64* | i386)
9126 x86_isa_extra="$x86_isa_extra -mno-ms-bitfields"
9127 x86_64_isa_extra="$x86_64_isa_extra -mno-ms-bitfields"
9129 esac
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9134 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9135 # Check whether --enable-objc was given.
9136 if test "${enable_objc+set}" = set; then :
9137 enableval=$enable_objc; objc="$enableval"
9138 else
9139 objc="no"
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9143 $as_echo "$objc" >&6; }
9144 if test "x$objc" = "xyes"; then
9145 objc_target="$objc"
9146 else
9147 objc_target="no-objc"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9151 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9152 # Check whether --enable-java was given.
9153 if test "${enable_java+set}" = set; then :
9154 enableval=$enable_java; java="$enableval"
9155 else
9156 java="no"
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9160 $as_echo "$java" >&6; }
9161 if test "x$java" != "xno"; then
9162 java_target="$java"
9163 else
9164 java_target="no-java"
9167 spec_obj_format="-m $aros_object_format"
9168 # Now process extra architecture-specific options.
9169 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9170 # as well as floating-point ABI.
9171 case "$aros_target_cpu" in
9172 *x86_64*)
9173 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9174 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9176 arm*)
9177 if test "$gcc_default_cpu" = ""; then
9178 gcc_default_cpu="armv6"
9180 if test "$gcc_default_fpu" = ""; then
9181 gcc_default_fpu="vfp"
9183 if test "$gcc_default_float_abi" = ""; then
9184 if test "$target_cpu" = "armhf"; then
9185 gcc_default_float_abi="hard"
9186 else
9187 gcc_default_float_abi="softfp"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9192 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9194 # Check whether --with-cpu was given.
9195 if test "${with_cpu+set}" = set; then :
9196 withval=$with_cpu; aros_gcc_cpu="$withval"
9197 else
9198 aros_gcc_cpu=$gcc_default_cpu
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9202 $as_echo "$aros_gcc_cpu" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9205 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9207 # Check whether --with-fpu was given.
9208 if test "${with_fpu+set}" = set; then :
9209 withval=$with_fpu; aros_gcc_fpu="$withval"
9210 else
9211 aros_gcc_fpu=$gcc_default_fpu
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9215 $as_echo "$aros_gcc_fpu" >&6; }
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9218 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9220 # Check whether --with-float was given.
9221 if test "${with_float+set}" = set; then :
9222 withval=$with_float; aros_gcc_float_abi="$withval"
9223 else
9224 aros_gcc_float_abi=$gcc_default_float_abi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9228 $as_echo "$aros_gcc_float_abi" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9231 $as_echo_n "checking Which ARM mode to use... " >&6; }
9232 if test "$aros_target_cpu_mode" = ""; then
9233 aros_target_cpu_mode="arm32"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9235 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9236 else
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9238 $as_echo "$aros_target_cpu_mode" >&6; }
9241 case "$aros_target_cpu_mode" in
9242 arm32)
9243 gcc_default_mode="arm"
9244 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9246 arm64)
9247 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9249 thumb)
9250 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9252 thumb1)
9253 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9255 thumb2)
9256 gcc_default_mode="thumb"
9257 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9258 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9261 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9263 esac
9265 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9266 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9267 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9269 i386)
9270 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9271 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9273 esac
9275 # Some architectures may need custom ELF specs.
9276 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9277 elf_specs_in=config/${aros_object_format}-specs.in
9278 else
9279 elf_specs_in=config/elf-specs.in
9282 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9283 # Since we override specs, we may need to put these defines there
9284 if test "$gcc_target_cpu" != ""; then
9285 gcc_target_cpu="-D__${gcc_target_cpu}__"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9289 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9291 # Check whether --with-portssources was given.
9292 if test "${with_portssources+set}" = set; then :
9293 withval=$with_portssources; with_portssrcdir=$withval
9294 else
9295 with_portssrcdir="default"
9298 if test "$with_portssrcdir" = "default"; then
9299 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9300 else
9301 AROS_PORTSSRCDIR="$with_portssrcdir"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9304 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9307 $as_echo_n "checking which bootloader to use... " >&6; }
9309 # Check whether --with-bootloader was given.
9310 if test "${with_bootloader+set}" = set; then :
9311 withval=$with_bootloader; target_bootloader=$withval
9312 else
9313 target_bootloader=$target_bootloader
9316 if test "$target_bootloader" = "none"; then
9317 aros_target_bootloader=""
9318 else
9319 aros_target_bootloader="$target_bootloader"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9322 $as_echo "$target_bootloader" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9325 $as_echo_n "checking which icon-set to use... " >&6; }
9327 # Check whether --with-iconset was given.
9328 if test "${with_iconset+set}" = set; then :
9329 withval=$with_iconset; target_iconset=$withval
9330 else
9331 target_iconset="default"
9334 if test "$target_iconset" = "default"; then
9335 aros_target_iconset="Gorilla"
9336 target_iconset="default (Gorilla)"
9337 else
9338 aros_target_iconset="$target_iconset"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9341 $as_echo "$target_iconset" >&6; }
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9344 $as_echo_n "checking which GUI Theme to use... " >&6; }
9346 # Check whether --with-theme was given.
9347 if test "${with_theme+set}" = set; then :
9348 withval=$with_theme; target_guitheme=$withval
9349 else
9350 target_guitheme="default"
9353 if test "$target_guitheme" = "default"; then
9354 aros_target_guitheme="Ice"
9355 else
9356 aros_target_guitheme="$target_guitheme"
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9359 $as_echo "$aros_target_guitheme" >&6; }
9361 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9362 # for target code)
9363 cross_compiling=no
9365 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9366 cross_compiling=yes
9369 if test "$aros_host_cpu" == "x86_64" ; then
9370 if test "$aros_target_cpu" == "i386" ; then
9371 cross_compiling=no
9375 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9376 if test "$aros_host_arch" != "$aros_target_arch" ; then
9377 cross_compiling=yes
9379 else
9380 if test "$host_cc_elf" = "no" ; then
9381 cross_compiling=yes
9385 if test "$cross_compiling" = "no" ; then
9386 kernel_tool_prefix=""
9387 if test "$host_cc_elf" = "yes" ; then
9388 elf_tool_prefix=""
9392 if test "$kernel_tool_version" != ""; then
9393 kernel_tool_version="-$kernel_tool_version"
9396 #######################################################################
9397 ## Compute what toolchains to use, and their paths ##
9398 #######################################################################
9400 # This takes, as input:
9401 # crosstools {yes,no}
9402 # kernel_tool_version {"",[version]}
9403 # target_tool_version {"",[version]}
9404 # kernel_tool_prefix {none,[some-arch-os-]}
9405 # gnu-toolchain -:
9406 # target_tool_prefix ${aros_target_cpu}-aros-
9407 # aros_tool_prefix ${aros_target_cpu}-aros-
9409 # The output is
9410 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9411 # Where the 'kernel' binaries are located
9412 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9413 # Where the 'target' binaries are located
9414 # (not the symlink farm - that is aros_target_*!)
9416 # The rules are:
9417 # if crosstools then
9418 # if kernel_tools_prefix = "no-kernel-prefix-"
9419 # aros_kernel_* = crosstools cc paths
9420 # aros_kernel_cc = elf cc wrapper around crosstools cc
9421 # else
9422 # VALIDATE(${kernel_tools_prefix}*)
9423 # aros_kernel_* = ${kernel_tools_prefix}*
9424 # if ${kernel_tools_prefix}cc is an AROS gcc
9425 # aros_kernel_cc = ${kernel_tools_prefix}cc
9426 # else
9427 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9428 # fi
9429 # fi
9431 # orig_target_* = aros built crosstools
9432 # orig_target_cc = elf cc wrapper around crosstools cc
9433 # else
9434 # VALIDATE(${kernel_tools_prefix}*)
9436 # orig_target_* = aros_kernel_*
9437 # if aros_kernel_cc is an AROS gcc
9438 # orig_target_cc = aros_kernel_cc
9439 # else
9440 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9441 # fi
9442 # fi
9444 if test "$aros_toolchain" = "gnu" ; then
9445 target_tool_prefix="${aros_target_cpu}-aros-"
9446 elif test "$aros_toolchain" = "llvm" ; then
9447 target_tool_prefix="bin/"
9450 if test "$kernel_tool_prefix" != "" ; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9452 $as_echo_n "checking which kernel tools... " >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9454 $as_echo "$kernel_tool_prefix" >&6; };
9457 if test "$kernel_tool_prefix" = "none" ; then
9458 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9459 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9461 else
9462 # Kernel tools required - find them
9463 # Note that 'normally', aros_kernel_* overrides will be
9464 # empty, unless specified in the per-arch sections above.
9465 if test "x$aros_kernel_cpp" = "x"; then
9466 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9468 if test "${kernel_tool_version}" != ""; then
9469 if test "$aros_kernel_cpp" != ""; then
9470 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9471 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9472 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9476 if test "$aros_kernel_cpp" = ""; then
9477 if test "$cross_compiling" = "yes" ; then
9478 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9479 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 $as_echo_n "checking for $ac_word... " >&6; }
9482 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 case $aros_kernel_cpp in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9501 done
9502 done
9503 IFS=$as_save_IFS
9506 esac
9508 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9509 if test -n "$aros_kernel_cpp"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9511 $as_echo "$aros_kernel_cpp" >&6; }
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9518 else
9519 if test "$GCC" = "yes"; then
9520 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9521 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9522 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 case $aros_kernel_cpp in
9529 [\\/]* | ?:[\\/]*)
9530 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in `dirname $aros_gcc_cpp`
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9544 done
9545 done
9546 IFS=$as_save_IFS
9549 esac
9551 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9552 if test -n "$aros_kernel_cpp"; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9554 $as_echo "$aros_kernel_cpp" >&6; }
9555 else
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9562 if test "$aros_kernel_cpp" = ""; then
9563 # Extract the first word of "cpp", so it can be a program name with args.
9564 set dummy cpp; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 case $aros_kernel_cpp in
9571 [\\/]* | ?:[\\/]*)
9572 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9586 done
9587 done
9588 IFS=$as_save_IFS
9591 esac
9593 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9594 if test -n "$aros_kernel_cpp"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9596 $as_echo "$aros_kernel_cpp" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9605 else
9606 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9607 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9608 set dummy $aros_kernel_cpp; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 case $aros_kernel_cpp in
9615 [\\/]* | ?:[\\/]*)
9616 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9630 done
9631 done
9632 IFS=$as_save_IFS
9635 esac
9637 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9638 if test -n "$aros_kernel_cpp"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9640 $as_echo "$aros_kernel_cpp" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9647 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9650 req_avail=yes
9651 if test "$aros_kernel_cpp" = ""; then
9652 req_avail=no
9654 if test "$aros_kernel_cpp" = "no"; then
9655 req_avail=no
9657 if test "$req_avail" = "no"; then
9658 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9661 if test "x$aros_kernel_cc" = "x"; then
9662 aros_kernel_cc=${kernel_tool_prefix}${CC}
9664 if test "${kernel_tool_version}" != ""; then
9665 if test "$aros_kernel_cc" != ""; then
9666 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9667 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9668 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9672 if test "$aros_kernel_cc" = ""; then
9673 if test "$cross_compiling" = "yes" ; then
9674 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9675 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $aros_kernel_cc in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9693 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9697 done
9698 done
9699 IFS=$as_save_IFS
9702 esac
9704 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9705 if test -n "$aros_kernel_cc"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9707 $as_echo "$aros_kernel_cc" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 else
9715 if test "$GCC" = "yes"; then
9716 aros_gcc_cc=`$CC -print-prog-name=cc`
9717 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9718 set dummy `basename $aros_gcc_cc`; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 case $aros_kernel_cc in
9725 [\\/]* | ?:[\\/]*)
9726 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in `dirname $aros_gcc_cc`
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9740 done
9741 done
9742 IFS=$as_save_IFS
9745 esac
9747 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9748 if test -n "$aros_kernel_cc"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9750 $as_echo "$aros_kernel_cc" >&6; }
9751 else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9758 if test "$aros_kernel_cc" = ""; then
9759 # Extract the first word of "cc", so it can be a program name with args.
9760 set dummy cc; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 case $aros_kernel_cc in
9767 [\\/]* | ?:[\\/]*)
9768 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9782 done
9783 done
9784 IFS=$as_save_IFS
9787 esac
9789 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9790 if test -n "$aros_kernel_cc"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9792 $as_echo "$aros_kernel_cc" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9801 else
9802 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9803 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9804 set dummy $aros_kernel_cc; ac_word=$2
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806 $as_echo_n "checking for $ac_word... " >&6; }
9807 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 case $aros_kernel_cc in
9811 [\\/]* | ?:[\\/]*)
9812 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in $PATH
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9826 done
9827 done
9828 IFS=$as_save_IFS
9831 esac
9833 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9834 if test -n "$aros_kernel_cc"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9836 $as_echo "$aros_kernel_cc" >&6; }
9837 else
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9843 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9846 req_avail=yes
9847 if test "$aros_kernel_cc" = ""; then
9848 req_avail=no
9850 if test "$aros_kernel_cc" = "no"; then
9851 req_avail=no
9853 if test "$req_avail" = "no"; then
9854 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9857 if test "x$aros_kernel_cxx" = "x"; then
9858 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9860 if test "${kernel_tool_version}" != ""; then
9861 if test "$aros_kernel_cxx" != ""; then
9862 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9863 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9864 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9868 if test "$aros_kernel_cxx" = ""; then
9869 if test "$cross_compiling" = "yes" ; then
9870 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9871 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 case $aros_kernel_cxx in
9878 [\\/]* | ?:[\\/]*)
9879 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 for as_dir in $PATH
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 break 2
9893 done
9894 done
9895 IFS=$as_save_IFS
9898 esac
9900 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9901 if test -n "$aros_kernel_cxx"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9903 $as_echo "$aros_kernel_cxx" >&6; }
9904 else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9910 else
9911 if test "$GCC" = "yes"; then
9912 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9913 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9914 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 case $aros_kernel_cxx in
9921 [\\/]* | ?:[\\/]*)
9922 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in `dirname $aros_gcc_cxx`
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 break 2
9936 done
9937 done
9938 IFS=$as_save_IFS
9941 esac
9943 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9944 if test -n "$aros_kernel_cxx"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9946 $as_echo "$aros_kernel_cxx" >&6; }
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9954 if test "$aros_kernel_cxx" = ""; then
9955 # Extract the first word of "cxx", so it can be a program name with args.
9956 set dummy cxx; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 case $aros_kernel_cxx in
9963 [\\/]* | ?:[\\/]*)
9964 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9978 done
9979 done
9980 IFS=$as_save_IFS
9983 esac
9985 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9986 if test -n "$aros_kernel_cxx"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9988 $as_echo "$aros_kernel_cxx" >&6; }
9989 else
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; }
9997 else
9998 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9999 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10000 set dummy $aros_kernel_cxx; ac_word=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 case $aros_kernel_cxx in
10007 [\\/]* | ?:[\\/]*)
10008 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10022 done
10023 done
10024 IFS=$as_save_IFS
10027 esac
10029 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10030 if test -n "$aros_kernel_cxx"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10032 $as_echo "$aros_kernel_cxx" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10039 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10042 # If it's set, make sure it's really there
10043 if test "x$aros_kernel_cxx" != "x" ; then
10044 req_avail=yes
10045 if test "$aros_kernel_cxx" = ""; then
10046 req_avail=no
10048 if test "$aros_kernel_cxx" = "no"; then
10049 req_avail=no
10051 if test "$req_avail" = "no"; then
10052 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10056 if test "$aros_kernel_ld" = ""; then
10057 if test "$cross_compiling" = "yes" ; then
10058 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10059 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 case $aros_kernel_ld in
10066 [\\/]* | ?:[\\/]*)
10067 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10081 done
10082 done
10083 IFS=$as_save_IFS
10086 esac
10088 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10089 if test -n "$aros_kernel_ld"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10091 $as_echo "$aros_kernel_ld" >&6; }
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10098 else
10099 if test "$GCC" = "yes"; then
10100 aros_gcc_ld=`$CC -print-prog-name=ld`
10101 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10102 set dummy `basename $aros_gcc_ld`; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 case $aros_kernel_ld in
10109 [\\/]* | ?:[\\/]*)
10110 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in `dirname $aros_gcc_ld`
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10124 done
10125 done
10126 IFS=$as_save_IFS
10129 esac
10131 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10132 if test -n "$aros_kernel_ld"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10134 $as_echo "$aros_kernel_ld" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10142 if test "$aros_kernel_ld" = ""; then
10143 # Extract the first word of "ld", so it can be a program name with args.
10144 set dummy ld; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 case $aros_kernel_ld in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10162 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10166 done
10167 done
10168 IFS=$as_save_IFS
10171 esac
10173 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10174 if test -n "$aros_kernel_ld"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10176 $as_echo "$aros_kernel_ld" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10185 else
10186 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10187 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10188 set dummy $aros_kernel_ld; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 case $aros_kernel_ld in
10195 [\\/]* | ?:[\\/]*)
10196 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10210 done
10211 done
10212 IFS=$as_save_IFS
10215 esac
10217 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10218 if test -n "$aros_kernel_ld"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10220 $as_echo "$aros_kernel_ld" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10227 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10230 req_avail=yes
10231 if test "$aros_kernel_ld" = ""; then
10232 req_avail=no
10234 if test "$aros_kernel_ld" = "no"; then
10235 req_avail=no
10237 if test "$req_avail" = "no"; then
10238 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10241 if test "$aros_kernel_as" = ""; then
10242 if test "$cross_compiling" = "yes" ; then
10243 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10244 set dummy ${kernel_tool_prefix}as; ac_word=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if ${ac_cv_path_aros_kernel_as+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 case $aros_kernel_as in
10251 [\\/]* | ?:[\\/]*)
10252 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10262 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 break 2
10266 done
10267 done
10268 IFS=$as_save_IFS
10271 esac
10273 aros_kernel_as=$ac_cv_path_aros_kernel_as
10274 if test -n "$aros_kernel_as"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10276 $as_echo "$aros_kernel_as" >&6; }
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10283 else
10284 if test "$GCC" = "yes"; then
10285 aros_gcc_as=`$CC -print-prog-name=as`
10286 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10287 set dummy `basename $aros_gcc_as`; ac_word=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_path_aros_kernel_as+:} false; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 case $aros_kernel_as in
10294 [\\/]* | ?:[\\/]*)
10295 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in `dirname $aros_gcc_as`
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10309 done
10310 done
10311 IFS=$as_save_IFS
10314 esac
10316 aros_kernel_as=$ac_cv_path_aros_kernel_as
10317 if test -n "$aros_kernel_as"; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10319 $as_echo "$aros_kernel_as" >&6; }
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10327 if test "$aros_kernel_as" = ""; then
10328 # Extract the first word of "as", so it can be a program name with args.
10329 set dummy as; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if ${ac_cv_path_aros_kernel_as+:} false; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 case $aros_kernel_as in
10336 [\\/]* | ?:[\\/]*)
10337 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10347 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10356 esac
10358 aros_kernel_as=$ac_cv_path_aros_kernel_as
10359 if test -n "$aros_kernel_as"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10361 $as_echo "$aros_kernel_as" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10370 else
10371 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10372 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10373 set dummy $aros_kernel_as; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_path_aros_kernel_as+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 case $aros_kernel_as in
10380 [\\/]* | ?:[\\/]*)
10381 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10391 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10395 done
10396 done
10397 IFS=$as_save_IFS
10400 esac
10402 aros_kernel_as=$ac_cv_path_aros_kernel_as
10403 if test -n "$aros_kernel_as"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10405 $as_echo "$aros_kernel_as" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10412 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10415 req_avail=yes
10416 if test "$aros_kernel_as" = ""; then
10417 req_avail=no
10419 if test "$aros_kernel_as" = "no"; then
10420 req_avail=no
10422 if test "$req_avail" = "no"; then
10423 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10426 if test "$aros_kernel_ar" = ""; then
10427 if test "$cross_compiling" = "yes" ; then
10428 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10429 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 case $aros_kernel_ar in
10436 [\\/]* | ?:[\\/]*)
10437 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
10446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10451 done
10452 done
10453 IFS=$as_save_IFS
10456 esac
10458 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10459 if test -n "$aros_kernel_ar"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10461 $as_echo "$aros_kernel_ar" >&6; }
10462 else
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10468 else
10469 if test "$GCC" = "yes"; then
10470 aros_gcc_ar=`$CC -print-prog-name=ar`
10471 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10472 set dummy `basename $aros_gcc_ar`; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 case $aros_kernel_ar in
10479 [\\/]* | ?:[\\/]*)
10480 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in `dirname $aros_gcc_ar`
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10496 IFS=$as_save_IFS
10499 esac
10501 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10502 if test -n "$aros_kernel_ar"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10504 $as_echo "$aros_kernel_ar" >&6; }
10505 else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10512 if test "$aros_kernel_ar" = ""; then
10513 # Extract the first word of "ar", so it can be a program name with args.
10514 set dummy ar; ac_word=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10518 $as_echo_n "(cached) " >&6
10519 else
10520 case $aros_kernel_ar in
10521 [\\/]* | ?:[\\/]*)
10522 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10536 done
10537 done
10538 IFS=$as_save_IFS
10541 esac
10543 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10544 if test -n "$aros_kernel_ar"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10546 $as_echo "$aros_kernel_ar" >&6; }
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10555 else
10556 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10557 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10558 set dummy $aros_kernel_ar; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 case $aros_kernel_ar in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10582 IFS=$as_save_IFS
10585 esac
10587 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10588 if test -n "$aros_kernel_ar"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10590 $as_echo "$aros_kernel_ar" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10597 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10600 req_avail=yes
10601 if test "$aros_kernel_ar" = ""; then
10602 req_avail=no
10604 if test "$aros_kernel_ar" = "no"; then
10605 req_avail=no
10607 if test "$req_avail" = "no"; then
10608 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10611 if test "$aros_kernel_ranlib" = ""; then
10612 if test "$cross_compiling" = "yes" ; then
10613 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10614 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 case $aros_kernel_ranlib in
10621 [\\/]* | ?:[\\/]*)
10622 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10628 IFS=$as_save_IFS
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 break 2
10636 done
10637 done
10638 IFS=$as_save_IFS
10641 esac
10643 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10644 if test -n "$aros_kernel_ranlib"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10646 $as_echo "$aros_kernel_ranlib" >&6; }
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10653 else
10654 if test "$GCC" = "yes"; then
10655 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10656 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10657 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 case $aros_kernel_ranlib in
10664 [\\/]* | ?:[\\/]*)
10665 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 for as_dir in `dirname $aros_gcc_ranlib`
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10679 done
10680 done
10681 IFS=$as_save_IFS
10684 esac
10686 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10687 if test -n "$aros_kernel_ranlib"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10689 $as_echo "$aros_kernel_ranlib" >&6; }
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10697 if test "$aros_kernel_ranlib" = ""; then
10698 # Extract the first word of "ranlib", so it can be a program name with args.
10699 set dummy ranlib; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 case $aros_kernel_ranlib in
10706 [\\/]* | ?:[\\/]*)
10707 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10721 done
10722 done
10723 IFS=$as_save_IFS
10726 esac
10728 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10729 if test -n "$aros_kernel_ranlib"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10731 $as_echo "$aros_kernel_ranlib" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10740 else
10741 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10742 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10743 set dummy $aros_kernel_ranlib; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 case $aros_kernel_ranlib in
10750 [\\/]* | ?:[\\/]*)
10751 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10770 esac
10772 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10773 if test -n "$aros_kernel_ranlib"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10775 $as_echo "$aros_kernel_ranlib" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10782 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10785 req_avail=yes
10786 if test "$aros_kernel_ranlib" = ""; then
10787 req_avail=no
10789 if test "$aros_kernel_ranlib" = "no"; then
10790 req_avail=no
10792 if test "$req_avail" = "no"; then
10793 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10796 if test "$aros_kernel_nm" = ""; then
10797 if test "$cross_compiling" = "yes" ; then
10798 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10799 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 case $aros_kernel_nm in
10806 [\\/]* | ?:[\\/]*)
10807 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10823 IFS=$as_save_IFS
10826 esac
10828 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10829 if test -n "$aros_kernel_nm"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10831 $as_echo "$aros_kernel_nm" >&6; }
10832 else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10838 else
10839 if test "$GCC" = "yes"; then
10840 aros_gcc_nm=`$CC -print-prog-name=nm`
10841 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10842 set dummy `basename $aros_gcc_nm`; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 case $aros_kernel_nm in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in `dirname $aros_gcc_nm`
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10860 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10864 done
10865 done
10866 IFS=$as_save_IFS
10869 esac
10871 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10872 if test -n "$aros_kernel_nm"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10874 $as_echo "$aros_kernel_nm" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10882 if test "$aros_kernel_nm" = ""; then
10883 # Extract the first word of "nm", so it can be a program name with args.
10884 set dummy nm; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 case $aros_kernel_nm in
10891 [\\/]* | ?:[\\/]*)
10892 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904 break 2
10906 done
10907 done
10908 IFS=$as_save_IFS
10911 esac
10913 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10914 if test -n "$aros_kernel_nm"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10916 $as_echo "$aros_kernel_nm" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10925 else
10926 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10927 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10928 set dummy $aros_kernel_nm; ac_word=$2
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 $as_echo_n "checking for $ac_word... " >&6; }
10931 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 case $aros_kernel_nm in
10935 [\\/]* | ?:[\\/]*)
10936 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10950 done
10951 done
10952 IFS=$as_save_IFS
10955 esac
10957 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10958 if test -n "$aros_kernel_nm"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10960 $as_echo "$aros_kernel_nm" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10967 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10970 req_avail=yes
10971 if test "$aros_kernel_nm" = ""; then
10972 req_avail=no
10974 if test "$aros_kernel_nm" = "no"; then
10975 req_avail=no
10977 if test "$req_avail" = "no"; then
10978 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10981 if test "$aros_kernel_strip" = ""; then
10982 if test "$cross_compiling" = "yes" ; then
10983 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10984 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 case $aros_kernel_strip in
10991 [\\/]* | ?:[\\/]*)
10992 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11002 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11006 done
11007 done
11008 IFS=$as_save_IFS
11011 esac
11013 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11014 if test -n "$aros_kernel_strip"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11016 $as_echo "$aros_kernel_strip" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11023 else
11024 if test "$GCC" = "yes"; then
11025 aros_gcc_strip=`$CC -print-prog-name=strip`
11026 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11027 set dummy `basename $aros_gcc_strip`; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 case $aros_kernel_strip in
11034 [\\/]* | ?:[\\/]*)
11035 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in `dirname $aros_gcc_strip`
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11049 done
11050 done
11051 IFS=$as_save_IFS
11054 esac
11056 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11057 if test -n "$aros_kernel_strip"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11059 $as_echo "$aros_kernel_strip" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11067 if test "$aros_kernel_strip" = ""; then
11068 # Extract the first word of "strip", so it can be a program name with args.
11069 set dummy strip; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 case $aros_kernel_strip in
11076 [\\/]* | ?:[\\/]*)
11077 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11091 done
11092 done
11093 IFS=$as_save_IFS
11096 esac
11098 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11099 if test -n "$aros_kernel_strip"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11101 $as_echo "$aros_kernel_strip" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11110 else
11111 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11112 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11113 set dummy $aros_kernel_strip; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 case $aros_kernel_strip in
11120 [\\/]* | ?:[\\/]*)
11121 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11131 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 break 2
11135 done
11136 done
11137 IFS=$as_save_IFS
11140 esac
11142 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11143 if test -n "$aros_kernel_strip"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11145 $as_echo "$aros_kernel_strip" >&6; }
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11152 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11155 req_avail=yes
11156 if test "$aros_kernel_strip" = ""; then
11157 req_avail=no
11159 if test "$aros_kernel_strip" = "no"; then
11160 req_avail=no
11162 if test "$req_avail" = "no"; then
11163 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11166 # Objcopy and objdump are not required for the kernel
11167 # toolchain on many architectures.
11168 # So we'll look for them, but not make them strictly required.
11170 if test "$aros_kernel_objcopy" = ""; then
11171 if test "$cross_compiling" = "yes" ; then
11172 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11173 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 case $aros_kernel_objcopy in
11180 [\\/]* | ?:[\\/]*)
11181 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11195 done
11196 done
11197 IFS=$as_save_IFS
11200 esac
11202 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11203 if test -n "$aros_kernel_objcopy"; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11205 $as_echo "$aros_kernel_objcopy" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11212 else
11213 if test "$GCC" = "yes"; then
11214 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11215 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11216 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 case $aros_kernel_objcopy in
11223 [\\/]* | ?:[\\/]*)
11224 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in `dirname $aros_gcc_objcopy`
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 break 2
11238 done
11239 done
11240 IFS=$as_save_IFS
11243 esac
11245 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11246 if test -n "$aros_kernel_objcopy"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11248 $as_echo "$aros_kernel_objcopy" >&6; }
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11256 if test "$aros_kernel_objcopy" = ""; then
11257 # Extract the first word of "objcopy", so it can be a program name with args.
11258 set dummy objcopy; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 case $aros_kernel_objcopy in
11265 [\\/]* | ?:[\\/]*)
11266 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11280 done
11281 done
11282 IFS=$as_save_IFS
11285 esac
11287 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11288 if test -n "$aros_kernel_objcopy"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11290 $as_echo "$aros_kernel_objcopy" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11299 else
11300 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11301 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11302 set dummy $aros_kernel_objcopy; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 case $aros_kernel_objcopy in
11309 [\\/]* | ?:[\\/]*)
11310 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11329 esac
11331 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11332 if test -n "$aros_kernel_objcopy"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11334 $as_echo "$aros_kernel_objcopy" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11341 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11345 if test "$aros_kernel_objdump" = ""; then
11346 if test "$cross_compiling" = "yes" ; then
11347 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11348 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 $as_echo_n "checking for $ac_word... " >&6; }
11351 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 case $aros_kernel_objdump in
11355 [\\/]* | ?:[\\/]*)
11356 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11370 done
11371 done
11372 IFS=$as_save_IFS
11375 esac
11377 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11378 if test -n "$aros_kernel_objdump"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11380 $as_echo "$aros_kernel_objdump" >&6; }
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11387 else
11388 if test "$GCC" = "yes"; then
11389 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11390 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11391 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 case $aros_kernel_objdump in
11398 [\\/]* | ?:[\\/]*)
11399 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in `dirname $aros_gcc_objdump`
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11418 esac
11420 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11421 if test -n "$aros_kernel_objdump"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11423 $as_echo "$aros_kernel_objdump" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 if test "$aros_kernel_objdump" = ""; then
11432 # Extract the first word of "objdump", so it can be a program name with args.
11433 set dummy objdump; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 case $aros_kernel_objdump in
11440 [\\/]* | ?:[\\/]*)
11441 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11455 done
11456 done
11457 IFS=$as_save_IFS
11460 esac
11462 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11463 if test -n "$aros_kernel_objdump"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11465 $as_echo "$aros_kernel_objdump" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11474 else
11475 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11476 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11477 set dummy $aros_kernel_objdump; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 case $aros_kernel_objdump in
11484 [\\/]* | ?:[\\/]*)
11485 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11499 done
11500 done
11501 IFS=$as_save_IFS
11504 esac
11506 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11507 if test -n "$aros_kernel_objdump"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11509 $as_echo "$aros_kernel_objdump" >&6; }
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11516 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11519 if test "x${crosstools}" != "xyes" ; then
11520 req_avail=yes
11521 if test "$aros_kernel_objcopy" = ""; then
11522 req_avail=no
11524 if test "$aros_kernel_objcopy" = "no"; then
11525 req_avail=no
11527 if test "$req_avail" = "no"; then
11528 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11530 req_avail=yes
11531 if test "$aros_kernel_objdump" = ""; then
11532 req_avail=no
11534 if test "$aros_kernel_objdump" = "no"; then
11535 req_avail=no
11537 if test "$req_avail" = "no"; then
11538 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11544 $as_echo_n "checking which target tools to use... " >&6; }
11545 if test "$aros_target_toolchain" = "yes"; then
11546 if test "$aros_toolchain" = "llvm" ; then
11547 msg_result="llvm"
11548 else
11549 msg_result=$target_tool_prefix
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11552 $as_echo "$msg_result" >&6; }
11553 # We are building AROS crosstools
11554 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11555 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11556 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11557 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11558 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11559 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11560 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11561 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11562 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11563 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11564 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11565 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11566 else
11567 # Determine whether AROS or ELF tools should be used
11568 if test "$aros_tool_prefix" = "none"; then
11569 aros_tool_prefix="${elf_tool_prefix}"
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11573 $as_echo "$aros_tool_prefix" >&6; }
11574 # We are *not* building AROS crosstools - use the AROS or ELF tools
11576 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11577 if test "$cross_compiling" = "yes" ; then
11578 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11579 set dummy ${target_tool_prefix}cpp; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_path_orig_target_cpp+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 case $orig_target_cpp in
11586 [\\/]* | ?:[\\/]*)
11587 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11601 done
11602 done
11603 IFS=$as_save_IFS
11606 esac
11608 orig_target_cpp=$ac_cv_path_orig_target_cpp
11609 if test -n "$orig_target_cpp"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11611 $as_echo "$orig_target_cpp" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11618 else
11619 if test "$GCC" = "yes"; then
11620 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11621 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11622 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_path_orig_target_cpp+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 case $orig_target_cpp in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in `dirname $aros_gcc_cpp`
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11644 done
11645 done
11646 IFS=$as_save_IFS
11649 esac
11651 orig_target_cpp=$ac_cv_path_orig_target_cpp
11652 if test -n "$orig_target_cpp"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11654 $as_echo "$orig_target_cpp" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11662 if test "$orig_target_cpp" = ""; then
11663 # Extract the first word of "cpp", so it can be a program name with args.
11664 set dummy cpp; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_path_orig_target_cpp+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 case $orig_target_cpp in
11671 [\\/]* | ?:[\\/]*)
11672 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11686 done
11687 done
11688 IFS=$as_save_IFS
11691 esac
11693 orig_target_cpp=$ac_cv_path_orig_target_cpp
11694 if test -n "$orig_target_cpp"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11696 $as_echo "$orig_target_cpp" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11705 else
11706 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11707 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11708 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_path_orig_target_cpp+:} false; then :
11712 $as_echo_n "(cached) " >&6
11713 else
11714 case $orig_target_cpp in
11715 [\\/]* | ?:[\\/]*)
11716 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11730 done
11731 done
11732 IFS=$as_save_IFS
11735 esac
11737 orig_target_cpp=$ac_cv_path_orig_target_cpp
11738 if test -n "$orig_target_cpp"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11740 $as_echo "$orig_target_cpp" >&6; }
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11747 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11750 req_avail=yes
11751 if test "$orig_target_cpp" = ""; then
11752 req_avail=no
11754 if test "$orig_target_cpp" = "no"; then
11755 req_avail=no
11757 if test "$req_avail" = "no"; then
11758 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11761 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11762 if test "$cross_compiling" = "yes" ; then
11763 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11764 set dummy ${target_tool_prefix}gcc; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_orig_target_cc+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 case $orig_target_cc in
11771 [\\/]* | ?:[\\/]*)
11772 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11786 done
11787 done
11788 IFS=$as_save_IFS
11791 esac
11793 orig_target_cc=$ac_cv_path_orig_target_cc
11794 if test -n "$orig_target_cc"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11796 $as_echo "$orig_target_cc" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11803 else
11804 if test "$GCC" = "yes"; then
11805 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11806 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11807 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_path_orig_target_cc+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 case $orig_target_cc in
11814 [\\/]* | ?:[\\/]*)
11815 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in `dirname $aros_gcc_gcc`
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11829 done
11830 done
11831 IFS=$as_save_IFS
11834 esac
11836 orig_target_cc=$ac_cv_path_orig_target_cc
11837 if test -n "$orig_target_cc"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11839 $as_echo "$orig_target_cc" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 if test "$orig_target_cc" = ""; then
11848 # Extract the first word of "gcc", so it can be a program name with args.
11849 set dummy gcc; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_orig_target_cc+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 case $orig_target_cc in
11856 [\\/]* | ?:[\\/]*)
11857 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11871 done
11872 done
11873 IFS=$as_save_IFS
11876 esac
11878 orig_target_cc=$ac_cv_path_orig_target_cc
11879 if test -n "$orig_target_cc"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11881 $as_echo "$orig_target_cc" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11890 else
11891 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11892 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11893 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895 $as_echo_n "checking for $ac_word... " >&6; }
11896 if ${ac_cv_path_orig_target_cc+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 case $orig_target_cc in
11900 [\\/]* | ?:[\\/]*)
11901 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11911 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11915 done
11916 done
11917 IFS=$as_save_IFS
11920 esac
11922 orig_target_cc=$ac_cv_path_orig_target_cc
11923 if test -n "$orig_target_cc"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11925 $as_echo "$orig_target_cc" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11935 req_avail=yes
11936 if test "$orig_target_cc" = ""; then
11937 req_avail=no
11939 if test "$orig_target_cc" = "no"; then
11940 req_avail=no
11942 if test "$req_avail" = "no"; then
11943 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11946 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11947 if test "$cross_compiling" = "yes" ; then
11948 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11949 set dummy ${target_tool_prefix}g++; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_path_orig_target_cxx+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 case $orig_target_cxx in
11956 [\\/]* | ?:[\\/]*)
11957 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11971 done
11972 done
11973 IFS=$as_save_IFS
11976 esac
11978 orig_target_cxx=$ac_cv_path_orig_target_cxx
11979 if test -n "$orig_target_cxx"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11981 $as_echo "$orig_target_cxx" >&6; }
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11988 else
11989 if test "$GCC" = "yes"; then
11990 aros_gcc_g++=`$CC -print-prog-name=g++`
11991 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11992 set dummy `basename $aros_gcc_g++`; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_path_orig_target_cxx+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 case $orig_target_cxx in
11999 [\\/]* | ?:[\\/]*)
12000 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in `dirname $aros_gcc_g++`
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12014 done
12015 done
12016 IFS=$as_save_IFS
12019 esac
12021 orig_target_cxx=$ac_cv_path_orig_target_cxx
12022 if test -n "$orig_target_cxx"; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12024 $as_echo "$orig_target_cxx" >&6; }
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12032 if test "$orig_target_cxx" = ""; then
12033 # Extract the first word of "g++", so it can be a program name with args.
12034 set dummy g++; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_path_orig_target_cxx+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 case $orig_target_cxx in
12041 [\\/]* | ?:[\\/]*)
12042 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12056 done
12057 done
12058 IFS=$as_save_IFS
12061 esac
12063 orig_target_cxx=$ac_cv_path_orig_target_cxx
12064 if test -n "$orig_target_cxx"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12066 $as_echo "$orig_target_cxx" >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12075 else
12076 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12077 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12078 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_path_orig_target_cxx+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 case $orig_target_cxx in
12085 [\\/]* | ?:[\\/]*)
12086 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 break 2
12100 done
12101 done
12102 IFS=$as_save_IFS
12105 esac
12107 orig_target_cxx=$ac_cv_path_orig_target_cxx
12108 if test -n "$orig_target_cxx"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12110 $as_echo "$orig_target_cxx" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12117 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12120 req_avail=yes
12121 if test "$orig_target_cxx" = ""; then
12122 req_avail=no
12124 if test "$orig_target_cxx" = "no"; then
12125 req_avail=no
12127 if test "$req_avail" = "no"; then
12128 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12131 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12132 if test "$cross_compiling" = "yes" ; then
12133 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12134 set dummy ${target_tool_prefix}gcc; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_path_orig_target_ld+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 case $orig_target_ld in
12141 [\\/]* | ?:[\\/]*)
12142 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12156 done
12157 done
12158 IFS=$as_save_IFS
12161 esac
12163 orig_target_ld=$ac_cv_path_orig_target_ld
12164 if test -n "$orig_target_ld"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12166 $as_echo "$orig_target_ld" >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12173 else
12174 if test "$GCC" = "yes"; then
12175 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12176 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12177 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_path_orig_target_ld+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 case $orig_target_ld in
12184 [\\/]* | ?:[\\/]*)
12185 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in `dirname $aros_gcc_gcc`
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12199 done
12200 done
12201 IFS=$as_save_IFS
12204 esac
12206 orig_target_ld=$ac_cv_path_orig_target_ld
12207 if test -n "$orig_target_ld"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12209 $as_echo "$orig_target_ld" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12217 if test "$orig_target_ld" = ""; then
12218 # Extract the first word of "gcc", so it can be a program name with args.
12219 set dummy gcc; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_orig_target_ld+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 case $orig_target_ld in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12241 done
12242 done
12243 IFS=$as_save_IFS
12246 esac
12248 orig_target_ld=$ac_cv_path_orig_target_ld
12249 if test -n "$orig_target_ld"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12251 $as_echo "$orig_target_ld" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12260 else
12261 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12262 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12263 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if ${ac_cv_path_orig_target_ld+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 case $orig_target_ld in
12270 [\\/]* | ?:[\\/]*)
12271 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12281 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12285 done
12286 done
12287 IFS=$as_save_IFS
12290 esac
12292 orig_target_ld=$ac_cv_path_orig_target_ld
12293 if test -n "$orig_target_ld"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12295 $as_echo "$orig_target_ld" >&6; }
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12302 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12305 req_avail=yes
12306 if test "$orig_target_ld" = ""; then
12307 req_avail=no
12309 if test "$orig_target_ld" = "no"; then
12310 req_avail=no
12312 if test "$req_avail" = "no"; then
12313 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12316 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12317 if test "$cross_compiling" = "yes" ; then
12318 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12319 set dummy ${target_tool_prefix}as; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_path_orig_target_as+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 case $orig_target_as in
12326 [\\/]* | ?:[\\/]*)
12327 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12341 done
12342 done
12343 IFS=$as_save_IFS
12346 esac
12348 orig_target_as=$ac_cv_path_orig_target_as
12349 if test -n "$orig_target_as"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12351 $as_echo "$orig_target_as" >&6; }
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12358 else
12359 if test "$GCC" = "yes"; then
12360 aros_gcc_as=`$CC -print-prog-name=as`
12361 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12362 set dummy `basename $aros_gcc_as`; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if ${ac_cv_path_orig_target_as+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 case $orig_target_as in
12369 [\\/]* | ?:[\\/]*)
12370 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in `dirname $aros_gcc_as`
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12384 done
12385 done
12386 IFS=$as_save_IFS
12389 esac
12391 orig_target_as=$ac_cv_path_orig_target_as
12392 if test -n "$orig_target_as"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12394 $as_echo "$orig_target_as" >&6; }
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12402 if test "$orig_target_as" = ""; then
12403 # Extract the first word of "as", so it can be a program name with args.
12404 set dummy as; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_path_orig_target_as+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 case $orig_target_as in
12411 [\\/]* | ?:[\\/]*)
12412 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12426 done
12427 done
12428 IFS=$as_save_IFS
12431 esac
12433 orig_target_as=$ac_cv_path_orig_target_as
12434 if test -n "$orig_target_as"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12436 $as_echo "$orig_target_as" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12445 else
12446 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12447 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12448 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if ${ac_cv_path_orig_target_as+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 case $orig_target_as in
12455 [\\/]* | ?:[\\/]*)
12456 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12466 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12470 done
12471 done
12472 IFS=$as_save_IFS
12475 esac
12477 orig_target_as=$ac_cv_path_orig_target_as
12478 if test -n "$orig_target_as"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12480 $as_echo "$orig_target_as" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12487 orig_target_as="$orig_target_as $ac_tool_optarg"
12490 req_avail=yes
12491 if test "$orig_target_as" = ""; then
12492 req_avail=no
12494 if test "$orig_target_as" = "no"; then
12495 req_avail=no
12497 if test "$req_avail" = "no"; then
12498 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12501 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12502 if test "$cross_compiling" = "yes" ; then
12503 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12504 set dummy ${target_tool_prefix}ar; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if ${ac_cv_path_orig_target_ar+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 case $orig_target_ar in
12511 [\\/]* | ?:[\\/]*)
12512 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12526 done
12527 done
12528 IFS=$as_save_IFS
12531 esac
12533 orig_target_ar=$ac_cv_path_orig_target_ar
12534 if test -n "$orig_target_ar"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12536 $as_echo "$orig_target_ar" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12543 else
12544 if test "$GCC" = "yes"; then
12545 aros_gcc_ar=`$CC -print-prog-name=ar`
12546 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12547 set dummy `basename $aros_gcc_ar`; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_path_orig_target_ar+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 case $orig_target_ar in
12554 [\\/]* | ?:[\\/]*)
12555 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in `dirname $aros_gcc_ar`
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12569 done
12570 done
12571 IFS=$as_save_IFS
12574 esac
12576 orig_target_ar=$ac_cv_path_orig_target_ar
12577 if test -n "$orig_target_ar"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12579 $as_echo "$orig_target_ar" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12587 if test "$orig_target_ar" = ""; then
12588 # Extract the first word of "ar", so it can be a program name with args.
12589 set dummy ar; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_orig_target_ar+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 case $orig_target_ar in
12596 [\\/]* | ?:[\\/]*)
12597 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12611 done
12612 done
12613 IFS=$as_save_IFS
12616 esac
12618 orig_target_ar=$ac_cv_path_orig_target_ar
12619 if test -n "$orig_target_ar"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12621 $as_echo "$orig_target_ar" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12630 else
12631 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12632 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12633 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_orig_target_ar+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 case $orig_target_ar in
12640 [\\/]* | ?:[\\/]*)
12641 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12655 done
12656 done
12657 IFS=$as_save_IFS
12660 esac
12662 orig_target_ar=$ac_cv_path_orig_target_ar
12663 if test -n "$orig_target_ar"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12665 $as_echo "$orig_target_ar" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12672 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12675 req_avail=yes
12676 if test "$orig_target_ar" = ""; then
12677 req_avail=no
12679 if test "$orig_target_ar" = "no"; then
12680 req_avail=no
12682 if test "$req_avail" = "no"; then
12683 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12686 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12687 if test "$cross_compiling" = "yes" ; then
12688 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12689 set dummy ${target_tool_prefix}ar; ac_word=$2
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691 $as_echo_n "checking for $ac_word... " >&6; }
12692 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 case $orig_target_ranlib in
12696 [\\/]* | ?:[\\/]*)
12697 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12716 esac
12718 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12719 if test -n "$orig_target_ranlib"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12721 $as_echo "$orig_target_ranlib" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12728 else
12729 if test "$GCC" = "yes"; then
12730 aros_gcc_ar=`$CC -print-prog-name=ar`
12731 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12732 set dummy `basename $aros_gcc_ar`; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 case $orig_target_ranlib in
12739 [\\/]* | ?:[\\/]*)
12740 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in `dirname $aros_gcc_ar`
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12754 done
12755 done
12756 IFS=$as_save_IFS
12759 esac
12761 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12762 if test -n "$orig_target_ranlib"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12764 $as_echo "$orig_target_ranlib" >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12772 if test "$orig_target_ranlib" = ""; then
12773 # Extract the first word of "ar", so it can be a program name with args.
12774 set dummy ar; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 case $orig_target_ranlib in
12781 [\\/]* | ?:[\\/]*)
12782 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12796 done
12797 done
12798 IFS=$as_save_IFS
12801 esac
12803 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12804 if test -n "$orig_target_ranlib"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12806 $as_echo "$orig_target_ranlib" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12815 else
12816 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12817 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12818 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 case $orig_target_ranlib in
12825 [\\/]* | ?:[\\/]*)
12826 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12832 IFS=$as_save_IFS
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12836 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 break 2
12840 done
12841 done
12842 IFS=$as_save_IFS
12845 esac
12847 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12848 if test -n "$orig_target_ranlib"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12850 $as_echo "$orig_target_ranlib" >&6; }
12851 else
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12857 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12860 req_avail=yes
12861 if test "$orig_target_ranlib" = ""; then
12862 req_avail=no
12864 if test "$orig_target_ranlib" = "no"; then
12865 req_avail=no
12867 if test "$req_avail" = "no"; then
12868 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12871 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12872 if test "$cross_compiling" = "yes" ; then
12873 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12874 set dummy ${target_tool_prefix}nm; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_path_orig_target_nm+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 case $orig_target_nm in
12881 [\\/]* | ?:[\\/]*)
12882 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12896 done
12897 done
12898 IFS=$as_save_IFS
12901 esac
12903 orig_target_nm=$ac_cv_path_orig_target_nm
12904 if test -n "$orig_target_nm"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12906 $as_echo "$orig_target_nm" >&6; }
12907 else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12913 else
12914 if test "$GCC" = "yes"; then
12915 aros_gcc_nm=`$CC -print-prog-name=nm`
12916 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12917 set dummy `basename $aros_gcc_nm`; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if ${ac_cv_path_orig_target_nm+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 case $orig_target_nm in
12924 [\\/]* | ?:[\\/]*)
12925 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in `dirname $aros_gcc_nm`
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12935 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12939 done
12940 done
12941 IFS=$as_save_IFS
12944 esac
12946 orig_target_nm=$ac_cv_path_orig_target_nm
12947 if test -n "$orig_target_nm"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12949 $as_echo "$orig_target_nm" >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12957 if test "$orig_target_nm" = ""; then
12958 # Extract the first word of "nm", so it can be a program name with args.
12959 set dummy nm; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_path_orig_target_nm+:} false; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 case $orig_target_nm in
12966 [\\/]* | ?:[\\/]*)
12967 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12981 done
12982 done
12983 IFS=$as_save_IFS
12986 esac
12988 orig_target_nm=$ac_cv_path_orig_target_nm
12989 if test -n "$orig_target_nm"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12991 $as_echo "$orig_target_nm" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
13000 else
13001 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13002 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13003 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if ${ac_cv_path_orig_target_nm+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 case $orig_target_nm in
13010 [\\/]* | ?:[\\/]*)
13011 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13025 done
13026 done
13027 IFS=$as_save_IFS
13030 esac
13032 orig_target_nm=$ac_cv_path_orig_target_nm
13033 if test -n "$orig_target_nm"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13035 $as_echo "$orig_target_nm" >&6; }
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13042 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13045 req_avail=yes
13046 if test "$orig_target_nm" = ""; then
13047 req_avail=no
13049 if test "$orig_target_nm" = "no"; then
13050 req_avail=no
13052 if test "$req_avail" = "no"; then
13053 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13056 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13057 if test "$cross_compiling" = "yes" ; then
13058 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13059 set dummy ${target_tool_prefix}strip; ac_word=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061 $as_echo_n "checking for $ac_word... " >&6; }
13062 if ${ac_cv_path_orig_target_strip+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 case $orig_target_strip in
13066 [\\/]* | ?:[\\/]*)
13067 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13083 IFS=$as_save_IFS
13086 esac
13088 orig_target_strip=$ac_cv_path_orig_target_strip
13089 if test -n "$orig_target_strip"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13091 $as_echo "$orig_target_strip" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13098 else
13099 if test "$GCC" = "yes"; then
13100 aros_gcc_strip=`$CC -print-prog-name=strip`
13101 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13102 set dummy `basename $aros_gcc_strip`; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if ${ac_cv_path_orig_target_strip+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 case $orig_target_strip in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in `dirname $aros_gcc_strip`
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13124 done
13125 done
13126 IFS=$as_save_IFS
13129 esac
13131 orig_target_strip=$ac_cv_path_orig_target_strip
13132 if test -n "$orig_target_strip"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13134 $as_echo "$orig_target_strip" >&6; }
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test "$orig_target_strip" = ""; then
13143 # Extract the first word of "strip", so it can be a program name with args.
13144 set dummy strip; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if ${ac_cv_path_orig_target_strip+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 case $orig_target_strip in
13151 [\\/]* | ?:[\\/]*)
13152 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156 for as_dir in $PATH
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13166 done
13167 done
13168 IFS=$as_save_IFS
13171 esac
13173 orig_target_strip=$ac_cv_path_orig_target_strip
13174 if test -n "$orig_target_strip"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13176 $as_echo "$orig_target_strip" >&6; }
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13185 else
13186 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13187 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13188 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if ${ac_cv_path_orig_target_strip+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 case $orig_target_strip in
13195 [\\/]* | ?:[\\/]*)
13196 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13206 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13210 done
13211 done
13212 IFS=$as_save_IFS
13215 esac
13217 orig_target_strip=$ac_cv_path_orig_target_strip
13218 if test -n "$orig_target_strip"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13220 $as_echo "$orig_target_strip" >&6; }
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13227 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13230 req_avail=yes
13231 if test "$orig_target_strip" = ""; then
13232 req_avail=no
13234 if test "$orig_target_strip" = "no"; then
13235 req_avail=no
13237 if test "$req_avail" = "no"; then
13238 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13241 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13242 if test "$cross_compiling" = "yes" ; then
13243 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13244 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 case $orig_target_objcopy in
13251 [\\/]* | ?:[\\/]*)
13252 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13266 done
13267 done
13268 IFS=$as_save_IFS
13271 esac
13273 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13274 if test -n "$orig_target_objcopy"; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13276 $as_echo "$orig_target_objcopy" >&6; }
13277 else
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13283 else
13284 if test "$GCC" = "yes"; then
13285 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13286 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13287 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 case $orig_target_objcopy in
13294 [\\/]* | ?:[\\/]*)
13295 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in `dirname $aros_gcc_objcopy`
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13309 done
13310 done
13311 IFS=$as_save_IFS
13314 esac
13316 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13317 if test -n "$orig_target_objcopy"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13319 $as_echo "$orig_target_objcopy" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13327 if test "$orig_target_objcopy" = ""; then
13328 # Extract the first word of "objcopy", so it can be a program name with args.
13329 set dummy objcopy; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 case $orig_target_objcopy in
13336 [\\/]* | ?:[\\/]*)
13337 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13347 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13351 done
13352 done
13353 IFS=$as_save_IFS
13356 esac
13358 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13359 if test -n "$orig_target_objcopy"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13361 $as_echo "$orig_target_objcopy" >&6; }
13362 else
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13370 else
13371 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13372 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13373 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 case $orig_target_objcopy in
13380 [\\/]* | ?:[\\/]*)
13381 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13393 break 2
13395 done
13396 done
13397 IFS=$as_save_IFS
13400 esac
13402 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13403 if test -n "$orig_target_objcopy"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13405 $as_echo "$orig_target_objcopy" >&6; }
13406 else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13412 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13415 req_avail=yes
13416 if test "$orig_target_objcopy" = ""; then
13417 req_avail=no
13419 if test "$orig_target_objcopy" = "no"; then
13420 req_avail=no
13422 if test "$req_avail" = "no"; then
13423 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13426 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13427 if test "$cross_compiling" = "yes" ; then
13428 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13429 set dummy ${target_tool_prefix}objdump; ac_word=$2
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 $as_echo_n "checking for $ac_word... " >&6; }
13432 if ${ac_cv_path_orig_target_objdump+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 case $orig_target_objdump in
13436 [\\/]* | ?:[\\/]*)
13437 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $PATH
13443 IFS=$as_save_IFS
13444 test -z "$as_dir" && as_dir=.
13445 for ac_exec_ext in '' $ac_executable_extensions; do
13446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13447 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 break 2
13451 done
13452 done
13453 IFS=$as_save_IFS
13456 esac
13458 orig_target_objdump=$ac_cv_path_orig_target_objdump
13459 if test -n "$orig_target_objdump"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13461 $as_echo "$orig_target_objdump" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13468 else
13469 if test "$GCC" = "yes"; then
13470 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13471 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13472 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474 $as_echo_n "checking for $ac_word... " >&6; }
13475 if ${ac_cv_path_orig_target_objdump+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 case $orig_target_objdump in
13479 [\\/]* | ?:[\\/]*)
13480 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in `dirname $aros_gcc_objdump`
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
13489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13490 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13494 done
13495 done
13496 IFS=$as_save_IFS
13499 esac
13501 orig_target_objdump=$ac_cv_path_orig_target_objdump
13502 if test -n "$orig_target_objdump"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13504 $as_echo "$orig_target_objdump" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13512 if test "$orig_target_objdump" = ""; then
13513 # Extract the first word of "objdump", so it can be a program name with args.
13514 set dummy objdump; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_path_orig_target_objdump+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 case $orig_target_objdump in
13521 [\\/]* | ?:[\\/]*)
13522 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13536 done
13537 done
13538 IFS=$as_save_IFS
13541 esac
13543 orig_target_objdump=$ac_cv_path_orig_target_objdump
13544 if test -n "$orig_target_objdump"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13546 $as_echo "$orig_target_objdump" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13555 else
13556 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13557 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13558 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if ${ac_cv_path_orig_target_objdump+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 case $orig_target_objdump in
13565 [\\/]* | ?:[\\/]*)
13566 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13576 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13580 done
13581 done
13582 IFS=$as_save_IFS
13585 esac
13587 orig_target_objdump=$ac_cv_path_orig_target_objdump
13588 if test -n "$orig_target_objdump"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13590 $as_echo "$orig_target_objdump" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13597 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13600 req_avail=yes
13601 if test "$orig_target_objdump" = ""; then
13602 req_avail=no
13604 if test "$orig_target_objdump" = "no"; then
13605 req_avail=no
13607 if test "$req_avail" = "no"; then
13608 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13612 if test "$kernel_tool_prefix" = "none" ; then
13613 # No kernel tools specified
13614 # Assume target tools == kernel tools with ELF wrapper
13615 aros_kernel_cc=$orig_target_cc
13616 aros_kernel_cxx=$orig_target_cxx
13617 aros_kernel_cpp=$orig_target_cpp
13618 aros_kernel_ld=$orig_target_ld
13619 aros_kernel_as=$orig_target_as
13620 aros_kernel_ar=$orig_target_ar
13621 aros_kernel_ranlib=$orig_target_ranlib
13622 aros_kernel_nm=$orig_target_nm
13623 aros_kernel_strip=$orig_target_strip
13624 aros_kernel_objcopy=$orig_target_objcopy
13625 aros_kernel_objdump=$orig_target_objdump
13626 use_kernel_cc_wrapper=yes
13629 # At this point, all aros_kernel_* and aros_target_*
13630 # tools should be set up correctly
13632 CC="$aros_kernel_cc $kernel_tool_flags"
13633 CPP="$aros_kernel_cpp"
13635 #-----------------------------------------------------------------------------
13637 # Find all the tools we need to compile. This could be cross-compiling
13638 # though! If that is the case we use the GNU form of the target and
13639 # simply add this to the front of the binary name. This is rather simple,
13640 # but it should work under most circumstances.
13642 # The default tools are to use the same as the host, but only if the
13643 # host and target CPU are the same. With GCC this is normally enough.
13646 aros_cc_pre=""
13647 aros_shared_ld="$aros_host_ld"
13649 aros_target_mkdep="$aros_host_mkdep"
13651 # The default tools executables to be linked to.
13652 if test "$rescomp" != ""; then
13653 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13654 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 case $aros_kernel_rescomp in
13661 [\\/]* | ?:[\\/]*)
13662 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $PATH
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13676 done
13677 done
13678 IFS=$as_save_IFS
13681 esac
13683 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13684 if test -n "$aros_kernel_rescomp"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13686 $as_echo "$aros_kernel_rescomp" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13693 req_avail=yes
13694 if test "$aros_kernel_rescomp" = ""; then
13695 req_avail=no
13697 if test "$aros_kernel_rescomp" = "no"; then
13698 req_avail=no
13700 if test "$req_avail" = "no"; then
13701 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13705 # Set up the sources for the symlink farm
13706 if test "$crosstools" = "yes"; then
13707 crosstools_target=tools-crosstools
13710 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13711 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13713 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13714 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13715 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13716 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13717 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13718 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13719 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13721 # aros_cc_pre is a variable that is added to the front of the compiler name
13722 # in the generated aros-gcc shell script. We need this to enable the cache
13723 # to work across cleaned builds. Also, support DISTCC using the correct
13724 # environment variable.
13727 if test "x${DISTCC}" != "x" ; then
13728 if test "x${CCACHE}" != "x" ; then
13729 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13730 else
13731 aros_cc_pre="${DISTCC} "
13733 else
13734 if test "x${CCACHE}" != "x" ; then
13735 aros_cc_pre="${CCACHE} "
13739 aros_target_nostdinc_cflags=-nostdinc
13741 aros_target_nostartup_ldflags=-nostartfiles
13743 aros_target_nix_ldflags=-nix
13745 aros_target_detach_ldflags=-detach
13747 aros_target_nostdlib_ldflags=-nostdlib
13750 # Target tools
13752 if test "$aros_target_toolchain" != "yes"; then
13753 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13754 if test "$GCC" = "yes"; then
13755 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13757 else
13758 # We do not know which c compiler version we are going to build and what we need to know
13759 # here is different for different versions so this will be set later during the
13760 # build of crosstools.
13761 if test "$aros_toolchain" = "gnu" ; then
13762 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13763 elif test "$aros_toolchain" = "llvm" ; then
13764 prefix="$AROS_CROSSTOOLSDIR/bin/"
13766 aros_target_cc_path=@aros_target_cc_path@
13768 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13769 aros_target_cc="${prefix}${toolchain_c_compiler}"
13770 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13771 aros_target_as="${prefix}${toolchain_as}"
13772 if test "${use_ld_wrapper}" = "yes"; then
13773 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13774 else
13775 aros_target_ld="${prefix}${toolchain_ld}"
13777 aros_toolchain_ld="${prefix}${toolchain_ld}"
13779 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13780 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13781 aros_target_objdump="${prefix}${toolchain_objdump}"
13782 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13783 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13784 aros_target_strip="${prefix}${toolchain_strip}"
13785 aros_plain_nm="${prefix}${toolchain_nm}"
13786 aros_plain_ar="${prefix}${toolchain_ar}"
13788 # Check whether --enable-includes was given.
13789 if test "${enable_includes+set}" = set; then :
13790 enableval=$enable_includes; aros_target_incl=$enable_includes
13791 else
13792 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13796 if test "$aros_kernel_includes" = ""; then
13797 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13798 aros_kernel_includes="-isystem $aros_target_incl"
13802 if test "$aros_kernel_includes" != "" ; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13804 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13805 if test "$aros_kernel_cc_includes" = "" ; then
13806 # Try to guess where the directory is.
13807 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13808 if test -d $aros_kernel_cc_includes; then
13809 # Check if there is also an include-fixed directory and add it
13810 # to kernel compiler's include path as it may contain some of
13811 # the headers we need.
13812 if test -d "$aros_kernel_cc_includes"-fixed; then
13813 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13815 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13816 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13817 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13819 else
13820 # The directory doesn't exist, we need to do some more work.
13821 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13823 # These are the headers we're looking for.
13824 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13825 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13826 zutil.h stdint.h"
13828 dirs=
13829 for h in $headers; do
13830 # Which other headers are needed by each of the above?
13831 deps=$(echo "#include <$h>" | \
13832 $aros_kernel_cc -E -M - 2>/dev/null | \
13833 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13835 # Copy all the needed headers to a directory beneath gendir.
13836 for d in $deps; do
13837 h=$(basename $d)
13838 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13839 sed -n "s,^.*/include\(/.*\),\1,p")
13840 ! test -d $dir && mkdir -p $dir
13841 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13842 done
13843 done
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13847 $as_echo "$aros_kernel_cc_includes" >&6; }
13848 # Adding -nostdinc to kernel includes as they are always used together.
13849 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13852 if test "$crosstools" != "yes"; then
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13854 $as_echo_n "checking for the target compiler's include path... " >&6; }
13855 if test "$aros_target_cc_includes" = "" ; then
13856 #try to guess where the directory is
13857 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13858 if ! test -d $aros_target_cc_includes; then
13859 #the directory doesn't exist, we need to do some more work
13860 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13862 #these are the headers we're looking for
13863 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13864 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13865 zutil.h"
13867 dirs=
13868 for h in $headers; do
13869 #which other headers each of the above headers needs?
13870 deps=$(echo "#include <$h>" | \
13871 $orig_target_cc -E -M - 2>/dev/null | \
13872 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13874 #copy all the needed headers to a directory beneath gendir
13875 for d in $deps; do
13876 h=$(basename $d)
13877 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13878 sed -n "s,^.*/include\(/.*\),\1,p")
13879 ! test -d $dir && mkdir -p $dir
13880 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13881 done
13882 done
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13886 $as_echo "$aros_target_cc_includes" >&6; }
13887 else
13888 # We do not know which c compiler version we are going to build and what we need to know
13889 # here is different for different versions so this will be set later during the
13890 # build of crosstools.
13891 aros_target_cc_includes=@aros_target_cc_includes@
13895 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13896 # On GCC >= 4.0 -iquote should be used
13899 save_cc="$CC"
13900 save_cflags="$CFLAGS"
13901 CFLAGS="-iquote."
13902 kernel_cflags_iquote=$host_cflags_iquote
13903 kernel_cflags_iquote_end=$host_cflags_iquote_end
13904 if test "x-$cross_compiling" = "x-yes"; then
13905 CC="$aros_kernel_cc"
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13907 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13908 if test "x-$crosstools" != "x-yes"; then
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13913 main ()
13917 return 0;
13919 _ACEOF
13920 if ac_fn_c_try_compile "$LINENO"; then :
13921 use_no_stack_protector="yes"
13922 else
13923 use_no_stack_protector="no"
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926 else
13927 # we do know it is supported for the smallest version of gcc we are going to build
13928 # we assume it's also supported by later versions
13929 use_no_stack_protector=yes
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13932 $as_echo "$use_no_stack_protector" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13934 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13935 if test "x-$crosstools" != "x-yes"; then
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13940 main ()
13944 return 0;
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948 has_iquote="yes"
13949 else
13950 has_iquote="no"
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 else
13954 # we do know it is supported for the smallest version of gcc we are going to build
13955 # we assume it's also supported by later versions
13956 has_iquote=yes
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13959 $as_echo "$has_iquote" >&6; }
13960 if test "x-$has_iquote" = "x-yes" ; then
13961 kernel_cflags_iquote=-iquote
13962 kernel_cflags_iquote_end=
13963 else
13964 kernel_cflags_iquote=-I
13965 kernel_cflags_iquote_end=-I-
13968 if test "x-$use_no_stack_protector" = "x-yes" ; then
13969 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13972 #-----------------------------------------------------------------------------
13974 # Check if we can explicitly choose older version of symbol hashing
13976 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13977 CC="$aros_kernel_cc"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13979 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13984 main ()
13988 return 0;
13990 _ACEOF
13991 if ac_fn_c_try_link "$LINENO"; then :
13992 use_hash_style="yes"
13993 else
13994 use_hash_style="no"
13996 rm -f core conftest.err conftest.$ac_objext \
13997 conftest$ac_exeext conftest.$ac_ext
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13999 $as_echo "$use_hash_style" >&6; }
14000 if test "x-$use_hash_style" = "x-yes" ; then
14001 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14003 CC="$save_cc"
14004 CFLAGS="$save_cflags"
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14013 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14015 # Check whether --with-resolution was given.
14016 if test "${with_resolution+set}" = set; then :
14017 withval=$with_resolution; resolution=$withval
14018 else
14019 resolution=none
14022 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14023 if test "$resolution" = "yes" ; then
14024 resolution="none"
14026 if test "$resolution" = "no" ; then
14027 resolution="none"
14029 if test "$resolution" != "none" ; then
14030 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14031 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14032 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14035 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14036 aros_cv_nominal_width=$aros_nominal_width
14037 aros_cv_nominal_height=$aros_nominal_height
14038 aros_cv_nominal_depth=$aros_nominal_depth
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14041 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14043 # Check whether --with-serial-debug was given.
14044 if test "${with_serial_debug+set}" = set; then :
14045 withval=$with_serial_debug; serial_debug=$withval
14046 else
14047 serial_debug=none
14050 if test "$aros_serial_debug" = 0 ; then
14051 serial_debug_forced=""
14052 if test "$serial_debug" = "yes" ; then
14053 serial_debug="1"
14055 if test "$serial_debug" = "no" ; then
14056 serial_debug="none"
14058 else
14059 serial_debug_forced="(forced)"
14060 serial_debug=$aros_serial_debug
14062 if test "$serial_debug" != "none" ; then
14063 aros_serial_debug=$serial_debug
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14065 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14072 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14073 # Check whether --enable-palm_debug_hack was given.
14074 if test "${enable_palm_debug_hack+set}" = set; then :
14075 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14076 else
14077 palm_debug_hack="no"
14080 if test "$palm_debug_hack" = "yes" ; then
14081 aros_palm_debug_hack="1"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14084 $as_echo "$palm_debug_hack" >&6; }
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14087 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14088 # Check whether --enable-usb30_code was given.
14089 if test "${enable_usb30_code+set}" = set; then :
14090 enableval=$enable_usb30_code; usb30_code="yes"
14091 else
14092 usb30_code="no"
14095 if test "$usb30_code" = "yes" ; then
14096 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14097 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14100 $as_echo "$usb30_code" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14103 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14104 # Check whether --enable-nesting_supervisor was given.
14105 if test "${enable_nesting_supervisor+set}" = set; then :
14106 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14107 else
14108 nesting_supervisor="no"
14111 if test "$nesting_supervisor" = "yes" ; then
14112 aros_nesting_supervisor="1"
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14115 $as_echo "$nesting_supervisor" >&6; }
14117 if test "$aros_enable_mmu" = "" ; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14119 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14120 # Check whether --enable-mmu was given.
14121 if test "${enable_mmu+set}" = set; then :
14122 enableval=$enable_mmu; aros_enable_mmu=$enableval
14123 else
14124 aros_enable_mmu="yes"
14127 if test "$aros_enable_mmu" = "" ; then
14128 aros_enable_mmu="yes"
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14131 $as_echo "$aros_enable_mmu" >&6; }
14133 if test "$aros_enable_mmu" = "no" ; then
14134 aros_enable_mmu="0"
14135 else
14136 aros_enable_mmu="1"
14140 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14142 if test "x-$need_dlopen" != "x-no" ; then
14143 save_libs="$LIBS"
14144 LIBS=""
14145 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14146 if test "x$ac_cv_func_dlopen" = xyes; then :
14147 have_dl="yes"
14148 else
14149 have_dl="no"
14152 if test "x-$have_dl" = "x-no" ; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14155 if ${ac_cv_lib_dl_dlopen+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 ac_check_lib_save_LIBS=$LIBS
14159 LIBS="-ldl $LIBS"
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14166 #ifdef __cplusplus
14167 extern "C"
14168 #endif
14169 char dlopen ();
14171 main ()
14173 return dlopen ();
14175 return 0;
14177 _ACEOF
14178 if ac_fn_c_try_link "$LINENO"; then :
14179 ac_cv_lib_dl_dlopen=yes
14180 else
14181 ac_cv_lib_dl_dlopen=no
14183 rm -f core conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14189 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14190 have_dl="yes"
14191 aros_host_ldflags="$aros_host_ldflags -ldl"
14192 else
14193 have_dl="no"
14197 if test "x-$have_dl" = "x-no" ; then
14198 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14200 LIBS="$save_libs"
14204 # Check whether --enable-x11_hidd was given.
14205 if test "${enable_x11_hidd+set}" = set; then :
14206 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14207 else
14208 x11_hidd="$need_x11"
14211 case "x-$x11_hidd" in
14212 x-yes|x-no|x-auto) ;;
14213 *) x11_hidd="$need_x11" ;;
14214 esac
14216 ENABLE_X11=0
14218 if test "x-$x11_hidd" != "x-no" ; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14221 $as_echo_n "checking for X... " >&6; }
14224 # Check whether --with-x was given.
14225 if test "${with_x+set}" = set; then :
14226 withval=$with_x;
14229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14230 if test "x$with_x" = xno; then
14231 # The user explicitly disabled X.
14232 have_x=disabled
14233 else
14234 case $x_includes,$x_libraries in #(
14235 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14236 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 # One or both of the vars are not set, and there is no cached value.
14240 ac_x_includes=no ac_x_libraries=no
14241 rm -f -r conftest.dir
14242 if mkdir conftest.dir; then
14243 cd conftest.dir
14244 cat >Imakefile <<'_ACEOF'
14245 incroot:
14246 @echo incroot='${INCROOT}'
14247 usrlibdir:
14248 @echo usrlibdir='${USRLIBDIR}'
14249 libdir:
14250 @echo libdir='${LIBDIR}'
14251 _ACEOF
14252 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14253 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14254 for ac_var in incroot usrlibdir libdir; do
14255 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14256 done
14257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14258 for ac_extension in a so sl dylib la dll; do
14259 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14260 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14261 ac_im_usrlibdir=$ac_im_libdir; break
14263 done
14264 # Screen out bogus values from the imake configuration. They are
14265 # bogus both because they are the default anyway, and because
14266 # using them would break gcc on systems where it needs fixed includes.
14267 case $ac_im_incroot in
14268 /usr/include) ac_x_includes= ;;
14269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14270 esac
14271 case $ac_im_usrlibdir in
14272 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14274 esac
14276 cd ..
14277 rm -f -r conftest.dir
14280 # Standard set of common directories for X headers.
14281 # Check X11 before X11Rn because it is often a symlink to the current release.
14282 ac_x_header_dirs='
14283 /usr/X11/include
14284 /usr/X11R7/include
14285 /usr/X11R6/include
14286 /usr/X11R5/include
14287 /usr/X11R4/include
14289 /usr/include/X11
14290 /usr/include/X11R7
14291 /usr/include/X11R6
14292 /usr/include/X11R5
14293 /usr/include/X11R4
14295 /usr/local/X11/include
14296 /usr/local/X11R7/include
14297 /usr/local/X11R6/include
14298 /usr/local/X11R5/include
14299 /usr/local/X11R4/include
14301 /usr/local/include/X11
14302 /usr/local/include/X11R7
14303 /usr/local/include/X11R6
14304 /usr/local/include/X11R5
14305 /usr/local/include/X11R4
14307 /usr/X386/include
14308 /usr/x386/include
14309 /usr/XFree86/include/X11
14311 /usr/include
14312 /usr/local/include
14313 /usr/unsupported/include
14314 /usr/athena/include
14315 /usr/local/x11r5/include
14316 /usr/lpp/Xamples/include
14318 /usr/openwin/include
14319 /usr/openwin/share/include'
14321 if test "$ac_x_includes" = no; then
14322 # Guess where to find include files, by looking for Xlib.h.
14323 # First, try using that file with no special directory specified.
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 #include <X11/Xlib.h>
14327 _ACEOF
14328 if ac_fn_c_try_cpp "$LINENO"; then :
14329 # We can compile using X headers with no special include directory.
14330 ac_x_includes=
14331 else
14332 for ac_dir in $ac_x_header_dirs; do
14333 if test -r "$ac_dir/X11/Xlib.h"; then
14334 ac_x_includes=$ac_dir
14335 break
14337 done
14339 rm -f conftest.err conftest.i conftest.$ac_ext
14340 fi # $ac_x_includes = no
14342 if test "$ac_x_libraries" = no; then
14343 # Check for the libraries.
14344 # See if we find them without any special options.
14345 # Don't add to $LIBS permanently.
14346 ac_save_LIBS=$LIBS
14347 LIBS="-lX11 $LIBS"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 #include <X11/Xlib.h>
14352 main ()
14354 XrmInitialize ()
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 LIBS=$ac_save_LIBS
14361 # We can link X programs with no special library path.
14362 ac_x_libraries=
14363 else
14364 LIBS=$ac_save_LIBS
14365 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14367 # Don't even attempt the hair of trying to link an X program!
14368 for ac_extension in a so sl dylib la dll; do
14369 if test -r "$ac_dir/libX11.$ac_extension"; then
14370 ac_x_libraries=$ac_dir
14371 break 2
14373 done
14374 done
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 fi # $ac_x_libraries = no
14380 case $ac_x_includes,$ac_x_libraries in #(
14381 no,* | *,no | *\'*)
14382 # Didn't find X, or a directory has "'" in its name.
14383 ac_cv_have_x="have_x=no";; #(
14385 # Record where we found X for the cache.
14386 ac_cv_have_x="have_x=yes\
14387 ac_x_includes='$ac_x_includes'\
14388 ac_x_libraries='$ac_x_libraries'"
14389 esac
14391 ;; #(
14392 *) have_x=yes;;
14393 esac
14394 eval "$ac_cv_have_x"
14395 fi # $with_x != no
14397 if test "$have_x" != yes; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14399 $as_echo "$have_x" >&6; }
14400 no_x=yes
14401 else
14402 # If each of the values was on the command line, it overrides each guess.
14403 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14404 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14405 # Update the cache value to reflect the command line values.
14406 ac_cv_have_x="have_x=yes\
14407 ac_x_includes='$x_includes'\
14408 ac_x_libraries='$x_libraries'"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14410 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14414 if test -n "$x_includes"; then
14415 X_CFLAGS="$X_CFLAGS -I$x_includes"
14418 if test -n "$x_libraries"; then
14419 X_LIBS="$X_LIBS -L$x_libraries"
14422 if test "x-$no_x" = "x-yes" ; then
14424 if test "x-$x11_hidd" != "x-auto" ; then
14425 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14428 else
14429 host_x_gfx=yes
14430 ENABLE_X11=1
14432 aros_host_x11_cflags="$X_CFLAGS"
14433 aros_host_x11_ldflags="$X_LIBS -lX11"
14435 # Check whether --enable-x11_shm was given.
14436 if test "${enable_x11_shm+set}" = set; then :
14437 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14438 else
14439 x11_hidd_shm="auto"
14442 case "x-$x11_hidd_shm" in
14443 x-yes|x-no|x-auto) ;;
14444 *) x11_hidd_shm="auto" ;;
14445 esac
14447 have_xshm=no
14449 if test "x-$x11_hidd_shm" != "x-no" ; then
14451 for ac_header in sys/ipc.h
14452 do :
14453 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14454 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_SYS_IPC_H 1
14457 _ACEOF
14461 done
14463 for ac_header in sys/shm.h
14464 do :
14465 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14466 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_SYS_SHM_H 1
14469 _ACEOF
14473 done
14476 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14478 save_cflags="$CFLAGS"
14479 save_ldflags="$LDFLAGS"
14480 CFLAGS="$CFLAGS $X_CFLAGS"
14481 LDFLAGS="$LDFLAGS $X_LIBS"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14483 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14484 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 ac_check_lib_save_LIBS=$LIBS
14488 LIBS="-lXext $LIBS"
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14492 /* Override any GCC internal prototype to avoid an error.
14493 Use char because int might match the return type of a GCC
14494 builtin and then its argument prototype would still apply. */
14495 #ifdef __cplusplus
14496 extern "C"
14497 #endif
14498 char XShmQueryExtension ();
14500 main ()
14502 return XShmQueryExtension ();
14504 return 0;
14506 _ACEOF
14507 if ac_fn_c_try_link "$LINENO"; then :
14508 ac_cv_lib_Xext_XShmQueryExtension=yes
14509 else
14510 ac_cv_lib_Xext_XShmQueryExtension=no
14512 rm -f core conftest.err conftest.$ac_objext \
14513 conftest$ac_exeext conftest.$ac_ext
14514 LIBS=$ac_check_lib_save_LIBS
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14517 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14518 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14519 have_xshm=yes
14522 CFLAGS="$save_cflags"
14523 LDFLAGS="$save_ldflags"
14527 if test "x-$have_xshm" = "x-yes" ; then
14528 DO_XSHM_SUPPORT="1"
14529 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14530 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14531 else
14532 DO_XSHM_SUPPORT="0"
14536 # Check whether --enable-x11_vidmode was given.
14537 if test "${enable_x11_vidmode+set}" = set; then :
14538 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14539 else
14540 x11_hidd_vidmode="auto"
14543 case "x-$x11_hidd_vidmode" in
14544 x-yes|x-no|x-auto) ;;
14545 *) x11_hidd_vidmode="auto" ;;
14546 esac
14548 have_vidmode=no
14550 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14552 save_cflags="$CFLAGS"
14553 save_ldflags="$LDFLAGS"
14554 CFLAGS="$CFLAGS $X_CFLAGS"
14555 LDFLAGS="$LDFLAGS $X_LIBS"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14557 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14558 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-lXxf86vm $LIBS"
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 char XF86VidModeQueryExtension ();
14574 main ()
14576 return XF86VidModeQueryExtension ();
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14583 else
14584 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14591 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14592 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14593 have_vidmode=yes
14596 CFLAGS="$save_cflags"
14597 LDFLAGS="$save_ldflags"
14600 if test "x-$have_vidmode" = "x-yes" ; then
14601 DO_VIDMODE_SUPPORT="1"
14602 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14603 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14604 else
14605 DO_VIDMODE_SUPPORT="0"
14610 # Check whether --enable-sdl_hidd was given.
14611 if test "${enable_sdl_hidd+set}" = set; then :
14612 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14613 else
14614 sdl_hidd="auto"
14617 case "x-$sdl_hidd" in
14618 x-yes|x-no|x-auto) ;;
14619 *) sdl_hidd="auto" ;;
14620 esac
14622 if test "x-$sdl_hidd" != "x-no" ; then
14624 SDL_VERSION=1.2.5
14626 # Check whether --with-sdl-prefix was given.
14627 if test "${with_sdl_prefix+set}" = set; then :
14628 withval=$with_sdl_prefix; sdl_prefix="$withval"
14629 else
14630 sdl_prefix=""
14634 # Check whether --with-sdl-exec-prefix was given.
14635 if test "${with_sdl_exec_prefix+set}" = set; then :
14636 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14637 else
14638 sdl_exec_prefix=""
14641 # Check whether --enable-sdltest was given.
14642 if test "${enable_sdltest+set}" = set; then :
14643 enableval=$enable_sdltest;
14644 else
14645 enable_sdltest=yes
14649 if test x$sdl_exec_prefix != x ; then
14650 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14651 if test x${SDL_CONFIG+set} != xset ; then
14652 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14655 if test x$sdl_prefix != x ; then
14656 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14657 if test x${SDL_CONFIG+set} != xset ; then
14658 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14662 as_save_PATH="$PATH"
14663 if test "x$prefix" != xNONE; then
14664 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14666 # Extract the first word of "sdl-config", so it can be a program name with args.
14667 set dummy sdl-config; ac_word=$2
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14669 $as_echo_n "checking for $ac_word... " >&6; }
14670 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 case $SDL_CONFIG in
14674 [\\/]* | ?:[\\/]*)
14675 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14689 done
14690 done
14691 IFS=$as_save_IFS
14693 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14695 esac
14697 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14698 if test -n "$SDL_CONFIG"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14700 $as_echo "$SDL_CONFIG" >&6; }
14701 else
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14707 PATH="$as_save_PATH"
14708 min_sdl_version=$SDL_VERSION
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14710 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14711 no_sdl=""
14712 if test "$SDL_CONFIG" = "no" ; then
14713 no_sdl=yes
14714 else
14715 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14716 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14718 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14720 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14722 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14724 if test "x$enable_sdltest" = "xyes" ; then
14725 ac_save_CFLAGS="$CFLAGS"
14726 ac_save_CXXFLAGS="$CXXFLAGS"
14727 ac_save_LIBS="$LIBS"
14728 CFLAGS="$CFLAGS $SDL_CFLAGS"
14729 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14730 LIBS="$LIBS $SDL_LIBS"
14731 rm -f conf.sdltest
14732 if test "$cross_compiling" = yes; then :
14733 echo $ac_n "cross compiling; assumed OK... $ac_c"
14734 else
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14738 #include <stdio.h>
14739 #include <stdlib.h>
14740 #include <string.h>
14741 #include "SDL.h"
14743 char*
14744 my_strdup (char *str)
14746 char *new_str;
14748 if (str)
14750 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14751 strcpy (new_str, str);
14753 else
14754 new_str = NULL;
14756 return new_str;
14759 int main (int argc, char *argv[])
14761 int major, minor, micro;
14762 char *tmp_version;
14764 /* This hangs on some systems (?)
14765 system ("touch conf.sdltest");
14767 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14769 /* HP/UX 9 (%@#!) writes to sscanf strings */
14770 tmp_version = my_strdup("$min_sdl_version");
14771 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14772 printf("%s, bad version string\n", "$min_sdl_version");
14773 exit(1);
14776 if (($sdl_major_version > major) ||
14777 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14778 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14780 return 0;
14782 else
14784 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14785 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14786 printf("*** best to upgrade to the required version.\n");
14787 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14788 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14789 printf("*** config.cache before re-running configure\n");
14790 return 1;
14795 _ACEOF
14796 if ac_fn_c_try_run "$LINENO"; then :
14798 else
14799 no_sdl=yes
14801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14802 conftest.$ac_objext conftest.beam conftest.$ac_ext
14805 CFLAGS="$ac_save_CFLAGS"
14806 CXXFLAGS="$ac_save_CXXFLAGS"
14807 LIBS="$ac_save_LIBS"
14810 if test "x$no_sdl" = x ; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14812 $as_echo "yes" >&6; }
14813 have_sdl="yes"
14814 else
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14817 if test "$SDL_CONFIG" = "no" ; then
14818 echo "*** The sdl-config script installed by SDL could not be found"
14819 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14820 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14821 echo "*** full path to sdl-config."
14822 else
14823 if test -f conf.sdltest ; then
14825 else
14826 echo "*** Could not run SDL test program, checking why..."
14827 CFLAGS="$CFLAGS $SDL_CFLAGS"
14828 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14829 LIBS="$LIBS $SDL_LIBS"
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14833 #include <stdio.h>
14834 #include "SDL.h"
14836 int main(int argc, char *argv[])
14837 { return 0; }
14838 #undef main
14839 #define main K_and_R_C_main
14842 main ()
14844 return 0;
14846 return 0;
14848 _ACEOF
14849 if ac_fn_c_try_link "$LINENO"; then :
14850 echo "*** The test program compiled, but did not run. This usually means"
14851 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14852 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14853 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14854 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14855 echo "*** is required on your system"
14856 echo "***"
14857 echo "*** If you have an old version installed, it is best to remove it, although"
14858 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14859 else
14860 echo "*** The test program failed to compile or link. See the file config.log for the"
14861 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14862 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14863 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14865 rm -f core conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14867 CFLAGS="$ac_save_CFLAGS"
14868 CXXFLAGS="$ac_save_CXXFLAGS"
14869 LIBS="$ac_save_LIBS"
14872 SDL_CFLAGS=""
14873 SDL_LIBS=""
14874 have_sdl="no"
14878 rm -f conf.sdltest
14881 if test "x-$have_sdl" != "x-yes" ; then
14883 if test "x-$sdl_hidd" != "x-auto" ; then
14884 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14887 else
14888 host_sdl_gfx=yes
14889 aros_host_sdl_cflags=$SDL_CFLAGS
14890 aros_host_sdl_libs=$SDL_LIBS
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14898 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14899 # Check whether --enable-dbus was given.
14900 if test "${enable_dbus+set}" = set; then :
14901 enableval=$enable_dbus; dbus="yes"
14902 else
14903 dbus="no"
14906 if test "$dbus" = "yes" ; then
14907 ENABLE_DBUS=1
14908 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14909 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14910 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14911 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14912 else
14913 ENABLE_DBUS=0
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14916 $as_echo "$dbus" >&6; }
14918 if test "$use_kernel_cc_wrapper" = "yes" ; then
14919 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14922 aros_kernel_cppflags=$aros_config_cppflags
14923 aros_optimization_cflags="$optimization_level"
14924 if test "$optimization" = "default"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14926 $as_echo_n "checking default optimization level to use... " >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14928 $as_echo "$optimization_level" >&6; }
14932 # Generic
14946 # Compatability with other Amiga-like operation systems
14949 # Host related
14979 # Target Related
15059 # Hosted Graphics Related
15077 # Bootloader related
15080 # Native version related
15085 # Palm native version related
15088 # Unix/Hosted version related
15091 # MMU related
15094 # Apple iOS related
15099 # ARM default GCC target related
15106 # Android related
15111 # DBUS related
15118 #X11 related
15121 # Debug related
15127 # Collect-aros stuff: "-ius" to ignore undefined symbols
15130 # C compiler related
15135 #ObjC compiler related
15138 #Java related
15141 # USB3.0 code
15144 case "$aros_flavour" in
15145 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15146 aros_flavour="emulation" ;;
15147 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15148 aros_flavour="emulation" ;;
15149 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15150 aros_flavour="standalone";;
15151 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15152 aros_flavour="standalone";;
15153 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15154 aros_flavour="native" ;;
15155 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15156 aros_flavour="native" ;;
15157 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15158 aros_flavour="linklib" ;;
15159 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15160 aros_flavour="palmnative" ;;
15161 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15162 aros_flavour="mac68knative" ;;
15163 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15164 aros_flavour="ppcnative" ;;
15165 esac
15167 if test ! -d ${aros_inc_dir} ; then
15168 ${MKDIR} ${aros_inc_dir}
15170 if test ! -d ${aros_geninc_dir} ; then
15171 ${MKDIR} ${aros_geninc_dir}
15173 if test ! -d ${aros_hostcfg_dir} ; then
15174 ${MKDIR} ${aros_hostcfg_dir}
15176 if test ! -d ${aros_targetcfg_dir} ; then
15177 ${MKDIR} ${aros_targetcfg_dir}
15179 if test ! -d ${aros_tools_dir} ; then
15180 ${MKDIR} ${aros_tools_dir}
15182 if test ! -d ${aros_scripts_dir} ; then
15183 ${MKDIR} ${aros_scripts_dir}
15186 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15189 # Generic build tools (metamake, etc)
15190 ac_config_commands="$ac_config_commands genmf-executable-support"
15192 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15195 # Binutils
15196 ac_config_commands="$ac_config_commands binutils-support"
15198 if test "${use_ld_wrapper}" = "yes"; then
15199 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15202 # Bare Elf support script and spec
15203 if test "${use_kernel_cc_wrapper}" = "yes"; then
15204 ac_config_commands="$ac_config_commands elf-compiler-support"
15206 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
15210 # Host compiler support scripts and spec
15211 if test "${aros_target_toolchain}" = "no"; then
15212 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15214 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
15218 # Android support
15219 if test "$aros_target_variant" == "android"; then
15220 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15224 # cmake helper
15225 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15228 cat >confcache <<\_ACEOF
15229 # This file is a shell script that caches the results of configure
15230 # tests run on this system so they can be shared between configure
15231 # scripts and configure runs, see configure's option --config-cache.
15232 # It is not useful on other systems. If it contains results you don't
15233 # want to keep, you may remove or edit it.
15235 # config.status only pays attention to the cache file if you give it
15236 # the --recheck option to rerun configure.
15238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15240 # following values.
15242 _ACEOF
15244 # The following way of writing the cache mishandles newlines in values,
15245 # but we know of no workaround that is simple, portable, and efficient.
15246 # So, we kill variables containing newlines.
15247 # Ultrix sh set writes to stderr and can't be redirected directly,
15248 # and sets the high bit in the cache file unless we assign to the vars.
15250 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15251 eval ac_val=\$$ac_var
15252 case $ac_val in #(
15253 *${as_nl}*)
15254 case $ac_var in #(
15255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15257 esac
15258 case $ac_var in #(
15259 _ | IFS | as_nl) ;; #(
15260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15261 *) { eval $ac_var=; unset $ac_var;} ;;
15262 esac ;;
15263 esac
15264 done
15266 (set) 2>&1 |
15267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15268 *${as_nl}ac_space=\ *)
15269 # `set' does not quote correctly, so add quotes: double-quote
15270 # substitution turns \\\\ into \\, and sed turns \\ into \.
15271 sed -n \
15272 "s/'/'\\\\''/g;
15273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15274 ;; #(
15276 # `set' quotes correctly as required by POSIX, so do not add quotes.
15277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15279 esac |
15280 sort
15282 sed '
15283 /^ac_cv_env_/b end
15284 t clear
15285 :clear
15286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15287 t end
15288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15289 :end' >>confcache
15290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15291 if test -w "$cache_file"; then
15292 if test "x$cache_file" != "x/dev/null"; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15294 $as_echo "$as_me: updating cache $cache_file" >&6;}
15295 if test ! -f "$cache_file" || test -h "$cache_file"; then
15296 cat confcache >"$cache_file"
15297 else
15298 case $cache_file in #(
15299 */* | ?:*)
15300 mv -f confcache "$cache_file"$$ &&
15301 mv -f "$cache_file"$$ "$cache_file" ;; #(
15303 mv -f confcache "$cache_file" ;;
15304 esac
15307 else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15309 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15312 rm -f confcache
15314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15315 # Let make expand exec_prefix.
15316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15318 DEFS=-DHAVE_CONFIG_H
15320 ac_libobjs=
15321 ac_ltlibobjs=
15323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15324 # 1. Remove the extension, and $U if already installed.
15325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15328 # will be set to the directory where LIBOBJS objects are built.
15329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15331 done
15332 LIBOBJS=$ac_libobjs
15334 LTLIBOBJS=$ac_ltlibobjs
15338 : "${CONFIG_STATUS=./config.status}"
15339 ac_write_fail=0
15340 ac_clean_files_save=$ac_clean_files
15341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15343 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15344 as_write_fail=0
15345 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15346 #! $SHELL
15347 # Generated by $as_me.
15348 # Run this file to recreate the current configuration.
15349 # Compiler output produced by configure, useful for debugging
15350 # configure, is in config.log if it exists.
15352 debug=false
15353 ac_cs_recheck=false
15354 ac_cs_silent=false
15356 SHELL=\${CONFIG_SHELL-$SHELL}
15357 export SHELL
15358 _ASEOF
15359 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15360 ## -------------------- ##
15361 ## M4sh Initialization. ##
15362 ## -------------------- ##
15364 # Be more Bourne compatible
15365 DUALCASE=1; export DUALCASE # for MKS sh
15366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15367 emulate sh
15368 NULLCMD=:
15369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15370 # is contrary to our usage. Disable this feature.
15371 alias -g '${1+"$@"}'='"$@"'
15372 setopt NO_GLOB_SUBST
15373 else
15374 case `(set -o) 2>/dev/null` in #(
15375 *posix*) :
15376 set -o posix ;; #(
15377 *) :
15379 esac
15383 as_nl='
15385 export as_nl
15386 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15387 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15390 # Prefer a ksh shell builtin over an external printf program on Solaris,
15391 # but without wasting forks for bash or zsh.
15392 if test -z "$BASH_VERSION$ZSH_VERSION" \
15393 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15394 as_echo='print -r --'
15395 as_echo_n='print -rn --'
15396 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15397 as_echo='printf %s\n'
15398 as_echo_n='printf %s'
15399 else
15400 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15401 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15402 as_echo_n='/usr/ucb/echo -n'
15403 else
15404 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15405 as_echo_n_body='eval
15406 arg=$1;
15407 case $arg in #(
15408 *"$as_nl"*)
15409 expr "X$arg" : "X\\(.*\\)$as_nl";
15410 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15411 esac;
15412 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15414 export as_echo_n_body
15415 as_echo_n='sh -c $as_echo_n_body as_echo'
15417 export as_echo_body
15418 as_echo='sh -c $as_echo_body as_echo'
15421 # The user is always right.
15422 if test "${PATH_SEPARATOR+set}" != set; then
15423 PATH_SEPARATOR=:
15424 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15425 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15426 PATH_SEPARATOR=';'
15431 # IFS
15432 # We need space, tab and new line, in precisely that order. Quoting is
15433 # there to prevent editors from complaining about space-tab.
15434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15435 # splitting by setting IFS to empty value.)
15436 IFS=" "" $as_nl"
15438 # Find who we are. Look in the path if we contain no directory separator.
15439 as_myself=
15440 case $0 in #((
15441 *[\\/]* ) as_myself=$0 ;;
15442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15443 for as_dir in $PATH
15445 IFS=$as_save_IFS
15446 test -z "$as_dir" && as_dir=.
15447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15448 done
15449 IFS=$as_save_IFS
15452 esac
15453 # We did not find ourselves, most probably we were run as `sh COMMAND'
15454 # in which case we are not to be found in the path.
15455 if test "x$as_myself" = x; then
15456 as_myself=$0
15458 if test ! -f "$as_myself"; then
15459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15460 exit 1
15463 # Unset variables that we do not need and which cause bugs (e.g. in
15464 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15465 # suppresses any "Segmentation fault" message there. '((' could
15466 # trigger a bug in pdksh 5.2.14.
15467 for as_var in BASH_ENV ENV MAIL MAILPATH
15468 do eval test x\${$as_var+set} = xset \
15469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15470 done
15471 PS1='$ '
15472 PS2='> '
15473 PS4='+ '
15475 # NLS nuisances.
15476 LC_ALL=C
15477 export LC_ALL
15478 LANGUAGE=C
15479 export LANGUAGE
15481 # CDPATH.
15482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15485 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15486 # ----------------------------------------
15487 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15488 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15489 # script with STATUS, using 1 if that was 0.
15490 as_fn_error ()
15492 as_status=$1; test $as_status -eq 0 && as_status=1
15493 if test "$4"; then
15494 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15497 $as_echo "$as_me: error: $2" >&2
15498 as_fn_exit $as_status
15499 } # as_fn_error
15502 # as_fn_set_status STATUS
15503 # -----------------------
15504 # Set $? to STATUS, without forking.
15505 as_fn_set_status ()
15507 return $1
15508 } # as_fn_set_status
15510 # as_fn_exit STATUS
15511 # -----------------
15512 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15513 as_fn_exit ()
15515 set +e
15516 as_fn_set_status $1
15517 exit $1
15518 } # as_fn_exit
15520 # as_fn_unset VAR
15521 # ---------------
15522 # Portably unset VAR.
15523 as_fn_unset ()
15525 { eval $1=; unset $1;}
15527 as_unset=as_fn_unset
15528 # as_fn_append VAR VALUE
15529 # ----------------------
15530 # Append the text in VALUE to the end of the definition contained in VAR. Take
15531 # advantage of any shell optimizations that allow amortized linear growth over
15532 # repeated appends, instead of the typical quadratic growth present in naive
15533 # implementations.
15534 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15535 eval 'as_fn_append ()
15537 eval $1+=\$2
15539 else
15540 as_fn_append ()
15542 eval $1=\$$1\$2
15544 fi # as_fn_append
15546 # as_fn_arith ARG...
15547 # ------------------
15548 # Perform arithmetic evaluation on the ARGs, and store the result in the
15549 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15550 # must be portable across $(()) and expr.
15551 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15552 eval 'as_fn_arith ()
15554 as_val=$(( $* ))
15556 else
15557 as_fn_arith ()
15559 as_val=`expr "$@" || test $? -eq 1`
15561 fi # as_fn_arith
15564 if expr a : '\(a\)' >/dev/null 2>&1 &&
15565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15566 as_expr=expr
15567 else
15568 as_expr=false
15571 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15572 as_basename=basename
15573 else
15574 as_basename=false
15577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15578 as_dirname=dirname
15579 else
15580 as_dirname=false
15583 as_me=`$as_basename -- "$0" ||
15584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15585 X"$0" : 'X\(//\)$' \| \
15586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15587 $as_echo X/"$0" |
15588 sed '/^.*\/\([^/][^/]*\)\/*$/{
15589 s//\1/
15592 /^X\/\(\/\/\)$/{
15593 s//\1/
15596 /^X\/\(\/\).*/{
15597 s//\1/
15600 s/.*/./; q'`
15602 # Avoid depending upon Character Ranges.
15603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15606 as_cr_digits='0123456789'
15607 as_cr_alnum=$as_cr_Letters$as_cr_digits
15609 ECHO_C= ECHO_N= ECHO_T=
15610 case `echo -n x` in #(((((
15611 -n*)
15612 case `echo 'xy\c'` in
15613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15614 xy) ECHO_C='\c';;
15615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15616 ECHO_T=' ';;
15617 esac;;
15619 ECHO_N='-n';;
15620 esac
15622 rm -f conf$$ conf$$.exe conf$$.file
15623 if test -d conf$$.dir; then
15624 rm -f conf$$.dir/conf$$.file
15625 else
15626 rm -f conf$$.dir
15627 mkdir conf$$.dir 2>/dev/null
15629 if (echo >conf$$.file) 2>/dev/null; then
15630 if ln -s conf$$.file conf$$ 2>/dev/null; then
15631 as_ln_s='ln -s'
15632 # ... but there are two gotchas:
15633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15635 # In both cases, we have to default to `cp -pR'.
15636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15637 as_ln_s='cp -pR'
15638 elif ln conf$$.file conf$$ 2>/dev/null; then
15639 as_ln_s=ln
15640 else
15641 as_ln_s='cp -pR'
15643 else
15644 as_ln_s='cp -pR'
15646 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15647 rmdir conf$$.dir 2>/dev/null
15650 # as_fn_mkdir_p
15651 # -------------
15652 # Create "$as_dir" as a directory, including parents if necessary.
15653 as_fn_mkdir_p ()
15656 case $as_dir in #(
15657 -*) as_dir=./$as_dir;;
15658 esac
15659 test -d "$as_dir" || eval $as_mkdir_p || {
15660 as_dirs=
15661 while :; do
15662 case $as_dir in #(
15663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15664 *) as_qdir=$as_dir;;
15665 esac
15666 as_dirs="'$as_qdir' $as_dirs"
15667 as_dir=`$as_dirname -- "$as_dir" ||
15668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15669 X"$as_dir" : 'X\(//\)[^/]' \| \
15670 X"$as_dir" : 'X\(//\)$' \| \
15671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15672 $as_echo X"$as_dir" |
15673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15674 s//\1/
15677 /^X\(\/\/\)[^/].*/{
15678 s//\1/
15681 /^X\(\/\/\)$/{
15682 s//\1/
15685 /^X\(\/\).*/{
15686 s//\1/
15689 s/.*/./; q'`
15690 test -d "$as_dir" && break
15691 done
15692 test -z "$as_dirs" || eval "mkdir $as_dirs"
15693 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15696 } # as_fn_mkdir_p
15697 if mkdir -p . 2>/dev/null; then
15698 as_mkdir_p='mkdir -p "$as_dir"'
15699 else
15700 test -d ./-p && rmdir ./-p
15701 as_mkdir_p=false
15705 # as_fn_executable_p FILE
15706 # -----------------------
15707 # Test if FILE is an executable regular file.
15708 as_fn_executable_p ()
15710 test -f "$1" && test -x "$1"
15711 } # as_fn_executable_p
15712 as_test_x='test -x'
15713 as_executable_p=as_fn_executable_p
15715 # Sed expression to map a string onto a valid CPP name.
15716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15718 # Sed expression to map a string onto a valid variable name.
15719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15722 exec 6>&1
15723 ## ----------------------------------- ##
15724 ## Main body of $CONFIG_STATUS script. ##
15725 ## ----------------------------------- ##
15726 _ASEOF
15727 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15730 # Save the log message, to keep $0 and so on meaningful, and to
15731 # report actual input values of CONFIG_FILES etc. instead of their
15732 # values after options handling.
15733 ac_log="
15734 This file was extended by $as_me, which was
15735 generated by GNU Autoconf 2.69. Invocation command line was
15737 CONFIG_FILES = $CONFIG_FILES
15738 CONFIG_HEADERS = $CONFIG_HEADERS
15739 CONFIG_LINKS = $CONFIG_LINKS
15740 CONFIG_COMMANDS = $CONFIG_COMMANDS
15741 $ $0 $@
15743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15746 _ACEOF
15748 case $ac_config_files in *"
15749 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15750 esac
15752 case $ac_config_headers in *"
15753 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15754 esac
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 # Files that config.status was made for.
15759 config_files="$ac_config_files"
15760 config_headers="$ac_config_headers"
15761 config_commands="$ac_config_commands"
15763 _ACEOF
15765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15766 ac_cs_usage="\
15767 \`$as_me' instantiates files and other configuration actions
15768 from templates according to the current configuration. Unless the files
15769 and actions are specified as TAGs, all are instantiated by default.
15771 Usage: $0 [OPTION]... [TAG]...
15773 -h, --help print this help, then exit
15774 -V, --version print version number and configuration settings, then exit
15775 --config print configuration, then exit
15776 -q, --quiet, --silent
15777 do not print progress messages
15778 -d, --debug don't remove temporary files
15779 --recheck update $as_me by reconfiguring in the same conditions
15780 --file=FILE[:TEMPLATE]
15781 instantiate the configuration file FILE
15782 --header=FILE[:TEMPLATE]
15783 instantiate the configuration header FILE
15785 Configuration files:
15786 $config_files
15788 Configuration headers:
15789 $config_headers
15791 Configuration commands:
15792 $config_commands
15794 Report bugs to the package provider."
15796 _ACEOF
15797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15798 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15799 ac_cs_version="\\
15800 config.status
15801 configured by $0, generated by GNU Autoconf 2.69,
15802 with options \\"\$ac_cs_config\\"
15804 Copyright (C) 2012 Free Software Foundation, Inc.
15805 This config.status script is free software; the Free Software Foundation
15806 gives unlimited permission to copy, distribute and modify it."
15808 ac_pwd='$ac_pwd'
15809 srcdir='$srcdir'
15810 test -n "\$AWK" || AWK=awk
15811 _ACEOF
15813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15814 # The default lists apply if the user does not specify any file.
15815 ac_need_defaults=:
15816 while test $# != 0
15818 case $1 in
15819 --*=?*)
15820 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15821 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15822 ac_shift=:
15824 --*=)
15825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15826 ac_optarg=
15827 ac_shift=:
15830 ac_option=$1
15831 ac_optarg=$2
15832 ac_shift=shift
15834 esac
15836 case $ac_option in
15837 # Handling of the options.
15838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15839 ac_cs_recheck=: ;;
15840 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15841 $as_echo "$ac_cs_version"; exit ;;
15842 --config | --confi | --conf | --con | --co | --c )
15843 $as_echo "$ac_cs_config"; exit ;;
15844 --debug | --debu | --deb | --de | --d | -d )
15845 debug=: ;;
15846 --file | --fil | --fi | --f )
15847 $ac_shift
15848 case $ac_optarg in
15849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15850 '') as_fn_error $? "missing file argument" ;;
15851 esac
15852 as_fn_append CONFIG_FILES " '$ac_optarg'"
15853 ac_need_defaults=false;;
15854 --header | --heade | --head | --hea )
15855 $ac_shift
15856 case $ac_optarg in
15857 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15858 esac
15859 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15860 ac_need_defaults=false;;
15861 --he | --h)
15862 # Conflict between --help and --header
15863 as_fn_error $? "ambiguous option: \`$1'
15864 Try \`$0 --help' for more information.";;
15865 --help | --hel | -h )
15866 $as_echo "$ac_cs_usage"; exit ;;
15867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15868 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15869 ac_cs_silent=: ;;
15871 # This is an error.
15872 -*) as_fn_error $? "unrecognized option: \`$1'
15873 Try \`$0 --help' for more information." ;;
15875 *) as_fn_append ac_config_targets " $1"
15876 ac_need_defaults=false ;;
15878 esac
15879 shift
15880 done
15882 ac_configure_extra_args=
15884 if $ac_cs_silent; then
15885 exec 6>/dev/null
15886 ac_configure_extra_args="$ac_configure_extra_args --silent"
15889 _ACEOF
15890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15891 if \$ac_cs_recheck; then
15892 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15893 shift
15894 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15895 CONFIG_SHELL='$SHELL'
15896 export CONFIG_SHELL
15897 exec "\$@"
15900 _ACEOF
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 exec 5>>config.log
15904 echo
15905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15906 ## Running $as_me. ##
15907 _ASBOX
15908 $as_echo "$ac_log"
15909 } >&5
15911 _ACEOF
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15914 # INIT-COMMANDS
15917 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15918 aros_tools_dir=${aros_tools_dir}
15922 aros_host_exe_suffix=${aros_host_exe_suffix}
15923 aros_tools_dir=${aros_tools_dir}
15924 aros_target_cpu=${aros_target_cpu}
15925 aros_target_arch=${aros_target_arch}
15926 aros_target_suffix=${aros_target_suffix}
15927 orig_target_nm=${orig_target_nm}
15928 orig_target_as=${orig_target_as}
15929 orig_target_ar=${orig_target_ar}
15930 orig_target_ranlib=${orig_target_ranlib}
15931 orig_target_objdump=${orig_target_objdump}
15932 orig_target_objcopy=${orig_target_objcopy}
15933 orig_target_strip=${orig_target_strip}
15934 aros_kernel_ld=${aros_kernel_ld}
15938 aros_host_exe_suffix=${aros_host_exe_suffix}
15939 aros_tools_dir=${aros_tools_dir}
15940 aros_target_cpu=${aros_target_cpu}
15941 aros_target_arch=${aros_target_arch}
15942 aros_target_suffix=${aros_target_suffix}
15943 aros_kernel_ld=${aros_kernel_ld}
15947 aros_host_exe_suffix=${aros_host_exe_suffix}
15948 aros_tools_dir=${aros_tools_dir}
15949 aros_target_cpu=${aros_target_cpu}
15950 aros_target_arch=${aros_target_arch}
15951 aros_target_suffix=${aros_target_suffix}
15955 _ACEOF
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15959 # Handling of arguments.
15960 for ac_config_target in $ac_config_targets
15962 case $ac_config_target in
15963 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15964 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15965 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15966 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15967 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15968 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15969 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15970 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15971 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15972 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15973 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15974 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15975 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15976 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15977 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15978 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15979 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
15980 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15981 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15982 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
15983 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15984 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15985 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
15986 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
15987 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
15988 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
15989 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15991 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15992 esac
15993 done
15996 # If the user did not use the arguments to specify the items to instantiate,
15997 # then the envvar interface is used. Set only those that are not.
15998 # We use the long form for the default assignment because of an extremely
15999 # bizarre bug on SunOS 4.1.3.
16000 if $ac_need_defaults; then
16001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16006 # Have a temporary directory for convenience. Make it in the build tree
16007 # simply because there is no reason against having it here, and in addition,
16008 # creating and moving files from /tmp can sometimes cause problems.
16009 # Hook for its removal unless debugging.
16010 # Note that there is a small window in which the directory will not be cleaned:
16011 # after its creation but before its name has been assigned to `$tmp'.
16012 $debug ||
16014 tmp= ac_tmp=
16015 trap 'exit_status=$?
16016 : "${ac_tmp:=$tmp}"
16017 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16019 trap 'as_fn_exit 1' 1 2 13 15
16021 # Create a (secure) tmp directory for tmp files.
16024 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16025 test -d "$tmp"
16026 } ||
16028 tmp=./conf$$-$RANDOM
16029 (umask 077 && mkdir "$tmp")
16030 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16031 ac_tmp=$tmp
16033 # Set up the scripts for CONFIG_FILES section.
16034 # No need to generate them if there are no CONFIG_FILES.
16035 # This happens for instance with `./config.status config.h'.
16036 if test -n "$CONFIG_FILES"; then
16039 ac_cr=`echo X | tr X '\015'`
16040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16041 # But we know of no other shell where ac_cr would be empty at this
16042 # point, so we can use a bashism as a fallback.
16043 if test "x$ac_cr" = x; then
16044 eval ac_cr=\$\'\\r\'
16046 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16048 ac_cs_awk_cr='\\r'
16049 else
16050 ac_cs_awk_cr=$ac_cr
16053 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16054 _ACEOF
16058 echo "cat >conf$$subs.awk <<_ACEOF" &&
16059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16060 echo "_ACEOF"
16061 } >conf$$subs.sh ||
16062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16064 ac_delim='%!_!# '
16065 for ac_last_try in false false false false false :; do
16066 . ./conf$$subs.sh ||
16067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16070 if test $ac_delim_n = $ac_delim_num; then
16071 break
16072 elif $ac_last_try; then
16073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16074 else
16075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16077 done
16078 rm -f conf$$subs.sh
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16082 _ACEOF
16083 sed -n '
16085 s/^/S["/; s/!.*/"]=/
16088 s/^[^!]*!//
16089 :repl
16090 t repl
16091 s/'"$ac_delim"'$//
16092 t delim
16095 s/\(.\{148\}\)..*/\1/
16096 t more1
16097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16100 b repl
16101 :more1
16102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16105 s/.\{148\}//
16106 t nl
16107 :delim
16109 s/\(.\{148\}\)..*/\1/
16110 t more2
16111 s/["\\]/\\&/g; s/^/"/; s/$/"/
16114 :more2
16115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16118 s/.\{148\}//
16119 t delim
16120 ' <conf$$subs.awk | sed '
16121 /^[^""]/{
16123 s/\n//
16125 ' >>$CONFIG_STATUS || ac_write_fail=1
16126 rm -f conf$$subs.awk
16127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16128 _ACAWK
16129 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16130 for (key in S) S_is_set[key] = 1
16131 FS = "\a"
16135 line = $ 0
16136 nfields = split(line, field, "@")
16137 substed = 0
16138 len = length(field[1])
16139 for (i = 2; i < nfields; i++) {
16140 key = field[i]
16141 keylen = length(key)
16142 if (S_is_set[key]) {
16143 value = S[key]
16144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16145 len += length(value) + length(field[++i])
16146 substed = 1
16147 } else
16148 len += 1 + keylen
16151 print line
16154 _ACAWK
16155 _ACEOF
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16159 else
16161 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16162 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16163 _ACEOF
16165 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16166 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16167 # trailing colons and then remove the whole line if VPATH becomes empty
16168 # (actually we leave an empty line to preserve line numbers).
16169 if test "x$srcdir" = x.; then
16170 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16172 s///
16173 s/^/:/
16174 s/[ ]*$/:/
16175 s/:\$(srcdir):/:/g
16176 s/:\${srcdir}:/:/g
16177 s/:@srcdir@:/:/g
16178 s/^:*//
16179 s/:*$//
16181 s/\(=[ ]*\).*/\1/
16183 s/\n//
16184 s/^[^=]*=[ ]*$//
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 fi # test -n "$CONFIG_FILES"
16191 # Set up the scripts for CONFIG_HEADERS section.
16192 # No need to generate them if there are no CONFIG_HEADERS.
16193 # This happens for instance with `./config.status Makefile'.
16194 if test -n "$CONFIG_HEADERS"; then
16195 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16196 BEGIN {
16197 _ACEOF
16199 # Transform confdefs.h into an awk script `defines.awk', embedded as
16200 # here-document in config.status, that substitutes the proper values into
16201 # config.h.in to produce config.h.
16203 # Create a delimiter string that does not exist in confdefs.h, to ease
16204 # handling of long lines.
16205 ac_delim='%!_!# '
16206 for ac_last_try in false false :; do
16207 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16208 if test -z "$ac_tt"; then
16209 break
16210 elif $ac_last_try; then
16211 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16212 else
16213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16215 done
16217 # For the awk script, D is an array of macro values keyed by name,
16218 # likewise P contains macro parameters if any. Preserve backslash
16219 # newline sequences.
16221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16222 sed -n '
16223 s/.\{148\}/&'"$ac_delim"'/g
16224 t rset
16225 :rset
16226 s/^[ ]*#[ ]*define[ ][ ]*/ /
16227 t def
16229 :def
16230 s/\\$//
16231 t bsnl
16232 s/["\\]/\\&/g
16233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16234 D["\1"]=" \3"/p
16235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16237 :bsnl
16238 s/["\\]/\\&/g
16239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16240 D["\1"]=" \3\\\\\\n"\\/p
16241 t cont
16242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16243 t cont
16245 :cont
16247 s/.\{148\}/&'"$ac_delim"'/g
16248 t clear
16249 :clear
16250 s/\\$//
16251 t bsnlc
16252 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16254 :bsnlc
16255 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16256 b cont
16257 ' <confdefs.h | sed '
16258 s/'"$ac_delim"'/"\\\
16259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16262 for (key in D) D_is_set[key] = 1
16263 FS = "\a"
16265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16266 line = \$ 0
16267 split(line, arg, " ")
16268 if (arg[1] == "#") {
16269 defundef = arg[2]
16270 mac1 = arg[3]
16271 } else {
16272 defundef = substr(arg[1], 2)
16273 mac1 = arg[2]
16275 split(mac1, mac2, "(") #)
16276 macro = mac2[1]
16277 prefix = substr(line, 1, index(line, defundef) - 1)
16278 if (D_is_set[macro]) {
16279 # Preserve the white space surrounding the "#".
16280 print prefix "define", macro P[macro] D[macro]
16281 next
16282 } else {
16283 # Replace #undef with comments. This is necessary, for example,
16284 # in the case of _POSIX_SOURCE, which is predefined and required
16285 # on some systems where configure will not decide to define it.
16286 if (defundef == "undef") {
16287 print "/*", prefix defundef, macro, "*/"
16288 next
16292 { print }
16293 _ACAWK
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16297 fi # test -n "$CONFIG_HEADERS"
16300 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16301 shift
16302 for ac_tag
16304 case $ac_tag in
16305 :[FHLC]) ac_mode=$ac_tag; continue;;
16306 esac
16307 case $ac_mode$ac_tag in
16308 :[FHL]*:*);;
16309 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16310 :[FH]-) ac_tag=-:-;;
16311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16312 esac
16313 ac_save_IFS=$IFS
16314 IFS=:
16315 set x $ac_tag
16316 IFS=$ac_save_IFS
16317 shift
16318 ac_file=$1
16319 shift
16321 case $ac_mode in
16322 :L) ac_source=$1;;
16323 :[FH])
16324 ac_file_inputs=
16325 for ac_f
16327 case $ac_f in
16328 -) ac_f="$ac_tmp/stdin";;
16329 *) # Look for the file first in the build tree, then in the source tree
16330 # (if the path is not absolute). The absolute path cannot be DOS-style,
16331 # because $ac_f cannot contain `:'.
16332 test -f "$ac_f" ||
16333 case $ac_f in
16334 [\\/$]*) false;;
16335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16336 esac ||
16337 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16338 esac
16339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16340 as_fn_append ac_file_inputs " '$ac_f'"
16341 done
16343 # Let's still pretend it is `configure' which instantiates (i.e., don't
16344 # use $as_me), people would be surprised to read:
16345 # /* config.h. Generated by config.status. */
16346 configure_input='Generated from '`
16347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16348 `' by configure.'
16349 if test x"$ac_file" != x-; then
16350 configure_input="$ac_file. $configure_input"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16352 $as_echo "$as_me: creating $ac_file" >&6;}
16354 # Neutralize special characters interpreted by sed in replacement strings.
16355 case $configure_input in #(
16356 *\&* | *\|* | *\\* )
16357 ac_sed_conf_input=`$as_echo "$configure_input" |
16358 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16359 *) ac_sed_conf_input=$configure_input;;
16360 esac
16362 case $ac_tag in
16363 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16365 esac
16367 esac
16369 ac_dir=`$as_dirname -- "$ac_file" ||
16370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$ac_file" : 'X\(//\)[^/]' \| \
16372 X"$ac_file" : 'X\(//\)$' \| \
16373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16374 $as_echo X"$ac_file" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16376 s//\1/
16379 /^X\(\/\/\)[^/].*/{
16380 s//\1/
16383 /^X\(\/\/\)$/{
16384 s//\1/
16387 /^X\(\/\).*/{
16388 s//\1/
16391 s/.*/./; q'`
16392 as_dir="$ac_dir"; as_fn_mkdir_p
16393 ac_builddir=.
16395 case "$ac_dir" in
16396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16399 # A ".." for each directory in $ac_dir_suffix.
16400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16401 case $ac_top_builddir_sub in
16402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16404 esac ;;
16405 esac
16406 ac_abs_top_builddir=$ac_pwd
16407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16408 # for backward compatibility:
16409 ac_top_builddir=$ac_top_build_prefix
16411 case $srcdir in
16412 .) # We are building in place.
16413 ac_srcdir=.
16414 ac_top_srcdir=$ac_top_builddir_sub
16415 ac_abs_top_srcdir=$ac_pwd ;;
16416 [\\/]* | ?:[\\/]* ) # Absolute name.
16417 ac_srcdir=$srcdir$ac_dir_suffix;
16418 ac_top_srcdir=$srcdir
16419 ac_abs_top_srcdir=$srcdir ;;
16420 *) # Relative name.
16421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16422 ac_top_srcdir=$ac_top_build_prefix$srcdir
16423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16424 esac
16425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16428 case $ac_mode in
16431 # CONFIG_FILE
16434 _ACEOF
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 # If the template does not know about datarootdir, expand it.
16438 # FIXME: This hack should be removed a few years after 2.60.
16439 ac_datarootdir_hack=; ac_datarootdir_seen=
16440 ac_sed_dataroot='
16441 /datarootdir/ {
16445 /@datadir@/p
16446 /@docdir@/p
16447 /@infodir@/p
16448 /@localedir@/p
16449 /@mandir@/p'
16450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16451 *datarootdir*) ac_datarootdir_seen=yes;;
16452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16455 _ACEOF
16456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16457 ac_datarootdir_hack='
16458 s&@datadir@&$datadir&g
16459 s&@docdir@&$docdir&g
16460 s&@infodir@&$infodir&g
16461 s&@localedir@&$localedir&g
16462 s&@mandir@&$mandir&g
16463 s&\\\${datarootdir}&$datarootdir&g' ;;
16464 esac
16465 _ACEOF
16467 # Neutralize VPATH when `$srcdir' = `.'.
16468 # Shell code in configure.ac might set extrasub.
16469 # FIXME: do we really want to maintain this feature?
16470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 ac_sed_extra="$ac_vpsub
16472 $extrasub
16473 _ACEOF
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16477 s|@configure_input@|$ac_sed_conf_input|;t t
16478 s&@top_builddir@&$ac_top_builddir_sub&;t t
16479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16480 s&@srcdir@&$ac_srcdir&;t t
16481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16482 s&@top_srcdir@&$ac_top_srcdir&;t t
16483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16484 s&@builddir@&$ac_builddir&;t t
16485 s&@abs_builddir@&$ac_abs_builddir&;t t
16486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16487 $ac_datarootdir_hack
16489 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16495 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16497 which seems to be undefined. Please make sure it is defined" >&5
16498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16499 which seems to be undefined. Please make sure it is defined" >&2;}
16501 rm -f "$ac_tmp/stdin"
16502 case $ac_file in
16503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16505 esac \
16506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16510 # CONFIG_HEADER
16512 if test x"$ac_file" != x-; then
16514 $as_echo "/* $configure_input */" \
16515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16516 } >"$ac_tmp/config.h" \
16517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16521 else
16522 rm -f "$ac_file"
16523 mv "$ac_tmp/config.h" "$ac_file" \
16524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16526 else
16527 $as_echo "/* $configure_input */" \
16528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16529 || as_fn_error $? "could not create -" "$LINENO" 5
16533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16534 $as_echo "$as_me: executing $ac_file commands" >&6;}
16536 esac
16539 case $ac_file$ac_mode in
16540 "genmf-executable-support":C)
16541 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16542 chmod a+x ${aros_tools_dir}/genmf.py
16544 "binutils-support":C)
16545 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16546 mkdir -p $prefix
16547 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16549 chmod a+x ${prefix2}-ld
16551 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16552 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16553 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16554 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16555 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16556 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16557 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16559 "elf-compiler-support":C)
16560 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16561 mkdir -p $prefix
16562 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16564 chmod a+x ${prefix2}-gcc
16566 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16568 "host-compiler-wrapper-support":C)
16569 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16570 mkdir -p $prefix
16571 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16573 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16576 esac
16577 done # for ac_tag
16580 as_fn_exit 0
16581 _ACEOF
16582 ac_clean_files=$ac_clean_files_save
16584 test $ac_write_fail = 0 ||
16585 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16588 # configure is writing to config.log, and then calls config.status.
16589 # config.status does its own redirection, appending to config.log.
16590 # Unfortunately, on DOS this fails, as config.log is still kept open
16591 # by configure, so config.status won't be able to write to it; its
16592 # output is simply discarded. So we exec the FD to /dev/null,
16593 # effectively closing config.log, so it can be properly (re)opened and
16594 # appended to by config.status. When coming back to configure, we
16595 # need to make the FD available again.
16596 if test "$no_create" != yes; then
16597 ac_cs_success=:
16598 ac_config_status_args=
16599 test "$silent" = yes &&
16600 ac_config_status_args="$ac_config_status_args --quiet"
16601 exec 5>/dev/null
16602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16603 exec 5>>config.log
16604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16605 # would make configure fail if this is the last instruction.
16606 $ac_cs_success || as_fn_exit 1
16608 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16610 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16615 #XXX compatability...
16616 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16618 if test -n "$aros_shared_cflags" ; then
16619 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16620 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg