USB device can now be unbind
[AROS.git] / configure
blobcffe5831a1bae3f68d68e81ce4a631f6ff04264d
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_optimization_cflags
674 aros_config_coverage
675 aros_config_lto
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cxxflags
681 aros_debug_cflags
682 aros_debug_cppflags
683 aros_kernel_ldflags
684 aros_kernel_objcflags
685 aros_kernel_includes
686 aros_kernel_cflags
687 aros_kernel_cppflags
688 aros_kernel_sysroot
689 aros_config_ldflags
690 aros_config_aflags
691 aros_config_cxxflags
692 aros_config_cflags
693 aros_config_cppflags
694 aros_nowarn_flags
695 aros_warn_flags
696 aros_config_sysroot
697 aros_shared_ldflags
698 aros_shared_aflags
699 aros_shared_cflags
700 aros_arch_libs
701 aros_compiler_libs
702 spec_obj_format
703 aros_object_format
704 aros_shared_ld
705 aros_shared_default
706 aros_target_nm
707 aros_target_strip
708 aros_target_objcopy
709 aros_target_objdump
710 aros_target_cc_path
711 aros_target_cc_includes
712 aros_target_ld
713 aros_target_as
714 aros_target_cpp
715 aros_target_cxx
716 aros_target_cc
717 aros_plain_ar
718 aros_plain_nm
719 aros_target_ranlib
720 aros_target_ar
721 aros_target_suffix
722 aros_target_variant
723 aros_target_cpu_mode
724 aros_target_cpu
725 aros_target_family
726 aros_target_arch
727 aros_target_bootloader
728 aros_target_iconset
729 aros_target_guitheme
730 aros_tools_dir
731 aros_host_lib_suffix
732 aros_host_exe_suffix
733 aros_host_mkargs
734 aros_host_mkdep
735 aros_host_debug
736 aros_host_ldflags
737 gnu89_inline
738 aros_host_cxxflags
739 aros_host_cflags
740 aros_host_cppflags
741 aros_host_make
742 aros_host_cxx
743 aros_host_cc
744 aros_host_def_cc
745 aros_host_cpp
746 aros_host_cpu
747 aros_host_arch
748 aros_cc_pre
749 aros_amigaos_compliance
750 AROS_PORTSSRCDIR
751 AROS_CROSSTOOLSDIR
752 SRCDIR
753 AROS_BUILDDIR_UNIX
754 AROS_BUILDDIR
755 aros_build_host
756 aros_toolchain_ld
757 aros_target_toolchain
758 aros_flavour_uc
759 aros_flavour
760 aros_cpu
761 aros_arch
762 SDL_LIBS
763 SDL_CFLAGS
764 SDL_CONFIG
765 XMKMF
766 kernel_cflags_iquote_end
767 kernel_cflags_iquote
768 host_cflags_iquote_end
769 host_cflags_iquote
770 aros_toolchain
771 aros_target_nostdlib_ldflags
772 aros_target_detach_ldflags
773 aros_target_nix_ldflags
774 aros_target_nostartup_ldflags
775 aros_target_nostdinc_cflags
776 aros_kernel_rescomp
777 orig_target_objdump
778 orig_target_objcopy
779 orig_target_strip
780 orig_target_nm
781 orig_target_ranlib
782 orig_target_ar
783 orig_target_as
784 orig_target_ld
785 orig_target_cxx
786 orig_target_cc
787 orig_target_cpp
788 aros_kernel_objdump
789 aros_kernel_objcopy
790 aros_kernel_strip
791 aros_kernel_nm
792 aros_kernel_ranlib
793 aros_kernel_ar
794 aros_kernel_as
795 aros_kernel_ld
796 aros_kernel_cxx
797 aros_kernel_cc
798 aros_kernel_cpp
799 target_gcc_version
801 android_tool
802 CCACHE
803 DISTCC
804 LIBOBJS
805 EGREP
806 GREP
808 TEST
811 libpng_incdir
812 libpng_libextra
813 libpng
814 arosconfig_use_libpngconfig
815 pkgpyexecdir
816 pyexecdir
817 pkgpythondir
818 pythondir
819 PYTHON_PLATFORM
820 PYTHON_EXEC_PREFIX
821 PYTHON_PREFIX
822 PYTHON_VERSION
823 PYTHON
824 PATCH
825 CHMOD
827 PPMTOILBM
828 PNGTOPNM
829 FLEX
830 BISON
833 UNIQ
834 SORT
835 TOUCH
836 MKDIR
837 ECHO
841 aros_host_strip
842 aros_host_ranlib
843 aros_host_ar
844 aros_host_automake
845 aros_host_autoheader
846 aros_host_autoconf
847 aros_host_aclocal
848 aros_host_ld
849 MMAKE
852 ac_ct_CC
853 CFLAGS
855 OBJEXT
856 EXEEXT
857 ac_ct_CXX
858 CPPFLAGS
859 LDFLAGS
860 CXXFLAGS
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 target_alias
871 host_alias
872 build_alias
873 LIBS
874 ECHO_T
875 ECHO_N
876 ECHO_C
877 DEFS
878 mandir
879 localedir
880 libdir
881 psdir
882 pdfdir
883 dvidir
884 htmldir
885 infodir
886 docdir
887 oldincludedir
888 includedir
889 localstatedir
890 sharedstatedir
891 sysconfdir
892 datadir
893 datarootdir
894 libexecdir
895 sbindir
896 bindir
897 program_transform_name
898 prefix
899 exec_prefix
900 PACKAGE_URL
901 PACKAGE_BUGREPORT
902 PACKAGE_STRING
903 PACKAGE_VERSION
904 PACKAGE_TARNAME
905 PACKAGE_NAME
906 PATH_SEPARATOR
907 SHELL'
908 ac_subst_files=''
909 ac_user_opts='
910 enable_option_checking
911 with_c_compiler
912 with_cxx_compiler
913 enable_libpng_config
914 with_toolchain
915 enable_lto
916 enable_coverage
917 enable_build_type
918 enable_debug
919 enable_distcc
920 enable_ccache
921 with_kernel_gcc_version
922 with_optimization
923 with_paranoia
924 enable_target_variant
925 with_xcode
926 with_sdk_version
927 with_sdk
928 with_ndk
929 with_ndk_version
930 with_apk_version
931 enable_amigaos_compliance
932 with_kernel_toolchain_prefix
933 with_elf_toolchain_prefix
934 with_aros_toolchain
935 enable_crosstools
936 with_aros_toolchain_install
937 with_binutils_version
938 with_gcc_version
939 enable_objc
940 enable_java
941 with_cpu
942 with_fpu
943 with_float
944 with_portssources
945 with_bootloader
946 with_iconset
947 with_theme
948 enable_includes
949 with_resolution
950 with_serial_debug
951 enable_palm_debug_hack
952 enable_usb30_code
953 enable_nesting_supervisor
954 enable_mmu
955 enable_x11_hidd
956 with_x
957 enable_x11_shm
958 enable_x11_vidmode
959 enable_sdl_hidd
960 with_sdl_prefix
961 with_sdl_exec_prefix
962 enable_sdltest
963 enable_dbus
965 ac_precious_vars='build_alias
966 host_alias
967 target_alias
969 CXXFLAGS
970 LDFLAGS
971 LIBS
972 CPPFLAGS
975 CFLAGS
977 PYTHON
978 XMKMF'
981 # Initialize some variables set by options.
982 ac_init_help=
983 ac_init_version=false
984 ac_unrecognized_opts=
985 ac_unrecognized_sep=
986 # The variables have the same names as the options, with
987 # dashes changed to underlines.
988 cache_file=/dev/null
989 exec_prefix=NONE
990 no_create=
991 no_recursion=
992 prefix=NONE
993 program_prefix=NONE
994 program_suffix=NONE
995 program_transform_name=s,x,x,
996 silent=
997 site=
998 srcdir=
999 verbose=
1000 x_includes=NONE
1001 x_libraries=NONE
1003 # Installation directory options.
1004 # These are left unexpanded so users can "make install exec_prefix=/foo"
1005 # and all the variables that are supposed to be based on exec_prefix
1006 # by default will actually change.
1007 # Use braces instead of parens because sh, perl, etc. also accept them.
1008 # (The list follows the same order as the GNU Coding Standards.)
1009 bindir='${exec_prefix}/bin'
1010 sbindir='${exec_prefix}/sbin'
1011 libexecdir='${exec_prefix}/libexec'
1012 datarootdir='${prefix}/share'
1013 datadir='${datarootdir}'
1014 sysconfdir='${prefix}/etc'
1015 sharedstatedir='${prefix}/com'
1016 localstatedir='${prefix}/var'
1017 includedir='${prefix}/include'
1018 oldincludedir='/usr/include'
1019 docdir='${datarootdir}/doc/${PACKAGE}'
1020 infodir='${datarootdir}/info'
1021 htmldir='${docdir}'
1022 dvidir='${docdir}'
1023 pdfdir='${docdir}'
1024 psdir='${docdir}'
1025 libdir='${exec_prefix}/lib'
1026 localedir='${datarootdir}/locale'
1027 mandir='${datarootdir}/man'
1029 ac_prev=
1030 ac_dashdash=
1031 for ac_option
1033 # If the previous option needs an argument, assign it.
1034 if test -n "$ac_prev"; then
1035 eval $ac_prev=\$ac_option
1036 ac_prev=
1037 continue
1040 case $ac_option in
1041 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042 *=) ac_optarg= ;;
1043 *) ac_optarg=yes ;;
1044 esac
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1048 case $ac_dashdash$ac_option in
1050 ac_dashdash=yes ;;
1052 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053 ac_prev=bindir ;;
1054 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055 bindir=$ac_optarg ;;
1057 -build | --build | --buil | --bui | --bu)
1058 ac_prev=build_alias ;;
1059 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060 build_alias=$ac_optarg ;;
1062 -cache-file | --cache-file | --cache-fil | --cache-fi \
1063 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064 ac_prev=cache_file ;;
1065 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067 cache_file=$ac_optarg ;;
1069 --config-cache | -C)
1070 cache_file=config.cache ;;
1072 -datadir | --datadir | --datadi | --datad)
1073 ac_prev=datadir ;;
1074 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075 datadir=$ac_optarg ;;
1077 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078 | --dataroo | --dataro | --datar)
1079 ac_prev=datarootdir ;;
1080 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082 datarootdir=$ac_optarg ;;
1084 -disable-* | --disable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=no ;;
1100 -docdir | --docdir | --docdi | --doc | --do)
1101 ac_prev=docdir ;;
1102 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103 docdir=$ac_optarg ;;
1105 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106 ac_prev=dvidir ;;
1107 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108 dvidir=$ac_optarg ;;
1110 -enable-* | --enable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid feature name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval enable_$ac_useropt=\$ac_optarg ;;
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1137 with_gas=yes ;;
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 ac_prev=htmldir ;;
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 | --ht=*)
1155 htmldir=$ac_optarg ;;
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 ac_prev=infodir ;;
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1169 -libdir | --libdir | --libdi | --libd)
1170 ac_prev=libdir ;;
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 ac_prev=mandir ;;
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1200 with_fp=no ;;
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1204 no_create=yes ;;
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 no_recursion=yes ;;
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 ac_prev=prefix ;;
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
1246 -program-transform-name=* | --program-transform-name=* \
1247 | --program-transform-nam=* | --program-transform-na=* \
1248 | --program-transform-n=* | --program-transform-=* \
1249 | --program-transform=* | --program-transfor=* \
1250 | --program-transfo=* | --program-transf=* \
1251 | --program-trans=* | --program-tran=* \
1252 | --progr-tra=* | --program-tr=* | --program-t=*)
1253 program_transform_name=$ac_optarg ;;
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 ac_prev=pdfdir ;;
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1260 -psdir | --psdir | --psdi | --psd | --ps)
1261 ac_prev=psdir ;;
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 psdir=$ac_optarg ;;
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 silent=yes ;;
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 ac_prev=sbindir ;;
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 | --sbi=* | --sb=*)
1273 sbindir=$ac_optarg ;;
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1278 | --sha | --sh)
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 | --sha=* | --sh=*)
1284 sharedstatedir=$ac_optarg ;;
1286 -site | --site | --sit)
1287 ac_prev=site ;;
1288 -site=* | --site=* | --sit=*)
1289 site=$ac_optarg ;;
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 ac_prev=srcdir ;;
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 verbose=yes ;;
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1314 -with-* | --with-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error $? "invalid package name: $ac_useropt"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=\$ac_optarg ;;
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error $? "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1339 "with_$ac_useropt"
1340 "*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval with_$ac_useropt=no ;;
1346 --x)
1347 # Obsolete; use --with-x.
1348 with_x=yes ;;
1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351 | --x-incl | --x-inc | --x-in | --x-i)
1352 ac_prev=x_includes ;;
1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355 x_includes=$ac_optarg ;;
1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359 ac_prev=x_libraries ;;
1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362 x_libraries=$ac_optarg ;;
1364 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information"
1368 *=*)
1369 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' | [0-9]* | *[!_$as_cr_alnum]* )
1373 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1374 esac
1375 eval $ac_envvar=\$ac_optarg
1376 export $ac_envvar ;;
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1386 esac
1387 done
1389 if test -n "$ac_prev"; then
1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error $? "missing argument to $ac_option"
1394 if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1396 no) ;;
1397 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399 esac
1402 # Check all directory arguments for consistency.
1403 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1408 eval ac_val=\$$ac_var
1409 # Remove trailing slashes.
1410 case $ac_val in
1411 */ )
1412 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\$ac_val;;
1414 esac
1415 # Be sure to have absolute directory names.
1416 case $ac_val in
1417 [\\/$]* | ?:[\\/]* ) continue;;
1418 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419 esac
1420 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1421 done
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1426 build=$build_alias
1427 host=$host_alias
1428 target=$target_alias
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x; then
1432 if test "x$build_alias" = x; then
1433 cross_compiling=maybe
1434 elif test "x$build_alias" != "x$host_alias"; then
1435 cross_compiling=yes
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442 test "$silent" = yes && exec 6>/dev/null
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 as_fn_error $? "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450 as_fn_error $? "pwd does not report name of working directory"
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455 ac_srcdir_defaulted=yes
1456 # Try the directory containing this script, then the parent directory.
1457 ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459 X"$as_myself" : 'X\(//\)[^/]' \| \
1460 X"$as_myself" : 'X\(//\)$' \| \
1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464 s//\1/
1467 /^X\(\/\/\)[^/].*/{
1468 s//\1/
1471 /^X\(\/\/\)$/{
1472 s//\1/
1475 /^X\(\/\).*/{
1476 s//\1/
1479 s/.*/./; q'`
1480 srcdir=$ac_confdir
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 srcdir=..
1484 else
1485 ac_srcdir_defaulted=no
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1494 pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497 srcdir=.
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1518 cat <<_ACEOF
1519 \`configure' configures this package to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1528 Configuration:
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking ...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1543 [PREFIX]
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1572 _ACEOF
1574 cat <<\_ACEOF
1576 X features:
1577 --x-includes=DIR X include files are in DIR
1578 --x-libraries=DIR X library files are in DIR
1580 System types:
1581 --build=BUILD configure for building on BUILD [guessed]
1582 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1583 _ACEOF
1586 if test -n "$ac_init_help"; then
1588 cat <<\_ACEOF
1590 Optional Features:
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --disable-libpng-config disable libpng-config test and configuration
1595 --enable-lto=yes|no Enable link time optimizations if the target
1596 compiler supports them (default=no)
1597 --enable-coverage=yes|no
1598 Enable coverage instrumentation if the target
1599 compiler supports it (default=no)
1600 --enable-build-type=TYPE
1601 Select the build type. Available types are:
1602 personal, nightly, snapshot, milestone, release. Do
1603 NOT use this option unless you know what you are
1604 doing! (default=personal)
1605 --enable-debug=list Enable different types of debug. Commas or
1606 whitespaces can be used to separate the items in the
1607 list. Available types of debug are: all, none,
1608 messages, stack, mungwall, modules, symbols. If no
1609 list is provided then "all" is assumed.
1610 (default=none)
1611 --enable-distcc Use distcc as a front end to the compiler
1612 (default=no).
1613 --enable-ccache Use ccache as a front end to the compiler
1614 (default=no).
1615 --enable-target-variant=NAME
1616 Enable a specific target variant (default=none)
1617 --enable-amigaos-compliance=VERSION
1618 Enforce userspace AmigaOS compliance to a specific
1619 KickStart version (default=none).
1620 --disable-crosstools Do not build cross-compiler toolchain
1621 --enable-objc Enable Objectve-C support (default=no)
1622 --enable-java Enable Java support (default=no)
1623 --enable-includes=dir Alternative system include directory
1624 --enable-palm-debug-hack
1625 Enable palm debug output hack in palm native
1626 (default=no)
1627 --enable-usb30-code Enable usb3.0 code (default=no)
1628 --enable-nesting-supervisor
1629 Enable nesting supervisor support in unix
1630 (default=no)
1631 --disable-mmu Disable MMU support (default=enabled)
1632 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1633 --enable-x11-shm use X11 shared memory (default=auto)
1634 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1635 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1636 --disable-sdltest Do not try to compile and run a test SDL program
1637 --enable-dbus Enable DBUS support via dbus.library (default=no)
1639 Optional Packages:
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-c-compiler=VERSION
1643 Use specified c compiler for building AROS
1644 --with-cxx-compiler=VERSION
1645 Use specified c++ compiler building AROS
1646 --with-toolchain=family Which toolchain family to crosscompile with
1647 (defaults to gnu)
1648 --with-kernel-gcc-version=VERSION
1649 Use gcc-VERSION for building bootstrap
1650 --with-optimization=FLAGS
1651 Use optimization flags FLAGS (e.g
1652 --with-optimization=-O2).
1653 --with-paranoia=(yes|no|FLAGS)
1654 Specific compiler warning FLAGS to enable for
1655 paranoia builds (default=-Wall -Werror)
1656 --with-xcode=PATH Specify XCode path for iOS targets
1657 (default=/Developer).
1658 --with-sdk-version=VERSION
1659 Use iOS SDK version VERSION (default=4.1).
1660 --with-sdk=PATH Specify Android SDK path
1661 (default=$default_android_sdk).
1662 --with-ndk=PATH Specify Android NDK path (default=none).
1663 --with-sdk-version=LEVEL
1664 Use Android SDK for API LEVEL (default=12).
1665 --with-ndk-version=LEVEL
1666 Use Android NDK for API LEVEL (default=9).
1667 --with-apk-version=(release|debug)
1668 Which version of AROSBootstrap.apk to compile.
1669 Release version needs key for signing, debug version
1670 will only run in emulator. (default=release)
1671 --with-kernel-toolchain-prefix=...
1672 Specify crosscompile toolchain prefix for kernel
1673 objects
1674 --with-elf-toolchain-prefix=...
1675 Specify crosscompile toolchain prefix to wrap for
1676 AROS objects
1677 --with-aros-toolchain=PREFIX
1678 Specify prebuilt AROS toolchain. Use yes for default
1679 name
1680 --with-aros-toolchain-install=DIR
1681 Where to install or search for cross tools binaries
1682 --with-binutils-version=VERSION
1683 Use binutils-VERSION for building AROS
1684 --with-gcc-version=VERSION
1685 Compile gcc-VERSION for AROS
1686 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1687 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1688 --with-float=<spec> Specify floating point ABI
1689 (default=$gcc_default_float_abi).
1690 --with-portssources=DIR Where to download sourcecode for external ports
1691 --with-bootloader=NAME Use a specific bootloader
1692 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1693 --with-theme=NAME Use a specific GUI Theme
1694 --with-resolution=XRESxYRESxDEPTH
1695 Default resolution of the initial WorkbenchScreen
1696 --with-serial-debug Enable serial debug output in native (default=no)
1697 --with-x use the X Window System
1698 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1699 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1701 Some influential environment variables:
1702 CXX C++ compiler command
1703 CXXFLAGS C++ compiler flags
1704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1705 nonstandard directory <lib dir>
1706 LIBS libraries to pass to the linker, e.g. -l<library>
1707 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1708 you have headers in a nonstandard directory <include dir>
1709 CC C compiler command
1710 CFLAGS C compiler flags
1711 CPP C preprocessor
1712 PYTHON the Python interpreter
1713 XMKMF Path to xmkmf, Makefile generator for X Window System
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 configure
1782 generated by GNU Autoconf 2.69
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788 exit
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_cxx_try_compile LINENO
1796 # ----------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_cxx_try_compile
1833 # ac_fn_c_try_compile LINENO
1834 # --------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_compile
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_cpp ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1906 } # ac_fn_c_try_cpp
1908 # ac_fn_c_try_link LINENO
1909 # -----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_c_try_link ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext conftest$ac_exeext
1915 if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>conftest.err
1923 ac_status=$?
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_c_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest$ac_exeext && {
1934 test "$cross_compiling" = yes ||
1935 test -x conftest$ac_exeext
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=1
1944 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946 # interfere with the next link command; also delete a directory that is
1947 # left behind by Apple's compiler. We do this before executing the actions.
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1952 } # ac_fn_c_try_link
1954 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1955 # -------------------------------------------------------
1956 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1957 # the include files in INCLUDES and setting the cache variable VAR
1958 # accordingly.
1959 ac_fn_c_check_header_mongrel ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if eval \${$3+:} false; then :
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 else
1972 # Is the header compilable?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1974 $as_echo_n "checking $2 usability... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_header_compiler=yes
1982 else
1983 ac_header_compiler=no
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1987 $as_echo "$ac_header_compiler" >&6; }
1989 # Is the header present?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1991 $as_echo_n "checking $2 presence... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_c_try_cpp "$LINENO"; then :
1997 ac_header_preproc=yes
1998 else
1999 ac_header_preproc=no
2001 rm -f conftest.err conftest.i conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2003 $as_echo "$ac_header_preproc" >&6; }
2005 # So? What about this header?
2006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2007 yes:no: )
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2009 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 no:yes:* )
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2015 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2017 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2019 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2021 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 esac
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 eval "$3=\$ac_header_compiler"
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_header_mongrel
2041 # ac_fn_c_try_run LINENO
2042 # ----------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2044 # that executables *can* be run.
2045 ac_fn_c_try_run ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 if { { ac_try="$ac_link"
2049 case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>&5
2056 ac_status=$?
2057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2059 { { case "(($ac_try" in
2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061 *) ac_try_echo=$ac_try;;
2062 esac
2063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064 $as_echo "$ac_try_echo"; } >&5
2065 (eval "$ac_try") 2>&5
2066 ac_status=$?
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; }; }; then :
2069 ac_retval=0
2070 else
2071 $as_echo "$as_me: program exited with status $ac_status" >&5
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_retval=$ac_status
2077 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_c_try_run
2083 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2084 # -------------------------------------------------------
2085 # Tests whether HEADER exists and can be compiled using the include files in
2086 # INCLUDES, setting the cache variable VAR accordingly.
2087 ac_fn_c_check_header_compile ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2098 #include <$2>
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102 else
2103 eval "$3=no"
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 } # ac_fn_c_check_header_compile
2114 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2115 # ----------------------------------------------------
2116 # Tries to find if the field MEMBER exists in type AGGR, after including
2117 # INCLUDES, setting cache variable VAR accordingly.
2118 ac_fn_c_check_member ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2122 $as_echo_n "checking for $2.$3... " >&6; }
2123 if eval \${$4+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 main ()
2132 static $2 ac_aggr;
2133 if (ac_aggr.$3)
2134 return 0;
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 eval "$4=yes"
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 static $2 ac_aggr;
2149 if (sizeof ac_aggr.$3)
2150 return 0;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 eval "$4=yes"
2157 else
2158 eval "$4=no"
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 eval ac_res=\$$4
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_member
2171 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2172 # ---------------------------------------------
2173 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_decl ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2189 main ()
2191 #ifndef $as_decl_name
2192 #ifdef __cplusplus
2193 (void) $as_decl_use;
2194 #else
2195 (void) $as_decl_name;
2196 #endif
2197 #endif
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$3=yes"
2205 else
2206 eval "$3=no"
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 } # ac_fn_c_check_decl
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227 $as_echo_n "(cached) " >&6
2228 else
2229 eval "$3=no"
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2234 main ()
2236 if (sizeof ($2))
2237 return 0;
2239 return 0;
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2247 main ()
2249 if (sizeof (($2)))
2250 return 0;
2252 return 0;
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2257 else
2258 eval "$3=yes"
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 } # ac_fn_c_check_type
2271 # ac_fn_c_check_func LINENO FUNC VAR
2272 # ----------------------------------
2273 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2274 ac_fn_c_check_func ()
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if eval \${$3+:} false; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2286 #define $2 innocuous_$2
2288 /* System header to define __stub macros and hopefully few prototypes,
2289 which can conflict with char $2 (); below.
2290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2291 <limits.h> exists even on freestanding compilers. */
2293 #ifdef __STDC__
2294 # include <limits.h>
2295 #else
2296 # include <assert.h>
2297 #endif
2299 #undef $2
2301 /* Override any GCC internal prototype to avoid an error.
2302 Use char because int might match the return type of a GCC
2303 builtin and then its argument prototype would still apply. */
2304 #ifdef __cplusplus
2305 extern "C"
2306 #endif
2307 char $2 ();
2308 /* The GNU C library defines this for functions which it implements
2309 to always fail with ENOSYS. Some functions are actually named
2310 something starting with __ and the normal name is an alias. */
2311 #if defined __stub_$2 || defined __stub___$2
2312 choke me
2313 #endif
2316 main ()
2318 return $2 ();
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_link "$LINENO"; then :
2324 eval "$3=yes"
2325 else
2326 eval "$3=no"
2328 rm -f core conftest.err conftest.$ac_objext \
2329 conftest$ac_exeext conftest.$ac_ext
2331 eval ac_res=\$$3
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 } # ac_fn_c_check_func
2337 cat >config.log <<_ACEOF
2338 This file contains any messages produced by compilers while
2339 running configure, to aid debugging if configure makes a mistake.
2341 It was created by $as_me, which was
2342 generated by GNU Autoconf 2.69. Invocation command line was
2344 $ $0 $@
2346 _ACEOF
2347 exec 5>>config.log
2349 cat <<_ASUNAME
2350 ## --------- ##
2351 ## Platform. ##
2352 ## --------- ##
2354 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2355 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2356 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2357 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2358 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2360 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2361 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2363 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2364 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2365 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2366 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2367 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2368 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2369 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2371 _ASUNAME
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 $as_echo "PATH: $as_dir"
2379 done
2380 IFS=$as_save_IFS
2382 } >&5
2384 cat >&5 <<_ACEOF
2387 ## ----------- ##
2388 ## Core tests. ##
2389 ## ----------- ##
2391 _ACEOF
2394 # Keep a trace of the command line.
2395 # Strip out --no-create and --no-recursion so they do not pile up.
2396 # Strip out --silent because we don't want to record it for future runs.
2397 # Also quote any args containing shell meta-characters.
2398 # Make two passes to allow for proper duplicate-argument suppression.
2399 ac_configure_args=
2400 ac_configure_args0=
2401 ac_configure_args1=
2402 ac_must_keep_next=false
2403 for ac_pass in 1 2
2405 for ac_arg
2407 case $ac_arg in
2408 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2410 | -silent | --silent | --silen | --sile | --sil)
2411 continue ;;
2412 *\'*)
2413 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2414 esac
2415 case $ac_pass in
2416 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2418 as_fn_append ac_configure_args1 " '$ac_arg'"
2419 if test $ac_must_keep_next = true; then
2420 ac_must_keep_next=false # Got value, back to normal.
2421 else
2422 case $ac_arg in
2423 *=* | --config-cache | -C | -disable-* | --disable-* \
2424 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2425 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2426 | -with-* | --with-* | -without-* | --without-* | --x)
2427 case "$ac_configure_args0 " in
2428 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2429 esac
2431 -* ) ac_must_keep_next=true ;;
2432 esac
2434 as_fn_append ac_configure_args " '$ac_arg'"
2436 esac
2437 done
2438 done
2439 { ac_configure_args0=; unset ac_configure_args0;}
2440 { ac_configure_args1=; unset ac_configure_args1;}
2442 # When interrupted or exit'd, cleanup temporary files, and complete
2443 # config.log. We remove comments because anyway the quotes in there
2444 # would cause problems or look ugly.
2445 # WARNING: Use '\'' to represent an apostrophe within the trap.
2446 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2447 trap 'exit_status=$?
2448 # Save into config.log some information that might help in debugging.
2450 echo
2452 $as_echo "## ---------------- ##
2453 ## Cache variables. ##
2454 ## ---------------- ##"
2455 echo
2456 # The following way of writing the cache mishandles newlines in values,
2458 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in #(
2461 *${as_nl}*)
2462 case $ac_var in #(
2463 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2464 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2465 esac
2466 case $ac_var in #(
2467 _ | IFS | as_nl) ;; #(
2468 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2469 *) { eval $ac_var=; unset $ac_var;} ;;
2470 esac ;;
2471 esac
2472 done
2473 (set) 2>&1 |
2474 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2475 *${as_nl}ac_space=\ *)
2476 sed -n \
2477 "s/'\''/'\''\\\\'\'''\''/g;
2478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2479 ;; #(
2481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2483 esac |
2484 sort
2486 echo
2488 $as_echo "## ----------------- ##
2489 ## Output variables. ##
2490 ## ----------------- ##"
2491 echo
2492 for ac_var in $ac_subst_vars
2494 eval ac_val=\$$ac_var
2495 case $ac_val in
2496 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2497 esac
2498 $as_echo "$ac_var='\''$ac_val'\''"
2499 done | sort
2500 echo
2502 if test -n "$ac_subst_files"; then
2503 $as_echo "## ------------------- ##
2504 ## File substitutions. ##
2505 ## ------------------- ##"
2506 echo
2507 for ac_var in $ac_subst_files
2509 eval ac_val=\$$ac_var
2510 case $ac_val in
2511 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512 esac
2513 $as_echo "$ac_var='\''$ac_val'\''"
2514 done | sort
2515 echo
2518 if test -s confdefs.h; then
2519 $as_echo "## ----------- ##
2520 ## confdefs.h. ##
2521 ## ----------- ##"
2522 echo
2523 cat confdefs.h
2524 echo
2526 test "$ac_signal" != 0 &&
2527 $as_echo "$as_me: caught signal $ac_signal"
2528 $as_echo "$as_me: exit $exit_status"
2529 } >&5
2530 rm -f core *.core core.conftest.* &&
2531 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2532 exit $exit_status
2534 for ac_signal in 1 2 13 15; do
2535 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2536 done
2537 ac_signal=0
2539 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2540 rm -f -r conftest* confdefs.h
2542 $as_echo "/* confdefs.h */" > confdefs.h
2544 # Predefined preprocessor variables.
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_NAME "$PACKAGE_NAME"
2548 _ACEOF
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552 _ACEOF
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2556 _ACEOF
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_STRING "$PACKAGE_STRING"
2560 _ACEOF
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564 _ACEOF
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_URL "$PACKAGE_URL"
2568 _ACEOF
2571 # Let the site file select an alternate cache file if it wants to.
2572 # Prefer an explicitly selected file to automatically selected ones.
2573 ac_site_file1=NONE
2574 ac_site_file2=NONE
2575 if test -n "$CONFIG_SITE"; then
2576 # We do not want a PATH search for config.site.
2577 case $CONFIG_SITE in #((
2578 -*) ac_site_file1=./$CONFIG_SITE;;
2579 */*) ac_site_file1=$CONFIG_SITE;;
2580 *) ac_site_file1=./$CONFIG_SITE;;
2581 esac
2582 elif test "x$prefix" != xNONE; then
2583 ac_site_file1=$prefix/share/config.site
2584 ac_site_file2=$prefix/etc/config.site
2585 else
2586 ac_site_file1=$ac_default_prefix/share/config.site
2587 ac_site_file2=$ac_default_prefix/etc/config.site
2589 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2591 test "x$ac_site_file" = xNONE && continue
2592 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2594 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2595 sed 's/^/| /' "$ac_site_file" >&5
2596 . "$ac_site_file" \
2597 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 as_fn_error $? "failed to load site script $ac_site_file
2600 See \`config.log' for more details" "$LINENO" 5; }
2602 done
2604 if test -r "$cache_file"; then
2605 # Some versions of bash will fail to source /dev/null (special files
2606 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2607 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2609 $as_echo "$as_me: loading cache $cache_file" >&6;}
2610 case $cache_file in
2611 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2612 *) . "./$cache_file";;
2613 esac
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2617 $as_echo "$as_me: creating cache $cache_file" >&6;}
2618 >$cache_file
2621 as_fn_append ac_header_list " stdlib.h"
2622 as_fn_append ac_header_list " unistd.h"
2623 as_fn_append ac_header_list " sys/param.h"
2624 # Check that the precious variables saved in the cache have kept the same
2625 # value.
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2633 set,)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,set)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2641 ,);;
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 fi;;
2661 esac
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2664 case $ac_new_val in
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2667 esac
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 esac
2673 done
2674 if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 ac_aux_dir=
2694 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2695 if test -f "$ac_dir/install-sh"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/install-sh -c"
2698 break
2699 elif test -f "$ac_dir/install.sh"; then
2700 ac_aux_dir=$ac_dir
2701 ac_install_sh="$ac_aux_dir/install.sh -c"
2702 break
2703 elif test -f "$ac_dir/shtool"; then
2704 ac_aux_dir=$ac_dir
2705 ac_install_sh="$ac_aux_dir/shtool install -c"
2706 break
2708 done
2709 if test -z "$ac_aux_dir"; then
2710 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2713 # These three variables are undocumented and unsupported,
2714 # and are intended to be withdrawn in a future Autoconf release.
2715 # They can cause serious problems if a builder's source tree is in a directory
2716 # whose full name contains unusual characters.
2717 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2718 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2719 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2723 # Check what host we are running on.
2724 # If a target is not suggested, we use this one.
2725 # Note that what we call a target, Autoconf calls a host.
2726 # Make sure we can run config.sub.
2727 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2728 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2731 $as_echo_n "checking build system type... " >&6; }
2732 if ${ac_cv_build+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 ac_build_alias=$build_alias
2736 test "x$ac_build_alias" = x &&
2737 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2738 test "x$ac_build_alias" = x &&
2739 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2745 $as_echo "$ac_cv_build" >&6; }
2746 case $ac_cv_build in
2747 *-*-*) ;;
2748 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2749 esac
2750 build=$ac_cv_build
2751 ac_save_IFS=$IFS; IFS='-'
2752 set x $ac_cv_build
2753 shift
2754 build_cpu=$1
2755 build_vendor=$2
2756 shift; shift
2757 # Remember, the first character of IFS is used to create $*,
2758 # except with old shells:
2759 build_os=$*
2760 IFS=$ac_save_IFS
2761 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2765 $as_echo_n "checking host system type... " >&6; }
2766 if ${ac_cv_host+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test "x$host_alias" = x; then
2770 ac_cv_host=$ac_cv_build
2771 else
2772 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2778 $as_echo "$ac_cv_host" >&6; }
2779 case $ac_cv_host in
2780 *-*-*) ;;
2781 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2782 esac
2783 host=$ac_cv_host
2784 ac_save_IFS=$IFS; IFS='-'
2785 set x $ac_cv_host
2786 shift
2787 host_cpu=$1
2788 host_vendor=$2
2789 shift; shift
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2792 host_os=$*
2793 IFS=$ac_save_IFS
2794 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2798 # Default versions for the gnu tools we build
2799 default_gcc_version="4.6.4"
2800 default_binutils_version="2.23.2"
2801 default_grub2_version="2.02"
2802 target_grub2_version=$default_grub2_version
2804 # The AROS target is slightly different to the normal GNU style
2805 # format. We don't have the middle part, and we reverse the order
2806 # of the $(CPU) and $(OS) bits.
2808 # Don't strip the version of the target yet, it might be
2809 # useful on some systems.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2812 $as_echo_n "checking for AROS style target... " >&6; }
2814 if test "$target" = "NONE" ; then
2815 target=$host_os-$host_cpu
2816 else
2817 if test "$target" = "" ; then
2818 target=$host_os-$host_cpu
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2822 $as_echo "$target" >&6; }
2824 if test "$host_os" = "mingw32" ; then
2825 PWDCMD="pwd -W"
2828 # Don't know where else to put this...
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2830 $as_echo_n "checking building AROS in... " >&6; }
2831 AROS_BUILDDIR=`${PWDCMD-pwd}`
2832 AROS_BUILDDIR_UNIX=${PWD}
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2834 $as_echo "$AROS_BUILDDIR" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2837 $as_echo_n "checking AROS source in... " >&6; }
2838 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2839 SRCDIR=${srcpwd}
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2841 $as_echo "$SRCDIR" >&6; }
2843 # Parse the target field into something useful.
2845 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2846 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2849 # Some debug output, to be removed again.
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2851 $as_echo_n "checking for target system (debug output)... " >&6; }
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2853 $as_echo "$target_os" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2855 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2857 $as_echo "$target_cpu" >&6; }
2859 aros_nominal_width=800
2860 aros_nominal_height=600
2861 aros_nominal_depth=4
2864 default_c_compilers="gcc clang cc"
2866 # Check whether --with-c-compiler was given.
2867 if test "${with_c_compiler+set}" = set; then :
2868 withval=$with_c_compiler; use_c_compiler="$withval"
2869 else
2870 use_c_compiler=""
2873 if test "$use_c_compiler" = ""; then
2874 host_c_compilers="$default_c_compilers"
2875 else
2876 host_c_compilers="$use_c_compiler"
2879 default_cxx_compilers="g++ clang++ c++"
2881 # Check whether --with-cxx-compiler was given.
2882 if test "${with_cxx_compiler+set}" = set; then :
2883 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2884 else
2885 use_cxx_compiler=""
2888 if test "$use_cxx_compiler" = ""; then
2889 host_cxx_compilers="$default_cxx_compilers"
2890 else
2891 host_cxx_compilers="$use_cxx_compiler"
2895 # The first step is to find the host binaries.
2896 # Check for a compiler.
2897 # Due to a bug in autoconf check for c++ compiler first.
2898 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2899 ac_ext=cpp
2900 ac_cpp='$CXXCPP $CPPFLAGS'
2901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2904 if test -z "$CXX"; then
2905 if test -n "$CCC"; then
2906 CXX=$CCC
2907 else
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in ${host_cxx_compilers}
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CXX+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CXX"; then
2919 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2934 IFS=$as_save_IFS
2938 CXX=$ac_cv_prog_CXX
2939 if test -n "$CXX"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2941 $as_echo "$CXX" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2948 test -n "$CXX" && break
2949 done
2951 if test -z "$CXX"; then
2952 ac_ct_CXX=$CXX
2953 for ac_prog in ${host_cxx_compilers}
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$ac_ct_CXX"; then
2963 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_ac_ct_CXX="$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2983 if test -n "$ac_ct_CXX"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2985 $as_echo "$ac_ct_CXX" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2992 test -n "$ac_ct_CXX" && break
2993 done
2995 if test "x$ac_ct_CXX" = x; then
2996 CXX="g++"
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CXX=$ac_ct_CXX
3010 # Provide some information about the compiler.
3011 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3012 set X $ac_compile
3013 ac_compiler=$2
3014 for ac_option in --version -v -V -qversion; do
3015 { { ac_try="$ac_compiler $ac_option >&5"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3023 ac_status=$?
3024 if test -s conftest.err; then
3025 sed '10a\
3026 ... rest of stderr output deleted ...
3027 10q' conftest.err >conftest.er1
3028 cat conftest.er1 >&5
3030 rm -f conftest.er1 conftest.err
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }
3033 done
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3039 main ()
3043 return 0;
3045 _ACEOF
3046 ac_clean_files_save=$ac_clean_files
3047 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3048 # Try to create an executable without -o first, disregard a.out.
3049 # It will help us diagnose broken compilers, and finding out an intuition
3050 # of exeext.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3052 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3053 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3055 # The possible output files:
3056 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3058 ac_rmfiles=
3059 for ac_file in $ac_files
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064 esac
3065 done
3066 rm -f $ac_rmfiles
3068 if { { ac_try="$ac_link_default"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link_default") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3080 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3081 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3082 # so that the user can short-circuit this test for compilers unknown to
3083 # Autoconf.
3084 for ac_file in $ac_files ''
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3090 [ab].out )
3091 # We found the default executable, but exeext='' is most
3092 # certainly right.
3093 break;;
3094 *.* )
3095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3096 then :; else
3097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # We set ac_cv_exeext here because the later test for it is not
3100 # safe: cross compilers may not add the suffix if given an `-o'
3101 # argument, so we may need to know it at that point already.
3102 # Even if this section looks crufty: it has the advantage of
3103 # actually working.
3104 break;;
3106 break;;
3107 esac
3108 done
3109 test "$ac_cv_exeext" = no && ac_cv_exeext=
3111 else
3112 ac_file=''
3114 if test -z "$ac_file"; then :
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error 77 "C++ compiler cannot create executables
3123 See \`config.log' for more details" "$LINENO" 5; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 $as_echo "yes" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3129 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131 $as_echo "$ac_file" >&6; }
3132 ac_exeext=$ac_cv_exeext
3134 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3137 $as_echo_n "checking for suffix of executables... " >&6; }
3138 if { { ac_try="$ac_link"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3151 # work properly (i.e., refer to `conftest.exe'), while it won't with
3152 # `rm'.
3153 for ac_file in conftest.exe conftest conftest.*; do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 break;;
3159 * ) break;;
3160 esac
3161 done
3162 else
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 rm -f conftest conftest$ac_cv_exeext
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3170 $as_echo "$ac_cv_exeext" >&6; }
3172 rm -f conftest.$ac_ext
3173 EXEEXT=$ac_cv_exeext
3174 ac_exeext=$EXEEXT
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3177 #include <stdio.h>
3179 main ()
3181 FILE *f = fopen ("conftest.out", "w");
3182 return ferror (f) || fclose (f) != 0;
3185 return 0;
3187 _ACEOF
3188 ac_clean_files="$ac_clean_files conftest.out"
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192 $as_echo_n "checking whether we are cross compiling... " >&6; }
3193 if test "$cross_compiling" != yes; then
3194 { { ac_try="$ac_link"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 if { ac_try='./conftest$ac_cv_exeext'
3206 { { case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_try") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; }; then
3216 cross_compiling=no
3217 else
3218 if test "$cross_compiling" = maybe; then
3219 cross_compiling=yes
3220 else
3221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "cannot run C++ compiled programs.
3224 If you meant to cross compile, use \`--host'.
3225 See \`config.log' for more details" "$LINENO" 5; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230 $as_echo "$cross_compiling" >&6; }
3232 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3233 ac_clean_files=$ac_clean_files_save
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3235 $as_echo_n "checking for suffix of object files... " >&6; }
3236 if ${ac_cv_objext+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3243 main ()
3247 return 0;
3249 _ACEOF
3250 rm -f conftest.o conftest.obj
3251 if { { ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compile") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then :
3262 for ac_file in conftest.o conftest.obj conftest.*; do
3263 test -f "$ac_file" || continue;
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3267 break;;
3268 esac
3269 done
3270 else
3271 $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot compute suffix of object files: cannot compile
3277 See \`config.log' for more details" "$LINENO" 5; }
3279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3282 $as_echo "$ac_cv_objext" >&6; }
3283 OBJEXT=$ac_cv_objext
3284 ac_objext=$OBJEXT
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3286 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3287 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3294 main ()
3296 #ifndef __GNUC__
3297 choke me
3298 #endif
3301 return 0;
3303 _ACEOF
3304 if ac_fn_cxx_try_compile "$LINENO"; then :
3305 ac_compiler_gnu=yes
3306 else
3307 ac_compiler_gnu=no
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3314 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3315 if test $ac_compiler_gnu = yes; then
3316 GXX=yes
3317 else
3318 GXX=
3320 ac_test_CXXFLAGS=${CXXFLAGS+set}
3321 ac_save_CXXFLAGS=$CXXFLAGS
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3323 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3324 if ${ac_cv_prog_cxx_g+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3328 ac_cxx_werror_flag=yes
3329 ac_cv_prog_cxx_g=no
3330 CXXFLAGS="-g"
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3335 main ()
3339 return 0;
3341 _ACEOF
3342 if ac_fn_cxx_try_compile "$LINENO"; then :
3343 ac_cv_prog_cxx_g=yes
3344 else
3345 CXXFLAGS=""
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3350 main ()
3354 return 0;
3356 _ACEOF
3357 if ac_fn_cxx_try_compile "$LINENO"; then :
3359 else
3360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3361 CXXFLAGS="-g"
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3366 main ()
3370 return 0;
3372 _ACEOF
3373 if ac_fn_cxx_try_compile "$LINENO"; then :
3374 ac_cv_prog_cxx_g=yes
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3384 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3385 if test "$ac_test_CXXFLAGS" = set; then
3386 CXXFLAGS=$ac_save_CXXFLAGS
3387 elif test $ac_cv_prog_cxx_g = yes; then
3388 if test "$GXX" = yes; then
3389 CXXFLAGS="-g -O2"
3390 else
3391 CXXFLAGS="-g"
3393 else
3394 if test "$GXX" = yes; then
3395 CXXFLAGS="-O2"
3396 else
3397 CXXFLAGS=
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 if test -n "$ac_tool_prefix"; then
3412 for ac_prog in ${host_c_compilers}
3414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_CC+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3451 test -n "$CC" && break
3452 done
3454 if test -z "$CC"; then
3455 ac_ct_CC=$CC
3456 for ac_prog in ${host_c_compilers}
3458 # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -n "$ac_ct_CC"; then
3466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_ac_ct_CC="$ac_prog"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3481 IFS=$as_save_IFS
3485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486 if test -n "$ac_ct_CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3488 $as_echo "$ac_ct_CC" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3495 test -n "$ac_ct_CC" && break
3496 done
3498 if test "x$ac_ct_CC" = x; then
3499 CC=""
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3506 esac
3507 CC=$ac_ct_CC
3512 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "no acceptable C compiler found in \$PATH
3515 See \`config.log' for more details" "$LINENO" 5; }
3517 # Provide some information about the compiler.
3518 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3519 set X $ac_compile
3520 ac_compiler=$2
3521 for ac_option in --version -v -V -qversion; do
3522 { { ac_try="$ac_compiler $ac_option >&5"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3530 ac_status=$?
3531 if test -s conftest.err; then
3532 sed '10a\
3533 ... rest of stderr output deleted ...
3534 10q' conftest.err >conftest.er1
3535 cat conftest.er1 >&5
3537 rm -f conftest.er1 conftest.err
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }
3540 done
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3543 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3544 if ${ac_cv_c_compiler_gnu+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3551 main ()
3553 #ifndef __GNUC__
3554 choke me
3555 #endif
3558 return 0;
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_compiler_gnu=yes
3563 else
3564 ac_compiler_gnu=no
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3571 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3572 if test $ac_compiler_gnu = yes; then
3573 GCC=yes
3574 else
3575 GCC=
3577 ac_test_CFLAGS=${CFLAGS+set}
3578 ac_save_CFLAGS=$CFLAGS
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3580 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3581 if ${ac_cv_prog_cc_g+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 ac_save_c_werror_flag=$ac_c_werror_flag
3585 ac_c_werror_flag=yes
3586 ac_cv_prog_cc_g=no
3587 CFLAGS="-g"
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3592 main ()
3596 return 0;
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_g=yes
3601 else
3602 CFLAGS=""
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3607 main ()
3611 return 0;
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3616 else
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618 CFLAGS="-g"
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3623 main ()
3627 return 0;
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_g=yes
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_c_werror_flag=$ac_save_c_werror_flag
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3641 $as_echo "$ac_cv_prog_cc_g" >&6; }
3642 if test "$ac_test_CFLAGS" = set; then
3643 CFLAGS=$ac_save_CFLAGS
3644 elif test $ac_cv_prog_cc_g = yes; then
3645 if test "$GCC" = yes; then
3646 CFLAGS="-g -O2"
3647 else
3648 CFLAGS="-g"
3650 else
3651 if test "$GCC" = yes; then
3652 CFLAGS="-O2"
3653 else
3654 CFLAGS=
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3658 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659 if ${ac_cv_prog_cc_c89+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 ac_cv_prog_cc_c89=no
3663 ac_save_CC=$CC
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #include <stdarg.h>
3667 #include <stdio.h>
3668 struct stat;
3669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3670 struct buf { int x; };
3671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3672 static char *e (p, i)
3673 char **p;
3674 int i;
3676 return p[i];
3678 static char *f (char * (*g) (char **, int), char **p, ...)
3680 char *s;
3681 va_list v;
3682 va_start (v,p);
3683 s = g (p, va_arg (v,int));
3684 va_end (v);
3685 return s;
3688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3689 function prototypes and stuff, but not '\xHH' hex character constants.
3690 These don't provoke an error unfortunately, instead are silently treated
3691 as 'x'. The following induces an error, until -std is added to get
3692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3693 array size at least. It's necessary to write '\x00'==0 to get something
3694 that's true only with -std. */
3695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3698 inside strings and character constants. */
3699 #define FOO(x) 'x'
3700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702 int test (int i, double x);
3703 struct s1 {int (*f) (int a);};
3704 struct s2 {int (*f) (double a);};
3705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3706 int argc;
3707 char **argv;
3709 main ()
3711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3713 return 0;
3715 _ACEOF
3716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_c89=$ac_arg
3723 rm -f core conftest.err conftest.$ac_objext
3724 test "x$ac_cv_prog_cc_c89" != "xno" && break
3725 done
3726 rm -f conftest.$ac_ext
3727 CC=$ac_save_CC
3730 # AC_CACHE_VAL
3731 case "x$ac_cv_prog_cc_c89" in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 $as_echo "none needed" >&6; } ;;
3735 xno)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;;
3739 CC="$CC $ac_cv_prog_cc_c89"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3741 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3742 esac
3743 if test "x$ac_cv_prog_cc_c89" != xno; then :
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 aros_host_def_cc="$CC"
3754 case $ac_cv_prog_cc_stdc in #(
3755 no) :
3756 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3757 *) :
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3760 if ${ac_cv_prog_cc_c99+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_cv_prog_cc_c99=no
3764 ac_save_CC=$CC
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <stdarg.h>
3768 #include <stdbool.h>
3769 #include <stdlib.h>
3770 #include <wchar.h>
3771 #include <stdio.h>
3773 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3774 #define debug(...) fprintf (stderr, __VA_ARGS__)
3775 #define showlist(...) puts (#__VA_ARGS__)
3776 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3777 static void
3778 test_varargs_macros (void)
3780 int x = 1234;
3781 int y = 5678;
3782 debug ("Flag");
3783 debug ("X = %d\n", x);
3784 showlist (The first, second, and third items.);
3785 report (x>y, "x is %d but y is %d", x, y);
3788 // Check long long types.
3789 #define BIG64 18446744073709551615ull
3790 #define BIG32 4294967295ul
3791 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3792 #if !BIG_OK
3793 your preprocessor is broken;
3794 #endif
3795 #if BIG_OK
3796 #else
3797 your preprocessor is broken;
3798 #endif
3799 static long long int bignum = -9223372036854775807LL;
3800 static unsigned long long int ubignum = BIG64;
3802 struct incomplete_array
3804 int datasize;
3805 double data[];
3808 struct named_init {
3809 int number;
3810 const wchar_t *name;
3811 double average;
3814 typedef const char *ccp;
3816 static inline int
3817 test_restrict (ccp restrict text)
3819 // See if C++-style comments work.
3820 // Iterate through items via the restricted pointer.
3821 // Also check for declarations in for loops.
3822 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3823 continue;
3824 return 0;
3827 // Check varargs and va_copy.
3828 static void
3829 test_varargs (const char *format, ...)
3831 va_list args;
3832 va_start (args, format);
3833 va_list args_copy;
3834 va_copy (args_copy, args);
3836 const char *str;
3837 int number;
3838 float fnumber;
3840 while (*format)
3842 switch (*format++)
3844 case 's': // string
3845 str = va_arg (args_copy, const char *);
3846 break;
3847 case 'd': // int
3848 number = va_arg (args_copy, int);
3849 break;
3850 case 'f': // float
3851 fnumber = va_arg (args_copy, double);
3852 break;
3853 default:
3854 break;
3857 va_end (args_copy);
3858 va_end (args);
3862 main ()
3865 // Check bool.
3866 _Bool success = false;
3868 // Check restrict.
3869 if (test_restrict ("String literal") == 0)
3870 success = true;
3871 char *restrict newvar = "Another string";
3873 // Check varargs.
3874 test_varargs ("s, d' f .", "string", 65, 34.234);
3875 test_varargs_macros ();
3877 // Check flexible array members.
3878 struct incomplete_array *ia =
3879 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3880 ia->datasize = 10;
3881 for (int i = 0; i < ia->datasize; ++i)
3882 ia->data[i] = i * 1.234;
3884 // Check named initializers.
3885 struct named_init ni = {
3886 .number = 34,
3887 .name = L"Test wide string",
3888 .average = 543.34343,
3891 ni.number = 58;
3893 int dynamic_array[ni.number];
3894 dynamic_array[ni.number - 1] = 543;
3896 // work around unused variable warnings
3897 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3898 || dynamic_array[ni.number - 1] != 543);
3901 return 0;
3903 _ACEOF
3904 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3906 CC="$ac_save_CC $ac_arg"
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908 ac_cv_prog_cc_c99=$ac_arg
3910 rm -f core conftest.err conftest.$ac_objext
3911 test "x$ac_cv_prog_cc_c99" != "xno" && break
3912 done
3913 rm -f conftest.$ac_ext
3914 CC=$ac_save_CC
3917 # AC_CACHE_VAL
3918 case "x$ac_cv_prog_cc_c99" in
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921 $as_echo "none needed" >&6; } ;;
3922 xno)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 $as_echo "unsupported" >&6; } ;;
3926 CC="$CC $ac_cv_prog_cc_c99"
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3928 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3929 esac
3930 if test "x$ac_cv_prog_cc_c99" != xno; then :
3931 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3934 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3935 if ${ac_cv_prog_cc_c89+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 ac_cv_prog_cc_c89=no
3939 ac_save_CC=$CC
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 #include <stdarg.h>
3943 #include <stdio.h>
3944 struct stat;
3945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3946 struct buf { int x; };
3947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3948 static char *e (p, i)
3949 char **p;
3950 int i;
3952 return p[i];
3954 static char *f (char * (*g) (char **, int), char **p, ...)
3956 char *s;
3957 va_list v;
3958 va_start (v,p);
3959 s = g (p, va_arg (v,int));
3960 va_end (v);
3961 return s;
3964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3965 function prototypes and stuff, but not '\xHH' hex character constants.
3966 These don't provoke an error unfortunately, instead are silently treated
3967 as 'x'. The following induces an error, until -std is added to get
3968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3969 array size at least. It's necessary to write '\x00'==0 to get something
3970 that's true only with -std. */
3971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3974 inside strings and character constants. */
3975 #define FOO(x) 'x'
3976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3978 int test (int i, double x);
3979 struct s1 {int (*f) (int a);};
3980 struct s2 {int (*f) (double a);};
3981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3982 int argc;
3983 char **argv;
3985 main ()
3987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3989 return 0;
3991 _ACEOF
3992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3995 CC="$ac_save_CC $ac_arg"
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_prog_cc_c89=$ac_arg
3999 rm -f core conftest.err conftest.$ac_objext
4000 test "x$ac_cv_prog_cc_c89" != "xno" && break
4001 done
4002 rm -f conftest.$ac_ext
4003 CC=$ac_save_CC
4006 # AC_CACHE_VAL
4007 case "x$ac_cv_prog_cc_c89" in
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4010 $as_echo "none needed" >&6; } ;;
4011 xno)
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4013 $as_echo "unsupported" >&6; } ;;
4015 CC="$CC $ac_cv_prog_cc_c89"
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4017 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4018 esac
4019 if test "x$ac_cv_prog_cc_c89" != xno; then :
4020 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4021 else
4022 ac_cv_prog_cc_stdc=no
4027 esac
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4029 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4030 if ${ac_cv_prog_cc_stdc+:} false; then :
4031 $as_echo_n "(cached) " >&6
4034 case $ac_cv_prog_cc_stdc in #(
4035 no) :
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;; #(
4038 '') :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4040 $as_echo "none needed" >&6; } ;; #(
4041 *) :
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4043 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4044 esac
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4057 if test -z "$CPP"; then
4058 if ${ac_cv_prog_CPP+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 #ifdef __STDC__
4076 # include <limits.h>
4077 #else
4078 # include <assert.h>
4079 #endif
4080 Syntax error
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4084 else
4085 # Broken: fails on valid input.
4086 continue
4088 rm -f conftest.err conftest.i conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <ac_nonexistent.h>
4095 _ACEOF
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4097 # Broken: success on invalid input.
4098 continue
4099 else
4100 # Passes both tests.
4101 ac_preproc_ok=:
4102 break
4104 rm -f conftest.err conftest.i conftest.$ac_ext
4106 done
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.i conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then :
4110 break
4113 done
4114 ac_cv_prog_CPP=$CPP
4117 CPP=$ac_cv_prog_CPP
4118 else
4119 ac_cv_prog_CPP=$CPP
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4122 $as_echo "$CPP" >&6; }
4123 ac_preproc_ok=false
4124 for ac_c_preproc_warn_flag in '' yes
4126 # Use a header file that comes with gcc, so configuring glibc
4127 # with a fresh cross-compiler works.
4128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129 # <limits.h> exists even on freestanding compilers.
4130 # On the NeXT, cc -E runs the code through the compiler's parser,
4131 # not just through cpp. "Syntax error" is here to catch this case.
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #ifdef __STDC__
4135 # include <limits.h>
4136 #else
4137 # include <assert.h>
4138 #endif
4139 Syntax error
4140 _ACEOF
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4143 else
4144 # Broken: fails on valid input.
4145 continue
4147 rm -f conftest.err conftest.i conftest.$ac_ext
4149 # OK, works on sane cases. Now check whether nonexistent headers
4150 # can be detected and how.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #include <ac_nonexistent.h>
4154 _ACEOF
4155 if ac_fn_c_try_cpp "$LINENO"; then :
4156 # Broken: success on invalid input.
4157 continue
4158 else
4159 # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4163 rm -f conftest.err conftest.i conftest.$ac_ext
4165 done
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.i conftest.err conftest.$ac_ext
4168 if $ac_preproc_ok; then :
4170 else
4171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4174 See \`config.log' for more details" "$LINENO" 5; }
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 # Check for a compatible awk
4185 for ac_prog in gawk nawk
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_AWK+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$AWK"; then
4195 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_AWK="$ac_prog"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4208 done
4209 done
4210 IFS=$as_save_IFS
4214 AWK=$ac_cv_prog_AWK
4215 if test -n "$AWK"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4217 $as_echo "$AWK" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4224 test -n "$AWK" && break
4225 done
4227 req_avail=yes
4228 if test "$AWK" = ""; then
4229 req_avail=no
4231 if test "$AWK" = "no"; then
4232 req_avail=no
4234 if test "$req_avail" = "no"; then
4235 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4237 # Extract the first word of "mmake", so it can be a program name with args.
4238 set dummy mmake; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if ${ac_cv_prog_MMAKE+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -n "$MMAKE"; then
4245 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_prog_MMAKE="mmake "
4255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 break 2
4258 done
4259 done
4260 IFS=$as_save_IFS
4264 MMAKE=$ac_cv_prog_MMAKE
4265 if test -n "$MMAKE"; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4267 $as_echo "$MMAKE" >&6; }
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4275 # Perform some default variable assignments. Note all of these will be
4276 # Regenerated from the script, so there is no need to cache them.
4278 aros_build_host=$host
4279 aros_host_cpp="$CPP"
4280 aros_host_cc="$CC"
4281 aros_host_cxx="$CXX"
4282 if test "$GCC" = "yes"; then
4283 aros_gcc_ld=`$CC -print-prog-name=ld`
4284 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4285 set dummy `basename $aros_gcc_ld`; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_path_aros_host_ld+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 case $aros_host_ld in
4292 [\\/]* | ?:[\\/]*)
4293 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in `dirname $aros_gcc_ld`
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4312 esac
4314 aros_host_ld=$ac_cv_path_aros_host_ld
4315 if test -n "$aros_host_ld"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4317 $as_echo "$aros_host_ld" >&6; }
4318 else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4325 if test "$aros_host_ld" = ""; then
4326 # Extract the first word of "ld", so it can be a program name with args.
4327 set dummy ld; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_path_aros_host_ld+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 case $aros_host_ld in
4334 [\\/]* | ?:[\\/]*)
4335 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4349 done
4350 done
4351 IFS=$as_save_IFS
4354 esac
4356 aros_host_ld=$ac_cv_path_aros_host_ld
4357 if test -n "$aros_host_ld"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4359 $as_echo "$aros_host_ld" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4367 req_avail=yes
4368 if test "$aros_host_ld" = ""; then
4369 req_avail=no
4371 if test "$aros_host_ld" = "no"; then
4372 req_avail=no
4374 if test "$req_avail" = "no"; then
4375 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4377 aros_host_make="make"
4378 aros_host_cflags="$CFLAGS"
4379 aros_host_cxxflags="$CXXFLAGS"
4380 aros_host_cppflags="$CPPFLAGS"
4381 aros_host_ldflags="$LDFLAGS"
4382 aros_host_debug="-g -O0"
4383 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4384 aros_host_mkargs="--no-print-directory"
4385 aros_host_exe_suffix="$EXEEXT"
4386 aros_host_lib_suffix=""
4388 # Ignore all compliance, AROS ROMs = 0
4389 # KickStart v1.0 = 30
4390 # KickStart v1.3 = 34
4391 # KickStart v2.0 = 37
4392 # KickStart v3.0 = 39
4393 # KickStart v3.1 = 40
4394 # AmigaOS v3.5 = 44
4395 aros_amigaos_compliance=0
4397 for ac_prog in aclocal aclocal19 aclocal-1.9
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$aros_host_aclocal"; then
4407 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_aros_host_aclocal="$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4420 done
4421 done
4422 IFS=$as_save_IFS
4426 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4427 if test -n "$aros_host_aclocal"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4429 $as_echo "$aros_host_aclocal" >&6; }
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4436 test -n "$aros_host_aclocal" && break
4437 done
4439 for ac_prog in autoconf autoconf259 autoconf253
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$aros_host_autoconf"; then
4449 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_aros_host_autoconf="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4469 if test -n "$aros_host_autoconf"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4471 $as_echo "$aros_host_autoconf" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4478 test -n "$aros_host_autoconf" && break
4479 done
4481 for ac_prog in autoheader autoheader259 autoheader253
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$aros_host_autoheader"; then
4491 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_aros_host_autoheader="$ac_prog"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4511 if test -n "$aros_host_autoheader"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4513 $as_echo "$aros_host_autoheader" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4520 test -n "$aros_host_autoheader" && break
4521 done
4523 for ac_prog in automake automake19 automake-1.9
4525 # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_aros_host_automake+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$aros_host_automake"; then
4533 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_aros_host_automake="$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 aros_host_automake=$ac_cv_prog_aros_host_automake
4553 if test -n "$aros_host_automake"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4555 $as_echo "$aros_host_automake" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$aros_host_automake" && break
4563 done
4566 req_avail=yes
4567 if test "$aros_host_aclocal" = ""; then
4568 req_avail=no
4570 if test "$aros_host_aclocal" = "no"; then
4571 req_avail=no
4573 if test "$req_avail" = "no"; then
4574 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4576 req_avail=yes
4577 if test "$aros_host_automake" = ""; then
4578 req_avail=no
4580 if test "$aros_host_automake" = "no"; then
4581 req_avail=no
4583 if test "$req_avail" = "no"; then
4584 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4587 case "$aros_host_cc" in
4588 *clang*)
4589 aros_host_cc_pipe=""
4591 *gcc*)
4592 aros_host_cc_pipe="-pipe"
4594 icc)
4595 aros_host_cc_pipe=""
4598 aros_host_cc_pipe=""
4600 esac
4602 aros_kernel_cc_includes=""
4603 aros_target_cc_includes=""
4604 host_cc_elf=yes
4606 # ----------------------------------------------------------------------------------------
4607 # Host-specific defaults
4609 # This is the main host configuration section. It is where the host
4610 # can change the values of any variables it needs to change. We do
4611 # not look at anything that compiles to the target yet, we'll get
4612 # to that later.
4614 case "$host_os" in
4615 aros*)
4616 aros_host_arch="aros"
4617 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4618 case "$host_cpu" in
4619 *i?86*)
4620 aros_host_cpu="i386"
4622 *x86_64*)
4623 aros_host_cpu="x86_64"
4625 *powerpc*)
4626 aros_host_cpu="ppc"
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4630 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4631 aros_host_cpu="$host_cpu"
4633 esac
4636 linux*)
4637 aros_host_arch="linux"
4638 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4639 android_build_os="linux-x86"
4640 android_tool="android"
4641 default_android_sdk="/opt/android-sdk-linux_x86"
4642 case "$host_cpu" in
4643 *i?86*)
4644 aros_host_cpu="i386"
4646 *x86_64*)
4647 aros_host_cpu="x86_64"
4649 *m68k*)
4650 aros_host_cpu="m68k"
4652 *powerpc*)
4653 aros_host_cpu="ppc"
4655 *arm*)
4656 aros_host_cpu="arm"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4660 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4661 aros_host_cpu="$host_cpu"
4663 esac
4666 freebsd*)
4667 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4668 aros_host_make="gmake"
4669 aros_host_arch="freebsd"
4670 aros_host_cpu="i386"
4672 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4674 case $host_os in
4675 freebsd[234]*)
4676 aros_object_format="elf_i386"
4680 aros_object_format="elf_i386_fbsd"
4682 esac
4686 darwin*)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4688 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4689 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 test "$cross_compiling" = yes &&
4693 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4694 if test -r "/usr/include/stddef.h"; then
4695 ac_cv_file__usr_include_stddef_h=yes
4696 else
4697 ac_cv_file__usr_include_stddef_h=no
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4701 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4702 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4704 else
4705 as_fn_error $? "XCode incorrectly configured!
4706 please run 'xcode-select --install' before
4707 re-running configure" "$LINENO" 5
4711 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4712 aros_host_arch="darwin"
4713 host_cc_elf=no
4714 if [ -z ${SED+x} ]; then SED="gsed"; fi
4715 android_build_os="darwin-x86"
4716 android_tool="android"
4717 default_android_sdk="/android-sdk-mac_x86"
4718 case "$host_cpu" in
4719 *i?86*)
4720 aros_host_cpu="i386"
4722 *x86_64*)
4723 aros_host_cpu="x86_64"
4725 *powerpc*)
4726 aros_host_cpu="ppc"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4730 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4731 aros_host_cpu="$host_cpu"
4733 esac
4735 aros_host_ldflags="$aros_host_ldflags -liconv"
4739 dragonfly*)
4740 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4741 aros_host_make="gmake"
4742 aros_host_arch="dragonfly"
4743 case $host_cpu in
4744 *i?86*)
4745 aros_host_cpu="i386"
4747 *amd64*)
4748 aros_host_cpu="x86_64"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4752 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4753 aros_host_cpu="$host_cpu"
4755 esac
4758 netbsd*)
4759 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4760 aros_host_make="gmake"
4761 aros_host_arch="netbsd"
4762 case "$host_cpu" in
4763 *i?86*)
4764 aros_host_cpu="i386"
4766 *m68k*)
4767 aros_host_cpu="m68k"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4771 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4772 aros_host_cpu="$host_cpu"
4774 esac
4775 aros_host_lib_suffix=".0.0"
4778 openbsd*)
4779 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4780 aros_host_make="gmake"
4781 aros_host_arch="openbsd"
4782 case "$host_cpu" in
4783 *i?86*)
4784 aros_host_cpu="i386"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4789 aros_host_cpu="$host_cpu"
4791 esac
4794 solaris*)
4795 aros_host_arch="solaris"
4796 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4797 case "$host_cpu" in
4798 *i?86*)
4799 aros_host_cpu="i386"
4801 *sparc*)
4802 aros_host_cpu="sparc"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4806 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4807 aros_host_cpu="$host_cpu"
4809 esac
4812 morphos*)
4813 aros_host_arch="morphos"
4814 aros_host_cpu="ppc"
4815 host_cc_elf=no
4818 amiga*)
4819 aros_host_arch="amiga"
4820 host_cc_elf=no
4821 SORT="/gg/bin/sort"
4822 TEST="/gg/bin/test"
4823 UNIQ="/gg/bin/uniq"
4824 FOR="for"
4825 TOUCH="/gg/bin/touch"
4826 case "$host_cpu" in
4827 *m68k*)
4828 aros_host_cpu="m68k"
4830 *powerpc*)
4831 aros_host_cpu="ppc"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4835 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4836 aros_host_cpu="$host_cpu"
4838 esac
4841 cygwin*)
4842 aros_host_arch="cygwin"
4843 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4844 host_cc_elf=no
4845 android_build_os="windows"
4846 android_tool="android.bat"
4847 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4849 case "$host_cpu" in
4850 *i?86*)
4851 aros_host_cpu="i386"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4855 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4856 aros_host_cpu="$host_cpu"
4858 esac
4861 mingw32*)
4862 aros_host_arch="mingw32"
4863 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4864 host_cc_elf=no
4865 android_build_os="windows"
4866 android_tool="android.bat"
4867 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4869 libpng_libextra="-lws2_32"
4871 case "$host_cpu" in
4872 *i?86*)
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4875 $as_echo_n "checking for Windows native gcc target... " >&6; }
4876 host_cpu=`gcc -dumpmachine`
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4878 $as_echo "$host_cpu" >&6; }
4881 esac
4883 case "$host_cpu" in
4884 *i?86*)
4885 aros_host_cpu="i386"
4888 mingw32*)
4889 aros_host_cpu="i386"
4892 *x86_64*)
4893 aros_host_cpu="x86_64"
4894 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4899 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4900 aros_host_cpu="$host_cpu"
4902 esac
4905 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4907 esac
4909 # Extract the first word of "ar", so it can be a program name with args.
4910 set dummy ar; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_aros_host_ar+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 if test -n "$aros_host_ar"; then
4917 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_aros_host_ar="ar cr"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4930 done
4931 done
4932 IFS=$as_save_IFS
4936 aros_host_ar=$ac_cv_prog_aros_host_ar
4937 if test -n "$aros_host_ar"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4939 $as_echo "$aros_host_ar" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 req_avail=yes
4947 if test "$aros_host_ar" = ""; then
4948 req_avail=no
4950 if test "$aros_host_ar" = "no"; then
4951 req_avail=no
4953 if test "$req_avail" = "no"; then
4954 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4956 # Extract the first word of "ranlib", so it can be a program name with args.
4957 set dummy ranlib; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$aros_host_ranlib"; then
4964 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_aros_host_ranlib="ranlib "
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4984 if test -n "$aros_host_ranlib"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4986 $as_echo "$aros_host_ranlib" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 req_avail=yes
4994 if test "$aros_host_ranlib" = ""; then
4995 req_avail=no
4997 if test "$aros_host_ranlib" = "no"; then
4998 req_avail=no
5000 if test "$req_avail" = "no"; then
5001 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5003 # Extract the first word of "strip", so it can be a program name with args.
5004 set dummy strip; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_aros_host_strip+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if test -n "$aros_host_strip"; then
5011 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_aros_host_strip="strip "
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5026 IFS=$as_save_IFS
5030 aros_host_strip=$ac_cv_prog_aros_host_strip
5031 if test -n "$aros_host_strip"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5033 $as_echo "$aros_host_strip" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 req_avail=yes
5041 if test "$aros_host_strip" = ""; then
5042 req_avail=no
5044 if test "$aros_host_strip" = "no"; then
5045 req_avail=no
5047 if test "$req_avail" = "no"; then
5048 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5051 # Extract the first word of "rm", so it can be a program name with args.
5052 set dummy rm; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_RM+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$RM"; then
5059 ac_cv_prog_RM="$RM" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_RM="rm -rf"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 RM=$ac_cv_prog_RM
5079 if test -n "$RM"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5081 $as_echo "$RM" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5088 req_avail=yes
5089 if test "$RM" = ""; then
5090 req_avail=no
5092 if test "$RM" = "no"; then
5093 req_avail=no
5095 if test "$req_avail" = "no"; then
5096 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5098 # Extract the first word of "cp", so it can be a program name with args.
5099 set dummy cp; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_CP+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$CP"; then
5106 ac_cv_prog_CP="$CP" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_CP="cp "
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 CP=$ac_cv_prog_CP
5126 if test -n "$CP"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5128 $as_echo "$CP" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 req_avail=yes
5136 if test "$CP" = ""; then
5137 req_avail=no
5139 if test "$CP" = "no"; then
5140 req_avail=no
5142 if test "$req_avail" = "no"; then
5143 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5145 # Extract the first word of "mv", so it can be a program name with args.
5146 set dummy mv; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_MV+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$MV"; then
5153 ac_cv_prog_MV="$MV" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_MV="mv "
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5166 done
5167 done
5168 IFS=$as_save_IFS
5172 MV=$ac_cv_prog_MV
5173 if test -n "$MV"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5175 $as_echo "$MV" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5182 req_avail=yes
5183 if test "$MV" = ""; then
5184 req_avail=no
5186 if test "$MV" = "no"; then
5187 req_avail=no
5189 if test "$req_avail" = "no"; then
5190 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5192 # Extract the first word of "echo", so it can be a program name with args.
5193 set dummy echo; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_prog_ECHO+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test -n "$ECHO"; then
5200 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ECHO="echo "
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5213 done
5214 done
5215 IFS=$as_save_IFS
5219 ECHO=$ac_cv_prog_ECHO
5220 if test -n "$ECHO"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5222 $as_echo "$ECHO" >&6; }
5223 else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5229 req_avail=yes
5230 if test "$ECHO" = ""; then
5231 req_avail=no
5233 if test "$ECHO" = "no"; then
5234 req_avail=no
5236 if test "$req_avail" = "no"; then
5237 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5239 # Extract the first word of "mkdir", so it can be a program name with args.
5240 set dummy mkdir; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_prog_MKDIR+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$MKDIR"; then
5247 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_MKDIR="mkdir -p"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5262 IFS=$as_save_IFS
5266 MKDIR=$ac_cv_prog_MKDIR
5267 if test -n "$MKDIR"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5269 $as_echo "$MKDIR" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5276 req_avail=yes
5277 if test "$MKDIR" = ""; then
5278 req_avail=no
5280 if test "$MKDIR" = "no"; then
5281 req_avail=no
5283 if test "$req_avail" = "no"; then
5284 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5286 # Extract the first word of "touch", so it can be a program name with args.
5287 set dummy touch; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_prog_TOUCH+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$TOUCH"; then
5294 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_TOUCH="touch "
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5313 TOUCH=$ac_cv_prog_TOUCH
5314 if test -n "$TOUCH"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5316 $as_echo "$TOUCH" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 req_avail=yes
5324 if test "$TOUCH" = ""; then
5325 req_avail=no
5327 if test "$TOUCH" = "no"; then
5328 req_avail=no
5330 if test "$req_avail" = "no"; then
5331 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5333 # Extract the first word of "sort", so it can be a program name with args.
5334 set dummy sort; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_SORT+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$SORT"; then
5341 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_SORT="sort "
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 SORT=$ac_cv_prog_SORT
5361 if test -n "$SORT"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5363 $as_echo "$SORT" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5370 req_avail=yes
5371 if test "$SORT" = ""; then
5372 req_avail=no
5374 if test "$SORT" = "no"; then
5375 req_avail=no
5377 if test "$req_avail" = "no"; then
5378 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5380 # Extract the first word of "uniq", so it can be a program name with args.
5381 set dummy uniq; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_UNIQ+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$UNIQ"; then
5388 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_UNIQ="uniq "
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 UNIQ=$ac_cv_prog_UNIQ
5408 if test -n "$UNIQ"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5410 $as_echo "$UNIQ" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 req_avail=yes
5418 if test "$UNIQ" = ""; then
5419 req_avail=no
5421 if test "$UNIQ" = "no"; then
5422 req_avail=no
5424 if test "$req_avail" = "no"; then
5425 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5427 # Extract the first word of "true", so it can be a program name with args.
5428 set dummy true; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_prog_NOP+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$NOP"; then
5435 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_NOP="true "
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5450 IFS=$as_save_IFS
5454 NOP=$ac_cv_prog_NOP
5455 if test -n "$NOP"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5457 $as_echo "$NOP" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5464 req_avail=yes
5465 if test "$NOP" = ""; then
5466 req_avail=no
5468 if test "$NOP" = "no"; then
5469 req_avail=no
5471 if test "$req_avail" = "no"; then
5472 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5474 # Extract the first word of "cat", so it can be a program name with args.
5475 set dummy cat; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_CAT+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$CAT"; then
5482 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_CAT="cat "
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5495 done
5496 done
5497 IFS=$as_save_IFS
5501 CAT=$ac_cv_prog_CAT
5502 if test -n "$CAT"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5504 $as_echo "$CAT" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 req_avail=yes
5512 if test "$CAT" = ""; then
5513 req_avail=no
5515 if test "$CAT" = "no"; then
5516 req_avail=no
5518 if test "$req_avail" = "no"; then
5519 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5521 # Extract the first word of "bison", so it can be a program name with args.
5522 set dummy bison; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_BISON+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$BISON"; then
5529 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_BISON="bison "
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 BISON=$ac_cv_prog_BISON
5549 if test -n "$BISON"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5551 $as_echo "$BISON" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 req_avail=yes
5559 if test "$BISON" = ""; then
5560 req_avail=no
5562 if test "$BISON" = "no"; then
5563 req_avail=no
5565 if test "$req_avail" = "no"; then
5566 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5568 # Extract the first word of "flex", so it can be a program name with args.
5569 set dummy flex; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_FLEX+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$FLEX"; then
5576 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_FLEX="flex "
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5589 done
5590 done
5591 IFS=$as_save_IFS
5595 FLEX=$ac_cv_prog_FLEX
5596 if test -n "$FLEX"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5598 $as_echo "$FLEX" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 req_avail=yes
5606 if test "$FLEX" = ""; then
5607 req_avail=no
5609 if test "$FLEX" = "no"; then
5610 req_avail=no
5612 if test "$req_avail" = "no"; then
5613 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5615 # Extract the first word of "pngtopnm", so it can be a program name with args.
5616 set dummy pngtopnm; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$PNGTOPNM"; then
5623 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_PNGTOPNM="pngtopnm "
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5636 done
5637 done
5638 IFS=$as_save_IFS
5642 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5643 if test -n "$PNGTOPNM"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5645 $as_echo "$PNGTOPNM" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 req_avail=yes
5653 if test "$PNGTOPNM" = ""; then
5654 req_avail=no
5656 if test "$PNGTOPNM" = "no"; then
5657 req_avail=no
5659 if test "$req_avail" = "no"; then
5660 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5662 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5663 set dummy ppmtoilbm; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$PPMTOILBM"; then
5670 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5683 done
5684 done
5685 IFS=$as_save_IFS
5689 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5690 if test -n "$PPMTOILBM"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5692 $as_echo "$PPMTOILBM" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5699 req_avail=yes
5700 if test "$PPMTOILBM" = ""; then
5701 req_avail=no
5703 if test "$PPMTOILBM" = "no"; then
5704 req_avail=no
5706 if test "$req_avail" = "no"; then
5707 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5709 # Extract the first word of "sed", so it can be a program name with args.
5710 set dummy sed; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_SED+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 if test -n "$SED"; then
5717 ac_cv_prog_SED="$SED" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_SED="sed "
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5730 done
5731 done
5732 IFS=$as_save_IFS
5736 SED=$ac_cv_prog_SED
5737 if test -n "$SED"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5739 $as_echo "$SED" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 req_avail=yes
5747 if test "$SED" = ""; then
5748 req_avail=no
5750 if test "$SED" = "no"; then
5751 req_avail=no
5753 if test "$req_avail" = "no"; then
5754 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5756 # Extract the first word of "chmod", so it can be a program name with args.
5757 set dummy chmod; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_CHMOD+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$CHMOD"; then
5764 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_CHMOD="chmod "
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 CHMOD=$ac_cv_prog_CHMOD
5784 if test -n "$CHMOD"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5786 $as_echo "$CHMOD" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5793 req_avail=yes
5794 if test "$CHMOD" = ""; then
5795 req_avail=no
5797 if test "$CHMOD" = "no"; then
5798 req_avail=no
5800 if test "$req_avail" = "no"; then
5801 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5803 # Extract the first word of "patch", so it can be a program name with args.
5804 set dummy patch; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_PATCH+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$PATCH"; then
5811 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_PATCH="patch "
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5824 done
5825 done
5826 IFS=$as_save_IFS
5830 PATCH=$ac_cv_prog_PATCH
5831 if test -n "$PATCH"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5833 $as_echo "$PATCH" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5840 req_avail=yes
5841 if test "$PATCH" = ""; then
5842 req_avail=no
5844 if test "$PATCH" = "no"; then
5845 req_avail=no
5847 if test "$req_avail" = "no"; then
5848 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5857 if test -n "$PYTHON"; then
5858 # If the user set $PYTHON, use it and don't search something else.
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5860 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5861 prog="import sys
5862 # split strings by '.' and convert to numeric. Append some zeros
5863 # because we need at least 4 digits for the hex conversion.
5864 # map returns an iterator in Python 3.0 and a list in 2.x
5865 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5866 minverhex = 0
5867 # xrange is not present in Python 3.0 and range returns an iterator
5868 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5869 sys.exit(sys.hexversion < minverhex)"
5870 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5871 ($PYTHON -c "$prog") >&5 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; then :
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5876 $as_echo "yes" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5882 am_display_PYTHON=$PYTHON
5883 else
5884 # Otherwise, try each interpreter until we find one that satisfies
5885 # VERSION.
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5887 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5888 if ${am_cv_pathless_PYTHON+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5892 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
5893 test "$am_cv_pathless_PYTHON" = none && break
5894 prog="import sys
5895 # split strings by '.' and convert to numeric. Append some zeros
5896 # because we need at least 4 digits for the hex conversion.
5897 # map returns an iterator in Python 3.0 and a list in 2.x
5898 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5899 minverhex = 0
5900 # xrange is not present in Python 3.0 and range returns an iterator
5901 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5902 sys.exit(sys.hexversion < minverhex)"
5903 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5904 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; then :
5908 break
5910 done
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5913 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5914 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5915 if test "$am_cv_pathless_PYTHON" = none; then
5916 PYTHON=:
5917 else
5918 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5919 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_path_PYTHON+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 case $PYTHON in
5926 [\\/]* | ?:[\\/]*)
5927 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5941 done
5942 done
5943 IFS=$as_save_IFS
5946 esac
5948 PYTHON=$ac_cv_path_PYTHON
5949 if test -n "$PYTHON"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5951 $as_echo "$PYTHON" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5959 am_display_PYTHON=$am_cv_pathless_PYTHON
5963 if test "$PYTHON" = :; then
5964 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5965 else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5969 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5970 if ${am_cv_python_version+:} false; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5976 $as_echo "$am_cv_python_version" >&6; }
5977 PYTHON_VERSION=$am_cv_python_version
5981 PYTHON_PREFIX='${prefix}'
5983 PYTHON_EXEC_PREFIX='${exec_prefix}'
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5988 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5989 if ${am_cv_python_platform+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5995 $as_echo "$am_cv_python_platform" >&6; }
5996 PYTHON_PLATFORM=$am_cv_python_platform
5999 # Just factor out some code duplication.
6000 am_python_setup_sysconfig="\
6001 import sys
6002 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6003 # with python 3.x. See automake bug#10227.
6004 try:
6005 import sysconfig
6006 except ImportError:
6007 can_use_sysconfig = 0
6008 else:
6009 can_use_sysconfig = 1
6010 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6011 # <https://github.com/pypa/virtualenv/issues/118>
6012 try:
6013 from platform import python_implementation
6014 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6015 can_use_sysconfig = 0
6016 except ImportError:
6017 pass"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6021 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6022 if ${am_cv_python_pythondir+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test "x$prefix" = xNONE
6026 then
6027 am_py_prefix=$ac_default_prefix
6028 else
6029 am_py_prefix=$prefix
6031 am_cv_python_pythondir=`$PYTHON -c "
6032 $am_python_setup_sysconfig
6033 if can_use_sysconfig:
6034 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6035 else:
6036 from distutils import sysconfig
6037 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6038 sys.stdout.write(sitedir)"`
6039 case $am_cv_python_pythondir in
6040 $am_py_prefix*)
6041 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6042 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6045 case $am_py_prefix in
6046 /usr|/System*) ;;
6048 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6050 esac
6052 esac
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6056 $as_echo "$am_cv_python_pythondir" >&6; }
6057 pythondir=$am_cv_python_pythondir
6061 pkgpythondir=\${pythondir}/$PACKAGE
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6065 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6066 if ${am_cv_python_pyexecdir+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test "x$exec_prefix" = xNONE
6070 then
6071 am_py_exec_prefix=$am_py_prefix
6072 else
6073 am_py_exec_prefix=$exec_prefix
6075 am_cv_python_pyexecdir=`$PYTHON -c "
6076 $am_python_setup_sysconfig
6077 if can_use_sysconfig:
6078 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6079 else:
6080 from distutils import sysconfig
6081 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6082 sys.stdout.write(sitedir)"`
6083 case $am_cv_python_pyexecdir in
6084 $am_py_exec_prefix*)
6085 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6086 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6089 case $am_py_exec_prefix in
6090 /usr|/System*) ;;
6092 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6094 esac
6096 esac
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6100 $as_echo "$am_cv_python_pyexecdir" >&6; }
6101 pyexecdir=$am_cv_python_pyexecdir
6105 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6113 # Check whether --enable-libpng-config was given.
6114 if test "${enable_libpng_config+set}" = set; then :
6115 enableval=$enable_libpng_config;
6118 if test "$enable_libpng_config" != "no"; then
6119 # Extract the first word of "libpng-config", so it can be a program name with args.
6120 set dummy libpng-config; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$arosconfig_use_libpngconfig"; then
6127 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6140 done
6141 done
6142 IFS=$as_save_IFS
6144 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6147 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6148 if test -n "$arosconfig_use_libpngconfig"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6150 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6158 if test "$arosconfig_use_libpngconfig" = "yes"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6160 $as_echo_n "checking libpng-config library... " >&6; }
6161 libpng_incdir="`libpng-config --cflags`"
6162 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6163 libpng="`libpng-config --libs`"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6165 $as_echo "$libpng" >&6; }
6166 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6169 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6170 if ${ac_cv_lib_png_png_read_png+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 ac_check_lib_save_LIBS=$LIBS
6174 LIBS="-lpng $LIBS"
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6178 /* Override any GCC internal prototype to avoid an error.
6179 Use char because int might match the return type of a GCC
6180 builtin and then its argument prototype would still apply. */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 char png_read_png ();
6186 main ()
6188 return png_read_png ();
6190 return 0;
6192 _ACEOF
6193 if ac_fn_c_try_link "$LINENO"; then :
6194 ac_cv_lib_png_png_read_png=yes
6195 else
6196 ac_cv_lib_png_png_read_png=no
6198 rm -f core conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 LIBS=$ac_check_lib_save_LIBS
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6203 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6204 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6205 libpng="-lpng"
6206 else
6207 libpng="no"
6210 if test "$libpng_libextra" != ""; then
6211 if test "$libpng" != "no"; then
6212 libpng_libextra="$libpng_libextra $libpng"
6216 req_avail=yes
6217 if test "$libpng" = ""; then
6218 req_avail=no
6220 if test "$libpng" = "no"; then
6221 req_avail=no
6223 if test "$req_avail" = "no"; then
6224 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6230 FOR=for
6232 IF=if
6234 TEST=test
6236 CMP=cmp
6240 # Check for some includes for the X11 HIDD and the kernel
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6244 if ${ac_cv_path_GREP+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -z "$GREP"; then
6248 ac_path_GREP_found=false
6249 # Loop through the user's path and test for each of PROGNAME-LIST
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_prog in grep ggrep; do
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6258 as_fn_executable_p "$ac_path_GREP" || continue
6259 # Check for GNU ac_path_GREP and select it if it is found.
6260 # Check for GNU $ac_path_GREP
6261 case `"$ac_path_GREP" --version 2>&1` in
6262 *GNU*)
6263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6265 ac_count=0
6266 $as_echo_n 0123456789 >"conftest.in"
6267 while :
6269 cat "conftest.in" "conftest.in" >"conftest.tmp"
6270 mv "conftest.tmp" "conftest.in"
6271 cp "conftest.in" "conftest.nl"
6272 $as_echo 'GREP' >> "conftest.nl"
6273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6275 as_fn_arith $ac_count + 1 && ac_count=$as_val
6276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6277 # Best one so far, save it but keep looking for a better one
6278 ac_cv_path_GREP="$ac_path_GREP"
6279 ac_path_GREP_max=$ac_count
6281 # 10*(2^10) chars as input seems more than enough
6282 test $ac_count -gt 10 && break
6283 done
6284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6285 esac
6287 $ac_path_GREP_found && break 3
6288 done
6289 done
6290 done
6291 IFS=$as_save_IFS
6292 if test -z "$ac_cv_path_GREP"; then
6293 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6295 else
6296 ac_cv_path_GREP=$GREP
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6301 $as_echo "$ac_cv_path_GREP" >&6; }
6302 GREP="$ac_cv_path_GREP"
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6306 $as_echo_n "checking for egrep... " >&6; }
6307 if ${ac_cv_path_EGREP+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6311 then ac_cv_path_EGREP="$GREP -E"
6312 else
6313 if test -z "$EGREP"; then
6314 ac_path_EGREP_found=false
6315 # Loop through the user's path and test for each of PROGNAME-LIST
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_prog in egrep; do
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6324 as_fn_executable_p "$ac_path_EGREP" || continue
6325 # Check for GNU ac_path_EGREP and select it if it is found.
6326 # Check for GNU $ac_path_EGREP
6327 case `"$ac_path_EGREP" --version 2>&1` in
6328 *GNU*)
6329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6331 ac_count=0
6332 $as_echo_n 0123456789 >"conftest.in"
6333 while :
6335 cat "conftest.in" "conftest.in" >"conftest.tmp"
6336 mv "conftest.tmp" "conftest.in"
6337 cp "conftest.in" "conftest.nl"
6338 $as_echo 'EGREP' >> "conftest.nl"
6339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6341 as_fn_arith $ac_count + 1 && ac_count=$as_val
6342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6343 # Best one so far, save it but keep looking for a better one
6344 ac_cv_path_EGREP="$ac_path_EGREP"
6345 ac_path_EGREP_max=$ac_count
6347 # 10*(2^10) chars as input seems more than enough
6348 test $ac_count -gt 10 && break
6349 done
6350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6351 esac
6353 $ac_path_EGREP_found && break 3
6354 done
6355 done
6356 done
6357 IFS=$as_save_IFS
6358 if test -z "$ac_cv_path_EGREP"; then
6359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6361 else
6362 ac_cv_path_EGREP=$EGREP
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6368 $as_echo "$ac_cv_path_EGREP" >&6; }
6369 EGREP="$ac_cv_path_EGREP"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6373 $as_echo_n "checking for ANSI C header files... " >&6; }
6374 if ${ac_cv_header_stdc+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 #include <stdlib.h>
6380 #include <stdarg.h>
6381 #include <string.h>
6382 #include <float.h>
6385 main ()
6389 return 0;
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"; then :
6393 ac_cv_header_stdc=yes
6394 else
6395 ac_cv_header_stdc=no
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 if test $ac_cv_header_stdc = yes; then
6400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 #include <string.h>
6405 _ACEOF
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "memchr" >/dev/null 2>&1; then :
6409 else
6410 ac_cv_header_stdc=no
6412 rm -f conftest*
6416 if test $ac_cv_header_stdc = yes; then
6417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 #include <stdlib.h>
6422 _ACEOF
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424 $EGREP "free" >/dev/null 2>&1; then :
6426 else
6427 ac_cv_header_stdc=no
6429 rm -f conftest*
6433 if test $ac_cv_header_stdc = yes; then
6434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6435 if test "$cross_compiling" = yes; then :
6437 else
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 #include <ctype.h>
6441 #include <stdlib.h>
6442 #if ((' ' & 0x0FF) == 0x020)
6443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6445 #else
6446 # define ISLOWER(c) \
6447 (('a' <= (c) && (c) <= 'i') \
6448 || ('j' <= (c) && (c) <= 'r') \
6449 || ('s' <= (c) && (c) <= 'z'))
6450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6451 #endif
6453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6455 main ()
6457 int i;
6458 for (i = 0; i < 256; i++)
6459 if (XOR (islower (i), ISLOWER (i))
6460 || toupper (i) != TOUPPER (i))
6461 return 2;
6462 return 0;
6464 _ACEOF
6465 if ac_fn_c_try_run "$LINENO"; then :
6467 else
6468 ac_cv_header_stdc=no
6470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6471 conftest.$ac_objext conftest.beam conftest.$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6477 $as_echo "$ac_cv_header_stdc" >&6; }
6478 if test $ac_cv_header_stdc = yes; then
6480 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6484 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6486 inttypes.h stdint.h unistd.h
6487 do :
6488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6492 cat >>confdefs.h <<_ACEOF
6493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6494 _ACEOF
6498 done
6501 for ac_header in sys/ipc.h sys/shm.h \
6502 sys/mmap.h sys/mman.h sysexits.h \
6503 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6505 do :
6506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6515 done
6518 for ac_header in sys/mount.h
6519 do :
6520 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6522 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6523 cat >>confdefs.h <<_ACEOF
6524 #define HAVE_SYS_MOUNT_H 1
6525 _ACEOF
6529 done
6532 ac_header_dirent=no
6533 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6534 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6536 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6537 if eval \${$as_ac_Header+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 #include <sys/types.h>
6543 #include <$ac_hdr>
6546 main ()
6548 if ((DIR *) 0)
6549 return 0;
6551 return 0;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 eval "$as_ac_Header=yes"
6556 else
6557 eval "$as_ac_Header=no"
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 eval ac_res=\$$as_ac_Header
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6563 $as_echo "$ac_res" >&6; }
6564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6565 cat >>confdefs.h <<_ACEOF
6566 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6567 _ACEOF
6569 ac_header_dirent=$ac_hdr; break
6572 done
6573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6574 if test $ac_header_dirent = dirent.h; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6576 $as_echo_n "checking for library containing opendir... " >&6; }
6577 if ${ac_cv_search_opendir+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 ac_func_search_save_LIBS=$LIBS
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6584 /* Override any GCC internal prototype to avoid an error.
6585 Use char because int might match the return type of a GCC
6586 builtin and then its argument prototype would still apply. */
6587 #ifdef __cplusplus
6588 extern "C"
6589 #endif
6590 char opendir ();
6592 main ()
6594 return opendir ();
6596 return 0;
6598 _ACEOF
6599 for ac_lib in '' dir; do
6600 if test -z "$ac_lib"; then
6601 ac_res="none required"
6602 else
6603 ac_res=-l$ac_lib
6604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6606 if ac_fn_c_try_link "$LINENO"; then :
6607 ac_cv_search_opendir=$ac_res
6609 rm -f core conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext
6611 if ${ac_cv_search_opendir+:} false; then :
6612 break
6614 done
6615 if ${ac_cv_search_opendir+:} false; then :
6617 else
6618 ac_cv_search_opendir=no
6620 rm conftest.$ac_ext
6621 LIBS=$ac_func_search_save_LIBS
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6624 $as_echo "$ac_cv_search_opendir" >&6; }
6625 ac_res=$ac_cv_search_opendir
6626 if test "$ac_res" != no; then :
6627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6633 $as_echo_n "checking for library containing opendir... " >&6; }
6634 if ${ac_cv_search_opendir+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 ac_func_search_save_LIBS=$LIBS
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
6644 #ifdef __cplusplus
6645 extern "C"
6646 #endif
6647 char opendir ();
6649 main ()
6651 return opendir ();
6653 return 0;
6655 _ACEOF
6656 for ac_lib in '' x; do
6657 if test -z "$ac_lib"; then
6658 ac_res="none required"
6659 else
6660 ac_res=-l$ac_lib
6661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6663 if ac_fn_c_try_link "$LINENO"; then :
6664 ac_cv_search_opendir=$ac_res
6666 rm -f core conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext
6668 if ${ac_cv_search_opendir+:} false; then :
6669 break
6671 done
6672 if ${ac_cv_search_opendir+:} false; then :
6674 else
6675 ac_cv_search_opendir=no
6677 rm conftest.$ac_ext
6678 LIBS=$ac_func_search_save_LIBS
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6681 $as_echo "$ac_cv_search_opendir" >&6; }
6682 ac_res=$ac_cv_search_opendir
6683 if test "$ac_res" != no; then :
6684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6691 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6692 if ${ac_cv_header_stat_broken+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 #include <sys/stat.h>
6700 #if defined S_ISBLK && defined S_IFDIR
6701 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6702 #endif
6704 #if defined S_ISBLK && defined S_IFCHR
6705 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6706 #endif
6708 #if defined S_ISLNK && defined S_IFREG
6709 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6710 #endif
6712 #if defined S_ISSOCK && defined S_IFREG
6713 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6714 #endif
6716 _ACEOF
6717 if ac_fn_c_try_compile "$LINENO"; then :
6718 ac_cv_header_stat_broken=no
6719 else
6720 ac_cv_header_stat_broken=yes
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6725 $as_echo "$ac_cv_header_stat_broken" >&6; }
6726 if test $ac_cv_header_stat_broken = yes; then
6728 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6733 $as_echo_n "checking for ANSI C header files... " >&6; }
6734 if ${ac_cv_header_stdc+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 #include <stdlib.h>
6740 #include <stdarg.h>
6741 #include <string.h>
6742 #include <float.h>
6745 main ()
6749 return 0;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 ac_cv_header_stdc=yes
6754 else
6755 ac_cv_header_stdc=no
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 if test $ac_cv_header_stdc = yes; then
6760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #include <string.h>
6765 _ACEOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 $EGREP "memchr" >/dev/null 2>&1; then :
6769 else
6770 ac_cv_header_stdc=no
6772 rm -f conftest*
6776 if test $ac_cv_header_stdc = yes; then
6777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 #include <stdlib.h>
6782 _ACEOF
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 $EGREP "free" >/dev/null 2>&1; then :
6786 else
6787 ac_cv_header_stdc=no
6789 rm -f conftest*
6793 if test $ac_cv_header_stdc = yes; then
6794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6795 if test "$cross_compiling" = yes; then :
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 #include <ctype.h>
6801 #include <stdlib.h>
6802 #if ((' ' & 0x0FF) == 0x020)
6803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6805 #else
6806 # define ISLOWER(c) \
6807 (('a' <= (c) && (c) <= 'i') \
6808 || ('j' <= (c) && (c) <= 'r') \
6809 || ('s' <= (c) && (c) <= 'z'))
6810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6811 #endif
6813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6815 main ()
6817 int i;
6818 for (i = 0; i < 256; i++)
6819 if (XOR (islower (i), ISLOWER (i))
6820 || toupper (i) != TOUPPER (i))
6821 return 2;
6822 return 0;
6824 _ACEOF
6825 if ac_fn_c_try_run "$LINENO"; then :
6827 else
6828 ac_cv_header_stdc=no
6830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6831 conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6837 $as_echo "$ac_cv_header_stdc" >&6; }
6838 if test $ac_cv_header_stdc = yes; then
6840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6845 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6846 if ${ac_cv_header_sys_wait_h+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <sys/types.h>
6852 #include <sys/wait.h>
6853 #ifndef WEXITSTATUS
6854 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6855 #endif
6856 #ifndef WIFEXITED
6857 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6858 #endif
6861 main ()
6863 int s;
6864 wait (&s);
6865 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6867 return 0;
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 ac_cv_header_sys_wait_h=yes
6872 else
6873 ac_cv_header_sys_wait_h=no
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6878 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6879 if test $ac_cv_header_sys_wait_h = yes; then
6881 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6886 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6887 if ${ac_cv_header_time+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #include <sys/types.h>
6893 #include <sys/time.h>
6894 #include <time.h>
6897 main ()
6899 if ((struct tm *) 0)
6900 return 0;
6902 return 0;
6904 _ACEOF
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906 ac_cv_header_time=yes
6907 else
6908 ac_cv_header_time=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6913 $as_echo "$ac_cv_header_time" >&6; }
6914 if test $ac_cv_header_time = yes; then
6916 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6920 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6921 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6923 cat >>confdefs.h <<_ACEOF
6924 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6925 _ACEOF
6928 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6933 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6934 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6936 cat >>confdefs.h <<_ACEOF
6937 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6938 _ACEOF
6941 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6943 else
6944 case " $LIBOBJS " in
6945 *" fileblocks.$ac_objext "* ) ;;
6946 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6948 esac
6953 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6954 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6956 cat >>confdefs.h <<_ACEOF
6957 #define HAVE_STRUCT_STAT_ST_RDEV 1
6958 _ACEOF
6961 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6967 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6968 if ${ac_cv_struct_tm+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 #include <sys/types.h>
6974 #include <time.h>
6977 main ()
6979 struct tm tm;
6980 int *p = &tm.tm_sec;
6981 return !p;
6983 return 0;
6985 _ACEOF
6986 if ac_fn_c_try_compile "$LINENO"; then :
6987 ac_cv_struct_tm=time.h
6988 else
6989 ac_cv_struct_tm=sys/time.h
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6994 $as_echo "$ac_cv_struct_tm" >&6; }
6995 if test $ac_cv_struct_tm = sys/time.h; then
6997 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7001 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7002 #include <$ac_cv_struct_tm>
7005 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_STRUCT_TM_TM_ZONE 1
7009 _ACEOF
7014 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7016 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7018 else
7019 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7021 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7022 ac_have_decl=1
7023 else
7024 ac_have_decl=0
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_DECL_TZNAME $ac_have_decl
7029 _ACEOF
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7032 $as_echo_n "checking for tzname... " >&6; }
7033 if ${ac_cv_var_tzname+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 #include <time.h>
7039 #if !HAVE_DECL_TZNAME
7040 extern char *tzname[];
7041 #endif
7044 main ()
7046 return tzname[0][0];
7048 return 0;
7050 _ACEOF
7051 if ac_fn_c_try_link "$LINENO"; then :
7052 ac_cv_var_tzname=yes
7053 else
7054 ac_cv_var_tzname=no
7056 rm -f core conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7060 $as_echo "$ac_cv_var_tzname" >&6; }
7061 if test $ac_cv_var_tzname = yes; then
7063 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7068 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7069 if test "x$ac_cv_type_off_t" = xyes; then :
7071 else
7073 cat >>confdefs.h <<_ACEOF
7074 #define off_t long int
7075 _ACEOF
7079 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7080 if test "x$ac_cv_type_pid_t" = xyes; then :
7082 else
7084 cat >>confdefs.h <<_ACEOF
7085 #define pid_t int
7086 _ACEOF
7090 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7091 if test "x$ac_cv_type_size_t" = xyes; then :
7093 else
7095 cat >>confdefs.h <<_ACEOF
7096 #define size_t unsigned int
7097 _ACEOF
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7102 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7103 if ${ac_cv_type_uid_t+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 #include <sys/types.h>
7110 _ACEOF
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 $EGREP "uid_t" >/dev/null 2>&1; then :
7113 ac_cv_type_uid_t=yes
7114 else
7115 ac_cv_type_uid_t=no
7117 rm -f conftest*
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7121 $as_echo "$ac_cv_type_uid_t" >&6; }
7122 if test $ac_cv_type_uid_t = no; then
7124 $as_echo "#define uid_t int" >>confdefs.h
7127 $as_echo "#define gid_t int" >>confdefs.h
7132 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7133 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7137 _ACEOF
7143 # Look for some functions
7144 for ac_func in getpagesize kqueue statfs statvfs \
7145 clone kse_create rfork_thread thr_create sa_register \
7146 getcontext makecontext setcontext sigaltstack swapcontext
7147 do :
7148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7151 cat >>confdefs.h <<_ACEOF
7152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7153 _ACEOF
7156 done
7162 for ac_header in $ac_header_list
7163 do :
7164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7165 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7168 cat >>confdefs.h <<_ACEOF
7169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170 _ACEOF
7174 done
7183 for ac_func in getpagesize
7184 do :
7185 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7186 if test "x$ac_cv_func_getpagesize" = xyes; then :
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE_GETPAGESIZE 1
7189 _ACEOF
7192 done
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7195 $as_echo_n "checking for working mmap... " >&6; }
7196 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test "$cross_compiling" = yes; then :
7200 ac_cv_func_mmap_fixed_mapped=no
7201 else
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 $ac_includes_default
7205 /* malloc might have been renamed as rpl_malloc. */
7206 #undef malloc
7208 /* Thanks to Mike Haertel and Jim Avera for this test.
7209 Here is a matrix of mmap possibilities:
7210 mmap private not fixed
7211 mmap private fixed at somewhere currently unmapped
7212 mmap private fixed at somewhere already mapped
7213 mmap shared not fixed
7214 mmap shared fixed at somewhere currently unmapped
7215 mmap shared fixed at somewhere already mapped
7216 For private mappings, we should verify that changes cannot be read()
7217 back from the file, nor mmap's back from the file at a different
7218 address. (There have been systems where private was not correctly
7219 implemented like the infamous i386 svr4.0, and systems where the
7220 VM page cache was not coherent with the file system buffer cache
7221 like early versions of FreeBSD and possibly contemporary NetBSD.)
7222 For shared mappings, we should conversely verify that changes get
7223 propagated back to all the places they're supposed to be.
7225 Grep wants private fixed already mapped.
7226 The main things grep needs to know about mmap are:
7227 * does it exist and is it safe to write into the mmap'd area
7228 * how to use it (BSD variants) */
7230 #include <fcntl.h>
7231 #include <sys/mman.h>
7233 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7234 char *malloc ();
7235 #endif
7237 /* This mess was copied from the GNU getpagesize.h. */
7238 #ifndef HAVE_GETPAGESIZE
7239 # ifdef _SC_PAGESIZE
7240 # define getpagesize() sysconf(_SC_PAGESIZE)
7241 # else /* no _SC_PAGESIZE */
7242 # ifdef HAVE_SYS_PARAM_H
7243 # include <sys/param.h>
7244 # ifdef EXEC_PAGESIZE
7245 # define getpagesize() EXEC_PAGESIZE
7246 # else /* no EXEC_PAGESIZE */
7247 # ifdef NBPG
7248 # define getpagesize() NBPG * CLSIZE
7249 # ifndef CLSIZE
7250 # define CLSIZE 1
7251 # endif /* no CLSIZE */
7252 # else /* no NBPG */
7253 # ifdef NBPC
7254 # define getpagesize() NBPC
7255 # else /* no NBPC */
7256 # ifdef PAGESIZE
7257 # define getpagesize() PAGESIZE
7258 # endif /* PAGESIZE */
7259 # endif /* no NBPC */
7260 # endif /* no NBPG */
7261 # endif /* no EXEC_PAGESIZE */
7262 # else /* no HAVE_SYS_PARAM_H */
7263 # define getpagesize() 8192 /* punt totally */
7264 # endif /* no HAVE_SYS_PARAM_H */
7265 # endif /* no _SC_PAGESIZE */
7267 #endif /* no HAVE_GETPAGESIZE */
7270 main ()
7272 char *data, *data2, *data3;
7273 const char *cdata2;
7274 int i, pagesize;
7275 int fd, fd2;
7277 pagesize = getpagesize ();
7279 /* First, make a file with some known garbage in it. */
7280 data = (char *) malloc (pagesize);
7281 if (!data)
7282 return 1;
7283 for (i = 0; i < pagesize; ++i)
7284 *(data + i) = rand ();
7285 umask (0);
7286 fd = creat ("conftest.mmap", 0600);
7287 if (fd < 0)
7288 return 2;
7289 if (write (fd, data, pagesize) != pagesize)
7290 return 3;
7291 close (fd);
7293 /* Next, check that the tail of a page is zero-filled. File must have
7294 non-zero length, otherwise we risk SIGBUS for entire page. */
7295 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7296 if (fd2 < 0)
7297 return 4;
7298 cdata2 = "";
7299 if (write (fd2, cdata2, 1) != 1)
7300 return 5;
7301 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7302 if (data2 == MAP_FAILED)
7303 return 6;
7304 for (i = 0; i < pagesize; ++i)
7305 if (*(data2 + i))
7306 return 7;
7307 close (fd2);
7308 if (munmap (data2, pagesize))
7309 return 8;
7311 /* Next, try to mmap the file at a fixed address which already has
7312 something else allocated at it. If we can, also make sure that
7313 we see the same garbage. */
7314 fd = open ("conftest.mmap", O_RDWR);
7315 if (fd < 0)
7316 return 9;
7317 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7318 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7319 return 10;
7320 for (i = 0; i < pagesize; ++i)
7321 if (*(data + i) != *(data2 + i))
7322 return 11;
7324 /* Finally, make sure that changes to the mapped area do not
7325 percolate back to the file as seen by read(). (This is a bug on
7326 some variants of i386 svr4.0.) */
7327 for (i = 0; i < pagesize; ++i)
7328 *(data2 + i) = *(data2 + i) + 1;
7329 data3 = (char *) malloc (pagesize);
7330 if (!data3)
7331 return 12;
7332 if (read (fd, data3, pagesize) != pagesize)
7333 return 13;
7334 for (i = 0; i < pagesize; ++i)
7335 if (*(data + i) != *(data3 + i))
7336 return 14;
7337 close (fd);
7338 return 0;
7340 _ACEOF
7341 if ac_fn_c_try_run "$LINENO"; then :
7342 ac_cv_func_mmap_fixed_mapped=yes
7343 else
7344 ac_cv_func_mmap_fixed_mapped=no
7346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7347 conftest.$ac_objext conftest.beam conftest.$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7352 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7353 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7355 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7358 rm -f conftest.mmap conftest.txt
7361 #-----------------------------------------------------------------------------
7364 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7365 # it switched on by default, and we use the host compiler, so it compiles AROS
7366 # code with this enabled resulting in link failures as we don't have support
7367 # for it.
7369 # We use two methods to disable it. For the host compiler (used to compile
7370 # some hosted modules), we test to see if the compiler supports stack
7371 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7372 # work on all platforms.
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7376 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7377 save_cflags="$CFLAGS"
7378 CFLAGS="$CFLAGS -fno-stack-protector"
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7383 main ()
7387 return 0;
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"; then :
7391 use_no_stack_protector="yes"
7392 else
7393 use_no_stack_protector="no"
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7397 $as_echo "$use_no_stack_protector" >&6; }
7398 if test "x-$use_no_stack_protector" = "x-yes" ; then
7399 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7401 CFLAGS="$save_cflags"
7403 #-----------------------------------------------------------------------------
7405 # Disable pointer-signedness warnings if the compiler recognises the option
7406 # (this only works for the host compiler at the moment)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7409 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7410 save_cflags="$CFLAGS"
7411 CFLAGS="$CFLAGS -Wno-pointer-sign"
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7416 main ()
7420 return 0;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 use_no_sign_warning="yes"
7425 else
7426 use_no_sign_warning="no"
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7430 $as_echo "$use_no_sign_warning" >&6; }
7431 if test "x-$use_no_sign_warning" = "x-yes" ; then
7432 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7434 CFLAGS="$save_cflags"
7436 #-----------------------------------------------------------------------------
7438 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7441 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7442 save_cflags="$CFLAGS"
7443 CFLAGS="$CFLAGS -fgnu89-inline"
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7448 main ()
7452 return 0;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 use_gnu89_inline="yes"
7457 else
7458 use_gnu89_inline="no"
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7462 $as_echo "$use_gnu89_inline" >&6; }
7463 if test "x-$use_gnu89_inline" = "x-yes" ; then
7464 gnu89_inline="-fgnu89-inline"
7466 CFLAGS="$save_cflags"
7469 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7470 # On GCC >= 4.0 -iquote should be used
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7473 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7474 CFLAGS="$CFLAGS -iquote."
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7479 main ()
7483 return 0;
7485 _ACEOF
7486 if ac_fn_c_try_compile "$LINENO"; then :
7487 has_iquote="yes"
7488 else
7489 has_iquote="no"
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7493 $as_echo "$has_iquote" >&6; }
7494 if test "x-$has_iquote" = "x-yes" ; then
7495 host_cflags_iquote=-iquote
7496 host_cflags_iquote_end=
7497 else
7498 host_cflags_iquote=-I
7499 host_cflags_iquote_end=-I-
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7503 $as_echo "$as_me: Performing target configuration..." >&6;}
7506 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7508 toolchain_needs_sysroot=no
7510 aros_warn_flags=
7511 aros_isa_flags=
7512 aros_config_cppflags=
7513 aros_config_cflags=
7514 aros_config_cxxflags=
7515 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7516 aros_config_ldflags=""
7518 aros_shared_default=yes
7520 aros_shared_cflags="-fPIC"
7521 aros_shared_aflags=""
7522 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7523 aros_kernel_ldflags="-Wl,-rpath,./lib"
7525 aros_kernel_ar_flags="cr"
7526 aros_target_ar_flags="cr"
7527 aros_target_nm_flags="-C -ul"
7528 aros_target_strip_flags="--strip-unneeded -R.comment"
7530 aros_compiler_libs=
7531 aros_arch_libs=
7533 aros_target_genmap="-Wl,-Map -Xlinker"
7535 # Native flavour stuff
7536 aros_serial_debug="0"
7538 # Palm native flavour stuff
7539 aros_palm_debug_hack="0"
7541 # Unix flavour stuff
7542 aros_nesting_supervisor="0"
7544 # Collect-aros stuff: "-ius" to ignore undefined symbols
7545 ignore_undefined_symbols=""
7547 # Check for X11 by default
7548 need_x11="auto"
7550 host_x_gfx=no
7551 host_sdl_gfx=no
7552 host_android_gfx=no
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7556 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7558 # Check whether --with-toolchain was given.
7559 if test "${with_toolchain+set}" = set; then :
7560 withval=$with_toolchain; aros_toolchain="$withval"
7561 else
7562 aros_toolchain="gnu"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7566 $as_echo "$aros_toolchain" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7570 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7571 # Check whether --enable-lto was given.
7572 if test "${enable_lto+set}" = set; then :
7573 enableval=$enable_lto; aros_config_lto="$enableval"
7574 else
7575 aros_config_lto="no"
7578 if test "$aros_config_lto" != "no"; then
7579 aros_config_lto="yes"
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7582 $as_echo "$aros_config_lto" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7585 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7586 # Check whether --enable-coverage was given.
7587 if test "${enable_coverage+set}" = set; then :
7588 enableval=$enable_coverage; aros_config_coverage="$enableval"
7589 else
7590 aros_config_coverage="no"
7593 if test "$aros_config_coverage" != "no"; then
7594 aros_config_coverage="yes"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7597 $as_echo "$aros_config_coverage" >&6; }
7599 use_ld_wrapper=yes
7601 case "$aros_toolchain" in
7602 *llvm*)
7603 # toolchain_needs_sysroot=yes
7604 toolchain_c_compiler="clang"
7605 toolchain_cxx_compiler="clang++"
7606 toolchain_cpp_preprocessor="clang -E"
7607 toolchain_ld="ld.lld"
7608 aros_ld="ld"
7609 toolchain_as="llvm-as"
7610 toolchain_ar="llvm-ar"
7611 toolchain_ranlib="llvm-ranlib"
7612 toolchain_nm="llvm-nm"
7613 toolchain_strip="true"
7614 toolchain_objcopy="llvm-objcopy"
7615 toolchain_objdump="llvm-objdump"
7617 *gnu*)
7618 toolchain_c_compiler="gcc"
7619 toolchain_cxx_compiler="g++"
7620 toolchain_cpp_preprocessor="gcc -E"
7621 toolchain_as="as"
7622 aros_ld="ld"
7623 if test "$aros_config_lto" != "yes"; then
7624 toolchain_ld="ld"
7625 toolchain_ar="ar"
7626 toolchain_ranlib="ranlib"
7627 toolchain_nm="nm"
7628 else
7629 toolchain_ld="ld.bfd"
7630 toolchain_ar="gcc-ar"
7631 toolchain_ranlib="gcc-ranlib"
7632 toolchain_nm="gcc-nm"
7634 toolchain_strip="strip"
7635 toolchain_objcopy="objcopy"
7636 toolchain_objdump="objdump"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7640 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7641 toolchain_c_compiler="cc"
7642 toolchain_cxx_compiler="c++"
7643 toolchain_cpp_preprocessor="cpp"
7644 toolchain_ld="ld"
7645 aros_ld="ld"
7646 toolchain_as="as"
7647 toolchain_ar="ar"
7648 toolchain_ranlib="ranlib"
7649 toolchain_nm="nm"
7650 toolchain_strip="strip"
7651 toolchain_objcopy="objcopy"
7652 toolchain_objdump="objdump"
7654 esac
7656 #-----------------------------------------------------------------------------
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7659 $as_echo_n "checking which type of build to do... " >&6; }
7660 # Check whether --enable-build_type was given.
7661 if test "${enable_build_type+set}" = set; then :
7662 enableval=$enable_build_type; build_type=$enableval
7663 else
7664 build_type="personal"
7668 if test "$build_type" = "nightly"; then
7669 build_type_string="NIGHTLY"
7670 elif test "$build_type" = "snapshot"; then
7671 build_type_string="SNAPSHOT"
7672 elif test "$build_type" = "milestone"; then
7673 build_type_string="MILESTONE"
7674 elif test "$build_type" = "release"; then
7675 build_type_string="RELEASE"
7676 else
7677 build_type_string="PERSONAL"
7678 build_type="personal"
7681 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7684 $as_echo "$build_type" >&6; }
7686 #-----------------------------------------------------------------------------
7687 all_debug_types="messages stack modules mungwall symbols"
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7690 $as_echo_n "checking which debug types to enable... " >&6; }
7691 # Check whether --enable-debug was given.
7692 if test "${enable_debug+set}" = set; then :
7693 enableval=$enable_debug; debug="$enableval"
7694 else
7695 debug=""
7699 if test "$debug" = "" -o "$debug" = "no"; then
7700 debug="none"
7701 elif test "$debug" = "yes"; then
7702 debug="all"
7705 if test "$debug" = "all" ; then
7706 debug="messages stack modules symbols"
7707 for d in $all_debug_types; do
7708 export aros_${d}_debug="1"
7709 done
7710 else
7711 for d in $all_debug_types; do
7712 export aros_${d}_debug="0"
7713 done
7716 if test "$debug" != "none"; then
7717 debug=`echo $debug | sed s/,/\ /g`
7718 for d in $debug; do
7719 found="0"
7720 for d2 in $all_debug_types; do
7721 if test "$d2" = "$d"; then
7722 found="1"
7723 break
7725 done
7726 if test "$found" = "0"; then
7727 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7729 export aros_${d}_debug="1"
7730 done
7731 aros_debug="yes"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7734 $as_echo "$debug" >&6; }
7736 if test "$aros_messages_debug" = "1"; then
7737 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7738 else
7739 aros_messages_debug=""
7741 if test "$aros_symbols_debug" = "1"; then
7742 aros_symbols_debug="-g"
7743 else
7744 aros_symbols_debug=""
7747 # These are the flags to pass when compiling debugged programs
7748 aros_debug_cppflags="$aros_messages_debug"
7749 aros_debug_cflags="$aros_symbols_debug"
7750 aros_debug_cxxflags=
7751 aros_debug_aflags=""
7752 aros_debug_ldflags="$aros_symbols_debug"
7754 #-----------------------------------------------------------------------------
7755 # Checking for distcc and ccache.
7757 # Always apply the transforms in this particular order. Basically you should
7758 # always run 'ccache distcc compiler' in that order for the best performance.
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7761 $as_echo_n "checking whether to enable distcc... " >&6; }
7762 # Check whether --enable-distcc was given.
7763 if test "${enable_distcc+set}" = set; then :
7764 enableval=$enable_distcc; distcc="$enableval"
7765 else
7766 distcc="no"
7769 if test "$distcc" != "" -a "$distcc" != "no"; then
7770 # AC_CHECK_PROG will print out the result in this case
7771 # Extract the first word of "distcc", so it can be a program name with args.
7772 set dummy distcc; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_path_DISTCC+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 case $DISTCC in
7779 [\\/]* | ?:[\\/]*)
7780 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7794 done
7795 done
7796 IFS=$as_save_IFS
7798 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7800 esac
7802 DISTCC=$ac_cv_path_DISTCC
7803 if test -n "$DISTCC"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7805 $as_echo "$DISTCC" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7812 else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7818 $as_echo_n "checking whether to enable ccache... " >&6; }
7819 # Check whether --enable-ccache was given.
7820 if test "${enable_ccache+set}" = set; then :
7821 enableval=$enable_ccache; ccache="$enableval"
7822 else
7823 ccache="no"
7826 if test "$ccache" != "" -a "$ccache" != "no"; then
7827 # AC_CHECK_PROG will print out the result in this case
7828 # Extract the first word of "ccache", so it can be a program name with args.
7829 set dummy ccache; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_CCACHE+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 if test -n "$CCACHE"; then
7836 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_CCACHE="ccache"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7855 CCACHE=$ac_cv_prog_CCACHE
7856 if test -n "$CCACHE"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7858 $as_echo "$CCACHE" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7870 #-----------------------------------------------------------------------------
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7872 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7874 # Check whether --with-kernel-gcc-version was given.
7875 if test "${with_kernel_gcc_version+set}" = set; then :
7876 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7877 else
7878 kernel_tool_version=""
7881 if test "$kernel_tool_version" != "" ; then
7882 msg_result=$kernel_tool_version
7883 else
7884 msg_result="default"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7887 $as_echo "$msg_result" >&6; }
7889 #-----------------------------------------------------------------------------
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7891 $as_echo_n "checking what optimization flags to use... " >&6; }
7893 # Check whether --with-optimization was given.
7894 if test "${with_optimization+set}" = set; then :
7895 withval=$with_optimization; optimization_level="$withval"
7896 else
7897 optimization_level="unknown"
7900 if test "$optimization_level" = "unknown"; then
7901 optimization="default"
7902 if test "$debug" != "none"; then
7903 optimization_level="-O0"
7904 else
7905 optimization_level="-O2"
7907 else
7908 optimization="$optimization_level"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7911 $as_echo "$optimization" >&6; }
7913 paranoia_default=yes
7914 #-----------------------------------------------------------------------------
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7916 $as_echo_n "checking which paranoia flags to use... " >&6; }
7918 # Check whether --with-paranoia was given.
7919 if test "${with_paranoia+set}" = set; then :
7920 withval=$with_paranoia; paranoia_flags="$withval"
7921 else
7922 paranoia_flags="$paranoia_default"
7925 if test "$paranoia_flags" = "no"; then
7926 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7927 msg_result="none"
7928 else
7929 if test "$paranoia_flags" = "yes"; then
7930 paranoia_flags="-Wall -Werror"
7932 msg_result="$paranoia_flags"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7935 $as_echo "$msg_result" >&6; }
7936 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7938 #-----------------------------------------------------------------------------
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7940 $as_echo_n "checking what target variant to enable... " >&6; }
7941 # Check whether --enable-target_variant was given.
7942 if test "${enable_target_variant+set}" = set; then :
7943 enableval=$enable_target_variant; target_variant=$enableval
7944 else
7945 target_variant=""
7948 if test "$target_variant" = ""; then
7949 aros_target_variant=""
7950 aros_target_suffix=""
7951 enableval="none"
7952 else
7953 aros_target_variant="$target_variant"
7954 aros_target_suffix="-$target_variant"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7957 $as_echo "$enableval" >&6; }
7959 #-----------------------------------------------------------------------------
7960 # Target-specific defaults. You can override then on a per-target basis.
7962 # Bootloader name. Currently used by PC target.
7963 target_bootloader="none"
7964 PLATFORM_EXECSMP=
7965 ENABLE_EXECSMP=
7967 #-----------------------------------------------------------------------------
7968 # Additional options for some specific targets
7970 case "$aros_target_variant" in
7971 ios)
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7973 $as_echo_n "checking XCode path... " >&6; }
7975 # Check whether --with-xcode was given.
7976 if test "${with_xcode+set}" = set; then :
7977 withval=$with_xcode; aros_xcode_path="$withval"
7978 else
7979 aros_xcode_path="/Developer"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7983 $as_echo "$aros_xcode_path" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7986 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7988 # Check whether --with-sdk-version was given.
7989 if test "${with_sdk_version+set}" = set; then :
7990 withval=$with_sdk_version; aros_sdk_version="$withval"
7991 else
7992 aros_sdk_version="4.1"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7996 $as_echo "$aros_sdk_version" >&6; }
8000 "android")
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8002 $as_echo_n "checking Android SDK path... " >&6; }
8004 # Check whether --with-sdk was given.
8005 if test "${with_sdk+set}" = set; then :
8006 withval=$with_sdk; aros_android_sdk="$withval"
8007 else
8008 aros_android_sdk=$default_android_sdk
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8012 $as_echo "$aros_android_sdk" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8015 $as_echo_n "checking Android NDK path... " >&6; }
8017 # Check whether --with-ndk was given.
8018 if test "${with_ndk+set}" = set; then :
8019 withval=$with_ndk; aros_android_ndk="$withval"
8020 else
8021 aros_android_ndk="none"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8025 $as_echo "$aros_android_ndk" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8028 $as_echo_n "checking what Android SDK version to use... " >&6; }
8030 # Check whether --with-sdk-version was given.
8031 if test "${with_sdk_version+set}" = set; then :
8032 withval=$with_sdk_version; aros_sdk_version="$withval"
8033 else
8034 aros_sdk_version="12"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8038 $as_echo "$aros_sdk_version" >&6; }
8040 aros_android_level=android-$aros_sdk_version
8041 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8042 echo "Platform $aros_android_level is not installed in your SDK"
8043 echo "Use --with-sdk-version=<API level number> to select another platform version"
8044 echo "You can check what plaform versions are installed in your SDK"
8045 echo "by examining contents of $aros_android_sdk/platforms directory"
8046 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8049 export PATH="$aros_android_sdk/tools:$PATH"
8050 # Extract the first word of "$android_tool", so it can be a program name with args.
8051 set dummy $android_tool; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if ${ac_cv_path_android_tool+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 case $android_tool in
8058 [\\/]* | ?:[\\/]*)
8059 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8073 done
8074 done
8075 IFS=$as_save_IFS
8078 esac
8080 android_tool=$ac_cv_path_android_tool
8081 if test -n "$android_tool"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8083 $as_echo "$android_tool" >&6; }
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8090 req_avail=yes
8091 if test "$android_tool" = ""; then
8092 req_avail=no
8094 if test "$android_tool" = "no"; then
8095 req_avail=no
8097 if test "$req_avail" = "no"; then
8098 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8101 if test "$aros_android_ndk" != "none"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8103 $as_echo_n "checking what Android NDK version to use... " >&6; }
8105 # Check whether --with-ndk-version was given.
8106 if test "${with_ndk_version+set}" = set; then :
8107 withval=$with_ndk_version; aros_ndk_version="$withval"
8108 else
8109 aros_ndk_version="9"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8113 $as_echo "$aros_ndk_version" >&6; }
8116 # Extract the first word of "ant", so it can be a program name with args.
8117 set dummy ant; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_path_ant+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 case $ant in
8124 [\\/]* | ?:[\\/]*)
8125 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8139 done
8140 done
8141 IFS=$as_save_IFS
8144 esac
8146 ant=$ac_cv_path_ant
8147 if test -n "$ant"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8149 $as_echo "$ant" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8156 if test "$ant" = ""; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8158 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8162 $as_echo_n "checking Build debug or release apk... " >&6; }
8164 # Check whether --with-apk-version was given.
8165 if test "${with_apk_version+set}" = set; then :
8166 withval=$with_apk_version; aros_android_antapk=$withval
8167 else
8168 aros_android_antapk=release
8171 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8172 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8175 $as_echo "$aros_android_antapk" >&6; }
8177 if test "$host_os" = "mingw32"; then
8178 android_tool="cmd //c $android_tool"
8181 need_dlopen="no"
8184 esac
8186 #-----------------------------------------------------------------------------
8187 # External toolchains
8188 kernel_tool_prefix="none"
8189 aros_tool_prefix="none"
8190 elf_tool_prefix="${target_cpu}-elf-"
8192 # This is the target configuration switch.
8193 case "$target_os" in
8194 linux*)
8195 aros_target_arch="linux"
8196 aros_target_family="unix"
8197 case "$target_cpu" in
8198 *m68k*)
8199 aros_target_cpu="m68k"
8200 aros_object_format="m68kelf"
8201 aros_flavour="emulcompat"
8202 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8203 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8204 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8205 gcc_target_cpu="mc68000"
8207 *i?86*)
8208 aros_target_cpu="i386"
8209 aros_object_format="elf_i386"
8210 aros_flavour="emulation"
8211 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8212 aros_kernel_ldflags="-Wl,-melf_i386"
8213 aros_nominal_depth=8
8214 gcc_target_cpu="i386"
8215 pci_hidd_target="hidd-pci-linux"
8216 android_tool_dir_prefix="x86"
8217 android_tool_prefix="i686-android-linux"
8218 android_ndk_arch="x86"
8220 *x86_64*)
8221 aros_target_cpu="x86_64"
8222 aros_object_format="elf_x86_64"
8223 aros_flavour="emulation"
8224 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8225 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8226 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8227 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8228 aros_nominal_depth=8
8229 pci_hidd_target="hidd-pci-linux"
8231 *powerpc*)
8232 aros_target_cpu="ppc"
8233 aros_object_format="elf32ppc"
8234 aros_flavour="emulation"
8235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8236 aros_nominal_depth=8
8237 gcc_target_cpu="ppc"
8239 # TODO
8240 # Same as powerpc, but I need this for the nightly build to work again.
8241 # Actually, the nightly should be made working with powerpc target.
8242 # That just was too much work for the moment, another week or two.
8243 *ppc*)
8244 aros_target_cpu="ppc"
8245 aros_object_format="elf32ppc"
8246 aros_flavour="emulation"
8247 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8248 aros_nominal_depth=8
8249 gcc_target_cpu="ppc"
8251 *aarch64*)
8252 aros_target_cpu="aarch64"
8253 target_cpu="aarch64"
8254 aros_object_format="aarch64elf_aros"
8255 aros_flavour="emulation"
8256 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8257 gcc_target_cpu="aarch64"
8258 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8259 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8260 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8261 aros_arch_libs="-laeabi"
8262 gcc_default_float_abi="hard"
8263 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8265 *armhf*)
8266 aros_target_cpu="arm"
8267 target_cpu="arm"
8268 aros_object_format="armelf_aros"
8269 aros_flavour="emulation"
8270 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8271 gcc_target_cpu="arm"
8272 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8273 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8274 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8275 aros_arch_libs="-laeabi"
8276 gcc_default_float_abi="hard"
8277 android_tool_dir_prefix="arm-linux-androideabi"
8278 android_tool_prefix="arm-linux-androideabi"
8279 android_ndk_arch="arm"
8280 kernel_tool_prefix="arm-linux-gnueabihf-"
8282 *arm*)
8283 aros_target_cpu="arm"
8284 aros_object_format="armelf_aros"
8285 aros_flavour="emulation"
8286 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8287 gcc_target_cpu="arm"
8288 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8289 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8290 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8291 aros_arch_libs="-laeabi"
8292 android_tool_dir_prefix="arm-linux-androideabi"
8293 android_tool_prefix="arm-linux-androideabi"
8294 android_ndk_arch="arm"
8295 kernel_tool_prefix="arm-linux-gnueabi-"
8298 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8300 esac
8301 case "$aros_target_variant" in
8302 android)
8304 if test "$android_ndk_arch" = ""; then
8305 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8308 aros_nominal_width=320
8309 aros_nominal_height=480
8310 if test "$aros_android_ndk" = "none"; then
8311 aros_kernel_cflags="-mandroid"
8312 aros_kernel_ldflags="-mandroid"
8313 CFLAGS="-mandroid"
8314 else
8315 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8316 kernel_tool_version=""
8317 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8318 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8319 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8320 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8321 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8323 need_x11=no
8324 host_android_gfx=yes
8325 # Disable implicit PIC mode
8326 aros_config_cflags="$aros_config_cflags -fno-pic"
8327 kernel_tool_prefix="$android_tool_prefix-"
8329 esac
8333 aros_target_arch="pc"
8334 aros_shared_default="no"
8335 target_bootloader="grub2"
8336 case "$target_cpu" in
8337 *i?86*)
8338 aros_target_cpu="i386"
8341 if test "$aros_object_format" = "" ; then
8342 aros_object_format="elf_i386"
8344 aros_flavour="standalone"
8345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8346 aros_kernel_ldflags="-Wl,-melf_i386"
8347 aros_nominal_width=640
8348 aros_nominal_height=480
8349 gcc_target_cpu="i386"
8351 *x86_64*)
8352 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8353 aros_target_cpu="x86_64"
8354 aros_serial_debug=1
8355 if test "$aros_object_format" = "" ; then
8356 aros_object_format="elf_x86_64"
8358 aros_flavour="standalone"
8359 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8360 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8361 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8362 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8363 aros_kernel_ldflags=""
8364 aros_nominal_width=640
8365 aros_nominal_height=480
8366 case "$aros_target_variant" in
8367 smp)
8368 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8370 esac
8373 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8375 esac
8378 prep)
8379 aros_target_arch="prep"
8380 aros_shared_default="no"
8381 aros_target_cpu="ppc"
8382 aros_object_format="elf32ppc"
8383 aros_flavour="ppcnative"
8384 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8385 aros_kernel_ldflags=""
8386 aros_nominal_width=640
8387 aros_nominal_height=480
8388 gcc_target_cpu="ppc"
8391 freebsd*)
8392 aros_target_arch="freebsd"
8393 aros_target_family="unix"
8394 aros_target_cpu="i386"
8395 aros_flavour="emulation"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8397 gcc_target_cpu="i386"
8399 aros_target_strip_flags="-x"
8402 darwin*)
8403 aros_target_arch="darwin"
8404 aros_target_family="unix"
8405 aros_flavour="emulation"
8406 case "$target_cpu" in
8407 *i?86*)
8408 aros_ios_platform="iPhoneSimulator"
8409 aros_target_cpu="i386"
8410 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8411 aros_kernel_ldflags=""
8412 aros_macosx_version="10.4"
8413 aros_nominal_depth=8
8414 gcc_target_cpu="i386"
8415 aros_object_format="elf_i386"
8416 aros_kernel_ar_flags="-cr"
8417 aros_target_strip_flags="-x"
8418 kernel_tool_flags="-m32"
8420 *x86_64*)
8421 aros_target_cpu="x86_64"
8422 aros_object_format="elf_x86_64"
8423 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8424 aros_macosx_version="10.6"
8425 aros_isa_flags="$aros_isa_flags -mcmodel=large"
8426 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8427 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8428 aros_kernel_cflags="-m64"
8429 aros_kernel_ldflags="-m64"
8430 aros_nominal_depth=8
8431 aros_kernel_ar="ar"
8432 aros_kernel_ar_flags="-cr"
8433 aros_kernel_ld="ld"
8434 aros_kernel_as="as"
8435 aros_kernel_ranlib="ranlib"
8436 aros_kernel_nm="nm"
8437 aros_kernel_strip="strip"
8438 kernel_tool_prefix="i686-apple-darwin10-"
8440 *ppc*)
8441 aros_target_cpu="ppc"
8442 aros_object_format="elf32ppc"
8443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8444 aros_kernel_ldflags=""
8445 aros_macosx_version="10.0"
8446 aros_nominal_depth=8
8447 gcc_target_cpu="ppc"
8448 aros_kernel_ar="ar"
8449 aros_kernel_ar_flags="-cr"
8450 aros_kernel_ld="ld -arch ppc"
8451 aros_kernel_as="as -arch ppc"
8452 aros_kernel_ranlib="ranlib -arch ppc"
8453 aros_kernel_nm="nm -arch ppc"
8454 aros_kernel_strip="strip -arch ppc"
8455 kernel_tool_prefix="powerpc-apple-darwin10-"
8457 *arm*)
8458 aros_ios_platform="iPhoneOS"
8459 aros_target_cpu="arm"
8460 aros_object_format="armelf_aros"
8461 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8462 aros_arch_libs="-laeabi"
8463 aros_nominal_depth=8
8464 gcc_target_cpu="arm"
8465 aros_kernel_ar="ar"
8466 aros_kernel_ar_flags="-cr"
8467 aros_kernel_ld="ld -arch arm"
8468 aros_kernel_ranlib="ranlib -arch arm"
8469 kernel_tool_prefix="arm-apple-darwin10-"
8470 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8473 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8475 esac
8476 case "$aros_target_variant" in
8477 ios)
8478 aros_ios_version="3.0"
8479 aros_nominal_width=320
8480 aros_nominal_height=480
8481 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8482 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8483 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8484 need_x11=no
8485 # This is here because it may depend on iOS or SDK version
8486 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8487 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8488 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8491 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8492 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8494 esac
8497 dragonfly*)
8498 aros_target_arch="dragonfly"
8499 aros_target_family="unix"
8500 aros_flavour="emulation"
8501 case "$target_cpu" in
8502 *i?86*)
8503 aros_target_cpu="i386"
8504 aros_object_format="elf_i386"
8505 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8507 *x86_64*)
8508 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8509 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8510 aros_target_cpu="x86_64"
8511 aros_object_format="elf_x86_64"
8512 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8515 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8517 esac
8520 netbsd*)
8521 aros_target_arch="netbsd"
8522 aros_target_family="unix"
8523 case "$target_cpu" in
8524 *m68k*)
8525 aros_target_cpu="m68k"
8526 aros_object_format="m68kelf"
8527 aros_flavour="emulcompat"
8528 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8529 gcc_target_cpu="mc68000"
8531 *i?86*)
8532 aros_target_cpu="i386"
8533 aros_object_format="elf_i386"
8534 aros_flavour="emulation"
8535 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8536 aros_nominal_depth=8
8537 gcc_target_cpu="i386"
8540 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8542 esac
8543 aros_target_genmap="-Wl,-M -Xlinker >"
8544 aros_flavour="emulation"
8545 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8548 openbsd*)
8549 aros_target_arch="openbsd"
8550 aros_target_family="unix"
8551 case "$target_cpu" in
8552 *i?86*)
8553 aros_target_cpu="i386"
8554 aros_object_format="elf_i386"
8555 aros_flavour="emulation"
8556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8557 gcc_target_cpu="i386"
8560 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8562 esac
8563 aros_target_genmap="-Wl,-M -Xlinker >"
8564 aros_target_nm_flags="-u"
8565 aros_flavour="emulation"
8568 solaris*)
8569 aros_target_arch="solaris"
8570 aros_target_family="unix"
8571 case "$target_cpu" in
8572 *i?86*)
8573 aros_target_cpu="i386"
8574 aros_object_format="elf_i386"
8575 aros_flavour="emulation"
8576 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8577 aros_nominal_depth=8
8578 gcc_target_cpu="i386"
8580 *sparc*)
8581 aros_target_cpu="sparc"
8582 aros_object_format="elf_sparc"
8583 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8584 gcc_target_cpu="sparc"
8587 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8589 esac
8590 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8591 aros_flavour="emulation"
8594 morphos*)
8595 aros_target_arch="morphos"
8596 aros_shared_default="no"
8597 aros_target_cpu="ppc"
8598 aros_object_format="elf_ppc"
8599 aros_flavour="nativecompat"
8600 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8601 gcc_target_cpu="ppc"
8604 sam440)
8605 aros_target_arch="sam440"
8606 aros_shared_default="no"
8607 aros_target_cpu="ppc"
8608 aros_object_format="elf32ppc"
8609 aros_flavour="ppcnative"
8610 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8611 aros_kernel_ldflags=""
8612 aros_nominal_width=1024
8613 aros_nominal_height=768
8614 aros_nominal_depth=24
8615 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8616 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8617 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8618 gcc_target_cpu="powerpc"
8621 efika)
8622 aros_target_arch="efika"
8623 aros_shared_default="no"
8624 aros_target_cpu="arm"
8625 aros_object_format="armelf_aros"
8626 aros_flavour="standalone"
8627 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8628 aros_kernel_ldflags=""
8629 aros_nominal_width=1024
8630 aros_nominal_height=600
8631 aros_arch_libs="-laeabi"
8632 gcc_default_cpu="armv7-a"
8633 gcc_default_fpu="vfpv3"
8634 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8635 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8636 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8637 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8638 if test "$optimization" = "default"; then
8639 optimization_level="-Os"
8641 case "$target_cpu" in
8642 *armhf*)
8643 gcc_default_float_abi="hard"
8644 target_cpu=arm
8645 aros_target_cpu=arm
8647 *arm*)
8648 gcc_default_float_abi="softfp"
8651 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8653 esac
8656 chrp)
8657 aros_target_arch="chrp"
8658 aros_shared_default="no"
8659 aros_target_cpu="ppc"
8660 aros_object_format="elf32ppc"
8661 aros_flavour="ppcnative"
8662 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8663 aros_kernel_ldflags=""
8664 aros_nominal_width=640
8665 aros_nominal_height=480
8666 aros_isa_flags="$aros_isa_flags -mno-toc"
8667 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8668 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8669 gcc_target_cpu="powerpc"
8670 case "$aros_target_variant" in
8671 efika)
8672 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8673 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8675 esac
8678 r*pi)
8679 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8680 aros_flavour="standalone"
8681 aros_target_arch="raspi"
8683 aros_shared_default="no"
8685 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8687 case "$target_cpu" in
8688 *aarch64*)
8689 aros_target_cpu="aarch64"
8690 gcc_default_cpu="aarch64"
8691 aros_object_format="aarch64elf_aros"
8693 *armhf*)
8694 aros_target_cpu="arm"
8695 gcc_default_cpu="armv6zk"
8696 gcc_default_cpu_tune="arm1176jzf-s"
8697 aros_object_format="armelf_aros"
8698 aros_isa_flags="$aros_isa_flags -marm"
8699 aros_config_cflags="$aros_config_cflags"
8700 aros_config_cxxflags="$aros_config_cxxflags"
8701 aros_config_aflags="$aros_config_aflags -marm"
8702 aros_kernel_cflags="$aros_kernel_cflags -marm"
8703 aros_target_mkdep="$aros_target_mkdep -Darm"
8704 aros_arch_libs="-laeabi"
8706 *arm*)
8707 aros_target_cpu="arm"
8708 gcc_default_cpu="armv6zk"
8709 gcc_default_cpu_tune="arm1176jzf-s"
8710 aros_object_format="armelf_aros"
8711 aros_isa_flags="$aros_isa_flags -marm"
8712 aros_config_cflags="$aros_config_cflags"
8713 aros_config_cxxflags="$aros_config_cxxflags"
8714 aros_config_aflags="$aros_config_aflags -marm"
8715 aros_kernel_cflags="$aros_kernel_cflags -marm"
8716 aros_target_mkdep="$aros_target_mkdep -Darm"
8717 aros_arch_libs="-laeabi"
8720 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8722 esac
8724 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8725 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8726 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8727 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8729 case "$aros_target_variant" in
8730 smp)
8731 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8733 esac
8736 stm32f7_discovery)
8737 aros_flavour="standalone"
8738 aros_target_arch="stm32f7_discovery"
8739 aros_target_cpu="arm"
8740 aros_target_cpu_mode="thumb2"
8741 aros_object_format="armelf_aros"
8742 aros_shared_default="no"
8744 gcc_default_cpu="armv7e-m"
8745 gcc_default_cpu_tune="cortex-m7"
8746 gcc_default_fpu="fpv5-sp-d16"
8747 gcc_default_float_abi="hard"
8749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8752 amiga*)
8753 aros_target_arch="amiga"
8754 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8755 aros_shared_default="no"
8757 case "$target_cpu" in
8758 *m68k*)
8759 # Check whether --enable-amigaos_compliance was given.
8760 if test "${enable_amigaos_compliance+set}" = set; then :
8761 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8764 aros_enable_mmu=no
8765 aros_target_cpu="m68k"
8766 aros_object_format="m68kelf"
8767 aros_flavour="standcompat"
8768 gcc_target_cpu="m68000"
8769 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8770 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8771 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8772 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8773 if test "$optimization" = "default"; then
8774 optimization_level="-Os"
8776 aros_config_aflags="$aros_config_aflags"
8777 aros_target_strip_flags="-R.comment --strip-debug"
8778 aros_nominal_width=640
8779 aros_nominal_height=256
8780 aros_nominal_depth=2
8782 *ppc*)
8783 aros_cpu="ppc"
8784 aros_flavour="native"
8785 gcc_target_cpu="ppc"
8788 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8790 esac
8793 mingw*)
8794 aros_target_arch="mingw32"
8795 aros_shared_default="no"
8796 aros_flavour="emulation"
8797 aros_shared_cflags=""
8798 need_crosstools="yes"
8799 need_dlopen="no"
8800 rescomp="windres"
8801 case "$target_cpu" in
8802 *i?86*)
8803 aros_target_cpu="i386"
8804 aros_object_format="elf_i386"
8805 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8806 aros_nominal_depth=8
8807 gcc_target_cpu="i386"
8809 kernel_tool_prefix="i386-mingw32-"
8811 *x86_64*)
8812 aros_target_cpu="x86_64"
8813 aros_object_format="elf_x86_64"
8814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8815 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8816 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8817 aros_nominal_depth=8
8818 kernel_tool_prefix="x86_64-w64-mingw32-"
8820 *arm*)
8821 aros_target_cpu="arm"
8822 aros_object_format="armelf_aros"
8823 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8824 aros_arch_libs="-laeabi"
8825 aros_nominal_depth=8
8826 gcc_target_cpu="arm"
8827 gcc_default_float_abi="soft"
8828 kernel_tool_prefix="arm-mingw32ce-"
8829 aros_nominal_width=160
8830 aros_nominal_height=160
8833 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8835 esac
8836 if test $host_os = "cygwin"; then
8837 aros_kernel_cflags="-mno-cygwin"
8840 pp*)
8841 aros_target_arch="pp"
8842 aros_shared_default="no"
8843 case "$target_cpu" in
8844 *m68k*)
8845 aros_target_cpu="m68k"
8846 aros_object_format="m68kelf"
8847 aros_flavour="palmnative"
8848 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8849 aros_nominal_width=160
8850 aros_nominal_height=160
8851 aros_nominal_depth=1
8852 aros_target_ar_flags="cru"
8853 aros_compiler_libs="-lgcc1"
8854 aros_shared_default=no
8855 aros_shared_cflags="-fpic"
8856 aros_shared_aflags=""
8857 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8858 aros_kernel_ldflags="-Wl,-rpath,./lib"
8859 aros_debug_cppflags="$aros_messages_debug"
8860 aros_debug_cflags="$aros_symbols_debug"
8861 aros_debug_aflags=""
8862 aros_debug_ldflags="$aros_symbols_debug"
8863 aros_mungwall_debug="0"
8864 aros_modules_debug="0"
8865 gcc_target_cpu="mc68000"
8866 ignore_undefined_symbols="-ius"
8869 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8871 esac
8874 mac*)
8875 aros_target_arch="mac"
8876 aros_shared_default="no"
8877 case "$target_cpu" in
8878 *m68k*)
8879 aros_target_cpu="m68k"
8880 aros_object_format="m68kelf"
8881 aros_flavour="mac68knative"
8882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8883 aros_nominal_width=512
8884 aros_nominal_height=384
8885 aros_nominal_depth=8
8886 aros_target_ar_flags="cru"
8887 aros_compiler_libs="-lgcc1"
8888 aros_shared_default=no
8889 aros_shared_cflags="-fpic"
8890 aros_shared_aflags=""
8891 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8892 aros_kernel_ldflags="-Wl,-rpath,./lib"
8893 aros_debug_cppflags="$aros_messages_debug"
8894 aros_debug_cflags="$aros_symbols_debug"
8895 aros_debug_aflags=""
8896 aros_debug_ldflags="$aros_symbols_debug"
8897 aros_mungwall_debug="0"
8898 aros_modules_debug="0"
8899 gcc_target_cpu="mc68000"
8900 ignore_undefined_symbols="-ius"
8903 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8905 esac
8909 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8911 esac
8913 #-----------------------------------------------------------------------------
8914 crosstools_guess="yes"
8915 aros_target_toolchain="no"
8916 aros_config_sysroot=""
8917 aros_kernel_sysroot=""
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8920 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8922 # Check whether --with-kernel-toolchain-prefix was given.
8923 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8924 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8928 $as_echo "$kernel_tool_prefix" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8931 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8933 # Check whether --with-elf-toolchain-prefix was given.
8934 if test "${with_elf_toolchain_prefix+set}" = set; then :
8935 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8936 crosstools_guess="no"
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8940 $as_echo "$elf_tool_prefix" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8943 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8945 # Check whether --with-aros-toolchain was given.
8946 if test "${with_aros_toolchain+set}" = set; then :
8947 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8948 crosstools_guess="no"
8951 if test "$aros_tool_prefix" = "yes" ; then
8952 aros_tool_prefix=$aros_target_cpu-aros-
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8955 $as_echo "$aros_tool_prefix" >&6; }
8957 #-----------------------------------------------------------------------------
8958 # Checking if we should build crosstools..
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8960 $as_echo_n "checking whether to build crosstools... " >&6; }
8961 # Check whether --enable-crosstools was given.
8962 if test "${enable_crosstools+set}" = set; then :
8963 enableval=$enable_crosstools; crosstools="$enableval"
8964 else
8965 crosstools="$crosstools_guess"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8969 $as_echo "$crosstools" >&6; }
8971 if test "${crosstools}" = "yes"; then
8972 if test "${crosstools_guess}" = "no"; then
8973 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8977 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8978 aros_target_toolchain="yes"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8982 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8984 # Check whether --with-aros-toolchain-install was given.
8985 if test "${with_aros_toolchain_install+set}" = set; then :
8986 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8989 if test "x$aros_toolchain_install" = "x"; then
8990 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8991 else
8992 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8993 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8994 if test "$crosstools_guess" = "no" ; then
8995 toolchain_needs_sysroot=yes
8997 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8998 aros_kernel_sysroot = $aros_config_sysroot
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9003 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
9006 $as_echo_n "checking If we need to use --sysroot... " >&6; }
9007 if test "$toolchain_needs_sysroot" = "yes" ; then
9008 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
9011 $as_echo "$toolchain_needs_sysroot" >&6; }
9013 #-----------------------------------------------------------------------------
9014 if test "$aros_toolchain" = "gnu" ; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9016 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9019 # Check whether --with-binutils-version was given.
9020 if test "${with_binutils_version+set}" = set; then :
9021 withval=$with_binutils_version; use_binutils_version="$withval"
9022 else
9023 use_binutils_version=""
9026 if test "$use_binutils_version" = ""; then
9027 target_binutils_version="$default_binutils_version"
9028 else
9029 target_binutils_version="$use_binutils_version"
9031 if test "$aros_toolchain" = "gnu" ; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9033 $as_echo "$target_binutils_version" >&6; }
9037 # Helper to identify gcc version
9040 #-----------------------------------------------------------------------------
9041 if test "$aros_toolchain" = "gnu" ; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9043 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9046 # Check whether --with-gcc-version was given.
9047 if test "${with_gcc_version+set}" = set; then :
9048 withval=$with_gcc_version; use_gcc_version="$withval"
9049 else
9050 use_gcc_version=""
9053 if test "$use_gcc_version" = ""; then
9054 if test "${crosstools}" = "no"; then
9055 if test "x$aros_toolchain_install" != "x"; then
9057 target_gcc_version=""
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9059 $as_echo_n "checking gcc version... " >&6; }
9060 if ${ax_cv_gcc_version+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9064 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9065 if test "x$ax_cv_gcc_version" = "x"; then :
9067 ax_cv_gcc_version=""
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9073 $as_echo "$ax_cv_gcc_version" >&6; }
9074 target_gcc_version=$ax_cv_gcc_version
9079 if test "$use_gcc_version" = ""; then
9080 target_gcc_version="$default_gcc_version"
9082 else
9083 target_gcc_version="$use_gcc_version"
9085 if test "$aros_toolchain" = "gnu" ; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9087 $as_echo "$target_gcc_version" >&6; }
9089 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9090 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9091 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9093 gcc_fix_bitfields="false"
9094 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9095 gcc_fix_bitfields="true"
9096 else
9097 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9098 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9099 gcc_fix_bitfields="true"
9104 if test "$gcc_fix_bitfields" = "true" ; then
9105 case "$aros_target_cpu" in
9106 *x86_64*)
9107 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9108 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9110 i386)
9111 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9112 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9114 esac
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9119 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9120 # Check whether --enable-objc was given.
9121 if test "${enable_objc+set}" = set; then :
9122 enableval=$enable_objc; objc="$enableval"
9123 else
9124 objc="no"
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9128 $as_echo "$objc" >&6; }
9129 if test "x$objc" = "xyes"; then
9130 objc_target="$objc"
9131 else
9132 objc_target="no-objc"
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9136 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9137 # Check whether --enable-java was given.
9138 if test "${enable_java+set}" = set; then :
9139 enableval=$enable_java; java="$enableval"
9140 else
9141 java="no"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9145 $as_echo "$java" >&6; }
9146 if test "x$java" != "xno"; then
9147 java_target="$java"
9148 else
9149 java_target="no-java"
9152 spec_obj_format="-m $aros_object_format"
9153 # Now process extra architecture-specific options.
9154 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9155 # as well as floating-point ABI.
9156 case "$aros_target_cpu" in
9157 *x86_64*)
9158 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9160 arm*)
9161 if test "$gcc_default_cpu" = ""; then
9162 gcc_default_cpu="armv6"
9164 if test "$gcc_default_fpu" = ""; then
9165 gcc_default_fpu="vfp"
9167 if test "$gcc_default_float_abi" = ""; then
9168 if test "$target_cpu" = "armhf"; then
9169 gcc_default_float_abi="hard"
9170 else
9171 gcc_default_float_abi="softfp"
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9176 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9178 # Check whether --with-cpu was given.
9179 if test "${with_cpu+set}" = set; then :
9180 withval=$with_cpu; aros_gcc_cpu="$withval"
9181 else
9182 aros_gcc_cpu=$gcc_default_cpu
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9186 $as_echo "$aros_gcc_cpu" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9189 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9191 # Check whether --with-fpu was given.
9192 if test "${with_fpu+set}" = set; then :
9193 withval=$with_fpu; aros_gcc_fpu="$withval"
9194 else
9195 aros_gcc_fpu=$gcc_default_fpu
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9199 $as_echo "$aros_gcc_fpu" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9202 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9204 # Check whether --with-float was given.
9205 if test "${with_float+set}" = set; then :
9206 withval=$with_float; aros_gcc_float_abi="$withval"
9207 else
9208 aros_gcc_float_abi=$gcc_default_float_abi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9212 $as_echo "$aros_gcc_float_abi" >&6; }
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9215 $as_echo_n "checking Which ARM mode to use... " >&6; }
9216 if test "$aros_target_cpu_mode" = ""; then
9217 aros_target_cpu_mode="arm32"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9219 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9220 else
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9222 $as_echo "$aros_target_cpu_mode" >&6; }
9225 case "$aros_target_cpu_mode" in
9226 arm32)
9227 gcc_default_mode="arm"
9228 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"
9230 arm64)
9231 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9233 thumb)
9234 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9236 thumb1)
9237 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9239 thumb2)
9240 gcc_default_mode="thumb"
9241 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9242 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9245 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9247 esac
9249 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9250 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9251 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9253 i386)
9254 aros_isa_flags="$aros_isa_flags -m32 -march=i486"
9255 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9256 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9258 esac
9260 # Some architectures may need custom ELF specs.
9261 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9262 elf_specs_in=config/${aros_object_format}-specs.in
9263 else
9264 elf_specs_in=config/elf-specs.in
9267 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9268 # Since we override specs, we may need to put these defines there
9269 if test "$gcc_target_cpu" != ""; then
9270 gcc_target_cpu="-D__${gcc_target_cpu}__"
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9274 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9276 # Check whether --with-portssources was given.
9277 if test "${with_portssources+set}" = set; then :
9278 withval=$with_portssources; with_portssrcdir=$withval
9279 else
9280 with_portssrcdir="default"
9283 if test "$with_portssrcdir" = "default"; then
9284 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9285 else
9286 AROS_PORTSSRCDIR="$with_portssrcdir"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9289 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9292 $as_echo_n "checking which bootloader to use... " >&6; }
9294 # Check whether --with-bootloader was given.
9295 if test "${with_bootloader+set}" = set; then :
9296 withval=$with_bootloader; target_bootloader=$withval
9297 else
9298 target_bootloader=$target_bootloader
9301 if test "$target_bootloader" = "none"; then
9302 aros_target_bootloader=""
9303 else
9304 aros_target_bootloader="$target_bootloader"
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9307 $as_echo "$target_bootloader" >&6; }
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9310 $as_echo_n "checking which icon-set to use... " >&6; }
9312 # Check whether --with-iconset was given.
9313 if test "${with_iconset+set}" = set; then :
9314 withval=$with_iconset; target_iconset=$withval
9315 else
9316 target_iconset="default"
9319 if test "$target_iconset" = "default"; then
9320 aros_target_iconset="Gorilla"
9321 target_iconset="default (Gorilla)"
9322 else
9323 aros_target_iconset="$target_iconset"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9326 $as_echo "$target_iconset" >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9329 $as_echo_n "checking which GUI Theme to use... " >&6; }
9331 # Check whether --with-theme was given.
9332 if test "${with_theme+set}" = set; then :
9333 withval=$with_theme; target_guitheme=$withval
9334 else
9335 target_guitheme="default"
9338 if test "$target_guitheme" = "default"; then
9339 aros_target_guitheme="Ice"
9340 else
9341 aros_target_guitheme="$target_guitheme"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9344 $as_echo "$aros_target_guitheme" >&6; }
9346 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9347 # for target code)
9348 cross_compiling=no
9350 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9351 cross_compiling=yes
9354 if test "$aros_host_cpu" == "x86_64" ; then
9355 if test "$aros_target_cpu" == "i386" ; then
9356 cross_compiling=no
9360 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9361 if test "$aros_host_arch" != "$aros_target_arch" ; then
9362 cross_compiling=yes
9364 else
9365 if test "$host_cc_elf" = "no" ; then
9366 cross_compiling=yes
9370 if test "$cross_compiling" = "no" ; then
9371 kernel_tool_prefix=""
9372 if test "$host_cc_elf" = "yes" ; then
9373 elf_tool_prefix=""
9377 if test "$kernel_tool_version" != ""; then
9378 kernel_tool_version="-$kernel_tool_version"
9381 #######################################################################
9382 ## Compute what toolchains to use, and their paths ##
9383 #######################################################################
9385 # This takes, as input:
9386 # crosstools {yes,no}
9387 # kernel_tool_version {"",[version]}
9388 # target_tool_version {"",[version]}
9389 # kernel_tool_prefix {none,[some-arch-os-]}
9390 # gnu-toolchain -:
9391 # target_tool_prefix ${aros_target_cpu}-aros-
9392 # aros_tool_prefix ${aros_target_cpu}-aros-
9394 # The output is
9395 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9396 # Where the 'kernel' binaries are located
9397 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9398 # Where the 'target' binaries are located
9399 # (not the symlink farm - that is aros_target_*!)
9401 # The rules are:
9402 # if crosstools then
9403 # if kernel_tools_prefix = "no-kernel-prefix-"
9404 # aros_kernel_* = crosstools cc paths
9405 # aros_kernel_cc = elf cc wrapper around crosstools cc
9406 # else
9407 # VALIDATE(${kernel_tools_prefix}*)
9408 # aros_kernel_* = ${kernel_tools_prefix}*
9409 # if ${kernel_tools_prefix}cc is an AROS gcc
9410 # aros_kernel_cc = ${kernel_tools_prefix}cc
9411 # else
9412 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9413 # fi
9414 # fi
9416 # orig_target_* = aros built crosstools
9417 # orig_target_cc = elf cc wrapper around crosstools cc
9418 # else
9419 # VALIDATE(${kernel_tools_prefix}*)
9421 # orig_target_* = aros_kernel_*
9422 # if aros_kernel_cc is an AROS gcc
9423 # orig_target_cc = aros_kernel_cc
9424 # else
9425 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9426 # fi
9427 # fi
9429 if test "$aros_toolchain" = "gnu" ; then
9430 target_tool_prefix="${aros_target_cpu}-aros-"
9431 elif test "$aros_toolchain" = "llvm" ; then
9432 target_tool_prefix="bin/"
9435 if test "$kernel_tool_prefix" != "" ; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9437 $as_echo_n "checking which kernel tools... " >&6; }
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9439 $as_echo "$kernel_tool_prefix" >&6; };
9442 if test "$kernel_tool_prefix" = "none" ; then
9443 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9444 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9446 else
9447 # Kernel tools required - find them
9448 # Note that 'normally', aros_kernel_* overrides will be
9449 # empty, unless specified in the per-arch sections above.
9450 if test "x$aros_kernel_cpp" = "x"; then
9451 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9453 if test "${kernel_tool_version}" != ""; then
9454 if test "$aros_kernel_cpp" != ""; then
9455 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9456 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9457 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9461 if test "$aros_kernel_cpp" = ""; then
9462 if test "$cross_compiling" = "yes" ; then
9463 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9464 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 case $aros_kernel_cpp in
9471 [\\/]* | ?:[\\/]*)
9472 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9486 done
9487 done
9488 IFS=$as_save_IFS
9491 esac
9493 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9494 if test -n "$aros_kernel_cpp"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9496 $as_echo "$aros_kernel_cpp" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9503 else
9504 if test "$GCC" = "yes"; then
9505 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9506 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9507 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 case $aros_kernel_cpp in
9514 [\\/]* | ?:[\\/]*)
9515 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in `dirname $aros_gcc_cpp`
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9534 esac
9536 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9537 if test -n "$aros_kernel_cpp"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9539 $as_echo "$aros_kernel_cpp" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9547 if test "$aros_kernel_cpp" = ""; then
9548 # Extract the first word of "cpp", so it can be a program name with args.
9549 set dummy cpp; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 case $aros_kernel_cpp in
9556 [\\/]* | ?:[\\/]*)
9557 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9567 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9571 done
9572 done
9573 IFS=$as_save_IFS
9576 esac
9578 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9579 if test -n "$aros_kernel_cpp"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9581 $as_echo "$aros_kernel_cpp" >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9590 else
9591 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9592 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9593 set dummy $aros_kernel_cpp; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 case $aros_kernel_cpp in
9600 [\\/]* | ?:[\\/]*)
9601 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9615 done
9616 done
9617 IFS=$as_save_IFS
9620 esac
9622 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9623 if test -n "$aros_kernel_cpp"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9625 $as_echo "$aros_kernel_cpp" >&6; }
9626 else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9632 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9635 req_avail=yes
9636 if test "$aros_kernel_cpp" = ""; then
9637 req_avail=no
9639 if test "$aros_kernel_cpp" = "no"; then
9640 req_avail=no
9642 if test "$req_avail" = "no"; then
9643 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9646 if test "x$aros_kernel_cc" = "x"; then
9647 aros_kernel_cc=${kernel_tool_prefix}${CC}
9649 if test "${kernel_tool_version}" != ""; then
9650 if test "$aros_kernel_cc" != ""; then
9651 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9652 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9653 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9657 if test "$aros_kernel_cc" = ""; then
9658 if test "$cross_compiling" = "yes" ; then
9659 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9660 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 case $aros_kernel_cc in
9667 [\\/]* | ?:[\\/]*)
9668 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9682 done
9683 done
9684 IFS=$as_save_IFS
9687 esac
9689 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9690 if test -n "$aros_kernel_cc"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9692 $as_echo "$aros_kernel_cc" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9699 else
9700 if test "$GCC" = "yes"; then
9701 aros_gcc_cc=`$CC -print-prog-name=cc`
9702 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9703 set dummy `basename $aros_gcc_cc`; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 case $aros_kernel_cc in
9710 [\\/]* | ?:[\\/]*)
9711 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 for as_dir in `dirname $aros_gcc_cc`
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
9719 for ac_exec_ext in '' $ac_executable_extensions; do
9720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9721 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 break 2
9725 done
9726 done
9727 IFS=$as_save_IFS
9730 esac
9732 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9733 if test -n "$aros_kernel_cc"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9735 $as_echo "$aros_kernel_cc" >&6; }
9736 else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9743 if test "$aros_kernel_cc" = ""; then
9744 # Extract the first word of "cc", so it can be a program name with args.
9745 set dummy cc; ac_word=$2
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9747 $as_echo_n "checking for $ac_word... " >&6; }
9748 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 case $aros_kernel_cc in
9752 [\\/]* | ?:[\\/]*)
9753 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 for as_dir in $PATH
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9763 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 break 2
9767 done
9768 done
9769 IFS=$as_save_IFS
9772 esac
9774 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9775 if test -n "$aros_kernel_cc"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9777 $as_echo "$aros_kernel_cc" >&6; }
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9786 else
9787 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9788 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9789 set dummy $aros_kernel_cc; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 case $aros_kernel_cc in
9796 [\\/]* | ?:[\\/]*)
9797 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
9806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9807 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9811 done
9812 done
9813 IFS=$as_save_IFS
9816 esac
9818 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9819 if test -n "$aros_kernel_cc"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9821 $as_echo "$aros_kernel_cc" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9828 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9831 req_avail=yes
9832 if test "$aros_kernel_cc" = ""; then
9833 req_avail=no
9835 if test "$aros_kernel_cc" = "no"; then
9836 req_avail=no
9838 if test "$req_avail" = "no"; then
9839 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9842 if test "x$aros_kernel_cxx" = "x"; then
9843 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9845 if test "${kernel_tool_version}" != ""; then
9846 if test "$aros_kernel_cxx" != ""; then
9847 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9848 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9849 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9853 if test "$aros_kernel_cxx" = ""; then
9854 if test "$cross_compiling" = "yes" ; then
9855 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9856 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 case $aros_kernel_cxx in
9863 [\\/]* | ?:[\\/]*)
9864 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9874 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9878 done
9879 done
9880 IFS=$as_save_IFS
9883 esac
9885 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9886 if test -n "$aros_kernel_cxx"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9888 $as_echo "$aros_kernel_cxx" >&6; }
9889 else
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9895 else
9896 if test "$GCC" = "yes"; then
9897 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9898 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9899 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 case $aros_kernel_cxx in
9906 [\\/]* | ?:[\\/]*)
9907 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in `dirname $aros_gcc_cxx`
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9917 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919 break 2
9921 done
9922 done
9923 IFS=$as_save_IFS
9926 esac
9928 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9929 if test -n "$aros_kernel_cxx"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9931 $as_echo "$aros_kernel_cxx" >&6; }
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9939 if test "$aros_kernel_cxx" = ""; then
9940 # Extract the first word of "cxx", so it can be a program name with args.
9941 set dummy cxx; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 case $aros_kernel_cxx in
9948 [\\/]* | ?:[\\/]*)
9949 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9968 esac
9970 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9971 if test -n "$aros_kernel_cxx"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9973 $as_echo "$aros_kernel_cxx" >&6; }
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9982 else
9983 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9984 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9985 set dummy $aros_kernel_cxx; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 case $aros_kernel_cxx in
9992 [\\/]* | ?:[\\/]*)
9993 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997 for as_dir in $PATH
9999 IFS=$as_save_IFS
10000 test -z "$as_dir" && as_dir=.
10001 for ac_exec_ext in '' $ac_executable_extensions; do
10002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10003 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10005 break 2
10007 done
10008 done
10009 IFS=$as_save_IFS
10012 esac
10014 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10015 if test -n "$aros_kernel_cxx"; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10017 $as_echo "$aros_kernel_cxx" >&6; }
10018 else
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020 $as_echo "no" >&6; }
10024 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10027 # If it's set, make sure it's really there
10028 if test "x$aros_kernel_cxx" != "x" ; then
10029 req_avail=yes
10030 if test "$aros_kernel_cxx" = ""; then
10031 req_avail=no
10033 if test "$aros_kernel_cxx" = "no"; then
10034 req_avail=no
10036 if test "$req_avail" = "no"; then
10037 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10041 if test "$aros_kernel_ld" = ""; then
10042 if test "$cross_compiling" = "yes" ; then
10043 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10044 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 case $aros_kernel_ld in
10051 [\\/]* | ?:[\\/]*)
10052 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10066 done
10067 done
10068 IFS=$as_save_IFS
10071 esac
10073 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10074 if test -n "$aros_kernel_ld"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10076 $as_echo "$aros_kernel_ld" >&6; }
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10083 else
10084 if test "$GCC" = "yes"; then
10085 aros_gcc_ld=`$CC -print-prog-name=ld`
10086 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10087 set dummy `basename $aros_gcc_ld`; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 case $aros_kernel_ld in
10094 [\\/]* | ?:[\\/]*)
10095 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in `dirname $aros_gcc_ld`
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10105 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10109 done
10110 done
10111 IFS=$as_save_IFS
10114 esac
10116 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10117 if test -n "$aros_kernel_ld"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10119 $as_echo "$aros_kernel_ld" >&6; }
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10127 if test "$aros_kernel_ld" = ""; then
10128 # Extract the first word of "ld", so it can be a program name with args.
10129 set dummy ld; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 case $aros_kernel_ld in
10136 [\\/]* | ?:[\\/]*)
10137 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10151 done
10152 done
10153 IFS=$as_save_IFS
10156 esac
10158 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10159 if test -n "$aros_kernel_ld"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10161 $as_echo "$aros_kernel_ld" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10170 else
10171 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10172 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10173 set dummy $aros_kernel_ld; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 case $aros_kernel_ld in
10180 [\\/]* | ?:[\\/]*)
10181 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10195 done
10196 done
10197 IFS=$as_save_IFS
10200 esac
10202 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10203 if test -n "$aros_kernel_ld"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10205 $as_echo "$aros_kernel_ld" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10212 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10215 req_avail=yes
10216 if test "$aros_kernel_ld" = ""; then
10217 req_avail=no
10219 if test "$aros_kernel_ld" = "no"; then
10220 req_avail=no
10222 if test "$req_avail" = "no"; then
10223 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10226 if test "$aros_kernel_as" = ""; then
10227 if test "$cross_compiling" = "yes" ; then
10228 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10229 set dummy ${kernel_tool_prefix}as; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if ${ac_cv_path_aros_kernel_as+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 case $aros_kernel_as in
10236 [\\/]* | ?:[\\/]*)
10237 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10251 done
10252 done
10253 IFS=$as_save_IFS
10256 esac
10258 aros_kernel_as=$ac_cv_path_aros_kernel_as
10259 if test -n "$aros_kernel_as"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10261 $as_echo "$aros_kernel_as" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10268 else
10269 if test "$GCC" = "yes"; then
10270 aros_gcc_as=`$CC -print-prog-name=as`
10271 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10272 set dummy `basename $aros_gcc_as`; ac_word=$2
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 $as_echo_n "checking for $ac_word... " >&6; }
10275 if ${ac_cv_path_aros_kernel_as+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 case $aros_kernel_as in
10279 [\\/]* | ?:[\\/]*)
10280 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in `dirname $aros_gcc_as`
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10290 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10296 IFS=$as_save_IFS
10299 esac
10301 aros_kernel_as=$ac_cv_path_aros_kernel_as
10302 if test -n "$aros_kernel_as"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10304 $as_echo "$aros_kernel_as" >&6; }
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; }
10312 if test "$aros_kernel_as" = ""; then
10313 # Extract the first word of "as", so it can be a program name with args.
10314 set dummy as; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if ${ac_cv_path_aros_kernel_as+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 case $aros_kernel_as in
10321 [\\/]* | ?:[\\/]*)
10322 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 break 2
10336 done
10337 done
10338 IFS=$as_save_IFS
10341 esac
10343 aros_kernel_as=$ac_cv_path_aros_kernel_as
10344 if test -n "$aros_kernel_as"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10346 $as_echo "$aros_kernel_as" >&6; }
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10355 else
10356 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10357 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10358 set dummy $aros_kernel_as; ac_word=$2
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360 $as_echo_n "checking for $ac_word... " >&6; }
10361 if ${ac_cv_path_aros_kernel_as+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 case $aros_kernel_as in
10365 [\\/]* | ?:[\\/]*)
10366 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10380 done
10381 done
10382 IFS=$as_save_IFS
10385 esac
10387 aros_kernel_as=$ac_cv_path_aros_kernel_as
10388 if test -n "$aros_kernel_as"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10390 $as_echo "$aros_kernel_as" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10397 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10400 req_avail=yes
10401 if test "$aros_kernel_as" = ""; then
10402 req_avail=no
10404 if test "$aros_kernel_as" = "no"; then
10405 req_avail=no
10407 if test "$req_avail" = "no"; then
10408 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10411 if test "$aros_kernel_ar" = ""; then
10412 if test "$cross_compiling" = "yes" ; then
10413 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10414 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 case $aros_kernel_ar in
10421 [\\/]* | ?:[\\/]*)
10422 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10436 done
10437 done
10438 IFS=$as_save_IFS
10441 esac
10443 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10444 if test -n "$aros_kernel_ar"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10446 $as_echo "$aros_kernel_ar" >&6; }
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10453 else
10454 if test "$GCC" = "yes"; then
10455 aros_gcc_ar=`$CC -print-prog-name=ar`
10456 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10457 set dummy `basename $aros_gcc_ar`; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10461 $as_echo_n "(cached) " >&6
10462 else
10463 case $aros_kernel_ar in
10464 [\\/]* | ?:[\\/]*)
10465 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in `dirname $aros_gcc_ar`
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10481 IFS=$as_save_IFS
10484 esac
10486 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10487 if test -n "$aros_kernel_ar"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10489 $as_echo "$aros_kernel_ar" >&6; }
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10497 if test "$aros_kernel_ar" = ""; then
10498 # Extract the first word of "ar", so it can be a program name with args.
10499 set dummy ar; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 case $aros_kernel_ar in
10506 [\\/]* | ?:[\\/]*)
10507 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10517 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10521 done
10522 done
10523 IFS=$as_save_IFS
10526 esac
10528 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10529 if test -n "$aros_kernel_ar"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10531 $as_echo "$aros_kernel_ar" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10540 else
10541 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10542 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10543 set dummy $aros_kernel_ar; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 case $aros_kernel_ar in
10550 [\\/]* | ?:[\\/]*)
10551 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 break 2
10565 done
10566 done
10567 IFS=$as_save_IFS
10570 esac
10572 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10573 if test -n "$aros_kernel_ar"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10575 $as_echo "$aros_kernel_ar" >&6; }
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10582 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10585 req_avail=yes
10586 if test "$aros_kernel_ar" = ""; then
10587 req_avail=no
10589 if test "$aros_kernel_ar" = "no"; then
10590 req_avail=no
10592 if test "$req_avail" = "no"; then
10593 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10596 if test "$aros_kernel_ranlib" = ""; then
10597 if test "$cross_compiling" = "yes" ; then
10598 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10599 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 case $aros_kernel_ranlib in
10606 [\\/]* | ?:[\\/]*)
10607 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619 break 2
10621 done
10622 done
10623 IFS=$as_save_IFS
10626 esac
10628 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10629 if test -n "$aros_kernel_ranlib"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10631 $as_echo "$aros_kernel_ranlib" >&6; }
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10638 else
10639 if test "$GCC" = "yes"; then
10640 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10641 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10642 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 case $aros_kernel_ranlib in
10649 [\\/]* | ?:[\\/]*)
10650 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in `dirname $aros_gcc_ranlib`
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10660 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10664 done
10665 done
10666 IFS=$as_save_IFS
10669 esac
10671 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10672 if test -n "$aros_kernel_ranlib"; then
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10674 $as_echo "$aros_kernel_ranlib" >&6; }
10675 else
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677 $as_echo "no" >&6; }
10682 if test "$aros_kernel_ranlib" = ""; then
10683 # Extract the first word of "ranlib", so it can be a program name with args.
10684 set dummy ranlib; ac_word=$2
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686 $as_echo_n "checking for $ac_word... " >&6; }
10687 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 case $aros_kernel_ranlib in
10691 [\\/]* | ?:[\\/]*)
10692 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10706 done
10707 done
10708 IFS=$as_save_IFS
10711 esac
10713 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10714 if test -n "$aros_kernel_ranlib"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10716 $as_echo "$aros_kernel_ranlib" >&6; }
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10725 else
10726 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10727 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10728 set dummy $aros_kernel_ranlib; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 case $aros_kernel_ranlib in
10735 [\\/]* | ?:[\\/]*)
10736 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10750 done
10751 done
10752 IFS=$as_save_IFS
10755 esac
10757 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10758 if test -n "$aros_kernel_ranlib"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10760 $as_echo "$aros_kernel_ranlib" >&6; }
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10767 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10770 req_avail=yes
10771 if test "$aros_kernel_ranlib" = ""; then
10772 req_avail=no
10774 if test "$aros_kernel_ranlib" = "no"; then
10775 req_avail=no
10777 if test "$req_avail" = "no"; then
10778 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10781 if test "$aros_kernel_nm" = ""; then
10782 if test "$cross_compiling" = "yes" ; then
10783 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10784 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $aros_kernel_nm in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10814 if test -n "$aros_kernel_nm"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10816 $as_echo "$aros_kernel_nm" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10823 else
10824 if test "$GCC" = "yes"; then
10825 aros_gcc_nm=`$CC -print-prog-name=nm`
10826 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10827 set dummy `basename $aros_gcc_nm`; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 case $aros_kernel_nm in
10834 [\\/]* | ?:[\\/]*)
10835 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in `dirname $aros_gcc_nm`
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10849 done
10850 done
10851 IFS=$as_save_IFS
10854 esac
10856 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10857 if test -n "$aros_kernel_nm"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10859 $as_echo "$aros_kernel_nm" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10867 if test "$aros_kernel_nm" = ""; then
10868 # Extract the first word of "nm", so it can be a program name with args.
10869 set dummy nm; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 case $aros_kernel_nm in
10876 [\\/]* | ?:[\\/]*)
10877 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10891 done
10892 done
10893 IFS=$as_save_IFS
10896 esac
10898 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10899 if test -n "$aros_kernel_nm"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10901 $as_echo "$aros_kernel_nm" >&6; }
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10910 else
10911 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10912 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10913 set dummy $aros_kernel_nm; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 case $aros_kernel_nm in
10920 [\\/]* | ?:[\\/]*)
10921 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10927 IFS=$as_save_IFS
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10931 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10935 done
10936 done
10937 IFS=$as_save_IFS
10940 esac
10942 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10943 if test -n "$aros_kernel_nm"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10945 $as_echo "$aros_kernel_nm" >&6; }
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10952 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10955 req_avail=yes
10956 if test "$aros_kernel_nm" = ""; then
10957 req_avail=no
10959 if test "$aros_kernel_nm" = "no"; then
10960 req_avail=no
10962 if test "$req_avail" = "no"; then
10963 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10966 if test "$aros_kernel_strip" = ""; then
10967 if test "$cross_compiling" = "yes" ; then
10968 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10969 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 case $aros_kernel_strip in
10976 [\\/]* | ?:[\\/]*)
10977 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10991 done
10992 done
10993 IFS=$as_save_IFS
10996 esac
10998 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10999 if test -n "$aros_kernel_strip"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11001 $as_echo "$aros_kernel_strip" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11008 else
11009 if test "$GCC" = "yes"; then
11010 aros_gcc_strip=`$CC -print-prog-name=strip`
11011 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11012 set dummy `basename $aros_gcc_strip`; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 case $aros_kernel_strip in
11019 [\\/]* | ?:[\\/]*)
11020 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in `dirname $aros_gcc_strip`
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11034 done
11035 done
11036 IFS=$as_save_IFS
11039 esac
11041 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11042 if test -n "$aros_kernel_strip"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11044 $as_echo "$aros_kernel_strip" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11052 if test "$aros_kernel_strip" = ""; then
11053 # Extract the first word of "strip", so it can be a program name with args.
11054 set dummy strip; ac_word=$2
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 case $aros_kernel_strip in
11061 [\\/]* | ?:[\\/]*)
11062 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11072 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11076 done
11077 done
11078 IFS=$as_save_IFS
11081 esac
11083 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11084 if test -n "$aros_kernel_strip"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11086 $as_echo "$aros_kernel_strip" >&6; }
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11095 else
11096 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11097 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11098 set dummy $aros_kernel_strip; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 case $aros_kernel_strip in
11105 [\\/]* | ?:[\\/]*)
11106 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11120 done
11121 done
11122 IFS=$as_save_IFS
11125 esac
11127 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11128 if test -n "$aros_kernel_strip"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11130 $as_echo "$aros_kernel_strip" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11137 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11140 req_avail=yes
11141 if test "$aros_kernel_strip" = ""; then
11142 req_avail=no
11144 if test "$aros_kernel_strip" = "no"; then
11145 req_avail=no
11147 if test "$req_avail" = "no"; then
11148 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11151 # Objcopy and objdump are not required for the kernel
11152 # toolchain on many architectures.
11153 # So we'll look for them, but not make them strictly required.
11155 if test "$aros_kernel_objcopy" = ""; then
11156 if test "$cross_compiling" = "yes" ; then
11157 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11158 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 case $aros_kernel_objcopy in
11165 [\\/]* | ?:[\\/]*)
11166 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11176 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11180 done
11181 done
11182 IFS=$as_save_IFS
11185 esac
11187 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11188 if test -n "$aros_kernel_objcopy"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11190 $as_echo "$aros_kernel_objcopy" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11197 else
11198 if test "$GCC" = "yes"; then
11199 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11200 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11201 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 case $aros_kernel_objcopy in
11208 [\\/]* | ?:[\\/]*)
11209 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in `dirname $aros_gcc_objcopy`
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11223 done
11224 done
11225 IFS=$as_save_IFS
11228 esac
11230 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11231 if test -n "$aros_kernel_objcopy"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11233 $as_echo "$aros_kernel_objcopy" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11241 if test "$aros_kernel_objcopy" = ""; then
11242 # Extract the first word of "objcopy", so it can be a program name with args.
11243 set dummy objcopy; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 case $aros_kernel_objcopy in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11270 esac
11272 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11273 if test -n "$aros_kernel_objcopy"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11275 $as_echo "$aros_kernel_objcopy" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11284 else
11285 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11286 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11287 set dummy $aros_kernel_objcopy; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 case $aros_kernel_objcopy in
11294 [\\/]* | ?:[\\/]*)
11295 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11309 done
11310 done
11311 IFS=$as_save_IFS
11314 esac
11316 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11317 if test -n "$aros_kernel_objcopy"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11319 $as_echo "$aros_kernel_objcopy" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11326 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11330 if test "$aros_kernel_objdump" = ""; then
11331 if test "$cross_compiling" = "yes" ; then
11332 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11333 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 case $aros_kernel_objdump in
11340 [\\/]* | ?:[\\/]*)
11341 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345 for as_dir in $PATH
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 break 2
11355 done
11356 done
11357 IFS=$as_save_IFS
11360 esac
11362 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11363 if test -n "$aros_kernel_objdump"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11365 $as_echo "$aros_kernel_objdump" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11372 else
11373 if test "$GCC" = "yes"; then
11374 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11375 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11376 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $aros_kernel_objdump in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in `dirname $aros_gcc_objdump`
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11403 esac
11405 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11406 if test -n "$aros_kernel_objdump"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11408 $as_echo "$aros_kernel_objdump" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11416 if test "$aros_kernel_objdump" = ""; then
11417 # Extract the first word of "objdump", so it can be a program name with args.
11418 set dummy objdump; ac_word=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 case $aros_kernel_objdump in
11425 [\\/]* | ?:[\\/]*)
11426 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11440 done
11441 done
11442 IFS=$as_save_IFS
11445 esac
11447 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11448 if test -n "$aros_kernel_objdump"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11450 $as_echo "$aros_kernel_objdump" >&6; }
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11459 else
11460 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11461 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11462 set dummy $aros_kernel_objdump; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 case $aros_kernel_objdump in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11489 esac
11491 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11492 if test -n "$aros_kernel_objdump"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11494 $as_echo "$aros_kernel_objdump" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11501 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11504 if test "x${crosstools}" != "xyes" ; then
11505 req_avail=yes
11506 if test "$aros_kernel_objcopy" = ""; then
11507 req_avail=no
11509 if test "$aros_kernel_objcopy" = "no"; then
11510 req_avail=no
11512 if test "$req_avail" = "no"; then
11513 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11515 req_avail=yes
11516 if test "$aros_kernel_objdump" = ""; then
11517 req_avail=no
11519 if test "$aros_kernel_objdump" = "no"; then
11520 req_avail=no
11522 if test "$req_avail" = "no"; then
11523 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11529 $as_echo_n "checking which target tools to use... " >&6; }
11530 if test "$aros_target_toolchain" = "yes"; then
11531 if test "$aros_toolchain" = "llvm" ; then
11532 msg_result="llvm"
11533 else
11534 msg_result=$target_tool_prefix
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11537 $as_echo "$msg_result" >&6; }
11538 # We are building AROS crosstools
11539 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11540 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11541 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11542 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11543 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11544 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11545 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11546 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11547 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11548 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11549 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11550 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11551 else
11552 # Determine whether AROS or ELF tools should be used
11553 if test "$aros_tool_prefix" = "none"; then
11554 aros_tool_prefix="${elf_tool_prefix}"
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11558 $as_echo "$aros_tool_prefix" >&6; }
11559 # We are *not* building AROS crosstools - use the AROS or ELF tools
11561 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11562 if test "$cross_compiling" = "yes" ; then
11563 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11564 set dummy ${target_tool_prefix}cpp; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_path_orig_target_cpp+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 case $orig_target_cpp in
11571 [\\/]* | ?:[\\/]*)
11572 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11586 done
11587 done
11588 IFS=$as_save_IFS
11591 esac
11593 orig_target_cpp=$ac_cv_path_orig_target_cpp
11594 if test -n "$orig_target_cpp"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11596 $as_echo "$orig_target_cpp" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11603 else
11604 if test "$GCC" = "yes"; then
11605 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11606 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11607 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_path_orig_target_cpp+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 case $orig_target_cpp in
11614 [\\/]* | ?:[\\/]*)
11615 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in `dirname $aros_gcc_cpp`
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11629 done
11630 done
11631 IFS=$as_save_IFS
11634 esac
11636 orig_target_cpp=$ac_cv_path_orig_target_cpp
11637 if test -n "$orig_target_cpp"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11639 $as_echo "$orig_target_cpp" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11647 if test "$orig_target_cpp" = ""; then
11648 # Extract the first word of "cpp", so it can be a program name with args.
11649 set dummy cpp; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if ${ac_cv_path_orig_target_cpp+:} false; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 case $orig_target_cpp in
11656 [\\/]* | ?:[\\/]*)
11657 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11671 done
11672 done
11673 IFS=$as_save_IFS
11676 esac
11678 orig_target_cpp=$ac_cv_path_orig_target_cpp
11679 if test -n "$orig_target_cpp"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11681 $as_echo "$orig_target_cpp" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11690 else
11691 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11692 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11693 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_path_orig_target_cpp+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 case $orig_target_cpp in
11700 [\\/]* | ?:[\\/]*)
11701 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11715 done
11716 done
11717 IFS=$as_save_IFS
11720 esac
11722 orig_target_cpp=$ac_cv_path_orig_target_cpp
11723 if test -n "$orig_target_cpp"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11725 $as_echo "$orig_target_cpp" >&6; }
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11732 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11735 req_avail=yes
11736 if test "$orig_target_cpp" = ""; then
11737 req_avail=no
11739 if test "$orig_target_cpp" = "no"; then
11740 req_avail=no
11742 if test "$req_avail" = "no"; then
11743 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11746 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11747 if test "$cross_compiling" = "yes" ; then
11748 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11749 set dummy ${target_tool_prefix}gcc; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if ${ac_cv_path_orig_target_cc+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 case $orig_target_cc in
11756 [\\/]* | ?:[\\/]*)
11757 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 break 2
11771 done
11772 done
11773 IFS=$as_save_IFS
11776 esac
11778 orig_target_cc=$ac_cv_path_orig_target_cc
11779 if test -n "$orig_target_cc"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11781 $as_echo "$orig_target_cc" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11788 else
11789 if test "$GCC" = "yes"; then
11790 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11791 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11792 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_path_orig_target_cc+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 case $orig_target_cc in
11799 [\\/]* | ?:[\\/]*)
11800 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in `dirname $aros_gcc_gcc`
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11810 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11814 done
11815 done
11816 IFS=$as_save_IFS
11819 esac
11821 orig_target_cc=$ac_cv_path_orig_target_cc
11822 if test -n "$orig_target_cc"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11824 $as_echo "$orig_target_cc" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11832 if test "$orig_target_cc" = ""; then
11833 # Extract the first word of "gcc", so it can be a program name with args.
11834 set dummy gcc; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_path_orig_target_cc+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 case $orig_target_cc in
11841 [\\/]* | ?:[\\/]*)
11842 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11856 done
11857 done
11858 IFS=$as_save_IFS
11861 esac
11863 orig_target_cc=$ac_cv_path_orig_target_cc
11864 if test -n "$orig_target_cc"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11866 $as_echo "$orig_target_cc" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11875 else
11876 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11877 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11878 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if ${ac_cv_path_orig_target_cc+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 case $orig_target_cc in
11885 [\\/]* | ?:[\\/]*)
11886 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890 for as_dir in $PATH
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11896 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 break 2
11900 done
11901 done
11902 IFS=$as_save_IFS
11905 esac
11907 orig_target_cc=$ac_cv_path_orig_target_cc
11908 if test -n "$orig_target_cc"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11910 $as_echo "$orig_target_cc" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11917 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11920 req_avail=yes
11921 if test "$orig_target_cc" = ""; then
11922 req_avail=no
11924 if test "$orig_target_cc" = "no"; then
11925 req_avail=no
11927 if test "$req_avail" = "no"; then
11928 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11931 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11932 if test "$cross_compiling" = "yes" ; then
11933 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11934 set dummy ${target_tool_prefix}g++; ac_word=$2
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936 $as_echo_n "checking for $ac_word... " >&6; }
11937 if ${ac_cv_path_orig_target_cxx+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 case $orig_target_cxx in
11941 [\\/]* | ?:[\\/]*)
11942 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11956 done
11957 done
11958 IFS=$as_save_IFS
11961 esac
11963 orig_target_cxx=$ac_cv_path_orig_target_cxx
11964 if test -n "$orig_target_cxx"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11966 $as_echo "$orig_target_cxx" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11973 else
11974 if test "$GCC" = "yes"; then
11975 aros_gcc_g++=`$CC -print-prog-name=g++`
11976 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11977 set dummy `basename $aros_gcc_g++`; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_path_orig_target_cxx+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 case $orig_target_cxx in
11984 [\\/]* | ?:[\\/]*)
11985 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in `dirname $aros_gcc_g++`
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11999 done
12000 done
12001 IFS=$as_save_IFS
12004 esac
12006 orig_target_cxx=$ac_cv_path_orig_target_cxx
12007 if test -n "$orig_target_cxx"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12009 $as_echo "$orig_target_cxx" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12017 if test "$orig_target_cxx" = ""; then
12018 # Extract the first word of "g++", so it can be a program name with args.
12019 set dummy g++; ac_word=$2
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021 $as_echo_n "checking for $ac_word... " >&6; }
12022 if ${ac_cv_path_orig_target_cxx+:} false; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 case $orig_target_cxx in
12026 [\\/]* | ?:[\\/]*)
12027 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12041 done
12042 done
12043 IFS=$as_save_IFS
12046 esac
12048 orig_target_cxx=$ac_cv_path_orig_target_cxx
12049 if test -n "$orig_target_cxx"; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12051 $as_echo "$orig_target_cxx" >&6; }
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12060 else
12061 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12062 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12063 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if ${ac_cv_path_orig_target_cxx+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 case $orig_target_cxx in
12070 [\\/]* | ?:[\\/]*)
12071 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075 for as_dir in $PATH
12077 IFS=$as_save_IFS
12078 test -z "$as_dir" && as_dir=.
12079 for ac_exec_ext in '' $ac_executable_extensions; do
12080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12081 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083 break 2
12085 done
12086 done
12087 IFS=$as_save_IFS
12090 esac
12092 orig_target_cxx=$ac_cv_path_orig_target_cxx
12093 if test -n "$orig_target_cxx"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12095 $as_echo "$orig_target_cxx" >&6; }
12096 else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12102 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12105 req_avail=yes
12106 if test "$orig_target_cxx" = ""; then
12107 req_avail=no
12109 if test "$orig_target_cxx" = "no"; then
12110 req_avail=no
12112 if test "$req_avail" = "no"; then
12113 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12116 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12117 if test "$cross_compiling" = "yes" ; then
12118 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12119 set dummy ${target_tool_prefix}gcc; ac_word=$2
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121 $as_echo_n "checking for $ac_word... " >&6; }
12122 if ${ac_cv_path_orig_target_ld+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 case $orig_target_ld in
12126 [\\/]* | ?:[\\/]*)
12127 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12141 done
12142 done
12143 IFS=$as_save_IFS
12146 esac
12148 orig_target_ld=$ac_cv_path_orig_target_ld
12149 if test -n "$orig_target_ld"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12151 $as_echo "$orig_target_ld" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12158 else
12159 if test "$GCC" = "yes"; then
12160 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12161 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12162 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_path_orig_target_ld+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 case $orig_target_ld in
12169 [\\/]* | ?:[\\/]*)
12170 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in `dirname $aros_gcc_gcc`
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12180 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12184 done
12185 done
12186 IFS=$as_save_IFS
12189 esac
12191 orig_target_ld=$ac_cv_path_orig_target_ld
12192 if test -n "$orig_target_ld"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12194 $as_echo "$orig_target_ld" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12202 if test "$orig_target_ld" = ""; then
12203 # Extract the first word of "gcc", so it can be a program name with args.
12204 set dummy gcc; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_path_orig_target_ld+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $orig_target_ld in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12222 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12231 esac
12233 orig_target_ld=$ac_cv_path_orig_target_ld
12234 if test -n "$orig_target_ld"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12236 $as_echo "$orig_target_ld" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12245 else
12246 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12247 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12248 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250 $as_echo_n "checking for $ac_word... " >&6; }
12251 if ${ac_cv_path_orig_target_ld+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 case $orig_target_ld in
12255 [\\/]* | ?:[\\/]*)
12256 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12270 done
12271 done
12272 IFS=$as_save_IFS
12275 esac
12277 orig_target_ld=$ac_cv_path_orig_target_ld
12278 if test -n "$orig_target_ld"; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12280 $as_echo "$orig_target_ld" >&6; }
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12287 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12290 req_avail=yes
12291 if test "$orig_target_ld" = ""; then
12292 req_avail=no
12294 if test "$orig_target_ld" = "no"; then
12295 req_avail=no
12297 if test "$req_avail" = "no"; then
12298 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12301 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12302 if test "$cross_compiling" = "yes" ; then
12303 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12304 set dummy ${target_tool_prefix}as; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_orig_target_as+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 case $orig_target_as in
12311 [\\/]* | ?:[\\/]*)
12312 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12326 done
12327 done
12328 IFS=$as_save_IFS
12331 esac
12333 orig_target_as=$ac_cv_path_orig_target_as
12334 if test -n "$orig_target_as"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12336 $as_echo "$orig_target_as" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12343 else
12344 if test "$GCC" = "yes"; then
12345 aros_gcc_as=`$CC -print-prog-name=as`
12346 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12347 set dummy `basename $aros_gcc_as`; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_orig_target_as+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 case $orig_target_as in
12354 [\\/]* | ?:[\\/]*)
12355 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in `dirname $aros_gcc_as`
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12374 esac
12376 orig_target_as=$ac_cv_path_orig_target_as
12377 if test -n "$orig_target_as"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12379 $as_echo "$orig_target_as" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12387 if test "$orig_target_as" = ""; then
12388 # Extract the first word of "as", so it can be a program name with args.
12389 set dummy as; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if ${ac_cv_path_orig_target_as+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 case $orig_target_as in
12396 [\\/]* | ?:[\\/]*)
12397 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12411 done
12412 done
12413 IFS=$as_save_IFS
12416 esac
12418 orig_target_as=$ac_cv_path_orig_target_as
12419 if test -n "$orig_target_as"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12421 $as_echo "$orig_target_as" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12430 else
12431 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12432 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12433 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_path_orig_target_as+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 case $orig_target_as in
12440 [\\/]* | ?:[\\/]*)
12441 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12455 done
12456 done
12457 IFS=$as_save_IFS
12460 esac
12462 orig_target_as=$ac_cv_path_orig_target_as
12463 if test -n "$orig_target_as"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12465 $as_echo "$orig_target_as" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12472 orig_target_as="$orig_target_as $ac_tool_optarg"
12475 req_avail=yes
12476 if test "$orig_target_as" = ""; then
12477 req_avail=no
12479 if test "$orig_target_as" = "no"; then
12480 req_avail=no
12482 if test "$req_avail" = "no"; then
12483 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12486 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12487 if test "$cross_compiling" = "yes" ; then
12488 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12489 set dummy ${target_tool_prefix}ar; ac_word=$2
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if ${ac_cv_path_orig_target_ar+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 case $orig_target_ar in
12496 [\\/]* | ?:[\\/]*)
12497 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12503 IFS=$as_save_IFS
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12507 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 break 2
12511 done
12512 done
12513 IFS=$as_save_IFS
12516 esac
12518 orig_target_ar=$ac_cv_path_orig_target_ar
12519 if test -n "$orig_target_ar"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12521 $as_echo "$orig_target_ar" >&6; }
12522 else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524 $as_echo "no" >&6; }
12528 else
12529 if test "$GCC" = "yes"; then
12530 aros_gcc_ar=`$CC -print-prog-name=ar`
12531 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12532 set dummy `basename $aros_gcc_ar`; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_path_orig_target_ar+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 case $orig_target_ar in
12539 [\\/]* | ?:[\\/]*)
12540 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in `dirname $aros_gcc_ar`
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12554 done
12555 done
12556 IFS=$as_save_IFS
12559 esac
12561 orig_target_ar=$ac_cv_path_orig_target_ar
12562 if test -n "$orig_target_ar"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12564 $as_echo "$orig_target_ar" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12572 if test "$orig_target_ar" = ""; then
12573 # Extract the first word of "ar", so it can be a program name with args.
12574 set dummy ar; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if ${ac_cv_path_orig_target_ar+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 case $orig_target_ar in
12581 [\\/]* | ?:[\\/]*)
12582 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12596 done
12597 done
12598 IFS=$as_save_IFS
12601 esac
12603 orig_target_ar=$ac_cv_path_orig_target_ar
12604 if test -n "$orig_target_ar"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12606 $as_echo "$orig_target_ar" >&6; }
12607 else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12615 else
12616 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12617 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12618 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if ${ac_cv_path_orig_target_ar+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 case $orig_target_ar in
12625 [\\/]* | ?:[\\/]*)
12626 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12640 done
12641 done
12642 IFS=$as_save_IFS
12645 esac
12647 orig_target_ar=$ac_cv_path_orig_target_ar
12648 if test -n "$orig_target_ar"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12650 $as_echo "$orig_target_ar" >&6; }
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12657 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12660 req_avail=yes
12661 if test "$orig_target_ar" = ""; then
12662 req_avail=no
12664 if test "$orig_target_ar" = "no"; then
12665 req_avail=no
12667 if test "$req_avail" = "no"; then
12668 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12671 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12672 if test "$cross_compiling" = "yes" ; then
12673 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12674 set dummy ${target_tool_prefix}ar; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 case $orig_target_ranlib in
12681 [\\/]* | ?:[\\/]*)
12682 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12696 done
12697 done
12698 IFS=$as_save_IFS
12701 esac
12703 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12704 if test -n "$orig_target_ranlib"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12706 $as_echo "$orig_target_ranlib" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12713 else
12714 if test "$GCC" = "yes"; then
12715 aros_gcc_ar=`$CC -print-prog-name=ar`
12716 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12717 set dummy `basename $aros_gcc_ar`; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 case $orig_target_ranlib in
12724 [\\/]* | ?:[\\/]*)
12725 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in `dirname $aros_gcc_ar`
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12739 done
12740 done
12741 IFS=$as_save_IFS
12744 esac
12746 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12747 if test -n "$orig_target_ranlib"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12749 $as_echo "$orig_target_ranlib" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12757 if test "$orig_target_ranlib" = ""; then
12758 # Extract the first word of "ar", so it can be a program name with args.
12759 set dummy ar; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 case $orig_target_ranlib in
12766 [\\/]* | ?:[\\/]*)
12767 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12781 done
12782 done
12783 IFS=$as_save_IFS
12786 esac
12788 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12789 if test -n "$orig_target_ranlib"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12791 $as_echo "$orig_target_ranlib" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12800 else
12801 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12802 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12803 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 case $orig_target_ranlib in
12810 [\\/]* | ?:[\\/]*)
12811 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $PATH
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12821 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12825 done
12826 done
12827 IFS=$as_save_IFS
12830 esac
12832 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12833 if test -n "$orig_target_ranlib"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12835 $as_echo "$orig_target_ranlib" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12842 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12845 req_avail=yes
12846 if test "$orig_target_ranlib" = ""; then
12847 req_avail=no
12849 if test "$orig_target_ranlib" = "no"; then
12850 req_avail=no
12852 if test "$req_avail" = "no"; then
12853 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12856 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12857 if test "$cross_compiling" = "yes" ; then
12858 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12859 set dummy ${target_tool_prefix}nm; ac_word=$2
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861 $as_echo_n "checking for $ac_word... " >&6; }
12862 if ${ac_cv_path_orig_target_nm+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 case $orig_target_nm in
12866 [\\/]* | ?:[\\/]*)
12867 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12873 IFS=$as_save_IFS
12874 test -z "$as_dir" && as_dir=.
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 break 2
12881 done
12882 done
12883 IFS=$as_save_IFS
12886 esac
12888 orig_target_nm=$ac_cv_path_orig_target_nm
12889 if test -n "$orig_target_nm"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12891 $as_echo "$orig_target_nm" >&6; }
12892 else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12898 else
12899 if test "$GCC" = "yes"; then
12900 aros_gcc_nm=`$CC -print-prog-name=nm`
12901 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12902 set dummy `basename $aros_gcc_nm`; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if ${ac_cv_path_orig_target_nm+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 case $orig_target_nm in
12909 [\\/]* | ?:[\\/]*)
12910 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in `dirname $aros_gcc_nm`
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12924 done
12925 done
12926 IFS=$as_save_IFS
12929 esac
12931 orig_target_nm=$ac_cv_path_orig_target_nm
12932 if test -n "$orig_target_nm"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12934 $as_echo "$orig_target_nm" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12942 if test "$orig_target_nm" = ""; then
12943 # Extract the first word of "nm", so it can be a program name with args.
12944 set dummy nm; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_path_orig_target_nm+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 case $orig_target_nm in
12951 [\\/]* | ?:[\\/]*)
12952 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12966 done
12967 done
12968 IFS=$as_save_IFS
12971 esac
12973 orig_target_nm=$ac_cv_path_orig_target_nm
12974 if test -n "$orig_target_nm"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12976 $as_echo "$orig_target_nm" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12985 else
12986 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12987 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12988 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if ${ac_cv_path_orig_target_nm+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 case $orig_target_nm in
12995 [\\/]* | ?:[\\/]*)
12996 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13006 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 break 2
13010 done
13011 done
13012 IFS=$as_save_IFS
13015 esac
13017 orig_target_nm=$ac_cv_path_orig_target_nm
13018 if test -n "$orig_target_nm"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13020 $as_echo "$orig_target_nm" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13027 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13030 req_avail=yes
13031 if test "$orig_target_nm" = ""; then
13032 req_avail=no
13034 if test "$orig_target_nm" = "no"; then
13035 req_avail=no
13037 if test "$req_avail" = "no"; then
13038 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13041 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13042 if test "$cross_compiling" = "yes" ; then
13043 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13044 set dummy ${target_tool_prefix}strip; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if ${ac_cv_path_orig_target_strip+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 case $orig_target_strip in
13051 [\\/]* | ?:[\\/]*)
13052 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13071 esac
13073 orig_target_strip=$ac_cv_path_orig_target_strip
13074 if test -n "$orig_target_strip"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13076 $as_echo "$orig_target_strip" >&6; }
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13083 else
13084 if test "$GCC" = "yes"; then
13085 aros_gcc_strip=`$CC -print-prog-name=strip`
13086 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13087 set dummy `basename $aros_gcc_strip`; ac_word=$2
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 $as_echo_n "checking for $ac_word... " >&6; }
13090 if ${ac_cv_path_orig_target_strip+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 case $orig_target_strip in
13094 [\\/]* | ?:[\\/]*)
13095 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in `dirname $aros_gcc_strip`
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13109 done
13110 done
13111 IFS=$as_save_IFS
13114 esac
13116 orig_target_strip=$ac_cv_path_orig_target_strip
13117 if test -n "$orig_target_strip"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13119 $as_echo "$orig_target_strip" >&6; }
13120 else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13127 if test "$orig_target_strip" = ""; then
13128 # Extract the first word of "strip", so it can be a program name with args.
13129 set dummy strip; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if ${ac_cv_path_orig_target_strip+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 case $orig_target_strip in
13136 [\\/]* | ?:[\\/]*)
13137 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13151 done
13152 done
13153 IFS=$as_save_IFS
13156 esac
13158 orig_target_strip=$ac_cv_path_orig_target_strip
13159 if test -n "$orig_target_strip"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13161 $as_echo "$orig_target_strip" >&6; }
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13170 else
13171 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13172 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13173 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if ${ac_cv_path_orig_target_strip+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 case $orig_target_strip in
13180 [\\/]* | ?:[\\/]*)
13181 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13200 esac
13202 orig_target_strip=$ac_cv_path_orig_target_strip
13203 if test -n "$orig_target_strip"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13205 $as_echo "$orig_target_strip" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13212 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13215 req_avail=yes
13216 if test "$orig_target_strip" = ""; then
13217 req_avail=no
13219 if test "$orig_target_strip" = "no"; then
13220 req_avail=no
13222 if test "$req_avail" = "no"; then
13223 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13226 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13227 if test "$cross_compiling" = "yes" ; then
13228 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13229 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 case $orig_target_objcopy in
13236 [\\/]* | ?:[\\/]*)
13237 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13243 IFS=$as_save_IFS
13244 test -z "$as_dir" && as_dir=.
13245 for ac_exec_ext in '' $ac_executable_extensions; do
13246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13247 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 break 2
13251 done
13252 done
13253 IFS=$as_save_IFS
13256 esac
13258 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13259 if test -n "$orig_target_objcopy"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13261 $as_echo "$orig_target_objcopy" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13268 else
13269 if test "$GCC" = "yes"; then
13270 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13271 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13272 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 case $orig_target_objcopy in
13279 [\\/]* | ?:[\\/]*)
13280 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in `dirname $aros_gcc_objcopy`
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13290 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13294 done
13295 done
13296 IFS=$as_save_IFS
13299 esac
13301 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13302 if test -n "$orig_target_objcopy"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13304 $as_echo "$orig_target_objcopy" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13312 if test "$orig_target_objcopy" = ""; then
13313 # Extract the first word of "objcopy", so it can be a program name with args.
13314 set dummy objcopy; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 case $orig_target_objcopy in
13321 [\\/]* | ?:[\\/]*)
13322 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13332 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13336 done
13337 done
13338 IFS=$as_save_IFS
13341 esac
13343 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13344 if test -n "$orig_target_objcopy"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13346 $as_echo "$orig_target_objcopy" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13355 else
13356 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13357 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13358 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 $as_echo_n "checking for $ac_word... " >&6; }
13361 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 case $orig_target_objcopy in
13365 [\\/]* | ?:[\\/]*)
13366 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13372 IFS=$as_save_IFS
13373 test -z "$as_dir" && as_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378 break 2
13380 done
13381 done
13382 IFS=$as_save_IFS
13385 esac
13387 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13388 if test -n "$orig_target_objcopy"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13390 $as_echo "$orig_target_objcopy" >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13397 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13400 req_avail=yes
13401 if test "$orig_target_objcopy" = ""; then
13402 req_avail=no
13404 if test "$orig_target_objcopy" = "no"; then
13405 req_avail=no
13407 if test "$req_avail" = "no"; then
13408 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13411 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13412 if test "$cross_compiling" = "yes" ; then
13413 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13414 set dummy ${target_tool_prefix}objdump; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_orig_target_objdump+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 case $orig_target_objdump in
13421 [\\/]* | ?:[\\/]*)
13422 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13436 done
13437 done
13438 IFS=$as_save_IFS
13441 esac
13443 orig_target_objdump=$ac_cv_path_orig_target_objdump
13444 if test -n "$orig_target_objdump"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13446 $as_echo "$orig_target_objdump" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13453 else
13454 if test "$GCC" = "yes"; then
13455 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13456 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13457 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459 $as_echo_n "checking for $ac_word... " >&6; }
13460 if ${ac_cv_path_orig_target_objdump+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 case $orig_target_objdump in
13464 [\\/]* | ?:[\\/]*)
13465 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in `dirname $aros_gcc_objdump`
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13479 done
13480 done
13481 IFS=$as_save_IFS
13484 esac
13486 orig_target_objdump=$ac_cv_path_orig_target_objdump
13487 if test -n "$orig_target_objdump"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13489 $as_echo "$orig_target_objdump" >&6; }
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13497 if test "$orig_target_objdump" = ""; then
13498 # Extract the first word of "objdump", so it can be a program name with args.
13499 set dummy objdump; ac_word=$2
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if ${ac_cv_path_orig_target_objdump+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 case $orig_target_objdump in
13506 [\\/]* | ?:[\\/]*)
13507 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13517 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 break 2
13521 done
13522 done
13523 IFS=$as_save_IFS
13526 esac
13528 orig_target_objdump=$ac_cv_path_orig_target_objdump
13529 if test -n "$orig_target_objdump"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13531 $as_echo "$orig_target_objdump" >&6; }
13532 else
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13540 else
13541 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13542 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13543 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545 $as_echo_n "checking for $ac_word... " >&6; }
13546 if ${ac_cv_path_orig_target_objdump+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 case $orig_target_objdump in
13550 [\\/]* | ?:[\\/]*)
13551 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13561 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13565 done
13566 done
13567 IFS=$as_save_IFS
13570 esac
13572 orig_target_objdump=$ac_cv_path_orig_target_objdump
13573 if test -n "$orig_target_objdump"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13575 $as_echo "$orig_target_objdump" >&6; }
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13582 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13585 req_avail=yes
13586 if test "$orig_target_objdump" = ""; then
13587 req_avail=no
13589 if test "$orig_target_objdump" = "no"; then
13590 req_avail=no
13592 if test "$req_avail" = "no"; then
13593 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13597 if test "$kernel_tool_prefix" = "none" ; then
13598 # No kernel tools specified
13599 # Assume target tools == kernel tools with ELF wrapper
13600 aros_kernel_cc=$orig_target_cc
13601 aros_kernel_cxx=$orig_target_cxx
13602 aros_kernel_cpp=$orig_target_cpp
13603 aros_kernel_ld=$orig_target_ld
13604 aros_kernel_as=$orig_target_as
13605 aros_kernel_ar=$orig_target_ar
13606 aros_kernel_ranlib=$orig_target_ranlib
13607 aros_kernel_nm=$orig_target_nm
13608 aros_kernel_strip=$orig_target_strip
13609 aros_kernel_objcopy=$orig_target_objcopy
13610 aros_kernel_objdump=$orig_target_objdump
13611 use_kernel_cc_wrapper=yes
13614 # At this point, all aros_kernel_* and aros_target_*
13615 # tools should be set up correctly
13617 CC="$aros_kernel_cc $kernel_tool_flags"
13618 CPP="$aros_kernel_cpp"
13620 #-----------------------------------------------------------------------------
13622 # Find all the tools we need to compile. This could be cross-compiling
13623 # though! If that is the case we use the GNU form of the target and
13624 # simply add this to the front of the binary name. This is rather simple,
13625 # but it should work under most circumstances.
13627 # The default tools are to use the same as the host, but only if the
13628 # host and target CPU are the same. With GCC this is normally enough.
13631 aros_cc_pre=""
13632 aros_shared_ld="$aros_host_ld"
13634 aros_target_mkdep="$aros_host_mkdep"
13636 # The default tools executables to be linked to.
13637 if test "$rescomp" != ""; then
13638 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13639 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 case $aros_kernel_rescomp in
13646 [\\/]* | ?:[\\/]*)
13647 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13657 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13661 done
13662 done
13663 IFS=$as_save_IFS
13666 esac
13668 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13669 if test -n "$aros_kernel_rescomp"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13671 $as_echo "$aros_kernel_rescomp" >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13678 req_avail=yes
13679 if test "$aros_kernel_rescomp" = ""; then
13680 req_avail=no
13682 if test "$aros_kernel_rescomp" = "no"; then
13683 req_avail=no
13685 if test "$req_avail" = "no"; then
13686 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13690 # Set up the sources for the symlink farm
13691 if test "$crosstools" = "yes"; then
13692 crosstools_target=tools-crosstools
13695 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13696 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13698 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13699 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13700 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13701 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13702 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13703 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13704 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13706 # aros_cc_pre is a variable that is added to the front of the compiler name
13707 # in the generated aros-gcc shell script. We need this to enable the cache
13708 # to work across cleaned builds. Also, support DISTCC using the correct
13709 # environment variable.
13712 if test "x${DISTCC}" != "x" ; then
13713 if test "x${CCACHE}" != "x" ; then
13714 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13715 else
13716 aros_cc_pre="${DISTCC} "
13718 else
13719 if test "x${CCACHE}" != "x" ; then
13720 aros_cc_pre="${CCACHE} "
13724 aros_target_nostdinc_cflags=-nostdinc
13726 aros_target_nostartup_ldflags=-nostartfiles
13728 aros_target_nix_ldflags=-nix
13730 aros_target_detach_ldflags=-detach
13732 aros_target_nostdlib_ldflags=-nostdlib
13735 # Target tools
13737 if test "$aros_target_toolchain" != "yes"; then
13738 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13739 if test "$GCC" = "yes"; then
13740 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13742 else
13743 # We do not know which c compiler version we are going to build and what we need to know
13744 # here is different for different versions so this will be set later during the
13745 # build of crosstools.
13746 if test "$aros_toolchain" = "gnu" ; then
13747 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13748 elif test "$aros_toolchain" = "llvm" ; then
13749 prefix="$AROS_CROSSTOOLSDIR/bin/"
13751 aros_target_cc_path=@aros_target_cc_path@
13753 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13754 aros_target_cc="${prefix}${toolchain_c_compiler}"
13755 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13756 aros_target_as="${prefix}${toolchain_as}"
13757 if test "${use_ld_wrapper}" = "yes"; then
13758 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13759 else
13760 aros_target_ld="${prefix}${toolchain_ld}"
13762 aros_toolchain_ld="${prefix}${toolchain_ld}"
13764 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13765 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13766 aros_target_objdump="${prefix}${toolchain_objdump}"
13767 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13768 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13769 aros_target_strip="${prefix}${toolchain_strip}"
13770 aros_plain_nm="${prefix}${toolchain_nm}"
13771 aros_plain_ar="${prefix}${toolchain_ar}"
13773 # Check whether --enable-includes was given.
13774 if test "${enable_includes+set}" = set; then :
13775 enableval=$enable_includes; aros_target_incl=$enable_includes
13776 else
13777 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13781 if test "$aros_kernel_includes" = ""; then
13782 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13783 aros_kernel_includes="-isystem $aros_target_incl"
13787 if test "$aros_kernel_includes" != "" ; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13789 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13790 if test "$aros_kernel_cc_includes" = "" ; then
13791 # Try to guess where the directory is.
13792 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13793 if test -d $aros_kernel_cc_includes; then
13794 # Check if there is also an include-fixed directory and add it
13795 # to kernel compiler's include path as it may contain some of
13796 # the headers we need.
13797 if test -d "$aros_kernel_cc_includes"-fixed; then
13798 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13800 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13801 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13802 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13804 else
13805 # The directory doesn't exist, we need to do some more work.
13806 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13808 # These are the headers we're looking for.
13809 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13810 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13811 zutil.h stdint.h"
13813 dirs=
13814 for h in $headers; do
13815 # Which other headers are needed by each of the above?
13816 deps=$(echo "#include <$h>" | \
13817 $aros_kernel_cc -E -M - 2>/dev/null | \
13818 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13820 # Copy all the needed headers to a directory beneath gendir.
13821 for d in $deps; do
13822 h=$(basename $d)
13823 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13824 sed -n "s,^.*/include\(/.*\),\1,p")
13825 ! test -d $dir && mkdir -p $dir
13826 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13827 done
13828 done
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13832 $as_echo "$aros_kernel_cc_includes" >&6; }
13833 # Adding -nostdinc to kernel includes as they are always used together.
13834 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13837 if test "$crosstools" != "yes"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13839 $as_echo_n "checking for the target compiler's include path... " >&6; }
13840 if test "$aros_target_cc_includes" = "" ; then
13841 #try to guess where the directory is
13842 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13843 if ! test -d $aros_target_cc_includes; then
13844 #the directory doesn't exist, we need to do some more work
13845 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13847 #these are the headers we're looking for
13848 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13849 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13850 zutil.h"
13852 dirs=
13853 for h in $headers; do
13854 #which other headers each of the above headers needs?
13855 deps=$(echo "#include <$h>" | \
13856 $orig_target_cc -E -M - 2>/dev/null | \
13857 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13859 #copy all the needed headers to a directory beneath gendir
13860 for d in $deps; do
13861 h=$(basename $d)
13862 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13863 sed -n "s,^.*/include\(/.*\),\1,p")
13864 ! test -d $dir && mkdir -p $dir
13865 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13866 done
13867 done
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13871 $as_echo "$aros_target_cc_includes" >&6; }
13872 else
13873 # We do not know which c compiler version we are going to build and what we need to know
13874 # here is different for different versions so this will be set later during the
13875 # build of crosstools.
13876 aros_target_cc_includes=@aros_target_cc_includes@
13880 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13881 # On GCC >= 4.0 -iquote should be used
13884 save_cc="$CC"
13885 save_cflags="$CFLAGS"
13886 CFLAGS="-iquote."
13887 kernel_cflags_iquote=$host_cflags_iquote
13888 kernel_cflags_iquote_end=$host_cflags_iquote_end
13889 if test "x-$cross_compiling" = "x-yes"; then
13890 CC="$aros_kernel_cc"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13892 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13893 if test "x-$crosstools" != "x-yes"; then
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13898 main ()
13902 return 0;
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"; then :
13906 use_no_stack_protector="yes"
13907 else
13908 use_no_stack_protector="no"
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 else
13912 # we do know it is supported for the smallest version of gcc we are going to build
13913 # we assume it's also supported by later versions
13914 use_no_stack_protector=yes
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13917 $as_echo "$use_no_stack_protector" >&6; }
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13919 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13920 if test "x-$crosstools" != "x-yes"; then
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13925 main ()
13929 return 0;
13931 _ACEOF
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 has_iquote="yes"
13934 else
13935 has_iquote="no"
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 else
13939 # we do know it is supported for the smallest version of gcc we are going to build
13940 # we assume it's also supported by later versions
13941 has_iquote=yes
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13944 $as_echo "$has_iquote" >&6; }
13945 if test "x-$has_iquote" = "x-yes" ; then
13946 kernel_cflags_iquote=-iquote
13947 kernel_cflags_iquote_end=
13948 else
13949 kernel_cflags_iquote=-I
13950 kernel_cflags_iquote_end=-I-
13953 if test "x-$use_no_stack_protector" = "x-yes" ; then
13954 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13957 #-----------------------------------------------------------------------------
13959 # Check if we can explicitly choose older version of symbol hashing
13961 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13962 CC="$aros_kernel_cc"
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13964 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13969 main ()
13973 return 0;
13975 _ACEOF
13976 if ac_fn_c_try_link "$LINENO"; then :
13977 use_hash_style="yes"
13978 else
13979 use_hash_style="no"
13981 rm -f core conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13984 $as_echo "$use_hash_style" >&6; }
13985 if test "x-$use_hash_style" = "x-yes" ; then
13986 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13988 CC="$save_cc"
13989 CFLAGS="$save_cflags"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13998 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14000 # Check whether --with-resolution was given.
14001 if test "${with_resolution+set}" = set; then :
14002 withval=$with_resolution; resolution=$withval
14003 else
14004 resolution=none
14007 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14008 if test "$resolution" = "yes" ; then
14009 resolution="none"
14011 if test "$resolution" = "no" ; then
14012 resolution="none"
14014 if test "$resolution" != "none" ; then
14015 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14016 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14017 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14020 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14021 aros_cv_nominal_width=$aros_nominal_width
14022 aros_cv_nominal_height=$aros_nominal_height
14023 aros_cv_nominal_depth=$aros_nominal_depth
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14026 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14028 # Check whether --with-serial-debug was given.
14029 if test "${with_serial_debug+set}" = set; then :
14030 withval=$with_serial_debug; serial_debug=$withval
14031 else
14032 serial_debug=none
14035 if test "$aros_serial_debug" = 0 ; then
14036 serial_debug_forced=""
14037 if test "$serial_debug" = "yes" ; then
14038 serial_debug="1"
14040 if test "$serial_debug" = "no" ; then
14041 serial_debug="none"
14043 else
14044 serial_debug_forced="(forced)"
14045 serial_debug=$aros_serial_debug
14047 if test "$serial_debug" != "none" ; then
14048 aros_serial_debug=$serial_debug
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14050 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14057 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14058 # Check whether --enable-palm_debug_hack was given.
14059 if test "${enable_palm_debug_hack+set}" = set; then :
14060 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14061 else
14062 palm_debug_hack="no"
14065 if test "$palm_debug_hack" = "yes" ; then
14066 aros_palm_debug_hack="1"
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14069 $as_echo "$palm_debug_hack" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14072 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14073 # Check whether --enable-usb30_code was given.
14074 if test "${enable_usb30_code+set}" = set; then :
14075 enableval=$enable_usb30_code; usb30_code="yes"
14076 else
14077 usb30_code="no"
14080 if test "$usb30_code" = "yes" ; then
14081 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14082 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14085 $as_echo "$usb30_code" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14088 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14089 # Check whether --enable-nesting_supervisor was given.
14090 if test "${enable_nesting_supervisor+set}" = set; then :
14091 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14092 else
14093 nesting_supervisor="no"
14096 if test "$nesting_supervisor" = "yes" ; then
14097 aros_nesting_supervisor="1"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14100 $as_echo "$nesting_supervisor" >&6; }
14102 if test "$aros_enable_mmu" = "" ; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14104 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14105 # Check whether --enable-mmu was given.
14106 if test "${enable_mmu+set}" = set; then :
14107 enableval=$enable_mmu; aros_enable_mmu=$enableval
14108 else
14109 aros_enable_mmu="yes"
14112 if test "$aros_enable_mmu" = "" ; then
14113 aros_enable_mmu="yes"
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14116 $as_echo "$aros_enable_mmu" >&6; }
14118 if test "$aros_enable_mmu" = "no" ; then
14119 aros_enable_mmu="0"
14120 else
14121 aros_enable_mmu="1"
14125 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14127 if test "x-$need_dlopen" != "x-no" ; then
14128 save_libs="$LIBS"
14129 LIBS=""
14130 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14131 if test "x$ac_cv_func_dlopen" = xyes; then :
14132 have_dl="yes"
14133 else
14134 have_dl="no"
14137 if test "x-$have_dl" = "x-no" ; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14139 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14140 if ${ac_cv_lib_dl_dlopen+:} false; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-ldl $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char dlopen ();
14156 main ()
14158 return dlopen ();
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_dl_dlopen=yes
14165 else
14166 ac_cv_lib_dl_dlopen=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14173 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14174 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14175 have_dl="yes"
14176 aros_host_ldflags="$aros_host_ldflags -ldl"
14177 else
14178 have_dl="no"
14182 if test "x-$have_dl" = "x-no" ; then
14183 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14185 LIBS="$save_libs"
14189 # Check whether --enable-x11_hidd was given.
14190 if test "${enable_x11_hidd+set}" = set; then :
14191 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14192 else
14193 x11_hidd="$need_x11"
14196 case "x-$x11_hidd" in
14197 x-yes|x-no|x-auto) ;;
14198 *) x11_hidd="$need_x11" ;;
14199 esac
14201 ENABLE_X11=0
14203 if test "x-$x11_hidd" != "x-no" ; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14206 $as_echo_n "checking for X... " >&6; }
14209 # Check whether --with-x was given.
14210 if test "${with_x+set}" = set; then :
14211 withval=$with_x;
14214 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14215 if test "x$with_x" = xno; then
14216 # The user explicitly disabled X.
14217 have_x=disabled
14218 else
14219 case $x_includes,$x_libraries in #(
14220 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14221 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 # One or both of the vars are not set, and there is no cached value.
14225 ac_x_includes=no ac_x_libraries=no
14226 rm -f -r conftest.dir
14227 if mkdir conftest.dir; then
14228 cd conftest.dir
14229 cat >Imakefile <<'_ACEOF'
14230 incroot:
14231 @echo incroot='${INCROOT}'
14232 usrlibdir:
14233 @echo usrlibdir='${USRLIBDIR}'
14234 libdir:
14235 @echo libdir='${LIBDIR}'
14236 _ACEOF
14237 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14238 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14239 for ac_var in incroot usrlibdir libdir; do
14240 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14241 done
14242 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14243 for ac_extension in a so sl dylib la dll; do
14244 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14245 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14246 ac_im_usrlibdir=$ac_im_libdir; break
14248 done
14249 # Screen out bogus values from the imake configuration. They are
14250 # bogus both because they are the default anyway, and because
14251 # using them would break gcc on systems where it needs fixed includes.
14252 case $ac_im_incroot in
14253 /usr/include) ac_x_includes= ;;
14254 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14255 esac
14256 case $ac_im_usrlibdir in
14257 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14258 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14259 esac
14261 cd ..
14262 rm -f -r conftest.dir
14265 # Standard set of common directories for X headers.
14266 # Check X11 before X11Rn because it is often a symlink to the current release.
14267 ac_x_header_dirs='
14268 /usr/X11/include
14269 /usr/X11R7/include
14270 /usr/X11R6/include
14271 /usr/X11R5/include
14272 /usr/X11R4/include
14274 /usr/include/X11
14275 /usr/include/X11R7
14276 /usr/include/X11R6
14277 /usr/include/X11R5
14278 /usr/include/X11R4
14280 /usr/local/X11/include
14281 /usr/local/X11R7/include
14282 /usr/local/X11R6/include
14283 /usr/local/X11R5/include
14284 /usr/local/X11R4/include
14286 /usr/local/include/X11
14287 /usr/local/include/X11R7
14288 /usr/local/include/X11R6
14289 /usr/local/include/X11R5
14290 /usr/local/include/X11R4
14292 /usr/X386/include
14293 /usr/x386/include
14294 /usr/XFree86/include/X11
14296 /usr/include
14297 /usr/local/include
14298 /usr/unsupported/include
14299 /usr/athena/include
14300 /usr/local/x11r5/include
14301 /usr/lpp/Xamples/include
14303 /usr/openwin/include
14304 /usr/openwin/share/include'
14306 if test "$ac_x_includes" = no; then
14307 # Guess where to find include files, by looking for Xlib.h.
14308 # First, try using that file with no special directory specified.
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311 #include <X11/Xlib.h>
14312 _ACEOF
14313 if ac_fn_c_try_cpp "$LINENO"; then :
14314 # We can compile using X headers with no special include directory.
14315 ac_x_includes=
14316 else
14317 for ac_dir in $ac_x_header_dirs; do
14318 if test -r "$ac_dir/X11/Xlib.h"; then
14319 ac_x_includes=$ac_dir
14320 break
14322 done
14324 rm -f conftest.err conftest.i conftest.$ac_ext
14325 fi # $ac_x_includes = no
14327 if test "$ac_x_libraries" = no; then
14328 # Check for the libraries.
14329 # See if we find them without any special options.
14330 # Don't add to $LIBS permanently.
14331 ac_save_LIBS=$LIBS
14332 LIBS="-lX11 $LIBS"
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 #include <X11/Xlib.h>
14337 main ()
14339 XrmInitialize ()
14341 return 0;
14343 _ACEOF
14344 if ac_fn_c_try_link "$LINENO"; then :
14345 LIBS=$ac_save_LIBS
14346 # We can link X programs with no special library path.
14347 ac_x_libraries=
14348 else
14349 LIBS=$ac_save_LIBS
14350 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14352 # Don't even attempt the hair of trying to link an X program!
14353 for ac_extension in a so sl dylib la dll; do
14354 if test -r "$ac_dir/libX11.$ac_extension"; then
14355 ac_x_libraries=$ac_dir
14356 break 2
14358 done
14359 done
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 fi # $ac_x_libraries = no
14365 case $ac_x_includes,$ac_x_libraries in #(
14366 no,* | *,no | *\'*)
14367 # Didn't find X, or a directory has "'" in its name.
14368 ac_cv_have_x="have_x=no";; #(
14370 # Record where we found X for the cache.
14371 ac_cv_have_x="have_x=yes\
14372 ac_x_includes='$ac_x_includes'\
14373 ac_x_libraries='$ac_x_libraries'"
14374 esac
14376 ;; #(
14377 *) have_x=yes;;
14378 esac
14379 eval "$ac_cv_have_x"
14380 fi # $with_x != no
14382 if test "$have_x" != yes; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14384 $as_echo "$have_x" >&6; }
14385 no_x=yes
14386 else
14387 # If each of the values was on the command line, it overrides each guess.
14388 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14389 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14390 # Update the cache value to reflect the command line values.
14391 ac_cv_have_x="have_x=yes\
14392 ac_x_includes='$x_includes'\
14393 ac_x_libraries='$x_libraries'"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14395 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14399 if test -n "$x_includes"; then
14400 X_CFLAGS="$X_CFLAGS -I$x_includes"
14403 if test -n "$x_libraries"; then
14404 X_LIBS="$X_LIBS -L$x_libraries"
14407 if test "x-$no_x" = "x-yes" ; then
14409 if test "x-$x11_hidd" != "x-auto" ; then
14410 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14413 else
14414 host_x_gfx=yes
14415 ENABLE_X11=1
14417 aros_host_x11_cflags="$X_CFLAGS"
14418 aros_host_x11_ldflags="$X_LIBS -lX11"
14420 # Check whether --enable-x11_shm was given.
14421 if test "${enable_x11_shm+set}" = set; then :
14422 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14423 else
14424 x11_hidd_shm="auto"
14427 case "x-$x11_hidd_shm" in
14428 x-yes|x-no|x-auto) ;;
14429 *) x11_hidd_shm="auto" ;;
14430 esac
14432 have_xshm=no
14434 if test "x-$x11_hidd_shm" != "x-no" ; then
14436 for ac_header in sys/ipc.h
14437 do :
14438 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14439 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_SYS_IPC_H 1
14442 _ACEOF
14446 done
14448 for ac_header in sys/shm.h
14449 do :
14450 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14451 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14452 cat >>confdefs.h <<_ACEOF
14453 #define HAVE_SYS_SHM_H 1
14454 _ACEOF
14458 done
14461 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14463 save_cflags="$CFLAGS"
14464 save_ldflags="$LDFLAGS"
14465 CFLAGS="$CFLAGS $X_CFLAGS"
14466 LDFLAGS="$LDFLAGS $X_LIBS"
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14468 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14469 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14470 $as_echo_n "(cached) " >&6
14471 else
14472 ac_check_lib_save_LIBS=$LIBS
14473 LIBS="-lXext $LIBS"
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 char XShmQueryExtension ();
14485 main ()
14487 return XShmQueryExtension ();
14489 return 0;
14491 _ACEOF
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 ac_cv_lib_Xext_XShmQueryExtension=yes
14494 else
14495 ac_cv_lib_Xext_XShmQueryExtension=no
14497 rm -f core conftest.err conftest.$ac_objext \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14502 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14503 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14504 have_xshm=yes
14507 CFLAGS="$save_cflags"
14508 LDFLAGS="$save_ldflags"
14512 if test "x-$have_xshm" = "x-yes" ; then
14513 DO_XSHM_SUPPORT="1"
14514 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14515 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14516 else
14517 DO_XSHM_SUPPORT="0"
14521 # Check whether --enable-x11_vidmode was given.
14522 if test "${enable_x11_vidmode+set}" = set; then :
14523 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14524 else
14525 x11_hidd_vidmode="auto"
14528 case "x-$x11_hidd_vidmode" in
14529 x-yes|x-no|x-auto) ;;
14530 *) x11_hidd_vidmode="auto" ;;
14531 esac
14533 have_vidmode=no
14535 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14537 save_cflags="$CFLAGS"
14538 save_ldflags="$LDFLAGS"
14539 CFLAGS="$CFLAGS $X_CFLAGS"
14540 LDFLAGS="$LDFLAGS $X_LIBS"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14542 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14543 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-lXxf86vm $LIBS"
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char XF86VidModeQueryExtension ();
14559 main ()
14561 return XF86VidModeQueryExtension ();
14563 return 0;
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"; then :
14567 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14568 else
14569 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14576 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14577 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14578 have_vidmode=yes
14581 CFLAGS="$save_cflags"
14582 LDFLAGS="$save_ldflags"
14585 if test "x-$have_vidmode" = "x-yes" ; then
14586 DO_VIDMODE_SUPPORT="1"
14587 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14588 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14589 else
14590 DO_VIDMODE_SUPPORT="0"
14595 # Check whether --enable-sdl_hidd was given.
14596 if test "${enable_sdl_hidd+set}" = set; then :
14597 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14598 else
14599 sdl_hidd="auto"
14602 case "x-$sdl_hidd" in
14603 x-yes|x-no|x-auto) ;;
14604 *) sdl_hidd="auto" ;;
14605 esac
14607 if test "x-$sdl_hidd" != "x-no" ; then
14609 SDL_VERSION=1.2.5
14611 # Check whether --with-sdl-prefix was given.
14612 if test "${with_sdl_prefix+set}" = set; then :
14613 withval=$with_sdl_prefix; sdl_prefix="$withval"
14614 else
14615 sdl_prefix=""
14619 # Check whether --with-sdl-exec-prefix was given.
14620 if test "${with_sdl_exec_prefix+set}" = set; then :
14621 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14622 else
14623 sdl_exec_prefix=""
14626 # Check whether --enable-sdltest was given.
14627 if test "${enable_sdltest+set}" = set; then :
14628 enableval=$enable_sdltest;
14629 else
14630 enable_sdltest=yes
14634 if test x$sdl_exec_prefix != x ; then
14635 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14636 if test x${SDL_CONFIG+set} != xset ; then
14637 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14640 if test x$sdl_prefix != x ; then
14641 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14642 if test x${SDL_CONFIG+set} != xset ; then
14643 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14647 as_save_PATH="$PATH"
14648 if test "x$prefix" != xNONE; then
14649 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14651 # Extract the first word of "sdl-config", so it can be a program name with args.
14652 set dummy sdl-config; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654 $as_echo_n "checking for $ac_word... " >&6; }
14655 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 case $SDL_CONFIG in
14659 [\\/]* | ?:[\\/]*)
14660 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664 for as_dir in $PATH
14666 IFS=$as_save_IFS
14667 test -z "$as_dir" && as_dir=.
14668 for ac_exec_ext in '' $ac_executable_extensions; do
14669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14670 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14672 break 2
14674 done
14675 done
14676 IFS=$as_save_IFS
14678 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14680 esac
14682 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14683 if test -n "$SDL_CONFIG"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14685 $as_echo "$SDL_CONFIG" >&6; }
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14692 PATH="$as_save_PATH"
14693 min_sdl_version=$SDL_VERSION
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14695 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14696 no_sdl=""
14697 if test "$SDL_CONFIG" = "no" ; then
14698 no_sdl=yes
14699 else
14700 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14701 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14703 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14705 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14707 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14709 if test "x$enable_sdltest" = "xyes" ; then
14710 ac_save_CFLAGS="$CFLAGS"
14711 ac_save_CXXFLAGS="$CXXFLAGS"
14712 ac_save_LIBS="$LIBS"
14713 CFLAGS="$CFLAGS $SDL_CFLAGS"
14714 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14715 LIBS="$LIBS $SDL_LIBS"
14716 rm -f conf.sdltest
14717 if test "$cross_compiling" = yes; then :
14718 echo $ac_n "cross compiling; assumed OK... $ac_c"
14719 else
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14723 #include <stdio.h>
14724 #include <stdlib.h>
14725 #include <string.h>
14726 #include "SDL.h"
14728 char*
14729 my_strdup (char *str)
14731 char *new_str;
14733 if (str)
14735 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14736 strcpy (new_str, str);
14738 else
14739 new_str = NULL;
14741 return new_str;
14744 int main (int argc, char *argv[])
14746 int major, minor, micro;
14747 char *tmp_version;
14749 /* This hangs on some systems (?)
14750 system ("touch conf.sdltest");
14752 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14754 /* HP/UX 9 (%@#!) writes to sscanf strings */
14755 tmp_version = my_strdup("$min_sdl_version");
14756 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14757 printf("%s, bad version string\n", "$min_sdl_version");
14758 exit(1);
14761 if (($sdl_major_version > major) ||
14762 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14763 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14765 return 0;
14767 else
14769 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14770 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14771 printf("*** best to upgrade to the required version.\n");
14772 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14773 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14774 printf("*** config.cache before re-running configure\n");
14775 return 1;
14780 _ACEOF
14781 if ac_fn_c_try_run "$LINENO"; then :
14783 else
14784 no_sdl=yes
14786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14787 conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 CFLAGS="$ac_save_CFLAGS"
14791 CXXFLAGS="$ac_save_CXXFLAGS"
14792 LIBS="$ac_save_LIBS"
14795 if test "x$no_sdl" = x ; then
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797 $as_echo "yes" >&6; }
14798 have_sdl="yes"
14799 else
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14801 $as_echo "no" >&6; }
14802 if test "$SDL_CONFIG" = "no" ; then
14803 echo "*** The sdl-config script installed by SDL could not be found"
14804 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14805 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14806 echo "*** full path to sdl-config."
14807 else
14808 if test -f conf.sdltest ; then
14810 else
14811 echo "*** Could not run SDL test program, checking why..."
14812 CFLAGS="$CFLAGS $SDL_CFLAGS"
14813 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14814 LIBS="$LIBS $SDL_LIBS"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14818 #include <stdio.h>
14819 #include "SDL.h"
14821 int main(int argc, char *argv[])
14822 { return 0; }
14823 #undef main
14824 #define main K_and_R_C_main
14827 main ()
14829 return 0;
14831 return 0;
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"; then :
14835 echo "*** The test program compiled, but did not run. This usually means"
14836 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14837 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14838 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14839 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14840 echo "*** is required on your system"
14841 echo "***"
14842 echo "*** If you have an old version installed, it is best to remove it, although"
14843 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14844 else
14845 echo "*** The test program failed to compile or link. See the file config.log for the"
14846 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14847 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14848 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14850 rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852 CFLAGS="$ac_save_CFLAGS"
14853 CXXFLAGS="$ac_save_CXXFLAGS"
14854 LIBS="$ac_save_LIBS"
14857 SDL_CFLAGS=""
14858 SDL_LIBS=""
14859 have_sdl="no"
14863 rm -f conf.sdltest
14866 if test "x-$have_sdl" != "x-yes" ; then
14868 if test "x-$sdl_hidd" != "x-auto" ; then
14869 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14872 else
14873 host_sdl_gfx=yes
14874 aros_host_sdl_cflags=$SDL_CFLAGS
14875 aros_host_sdl_libs=$SDL_LIBS
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14883 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14884 # Check whether --enable-dbus was given.
14885 if test "${enable_dbus+set}" = set; then :
14886 enableval=$enable_dbus; dbus="yes"
14887 else
14888 dbus="no"
14891 if test "$dbus" = "yes" ; then
14892 ENABLE_DBUS=1
14893 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14894 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14895 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14896 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14897 else
14898 ENABLE_DBUS=0
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14901 $as_echo "$dbus" >&6; }
14903 if test "$use_kernel_cc_wrapper" = "yes" ; then
14904 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14907 aros_kernel_cppflags=$aros_config_cppflags
14908 aros_optimization_cflags="$optimization_level"
14909 if test "$optimization" = "default"; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
14911 $as_echo_n "checking default optimization level to use... " >&6; }
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
14913 $as_echo "$optimization_level" >&6; }
14917 # Generic
14931 # Compatability with other Amiga-like operation systems
14934 # Host related
14964 # Target Related
15043 # Hosted Graphics Related
15061 # Bootloader related
15064 # Native version related
15069 # Palm native version related
15072 # Unix/Hosted version related
15075 # MMU related
15078 # Apple iOS related
15083 # ARM default GCC target related
15090 # Android related
15095 # DBUS related
15102 #X11 related
15105 # Debug related
15111 # Collect-aros stuff: "-ius" to ignore undefined symbols
15114 # C compiler related
15119 #ObjC compiler related
15122 #Java related
15125 # USB3.0 code
15128 case "$aros_flavour" in
15129 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15130 aros_flavour="emulation" ;;
15131 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15132 aros_flavour="emulation" ;;
15133 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15134 aros_flavour="standalone";;
15135 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15136 aros_flavour="standalone";;
15137 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15138 aros_flavour="native" ;;
15139 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15140 aros_flavour="native" ;;
15141 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15142 aros_flavour="linklib" ;;
15143 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15144 aros_flavour="palmnative" ;;
15145 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15146 aros_flavour="mac68knative" ;;
15147 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15148 aros_flavour="ppcnative" ;;
15149 esac
15151 if test ! -d ${aros_inc_dir} ; then
15152 ${MKDIR} ${aros_inc_dir}
15154 if test ! -d ${aros_geninc_dir} ; then
15155 ${MKDIR} ${aros_geninc_dir}
15157 if test ! -d ${aros_hostcfg_dir} ; then
15158 ${MKDIR} ${aros_hostcfg_dir}
15160 if test ! -d ${aros_targetcfg_dir} ; then
15161 ${MKDIR} ${aros_targetcfg_dir}
15163 if test ! -d ${aros_tools_dir} ; then
15164 ${MKDIR} ${aros_tools_dir}
15166 if test ! -d ${aros_scripts_dir} ; then
15167 ${MKDIR} ${aros_scripts_dir}
15170 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15173 # Generic build tools (metamake, etc)
15174 ac_config_commands="$ac_config_commands genmf-executable-support"
15176 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"
15179 # Binutils
15180 ac_config_commands="$ac_config_commands binutils-support"
15182 if test "${use_ld_wrapper}" = "yes"; then
15183 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"
15186 # Bare Elf support script and spec
15187 if test "${use_kernel_cc_wrapper}" = "yes"; then
15188 ac_config_commands="$ac_config_commands elf-compiler-support"
15190 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"
15194 # Host compiler support scripts and spec
15195 if test "${aros_target_toolchain}" = "no"; then
15196 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15198 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"
15202 # Android support
15203 if test "$aros_target_variant" == "android"; then
15204 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15208 # cmake helper
15209 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15212 cat >confcache <<\_ACEOF
15213 # This file is a shell script that caches the results of configure
15214 # tests run on this system so they can be shared between configure
15215 # scripts and configure runs, see configure's option --config-cache.
15216 # It is not useful on other systems. If it contains results you don't
15217 # want to keep, you may remove or edit it.
15219 # config.status only pays attention to the cache file if you give it
15220 # the --recheck option to rerun configure.
15222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15224 # following values.
15226 _ACEOF
15228 # The following way of writing the cache mishandles newlines in values,
15229 # but we know of no workaround that is simple, portable, and efficient.
15230 # So, we kill variables containing newlines.
15231 # Ultrix sh set writes to stderr and can't be redirected directly,
15232 # and sets the high bit in the cache file unless we assign to the vars.
15234 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15235 eval ac_val=\$$ac_var
15236 case $ac_val in #(
15237 *${as_nl}*)
15238 case $ac_var in #(
15239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15241 esac
15242 case $ac_var in #(
15243 _ | IFS | as_nl) ;; #(
15244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15245 *) { eval $ac_var=; unset $ac_var;} ;;
15246 esac ;;
15247 esac
15248 done
15250 (set) 2>&1 |
15251 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15252 *${as_nl}ac_space=\ *)
15253 # `set' does not quote correctly, so add quotes: double-quote
15254 # substitution turns \\\\ into \\, and sed turns \\ into \.
15255 sed -n \
15256 "s/'/'\\\\''/g;
15257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15258 ;; #(
15260 # `set' quotes correctly as required by POSIX, so do not add quotes.
15261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15263 esac |
15264 sort
15266 sed '
15267 /^ac_cv_env_/b end
15268 t clear
15269 :clear
15270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15271 t end
15272 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15273 :end' >>confcache
15274 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15275 if test -w "$cache_file"; then
15276 if test "x$cache_file" != "x/dev/null"; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15278 $as_echo "$as_me: updating cache $cache_file" >&6;}
15279 if test ! -f "$cache_file" || test -h "$cache_file"; then
15280 cat confcache >"$cache_file"
15281 else
15282 case $cache_file in #(
15283 */* | ?:*)
15284 mv -f confcache "$cache_file"$$ &&
15285 mv -f "$cache_file"$$ "$cache_file" ;; #(
15287 mv -f confcache "$cache_file" ;;
15288 esac
15291 else
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15293 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15296 rm -f confcache
15298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15299 # Let make expand exec_prefix.
15300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15302 DEFS=-DHAVE_CONFIG_H
15304 ac_libobjs=
15305 ac_ltlibobjs=
15307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15308 # 1. Remove the extension, and $U if already installed.
15309 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15310 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15311 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15312 # will be set to the directory where LIBOBJS objects are built.
15313 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15314 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15315 done
15316 LIBOBJS=$ac_libobjs
15318 LTLIBOBJS=$ac_ltlibobjs
15322 : "${CONFIG_STATUS=./config.status}"
15323 ac_write_fail=0
15324 ac_clean_files_save=$ac_clean_files
15325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15327 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15328 as_write_fail=0
15329 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15330 #! $SHELL
15331 # Generated by $as_me.
15332 # Run this file to recreate the current configuration.
15333 # Compiler output produced by configure, useful for debugging
15334 # configure, is in config.log if it exists.
15336 debug=false
15337 ac_cs_recheck=false
15338 ac_cs_silent=false
15340 SHELL=\${CONFIG_SHELL-$SHELL}
15341 export SHELL
15342 _ASEOF
15343 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15344 ## -------------------- ##
15345 ## M4sh Initialization. ##
15346 ## -------------------- ##
15348 # Be more Bourne compatible
15349 DUALCASE=1; export DUALCASE # for MKS sh
15350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15351 emulate sh
15352 NULLCMD=:
15353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15354 # is contrary to our usage. Disable this feature.
15355 alias -g '${1+"$@"}'='"$@"'
15356 setopt NO_GLOB_SUBST
15357 else
15358 case `(set -o) 2>/dev/null` in #(
15359 *posix*) :
15360 set -o posix ;; #(
15361 *) :
15363 esac
15367 as_nl='
15369 export as_nl
15370 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15371 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15374 # Prefer a ksh shell builtin over an external printf program on Solaris,
15375 # but without wasting forks for bash or zsh.
15376 if test -z "$BASH_VERSION$ZSH_VERSION" \
15377 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15378 as_echo='print -r --'
15379 as_echo_n='print -rn --'
15380 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15381 as_echo='printf %s\n'
15382 as_echo_n='printf %s'
15383 else
15384 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15385 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15386 as_echo_n='/usr/ucb/echo -n'
15387 else
15388 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15389 as_echo_n_body='eval
15390 arg=$1;
15391 case $arg in #(
15392 *"$as_nl"*)
15393 expr "X$arg" : "X\\(.*\\)$as_nl";
15394 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15395 esac;
15396 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15398 export as_echo_n_body
15399 as_echo_n='sh -c $as_echo_n_body as_echo'
15401 export as_echo_body
15402 as_echo='sh -c $as_echo_body as_echo'
15405 # The user is always right.
15406 if test "${PATH_SEPARATOR+set}" != set; then
15407 PATH_SEPARATOR=:
15408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15410 PATH_SEPARATOR=';'
15415 # IFS
15416 # We need space, tab and new line, in precisely that order. Quoting is
15417 # there to prevent editors from complaining about space-tab.
15418 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15419 # splitting by setting IFS to empty value.)
15420 IFS=" "" $as_nl"
15422 # Find who we are. Look in the path if we contain no directory separator.
15423 as_myself=
15424 case $0 in #((
15425 *[\\/]* ) as_myself=$0 ;;
15426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15427 for as_dir in $PATH
15429 IFS=$as_save_IFS
15430 test -z "$as_dir" && as_dir=.
15431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15432 done
15433 IFS=$as_save_IFS
15436 esac
15437 # We did not find ourselves, most probably we were run as `sh COMMAND'
15438 # in which case we are not to be found in the path.
15439 if test "x$as_myself" = x; then
15440 as_myself=$0
15442 if test ! -f "$as_myself"; then
15443 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15444 exit 1
15447 # Unset variables that we do not need and which cause bugs (e.g. in
15448 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15449 # suppresses any "Segmentation fault" message there. '((' could
15450 # trigger a bug in pdksh 5.2.14.
15451 for as_var in BASH_ENV ENV MAIL MAILPATH
15452 do eval test x\${$as_var+set} = xset \
15453 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15454 done
15455 PS1='$ '
15456 PS2='> '
15457 PS4='+ '
15459 # NLS nuisances.
15460 LC_ALL=C
15461 export LC_ALL
15462 LANGUAGE=C
15463 export LANGUAGE
15465 # CDPATH.
15466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15469 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15470 # ----------------------------------------
15471 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15472 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15473 # script with STATUS, using 1 if that was 0.
15474 as_fn_error ()
15476 as_status=$1; test $as_status -eq 0 && as_status=1
15477 if test "$4"; then
15478 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15479 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15481 $as_echo "$as_me: error: $2" >&2
15482 as_fn_exit $as_status
15483 } # as_fn_error
15486 # as_fn_set_status STATUS
15487 # -----------------------
15488 # Set $? to STATUS, without forking.
15489 as_fn_set_status ()
15491 return $1
15492 } # as_fn_set_status
15494 # as_fn_exit STATUS
15495 # -----------------
15496 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15497 as_fn_exit ()
15499 set +e
15500 as_fn_set_status $1
15501 exit $1
15502 } # as_fn_exit
15504 # as_fn_unset VAR
15505 # ---------------
15506 # Portably unset VAR.
15507 as_fn_unset ()
15509 { eval $1=; unset $1;}
15511 as_unset=as_fn_unset
15512 # as_fn_append VAR VALUE
15513 # ----------------------
15514 # Append the text in VALUE to the end of the definition contained in VAR. Take
15515 # advantage of any shell optimizations that allow amortized linear growth over
15516 # repeated appends, instead of the typical quadratic growth present in naive
15517 # implementations.
15518 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15519 eval 'as_fn_append ()
15521 eval $1+=\$2
15523 else
15524 as_fn_append ()
15526 eval $1=\$$1\$2
15528 fi # as_fn_append
15530 # as_fn_arith ARG...
15531 # ------------------
15532 # Perform arithmetic evaluation on the ARGs, and store the result in the
15533 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15534 # must be portable across $(()) and expr.
15535 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15536 eval 'as_fn_arith ()
15538 as_val=$(( $* ))
15540 else
15541 as_fn_arith ()
15543 as_val=`expr "$@" || test $? -eq 1`
15545 fi # as_fn_arith
15548 if expr a : '\(a\)' >/dev/null 2>&1 &&
15549 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15550 as_expr=expr
15551 else
15552 as_expr=false
15555 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15556 as_basename=basename
15557 else
15558 as_basename=false
15561 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15562 as_dirname=dirname
15563 else
15564 as_dirname=false
15567 as_me=`$as_basename -- "$0" ||
15568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15569 X"$0" : 'X\(//\)$' \| \
15570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15571 $as_echo X/"$0" |
15572 sed '/^.*\/\([^/][^/]*\)\/*$/{
15573 s//\1/
15576 /^X\/\(\/\/\)$/{
15577 s//\1/
15580 /^X\/\(\/\).*/{
15581 s//\1/
15584 s/.*/./; q'`
15586 # Avoid depending upon Character Ranges.
15587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15590 as_cr_digits='0123456789'
15591 as_cr_alnum=$as_cr_Letters$as_cr_digits
15593 ECHO_C= ECHO_N= ECHO_T=
15594 case `echo -n x` in #(((((
15595 -n*)
15596 case `echo 'xy\c'` in
15597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15598 xy) ECHO_C='\c';;
15599 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15600 ECHO_T=' ';;
15601 esac;;
15603 ECHO_N='-n';;
15604 esac
15606 rm -f conf$$ conf$$.exe conf$$.file
15607 if test -d conf$$.dir; then
15608 rm -f conf$$.dir/conf$$.file
15609 else
15610 rm -f conf$$.dir
15611 mkdir conf$$.dir 2>/dev/null
15613 if (echo >conf$$.file) 2>/dev/null; then
15614 if ln -s conf$$.file conf$$ 2>/dev/null; then
15615 as_ln_s='ln -s'
15616 # ... but there are two gotchas:
15617 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15618 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15619 # In both cases, we have to default to `cp -pR'.
15620 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15621 as_ln_s='cp -pR'
15622 elif ln conf$$.file conf$$ 2>/dev/null; then
15623 as_ln_s=ln
15624 else
15625 as_ln_s='cp -pR'
15627 else
15628 as_ln_s='cp -pR'
15630 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15631 rmdir conf$$.dir 2>/dev/null
15634 # as_fn_mkdir_p
15635 # -------------
15636 # Create "$as_dir" as a directory, including parents if necessary.
15637 as_fn_mkdir_p ()
15640 case $as_dir in #(
15641 -*) as_dir=./$as_dir;;
15642 esac
15643 test -d "$as_dir" || eval $as_mkdir_p || {
15644 as_dirs=
15645 while :; do
15646 case $as_dir in #(
15647 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15648 *) as_qdir=$as_dir;;
15649 esac
15650 as_dirs="'$as_qdir' $as_dirs"
15651 as_dir=`$as_dirname -- "$as_dir" ||
15652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15653 X"$as_dir" : 'X\(//\)[^/]' \| \
15654 X"$as_dir" : 'X\(//\)$' \| \
15655 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15656 $as_echo X"$as_dir" |
15657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15658 s//\1/
15661 /^X\(\/\/\)[^/].*/{
15662 s//\1/
15665 /^X\(\/\/\)$/{
15666 s//\1/
15669 /^X\(\/\).*/{
15670 s//\1/
15673 s/.*/./; q'`
15674 test -d "$as_dir" && break
15675 done
15676 test -z "$as_dirs" || eval "mkdir $as_dirs"
15677 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15680 } # as_fn_mkdir_p
15681 if mkdir -p . 2>/dev/null; then
15682 as_mkdir_p='mkdir -p "$as_dir"'
15683 else
15684 test -d ./-p && rmdir ./-p
15685 as_mkdir_p=false
15689 # as_fn_executable_p FILE
15690 # -----------------------
15691 # Test if FILE is an executable regular file.
15692 as_fn_executable_p ()
15694 test -f "$1" && test -x "$1"
15695 } # as_fn_executable_p
15696 as_test_x='test -x'
15697 as_executable_p=as_fn_executable_p
15699 # Sed expression to map a string onto a valid CPP name.
15700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15702 # Sed expression to map a string onto a valid variable name.
15703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15706 exec 6>&1
15707 ## ----------------------------------- ##
15708 ## Main body of $CONFIG_STATUS script. ##
15709 ## ----------------------------------- ##
15710 _ASEOF
15711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15714 # Save the log message, to keep $0 and so on meaningful, and to
15715 # report actual input values of CONFIG_FILES etc. instead of their
15716 # values after options handling.
15717 ac_log="
15718 This file was extended by $as_me, which was
15719 generated by GNU Autoconf 2.69. Invocation command line was
15721 CONFIG_FILES = $CONFIG_FILES
15722 CONFIG_HEADERS = $CONFIG_HEADERS
15723 CONFIG_LINKS = $CONFIG_LINKS
15724 CONFIG_COMMANDS = $CONFIG_COMMANDS
15725 $ $0 $@
15727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15730 _ACEOF
15732 case $ac_config_files in *"
15733 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15734 esac
15736 case $ac_config_headers in *"
15737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15738 esac
15741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15742 # Files that config.status was made for.
15743 config_files="$ac_config_files"
15744 config_headers="$ac_config_headers"
15745 config_commands="$ac_config_commands"
15747 _ACEOF
15749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 ac_cs_usage="\
15751 \`$as_me' instantiates files and other configuration actions
15752 from templates according to the current configuration. Unless the files
15753 and actions are specified as TAGs, all are instantiated by default.
15755 Usage: $0 [OPTION]... [TAG]...
15757 -h, --help print this help, then exit
15758 -V, --version print version number and configuration settings, then exit
15759 --config print configuration, then exit
15760 -q, --quiet, --silent
15761 do not print progress messages
15762 -d, --debug don't remove temporary files
15763 --recheck update $as_me by reconfiguring in the same conditions
15764 --file=FILE[:TEMPLATE]
15765 instantiate the configuration file FILE
15766 --header=FILE[:TEMPLATE]
15767 instantiate the configuration header FILE
15769 Configuration files:
15770 $config_files
15772 Configuration headers:
15773 $config_headers
15775 Configuration commands:
15776 $config_commands
15778 Report bugs to the package provider."
15780 _ACEOF
15781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15783 ac_cs_version="\\
15784 config.status
15785 configured by $0, generated by GNU Autoconf 2.69,
15786 with options \\"\$ac_cs_config\\"
15788 Copyright (C) 2012 Free Software Foundation, Inc.
15789 This config.status script is free software; the Free Software Foundation
15790 gives unlimited permission to copy, distribute and modify it."
15792 ac_pwd='$ac_pwd'
15793 srcdir='$srcdir'
15794 test -n "\$AWK" || AWK=awk
15795 _ACEOF
15797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798 # The default lists apply if the user does not specify any file.
15799 ac_need_defaults=:
15800 while test $# != 0
15802 case $1 in
15803 --*=?*)
15804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15806 ac_shift=:
15808 --*=)
15809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15810 ac_optarg=
15811 ac_shift=:
15814 ac_option=$1
15815 ac_optarg=$2
15816 ac_shift=shift
15818 esac
15820 case $ac_option in
15821 # Handling of the options.
15822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15823 ac_cs_recheck=: ;;
15824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15825 $as_echo "$ac_cs_version"; exit ;;
15826 --config | --confi | --conf | --con | --co | --c )
15827 $as_echo "$ac_cs_config"; exit ;;
15828 --debug | --debu | --deb | --de | --d | -d )
15829 debug=: ;;
15830 --file | --fil | --fi | --f )
15831 $ac_shift
15832 case $ac_optarg in
15833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15834 '') as_fn_error $? "missing file argument" ;;
15835 esac
15836 as_fn_append CONFIG_FILES " '$ac_optarg'"
15837 ac_need_defaults=false;;
15838 --header | --heade | --head | --hea )
15839 $ac_shift
15840 case $ac_optarg in
15841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15842 esac
15843 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15844 ac_need_defaults=false;;
15845 --he | --h)
15846 # Conflict between --help and --header
15847 as_fn_error $? "ambiguous option: \`$1'
15848 Try \`$0 --help' for more information.";;
15849 --help | --hel | -h )
15850 $as_echo "$ac_cs_usage"; exit ;;
15851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15853 ac_cs_silent=: ;;
15855 # This is an error.
15856 -*) as_fn_error $? "unrecognized option: \`$1'
15857 Try \`$0 --help' for more information." ;;
15859 *) as_fn_append ac_config_targets " $1"
15860 ac_need_defaults=false ;;
15862 esac
15863 shift
15864 done
15866 ac_configure_extra_args=
15868 if $ac_cs_silent; then
15869 exec 6>/dev/null
15870 ac_configure_extra_args="$ac_configure_extra_args --silent"
15873 _ACEOF
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 if \$ac_cs_recheck; then
15876 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15877 shift
15878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15879 CONFIG_SHELL='$SHELL'
15880 export CONFIG_SHELL
15881 exec "\$@"
15884 _ACEOF
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 exec 5>>config.log
15888 echo
15889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15890 ## Running $as_me. ##
15891 _ASBOX
15892 $as_echo "$ac_log"
15893 } >&5
15895 _ACEOF
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15898 # INIT-COMMANDS
15901 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15902 aros_tools_dir=${aros_tools_dir}
15906 aros_host_exe_suffix=${aros_host_exe_suffix}
15907 aros_tools_dir=${aros_tools_dir}
15908 aros_target_cpu=${aros_target_cpu}
15909 aros_target_arch=${aros_target_arch}
15910 aros_target_suffix=${aros_target_suffix}
15911 orig_target_nm=${orig_target_nm}
15912 orig_target_as=${orig_target_as}
15913 orig_target_ar=${orig_target_ar}
15914 orig_target_ranlib=${orig_target_ranlib}
15915 orig_target_objdump=${orig_target_objdump}
15916 orig_target_objcopy=${orig_target_objcopy}
15917 orig_target_strip=${orig_target_strip}
15918 aros_kernel_ld=${aros_kernel_ld}
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 aros_kernel_ld=${aros_kernel_ld}
15931 aros_host_exe_suffix=${aros_host_exe_suffix}
15932 aros_tools_dir=${aros_tools_dir}
15933 aros_target_cpu=${aros_target_cpu}
15934 aros_target_arch=${aros_target_arch}
15935 aros_target_suffix=${aros_target_suffix}
15939 _ACEOF
15941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15943 # Handling of arguments.
15944 for ac_config_target in $ac_config_targets
15946 case $ac_config_target in
15947 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15948 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15950 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15951 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15952 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15953 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15954 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15955 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15956 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15957 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15958 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15959 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15960 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15961 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15962 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15963 "${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" ;;
15964 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15965 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15966 "${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" ;;
15967 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15968 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15969 "${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" ;;
15970 "${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" ;;
15971 "${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" ;;
15972 "${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" ;;
15973 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15975 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15976 esac
15977 done
15980 # If the user did not use the arguments to specify the items to instantiate,
15981 # then the envvar interface is used. Set only those that are not.
15982 # We use the long form for the default assignment because of an extremely
15983 # bizarre bug on SunOS 4.1.3.
15984 if $ac_need_defaults; then
15985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15987 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15990 # Have a temporary directory for convenience. Make it in the build tree
15991 # simply because there is no reason against having it here, and in addition,
15992 # creating and moving files from /tmp can sometimes cause problems.
15993 # Hook for its removal unless debugging.
15994 # Note that there is a small window in which the directory will not be cleaned:
15995 # after its creation but before its name has been assigned to `$tmp'.
15996 $debug ||
15998 tmp= ac_tmp=
15999 trap 'exit_status=$?
16000 : "${ac_tmp:=$tmp}"
16001 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16003 trap 'as_fn_exit 1' 1 2 13 15
16005 # Create a (secure) tmp directory for tmp files.
16008 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16009 test -d "$tmp"
16010 } ||
16012 tmp=./conf$$-$RANDOM
16013 (umask 077 && mkdir "$tmp")
16014 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16015 ac_tmp=$tmp
16017 # Set up the scripts for CONFIG_FILES section.
16018 # No need to generate them if there are no CONFIG_FILES.
16019 # This happens for instance with `./config.status config.h'.
16020 if test -n "$CONFIG_FILES"; then
16023 ac_cr=`echo X | tr X '\015'`
16024 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16025 # But we know of no other shell where ac_cr would be empty at this
16026 # point, so we can use a bashism as a fallback.
16027 if test "x$ac_cr" = x; then
16028 eval ac_cr=\$\'\\r\'
16030 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16031 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16032 ac_cs_awk_cr='\\r'
16033 else
16034 ac_cs_awk_cr=$ac_cr
16037 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16038 _ACEOF
16042 echo "cat >conf$$subs.awk <<_ACEOF" &&
16043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16044 echo "_ACEOF"
16045 } >conf$$subs.sh ||
16046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16048 ac_delim='%!_!# '
16049 for ac_last_try in false false false false false :; do
16050 . ./conf$$subs.sh ||
16051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16054 if test $ac_delim_n = $ac_delim_num; then
16055 break
16056 elif $ac_last_try; then
16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16058 else
16059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16061 done
16062 rm -f conf$$subs.sh
16064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16065 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16066 _ACEOF
16067 sed -n '
16069 s/^/S["/; s/!.*/"]=/
16072 s/^[^!]*!//
16073 :repl
16074 t repl
16075 s/'"$ac_delim"'$//
16076 t delim
16079 s/\(.\{148\}\)..*/\1/
16080 t more1
16081 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16084 b repl
16085 :more1
16086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16089 s/.\{148\}//
16090 t nl
16091 :delim
16093 s/\(.\{148\}\)..*/\1/
16094 t more2
16095 s/["\\]/\\&/g; s/^/"/; s/$/"/
16098 :more2
16099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16102 s/.\{148\}//
16103 t delim
16104 ' <conf$$subs.awk | sed '
16105 /^[^""]/{
16107 s/\n//
16109 ' >>$CONFIG_STATUS || ac_write_fail=1
16110 rm -f conf$$subs.awk
16111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112 _ACAWK
16113 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16114 for (key in S) S_is_set[key] = 1
16115 FS = "\a"
16119 line = $ 0
16120 nfields = split(line, field, "@")
16121 substed = 0
16122 len = length(field[1])
16123 for (i = 2; i < nfields; i++) {
16124 key = field[i]
16125 keylen = length(key)
16126 if (S_is_set[key]) {
16127 value = S[key]
16128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16129 len += length(value) + length(field[++i])
16130 substed = 1
16131 } else
16132 len += 1 + keylen
16135 print line
16138 _ACAWK
16139 _ACEOF
16140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16142 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16143 else
16145 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16146 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16147 _ACEOF
16149 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16150 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16151 # trailing colons and then remove the whole line if VPATH becomes empty
16152 # (actually we leave an empty line to preserve line numbers).
16153 if test "x$srcdir" = x.; then
16154 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16156 s///
16157 s/^/:/
16158 s/[ ]*$/:/
16159 s/:\$(srcdir):/:/g
16160 s/:\${srcdir}:/:/g
16161 s/:@srcdir@:/:/g
16162 s/^:*//
16163 s/:*$//
16165 s/\(=[ ]*\).*/\1/
16167 s/\n//
16168 s/^[^=]*=[ ]*$//
16172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16173 fi # test -n "$CONFIG_FILES"
16175 # Set up the scripts for CONFIG_HEADERS section.
16176 # No need to generate them if there are no CONFIG_HEADERS.
16177 # This happens for instance with `./config.status Makefile'.
16178 if test -n "$CONFIG_HEADERS"; then
16179 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16180 BEGIN {
16181 _ACEOF
16183 # Transform confdefs.h into an awk script `defines.awk', embedded as
16184 # here-document in config.status, that substitutes the proper values into
16185 # config.h.in to produce config.h.
16187 # Create a delimiter string that does not exist in confdefs.h, to ease
16188 # handling of long lines.
16189 ac_delim='%!_!# '
16190 for ac_last_try in false false :; do
16191 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16192 if test -z "$ac_tt"; then
16193 break
16194 elif $ac_last_try; then
16195 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16196 else
16197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16199 done
16201 # For the awk script, D is an array of macro values keyed by name,
16202 # likewise P contains macro parameters if any. Preserve backslash
16203 # newline sequences.
16205 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16206 sed -n '
16207 s/.\{148\}/&'"$ac_delim"'/g
16208 t rset
16209 :rset
16210 s/^[ ]*#[ ]*define[ ][ ]*/ /
16211 t def
16213 :def
16214 s/\\$//
16215 t bsnl
16216 s/["\\]/\\&/g
16217 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16218 D["\1"]=" \3"/p
16219 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16221 :bsnl
16222 s/["\\]/\\&/g
16223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16224 D["\1"]=" \3\\\\\\n"\\/p
16225 t cont
16226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16227 t cont
16229 :cont
16231 s/.\{148\}/&'"$ac_delim"'/g
16232 t clear
16233 :clear
16234 s/\\$//
16235 t bsnlc
16236 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16238 :bsnlc
16239 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16240 b cont
16241 ' <confdefs.h | sed '
16242 s/'"$ac_delim"'/"\\\
16243 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16246 for (key in D) D_is_set[key] = 1
16247 FS = "\a"
16249 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16250 line = \$ 0
16251 split(line, arg, " ")
16252 if (arg[1] == "#") {
16253 defundef = arg[2]
16254 mac1 = arg[3]
16255 } else {
16256 defundef = substr(arg[1], 2)
16257 mac1 = arg[2]
16259 split(mac1, mac2, "(") #)
16260 macro = mac2[1]
16261 prefix = substr(line, 1, index(line, defundef) - 1)
16262 if (D_is_set[macro]) {
16263 # Preserve the white space surrounding the "#".
16264 print prefix "define", macro P[macro] D[macro]
16265 next
16266 } else {
16267 # Replace #undef with comments. This is necessary, for example,
16268 # in the case of _POSIX_SOURCE, which is predefined and required
16269 # on some systems where configure will not decide to define it.
16270 if (defundef == "undef") {
16271 print "/*", prefix defundef, macro, "*/"
16272 next
16276 { print }
16277 _ACAWK
16278 _ACEOF
16279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16280 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16281 fi # test -n "$CONFIG_HEADERS"
16284 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16285 shift
16286 for ac_tag
16288 case $ac_tag in
16289 :[FHLC]) ac_mode=$ac_tag; continue;;
16290 esac
16291 case $ac_mode$ac_tag in
16292 :[FHL]*:*);;
16293 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16294 :[FH]-) ac_tag=-:-;;
16295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16296 esac
16297 ac_save_IFS=$IFS
16298 IFS=:
16299 set x $ac_tag
16300 IFS=$ac_save_IFS
16301 shift
16302 ac_file=$1
16303 shift
16305 case $ac_mode in
16306 :L) ac_source=$1;;
16307 :[FH])
16308 ac_file_inputs=
16309 for ac_f
16311 case $ac_f in
16312 -) ac_f="$ac_tmp/stdin";;
16313 *) # Look for the file first in the build tree, then in the source tree
16314 # (if the path is not absolute). The absolute path cannot be DOS-style,
16315 # because $ac_f cannot contain `:'.
16316 test -f "$ac_f" ||
16317 case $ac_f in
16318 [\\/$]*) false;;
16319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16320 esac ||
16321 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16322 esac
16323 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16324 as_fn_append ac_file_inputs " '$ac_f'"
16325 done
16327 # Let's still pretend it is `configure' which instantiates (i.e., don't
16328 # use $as_me), people would be surprised to read:
16329 # /* config.h. Generated by config.status. */
16330 configure_input='Generated from '`
16331 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16332 `' by configure.'
16333 if test x"$ac_file" != x-; then
16334 configure_input="$ac_file. $configure_input"
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16336 $as_echo "$as_me: creating $ac_file" >&6;}
16338 # Neutralize special characters interpreted by sed in replacement strings.
16339 case $configure_input in #(
16340 *\&* | *\|* | *\\* )
16341 ac_sed_conf_input=`$as_echo "$configure_input" |
16342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16343 *) ac_sed_conf_input=$configure_input;;
16344 esac
16346 case $ac_tag in
16347 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16349 esac
16351 esac
16353 ac_dir=`$as_dirname -- "$ac_file" ||
16354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16355 X"$ac_file" : 'X\(//\)[^/]' \| \
16356 X"$ac_file" : 'X\(//\)$' \| \
16357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16358 $as_echo X"$ac_file" |
16359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16360 s//\1/
16363 /^X\(\/\/\)[^/].*/{
16364 s//\1/
16367 /^X\(\/\/\)$/{
16368 s//\1/
16371 /^X\(\/\).*/{
16372 s//\1/
16375 s/.*/./; q'`
16376 as_dir="$ac_dir"; as_fn_mkdir_p
16377 ac_builddir=.
16379 case "$ac_dir" in
16380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16383 # A ".." for each directory in $ac_dir_suffix.
16384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16385 case $ac_top_builddir_sub in
16386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16388 esac ;;
16389 esac
16390 ac_abs_top_builddir=$ac_pwd
16391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16392 # for backward compatibility:
16393 ac_top_builddir=$ac_top_build_prefix
16395 case $srcdir in
16396 .) # We are building in place.
16397 ac_srcdir=.
16398 ac_top_srcdir=$ac_top_builddir_sub
16399 ac_abs_top_srcdir=$ac_pwd ;;
16400 [\\/]* | ?:[\\/]* ) # Absolute name.
16401 ac_srcdir=$srcdir$ac_dir_suffix;
16402 ac_top_srcdir=$srcdir
16403 ac_abs_top_srcdir=$srcdir ;;
16404 *) # Relative name.
16405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16406 ac_top_srcdir=$ac_top_build_prefix$srcdir
16407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16408 esac
16409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16412 case $ac_mode in
16415 # CONFIG_FILE
16418 _ACEOF
16420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16421 # If the template does not know about datarootdir, expand it.
16422 # FIXME: This hack should be removed a few years after 2.60.
16423 ac_datarootdir_hack=; ac_datarootdir_seen=
16424 ac_sed_dataroot='
16425 /datarootdir/ {
16429 /@datadir@/p
16430 /@docdir@/p
16431 /@infodir@/p
16432 /@localedir@/p
16433 /@mandir@/p'
16434 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16435 *datarootdir*) ac_datarootdir_seen=yes;;
16436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16438 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16439 _ACEOF
16440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16441 ac_datarootdir_hack='
16442 s&@datadir@&$datadir&g
16443 s&@docdir@&$docdir&g
16444 s&@infodir@&$infodir&g
16445 s&@localedir@&$localedir&g
16446 s&@mandir@&$mandir&g
16447 s&\\\${datarootdir}&$datarootdir&g' ;;
16448 esac
16449 _ACEOF
16451 # Neutralize VPATH when `$srcdir' = `.'.
16452 # Shell code in configure.ac might set extrasub.
16453 # FIXME: do we really want to maintain this feature?
16454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16455 ac_sed_extra="$ac_vpsub
16456 $extrasub
16457 _ACEOF
16458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16461 s|@configure_input@|$ac_sed_conf_input|;t t
16462 s&@top_builddir@&$ac_top_builddir_sub&;t t
16463 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16464 s&@srcdir@&$ac_srcdir&;t t
16465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16466 s&@top_srcdir@&$ac_top_srcdir&;t t
16467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16468 s&@builddir@&$ac_builddir&;t t
16469 s&@abs_builddir@&$ac_abs_builddir&;t t
16470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16471 $ac_datarootdir_hack
16473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16474 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16477 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16479 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16481 which seems to be undefined. Please make sure it is defined" >&5
16482 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16483 which seems to be undefined. Please make sure it is defined" >&2;}
16485 rm -f "$ac_tmp/stdin"
16486 case $ac_file in
16487 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16488 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16489 esac \
16490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16494 # CONFIG_HEADER
16496 if test x"$ac_file" != x-; then
16498 $as_echo "/* $configure_input */" \
16499 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16500 } >"$ac_tmp/config.h" \
16501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16502 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16504 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16505 else
16506 rm -f "$ac_file"
16507 mv "$ac_tmp/config.h" "$ac_file" \
16508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16510 else
16511 $as_echo "/* $configure_input */" \
16512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16513 || as_fn_error $? "could not create -" "$LINENO" 5
16517 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16518 $as_echo "$as_me: executing $ac_file commands" >&6;}
16520 esac
16523 case $ac_file$ac_mode in
16524 "genmf-executable-support":C)
16525 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16526 chmod a+x ${aros_tools_dir}/genmf.py
16528 "binutils-support":C)
16529 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16530 mkdir -p $prefix
16531 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16533 chmod a+x ${prefix2}-ld
16535 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16536 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16537 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16538 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16539 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16540 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16541 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16543 "elf-compiler-support":C)
16544 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16545 mkdir -p $prefix
16546 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16548 chmod a+x ${prefix2}-gcc
16550 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16552 "host-compiler-wrapper-support":C)
16553 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16554 mkdir -p $prefix
16555 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16557 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16560 esac
16561 done # for ac_tag
16564 as_fn_exit 0
16565 _ACEOF
16566 ac_clean_files=$ac_clean_files_save
16568 test $ac_write_fail = 0 ||
16569 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16572 # configure is writing to config.log, and then calls config.status.
16573 # config.status does its own redirection, appending to config.log.
16574 # Unfortunately, on DOS this fails, as config.log is still kept open
16575 # by configure, so config.status won't be able to write to it; its
16576 # output is simply discarded. So we exec the FD to /dev/null,
16577 # effectively closing config.log, so it can be properly (re)opened and
16578 # appended to by config.status. When coming back to configure, we
16579 # need to make the FD available again.
16580 if test "$no_create" != yes; then
16581 ac_cs_success=:
16582 ac_config_status_args=
16583 test "$silent" = yes &&
16584 ac_config_status_args="$ac_config_status_args --quiet"
16585 exec 5>/dev/null
16586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16587 exec 5>>config.log
16588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16589 # would make configure fail if this is the last instruction.
16590 $ac_cs_success || as_fn_exit 1
16592 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16594 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16599 #XXX compatability...
16600 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16602 if test -n "$aros_shared_cflags" ; then
16603 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16604 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg