make build_with_configure (and sub-classed macros) take a crossbuild parameter to...
[AROS.git] / configure
blob8bb5957e1971cff8fcd9fd2bfd4ff3e42f3ed23c
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 aros_host_sdl_libs
657 aros_host_sdl_cflags
658 aros_host_x11_ldflags
659 aros_host_x11_cflags
660 DO_VIDMODE_SUPPORT
661 DO_XSHM_SUPPORT
662 aros_nominal_depth
663 aros_nominal_height
664 aros_nominal_width
665 pci_hidd_target
666 host_android_gfx
667 host_sdl_gfx
668 host_x_gfx
669 crosstools_cxx_target
670 crosstools_target
671 aros_isa_flags
672 aros_optimization_cflags
673 aros_config_lto
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cflags
679 aros_target_cflags
680 aros_kernel_ldflags
681 aros_kernel_objcflags
682 aros_kernel_includes
683 aros_kernel_cflags
684 aros_kernel_sysroot
685 aros_config_ldflags
686 aros_config_aflags
687 aros_config_cxxflags
688 aros_config_cflags
689 aros_nowarn_flags
690 aros_warn_flags
691 aros_config_sysroot
692 aros_shared_ldflags
693 aros_shared_aflags
694 aros_shared_cflags
695 aros_arch_libs
696 aros_compiler_libs
697 spec_obj_format
698 aros_object_format
699 aros_shared_ld
700 aros_shared_default
701 aros_target_nm
702 aros_target_strip
703 aros_target_objcopy
704 aros_target_objdump
705 aros_target_cc_path
706 aros_target_cc_includes
707 aros_target_ld
708 aros_target_as
709 aros_target_cpp
710 aros_target_cxx
711 aros_target_cc
712 aros_plain_ar
713 aros_plain_nm
714 aros_target_ranlib
715 aros_target_ar
716 aros_target_suffix
717 aros_target_variant
718 aros_target_cpu_mode
719 aros_target_cpu
720 aros_target_family
721 aros_target_arch
722 aros_target_bootloader
723 aros_target_iconset
724 aros_target_guitheme
725 aros_tools_dir
726 aros_host_lib_suffix
727 aros_host_exe_suffix
728 aros_host_mkargs
729 aros_host_mkdep
730 aros_host_debug
731 aros_host_ldflags
732 gnu89_inline
733 aros_host_cxxflags
734 aros_host_cflags
735 aros_host_make
736 aros_host_cxx
737 aros_host_cc
738 aros_host_def_cc
739 aros_host_cpp
740 aros_host_cpu
741 aros_host_arch
742 aros_cc_pre
743 aros_amigaos_compliance
744 AROS_PORTSSRCDIR
745 AROS_CROSSTOOLSDIR
746 SRCDIR
747 AROS_BUILDDIR_UNIX
748 AROS_BUILDDIR
749 aros_build_host
750 aros_toolchain_ld
751 aros_target_toolchain
752 aros_flavour_uc
753 aros_flavour
754 aros_cpu
755 aros_arch
756 SDL_LIBS
757 SDL_CFLAGS
758 SDL_CONFIG
759 XMKMF
760 kernel_cflags_iquote_end
761 kernel_cflags_iquote
762 host_cflags_iquote_end
763 host_cflags_iquote
764 aros_toolchain
765 aros_target_nostdlib_ldflags
766 aros_target_detach_ldflags
767 aros_target_nix_ldflags
768 aros_target_nostartup_ldflags
769 aros_target_nostdinc_cflags
770 aros_kernel_rescomp
771 orig_target_objdump
772 orig_target_objcopy
773 orig_target_strip
774 orig_target_nm
775 orig_target_ranlib
776 orig_target_ar
777 orig_target_as
778 orig_target_ld
779 orig_target_cxx
780 orig_target_cc
781 orig_target_cpp
782 aros_kernel_objdump
783 aros_kernel_objcopy
784 aros_kernel_strip
785 aros_kernel_nm
786 aros_kernel_ranlib
787 aros_kernel_ar
788 aros_kernel_as
789 aros_kernel_ld
790 aros_kernel_cxx
791 aros_kernel_cc
792 aros_kernel_cpp
793 target_gcc_version
795 android_tool
796 CCACHE
797 DISTCC
798 LIBOBJS
799 EGREP
800 GREP
802 TEST
805 libpng_incdir
806 libpng_libextra
807 libpng
808 arosconfig_use_libpngconfig
809 pkgpyexecdir
810 pyexecdir
811 pkgpythondir
812 pythondir
813 PYTHON_PLATFORM
814 PYTHON_EXEC_PREFIX
815 PYTHON_PREFIX
816 PYTHON_VERSION
817 PYTHON
818 PATCH
819 CHMOD
821 PPMTOILBM
822 PNGTOPNM
823 FLEX
824 BISON
827 UNIQ
828 SORT
829 TOUCH
830 MKDIR
831 ECHO
835 aros_host_strip
836 aros_host_ranlib
837 aros_host_ar
838 aros_host_automake
839 aros_host_autoheader
840 aros_host_autoconf
841 aros_host_aclocal
842 aros_host_ld
843 MMAKE
846 ac_ct_CC
847 CFLAGS
849 OBJEXT
850 EXEEXT
851 ac_ct_CXX
852 CPPFLAGS
853 LDFLAGS
854 CXXFLAGS
856 host_os
857 host_vendor
858 host_cpu
859 host
860 build_os
861 build_vendor
862 build_cpu
863 build
864 target_alias
865 host_alias
866 build_alias
867 LIBS
868 ECHO_T
869 ECHO_N
870 ECHO_C
871 DEFS
872 mandir
873 localedir
874 libdir
875 psdir
876 pdfdir
877 dvidir
878 htmldir
879 infodir
880 docdir
881 oldincludedir
882 includedir
883 localstatedir
884 sharedstatedir
885 sysconfdir
886 datadir
887 datarootdir
888 libexecdir
889 sbindir
890 bindir
891 program_transform_name
892 prefix
893 exec_prefix
894 PACKAGE_URL
895 PACKAGE_BUGREPORT
896 PACKAGE_STRING
897 PACKAGE_VERSION
898 PACKAGE_TARNAME
899 PACKAGE_NAME
900 PATH_SEPARATOR
901 SHELL'
902 ac_subst_files=''
903 ac_user_opts='
904 enable_option_checking
905 with_c_compiler
906 with_cxx_compiler
907 enable_libpng_config
908 with_toolchain
909 enable_lto
910 enable_build_type
911 enable_debug
912 enable_distcc
913 enable_ccache
914 with_kernel_gcc_version
915 with_optimization
916 with_paranoia
917 enable_target_variant
918 with_xcode
919 with_sdk_version
920 with_sdk
921 with_ndk
922 with_ndk_version
923 with_apk_version
924 enable_amigaos_compliance
925 with_kernel_toolchain_prefix
926 with_elf_toolchain_prefix
927 with_aros_toolchain
928 enable_crosstools
929 with_aros_toolchain_install
930 with_binutils_version
931 with_gcc_version
932 enable_objc
933 enable_java
934 with_cpu
935 with_fpu
936 with_float
937 with_portssources
938 with_bootloader
939 with_iconset
940 with_theme
941 enable_includes
942 with_resolution
943 with_serial_debug
944 enable_palm_debug_hack
945 enable_usb30_code
946 enable_nesting_supervisor
947 enable_mmu
948 enable_x11_hidd
949 with_x
950 enable_x11_shm
951 enable_x11_vidmode
952 enable_sdl_hidd
953 with_sdl_prefix
954 with_sdl_exec_prefix
955 enable_sdltest
956 enable_dbus
958 ac_precious_vars='build_alias
959 host_alias
960 target_alias
962 CXXFLAGS
963 LDFLAGS
964 LIBS
965 CPPFLAGS
968 CFLAGS
970 PYTHON
971 XMKMF'
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *=) ac_optarg= ;;
1036 *) ac_optarg=yes ;;
1037 esac
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1041 case $ac_dashdash$ac_option in
1043 ac_dashdash=yes ;;
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1077 -disable-* | --disable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=no ;;
1093 -docdir | --docdir | --docdi | --doc | --do)
1094 ac_prev=docdir ;;
1095 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096 docdir=$ac_optarg ;;
1098 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 ac_prev=dvidir ;;
1100 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101 dvidir=$ac_optarg ;;
1103 -enable-* | --enable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid feature name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=\$ac_optarg ;;
1323 -without-* | --without-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid package name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1332 "with_$ac_useropt"
1333 "*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=no ;;
1339 --x)
1340 # Obsolete; use --with-x.
1341 with_x=yes ;;
1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344 | --x-incl | --x-inc | --x-in | --x-i)
1345 ac_prev=x_includes ;;
1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348 x_includes=$ac_optarg ;;
1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352 ac_prev=x_libraries ;;
1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355 x_libraries=$ac_optarg ;;
1357 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' | [0-9]* | *[!_$as_cr_alnum]* )
1366 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1367 esac
1368 eval $ac_envvar=\$ac_optarg
1369 export $ac_envvar ;;
1372 # FIXME: should be removed in autoconf 3.0.
1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379 esac
1380 done
1382 if test -n "$ac_prev"; then
1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $? "missing argument to $ac_option"
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1389 no) ;;
1390 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392 esac
1395 # Check all directory arguments for consistency.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1403 case $ac_val in
1404 */ )
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1407 esac
1408 # Be sure to have absolute directory names.
1409 case $ac_val in
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 esac
1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1414 done
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1419 build=$build_alias
1420 host=$host_alias
1421 target=$target_alias
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425 if test "x$build_alias" = x; then
1426 cross_compiling=maybe
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error $? "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error $? "pwd does not report name of working directory"
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1464 /^X\(\/\/\)$/{
1465 s//\1/
1468 /^X\(\/\).*/{
1469 s//\1/
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1477 else
1478 ac_srcdir_defaulted=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking ...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1567 cat <<\_ACEOF
1569 X features:
1570 --x-includes=DIR X include files are in DIR
1571 --x-libraries=DIR X library files are in DIR
1573 System types:
1574 --build=BUILD configure for building on BUILD [guessed]
1575 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 _ACEOF
1579 if test -n "$ac_init_help"; then
1581 cat <<\_ACEOF
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --disable-libpng-config disable libpng-config test and configuration
1588 --enable-lto=yes|no Enable link time optimizations if the target
1589 compiler supports them (default=no)
1590 --enable-build-type=TYPE
1591 Select the build type. Available types are:
1592 personal, nightly, snapshot, milestone, release. Do
1593 NOT use this option unless you know what you are
1594 doing! (default=personal)
1595 --enable-debug=list Enable different types of debug. Commas or
1596 whitespaces can be used to separate the items in the
1597 list. Available types of debug are: all, none,
1598 messages, stack, mungwall, modules, symbols. If no
1599 list is provided then "all" is assumed.
1600 (default=none)
1601 --enable-distcc Use distcc as a front end to the compiler
1602 (default=no).
1603 --enable-ccache Use ccache as a front end to the compiler
1604 (default=no).
1605 --enable-target-variant=NAME
1606 Enable a specific target variant (default=none)
1607 --enable-amigaos-compliance=VERSION
1608 Enforce userspace AmigaOS compliance to a specific
1609 KickStart version (default=none).
1610 --disable-crosstools Do not build cross-compiler toolchain
1611 --enable-objc Enable Objectve-C support (default=no)
1612 --enable-java Enable Java support (default=no)
1613 --enable-includes=dir Alternative system include directory
1614 --enable-palm-debug-hack
1615 Enable palm debug output hack in palm native
1616 (default=no)
1617 --enable-usb30-code Enable usb3.0 code (default=no)
1618 --enable-nesting-supervisor
1619 Enable nesting supervisor support in unix
1620 (default=no)
1621 --disable-mmu Disable MMU support (default=enabled)
1622 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1623 --enable-x11-shm use X11 shared memory (default=auto)
1624 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1625 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1626 --disable-sdltest Do not try to compile and run a test SDL program
1627 --enable-dbus Enable DBUS support via dbus.library (default=no)
1629 Optional Packages:
1630 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1631 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1632 --with-c-compiler=VERSION
1633 Use specified c compiler for building AROS
1634 --with-cxx-compiler=VERSION
1635 Use specified c++ compiler building AROS
1636 --with-toolchain=family Which toolchain family to crosscompile with
1637 (defaults to gnu)
1638 --with-kernel-gcc-version=VERSION
1639 Use gcc-VERSION for building bootstrap
1640 --with-optimization=FLAGS
1641 Use optimization flags FLAGS (default=-O2).
1642 --with-paranoia=(yes|no|FLAGS)
1643 Specific compiler warning FLAGS to enable for
1644 paranoia builds (default=-Wall -Werror)
1645 --with-xcode=PATH Specify XCode path for iOS targets
1646 (default=/Developer).
1647 --with-sdk-version=VERSION
1648 Use iOS SDK version VERSION (default=4.1).
1649 --with-sdk=PATH Specify Android SDK path
1650 (default=$default_android_sdk).
1651 --with-ndk=PATH Specify Android NDK path (default=none).
1652 --with-sdk-version=LEVEL
1653 Use Android SDK for API LEVEL (default=12).
1654 --with-ndk-version=LEVEL
1655 Use Android NDK for API LEVEL (default=9).
1656 --with-apk-version=(release|debug)
1657 Which version of AROSBootstrap.apk to compile.
1658 Release version needs key for signing, debug version
1659 will only run in emulator. (default=release)
1660 --with-kernel-toolchain-prefix=...
1661 Specify crosscompile toolchain prefix for kernel
1662 objects
1663 --with-elf-toolchain-prefix=...
1664 Specify crosscompile toolchain prefix to wrap for
1665 AROS objects
1666 --with-aros-toolchain=PREFIX
1667 Specify prebuilt AROS toolchain. Use yes for default
1668 name
1669 --with-aros-toolchain-install=DIR
1670 Where to install or search for cross tools binaries
1671 --with-binutils-version=VERSION
1672 Use binutils-VERSION for building AROS
1673 --with-gcc-version=VERSION
1674 Compile gcc-VERSION for AROS
1675 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1676 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1677 --with-float=<spec> Specify floating point ABI
1678 (default=$gcc_default_float_abi).
1679 --with-portssources=DIR Where to download sourcecode for external ports
1680 --with-bootloader=NAME Use a specific bootloader
1681 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1682 --with-theme=NAME Use a specific GUI Theme
1683 --with-resolution=XRESxYRESxDEPTH
1684 Default resolution of the initial WorkbenchScreen
1685 --with-serial-debug Enable serial debug output in native (default=no)
1686 --with-x use the X Window System
1687 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1688 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1690 Some influential environment variables:
1691 CXX C++ compiler command
1692 CXXFLAGS C++ compiler flags
1693 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1694 nonstandard directory <lib dir>
1695 LIBS libraries to pass to the linker, e.g. -l<library>
1696 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1697 you have headers in a nonstandard directory <include dir>
1698 CC C compiler command
1699 CFLAGS C compiler flags
1700 CPP C preprocessor
1701 PYTHON the Python interpreter
1702 XMKMF Path to xmkmf, Makefile generator for X Window System
1704 Use these variables to override the choices made by `configure' or to help
1705 it to find libraries and programs with nonstandard names/locations.
1707 Report bugs to the package provider.
1708 _ACEOF
1709 ac_status=$?
1712 if test "$ac_init_help" = "recursive"; then
1713 # If there are subdirs, report their specific --help.
1714 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715 test -d "$ac_dir" ||
1716 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717 continue
1718 ac_builddir=.
1720 case "$ac_dir" in
1721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724 # A ".." for each directory in $ac_dir_suffix.
1725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726 case $ac_top_builddir_sub in
1727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729 esac ;;
1730 esac
1731 ac_abs_top_builddir=$ac_pwd
1732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733 # for backward compatibility:
1734 ac_top_builddir=$ac_top_build_prefix
1736 case $srcdir in
1737 .) # We are building in place.
1738 ac_srcdir=.
1739 ac_top_srcdir=$ac_top_builddir_sub
1740 ac_abs_top_srcdir=$ac_pwd ;;
1741 [\\/]* | ?:[\\/]* ) # Absolute name.
1742 ac_srcdir=$srcdir$ac_dir_suffix;
1743 ac_top_srcdir=$srcdir
1744 ac_abs_top_srcdir=$srcdir ;;
1745 *) # Relative name.
1746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747 ac_top_srcdir=$ac_top_build_prefix$srcdir
1748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 esac
1750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752 cd "$ac_dir" || { ac_status=$?; continue; }
1753 # Check for guested configure.
1754 if test -f "$ac_srcdir/configure.gnu"; then
1755 echo &&
1756 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757 elif test -f "$ac_srcdir/configure"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure" --help=recursive
1760 else
1761 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762 fi || ac_status=$?
1763 cd "$ac_pwd" || { ac_status=$?; break; }
1764 done
1767 test -n "$ac_init_help" && exit $ac_status
1768 if $ac_init_version; then
1769 cat <<\_ACEOF
1770 configure
1771 generated by GNU Autoconf 2.69
1773 Copyright (C) 2012 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1776 _ACEOF
1777 exit
1780 ## ------------------------ ##
1781 ## Autoconf initialization. ##
1782 ## ------------------------ ##
1784 # ac_fn_cxx_try_compile LINENO
1785 # ----------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_cxx_try_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext
1791 if { { ac_try="$ac_compile"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_compile") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_cxx_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest.$ac_objext; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=1
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_cxx_try_compile
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext
1829 if { { ac_try="$ac_compile"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_c_try_cpp LINENO
1861 # ----------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_cpp ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } > conftest.i && {
1882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=1
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_c_try_cpp
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_link ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=1
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_link
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1947 # accordingly.
1948 ac_fn_c_check_header_mongrel ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if eval \${$3+:} false; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 else
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_header_compiler=yes
1971 else
1972 ac_header_compiler=no
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 ac_header_preproc=yes
1987 else
1988 ac_header_preproc=no
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996 yes:no: )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 no:yes:* )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 esac
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 eval "$3=\$ac_header_compiler"
2022 eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_header_mongrel
2030 # ac_fn_c_try_run LINENO
2031 # ----------------------
2032 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2033 # that executables *can* be run.
2034 ac_fn_c_try_run ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if { { ac_try="$ac_link"
2038 case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041 esac
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_link") 2>&5
2045 ac_status=$?
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2048 { { case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_try") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; }; }; then :
2058 ac_retval=0
2059 else
2060 $as_echo "$as_me: program exited with status $ac_status" >&5
2061 $as_echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2064 ac_retval=$ac_status
2066 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_c_try_run
2072 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2073 # -------------------------------------------------------
2074 # Tests whether HEADER exists and can be compiled using the include files in
2075 # INCLUDES, setting the cache variable VAR accordingly.
2076 ac_fn_c_check_header_compile ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$3=yes"
2091 else
2092 eval "$3=no"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_header_compile
2103 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2104 # ----------------------------------------------------
2105 # Tries to find if the field MEMBER exists in type AGGR, after including
2106 # INCLUDES, setting cache variable VAR accordingly.
2107 ac_fn_c_check_member ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2111 $as_echo_n "checking for $2.$3... " >&6; }
2112 if eval \${$4+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 main ()
2121 static $2 ac_aggr;
2122 if (ac_aggr.$3)
2123 return 0;
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 eval "$4=yes"
2130 else
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 main ()
2137 static $2 ac_aggr;
2138 if (sizeof ac_aggr.$3)
2139 return 0;
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 eval "$4=yes"
2146 else
2147 eval "$4=no"
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 eval ac_res=\$$4
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_member
2160 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2161 # ---------------------------------------------
2162 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2163 # accordingly.
2164 ac_fn_c_check_decl ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 as_decl_name=`echo $2|sed 's/ *(.*//'`
2168 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2170 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2171 if eval \${$3+:} false; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2178 main ()
2180 #ifndef $as_decl_name
2181 #ifdef __cplusplus
2182 (void) $as_decl_use;
2183 #else
2184 (void) $as_decl_name;
2185 #endif
2186 #endif
2189 return 0;
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$3=yes"
2194 else
2195 eval "$3=no"
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 eval ac_res=\$$3
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 } # ac_fn_c_check_decl
2206 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2207 # -------------------------------------------
2208 # Tests whether TYPE exists after having included INCLUDES, setting cache
2209 # variable VAR accordingly.
2210 ac_fn_c_check_type ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2214 $as_echo_n "checking for $2... " >&6; }
2215 if eval \${$3+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 eval "$3=no"
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2223 main ()
2225 if (sizeof ($2))
2226 return 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 if (sizeof (($2)))
2239 return 0;
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2246 else
2247 eval "$3=yes"
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 } # ac_fn_c_check_type
2260 # ac_fn_c_check_func LINENO FUNC VAR
2261 # ----------------------------------
2262 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2263 ac_fn_c_check_func ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267 $as_echo_n "checking for $2... " >&6; }
2268 if eval \${$3+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2275 #define $2 innocuous_$2
2277 /* System header to define __stub macros and hopefully few prototypes,
2278 which can conflict with char $2 (); below.
2279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2280 <limits.h> exists even on freestanding compilers. */
2282 #ifdef __STDC__
2283 # include <limits.h>
2284 #else
2285 # include <assert.h>
2286 #endif
2288 #undef $2
2290 /* Override any GCC internal prototype to avoid an error.
2291 Use char because int might match the return type of a GCC
2292 builtin and then its argument prototype would still apply. */
2293 #ifdef __cplusplus
2294 extern "C"
2295 #endif
2296 char $2 ();
2297 /* The GNU C library defines this for functions which it implements
2298 to always fail with ENOSYS. Some functions are actually named
2299 something starting with __ and the normal name is an alias. */
2300 #if defined __stub_$2 || defined __stub___$2
2301 choke me
2302 #endif
2305 main ()
2307 return $2 ();
2309 return 0;
2311 _ACEOF
2312 if ac_fn_c_try_link "$LINENO"; then :
2313 eval "$3=yes"
2314 else
2315 eval "$3=no"
2317 rm -f core conftest.err conftest.$ac_objext \
2318 conftest$ac_exeext conftest.$ac_ext
2320 eval ac_res=\$$3
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2322 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325 } # ac_fn_c_check_func
2326 cat >config.log <<_ACEOF
2327 This file contains any messages produced by compilers while
2328 running configure, to aid debugging if configure makes a mistake.
2330 It was created by $as_me, which was
2331 generated by GNU Autoconf 2.69. Invocation command line was
2333 $ $0 $@
2335 _ACEOF
2336 exec 5>>config.log
2338 cat <<_ASUNAME
2339 ## --------- ##
2340 ## Platform. ##
2341 ## --------- ##
2343 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2344 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2345 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2346 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2347 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2349 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2350 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2352 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2353 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2354 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2355 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2356 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2357 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2358 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2360 _ASUNAME
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 $as_echo "PATH: $as_dir"
2368 done
2369 IFS=$as_save_IFS
2371 } >&5
2373 cat >&5 <<_ACEOF
2376 ## ----------- ##
2377 ## Core tests. ##
2378 ## ----------- ##
2380 _ACEOF
2383 # Keep a trace of the command line.
2384 # Strip out --no-create and --no-recursion so they do not pile up.
2385 # Strip out --silent because we don't want to record it for future runs.
2386 # Also quote any args containing shell meta-characters.
2387 # Make two passes to allow for proper duplicate-argument suppression.
2388 ac_configure_args=
2389 ac_configure_args0=
2390 ac_configure_args1=
2391 ac_must_keep_next=false
2392 for ac_pass in 1 2
2394 for ac_arg
2396 case $ac_arg in
2397 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2399 | -silent | --silent | --silen | --sile | --sil)
2400 continue ;;
2401 *\'*)
2402 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 esac
2404 case $ac_pass in
2405 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2407 as_fn_append ac_configure_args1 " '$ac_arg'"
2408 if test $ac_must_keep_next = true; then
2409 ac_must_keep_next=false # Got value, back to normal.
2410 else
2411 case $ac_arg in
2412 *=* | --config-cache | -C | -disable-* | --disable-* \
2413 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2414 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2415 | -with-* | --with-* | -without-* | --without-* | --x)
2416 case "$ac_configure_args0 " in
2417 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2418 esac
2420 -* ) ac_must_keep_next=true ;;
2421 esac
2423 as_fn_append ac_configure_args " '$ac_arg'"
2425 esac
2426 done
2427 done
2428 { ac_configure_args0=; unset ac_configure_args0;}
2429 { ac_configure_args1=; unset ac_configure_args1;}
2431 # When interrupted or exit'd, cleanup temporary files, and complete
2432 # config.log. We remove comments because anyway the quotes in there
2433 # would cause problems or look ugly.
2434 # WARNING: Use '\'' to represent an apostrophe within the trap.
2435 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2436 trap 'exit_status=$?
2437 # Save into config.log some information that might help in debugging.
2439 echo
2441 $as_echo "## ---------------- ##
2442 ## Cache variables. ##
2443 ## ---------------- ##"
2444 echo
2445 # The following way of writing the cache mishandles newlines in values,
2447 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2448 eval ac_val=\$$ac_var
2449 case $ac_val in #(
2450 *${as_nl}*)
2451 case $ac_var in #(
2452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454 esac
2455 case $ac_var in #(
2456 _ | IFS | as_nl) ;; #(
2457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2458 *) { eval $ac_var=; unset $ac_var;} ;;
2459 esac ;;
2460 esac
2461 done
2462 (set) 2>&1 |
2463 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2464 *${as_nl}ac_space=\ *)
2465 sed -n \
2466 "s/'\''/'\''\\\\'\'''\''/g;
2467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468 ;; #(
2470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2472 esac |
2473 sort
2475 echo
2477 $as_echo "## ----------------- ##
2478 ## Output variables. ##
2479 ## ----------------- ##"
2480 echo
2481 for ac_var in $ac_subst_vars
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2491 if test -n "$ac_subst_files"; then
2492 $as_echo "## ------------------- ##
2493 ## File substitutions. ##
2494 ## ------------------- ##"
2495 echo
2496 for ac_var in $ac_subst_files
2498 eval ac_val=\$$ac_var
2499 case $ac_val in
2500 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 esac
2502 $as_echo "$ac_var='\''$ac_val'\''"
2503 done | sort
2504 echo
2507 if test -s confdefs.h; then
2508 $as_echo "## ----------- ##
2509 ## confdefs.h. ##
2510 ## ----------- ##"
2511 echo
2512 cat confdefs.h
2513 echo
2515 test "$ac_signal" != 0 &&
2516 $as_echo "$as_me: caught signal $ac_signal"
2517 $as_echo "$as_me: exit $exit_status"
2518 } >&5
2519 rm -f core *.core core.conftest.* &&
2520 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2521 exit $exit_status
2523 for ac_signal in 1 2 13 15; do
2524 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2525 done
2526 ac_signal=0
2528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2529 rm -f -r conftest* confdefs.h
2531 $as_echo "/* confdefs.h */" > confdefs.h
2533 # Predefined preprocessor variables.
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_NAME "$PACKAGE_NAME"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_STRING "$PACKAGE_STRING"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2553 _ACEOF
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_URL "$PACKAGE_URL"
2557 _ACEOF
2560 # Let the site file select an alternate cache file if it wants to.
2561 # Prefer an explicitly selected file to automatically selected ones.
2562 ac_site_file1=NONE
2563 ac_site_file2=NONE
2564 if test -n "$CONFIG_SITE"; then
2565 # We do not want a PATH search for config.site.
2566 case $CONFIG_SITE in #((
2567 -*) ac_site_file1=./$CONFIG_SITE;;
2568 */*) ac_site_file1=$CONFIG_SITE;;
2569 *) ac_site_file1=./$CONFIG_SITE;;
2570 esac
2571 elif test "x$prefix" != xNONE; then
2572 ac_site_file1=$prefix/share/config.site
2573 ac_site_file2=$prefix/etc/config.site
2574 else
2575 ac_site_file1=$ac_default_prefix/share/config.site
2576 ac_site_file2=$ac_default_prefix/etc/config.site
2578 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2580 test "x$ac_site_file" = xNONE && continue
2581 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2583 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2584 sed 's/^/| /' "$ac_site_file" >&5
2585 . "$ac_site_file" \
2586 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 as_fn_error $? "failed to load site script $ac_site_file
2589 See \`config.log' for more details" "$LINENO" 5; }
2591 done
2593 if test -r "$cache_file"; then
2594 # Some versions of bash will fail to source /dev/null (special files
2595 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2596 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598 $as_echo "$as_me: loading cache $cache_file" >&6;}
2599 case $cache_file in
2600 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601 *) . "./$cache_file";;
2602 esac
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606 $as_echo "$as_me: creating cache $cache_file" >&6;}
2607 >$cache_file
2610 as_fn_append ac_header_list " stdlib.h"
2611 as_fn_append ac_header_list " unistd.h"
2612 as_fn_append ac_header_list " sys/param.h"
2613 # Check that the precious variables saved in the cache have kept the same
2614 # value.
2615 ac_cache_corrupted=false
2616 for ac_var in $ac_precious_vars; do
2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618 eval ac_new_set=\$ac_env_${ac_var}_set
2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620 eval ac_new_val=\$ac_env_${ac_var}_value
2621 case $ac_old_set,$ac_new_set in
2622 set,)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,set)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2628 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,);;
2632 if test "x$ac_old_val" != "x$ac_new_val"; then
2633 # differences in whitespace do not lead to failure.
2634 ac_old_val_w=`echo x $ac_old_val`
2635 ac_new_val_w=`echo x $ac_new_val`
2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2638 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2639 ac_cache_corrupted=:
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2642 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2643 eval $ac_var=\$ac_old_val
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2646 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2648 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649 fi;;
2650 esac
2651 # Pass precious variables to config.status.
2652 if test "$ac_new_set" = set; then
2653 case $ac_new_val in
2654 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 *) ac_arg=$ac_var=$ac_new_val ;;
2656 esac
2657 case " $ac_configure_args " in
2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 esac
2662 done
2663 if $ac_cache_corrupted; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2668 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2670 ## -------------------- ##
2671 ## Main body of script. ##
2672 ## -------------------- ##
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682 ac_aux_dir=
2683 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2684 if test -f "$ac_dir/install-sh"; then
2685 ac_aux_dir=$ac_dir
2686 ac_install_sh="$ac_aux_dir/install-sh -c"
2687 break
2688 elif test -f "$ac_dir/install.sh"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/install.sh -c"
2691 break
2692 elif test -f "$ac_dir/shtool"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/shtool install -c"
2695 break
2697 done
2698 if test -z "$ac_aux_dir"; then
2699 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2702 # These three variables are undocumented and unsupported,
2703 # and are intended to be withdrawn in a future Autoconf release.
2704 # They can cause serious problems if a builder's source tree is in a directory
2705 # whose full name contains unusual characters.
2706 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2707 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2708 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2712 # Check what host we are running on.
2713 # If a target is not suggested, we use this one.
2714 # Note that what we call a target, Autoconf calls a host.
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if ${ac_cv_build+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2738 esac
2739 build=$ac_cv_build
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_build
2742 shift
2743 build_cpu=$1
2744 build_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 build_os=$*
2749 IFS=$ac_save_IFS
2750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if ${ac_cv_host+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2760 else
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2768 case $ac_cv_host in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2771 esac
2772 host=$ac_cv_host
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_host
2775 shift
2776 host_cpu=$1
2777 host_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 host_os=$*
2782 IFS=$ac_save_IFS
2783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2787 # Default versions for the gnu tools we build
2788 default_gcc_version="4.6.4"
2789 default_binutils_version="2.23.2"
2791 # The AROS target is slightly different to the normal GNU style
2792 # format. We don't have the middle part, and we reverse the order
2793 # of the $(CPU) and $(OS) bits.
2795 # Don't strip the version of the target yet, it might be
2796 # useful on some systems.
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2799 $as_echo_n "checking for AROS style target... " >&6; }
2801 if test "$target" = "NONE" ; then
2802 target=$host_os-$host_cpu
2803 else
2804 if test "$target" = "" ; then
2805 target=$host_os-$host_cpu
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2809 $as_echo "$target" >&6; }
2811 if test "$host_os" = "mingw32" ; then
2812 PWDCMD="pwd -W"
2815 # Don't know where else to put this...
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2817 $as_echo_n "checking building AROS in... " >&6; }
2818 AROS_BUILDDIR=`${PWDCMD-pwd}`
2819 AROS_BUILDDIR_UNIX=${PWD}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2821 $as_echo "$AROS_BUILDDIR" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2824 $as_echo_n "checking AROS source in... " >&6; }
2825 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2826 SRCDIR=${srcpwd}
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2828 $as_echo "$SRCDIR" >&6; }
2830 # Parse the target field into something useful.
2832 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2833 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2836 # Some debug output, to be removed again.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2838 $as_echo_n "checking for target system (debug output)... " >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2840 $as_echo "$target_os" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2842 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2844 $as_echo "$target_cpu" >&6; }
2846 aros_nominal_width=800
2847 aros_nominal_height=600
2848 aros_nominal_depth=4
2851 default_c_compilers="gcc clang cc"
2853 # Check whether --with-c-compiler was given.
2854 if test "${with_c_compiler+set}" = set; then :
2855 withval=$with_c_compiler; use_c_compiler="$withval"
2856 else
2857 use_c_compiler=""
2860 if test "$use_c_compiler" = ""; then
2861 host_c_compilers="$default_c_compilers"
2862 else
2863 host_c_compilers="$use_c_compiler"
2866 default_cxx_compilers="g++ clang++ c++"
2868 # Check whether --with-cxx-compiler was given.
2869 if test "${with_cxx_compiler+set}" = set; then :
2870 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2871 else
2872 use_cxx_compiler=""
2875 if test "$use_cxx_compiler" = ""; then
2876 host_cxx_compilers="$default_cxx_compilers"
2877 else
2878 host_cxx_compilers="$use_cxx_compiler"
2882 # The first step is to find the host binaries.
2883 # Check for a compiler.
2884 # Due to a bug in autoconf check for c++ compiler first.
2885 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2886 ac_ext=cpp
2887 ac_cpp='$CXXCPP $CPPFLAGS'
2888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2891 if test -z "$CXX"; then
2892 if test -n "$CCC"; then
2893 CXX=$CCC
2894 else
2895 if test -n "$ac_tool_prefix"; then
2896 for ac_prog in ${host_cxx_compilers}
2898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_CXX+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$CXX"; then
2906 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2919 done
2920 done
2921 IFS=$as_save_IFS
2925 CXX=$ac_cv_prog_CXX
2926 if test -n "$CXX"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2928 $as_echo "$CXX" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2935 test -n "$CXX" && break
2936 done
2938 if test -z "$CXX"; then
2939 ac_ct_CXX=$CXX
2940 for ac_prog in ${host_cxx_compilers}
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$ac_ct_CXX"; then
2950 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_ac_ct_CXX="$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2970 if test -n "$ac_ct_CXX"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2972 $as_echo "$ac_ct_CXX" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2979 test -n "$ac_ct_CXX" && break
2980 done
2982 if test "x$ac_ct_CXX" = x; then
2983 CXX="g++"
2984 else
2985 case $cross_compiling:$ac_tool_warned in
2986 yes:)
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2990 esac
2991 CXX=$ac_ct_CXX
2997 # Provide some information about the compiler.
2998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2999 set X $ac_compile
3000 ac_compiler=$2
3001 for ac_option in --version -v -V -qversion; do
3002 { { ac_try="$ac_compiler $ac_option >&5"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010 ac_status=$?
3011 if test -s conftest.err; then
3012 sed '10a\
3013 ... rest of stderr output deleted ...
3014 10q' conftest.err >conftest.er1
3015 cat conftest.er1 >&5
3017 rm -f conftest.er1 conftest.err
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }
3020 done
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3026 main ()
3030 return 0;
3032 _ACEOF
3033 ac_clean_files_save=$ac_clean_files
3034 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3035 # Try to create an executable without -o first, disregard a.out.
3036 # It will help us diagnose broken compilers, and finding out an intuition
3037 # of exeext.
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3039 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3040 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042 # The possible output files:
3043 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045 ac_rmfiles=
3046 for ac_file in $ac_files
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3051 esac
3052 done
3053 rm -f $ac_rmfiles
3055 if { { ac_try="$ac_link_default"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link_default") 2>&5
3063 ac_status=$?
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; then :
3066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3069 # so that the user can short-circuit this test for compilers unknown to
3070 # Autoconf.
3071 for ac_file in $ac_files ''
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077 [ab].out )
3078 # We found the default executable, but exeext='' is most
3079 # certainly right.
3080 break;;
3081 *.* )
3082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3083 then :; else
3084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 # We set ac_cv_exeext here because the later test for it is not
3087 # safe: cross compilers may not add the suffix if given an `-o'
3088 # argument, so we may need to know it at that point already.
3089 # Even if this section looks crufty: it has the advantage of
3090 # actually working.
3091 break;;
3093 break;;
3094 esac
3095 done
3096 test "$ac_cv_exeext" = no && ac_cv_exeext=
3098 else
3099 ac_file=''
3101 if test -z "$ac_file"; then :
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error 77 "C++ compiler cannot create executables
3110 See \`config.log' for more details" "$LINENO" 5; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3116 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 ac_exeext=$ac_cv_exeext
3121 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122 ac_clean_files=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124 $as_echo_n "checking for suffix of executables... " >&6; }
3125 if { { ac_try="$ac_link"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3139 # `rm'.
3140 for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 break;;
3146 * ) break;;
3147 esac
3148 done
3149 else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details" "$LINENO" 5; }
3155 rm -f conftest conftest$ac_cv_exeext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157 $as_echo "$ac_cv_exeext" >&6; }
3159 rm -f conftest.$ac_ext
3160 EXEEXT=$ac_cv_exeext
3161 ac_exeext=$EXEEXT
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164 #include <stdio.h>
3166 main ()
3168 FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3172 return 0;
3174 _ACEOF
3175 ac_clean_files="$ac_clean_files conftest.out"
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179 $as_echo_n "checking whether we are cross compiling... " >&6; }
3180 if test "$cross_compiling" != yes; then
3181 { { ac_try="$ac_link"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 if { ac_try='./conftest$ac_cv_exeext'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3203 cross_compiling=no
3204 else
3205 if test "$cross_compiling" = maybe; then
3206 cross_compiling=yes
3207 else
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot run C++ compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details" "$LINENO" 5; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217 $as_echo "$cross_compiling" >&6; }
3219 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3220 ac_clean_files=$ac_clean_files_save
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222 $as_echo_n "checking for suffix of object files... " >&6; }
3223 if ${ac_cv_objext+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3230 main ()
3234 return 0;
3236 _ACEOF
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254 break;;
3255 esac
3256 done
3257 else
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details" "$LINENO" 5; }
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3271 ac_objext=$OBJEXT
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3273 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3274 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3281 main ()
3283 #ifndef __GNUC__
3284 choke me
3285 #endif
3288 return 0;
3290 _ACEOF
3291 if ac_fn_cxx_try_compile "$LINENO"; then :
3292 ac_compiler_gnu=yes
3293 else
3294 ac_compiler_gnu=no
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3301 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3303 GXX=yes
3304 else
3305 GXX=
3307 ac_test_CXXFLAGS=${CXXFLAGS+set}
3308 ac_save_CXXFLAGS=$CXXFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3310 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3311 if ${ac_cv_prog_cxx_g+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3315 ac_cxx_werror_flag=yes
3316 ac_cv_prog_cxx_g=no
3317 CXXFLAGS="-g"
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3322 main ()
3326 return 0;
3328 _ACEOF
3329 if ac_fn_cxx_try_compile "$LINENO"; then :
3330 ac_cv_prog_cxx_g=yes
3331 else
3332 CXXFLAGS=""
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3337 main ()
3341 return 0;
3343 _ACEOF
3344 if ac_fn_cxx_try_compile "$LINENO"; then :
3346 else
3347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3348 CXXFLAGS="-g"
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3353 main ()
3357 return 0;
3359 _ACEOF
3360 if ac_fn_cxx_try_compile "$LINENO"; then :
3361 ac_cv_prog_cxx_g=yes
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3371 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3372 if test "$ac_test_CXXFLAGS" = set; then
3373 CXXFLAGS=$ac_save_CXXFLAGS
3374 elif test $ac_cv_prog_cxx_g = yes; then
3375 if test "$GXX" = yes; then
3376 CXXFLAGS="-g -O2"
3377 else
3378 CXXFLAGS="-g"
3380 else
3381 if test "$GXX" = yes; then
3382 CXXFLAGS="-O2"
3383 else
3384 CXXFLAGS=
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 if test -n "$ac_tool_prefix"; then
3399 for ac_prog in ${host_c_compilers}
3401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_CC+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -n "$CC"; then
3409 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3422 done
3423 done
3424 IFS=$as_save_IFS
3428 CC=$ac_cv_prog_CC
3429 if test -n "$CC"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3431 $as_echo "$CC" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3438 test -n "$CC" && break
3439 done
3441 if test -z "$CC"; then
3442 ac_ct_CC=$CC
3443 for ac_prog in ${host_c_compilers}
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="$ac_prog"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3473 if test -n "$ac_ct_CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3475 $as_echo "$ac_ct_CC" >&6; }
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3482 test -n "$ac_ct_CC" && break
3483 done
3485 if test "x$ac_ct_CC" = x; then
3486 CC=""
3487 else
3488 case $cross_compiling:$ac_tool_warned in
3489 yes:)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3492 ac_tool_warned=yes ;;
3493 esac
3494 CC=$ac_ct_CC
3499 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "no acceptable C compiler found in \$PATH
3502 See \`config.log' for more details" "$LINENO" 5; }
3504 # Provide some information about the compiler.
3505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3506 set X $ac_compile
3507 ac_compiler=$2
3508 for ac_option in --version -v -V -qversion; do
3509 { { ac_try="$ac_compiler $ac_option >&5"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3517 ac_status=$?
3518 if test -s conftest.err; then
3519 sed '10a\
3520 ... rest of stderr output deleted ...
3521 10q' conftest.err >conftest.er1
3522 cat conftest.er1 >&5
3524 rm -f conftest.er1 conftest.err
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }
3527 done
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3531 if ${ac_cv_c_compiler_gnu+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3538 main ()
3540 #ifndef __GNUC__
3541 choke me
3542 #endif
3545 return 0;
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_compiler_gnu=yes
3550 else
3551 ac_compiler_gnu=no
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3559 if test $ac_compiler_gnu = yes; then
3560 GCC=yes
3561 else
3562 GCC=
3564 ac_test_CFLAGS=${CFLAGS+set}
3565 ac_save_CFLAGS=$CFLAGS
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3568 if ${ac_cv_prog_cc_g+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 ac_save_c_werror_flag=$ac_c_werror_flag
3572 ac_c_werror_flag=yes
3573 ac_cv_prog_cc_g=no
3574 CFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3579 main ()
3583 return 0;
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_g=yes
3588 else
3589 CFLAGS=""
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3594 main ()
3598 return 0;
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3603 else
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3605 CFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3610 main ()
3614 return 0;
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_g=yes
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3628 $as_echo "$ac_cv_prog_cc_g" >&6; }
3629 if test "$ac_test_CFLAGS" = set; then
3630 CFLAGS=$ac_save_CFLAGS
3631 elif test $ac_cv_prog_cc_g = yes; then
3632 if test "$GCC" = yes; then
3633 CFLAGS="-g -O2"
3634 else
3635 CFLAGS="-g"
3637 else
3638 if test "$GCC" = yes; then
3639 CFLAGS="-O2"
3640 else
3641 CFLAGS=
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3645 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3646 if ${ac_cv_prog_cc_c89+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 ac_cv_prog_cc_c89=no
3650 ac_save_CC=$CC
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653 #include <stdarg.h>
3654 #include <stdio.h>
3655 struct stat;
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3660 char **p;
3661 int i;
3663 return p[i];
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3667 char *s;
3668 va_list v;
3669 va_start (v,p);
3670 s = g (p, va_arg (v,int));
3671 va_end (v);
3672 return s;
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3686 #define FOO(x) 'x'
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 int argc;
3694 char **argv;
3696 main ()
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3700 return 0;
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 CC="$ac_save_CC $ac_arg"
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_c89=$ac_arg
3710 rm -f core conftest.err conftest.$ac_objext
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3712 done
3713 rm -f conftest.$ac_ext
3714 CC=$ac_save_CC
3717 # AC_CACHE_VAL
3718 case "x$ac_cv_prog_cc_c89" in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3722 xno)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3726 CC="$CC $ac_cv_prog_cc_c89"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3729 esac
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 aros_host_def_cc="$CC"
3741 case $ac_cv_prog_cc_stdc in #(
3742 no) :
3743 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3744 *) :
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3746 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3747 if ${ac_cv_prog_cc_c99+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_cv_prog_cc_c99=no
3751 ac_save_CC=$CC
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <stdarg.h>
3755 #include <stdbool.h>
3756 #include <stdlib.h>
3757 #include <wchar.h>
3758 #include <stdio.h>
3760 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3761 #define debug(...) fprintf (stderr, __VA_ARGS__)
3762 #define showlist(...) puts (#__VA_ARGS__)
3763 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3764 static void
3765 test_varargs_macros (void)
3767 int x = 1234;
3768 int y = 5678;
3769 debug ("Flag");
3770 debug ("X = %d\n", x);
3771 showlist (The first, second, and third items.);
3772 report (x>y, "x is %d but y is %d", x, y);
3775 // Check long long types.
3776 #define BIG64 18446744073709551615ull
3777 #define BIG32 4294967295ul
3778 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3779 #if !BIG_OK
3780 your preprocessor is broken;
3781 #endif
3782 #if BIG_OK
3783 #else
3784 your preprocessor is broken;
3785 #endif
3786 static long long int bignum = -9223372036854775807LL;
3787 static unsigned long long int ubignum = BIG64;
3789 struct incomplete_array
3791 int datasize;
3792 double data[];
3795 struct named_init {
3796 int number;
3797 const wchar_t *name;
3798 double average;
3801 typedef const char *ccp;
3803 static inline int
3804 test_restrict (ccp restrict text)
3806 // See if C++-style comments work.
3807 // Iterate through items via the restricted pointer.
3808 // Also check for declarations in for loops.
3809 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3810 continue;
3811 return 0;
3814 // Check varargs and va_copy.
3815 static void
3816 test_varargs (const char *format, ...)
3818 va_list args;
3819 va_start (args, format);
3820 va_list args_copy;
3821 va_copy (args_copy, args);
3823 const char *str;
3824 int number;
3825 float fnumber;
3827 while (*format)
3829 switch (*format++)
3831 case 's': // string
3832 str = va_arg (args_copy, const char *);
3833 break;
3834 case 'd': // int
3835 number = va_arg (args_copy, int);
3836 break;
3837 case 'f': // float
3838 fnumber = va_arg (args_copy, double);
3839 break;
3840 default:
3841 break;
3844 va_end (args_copy);
3845 va_end (args);
3849 main ()
3852 // Check bool.
3853 _Bool success = false;
3855 // Check restrict.
3856 if (test_restrict ("String literal") == 0)
3857 success = true;
3858 char *restrict newvar = "Another string";
3860 // Check varargs.
3861 test_varargs ("s, d' f .", "string", 65, 34.234);
3862 test_varargs_macros ();
3864 // Check flexible array members.
3865 struct incomplete_array *ia =
3866 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3867 ia->datasize = 10;
3868 for (int i = 0; i < ia->datasize; ++i)
3869 ia->data[i] = i * 1.234;
3871 // Check named initializers.
3872 struct named_init ni = {
3873 .number = 34,
3874 .name = L"Test wide string",
3875 .average = 543.34343,
3878 ni.number = 58;
3880 int dynamic_array[ni.number];
3881 dynamic_array[ni.number - 1] = 543;
3883 // work around unused variable warnings
3884 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3885 || dynamic_array[ni.number - 1] != 543);
3888 return 0;
3890 _ACEOF
3891 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3893 CC="$ac_save_CC $ac_arg"
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_c99=$ac_arg
3897 rm -f core conftest.err conftest.$ac_objext
3898 test "x$ac_cv_prog_cc_c99" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3904 # AC_CACHE_VAL
3905 case "x$ac_cv_prog_cc_c99" in
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908 $as_echo "none needed" >&6; } ;;
3909 xno)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911 $as_echo "unsupported" >&6; } ;;
3913 CC="$CC $ac_cv_prog_cc_c99"
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3915 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3916 esac
3917 if test "x$ac_cv_prog_cc_c99" != xno; then :
3918 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if ${ac_cv_prog_cc_c89+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <stdarg.h>
3930 #include <stdio.h>
3931 struct stat;
3932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933 struct buf { int x; };
3934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935 static char *e (p, i)
3936 char **p;
3937 int i;
3939 return p[i];
3941 static char *f (char * (*g) (char **, int), char **p, ...)
3943 char *s;
3944 va_list v;
3945 va_start (v,p);
3946 s = g (p, va_arg (v,int));
3947 va_end (v);
3948 return s;
3951 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952 function prototypes and stuff, but not '\xHH' hex character constants.
3953 These don't provoke an error unfortunately, instead are silently treated
3954 as 'x'. The following induces an error, until -std is added to get
3955 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956 array size at least. It's necessary to write '\x00'==0 to get something
3957 that's true only with -std. */
3958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3962 #define FOO(x) 'x'
3963 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3965 int test (int i, double x);
3966 struct s1 {int (*f) (int a);};
3967 struct s2 {int (*f) (double a);};
3968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969 int argc;
3970 char **argv;
3972 main ()
3974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3976 return 0;
3978 _ACEOF
3979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3982 CC="$ac_save_CC $ac_arg"
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_c89=$ac_arg
3986 rm -f core conftest.err conftest.$ac_objext
3987 test "x$ac_cv_prog_cc_c89" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CC=$ac_save_CC
3993 # AC_CACHE_VAL
3994 case "x$ac_cv_prog_cc_c89" in
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;;
3998 xno)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000 $as_echo "unsupported" >&6; } ;;
4002 CC="$CC $ac_cv_prog_cc_c89"
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005 esac
4006 if test "x$ac_cv_prog_cc_c89" != xno; then :
4007 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4008 else
4009 ac_cv_prog_cc_stdc=no
4014 esac
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4016 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4017 if ${ac_cv_prog_cc_stdc+:} false; then :
4018 $as_echo_n "(cached) " >&6
4021 case $ac_cv_prog_cc_stdc in #(
4022 no) :
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4024 $as_echo "unsupported" >&6; } ;; #(
4025 '') :
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;; #(
4028 *) :
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4030 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4031 esac
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP=
4044 if test -z "$CPP"; then
4045 if ${ac_cv_prog_CPP+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067 Syntax error
4068 _ACEOF
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4071 else
4072 # Broken: fails on valid input.
4073 continue
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4077 # OK, works on sane cases. Now check whether nonexistent headers
4078 # can be detected and how.
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084 # Broken: success on invalid input.
4085 continue
4086 else
4087 # Passes both tests.
4088 ac_preproc_ok=:
4089 break
4091 rm -f conftest.err conftest.i conftest.$ac_ext
4093 done
4094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095 rm -f conftest.i conftest.err conftest.$ac_ext
4096 if $ac_preproc_ok; then :
4097 break
4100 done
4101 ac_cv_prog_CPP=$CPP
4104 CPP=$ac_cv_prog_CPP
4105 else
4106 ac_cv_prog_CPP=$CPP
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4109 $as_echo "$CPP" >&6; }
4110 ac_preproc_ok=false
4111 for ac_c_preproc_warn_flag in '' yes
4113 # Use a header file that comes with gcc, so configuring glibc
4114 # with a fresh cross-compiler works.
4115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 # <limits.h> exists even on freestanding compilers.
4117 # On the NeXT, cc -E runs the code through the compiler's parser,
4118 # not just through cpp. "Syntax error" is here to catch this case.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4126 Syntax error
4127 _ACEOF
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4130 else
4131 # Broken: fails on valid input.
4132 continue
4134 rm -f conftest.err conftest.i conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4143 # Broken: success on invalid input.
4144 continue
4145 else
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4150 rm -f conftest.err conftest.i conftest.$ac_ext
4152 done
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.i conftest.err conftest.$ac_ext
4155 if $ac_preproc_ok; then :
4157 else
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4161 See \`config.log' for more details" "$LINENO" 5; }
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 # Check for a compatible awk
4172 for ac_prog in gawk nawk
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_AWK+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$AWK"; then
4182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_AWK="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 AWK=$ac_cv_prog_AWK
4202 if test -n "$AWK"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4204 $as_echo "$AWK" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$AWK" && break
4212 done
4214 req_avail=yes
4215 if test "$AWK" = ""; then
4216 req_avail=no
4218 if test "$AWK" = "no"; then
4219 req_avail=no
4221 if test "$req_avail" = "no"; then
4222 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4224 # Extract the first word of "mmake", so it can be a program name with args.
4225 set dummy mmake; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_MMAKE+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$MMAKE"; then
4232 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_MMAKE="mmake "
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 MMAKE=$ac_cv_prog_MMAKE
4252 if test -n "$MMAKE"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4254 $as_echo "$MMAKE" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 # Perform some default variable assignments. Note all of these will be
4263 # Regenerated from the script, so there is no need to cache them.
4265 aros_build_host=$host
4266 aros_host_cpp="$CPP"
4267 aros_host_cc="$CC"
4268 aros_host_cxx="$CXX"
4269 if test "$GCC" = "yes"; then
4270 aros_gcc_ld=`$CC -print-prog-name=ld`
4271 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4272 set dummy `basename $aros_gcc_ld`; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_path_aros_host_ld+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 case $aros_host_ld in
4279 [\\/]* | ?:[\\/]*)
4280 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in `dirname $aros_gcc_ld`
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4296 IFS=$as_save_IFS
4299 esac
4301 aros_host_ld=$ac_cv_path_aros_host_ld
4302 if test -n "$aros_host_ld"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4304 $as_echo "$aros_host_ld" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4312 if test "$aros_host_ld" = ""; then
4313 # Extract the first word of "ld", so it can be a program name with args.
4314 set dummy ld; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_path_aros_host_ld+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 case $aros_host_ld in
4321 [\\/]* | ?:[\\/]*)
4322 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4341 esac
4343 aros_host_ld=$ac_cv_path_aros_host_ld
4344 if test -n "$aros_host_ld"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4346 $as_echo "$aros_host_ld" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4354 req_avail=yes
4355 if test "$aros_host_ld" = ""; then
4356 req_avail=no
4358 if test "$aros_host_ld" = "no"; then
4359 req_avail=no
4361 if test "$req_avail" = "no"; then
4362 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4364 aros_host_make="make"
4365 aros_host_cflags="$CFLAGS"
4366 aros_host_cxxflags="$CXXFLAGS"
4367 aros_host_ldflags="$LDFLAGS"
4368 aros_host_debug="-g -O0"
4369 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4370 aros_host_mkargs="--no-print-directory"
4371 aros_host_exe_suffix="$EXEEXT"
4372 aros_host_lib_suffix=""
4374 # Ignore all compliance, AROS ROMs = 0
4375 # KickStart v1.0 = 30
4376 # KickStart v1.3 = 34
4377 # KickStart v2.0 = 37
4378 # KickStart v3.0 = 39
4379 # KickStart v3.1 = 40
4380 # AmigaOS v3.5 = 44
4381 aros_amigaos_compliance=0
4383 for ac_prog in aclocal aclocal19 aclocal-1.9
4385 # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -n "$aros_host_aclocal"; then
4393 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_aros_host_aclocal="$ac_prog"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4412 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4413 if test -n "$aros_host_aclocal"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4415 $as_echo "$aros_host_aclocal" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4422 test -n "$aros_host_aclocal" && break
4423 done
4425 for ac_prog in autoconf autoconf259 autoconf253
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -n "$aros_host_autoconf"; then
4435 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_aros_host_autoconf="$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4455 if test -n "$aros_host_autoconf"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4457 $as_echo "$aros_host_autoconf" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4464 test -n "$aros_host_autoconf" && break
4465 done
4467 for ac_prog in autoheader autoheader259 autoheader253
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$aros_host_autoheader"; then
4477 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_aros_host_autoheader="$ac_prog"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4496 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4497 if test -n "$aros_host_autoheader"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4499 $as_echo "$aros_host_autoheader" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4506 test -n "$aros_host_autoheader" && break
4507 done
4509 for ac_prog in automake automake19 automake-1.9
4511 # Extract the first word of "$ac_prog", so it can be a program name with args.
4512 set dummy $ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_aros_host_automake+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$aros_host_automake"; then
4519 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_aros_host_automake="$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 aros_host_automake=$ac_cv_prog_aros_host_automake
4539 if test -n "$aros_host_automake"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4541 $as_echo "$aros_host_automake" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$aros_host_automake" && break
4549 done
4552 req_avail=yes
4553 if test "$aros_host_aclocal" = ""; then
4554 req_avail=no
4556 if test "$aros_host_aclocal" = "no"; then
4557 req_avail=no
4559 if test "$req_avail" = "no"; then
4560 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4562 req_avail=yes
4563 if test "$aros_host_automake" = ""; then
4564 req_avail=no
4566 if test "$aros_host_automake" = "no"; then
4567 req_avail=no
4569 if test "$req_avail" = "no"; then
4570 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4573 case "$aros_host_cc" in
4574 *clang*)
4575 aros_host_cc_pipe=""
4577 *gcc*)
4578 aros_host_cc_pipe="-pipe"
4580 icc)
4581 aros_host_cc_pipe=""
4584 aros_host_cc_pipe=""
4586 esac
4588 aros_kernel_cc_includes=""
4589 aros_target_cc_includes=""
4590 host_cc_elf=yes
4592 # ----------------------------------------------------------------------------------------
4593 # Host-specific defaults
4595 # This is the main host configuration section. It is where the host
4596 # can change the values of any variables it needs to change. We do
4597 # not look at anything that compiles to the target yet, we'll get
4598 # to that later.
4600 case "$host_os" in
4601 aros*)
4602 aros_host_arch="aros"
4603 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4604 case "$host_cpu" in
4605 *i?86*)
4606 aros_host_cpu="i386"
4608 *x86_64*)
4609 aros_host_cpu="x86_64"
4611 *powerpc*)
4612 aros_host_cpu="ppc"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4616 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4617 aros_host_cpu="$host_cpu"
4619 esac
4622 linux*)
4623 aros_host_arch="linux"
4624 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4625 android_build_os="linux-x86"
4626 android_tool="android"
4627 default_android_sdk="/opt/android-sdk-linux_x86"
4628 case "$host_cpu" in
4629 *i?86*)
4630 aros_host_cpu="i386"
4632 *x86_64*)
4633 aros_host_cpu="x86_64"
4635 *m68k*)
4636 aros_host_cpu="m68k"
4638 *powerpc*)
4639 aros_host_cpu="ppc"
4641 *arm*)
4642 aros_host_cpu="arm"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4646 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4647 aros_host_cpu="$host_cpu"
4649 esac
4652 freebsd*)
4653 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4654 aros_host_make="gmake"
4655 aros_host_arch="freebsd"
4656 aros_host_cpu="i386"
4658 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4660 case $host_os in
4661 freebsd[234]*)
4662 aros_object_format="elf_i386"
4666 aros_object_format="elf_i386_fbsd"
4668 esac
4672 darwin*)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4674 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4675 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 test "$cross_compiling" = yes &&
4679 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4680 if test -r "/usr/include/stddef.h"; then
4681 ac_cv_file__usr_include_stddef_h=yes
4682 else
4683 ac_cv_file__usr_include_stddef_h=no
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4687 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4688 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4690 else
4691 as_fn_error $? "XCode incorrectly configured!
4692 please run 'xcode-select --install' before
4693 re-running configure" "$LINENO" 5
4697 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4698 aros_host_arch="darwin"
4699 host_cc_elf=no
4700 if [ -z ${SED+x} ]; then SED="gsed"; fi
4701 android_build_os="darwin-x86"
4702 android_tool="android"
4703 default_android_sdk="/android-sdk-mac_x86"
4704 case "$host_cpu" in
4705 *i?86*)
4706 aros_host_cpu="i386"
4708 *x86_64*)
4709 aros_host_cpu="x86_64"
4711 *powerpc*)
4712 aros_host_cpu="ppc"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4716 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4717 aros_host_cpu="$host_cpu"
4719 esac
4721 aros_host_ldflags="$aros_host_ldflags -liconv"
4725 dragonfly*)
4726 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4727 aros_host_make="gmake"
4728 aros_host_arch="dragonfly"
4729 case $host_cpu in
4730 *i?86*)
4731 aros_host_cpu="i386"
4733 *amd64*)
4734 aros_host_cpu="x86_64"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4738 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4739 aros_host_cpu="$host_cpu"
4741 esac
4744 netbsd*)
4745 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4746 aros_host_make="gmake"
4747 aros_host_arch="netbsd"
4748 case "$host_cpu" in
4749 *i?86*)
4750 aros_host_cpu="i386"
4752 *m68k*)
4753 aros_host_cpu="m68k"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4757 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4758 aros_host_cpu="$host_cpu"
4760 esac
4761 aros_host_lib_suffix=".0.0"
4764 openbsd*)
4765 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4766 aros_host_make="gmake"
4767 aros_host_arch="openbsd"
4768 case "$host_cpu" in
4769 *i?86*)
4770 aros_host_cpu="i386"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4774 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4775 aros_host_cpu="$host_cpu"
4777 esac
4780 solaris*)
4781 aros_host_arch="solaris"
4782 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4783 case "$host_cpu" in
4784 *i?86*)
4785 aros_host_cpu="i386"
4787 *sparc*)
4788 aros_host_cpu="sparc"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4792 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4793 aros_host_cpu="$host_cpu"
4795 esac
4798 morphos*)
4799 aros_host_arch="morphos"
4800 aros_host_cpu="ppc"
4801 host_cc_elf=no
4804 amiga*)
4805 aros_host_arch="amiga"
4806 host_cc_elf=no
4807 SORT="/gg/bin/sort"
4808 TEST="/gg/bin/test"
4809 UNIQ="/gg/bin/uniq"
4810 FOR="for"
4811 TOUCH="/gg/bin/touch"
4812 case "$host_cpu" in
4813 *m68k*)
4814 aros_host_cpu="m68k"
4816 *powerpc*)
4817 aros_host_cpu="ppc"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4821 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4822 aros_host_cpu="$host_cpu"
4824 esac
4827 cygwin*)
4828 aros_host_arch="cygwin"
4829 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4830 host_cc_elf=no
4831 android_build_os="windows"
4832 android_tool="android.bat"
4833 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4835 case "$host_cpu" in
4836 *i?86*)
4837 aros_host_cpu="i386"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4841 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4842 aros_host_cpu="$host_cpu"
4844 esac
4847 mingw32*)
4848 aros_host_arch="mingw32"
4849 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4850 host_cc_elf=no
4851 android_build_os="windows"
4852 android_tool="android.bat"
4853 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4855 libpng_libextra="-lws2_32"
4857 case "$host_cpu" in
4858 *i?86*)
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4861 $as_echo_n "checking for Windows native gcc target... " >&6; }
4862 host_cpu=`gcc -dumpmachine`
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4864 $as_echo "$host_cpu" >&6; }
4867 esac
4869 case "$host_cpu" in
4870 *i?86*)
4871 aros_host_cpu="i386"
4874 mingw32*)
4875 aros_host_cpu="i386"
4878 *x86_64*)
4879 aros_host_cpu="x86_64"
4880 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4885 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4886 aros_host_cpu="$host_cpu"
4888 esac
4891 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4893 esac
4895 # Extract the first word of "ar", so it can be a program name with args.
4896 set dummy ar; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_aros_host_ar+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$aros_host_ar"; then
4903 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_aros_host_ar="ar cr"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 aros_host_ar=$ac_cv_prog_aros_host_ar
4923 if test -n "$aros_host_ar"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4925 $as_echo "$aros_host_ar" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 req_avail=yes
4933 if test "$aros_host_ar" = ""; then
4934 req_avail=no
4936 if test "$aros_host_ar" = "no"; then
4937 req_avail=no
4939 if test "$req_avail" = "no"; then
4940 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4942 # Extract the first word of "ranlib", so it can be a program name with args.
4943 set dummy ranlib; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$aros_host_ranlib"; then
4950 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_aros_host_ranlib="ranlib "
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4965 IFS=$as_save_IFS
4969 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4970 if test -n "$aros_host_ranlib"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4972 $as_echo "$aros_host_ranlib" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4979 req_avail=yes
4980 if test "$aros_host_ranlib" = ""; then
4981 req_avail=no
4983 if test "$aros_host_ranlib" = "no"; then
4984 req_avail=no
4986 if test "$req_avail" = "no"; then
4987 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4989 # Extract the first word of "strip", so it can be a program name with args.
4990 set dummy strip; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_aros_host_strip+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$aros_host_strip"; then
4997 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_aros_host_strip="strip "
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5016 aros_host_strip=$ac_cv_prog_aros_host_strip
5017 if test -n "$aros_host_strip"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5019 $as_echo "$aros_host_strip" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 req_avail=yes
5027 if test "$aros_host_strip" = ""; then
5028 req_avail=no
5030 if test "$aros_host_strip" = "no"; then
5031 req_avail=no
5033 if test "$req_avail" = "no"; then
5034 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5037 # Extract the first word of "rm", so it can be a program name with args.
5038 set dummy rm; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_RM+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$RM"; then
5045 ac_cv_prog_RM="$RM" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_RM="rm -rf"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5060 IFS=$as_save_IFS
5064 RM=$ac_cv_prog_RM
5065 if test -n "$RM"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5067 $as_echo "$RM" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5074 req_avail=yes
5075 if test "$RM" = ""; then
5076 req_avail=no
5078 if test "$RM" = "no"; then
5079 req_avail=no
5081 if test "$req_avail" = "no"; then
5082 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5084 # Extract the first word of "cp", so it can be a program name with args.
5085 set dummy cp; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_prog_CP+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$CP"; then
5092 ac_cv_prog_CP="$CP" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_CP="cp "
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 CP=$ac_cv_prog_CP
5112 if test -n "$CP"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5114 $as_echo "$CP" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 req_avail=yes
5122 if test "$CP" = ""; then
5123 req_avail=no
5125 if test "$CP" = "no"; then
5126 req_avail=no
5128 if test "$req_avail" = "no"; then
5129 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5131 # Extract the first word of "mv", so it can be a program name with args.
5132 set dummy mv; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_MV+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$MV"; then
5139 ac_cv_prog_MV="$MV" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_MV="mv "
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 MV=$ac_cv_prog_MV
5159 if test -n "$MV"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5161 $as_echo "$MV" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5168 req_avail=yes
5169 if test "$MV" = ""; then
5170 req_avail=no
5172 if test "$MV" = "no"; then
5173 req_avail=no
5175 if test "$req_avail" = "no"; then
5176 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5178 # Extract the first word of "echo", so it can be a program name with args.
5179 set dummy echo; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ECHO+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ECHO"; then
5186 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ECHO="echo "
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 ECHO=$ac_cv_prog_ECHO
5206 if test -n "$ECHO"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5208 $as_echo "$ECHO" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 req_avail=yes
5216 if test "$ECHO" = ""; then
5217 req_avail=no
5219 if test "$ECHO" = "no"; then
5220 req_avail=no
5222 if test "$req_avail" = "no"; then
5223 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5225 # Extract the first word of "mkdir", so it can be a program name with args.
5226 set dummy mkdir; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if ${ac_cv_prog_MKDIR+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$MKDIR"; then
5233 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_MKDIR="mkdir -p"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5248 IFS=$as_save_IFS
5252 MKDIR=$ac_cv_prog_MKDIR
5253 if test -n "$MKDIR"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5255 $as_echo "$MKDIR" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 req_avail=yes
5263 if test "$MKDIR" = ""; then
5264 req_avail=no
5266 if test "$MKDIR" = "no"; then
5267 req_avail=no
5269 if test "$req_avail" = "no"; then
5270 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5272 # Extract the first word of "touch", so it can be a program name with args.
5273 set dummy touch; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_prog_TOUCH+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$TOUCH"; then
5280 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_TOUCH="touch "
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5295 IFS=$as_save_IFS
5299 TOUCH=$ac_cv_prog_TOUCH
5300 if test -n "$TOUCH"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5302 $as_echo "$TOUCH" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5309 req_avail=yes
5310 if test "$TOUCH" = ""; then
5311 req_avail=no
5313 if test "$TOUCH" = "no"; then
5314 req_avail=no
5316 if test "$req_avail" = "no"; then
5317 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5319 # Extract the first word of "sort", so it can be a program name with args.
5320 set dummy sort; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_SORT+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$SORT"; then
5327 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_SORT="sort "
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5340 done
5341 done
5342 IFS=$as_save_IFS
5346 SORT=$ac_cv_prog_SORT
5347 if test -n "$SORT"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5349 $as_echo "$SORT" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5356 req_avail=yes
5357 if test "$SORT" = ""; then
5358 req_avail=no
5360 if test "$SORT" = "no"; then
5361 req_avail=no
5363 if test "$req_avail" = "no"; then
5364 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5366 # Extract the first word of "uniq", so it can be a program name with args.
5367 set dummy uniq; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_prog_UNIQ+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$UNIQ"; then
5374 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_UNIQ="uniq "
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 UNIQ=$ac_cv_prog_UNIQ
5394 if test -n "$UNIQ"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5396 $as_echo "$UNIQ" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 req_avail=yes
5404 if test "$UNIQ" = ""; then
5405 req_avail=no
5407 if test "$UNIQ" = "no"; then
5408 req_avail=no
5410 if test "$req_avail" = "no"; then
5411 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5413 # Extract the first word of "true", so it can be a program name with args.
5414 set dummy true; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_NOP+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -n "$NOP"; then
5421 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_NOP="true "
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5434 done
5435 done
5436 IFS=$as_save_IFS
5440 NOP=$ac_cv_prog_NOP
5441 if test -n "$NOP"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5443 $as_echo "$NOP" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 req_avail=yes
5451 if test "$NOP" = ""; then
5452 req_avail=no
5454 if test "$NOP" = "no"; then
5455 req_avail=no
5457 if test "$req_avail" = "no"; then
5458 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5460 # Extract the first word of "cat", so it can be a program name with args.
5461 set dummy cat; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_CAT+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$CAT"; then
5468 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_CAT="cat "
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 CAT=$ac_cv_prog_CAT
5488 if test -n "$CAT"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5490 $as_echo "$CAT" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 req_avail=yes
5498 if test "$CAT" = ""; then
5499 req_avail=no
5501 if test "$CAT" = "no"; then
5502 req_avail=no
5504 if test "$req_avail" = "no"; then
5505 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5507 # Extract the first word of "bison", so it can be a program name with args.
5508 set dummy bison; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_BISON+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$BISON"; then
5515 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_BISON="bison "
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5528 done
5529 done
5530 IFS=$as_save_IFS
5534 BISON=$ac_cv_prog_BISON
5535 if test -n "$BISON"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5537 $as_echo "$BISON" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5544 req_avail=yes
5545 if test "$BISON" = ""; then
5546 req_avail=no
5548 if test "$BISON" = "no"; then
5549 req_avail=no
5551 if test "$req_avail" = "no"; then
5552 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5554 # Extract the first word of "flex", so it can be a program name with args.
5555 set dummy flex; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_FLEX+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$FLEX"; then
5562 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_FLEX="flex "
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 FLEX=$ac_cv_prog_FLEX
5582 if test -n "$FLEX"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5584 $as_echo "$FLEX" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5591 req_avail=yes
5592 if test "$FLEX" = ""; then
5593 req_avail=no
5595 if test "$FLEX" = "no"; then
5596 req_avail=no
5598 if test "$req_avail" = "no"; then
5599 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5601 # Extract the first word of "pngtopnm", so it can be a program name with args.
5602 set dummy pngtopnm; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$PNGTOPNM"; then
5609 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_PNGTOPNM="pngtopnm "
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5629 if test -n "$PNGTOPNM"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5631 $as_echo "$PNGTOPNM" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 req_avail=yes
5639 if test "$PNGTOPNM" = ""; then
5640 req_avail=no
5642 if test "$PNGTOPNM" = "no"; then
5643 req_avail=no
5645 if test "$req_avail" = "no"; then
5646 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5648 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5649 set dummy ppmtoilbm; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -n "$PPMTOILBM"; then
5656 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5669 done
5670 done
5671 IFS=$as_save_IFS
5675 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5676 if test -n "$PPMTOILBM"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5678 $as_echo "$PPMTOILBM" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5685 req_avail=yes
5686 if test "$PPMTOILBM" = ""; then
5687 req_avail=no
5689 if test "$PPMTOILBM" = "no"; then
5690 req_avail=no
5692 if test "$req_avail" = "no"; then
5693 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5695 # Extract the first word of "sed", so it can be a program name with args.
5696 set dummy sed; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_SED+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$SED"; then
5703 ac_cv_prog_SED="$SED" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_SED="sed "
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 SED=$ac_cv_prog_SED
5723 if test -n "$SED"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5725 $as_echo "$SED" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 req_avail=yes
5733 if test "$SED" = ""; then
5734 req_avail=no
5736 if test "$SED" = "no"; then
5737 req_avail=no
5739 if test "$req_avail" = "no"; then
5740 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5742 # Extract the first word of "chmod", so it can be a program name with args.
5743 set dummy chmod; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_CHMOD+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 if test -n "$CHMOD"; then
5750 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_CHMOD="chmod "
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5763 done
5764 done
5765 IFS=$as_save_IFS
5769 CHMOD=$ac_cv_prog_CHMOD
5770 if test -n "$CHMOD"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5772 $as_echo "$CHMOD" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5779 req_avail=yes
5780 if test "$CHMOD" = ""; then
5781 req_avail=no
5783 if test "$CHMOD" = "no"; then
5784 req_avail=no
5786 if test "$req_avail" = "no"; then
5787 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5789 # Extract the first word of "patch", so it can be a program name with args.
5790 set dummy patch; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_PATCH+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 if test -n "$PATCH"; then
5797 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_PATCH="patch "
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5816 PATCH=$ac_cv_prog_PATCH
5817 if test -n "$PATCH"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5819 $as_echo "$PATCH" >&6; }
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5826 req_avail=yes
5827 if test "$PATCH" = ""; then
5828 req_avail=no
5830 if test "$PATCH" = "no"; then
5831 req_avail=no
5833 if test "$req_avail" = "no"; then
5834 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5843 if test -n "$PYTHON"; then
5844 # If the user set $PYTHON, use it and don't search something else.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5846 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5847 prog="import sys
5848 # split strings by '.' and convert to numeric. Append some zeros
5849 # because we need at least 4 digits for the hex conversion.
5850 # map returns an iterator in Python 3.0 and a list in 2.x
5851 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5852 minverhex = 0
5853 # xrange is not present in Python 3.0 and range returns an iterator
5854 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5855 sys.exit(sys.hexversion < minverhex)"
5856 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5857 ($PYTHON -c "$prog") >&5 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; then :
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5862 $as_echo "yes" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5868 am_display_PYTHON=$PYTHON
5869 else
5870 # Otherwise, try each interpreter until we find one that satisfies
5871 # VERSION.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5873 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5874 if ${am_cv_pathless_PYTHON+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5878 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
5879 test "$am_cv_pathless_PYTHON" = none && break
5880 prog="import sys
5881 # split strings by '.' and convert to numeric. Append some zeros
5882 # because we need at least 4 digits for the hex conversion.
5883 # map returns an iterator in Python 3.0 and a list in 2.x
5884 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5885 minverhex = 0
5886 # xrange is not present in Python 3.0 and range returns an iterator
5887 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5888 sys.exit(sys.hexversion < minverhex)"
5889 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5890 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; then :
5894 break
5896 done
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5899 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5900 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5901 if test "$am_cv_pathless_PYTHON" = none; then
5902 PYTHON=:
5903 else
5904 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5905 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_path_PYTHON+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 case $PYTHON in
5912 [\\/]* | ?:[\\/]*)
5913 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5932 esac
5934 PYTHON=$ac_cv_path_PYTHON
5935 if test -n "$PYTHON"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5937 $as_echo "$PYTHON" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5945 am_display_PYTHON=$am_cv_pathless_PYTHON
5949 if test "$PYTHON" = :; then
5950 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5951 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5955 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5956 if ${am_cv_python_version+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5962 $as_echo "$am_cv_python_version" >&6; }
5963 PYTHON_VERSION=$am_cv_python_version
5967 PYTHON_PREFIX='${prefix}'
5969 PYTHON_EXEC_PREFIX='${exec_prefix}'
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5974 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5975 if ${am_cv_python_platform+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5981 $as_echo "$am_cv_python_platform" >&6; }
5982 PYTHON_PLATFORM=$am_cv_python_platform
5985 # Just factor out some code duplication.
5986 am_python_setup_sysconfig="\
5987 import sys
5988 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5989 # with python 3.x. See automake bug#10227.
5990 try:
5991 import sysconfig
5992 except ImportError:
5993 can_use_sysconfig = 0
5994 else:
5995 can_use_sysconfig = 1
5996 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5997 # <https://github.com/pypa/virtualenv/issues/118>
5998 try:
5999 from platform import python_implementation
6000 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6001 can_use_sysconfig = 0
6002 except ImportError:
6003 pass"
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6007 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6008 if ${am_cv_python_pythondir+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if test "x$prefix" = xNONE
6012 then
6013 am_py_prefix=$ac_default_prefix
6014 else
6015 am_py_prefix=$prefix
6017 am_cv_python_pythondir=`$PYTHON -c "
6018 $am_python_setup_sysconfig
6019 if can_use_sysconfig:
6020 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6021 else:
6022 from distutils import sysconfig
6023 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6024 sys.stdout.write(sitedir)"`
6025 case $am_cv_python_pythondir in
6026 $am_py_prefix*)
6027 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6028 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6031 case $am_py_prefix in
6032 /usr|/System*) ;;
6034 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6036 esac
6038 esac
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6042 $as_echo "$am_cv_python_pythondir" >&6; }
6043 pythondir=$am_cv_python_pythondir
6047 pkgpythondir=\${pythondir}/$PACKAGE
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6051 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6052 if ${am_cv_python_pyexecdir+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test "x$exec_prefix" = xNONE
6056 then
6057 am_py_exec_prefix=$am_py_prefix
6058 else
6059 am_py_exec_prefix=$exec_prefix
6061 am_cv_python_pyexecdir=`$PYTHON -c "
6062 $am_python_setup_sysconfig
6063 if can_use_sysconfig:
6064 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6065 else:
6066 from distutils import sysconfig
6067 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6068 sys.stdout.write(sitedir)"`
6069 case $am_cv_python_pyexecdir in
6070 $am_py_exec_prefix*)
6071 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6072 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6075 case $am_py_exec_prefix in
6076 /usr|/System*) ;;
6078 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6080 esac
6082 esac
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6086 $as_echo "$am_cv_python_pyexecdir" >&6; }
6087 pyexecdir=$am_cv_python_pyexecdir
6091 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6099 # Check whether --enable-libpng-config was given.
6100 if test "${enable_libpng_config+set}" = set; then :
6101 enableval=$enable_libpng_config;
6104 if test "$enable_libpng_config" != "no"; then
6105 # Extract the first word of "libpng-config", so it can be a program name with args.
6106 set dummy libpng-config; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 if test -n "$arosconfig_use_libpngconfig"; then
6113 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6126 done
6127 done
6128 IFS=$as_save_IFS
6130 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6133 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6134 if test -n "$arosconfig_use_libpngconfig"; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6136 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6137 else
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6144 if test "$arosconfig_use_libpngconfig" = "yes"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6146 $as_echo_n "checking libpng-config library... " >&6; }
6147 libpng_incdir="`libpng-config --cflags`"
6148 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6149 libpng="`libpng-config --libs`"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6151 $as_echo "$libpng" >&6; }
6152 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6155 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6156 if ${ac_cv_lib_png_png_read_png+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 ac_check_lib_save_LIBS=$LIBS
6160 LIBS="-lpng $LIBS"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 /* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 char png_read_png ();
6172 main ()
6174 return png_read_png ();
6176 return 0;
6178 _ACEOF
6179 if ac_fn_c_try_link "$LINENO"; then :
6180 ac_cv_lib_png_png_read_png=yes
6181 else
6182 ac_cv_lib_png_png_read_png=no
6184 rm -f core conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6186 LIBS=$ac_check_lib_save_LIBS
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6189 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6190 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6191 libpng="-lpng"
6192 else
6193 libpng="no"
6196 if test "$libpng_libextra" != ""; then
6197 if test "$libpng" != "no"; then
6198 libpng_libextra="$libpng_libextra $libpng"
6202 req_avail=yes
6203 if test "$libpng" = ""; then
6204 req_avail=no
6206 if test "$libpng" = "no"; then
6207 req_avail=no
6209 if test "$req_avail" = "no"; then
6210 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6216 FOR=for
6218 IF=if
6220 TEST=test
6222 CMP=cmp
6226 # Check for some includes for the X11 HIDD and the kernel
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6229 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6230 if ${ac_cv_path_GREP+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 if test -z "$GREP"; then
6234 ac_path_GREP_found=false
6235 # Loop through the user's path and test for each of PROGNAME-LIST
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_prog in grep ggrep; do
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6244 as_fn_executable_p "$ac_path_GREP" || continue
6245 # Check for GNU ac_path_GREP and select it if it is found.
6246 # Check for GNU $ac_path_GREP
6247 case `"$ac_path_GREP" --version 2>&1` in
6248 *GNU*)
6249 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6251 ac_count=0
6252 $as_echo_n 0123456789 >"conftest.in"
6253 while :
6255 cat "conftest.in" "conftest.in" >"conftest.tmp"
6256 mv "conftest.tmp" "conftest.in"
6257 cp "conftest.in" "conftest.nl"
6258 $as_echo 'GREP' >> "conftest.nl"
6259 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6261 as_fn_arith $ac_count + 1 && ac_count=$as_val
6262 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6263 # Best one so far, save it but keep looking for a better one
6264 ac_cv_path_GREP="$ac_path_GREP"
6265 ac_path_GREP_max=$ac_count
6267 # 10*(2^10) chars as input seems more than enough
6268 test $ac_count -gt 10 && break
6269 done
6270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6271 esac
6273 $ac_path_GREP_found && break 3
6274 done
6275 done
6276 done
6277 IFS=$as_save_IFS
6278 if test -z "$ac_cv_path_GREP"; then
6279 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6281 else
6282 ac_cv_path_GREP=$GREP
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6287 $as_echo "$ac_cv_path_GREP" >&6; }
6288 GREP="$ac_cv_path_GREP"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6292 $as_echo_n "checking for egrep... " >&6; }
6293 if ${ac_cv_path_EGREP+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6297 then ac_cv_path_EGREP="$GREP -E"
6298 else
6299 if test -z "$EGREP"; then
6300 ac_path_EGREP_found=false
6301 # Loop through the user's path and test for each of PROGNAME-LIST
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_prog in egrep; do
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6310 as_fn_executable_p "$ac_path_EGREP" || continue
6311 # Check for GNU ac_path_EGREP and select it if it is found.
6312 # Check for GNU $ac_path_EGREP
6313 case `"$ac_path_EGREP" --version 2>&1` in
6314 *GNU*)
6315 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6317 ac_count=0
6318 $as_echo_n 0123456789 >"conftest.in"
6319 while :
6321 cat "conftest.in" "conftest.in" >"conftest.tmp"
6322 mv "conftest.tmp" "conftest.in"
6323 cp "conftest.in" "conftest.nl"
6324 $as_echo 'EGREP' >> "conftest.nl"
6325 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6327 as_fn_arith $ac_count + 1 && ac_count=$as_val
6328 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6329 # Best one so far, save it but keep looking for a better one
6330 ac_cv_path_EGREP="$ac_path_EGREP"
6331 ac_path_EGREP_max=$ac_count
6333 # 10*(2^10) chars as input seems more than enough
6334 test $ac_count -gt 10 && break
6335 done
6336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6337 esac
6339 $ac_path_EGREP_found && break 3
6340 done
6341 done
6342 done
6343 IFS=$as_save_IFS
6344 if test -z "$ac_cv_path_EGREP"; then
6345 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6347 else
6348 ac_cv_path_EGREP=$EGREP
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6354 $as_echo "$ac_cv_path_EGREP" >&6; }
6355 EGREP="$ac_cv_path_EGREP"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6359 $as_echo_n "checking for ANSI C header files... " >&6; }
6360 if ${ac_cv_header_stdc+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #include <stdlib.h>
6366 #include <stdarg.h>
6367 #include <string.h>
6368 #include <float.h>
6371 main ()
6375 return 0;
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379 ac_cv_header_stdc=yes
6380 else
6381 ac_cv_header_stdc=no
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 if test $ac_cv_header_stdc = yes; then
6386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <string.h>
6391 _ACEOF
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 $EGREP "memchr" >/dev/null 2>&1; then :
6395 else
6396 ac_cv_header_stdc=no
6398 rm -f conftest*
6402 if test $ac_cv_header_stdc = yes; then
6403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 #include <stdlib.h>
6408 _ACEOF
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 $EGREP "free" >/dev/null 2>&1; then :
6412 else
6413 ac_cv_header_stdc=no
6415 rm -f conftest*
6419 if test $ac_cv_header_stdc = yes; then
6420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6421 if test "$cross_compiling" = yes; then :
6423 else
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #include <ctype.h>
6427 #include <stdlib.h>
6428 #if ((' ' & 0x0FF) == 0x020)
6429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6431 #else
6432 # define ISLOWER(c) \
6433 (('a' <= (c) && (c) <= 'i') \
6434 || ('j' <= (c) && (c) <= 'r') \
6435 || ('s' <= (c) && (c) <= 'z'))
6436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6437 #endif
6439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6441 main ()
6443 int i;
6444 for (i = 0; i < 256; i++)
6445 if (XOR (islower (i), ISLOWER (i))
6446 || toupper (i) != TOUPPER (i))
6447 return 2;
6448 return 0;
6450 _ACEOF
6451 if ac_fn_c_try_run "$LINENO"; then :
6453 else
6454 ac_cv_header_stdc=no
6456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6457 conftest.$ac_objext conftest.beam conftest.$ac_ext
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6463 $as_echo "$ac_cv_header_stdc" >&6; }
6464 if test $ac_cv_header_stdc = yes; then
6466 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6472 inttypes.h stdint.h unistd.h
6473 do :
6474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6477 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6478 cat >>confdefs.h <<_ACEOF
6479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6480 _ACEOF
6484 done
6487 for ac_header in sys/ipc.h sys/shm.h \
6488 sys/mmap.h sys/mman.h sysexits.h \
6489 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6491 do :
6492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6495 cat >>confdefs.h <<_ACEOF
6496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6497 _ACEOF
6501 done
6504 for ac_header in sys/mount.h
6505 do :
6506 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6508 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define HAVE_SYS_MOUNT_H 1
6511 _ACEOF
6515 done
6518 ac_header_dirent=no
6519 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6520 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6522 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6523 if eval \${$as_ac_Header+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 #include <$ac_hdr>
6532 main ()
6534 if ((DIR *) 0)
6535 return 0;
6537 return 0;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 eval "$as_ac_Header=yes"
6542 else
6543 eval "$as_ac_Header=no"
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 eval ac_res=\$$as_ac_Header
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6549 $as_echo "$ac_res" >&6; }
6550 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6551 cat >>confdefs.h <<_ACEOF
6552 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6553 _ACEOF
6555 ac_header_dirent=$ac_hdr; break
6558 done
6559 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6560 if test $ac_header_dirent = dirent.h; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6562 $as_echo_n "checking for library containing opendir... " >&6; }
6563 if ${ac_cv_search_opendir+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 ac_func_search_save_LIBS=$LIBS
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6570 /* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
6573 #ifdef __cplusplus
6574 extern "C"
6575 #endif
6576 char opendir ();
6578 main ()
6580 return opendir ();
6582 return 0;
6584 _ACEOF
6585 for ac_lib in '' dir; do
6586 if test -z "$ac_lib"; then
6587 ac_res="none required"
6588 else
6589 ac_res=-l$ac_lib
6590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6592 if ac_fn_c_try_link "$LINENO"; then :
6593 ac_cv_search_opendir=$ac_res
6595 rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext
6597 if ${ac_cv_search_opendir+:} false; then :
6598 break
6600 done
6601 if ${ac_cv_search_opendir+:} false; then :
6603 else
6604 ac_cv_search_opendir=no
6606 rm conftest.$ac_ext
6607 LIBS=$ac_func_search_save_LIBS
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6610 $as_echo "$ac_cv_search_opendir" >&6; }
6611 ac_res=$ac_cv_search_opendir
6612 if test "$ac_res" != no; then :
6613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6619 $as_echo_n "checking for library containing opendir... " >&6; }
6620 if ${ac_cv_search_opendir+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 ac_func_search_save_LIBS=$LIBS
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6627 /* Override any GCC internal prototype to avoid an error.
6628 Use char because int might match the return type of a GCC
6629 builtin and then its argument prototype would still apply. */
6630 #ifdef __cplusplus
6631 extern "C"
6632 #endif
6633 char opendir ();
6635 main ()
6637 return opendir ();
6639 return 0;
6641 _ACEOF
6642 for ac_lib in '' x; do
6643 if test -z "$ac_lib"; then
6644 ac_res="none required"
6645 else
6646 ac_res=-l$ac_lib
6647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 ac_cv_search_opendir=$ac_res
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext
6654 if ${ac_cv_search_opendir+:} false; then :
6655 break
6657 done
6658 if ${ac_cv_search_opendir+:} false; then :
6660 else
6661 ac_cv_search_opendir=no
6663 rm conftest.$ac_ext
6664 LIBS=$ac_func_search_save_LIBS
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6667 $as_echo "$ac_cv_search_opendir" >&6; }
6668 ac_res=$ac_cv_search_opendir
6669 if test "$ac_res" != no; then :
6670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6677 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6678 if ${ac_cv_header_stat_broken+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 #include <sys/types.h>
6684 #include <sys/stat.h>
6686 #if defined S_ISBLK && defined S_IFDIR
6687 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6688 #endif
6690 #if defined S_ISBLK && defined S_IFCHR
6691 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6692 #endif
6694 #if defined S_ISLNK && defined S_IFREG
6695 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6696 #endif
6698 #if defined S_ISSOCK && defined S_IFREG
6699 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6700 #endif
6702 _ACEOF
6703 if ac_fn_c_try_compile "$LINENO"; then :
6704 ac_cv_header_stat_broken=no
6705 else
6706 ac_cv_header_stat_broken=yes
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6711 $as_echo "$ac_cv_header_stat_broken" >&6; }
6712 if test $ac_cv_header_stat_broken = yes; then
6714 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6719 $as_echo_n "checking for ANSI C header files... " >&6; }
6720 if ${ac_cv_header_stdc+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 #include <stdlib.h>
6726 #include <stdarg.h>
6727 #include <string.h>
6728 #include <float.h>
6731 main ()
6735 return 0;
6737 _ACEOF
6738 if ac_fn_c_try_compile "$LINENO"; then :
6739 ac_cv_header_stdc=yes
6740 else
6741 ac_cv_header_stdc=no
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 if test $ac_cv_header_stdc = yes; then
6746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <string.h>
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 $EGREP "memchr" >/dev/null 2>&1; then :
6755 else
6756 ac_cv_header_stdc=no
6758 rm -f conftest*
6762 if test $ac_cv_header_stdc = yes; then
6763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 #include <stdlib.h>
6768 _ACEOF
6769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6770 $EGREP "free" >/dev/null 2>&1; then :
6772 else
6773 ac_cv_header_stdc=no
6775 rm -f conftest*
6779 if test $ac_cv_header_stdc = yes; then
6780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6781 if test "$cross_compiling" = yes; then :
6783 else
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <ctype.h>
6787 #include <stdlib.h>
6788 #if ((' ' & 0x0FF) == 0x020)
6789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6791 #else
6792 # define ISLOWER(c) \
6793 (('a' <= (c) && (c) <= 'i') \
6794 || ('j' <= (c) && (c) <= 'r') \
6795 || ('s' <= (c) && (c) <= 'z'))
6796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6797 #endif
6799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6801 main ()
6803 int i;
6804 for (i = 0; i < 256; i++)
6805 if (XOR (islower (i), ISLOWER (i))
6806 || toupper (i) != TOUPPER (i))
6807 return 2;
6808 return 0;
6810 _ACEOF
6811 if ac_fn_c_try_run "$LINENO"; then :
6813 else
6814 ac_cv_header_stdc=no
6816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6817 conftest.$ac_objext conftest.beam conftest.$ac_ext
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6823 $as_echo "$ac_cv_header_stdc" >&6; }
6824 if test $ac_cv_header_stdc = yes; then
6826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6831 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6832 if ${ac_cv_header_sys_wait_h+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #include <sys/types.h>
6838 #include <sys/wait.h>
6839 #ifndef WEXITSTATUS
6840 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6841 #endif
6842 #ifndef WIFEXITED
6843 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6844 #endif
6847 main ()
6849 int s;
6850 wait (&s);
6851 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6853 return 0;
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 ac_cv_header_sys_wait_h=yes
6858 else
6859 ac_cv_header_sys_wait_h=no
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6864 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6865 if test $ac_cv_header_sys_wait_h = yes; then
6867 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6872 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6873 if ${ac_cv_header_time+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 #include <sys/types.h>
6879 #include <sys/time.h>
6880 #include <time.h>
6883 main ()
6885 if ((struct tm *) 0)
6886 return 0;
6888 return 0;
6890 _ACEOF
6891 if ac_fn_c_try_compile "$LINENO"; then :
6892 ac_cv_header_time=yes
6893 else
6894 ac_cv_header_time=no
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6899 $as_echo "$ac_cv_header_time" >&6; }
6900 if test $ac_cv_header_time = yes; then
6902 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6906 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6907 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6909 cat >>confdefs.h <<_ACEOF
6910 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6911 _ACEOF
6914 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6919 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6920 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6922 cat >>confdefs.h <<_ACEOF
6923 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6924 _ACEOF
6927 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6929 else
6930 case " $LIBOBJS " in
6931 *" fileblocks.$ac_objext "* ) ;;
6932 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6934 esac
6939 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6940 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_STRUCT_STAT_ST_RDEV 1
6944 _ACEOF
6947 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6953 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6954 if ${ac_cv_struct_tm+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959 #include <sys/types.h>
6960 #include <time.h>
6963 main ()
6965 struct tm tm;
6966 int *p = &tm.tm_sec;
6967 return !p;
6969 return 0;
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 ac_cv_struct_tm=time.h
6974 else
6975 ac_cv_struct_tm=sys/time.h
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6980 $as_echo "$ac_cv_struct_tm" >&6; }
6981 if test $ac_cv_struct_tm = sys/time.h; then
6983 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6987 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6988 #include <$ac_cv_struct_tm>
6991 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_STRUCT_TM_TM_ZONE 1
6995 _ACEOF
7000 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7002 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7004 else
7005 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7007 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7008 ac_have_decl=1
7009 else
7010 ac_have_decl=0
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_DECL_TZNAME $ac_have_decl
7015 _ACEOF
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7018 $as_echo_n "checking for tzname... " >&6; }
7019 if ${ac_cv_var_tzname+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <time.h>
7025 #if !HAVE_DECL_TZNAME
7026 extern char *tzname[];
7027 #endif
7030 main ()
7032 return tzname[0][0];
7034 return 0;
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 ac_cv_var_tzname=yes
7039 else
7040 ac_cv_var_tzname=no
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7046 $as_echo "$ac_cv_var_tzname" >&6; }
7047 if test $ac_cv_var_tzname = yes; then
7049 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7054 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7055 if test "x$ac_cv_type_off_t" = xyes; then :
7057 else
7059 cat >>confdefs.h <<_ACEOF
7060 #define off_t long int
7061 _ACEOF
7065 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7066 if test "x$ac_cv_type_pid_t" = xyes; then :
7068 else
7070 cat >>confdefs.h <<_ACEOF
7071 #define pid_t int
7072 _ACEOF
7076 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7077 if test "x$ac_cv_type_size_t" = xyes; then :
7079 else
7081 cat >>confdefs.h <<_ACEOF
7082 #define size_t unsigned int
7083 _ACEOF
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7088 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7089 if ${ac_cv_type_uid_t+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 #include <sys/types.h>
7096 _ACEOF
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "uid_t" >/dev/null 2>&1; then :
7099 ac_cv_type_uid_t=yes
7100 else
7101 ac_cv_type_uid_t=no
7103 rm -f conftest*
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7107 $as_echo "$ac_cv_type_uid_t" >&6; }
7108 if test $ac_cv_type_uid_t = no; then
7110 $as_echo "#define uid_t int" >>confdefs.h
7113 $as_echo "#define gid_t int" >>confdefs.h
7118 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7119 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7121 cat >>confdefs.h <<_ACEOF
7122 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7123 _ACEOF
7129 # Look for some functions
7130 for ac_func in getpagesize kqueue statfs statvfs \
7131 clone kse_create rfork_thread thr_create sa_register \
7132 getcontext makecontext setcontext sigaltstack swapcontext
7133 do :
7134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7137 cat >>confdefs.h <<_ACEOF
7138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7139 _ACEOF
7142 done
7148 for ac_header in $ac_header_list
7149 do :
7150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7153 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7154 cat >>confdefs.h <<_ACEOF
7155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7156 _ACEOF
7160 done
7169 for ac_func in getpagesize
7170 do :
7171 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7172 if test "x$ac_cv_func_getpagesize" = xyes; then :
7173 cat >>confdefs.h <<_ACEOF
7174 #define HAVE_GETPAGESIZE 1
7175 _ACEOF
7178 done
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7181 $as_echo_n "checking for working mmap... " >&6; }
7182 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test "$cross_compiling" = yes; then :
7186 ac_cv_func_mmap_fixed_mapped=no
7187 else
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 /* malloc might have been renamed as rpl_malloc. */
7192 #undef malloc
7194 /* Thanks to Mike Haertel and Jim Avera for this test.
7195 Here is a matrix of mmap possibilities:
7196 mmap private not fixed
7197 mmap private fixed at somewhere currently unmapped
7198 mmap private fixed at somewhere already mapped
7199 mmap shared not fixed
7200 mmap shared fixed at somewhere currently unmapped
7201 mmap shared fixed at somewhere already mapped
7202 For private mappings, we should verify that changes cannot be read()
7203 back from the file, nor mmap's back from the file at a different
7204 address. (There have been systems where private was not correctly
7205 implemented like the infamous i386 svr4.0, and systems where the
7206 VM page cache was not coherent with the file system buffer cache
7207 like early versions of FreeBSD and possibly contemporary NetBSD.)
7208 For shared mappings, we should conversely verify that changes get
7209 propagated back to all the places they're supposed to be.
7211 Grep wants private fixed already mapped.
7212 The main things grep needs to know about mmap are:
7213 * does it exist and is it safe to write into the mmap'd area
7214 * how to use it (BSD variants) */
7216 #include <fcntl.h>
7217 #include <sys/mman.h>
7219 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7220 char *malloc ();
7221 #endif
7223 /* This mess was copied from the GNU getpagesize.h. */
7224 #ifndef HAVE_GETPAGESIZE
7225 # ifdef _SC_PAGESIZE
7226 # define getpagesize() sysconf(_SC_PAGESIZE)
7227 # else /* no _SC_PAGESIZE */
7228 # ifdef HAVE_SYS_PARAM_H
7229 # include <sys/param.h>
7230 # ifdef EXEC_PAGESIZE
7231 # define getpagesize() EXEC_PAGESIZE
7232 # else /* no EXEC_PAGESIZE */
7233 # ifdef NBPG
7234 # define getpagesize() NBPG * CLSIZE
7235 # ifndef CLSIZE
7236 # define CLSIZE 1
7237 # endif /* no CLSIZE */
7238 # else /* no NBPG */
7239 # ifdef NBPC
7240 # define getpagesize() NBPC
7241 # else /* no NBPC */
7242 # ifdef PAGESIZE
7243 # define getpagesize() PAGESIZE
7244 # endif /* PAGESIZE */
7245 # endif /* no NBPC */
7246 # endif /* no NBPG */
7247 # endif /* no EXEC_PAGESIZE */
7248 # else /* no HAVE_SYS_PARAM_H */
7249 # define getpagesize() 8192 /* punt totally */
7250 # endif /* no HAVE_SYS_PARAM_H */
7251 # endif /* no _SC_PAGESIZE */
7253 #endif /* no HAVE_GETPAGESIZE */
7256 main ()
7258 char *data, *data2, *data3;
7259 const char *cdata2;
7260 int i, pagesize;
7261 int fd, fd2;
7263 pagesize = getpagesize ();
7265 /* First, make a file with some known garbage in it. */
7266 data = (char *) malloc (pagesize);
7267 if (!data)
7268 return 1;
7269 for (i = 0; i < pagesize; ++i)
7270 *(data + i) = rand ();
7271 umask (0);
7272 fd = creat ("conftest.mmap", 0600);
7273 if (fd < 0)
7274 return 2;
7275 if (write (fd, data, pagesize) != pagesize)
7276 return 3;
7277 close (fd);
7279 /* Next, check that the tail of a page is zero-filled. File must have
7280 non-zero length, otherwise we risk SIGBUS for entire page. */
7281 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7282 if (fd2 < 0)
7283 return 4;
7284 cdata2 = "";
7285 if (write (fd2, cdata2, 1) != 1)
7286 return 5;
7287 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7288 if (data2 == MAP_FAILED)
7289 return 6;
7290 for (i = 0; i < pagesize; ++i)
7291 if (*(data2 + i))
7292 return 7;
7293 close (fd2);
7294 if (munmap (data2, pagesize))
7295 return 8;
7297 /* Next, try to mmap the file at a fixed address which already has
7298 something else allocated at it. If we can, also make sure that
7299 we see the same garbage. */
7300 fd = open ("conftest.mmap", O_RDWR);
7301 if (fd < 0)
7302 return 9;
7303 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7305 return 10;
7306 for (i = 0; i < pagesize; ++i)
7307 if (*(data + i) != *(data2 + i))
7308 return 11;
7310 /* Finally, make sure that changes to the mapped area do not
7311 percolate back to the file as seen by read(). (This is a bug on
7312 some variants of i386 svr4.0.) */
7313 for (i = 0; i < pagesize; ++i)
7314 *(data2 + i) = *(data2 + i) + 1;
7315 data3 = (char *) malloc (pagesize);
7316 if (!data3)
7317 return 12;
7318 if (read (fd, data3, pagesize) != pagesize)
7319 return 13;
7320 for (i = 0; i < pagesize; ++i)
7321 if (*(data + i) != *(data3 + i))
7322 return 14;
7323 close (fd);
7324 return 0;
7326 _ACEOF
7327 if ac_fn_c_try_run "$LINENO"; then :
7328 ac_cv_func_mmap_fixed_mapped=yes
7329 else
7330 ac_cv_func_mmap_fixed_mapped=no
7332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7333 conftest.$ac_objext conftest.beam conftest.$ac_ext
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7338 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7341 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7344 rm -f conftest.mmap conftest.txt
7347 #-----------------------------------------------------------------------------
7350 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7351 # it switched on by default, and we use the host compiler, so it compiles AROS
7352 # code with this enabled resulting in link failures as we don't have support
7353 # for it.
7355 # We use two methods to disable it. For the host compiler (used to compile
7356 # some hosted modules), we test to see if the compiler supports stack
7357 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7358 # work on all platforms.
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7362 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7363 save_cflags="$CFLAGS"
7364 CFLAGS="$CFLAGS -fno-stack-protector"
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7369 main ()
7373 return 0;
7375 _ACEOF
7376 if ac_fn_c_try_compile "$LINENO"; then :
7377 use_no_stack_protector="yes"
7378 else
7379 use_no_stack_protector="no"
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7383 $as_echo "$use_no_stack_protector" >&6; }
7384 if test "x-$use_no_stack_protector" = "x-yes" ; then
7385 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7387 CFLAGS="$save_cflags"
7389 #-----------------------------------------------------------------------------
7391 # Disable pointer-signedness warnings if the compiler recognises the option
7392 # (this only works for the host compiler at the moment)
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7395 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7396 save_cflags="$CFLAGS"
7397 CFLAGS="$CFLAGS -Wno-pointer-sign"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7402 main ()
7406 return 0;
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410 use_no_sign_warning="yes"
7411 else
7412 use_no_sign_warning="no"
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7416 $as_echo "$use_no_sign_warning" >&6; }
7417 if test "x-$use_no_sign_warning" = "x-yes" ; then
7418 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7420 CFLAGS="$save_cflags"
7422 #-----------------------------------------------------------------------------
7424 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7427 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7428 save_cflags="$CFLAGS"
7429 CFLAGS="$CFLAGS -fgnu89-inline"
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7434 main ()
7438 return 0;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 use_gnu89_inline="yes"
7443 else
7444 use_gnu89_inline="no"
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7448 $as_echo "$use_gnu89_inline" >&6; }
7449 if test "x-$use_gnu89_inline" = "x-yes" ; then
7450 gnu89_inline="-fgnu89-inline"
7452 CFLAGS="$save_cflags"
7455 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7456 # On GCC >= 4.0 -iquote should be used
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7459 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7460 CFLAGS="$CFLAGS -iquote."
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7465 main ()
7469 return 0;
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 has_iquote="yes"
7474 else
7475 has_iquote="no"
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7479 $as_echo "$has_iquote" >&6; }
7480 if test "x-$has_iquote" = "x-yes" ; then
7481 host_cflags_iquote=-iquote
7482 host_cflags_iquote_end=
7483 else
7484 host_cflags_iquote=-I
7485 host_cflags_iquote_end=-I-
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7489 $as_echo "$as_me: Performing target configuration..." >&6;}
7492 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7494 toolchain_needs_sysroot=no
7496 aros_warn_flags=
7497 aros_config_cflags=
7498 aros_config_cxxflags=
7499 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7500 aros_config_ldflags=""
7502 aros_shared_default=yes
7504 aros_shared_cflags="-fPIC"
7505 aros_shared_aflags=""
7506 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7507 aros_kernel_ldflags="-Wl,-rpath,./lib"
7509 aros_kernel_ar_flags="cr"
7510 aros_target_ar_flags="cr"
7511 aros_target_nm_flags="-C -ul"
7512 aros_target_strip_flags="--strip-unneeded -R.comment"
7514 aros_compiler_libs=
7515 aros_arch_libs=
7517 aros_target_genmap="-Wl,-Map -Xlinker"
7519 # Native flavour stuff
7520 aros_serial_debug="0"
7522 # Palm native flavour stuff
7523 aros_palm_debug_hack="0"
7525 # Unix flavour stuff
7526 aros_nesting_supervisor="0"
7528 # Collect-aros stuff: "-ius" to ignore undefined symbols
7529 ignore_undefined_symbols=""
7531 # Check for X11 by default
7532 need_x11="auto"
7534 host_x_gfx=no
7535 host_sdl_gfx=no
7536 host_android_gfx=no
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7540 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7542 # Check whether --with-toolchain was given.
7543 if test "${with_toolchain+set}" = set; then :
7544 withval=$with_toolchain; aros_toolchain="$withval"
7545 else
7546 aros_toolchain="gnu"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7550 $as_echo "$aros_toolchain" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7554 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7555 # Check whether --enable-lto was given.
7556 if test "${enable_lto+set}" = set; then :
7557 enableval=$enable_lto; aros_config_lto="$enableval"
7558 else
7559 aros_config_lto="no"
7562 if test "$aros_config_lto" != "no"; then
7563 aros_config_lto="yes"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7566 $as_echo "$aros_config_lto" >&6; }
7568 use_ld_wrapper=yes
7570 case "$aros_toolchain" in
7571 *llvm*)
7572 # toolchain_needs_sysroot=yes
7573 toolchain_c_compiler="clang"
7574 toolchain_cxx_compiler="clang++"
7575 toolchain_cpp_preprocessor="clang -E"
7576 toolchain_ld="ld.lld"
7577 aros_ld="ld"
7578 toolchain_as="llvm-as"
7579 toolchain_ar="llvm-ar"
7580 toolchain_ranlib="llvm-ranlib"
7581 toolchain_nm="llvm-nm"
7582 toolchain_strip="true"
7583 toolchain_objcopy="llvm-objcopy"
7584 toolchain_objdump="llvm-objdump"
7586 *gnu*)
7587 toolchain_c_compiler="gcc"
7588 toolchain_cxx_compiler="g++"
7589 toolchain_cpp_preprocessor="gcc -E"
7590 toolchain_as="as"
7591 aros_ld="ld"
7592 if test "$aros_config_lto" != "yes"; then
7593 toolchain_ld="ld"
7594 toolchain_ar="ar"
7595 toolchain_ranlib="ranlib"
7596 toolchain_nm="nm"
7597 else
7598 toolchain_ld="ld.bfd"
7599 toolchain_ar="gcc-ar"
7600 toolchain_ranlib="gcc-ranlib"
7601 toolchain_nm="gcc-nm"
7603 toolchain_strip="strip"
7604 toolchain_objcopy="objcopy"
7605 toolchain_objdump="objdump"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7609 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7610 toolchain_c_compiler="cc"
7611 toolchain_cxx_compiler="c++"
7612 toolchain_cpp_preprocessor="cpp"
7613 toolchain_ld="ld"
7614 aros_ld="ld"
7615 toolchain_as="as"
7616 toolchain_ar="ar"
7617 toolchain_ranlib="ranlib"
7618 toolchain_nm="nm"
7619 toolchain_strip="strip"
7620 toolchain_objcopy="objcopy"
7621 toolchain_objdump="objdump"
7623 esac
7625 #-----------------------------------------------------------------------------
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7628 $as_echo_n "checking which type of build to do... " >&6; }
7629 # Check whether --enable-build_type was given.
7630 if test "${enable_build_type+set}" = set; then :
7631 enableval=$enable_build_type; build_type=$enableval
7632 else
7633 build_type="personal"
7637 if test "$build_type" = "nightly"; then
7638 build_type_string="NIGHTLY"
7639 elif test "$build_type" = "snapshot"; then
7640 build_type_string="SNAPSHOT"
7641 elif test "$build_type" = "milestone"; then
7642 build_type_string="MILESTONE"
7643 elif test "$build_type" = "release"; then
7644 build_type_string="RELEASE"
7645 else
7646 build_type_string="PERSONAL"
7647 build_type="personal"
7650 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7651 aros_config_cxxflags="$aros_config_cxxflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7654 $as_echo "$build_type" >&6; }
7656 #-----------------------------------------------------------------------------
7657 all_debug_types="messages stack modules mungwall symbols"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7660 $as_echo_n "checking which debug types to enable... " >&6; }
7661 # Check whether --enable-debug was given.
7662 if test "${enable_debug+set}" = set; then :
7663 enableval=$enable_debug; debug="$enableval"
7664 else
7665 debug=""
7669 if test "$debug" = "" -o "$debug" = "no"; then
7670 debug="none"
7671 elif test "$debug" = "yes"; then
7672 debug="all"
7675 if test "$debug" = "all" ; then
7676 debug="messages stack modules symbols"
7677 for d in $all_debug_types; do
7678 export aros_${d}_debug="1"
7679 done
7680 else
7681 for d in $all_debug_types; do
7682 export aros_${d}_debug="0"
7683 done
7686 if test "$debug" != "none"; then
7687 debug=`echo $debug | sed s/,/\ /g`
7688 for d in $debug; do
7689 found="0"
7690 for d2 in $all_debug_types; do
7691 if test "$d2" = "$d"; then
7692 found="1"
7693 break
7695 done
7696 if test "$found" = "0"; then
7697 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7699 export aros_${d}_debug="1"
7700 done
7701 aros_debug="yes"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7704 $as_echo "$debug" >&6; }
7706 if test "$aros_messages_debug" = "1"; then
7707 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7708 else
7709 aros_messages_debug=""
7711 if test "$aros_symbols_debug" = "1"; then
7712 aros_symbols_debug="-g"
7713 else
7714 aros_symbols_debug=""
7717 # These are the flags to pass when compiling debugged programs
7718 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7719 aros_debug_aflags=""
7720 aros_debug_ldflags="$aros_symbols_debug"
7722 #-----------------------------------------------------------------------------
7723 # Checking for distcc and ccache.
7725 # Always apply the transforms in this particular order. Basically you should
7726 # always run 'ccache distcc compiler' in that order for the best performance.
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7729 $as_echo_n "checking whether to enable distcc... " >&6; }
7730 # Check whether --enable-distcc was given.
7731 if test "${enable_distcc+set}" = set; then :
7732 enableval=$enable_distcc; distcc="$enableval"
7733 else
7734 distcc="no"
7737 if test "$distcc" != "" -a "$distcc" != "no"; then
7738 # AC_CHECK_PROG will print out the result in this case
7739 # Extract the first word of "distcc", so it can be a program name with args.
7740 set dummy distcc; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_path_DISTCC+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 case $DISTCC in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7764 IFS=$as_save_IFS
7766 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7768 esac
7770 DISTCC=$ac_cv_path_DISTCC
7771 if test -n "$DISTCC"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7773 $as_echo "$DISTCC" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7786 $as_echo_n "checking whether to enable ccache... " >&6; }
7787 # Check whether --enable-ccache was given.
7788 if test "${enable_ccache+set}" = set; then :
7789 enableval=$enable_ccache; ccache="$enableval"
7790 else
7791 ccache="no"
7794 if test "$ccache" != "" -a "$ccache" != "no"; then
7795 # AC_CHECK_PROG will print out the result in this case
7796 # Extract the first word of "ccache", so it can be a program name with args.
7797 set dummy ccache; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_CCACHE+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$CCACHE"; then
7804 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_CCACHE="ccache"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7817 done
7818 done
7819 IFS=$as_save_IFS
7823 CCACHE=$ac_cv_prog_CCACHE
7824 if test -n "$CCACHE"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7826 $as_echo "$CCACHE" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7833 else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7838 #-----------------------------------------------------------------------------
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7840 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7842 # Check whether --with-kernel-gcc-version was given.
7843 if test "${with_kernel_gcc_version+set}" = set; then :
7844 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7845 else
7846 kernel_tool_version=""
7849 if test "$kernel_tool_version" != "" ; then
7850 msg_result=$kernel_tool_version
7851 else
7852 msg_result="default"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7855 $as_echo "$msg_result" >&6; }
7857 #-----------------------------------------------------------------------------
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7859 $as_echo_n "checking what optimization flags to use... " >&6; }
7861 # Check whether --with-optimization was given.
7862 if test "${with_optimization+set}" = set; then :
7863 withval=$with_optimization; optimization="$withval"
7864 else
7865 optimization="unknown"
7868 if test "$optimization" = "unknown"; then
7869 if test "$debug" != "none"; then
7870 optimization="-O0"
7871 else
7872 optimization="-O2"
7875 aros_optimization_cflags="$optimization"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7877 $as_echo "$optimization" >&6; }
7879 paranoia_default=yes
7880 #-----------------------------------------------------------------------------
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7882 $as_echo_n "checking which paranoia flags to use... " >&6; }
7884 # Check whether --with-paranoia was given.
7885 if test "${with_paranoia+set}" = set; then :
7886 withval=$with_paranoia; paranoia_flags="$withval"
7887 else
7888 paranoia_flags="$paranoia_default"
7891 if test "$paranoia_flags" = "no"; then
7892 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7893 msg_result="none"
7894 else
7895 if test "$paranoia_flags" = "yes"; then
7896 paranoia_flags="-Wall -Werror"
7898 msg_result="$paranoia_flags"
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7901 $as_echo "$msg_result" >&6; }
7902 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7904 #-----------------------------------------------------------------------------
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7906 $as_echo_n "checking what target variant to enable... " >&6; }
7907 # Check whether --enable-target_variant was given.
7908 if test "${enable_target_variant+set}" = set; then :
7909 enableval=$enable_target_variant; target_variant=$enableval
7910 else
7911 target_variant=""
7914 if test "$target_variant" = ""; then
7915 aros_target_variant=""
7916 aros_target_suffix=""
7917 enableval="none"
7918 else
7919 aros_target_variant="$target_variant"
7920 aros_target_suffix="-$target_variant"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7923 $as_echo "$enableval" >&6; }
7925 #-----------------------------------------------------------------------------
7926 # Target-specific defaults. You can override then on a per-target basis.
7928 # Bootloader name. Currently used by PC target.
7929 target_bootloader="none"
7930 PLATFORM_EXECSMP=
7931 ENABLE_EXECSMP=
7933 #-----------------------------------------------------------------------------
7934 # Additional options for some specific targets
7936 case "$aros_target_variant" in
7937 ios)
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7939 $as_echo_n "checking XCode path... " >&6; }
7941 # Check whether --with-xcode was given.
7942 if test "${with_xcode+set}" = set; then :
7943 withval=$with_xcode; aros_xcode_path="$withval"
7944 else
7945 aros_xcode_path="/Developer"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7949 $as_echo "$aros_xcode_path" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7952 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7954 # Check whether --with-sdk-version was given.
7955 if test "${with_sdk_version+set}" = set; then :
7956 withval=$with_sdk_version; aros_sdk_version="$withval"
7957 else
7958 aros_sdk_version="4.1"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7962 $as_echo "$aros_sdk_version" >&6; }
7966 "android")
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7968 $as_echo_n "checking Android SDK path... " >&6; }
7970 # Check whether --with-sdk was given.
7971 if test "${with_sdk+set}" = set; then :
7972 withval=$with_sdk; aros_android_sdk="$withval"
7973 else
7974 aros_android_sdk=$default_android_sdk
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7978 $as_echo "$aros_android_sdk" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7981 $as_echo_n "checking Android NDK path... " >&6; }
7983 # Check whether --with-ndk was given.
7984 if test "${with_ndk+set}" = set; then :
7985 withval=$with_ndk; aros_android_ndk="$withval"
7986 else
7987 aros_android_ndk="none"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7991 $as_echo "$aros_android_ndk" >&6; }
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7994 $as_echo_n "checking what Android SDK version to use... " >&6; }
7996 # Check whether --with-sdk-version was given.
7997 if test "${with_sdk_version+set}" = set; then :
7998 withval=$with_sdk_version; aros_sdk_version="$withval"
7999 else
8000 aros_sdk_version="12"
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8004 $as_echo "$aros_sdk_version" >&6; }
8006 aros_android_level=android-$aros_sdk_version
8007 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8008 echo "Platform $aros_android_level is not installed in your SDK"
8009 echo "Use --with-sdk-version=<API level number> to select another platform version"
8010 echo "You can check what plaform versions are installed in your SDK"
8011 echo "by examining contents of $aros_android_sdk/platforms directory"
8012 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8015 export PATH="$aros_android_sdk/tools:$PATH"
8016 # Extract the first word of "$android_tool", so it can be a program name with args.
8017 set dummy $android_tool; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_path_android_tool+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 case $android_tool in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8041 IFS=$as_save_IFS
8044 esac
8046 android_tool=$ac_cv_path_android_tool
8047 if test -n "$android_tool"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8049 $as_echo "$android_tool" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8056 req_avail=yes
8057 if test "$android_tool" = ""; then
8058 req_avail=no
8060 if test "$android_tool" = "no"; then
8061 req_avail=no
8063 if test "$req_avail" = "no"; then
8064 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8067 if test "$aros_android_ndk" != "none"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8069 $as_echo_n "checking what Android NDK version to use... " >&6; }
8071 # Check whether --with-ndk-version was given.
8072 if test "${with_ndk_version+set}" = set; then :
8073 withval=$with_ndk_version; aros_ndk_version="$withval"
8074 else
8075 aros_ndk_version="9"
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8079 $as_echo "$aros_ndk_version" >&6; }
8082 # Extract the first word of "ant", so it can be a program name with args.
8083 set dummy ant; ac_word=$2
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085 $as_echo_n "checking for $ac_word... " >&6; }
8086 if ${ac_cv_path_ant+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 case $ant in
8090 [\\/]* | ?:[\\/]*)
8091 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8105 done
8106 done
8107 IFS=$as_save_IFS
8110 esac
8112 ant=$ac_cv_path_ant
8113 if test -n "$ant"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8115 $as_echo "$ant" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8122 if test "$ant" = ""; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8124 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8128 $as_echo_n "checking Build debug or release apk... " >&6; }
8130 # Check whether --with-apk-version was given.
8131 if test "${with_apk_version+set}" = set; then :
8132 withval=$with_apk_version; aros_android_antapk=$withval
8133 else
8134 aros_android_antapk=release
8137 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8138 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8141 $as_echo "$aros_android_antapk" >&6; }
8143 if test "$host_os" = "mingw32"; then
8144 android_tool="cmd //c $android_tool"
8147 need_dlopen="no"
8150 esac
8152 #-----------------------------------------------------------------------------
8153 # External toolchains
8154 kernel_tool_prefix="none"
8155 aros_tool_prefix="none"
8156 elf_tool_prefix="${target_cpu}-elf-"
8158 # This is the target configuration switch.
8159 case "$target_os" in
8160 linux*)
8161 aros_target_arch="linux"
8162 aros_target_family="unix"
8163 case "$target_cpu" in
8164 *m68k*)
8165 aros_target_cpu="m68k"
8166 aros_object_format="m68kelf"
8167 aros_flavour="emulcompat"
8168 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8169 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8170 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8171 gcc_target_cpu="mc68000"
8173 *i?86*)
8174 aros_target_cpu="i386"
8175 aros_object_format="elf_i386"
8176 aros_flavour="emulation"
8177 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8178 aros_kernel_ldflags="-Wl,-melf_i386"
8179 aros_nominal_depth=8
8180 gcc_target_cpu="i386"
8181 pci_hidd_target="hidd-pci-linux"
8182 android_tool_dir_prefix="x86"
8183 android_tool_prefix="i686-android-linux"
8184 android_ndk_arch="x86"
8186 *x86_64*)
8187 aros_target_cpu="x86_64"
8188 aros_object_format="elf_x86_64"
8189 aros_flavour="emulation"
8190 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8191 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8192 aros_config_cxxflags="$aros_config_cxxflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8193 aros_nominal_depth=8
8194 pci_hidd_target="hidd-pci-linux"
8196 *powerpc*)
8197 aros_target_cpu="ppc"
8198 aros_object_format="elf32ppc"
8199 aros_flavour="emulation"
8200 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8201 aros_nominal_depth=8
8202 gcc_target_cpu="ppc"
8204 # TODO
8205 # Same as powerpc, but I need this for the nightly build to work again.
8206 # Actually, the nightly should be made working with powerpc target.
8207 # That just was too much work for the moment, another week or two.
8208 *ppc*)
8209 aros_target_cpu="ppc"
8210 aros_object_format="elf32ppc"
8211 aros_flavour="emulation"
8212 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8213 aros_nominal_depth=8
8214 gcc_target_cpu="ppc"
8216 *aarch64*)
8217 aros_target_cpu="aarch64"
8218 target_cpu="aarch64"
8219 aros_object_format="aarch64elf_aros"
8220 aros_flavour="emulation"
8221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8222 gcc_target_cpu="aarch64"
8223 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8224 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8225 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8226 aros_arch_libs="-laeabi"
8227 gcc_default_float_abi="hard"
8228 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8230 *armhf*)
8231 aros_target_cpu="arm"
8232 target_cpu="arm"
8233 aros_object_format="armelf_aros"
8234 aros_flavour="emulation"
8235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8236 gcc_target_cpu="arm"
8237 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8238 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8239 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8240 aros_arch_libs="-laeabi"
8241 gcc_default_float_abi="hard"
8242 android_tool_dir_prefix="arm-linux-androideabi"
8243 android_tool_prefix="arm-linux-androideabi"
8244 android_ndk_arch="arm"
8245 kernel_tool_prefix="arm-linux-gnueabihf-"
8247 *arm*)
8248 aros_target_cpu="arm"
8249 aros_object_format="armelf_aros"
8250 aros_flavour="emulation"
8251 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8252 gcc_target_cpu="arm"
8253 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8254 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8255 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8256 aros_arch_libs="-laeabi"
8257 android_tool_dir_prefix="arm-linux-androideabi"
8258 android_tool_prefix="arm-linux-androideabi"
8259 android_ndk_arch="arm"
8260 kernel_tool_prefix="arm-linux-gnueabi-"
8263 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8265 esac
8266 case "$aros_target_variant" in
8267 android)
8269 if test "$android_ndk_arch" = ""; then
8270 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8273 aros_nominal_width=320
8274 aros_nominal_height=480
8275 if test "$aros_android_ndk" = "none"; then
8276 aros_kernel_cflags="-mandroid"
8277 aros_kernel_ldflags="-mandroid"
8278 CFLAGS="-mandroid"
8279 else
8280 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8281 kernel_tool_version=""
8282 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8283 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8284 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8285 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8286 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8288 need_x11=no
8289 host_android_gfx=yes
8290 # Disable implicit PIC mode
8291 aros_target_cflags="$aros_target_cflags -fno-pic"
8292 kernel_tool_prefix="$android_tool_prefix-"
8294 esac
8298 aros_target_arch="pc"
8299 aros_shared_default="no"
8300 target_bootloader="grub2"
8301 case "$target_cpu" in
8302 *i?86*)
8303 aros_target_cpu="i386"
8306 if test "$aros_object_format" = "" ; then
8307 aros_object_format="elf_i386"
8309 aros_flavour="standalone"
8310 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8311 aros_kernel_ldflags="-Wl,-melf_i386"
8312 aros_nominal_width=640
8313 aros_nominal_height=480
8314 gcc_target_cpu="i386"
8316 *x86_64*)
8317 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8318 aros_target_cpu="x86_64"
8319 aros_serial_debug=1
8320 if test "$aros_object_format" = "" ; then
8321 aros_object_format="elf_x86_64"
8323 aros_flavour="standalone"
8324 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8325 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8326 aros_config_cxxflags="$aros_config_cxxflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8327 aros_kernel_ldflags=""
8328 aros_nominal_width=640
8329 aros_nominal_height=480
8330 case "$aros_target_variant" in
8331 smp)
8332 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8334 esac
8337 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8339 esac
8342 prep)
8343 aros_target_arch="prep"
8344 aros_shared_default="no"
8345 aros_target_cpu="ppc"
8346 aros_object_format="elf32ppc"
8347 aros_flavour="ppcnative"
8348 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8349 aros_kernel_ldflags=""
8350 aros_nominal_width=640
8351 aros_nominal_height=480
8352 gcc_target_cpu="ppc"
8355 freebsd*)
8356 aros_target_arch="freebsd"
8357 aros_target_family="unix"
8358 aros_target_cpu="i386"
8359 aros_flavour="emulation"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8361 gcc_target_cpu="i386"
8363 aros_target_strip_flags="-x"
8366 darwin*)
8367 aros_target_arch="darwin"
8368 aros_target_family="unix"
8369 aros_flavour="emulation"
8370 case "$target_cpu" in
8371 *i?86*)
8372 aros_ios_platform="iPhoneSimulator"
8373 aros_target_cpu="i386"
8374 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8375 aros_kernel_ldflags=""
8376 aros_macosx_version="10.4"
8377 aros_nominal_depth=8
8378 gcc_target_cpu="i386"
8379 aros_object_format="elf_i386"
8380 aros_kernel_ar_flags="-cr"
8381 aros_target_strip_flags="-x"
8382 kernel_tool_flags="-m32"
8384 *x86_64*)
8385 aros_target_cpu="x86_64"
8386 aros_object_format="elf_x86_64"
8387 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8388 aros_macosx_version="10.6"
8389 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8390 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8391 aros_kernel_cflags="-m64"
8392 aros_kernel_ldflags="-m64"
8393 aros_target_cflags="-mcmodel=large"
8394 aros_nominal_depth=8
8395 aros_kernel_ar="ar"
8396 aros_kernel_ar_flags="-cr"
8397 aros_kernel_ld="ld"
8398 aros_kernel_as="as"
8399 aros_kernel_ranlib="ranlib"
8400 aros_kernel_nm="nm"
8401 aros_kernel_strip="strip"
8402 kernel_tool_prefix="i686-apple-darwin10-"
8404 *ppc*)
8405 aros_target_cpu="ppc"
8406 aros_object_format="elf32ppc"
8407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8408 aros_kernel_ldflags=""
8409 aros_macosx_version="10.0"
8410 aros_nominal_depth=8
8411 gcc_target_cpu="ppc"
8412 aros_kernel_ar="ar"
8413 aros_kernel_ar_flags="-cr"
8414 aros_kernel_ld="ld -arch ppc"
8415 aros_kernel_as="as -arch ppc"
8416 aros_kernel_ranlib="ranlib -arch ppc"
8417 aros_kernel_nm="nm -arch ppc"
8418 aros_kernel_strip="strip -arch ppc"
8419 kernel_tool_prefix="powerpc-apple-darwin10-"
8421 *arm*)
8422 aros_ios_platform="iPhoneOS"
8423 aros_target_cpu="arm"
8424 aros_object_format="armelf_aros"
8425 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8426 aros_arch_libs="-laeabi"
8427 aros_nominal_depth=8
8428 gcc_target_cpu="arm"
8429 aros_kernel_ar="ar"
8430 aros_kernel_ar_flags="-cr"
8431 aros_kernel_ld="ld -arch arm"
8432 aros_kernel_ranlib="ranlib -arch arm"
8433 kernel_tool_prefix="arm-apple-darwin10-"
8434 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8437 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8439 esac
8440 case "$aros_target_variant" in
8441 ios)
8442 aros_ios_version="3.0"
8443 aros_nominal_width=320
8444 aros_nominal_height=480
8445 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8446 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8447 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8448 need_x11=no
8449 # This is here because it may depend on iOS or SDK version
8450 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8451 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8452 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8455 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8456 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8458 esac
8461 dragonfly*)
8462 aros_target_arch="dragonfly"
8463 aros_target_family="unix"
8464 aros_flavour="emulation"
8465 case "$target_cpu" in
8466 *i?86*)
8467 aros_target_cpu="i386"
8468 aros_object_format="elf_i386"
8469 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8471 *x86_64*)
8472 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8473 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8474 aros_target_cpu="x86_64"
8475 aros_object_format="elf_x86_64"
8476 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8479 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8481 esac
8484 netbsd*)
8485 aros_target_arch="netbsd"
8486 aros_target_family="unix"
8487 case "$target_cpu" in
8488 *m68k*)
8489 aros_target_cpu="m68k"
8490 aros_object_format="m68kelf"
8491 aros_flavour="emulcompat"
8492 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8493 gcc_target_cpu="mc68000"
8495 *i?86*)
8496 aros_target_cpu="i386"
8497 aros_object_format="elf_i386"
8498 aros_flavour="emulation"
8499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8500 aros_nominal_depth=8
8501 gcc_target_cpu="i386"
8504 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8506 esac
8507 aros_target_genmap="-Wl,-M -Xlinker >"
8508 aros_flavour="emulation"
8509 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8512 openbsd*)
8513 aros_target_arch="openbsd"
8514 aros_target_family="unix"
8515 case "$target_cpu" in
8516 *i?86*)
8517 aros_target_cpu="i386"
8518 aros_object_format="elf_i386"
8519 aros_flavour="emulation"
8520 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8521 gcc_target_cpu="i386"
8524 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8526 esac
8527 aros_target_genmap="-Wl,-M -Xlinker >"
8528 aros_target_nm_flags="-u"
8529 aros_flavour="emulation"
8532 solaris*)
8533 aros_target_arch="solaris"
8534 aros_target_family="unix"
8535 case "$target_cpu" in
8536 *i?86*)
8537 aros_target_cpu="i386"
8538 aros_object_format="elf_i386"
8539 aros_flavour="emulation"
8540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8541 aros_nominal_depth=8
8542 gcc_target_cpu="i386"
8544 *sparc*)
8545 aros_target_cpu="sparc"
8546 aros_object_format="elf_sparc"
8547 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8548 gcc_target_cpu="sparc"
8551 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8553 esac
8554 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8555 aros_config_cxxflags="$aros_config_cxxflags -D$aros_target_cpu"
8556 aros_flavour="emulation"
8559 morphos*)
8560 aros_target_arch="morphos"
8561 aros_shared_default="no"
8562 aros_target_cpu="ppc"
8563 aros_object_format="elf_ppc"
8564 aros_flavour="nativecompat"
8565 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8566 gcc_target_cpu="ppc"
8569 sam440)
8570 aros_target_arch="sam440"
8571 aros_shared_default="no"
8572 aros_target_cpu="ppc"
8573 aros_object_format="elf32ppc"
8574 aros_flavour="ppcnative"
8575 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8576 aros_kernel_ldflags=""
8577 aros_nominal_width=1024
8578 aros_nominal_height=768
8579 aros_nominal_depth=24
8580 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8581 aros_config_cxxflags="$aros_config_cxxflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8582 gcc_target_cpu="powerpc"
8585 efika)
8586 aros_target_arch="efika"
8587 aros_shared_default="no"
8588 aros_target_cpu="arm"
8589 aros_object_format="armelf_aros"
8590 aros_flavour="standalone"
8591 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8592 aros_kernel_ldflags=""
8593 aros_nominal_width=1024
8594 aros_nominal_height=600
8595 aros_arch_libs="-laeabi"
8596 gcc_default_cpu="armv7-a"
8597 gcc_default_fpu="vfpv3"
8598 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8599 aros_config_cxxflags="$aros_config_cxxflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8600 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8601 aros_optimization_cflags="$aros_optimization_cflags -Os"
8602 case "$target_cpu" in
8603 *armhf*)
8604 gcc_default_float_abi="hard"
8605 target_cpu=arm
8606 aros_target_cpu=arm
8608 *arm*)
8609 gcc_default_float_abi="softfp"
8612 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8614 esac
8617 chrp)
8618 aros_target_arch="chrp"
8619 aros_shared_default="no"
8620 aros_target_cpu="ppc"
8621 aros_object_format="elf32ppc"
8622 aros_flavour="ppcnative"
8623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8624 aros_kernel_ldflags=""
8625 aros_nominal_width=640
8626 aros_nominal_height=480
8627 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8628 aros_config_cxxflags="$aros_config_cxxflags -mno-toc -fno-asynchronous-unwind-tables"
8629 gcc_target_cpu="powerpc"
8630 case "$aros_target_variant" in
8631 efika)
8632 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8633 aros_config_cxxflags="$aros_config_cxxflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8635 esac
8638 r*pi)
8639 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8640 aros_flavour="standalone"
8641 aros_target_arch="raspi"
8643 aros_shared_default="no"
8645 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8647 case "$target_cpu" in
8648 *aarch64*)
8649 aros_target_cpu="aarch64"
8650 gcc_default_cpu="aarch64"
8651 aros_object_format="aarch64elf_aros"
8653 *armhf*)
8654 aros_target_cpu="arm"
8655 gcc_default_cpu="armv6zk"
8656 gcc_default_cpu_tune="arm1176jzf-s"
8657 aros_object_format="armelf_aros"
8658 aros_config_cflags="$aros_config_cflags -marm"
8659 aros_config_cxxflags="$aros_config_cxxflags -marm"
8660 aros_config_aflags="$aros_config_aflags -marm"
8661 aros_kernel_cflags="$aros_kernel_cflags -marm"
8662 aros_target_cflags="$aros_kernel_cflags -marm"
8663 aros_target_mkdep="$aros_target_mkdep -Darm"
8664 aros_arch_libs="-laeabi"
8666 *arm*)
8667 aros_target_cpu="arm"
8668 gcc_default_cpu="armv6zk"
8669 gcc_default_cpu_tune="arm1176jzf-s"
8670 aros_object_format="armelf_aros"
8671 aros_config_cflags="$aros_config_cflags -marm"
8672 aros_config_cxxflags="$aros_config_cxxflags -marm"
8673 aros_config_aflags="$aros_config_aflags -marm"
8674 aros_kernel_cflags="$aros_kernel_cflags -marm"
8675 aros_target_cflags="$aros_kernel_cflags -marm"
8676 aros_target_mkdep="$aros_target_mkdep -Darm"
8677 aros_arch_libs="-laeabi"
8680 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8682 esac
8684 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8685 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8686 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8687 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8688 aros_target_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8690 case "$aros_target_variant" in
8691 smp)
8692 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8694 esac
8697 stm32f7_discovery)
8698 aros_flavour="standalone"
8699 aros_target_arch="stm32f7_discovery"
8700 aros_target_cpu="arm"
8701 aros_target_cpu_mode="thumb2"
8702 aros_object_format="armelf_aros"
8703 aros_shared_default="no"
8705 # stm32f7 has DSP opcode support
8706 gcc_default_cpu="armv7e-m"
8707 # gcc_default_cpu="armv7-m"
8708 gcc_default_cpu_tune="cortex-m7"
8709 gcc_default_fpu="fpv4-sp-d16"
8710 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8711 # gcc_default_fpu="fpv5-sp-d16"
8712 gcc_default_float_abi="hard"
8714 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8717 amiga*)
8718 aros_target_arch="amiga"
8719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8720 aros_shared_default="no"
8722 case "$target_cpu" in
8723 *m68k*)
8724 # Check whether --enable-amigaos_compliance was given.
8725 if test "${enable_amigaos_compliance+set}" = set; then :
8726 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8729 aros_enable_mmu=no
8730 aros_target_cpu="m68k"
8731 aros_object_format="m68kelf"
8732 aros_flavour="standcompat"
8733 gcc_target_cpu="m68000"
8734 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8735 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8736 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8737 aros_optimization_cflags="$aros_optimization_cflags -Os"
8738 aros_config_aflags="$aros_config_aflags"
8739 aros_target_strip_flags="-R.comment --strip-debug"
8740 aros_nominal_width=640
8741 aros_nominal_height=256
8742 aros_nominal_depth=2
8744 *ppc*)
8745 aros_cpu="ppc"
8746 aros_flavour="native"
8747 gcc_target_cpu="ppc"
8750 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8752 esac
8755 mingw*)
8756 aros_target_arch="mingw32"
8757 aros_shared_default="no"
8758 aros_flavour="emulation"
8759 aros_shared_cflags=""
8760 need_crosstools="yes"
8761 need_dlopen="no"
8762 rescomp="windres"
8763 case "$target_cpu" in
8764 *i?86*)
8765 aros_target_cpu="i386"
8766 aros_object_format="elf_i386"
8767 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8768 aros_nominal_depth=8
8769 gcc_target_cpu="i386"
8771 kernel_tool_prefix="i386-mingw32-"
8773 *x86_64*)
8774 aros_target_cpu="x86_64"
8775 aros_object_format="elf_x86_64"
8776 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8777 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8778 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8779 aros_nominal_depth=8
8780 kernel_tool_prefix="x86_64-w64-mingw32-"
8782 *arm*)
8783 aros_target_cpu="arm"
8784 aros_object_format="armelf_aros"
8785 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8786 aros_arch_libs="-laeabi"
8787 aros_nominal_depth=8
8788 gcc_target_cpu="arm"
8789 gcc_default_float_abi="soft"
8790 kernel_tool_prefix="arm-mingw32ce-"
8791 aros_nominal_width=160
8792 aros_nominal_height=160
8795 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8797 esac
8798 if test $host_os = "cygwin"; then
8799 aros_kernel_cflags="-mno-cygwin"
8802 pp*)
8803 aros_target_arch="pp"
8804 aros_shared_default="no"
8805 case "$target_cpu" in
8806 *m68k*)
8807 aros_target_cpu="m68k"
8808 aros_object_format="m68kelf"
8809 aros_flavour="palmnative"
8810 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8811 aros_nominal_width=160
8812 aros_nominal_height=160
8813 aros_nominal_depth=1
8814 aros_target_ar_flags="cru"
8815 aros_compiler_libs="-lgcc1"
8816 aros_shared_default=no
8817 aros_shared_cflags="-fpic"
8818 aros_shared_aflags=""
8819 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8820 aros_kernel_ldflags="-Wl,-rpath,./lib"
8821 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8822 aros_debug_aflags=""
8823 aros_debug_ldflags="$aros_symbols_debug"
8824 aros_mungwall_debug="0"
8825 aros_modules_debug="0"
8826 gcc_target_cpu="mc68000"
8827 ignore_undefined_symbols="-ius"
8830 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8832 esac
8835 mac*)
8836 aros_target_arch="mac"
8837 aros_shared_default="no"
8838 case "$target_cpu" in
8839 *m68k*)
8840 aros_target_cpu="m68k"
8841 aros_object_format="m68kelf"
8842 aros_flavour="mac68knative"
8843 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8844 aros_nominal_width=512
8845 aros_nominal_height=384
8846 aros_nominal_depth=8
8847 aros_target_ar_flags="cru"
8848 aros_compiler_libs="-lgcc1"
8849 aros_shared_default=no
8850 aros_shared_cflags="-fpic"
8851 aros_shared_aflags=""
8852 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8853 aros_kernel_ldflags="-Wl,-rpath,./lib"
8854 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8855 aros_debug_aflags=""
8856 aros_debug_ldflags="$aros_symbols_debug"
8857 aros_mungwall_debug="0"
8858 aros_modules_debug="0"
8859 gcc_target_cpu="mc68000"
8860 ignore_undefined_symbols="-ius"
8863 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8865 esac
8869 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8871 esac
8873 #-----------------------------------------------------------------------------
8874 crosstools_guess="yes"
8875 aros_target_toolchain="no"
8876 aros_config_sysroot=""
8877 aros_kernel_sysroot=""
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8880 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8882 # Check whether --with-kernel-toolchain-prefix was given.
8883 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8884 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8888 $as_echo "$kernel_tool_prefix" >&6; }
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8891 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8893 # Check whether --with-elf-toolchain-prefix was given.
8894 if test "${with_elf_toolchain_prefix+set}" = set; then :
8895 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8896 crosstools_guess="no"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8900 $as_echo "$elf_tool_prefix" >&6; }
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8903 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8905 # Check whether --with-aros-toolchain was given.
8906 if test "${with_aros_toolchain+set}" = set; then :
8907 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8908 crosstools_guess="no"
8911 if test "$aros_tool_prefix" = "yes" ; then
8912 aros_tool_prefix=$aros_target_cpu-aros-
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8915 $as_echo "$aros_tool_prefix" >&6; }
8917 #-----------------------------------------------------------------------------
8918 # Checking if we should build crosstools..
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8920 $as_echo_n "checking whether to build crosstools... " >&6; }
8921 # Check whether --enable-crosstools was given.
8922 if test "${enable_crosstools+set}" = set; then :
8923 enableval=$enable_crosstools; crosstools="$enableval"
8924 else
8925 crosstools="$crosstools_guess"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8929 $as_echo "$crosstools" >&6; }
8931 if test "${crosstools}" = "yes"; then
8932 if test "${crosstools_guess}" = "no"; then
8933 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8937 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8938 aros_target_toolchain="yes"
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8942 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8944 # Check whether --with-aros-toolchain-install was given.
8945 if test "${with_aros_toolchain_install+set}" = set; then :
8946 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8949 if test "x$aros_toolchain_install" = "x"; then
8950 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8951 else
8952 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8953 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8954 if test "$crosstools_guess" = "no" ; then
8955 toolchain_needs_sysroot=yes
8957 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8958 aros_kernel_sysroot = $aros_config_sysroot
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8963 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8966 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8967 if test "$toolchain_needs_sysroot" = "yes" ; then
8968 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8971 $as_echo "$toolchain_needs_sysroot" >&6; }
8973 #-----------------------------------------------------------------------------
8974 if test "$aros_toolchain" = "gnu" ; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8976 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8979 # Check whether --with-binutils-version was given.
8980 if test "${with_binutils_version+set}" = set; then :
8981 withval=$with_binutils_version; use_binutils_version="$withval"
8982 else
8983 use_binutils_version=""
8986 if test "$use_binutils_version" = ""; then
8987 target_binutils_version="$default_binutils_version"
8988 else
8989 target_binutils_version="$use_binutils_version"
8991 if test "$aros_toolchain" = "gnu" ; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8993 $as_echo "$target_binutils_version" >&6; }
8997 # Helper to identify gcc version
9000 #-----------------------------------------------------------------------------
9001 if test "$aros_toolchain" = "gnu" ; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9003 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9006 # Check whether --with-gcc-version was given.
9007 if test "${with_gcc_version+set}" = set; then :
9008 withval=$with_gcc_version; use_gcc_version="$withval"
9009 else
9010 use_gcc_version=""
9013 if test "$use_gcc_version" = ""; then
9014 if test "${crosstools}" = "no"; then
9015 if test "x$aros_toolchain_install" != "x"; then
9017 target_gcc_version=""
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9019 $as_echo_n "checking gcc version... " >&6; }
9020 if ${ax_cv_gcc_version+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9024 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9025 if test "x$ax_cv_gcc_version" = "x"; then :
9027 ax_cv_gcc_version=""
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9033 $as_echo "$ax_cv_gcc_version" >&6; }
9034 target_gcc_version=$ax_cv_gcc_version
9039 if test "$use_gcc_version" = ""; then
9040 target_gcc_version="$default_gcc_version"
9042 else
9043 target_gcc_version="$use_gcc_version"
9045 if test "$aros_toolchain" = "gnu" ; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9047 $as_echo "$target_gcc_version" >&6; }
9049 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9050 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9051 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9053 gcc_fix_bitfields="false"
9054 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9055 gcc_fix_bitfields="true"
9056 else
9057 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9058 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9059 gcc_fix_bitfields="true"
9064 if test "$gcc_fix_bitfields" = "true" ; then
9065 case "$aros_target_cpu" in
9066 *x86_64*)
9067 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9068 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9070 i386)
9071 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9072 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9074 esac
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9079 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9080 # Check whether --enable-objc was given.
9081 if test "${enable_objc+set}" = set; then :
9082 enableval=$enable_objc; objc="$enableval"
9083 else
9084 objc="no"
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9088 $as_echo "$objc" >&6; }
9089 if test "x$objc" = "xyes"; then
9090 objc_target="$objc"
9091 else
9092 objc_target="no-objc"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9096 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9097 # Check whether --enable-java was given.
9098 if test "${enable_java+set}" = set; then :
9099 enableval=$enable_java; java="$enableval"
9100 else
9101 java="no"
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9105 $as_echo "$java" >&6; }
9106 if test "x$java" != "xno"; then
9107 java_target="$java"
9108 else
9109 java_target="no-java"
9112 spec_obj_format="-m $aros_object_format"
9113 # Now process extra architecture-specific options.
9114 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9115 # as well as floating-point ABI.
9116 case "$aros_target_cpu" in
9117 *x86_64*)
9118 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9120 arm*)
9121 if test "$gcc_default_cpu" = ""; then
9122 gcc_default_cpu="armv6"
9124 if test "$gcc_default_fpu" = ""; then
9125 gcc_default_fpu="vfp"
9127 if test "$gcc_default_float_abi" = ""; then
9128 if test "$target_cpu" = "armhf"; then
9129 gcc_default_float_abi="hard"
9130 else
9131 gcc_default_float_abi="softfp"
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9136 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9138 # Check whether --with-cpu was given.
9139 if test "${with_cpu+set}" = set; then :
9140 withval=$with_cpu; aros_gcc_cpu="$withval"
9141 else
9142 aros_gcc_cpu=$gcc_default_cpu
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9146 $as_echo "$aros_gcc_cpu" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9149 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9151 # Check whether --with-fpu was given.
9152 if test "${with_fpu+set}" = set; then :
9153 withval=$with_fpu; aros_gcc_fpu="$withval"
9154 else
9155 aros_gcc_fpu=$gcc_default_fpu
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9159 $as_echo "$aros_gcc_fpu" >&6; }
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9162 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9164 # Check whether --with-float was given.
9165 if test "${with_float+set}" = set; then :
9166 withval=$with_float; aros_gcc_float_abi="$withval"
9167 else
9168 aros_gcc_float_abi=$gcc_default_float_abi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9172 $as_echo "$aros_gcc_float_abi" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9175 $as_echo_n "checking Which ARM mode to use... " >&6; }
9176 if test "$aros_target_cpu_mode" = ""; then
9177 aros_target_cpu_mode="arm32"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9179 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9182 $as_echo "$aros_target_cpu_mode" >&6; }
9185 case "$aros_target_cpu_mode" in
9186 arm32)
9187 gcc_default_mode="arm"
9188 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9190 arm64)
9191 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9193 thumb)
9194 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9196 thumb1)
9197 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9199 thumb2)
9200 gcc_default_mode="thumb"
9201 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9202 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9205 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9207 esac
9209 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9210 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9211 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9213 i386)
9214 aros_isa_flags="-m32 -march=i486"
9215 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9216 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9218 esac
9220 # Some architectures may need custom ELF specs.
9221 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9222 elf_specs_in=config/${aros_object_format}-specs.in
9223 else
9224 elf_specs_in=config/elf-specs.in
9227 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9228 # Since we override specs, we may need to put these defines there
9229 if test "$gcc_target_cpu" != ""; then
9230 gcc_target_cpu="-D__${gcc_target_cpu}__"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9234 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9236 # Check whether --with-portssources was given.
9237 if test "${with_portssources+set}" = set; then :
9238 withval=$with_portssources; with_portssrcdir=$withval
9239 else
9240 with_portssrcdir="default"
9243 if test "$with_portssrcdir" = "default"; then
9244 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9245 else
9246 AROS_PORTSSRCDIR="$with_portssrcdir"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9249 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9252 $as_echo_n "checking which bootloader to use... " >&6; }
9254 # Check whether --with-bootloader was given.
9255 if test "${with_bootloader+set}" = set; then :
9256 withval=$with_bootloader; target_bootloader=$withval
9257 else
9258 target_bootloader=$target_bootloader
9261 if test "$target_bootloader" = "none"; then
9262 aros_target_bootloader=""
9263 else
9264 aros_target_bootloader="$target_bootloader"
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9267 $as_echo "$target_bootloader" >&6; }
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9270 $as_echo_n "checking which icon-set to use... " >&6; }
9272 # Check whether --with-iconset was given.
9273 if test "${with_iconset+set}" = set; then :
9274 withval=$with_iconset; target_iconset=$withval
9275 else
9276 target_iconset="default"
9279 if test "$target_iconset" = "default"; then
9280 aros_target_iconset="Gorilla"
9281 target_iconset="default (Gorilla)"
9282 else
9283 aros_target_iconset="$target_iconset"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9286 $as_echo "$target_iconset" >&6; }
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9289 $as_echo_n "checking which GUI Theme to use... " >&6; }
9291 # Check whether --with-theme was given.
9292 if test "${with_theme+set}" = set; then :
9293 withval=$with_theme; target_guitheme=$withval
9294 else
9295 target_guitheme="default"
9298 if test "$target_guitheme" = "default"; then
9299 aros_target_guitheme="Ice"
9300 else
9301 aros_target_guitheme="$target_guitheme"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9304 $as_echo "$aros_target_guitheme" >&6; }
9306 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9307 # for target code)
9308 cross_compiling=no
9310 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9311 cross_compiling=yes
9314 if test "$aros_host_cpu" == "x86_64" ; then
9315 if test "$aros_target_cpu" == "i386" ; then
9316 cross_compiling=no
9320 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9321 if test "$aros_host_arch" != "$aros_target_arch" ; then
9322 cross_compiling=yes
9324 else
9325 if test "$host_cc_elf" = "no" ; then
9326 cross_compiling=yes
9330 if test "$cross_compiling" = "no" ; then
9331 kernel_tool_prefix=""
9332 if test "$host_cc_elf" = "yes" ; then
9333 elf_tool_prefix=""
9337 if test "$kernel_tool_version" != ""; then
9338 kernel_tool_version="-$kernel_tool_version"
9341 #######################################################################
9342 ## Compute what toolchains to use, and their paths ##
9343 #######################################################################
9345 # This takes, as input:
9346 # crosstools {yes,no}
9347 # kernel_tool_version {"",[version]}
9348 # target_tool_version {"",[version]}
9349 # kernel_tool_prefix {none,[some-arch-os-]}
9350 # gnu-toolchain -:
9351 # target_tool_prefix ${aros_target_cpu}-aros-
9352 # aros_tool_prefix ${aros_target_cpu}-aros-
9354 # The output is
9355 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9356 # Where the 'kernel' binaries are located
9357 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9358 # Where the 'target' binaries are located
9359 # (not the symlink farm - that is aros_target_*!)
9361 # The rules are:
9362 # if crosstools then
9363 # if kernel_tools_prefix = "no-kernel-prefix-"
9364 # aros_kernel_* = crosstools cc paths
9365 # aros_kernel_cc = elf cc wrapper around crosstools cc
9366 # else
9367 # VALIDATE(${kernel_tools_prefix}*)
9368 # aros_kernel_* = ${kernel_tools_prefix}*
9369 # if ${kernel_tools_prefix}cc is an AROS gcc
9370 # aros_kernel_cc = ${kernel_tools_prefix}cc
9371 # else
9372 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9373 # fi
9374 # fi
9376 # orig_target_* = aros built crosstools
9377 # orig_target_cc = elf cc wrapper around crosstools cc
9378 # else
9379 # VALIDATE(${kernel_tools_prefix}*)
9381 # orig_target_* = aros_kernel_*
9382 # if aros_kernel_cc is an AROS gcc
9383 # orig_target_cc = aros_kernel_cc
9384 # else
9385 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9386 # fi
9387 # fi
9389 if test "$aros_toolchain" = "gnu" ; then
9390 target_tool_prefix="${aros_target_cpu}-aros-"
9391 elif test "$aros_toolchain" = "llvm" ; then
9392 target_tool_prefix="bin/"
9395 if test "$kernel_tool_prefix" != "" ; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9397 $as_echo_n "checking which kernel tools... " >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9399 $as_echo "$kernel_tool_prefix" >&6; };
9402 if test "$kernel_tool_prefix" = "none" ; then
9403 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9404 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9406 else
9407 # Kernel tools required - find them
9408 # Note that 'normally', aros_kernel_* overrides will be
9409 # empty, unless specified in the per-arch sections above.
9410 if test "x$aros_kernel_cpp" = "x"; then
9411 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9413 if test "${kernel_tool_version}" != ""; then
9414 if test "$aros_kernel_cpp" != ""; then
9415 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9416 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9417 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9421 if test "$aros_kernel_cpp" = ""; then
9422 if test "$cross_compiling" = "yes" ; then
9423 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9424 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 case $aros_kernel_cpp in
9431 [\\/]* | ?:[\\/]*)
9432 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in $PATH
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 break 2
9446 done
9447 done
9448 IFS=$as_save_IFS
9451 esac
9453 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9454 if test -n "$aros_kernel_cpp"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9456 $as_echo "$aros_kernel_cpp" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9463 else
9464 if test "$GCC" = "yes"; then
9465 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9466 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9467 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 case $aros_kernel_cpp in
9474 [\\/]* | ?:[\\/]*)
9475 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in `dirname $aros_gcc_cpp`
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9489 done
9490 done
9491 IFS=$as_save_IFS
9494 esac
9496 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9497 if test -n "$aros_kernel_cpp"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9499 $as_echo "$aros_kernel_cpp" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9507 if test "$aros_kernel_cpp" = ""; then
9508 # Extract the first word of "cpp", so it can be a program name with args.
9509 set dummy cpp; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 case $aros_kernel_cpp in
9516 [\\/]* | ?:[\\/]*)
9517 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9527 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9531 done
9532 done
9533 IFS=$as_save_IFS
9536 esac
9538 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9539 if test -n "$aros_kernel_cpp"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9541 $as_echo "$aros_kernel_cpp" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9550 else
9551 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9552 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9553 set dummy $aros_kernel_cpp; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 case $aros_kernel_cpp in
9560 [\\/]* | ?:[\\/]*)
9561 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9580 esac
9582 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9583 if test -n "$aros_kernel_cpp"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9585 $as_echo "$aros_kernel_cpp" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9592 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9595 req_avail=yes
9596 if test "$aros_kernel_cpp" = ""; then
9597 req_avail=no
9599 if test "$aros_kernel_cpp" = "no"; then
9600 req_avail=no
9602 if test "$req_avail" = "no"; then
9603 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9606 if test "x$aros_kernel_cc" = "x"; then
9607 aros_kernel_cc=${kernel_tool_prefix}${CC}
9609 if test "${kernel_tool_version}" != ""; then
9610 if test "$aros_kernel_cc" != ""; then
9611 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9612 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9613 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9617 if test "$aros_kernel_cc" = ""; then
9618 if test "$cross_compiling" = "yes" ; then
9619 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9620 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 case $aros_kernel_cc in
9627 [\\/]* | ?:[\\/]*)
9628 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9642 done
9643 done
9644 IFS=$as_save_IFS
9647 esac
9649 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9650 if test -n "$aros_kernel_cc"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9652 $as_echo "$aros_kernel_cc" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9659 else
9660 if test "$GCC" = "yes"; then
9661 aros_gcc_cc=`$CC -print-prog-name=cc`
9662 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9663 set dummy `basename $aros_gcc_cc`; ac_word=$2
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 $as_echo_n "checking for $ac_word... " >&6; }
9666 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 case $aros_kernel_cc in
9670 [\\/]* | ?:[\\/]*)
9671 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in `dirname $aros_gcc_cc`
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9685 done
9686 done
9687 IFS=$as_save_IFS
9690 esac
9692 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9693 if test -n "$aros_kernel_cc"; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9695 $as_echo "$aros_kernel_cc" >&6; }
9696 else
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698 $as_echo "no" >&6; }
9703 if test "$aros_kernel_cc" = ""; then
9704 # Extract the first word of "cc", so it can be a program name with args.
9705 set dummy cc; ac_word=$2
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 $as_echo_n "checking for $ac_word... " >&6; }
9708 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 case $aros_kernel_cc in
9712 [\\/]* | ?:[\\/]*)
9713 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9727 done
9728 done
9729 IFS=$as_save_IFS
9732 esac
9734 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9735 if test -n "$aros_kernel_cc"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9737 $as_echo "$aros_kernel_cc" >&6; }
9738 else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9746 else
9747 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9748 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9749 set dummy $aros_kernel_cc; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 case $aros_kernel_cc in
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9776 esac
9778 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9779 if test -n "$aros_kernel_cc"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9781 $as_echo "$aros_kernel_cc" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9788 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9791 req_avail=yes
9792 if test "$aros_kernel_cc" = ""; then
9793 req_avail=no
9795 if test "$aros_kernel_cc" = "no"; then
9796 req_avail=no
9798 if test "$req_avail" = "no"; then
9799 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9802 if test "x$aros_kernel_cxx" = "x"; then
9803 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9805 if test "${kernel_tool_version}" != ""; then
9806 if test "$aros_kernel_cxx" != ""; then
9807 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9808 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9809 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9813 if test "$aros_kernel_cxx" = ""; then
9814 if test "$cross_compiling" = "yes" ; then
9815 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9816 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 case $aros_kernel_cxx in
9823 [\\/]* | ?:[\\/]*)
9824 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9840 IFS=$as_save_IFS
9843 esac
9845 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9846 if test -n "$aros_kernel_cxx"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9848 $as_echo "$aros_kernel_cxx" >&6; }
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9855 else
9856 if test "$GCC" = "yes"; then
9857 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9858 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9859 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 case $aros_kernel_cxx in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in `dirname $aros_gcc_cxx`
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9881 done
9882 done
9883 IFS=$as_save_IFS
9886 esac
9888 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9889 if test -n "$aros_kernel_cxx"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9891 $as_echo "$aros_kernel_cxx" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9899 if test "$aros_kernel_cxx" = ""; then
9900 # Extract the first word of "cxx", so it can be a program name with args.
9901 set dummy cxx; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 case $aros_kernel_cxx in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9923 done
9924 done
9925 IFS=$as_save_IFS
9928 esac
9930 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9931 if test -n "$aros_kernel_cxx"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9933 $as_echo "$aros_kernel_cxx" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9942 else
9943 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9944 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9945 set dummy $aros_kernel_cxx; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 case $aros_kernel_cxx in
9952 [\\/]* | ?:[\\/]*)
9953 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9967 done
9968 done
9969 IFS=$as_save_IFS
9972 esac
9974 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9975 if test -n "$aros_kernel_cxx"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9977 $as_echo "$aros_kernel_cxx" >&6; }
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9984 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
9987 # If it's set, make sure it's really there
9988 if test "x$aros_kernel_cxx" != "x" ; then
9989 req_avail=yes
9990 if test "$aros_kernel_cxx" = ""; then
9991 req_avail=no
9993 if test "$aros_kernel_cxx" = "no"; then
9994 req_avail=no
9996 if test "$req_avail" = "no"; then
9997 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10001 if test "$aros_kernel_ld" = ""; then
10002 if test "$cross_compiling" = "yes" ; then
10003 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10004 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 case $aros_kernel_ld in
10011 [\\/]* | ?:[\\/]*)
10012 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024 break 2
10026 done
10027 done
10028 IFS=$as_save_IFS
10031 esac
10033 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10034 if test -n "$aros_kernel_ld"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10036 $as_echo "$aros_kernel_ld" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10043 else
10044 if test "$GCC" = "yes"; then
10045 aros_gcc_ld=`$CC -print-prog-name=ld`
10046 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10047 set dummy `basename $aros_gcc_ld`; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 case $aros_kernel_ld in
10054 [\\/]* | ?:[\\/]*)
10055 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in `dirname $aros_gcc_ld`
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10071 IFS=$as_save_IFS
10074 esac
10076 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10077 if test -n "$aros_kernel_ld"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10079 $as_echo "$aros_kernel_ld" >&6; }
10080 else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10087 if test "$aros_kernel_ld" = ""; then
10088 # Extract the first word of "ld", so it can be a program name with args.
10089 set dummy ld; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 case $aros_kernel_ld in
10096 [\\/]* | ?:[\\/]*)
10097 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 for as_dir in $PATH
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10107 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10111 done
10112 done
10113 IFS=$as_save_IFS
10116 esac
10118 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10119 if test -n "$aros_kernel_ld"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10121 $as_echo "$aros_kernel_ld" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10130 else
10131 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10132 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10133 set dummy $aros_kernel_ld; ac_word=$2
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 case $aros_kernel_ld in
10140 [\\/]* | ?:[\\/]*)
10141 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10155 done
10156 done
10157 IFS=$as_save_IFS
10160 esac
10162 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10163 if test -n "$aros_kernel_ld"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10165 $as_echo "$aros_kernel_ld" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10172 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10175 req_avail=yes
10176 if test "$aros_kernel_ld" = ""; then
10177 req_avail=no
10179 if test "$aros_kernel_ld" = "no"; then
10180 req_avail=no
10182 if test "$req_avail" = "no"; then
10183 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10186 if test "$aros_kernel_as" = ""; then
10187 if test "$cross_compiling" = "yes" ; then
10188 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10189 set dummy ${kernel_tool_prefix}as; ac_word=$2
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if ${ac_cv_path_aros_kernel_as+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 case $aros_kernel_as in
10196 [\\/]* | ?:[\\/]*)
10197 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10207 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 break 2
10211 done
10212 done
10213 IFS=$as_save_IFS
10216 esac
10218 aros_kernel_as=$ac_cv_path_aros_kernel_as
10219 if test -n "$aros_kernel_as"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10221 $as_echo "$aros_kernel_as" >&6; }
10222 else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10228 else
10229 if test "$GCC" = "yes"; then
10230 aros_gcc_as=`$CC -print-prog-name=as`
10231 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10232 set dummy `basename $aros_gcc_as`; ac_word=$2
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10234 $as_echo_n "checking for $ac_word... " >&6; }
10235 if ${ac_cv_path_aros_kernel_as+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 case $aros_kernel_as in
10239 [\\/]* | ?:[\\/]*)
10240 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in `dirname $aros_gcc_as`
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10250 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10254 done
10255 done
10256 IFS=$as_save_IFS
10259 esac
10261 aros_kernel_as=$ac_cv_path_aros_kernel_as
10262 if test -n "$aros_kernel_as"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10264 $as_echo "$aros_kernel_as" >&6; }
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10272 if test "$aros_kernel_as" = ""; then
10273 # Extract the first word of "as", so it can be a program name with args.
10274 set dummy as; ac_word=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if ${ac_cv_path_aros_kernel_as+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 case $aros_kernel_as in
10281 [\\/]* | ?:[\\/]*)
10282 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10292 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10296 done
10297 done
10298 IFS=$as_save_IFS
10301 esac
10303 aros_kernel_as=$ac_cv_path_aros_kernel_as
10304 if test -n "$aros_kernel_as"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10306 $as_echo "$aros_kernel_as" >&6; }
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10315 else
10316 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10317 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10318 set dummy $aros_kernel_as; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_path_aros_kernel_as+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $aros_kernel_as in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10340 done
10341 done
10342 IFS=$as_save_IFS
10345 esac
10347 aros_kernel_as=$ac_cv_path_aros_kernel_as
10348 if test -n "$aros_kernel_as"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10350 $as_echo "$aros_kernel_as" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10357 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10360 req_avail=yes
10361 if test "$aros_kernel_as" = ""; then
10362 req_avail=no
10364 if test "$aros_kernel_as" = "no"; then
10365 req_avail=no
10367 if test "$req_avail" = "no"; then
10368 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10371 if test "$aros_kernel_ar" = ""; then
10372 if test "$cross_compiling" = "yes" ; then
10373 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10374 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376 $as_echo_n "checking for $ac_word... " >&6; }
10377 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 case $aros_kernel_ar in
10381 [\\/]* | ?:[\\/]*)
10382 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10396 done
10397 done
10398 IFS=$as_save_IFS
10401 esac
10403 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10404 if test -n "$aros_kernel_ar"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10406 $as_echo "$aros_kernel_ar" >&6; }
10407 else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10413 else
10414 if test "$GCC" = "yes"; then
10415 aros_gcc_ar=`$CC -print-prog-name=ar`
10416 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10417 set dummy `basename $aros_gcc_ar`; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 case $aros_kernel_ar in
10424 [\\/]* | ?:[\\/]*)
10425 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in `dirname $aros_gcc_ar`
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10435 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10439 done
10440 done
10441 IFS=$as_save_IFS
10444 esac
10446 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10447 if test -n "$aros_kernel_ar"; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10449 $as_echo "$aros_kernel_ar" >&6; }
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10457 if test "$aros_kernel_ar" = ""; then
10458 # Extract the first word of "ar", so it can be a program name with args.
10459 set dummy ar; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 case $aros_kernel_ar in
10466 [\\/]* | ?:[\\/]*)
10467 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10477 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10481 done
10482 done
10483 IFS=$as_save_IFS
10486 esac
10488 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10489 if test -n "$aros_kernel_ar"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10491 $as_echo "$aros_kernel_ar" >&6; }
10492 else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10500 else
10501 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10502 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10503 set dummy $aros_kernel_ar; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 case $aros_kernel_ar in
10510 [\\/]* | ?:[\\/]*)
10511 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 break 2
10525 done
10526 done
10527 IFS=$as_save_IFS
10530 esac
10532 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10533 if test -n "$aros_kernel_ar"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10535 $as_echo "$aros_kernel_ar" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10542 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10545 req_avail=yes
10546 if test "$aros_kernel_ar" = ""; then
10547 req_avail=no
10549 if test "$aros_kernel_ar" = "no"; then
10550 req_avail=no
10552 if test "$req_avail" = "no"; then
10553 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10556 if test "$aros_kernel_ranlib" = ""; then
10557 if test "$cross_compiling" = "yes" ; then
10558 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10559 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 case $aros_kernel_ranlib in
10566 [\\/]* | ?:[\\/]*)
10567 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10581 done
10582 done
10583 IFS=$as_save_IFS
10586 esac
10588 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10589 if test -n "$aros_kernel_ranlib"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10591 $as_echo "$aros_kernel_ranlib" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10598 else
10599 if test "$GCC" = "yes"; then
10600 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10601 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10602 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 case $aros_kernel_ranlib in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in `dirname $aros_gcc_ranlib`
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10620 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10624 done
10625 done
10626 IFS=$as_save_IFS
10629 esac
10631 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10632 if test -n "$aros_kernel_ranlib"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10634 $as_echo "$aros_kernel_ranlib" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10642 if test "$aros_kernel_ranlib" = ""; then
10643 # Extract the first word of "ranlib", so it can be a program name with args.
10644 set dummy ranlib; ac_word=$2
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 case $aros_kernel_ranlib in
10651 [\\/]* | ?:[\\/]*)
10652 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10662 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10666 done
10667 done
10668 IFS=$as_save_IFS
10671 esac
10673 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10674 if test -n "$aros_kernel_ranlib"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10676 $as_echo "$aros_kernel_ranlib" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10685 else
10686 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10687 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10688 set dummy $aros_kernel_ranlib; ac_word=$2
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 $as_echo_n "checking for $ac_word... " >&6; }
10691 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 case $aros_kernel_ranlib in
10695 [\\/]* | ?:[\\/]*)
10696 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10710 done
10711 done
10712 IFS=$as_save_IFS
10715 esac
10717 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10718 if test -n "$aros_kernel_ranlib"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10720 $as_echo "$aros_kernel_ranlib" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10727 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10730 req_avail=yes
10731 if test "$aros_kernel_ranlib" = ""; then
10732 req_avail=no
10734 if test "$aros_kernel_ranlib" = "no"; then
10735 req_avail=no
10737 if test "$req_avail" = "no"; then
10738 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10741 if test "$aros_kernel_nm" = ""; then
10742 if test "$cross_compiling" = "yes" ; then
10743 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10744 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746 $as_echo_n "checking for $ac_word... " >&6; }
10747 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 case $aros_kernel_nm in
10751 [\\/]* | ?:[\\/]*)
10752 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10766 done
10767 done
10768 IFS=$as_save_IFS
10771 esac
10773 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10774 if test -n "$aros_kernel_nm"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10776 $as_echo "$aros_kernel_nm" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10783 else
10784 if test "$GCC" = "yes"; then
10785 aros_gcc_nm=`$CC -print-prog-name=nm`
10786 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10787 set dummy `basename $aros_gcc_nm`; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 $as_echo_n "checking for $ac_word... " >&6; }
10790 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 case $aros_kernel_nm in
10794 [\\/]* | ?:[\\/]*)
10795 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in `dirname $aros_gcc_nm`
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10809 done
10810 done
10811 IFS=$as_save_IFS
10814 esac
10816 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10817 if test -n "$aros_kernel_nm"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10819 $as_echo "$aros_kernel_nm" >&6; }
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10827 if test "$aros_kernel_nm" = ""; then
10828 # Extract the first word of "nm", so it can be a program name with args.
10829 set dummy nm; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 case $aros_kernel_nm in
10836 [\\/]* | ?:[\\/]*)
10837 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10851 done
10852 done
10853 IFS=$as_save_IFS
10856 esac
10858 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10859 if test -n "$aros_kernel_nm"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10861 $as_echo "$aros_kernel_nm" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10870 else
10871 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10872 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10873 set dummy $aros_kernel_nm; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 case $aros_kernel_nm in
10880 [\\/]* | ?:[\\/]*)
10881 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10897 IFS=$as_save_IFS
10900 esac
10902 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10903 if test -n "$aros_kernel_nm"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10905 $as_echo "$aros_kernel_nm" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10912 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10915 req_avail=yes
10916 if test "$aros_kernel_nm" = ""; then
10917 req_avail=no
10919 if test "$aros_kernel_nm" = "no"; then
10920 req_avail=no
10922 if test "$req_avail" = "no"; then
10923 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10926 if test "$aros_kernel_strip" = ""; then
10927 if test "$cross_compiling" = "yes" ; then
10928 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10929 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 case $aros_kernel_strip in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10951 done
10952 done
10953 IFS=$as_save_IFS
10956 esac
10958 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10959 if test -n "$aros_kernel_strip"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10961 $as_echo "$aros_kernel_strip" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10968 else
10969 if test "$GCC" = "yes"; then
10970 aros_gcc_strip=`$CC -print-prog-name=strip`
10971 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10972 set dummy `basename $aros_gcc_strip`; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 case $aros_kernel_strip in
10979 [\\/]* | ?:[\\/]*)
10980 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in `dirname $aros_gcc_strip`
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10994 done
10995 done
10996 IFS=$as_save_IFS
10999 esac
11001 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11002 if test -n "$aros_kernel_strip"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11004 $as_echo "$aros_kernel_strip" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11012 if test "$aros_kernel_strip" = ""; then
11013 # Extract the first word of "strip", so it can be a program name with args.
11014 set dummy strip; ac_word=$2
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 case $aros_kernel_strip in
11021 [\\/]* | ?:[\\/]*)
11022 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11036 done
11037 done
11038 IFS=$as_save_IFS
11041 esac
11043 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11044 if test -n "$aros_kernel_strip"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11046 $as_echo "$aros_kernel_strip" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11055 else
11056 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11057 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11058 set dummy $aros_kernel_strip; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 case $aros_kernel_strip in
11065 [\\/]* | ?:[\\/]*)
11066 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11080 done
11081 done
11082 IFS=$as_save_IFS
11085 esac
11087 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11088 if test -n "$aros_kernel_strip"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11090 $as_echo "$aros_kernel_strip" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11097 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11100 req_avail=yes
11101 if test "$aros_kernel_strip" = ""; then
11102 req_avail=no
11104 if test "$aros_kernel_strip" = "no"; then
11105 req_avail=no
11107 if test "$req_avail" = "no"; then
11108 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11111 # Objcopy and objdump are not required for the kernel
11112 # toolchain on many architectures.
11113 # So we'll look for them, but not make them strictly required.
11115 if test "$aros_kernel_objcopy" = ""; then
11116 if test "$cross_compiling" = "yes" ; then
11117 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11118 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 $as_echo_n "checking for $ac_word... " >&6; }
11121 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 case $aros_kernel_objcopy in
11125 [\\/]* | ?:[\\/]*)
11126 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 break 2
11140 done
11141 done
11142 IFS=$as_save_IFS
11145 esac
11147 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11148 if test -n "$aros_kernel_objcopy"; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11150 $as_echo "$aros_kernel_objcopy" >&6; }
11151 else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11157 else
11158 if test "$GCC" = "yes"; then
11159 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11160 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11161 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163 $as_echo_n "checking for $ac_word... " >&6; }
11164 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 case $aros_kernel_objcopy in
11168 [\\/]* | ?:[\\/]*)
11169 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in `dirname $aros_gcc_objcopy`
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11179 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11183 done
11184 done
11185 IFS=$as_save_IFS
11188 esac
11190 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11191 if test -n "$aros_kernel_objcopy"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11193 $as_echo "$aros_kernel_objcopy" >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11201 if test "$aros_kernel_objcopy" = ""; then
11202 # Extract the first word of "objcopy", so it can be a program name with args.
11203 set dummy objcopy; ac_word=$2
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205 $as_echo_n "checking for $ac_word... " >&6; }
11206 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 case $aros_kernel_objcopy in
11210 [\\/]* | ?:[\\/]*)
11211 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11225 done
11226 done
11227 IFS=$as_save_IFS
11230 esac
11232 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11233 if test -n "$aros_kernel_objcopy"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11235 $as_echo "$aros_kernel_objcopy" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11244 else
11245 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11246 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11247 set dummy $aros_kernel_objcopy; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 case $aros_kernel_objcopy in
11254 [\\/]* | ?:[\\/]*)
11255 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11269 done
11270 done
11271 IFS=$as_save_IFS
11274 esac
11276 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11277 if test -n "$aros_kernel_objcopy"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11279 $as_echo "$aros_kernel_objcopy" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11286 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11290 if test "$aros_kernel_objdump" = ""; then
11291 if test "$cross_compiling" = "yes" ; then
11292 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11293 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 case $aros_kernel_objdump in
11300 [\\/]* | ?:[\\/]*)
11301 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11315 done
11316 done
11317 IFS=$as_save_IFS
11320 esac
11322 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11323 if test -n "$aros_kernel_objdump"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11325 $as_echo "$aros_kernel_objdump" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11332 else
11333 if test "$GCC" = "yes"; then
11334 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11335 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11336 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 case $aros_kernel_objdump in
11343 [\\/]* | ?:[\\/]*)
11344 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in `dirname $aros_gcc_objdump`
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11358 done
11359 done
11360 IFS=$as_save_IFS
11363 esac
11365 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11366 if test -n "$aros_kernel_objdump"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11368 $as_echo "$aros_kernel_objdump" >&6; }
11369 else
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11376 if test "$aros_kernel_objdump" = ""; then
11377 # Extract the first word of "objdump", so it can be a program name with args.
11378 set dummy objdump; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 case $aros_kernel_objdump in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11396 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11400 done
11401 done
11402 IFS=$as_save_IFS
11405 esac
11407 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11408 if test -n "$aros_kernel_objdump"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11410 $as_echo "$aros_kernel_objdump" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11419 else
11420 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11421 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11422 set dummy $aros_kernel_objdump; ac_word=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 case $aros_kernel_objdump in
11429 [\\/]* | ?:[\\/]*)
11430 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11444 done
11445 done
11446 IFS=$as_save_IFS
11449 esac
11451 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11452 if test -n "$aros_kernel_objdump"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11454 $as_echo "$aros_kernel_objdump" >&6; }
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11461 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11464 if test "x${crosstools}" != "xyes" ; then
11465 req_avail=yes
11466 if test "$aros_kernel_objcopy" = ""; then
11467 req_avail=no
11469 if test "$aros_kernel_objcopy" = "no"; then
11470 req_avail=no
11472 if test "$req_avail" = "no"; then
11473 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11475 req_avail=yes
11476 if test "$aros_kernel_objdump" = ""; then
11477 req_avail=no
11479 if test "$aros_kernel_objdump" = "no"; then
11480 req_avail=no
11482 if test "$req_avail" = "no"; then
11483 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11489 $as_echo_n "checking which target tools to use... " >&6; }
11490 if test "$aros_target_toolchain" = "yes"; then
11491 if test "$aros_toolchain" = "llvm" ; then
11492 msg_result="llvm"
11493 else
11494 msg_result=$target_tool_prefix
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11497 $as_echo "$msg_result" >&6; }
11498 # We are building AROS crosstools
11499 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11500 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11501 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11502 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11503 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11504 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11505 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11506 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11507 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11508 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11509 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11510 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11511 else
11512 # Determine whether AROS or ELF tools should be used
11513 if test "$aros_tool_prefix" = "none"; then
11514 aros_tool_prefix="${elf_tool_prefix}"
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11518 $as_echo "$aros_tool_prefix" >&6; }
11519 # We are *not* building AROS crosstools - use the AROS or ELF tools
11521 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11522 if test "$cross_compiling" = "yes" ; then
11523 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11524 set dummy ${target_tool_prefix}cpp; ac_word=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if ${ac_cv_path_orig_target_cpp+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 case $orig_target_cpp in
11531 [\\/]* | ?:[\\/]*)
11532 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11542 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11546 done
11547 done
11548 IFS=$as_save_IFS
11551 esac
11553 orig_target_cpp=$ac_cv_path_orig_target_cpp
11554 if test -n "$orig_target_cpp"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11556 $as_echo "$orig_target_cpp" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11563 else
11564 if test "$GCC" = "yes"; then
11565 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11566 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11567 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_path_orig_target_cpp+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 case $orig_target_cpp in
11574 [\\/]* | ?:[\\/]*)
11575 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in `dirname $aros_gcc_cpp`
11581 IFS=$as_save_IFS
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587 break 2
11589 done
11590 done
11591 IFS=$as_save_IFS
11594 esac
11596 orig_target_cpp=$ac_cv_path_orig_target_cpp
11597 if test -n "$orig_target_cpp"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11599 $as_echo "$orig_target_cpp" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11607 if test "$orig_target_cpp" = ""; then
11608 # Extract the first word of "cpp", so it can be a program name with args.
11609 set dummy cpp; ac_word=$2
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611 $as_echo_n "checking for $ac_word... " >&6; }
11612 if ${ac_cv_path_orig_target_cpp+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 case $orig_target_cpp in
11616 [\\/]* | ?:[\\/]*)
11617 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
11625 for ac_exec_ext in '' $ac_executable_extensions; do
11626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 break 2
11631 done
11632 done
11633 IFS=$as_save_IFS
11636 esac
11638 orig_target_cpp=$ac_cv_path_orig_target_cpp
11639 if test -n "$orig_target_cpp"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11641 $as_echo "$orig_target_cpp" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11650 else
11651 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11652 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11653 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_orig_target_cpp+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $orig_target_cpp in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11680 esac
11682 orig_target_cpp=$ac_cv_path_orig_target_cpp
11683 if test -n "$orig_target_cpp"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11685 $as_echo "$orig_target_cpp" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11692 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11695 req_avail=yes
11696 if test "$orig_target_cpp" = ""; then
11697 req_avail=no
11699 if test "$orig_target_cpp" = "no"; then
11700 req_avail=no
11702 if test "$req_avail" = "no"; then
11703 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11706 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11707 if test "$cross_compiling" = "yes" ; then
11708 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11709 set dummy ${target_tool_prefix}gcc; ac_word=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_path_orig_target_cc+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 case $orig_target_cc in
11716 [\\/]* | ?:[\\/]*)
11717 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11731 done
11732 done
11733 IFS=$as_save_IFS
11736 esac
11738 orig_target_cc=$ac_cv_path_orig_target_cc
11739 if test -n "$orig_target_cc"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11741 $as_echo "$orig_target_cc" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11748 else
11749 if test "$GCC" = "yes"; then
11750 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11751 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11752 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if ${ac_cv_path_orig_target_cc+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 case $orig_target_cc in
11759 [\\/]* | ?:[\\/]*)
11760 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in `dirname $aros_gcc_gcc`
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11774 done
11775 done
11776 IFS=$as_save_IFS
11779 esac
11781 orig_target_cc=$ac_cv_path_orig_target_cc
11782 if test -n "$orig_target_cc"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11784 $as_echo "$orig_target_cc" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11792 if test "$orig_target_cc" = ""; then
11793 # Extract the first word of "gcc", so it can be a program name with args.
11794 set dummy gcc; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_path_orig_target_cc+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 case $orig_target_cc in
11801 [\\/]* | ?:[\\/]*)
11802 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11821 esac
11823 orig_target_cc=$ac_cv_path_orig_target_cc
11824 if test -n "$orig_target_cc"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11826 $as_echo "$orig_target_cc" >&6; }
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11835 else
11836 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11837 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11838 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if ${ac_cv_path_orig_target_cc+:} false; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 case $orig_target_cc in
11845 [\\/]* | ?:[\\/]*)
11846 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11860 done
11861 done
11862 IFS=$as_save_IFS
11865 esac
11867 orig_target_cc=$ac_cv_path_orig_target_cc
11868 if test -n "$orig_target_cc"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11870 $as_echo "$orig_target_cc" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11877 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11880 req_avail=yes
11881 if test "$orig_target_cc" = ""; then
11882 req_avail=no
11884 if test "$orig_target_cc" = "no"; then
11885 req_avail=no
11887 if test "$req_avail" = "no"; then
11888 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11891 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11892 if test "$cross_compiling" = "yes" ; then
11893 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11894 set dummy ${target_tool_prefix}g++; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_orig_target_cxx+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $orig_target_cxx in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11921 esac
11923 orig_target_cxx=$ac_cv_path_orig_target_cxx
11924 if test -n "$orig_target_cxx"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11926 $as_echo "$orig_target_cxx" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11933 else
11934 if test "$GCC" = "yes"; then
11935 aros_gcc_g++=`$CC -print-prog-name=g++`
11936 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11937 set dummy `basename $aros_gcc_g++`; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if ${ac_cv_path_orig_target_cxx+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 case $orig_target_cxx in
11944 [\\/]* | ?:[\\/]*)
11945 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in `dirname $aros_gcc_g++`
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 break 2
11959 done
11960 done
11961 IFS=$as_save_IFS
11964 esac
11966 orig_target_cxx=$ac_cv_path_orig_target_cxx
11967 if test -n "$orig_target_cxx"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11969 $as_echo "$orig_target_cxx" >&6; }
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11977 if test "$orig_target_cxx" = ""; then
11978 # Extract the first word of "g++", so it can be a program name with args.
11979 set dummy g++; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if ${ac_cv_path_orig_target_cxx+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 case $orig_target_cxx in
11986 [\\/]* | ?:[\\/]*)
11987 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 break 2
12001 done
12002 done
12003 IFS=$as_save_IFS
12006 esac
12008 orig_target_cxx=$ac_cv_path_orig_target_cxx
12009 if test -n "$orig_target_cxx"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12011 $as_echo "$orig_target_cxx" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12020 else
12021 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12022 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12023 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_orig_target_cxx+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 case $orig_target_cxx in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12050 esac
12052 orig_target_cxx=$ac_cv_path_orig_target_cxx
12053 if test -n "$orig_target_cxx"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12055 $as_echo "$orig_target_cxx" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12062 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12065 req_avail=yes
12066 if test "$orig_target_cxx" = ""; then
12067 req_avail=no
12069 if test "$orig_target_cxx" = "no"; then
12070 req_avail=no
12072 if test "$req_avail" = "no"; then
12073 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12076 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12077 if test "$cross_compiling" = "yes" ; then
12078 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12079 set dummy ${target_tool_prefix}gcc; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if ${ac_cv_path_orig_target_ld+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 case $orig_target_ld in
12086 [\\/]* | ?:[\\/]*)
12087 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
12095 for ac_exec_ext in '' $ac_executable_extensions; do
12096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 break 2
12101 done
12102 done
12103 IFS=$as_save_IFS
12106 esac
12108 orig_target_ld=$ac_cv_path_orig_target_ld
12109 if test -n "$orig_target_ld"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12111 $as_echo "$orig_target_ld" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12118 else
12119 if test "$GCC" = "yes"; then
12120 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12121 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12122 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_path_orig_target_ld+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 case $orig_target_ld in
12129 [\\/]* | ?:[\\/]*)
12130 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in `dirname $aros_gcc_gcc`
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12144 done
12145 done
12146 IFS=$as_save_IFS
12149 esac
12151 orig_target_ld=$ac_cv_path_orig_target_ld
12152 if test -n "$orig_target_ld"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12154 $as_echo "$orig_target_ld" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12162 if test "$orig_target_ld" = ""; then
12163 # Extract the first word of "gcc", so it can be a program name with args.
12164 set dummy gcc; ac_word=$2
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if ${ac_cv_path_orig_target_ld+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 case $orig_target_ld in
12171 [\\/]* | ?:[\\/]*)
12172 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12186 done
12187 done
12188 IFS=$as_save_IFS
12191 esac
12193 orig_target_ld=$ac_cv_path_orig_target_ld
12194 if test -n "$orig_target_ld"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12196 $as_echo "$orig_target_ld" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12205 else
12206 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12207 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12208 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_path_orig_target_ld+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 case $orig_target_ld in
12215 [\\/]* | ?:[\\/]*)
12216 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12230 done
12231 done
12232 IFS=$as_save_IFS
12235 esac
12237 orig_target_ld=$ac_cv_path_orig_target_ld
12238 if test -n "$orig_target_ld"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12240 $as_echo "$orig_target_ld" >&6; }
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12247 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12250 req_avail=yes
12251 if test "$orig_target_ld" = ""; then
12252 req_avail=no
12254 if test "$orig_target_ld" = "no"; then
12255 req_avail=no
12257 if test "$req_avail" = "no"; then
12258 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12261 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12262 if test "$cross_compiling" = "yes" ; then
12263 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12264 set dummy ${target_tool_prefix}as; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if ${ac_cv_path_orig_target_as+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 case $orig_target_as in
12271 [\\/]* | ?:[\\/]*)
12272 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12286 done
12287 done
12288 IFS=$as_save_IFS
12291 esac
12293 orig_target_as=$ac_cv_path_orig_target_as
12294 if test -n "$orig_target_as"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12296 $as_echo "$orig_target_as" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12303 else
12304 if test "$GCC" = "yes"; then
12305 aros_gcc_as=`$CC -print-prog-name=as`
12306 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12307 set dummy `basename $aros_gcc_as`; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_path_orig_target_as+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 case $orig_target_as in
12314 [\\/]* | ?:[\\/]*)
12315 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in `dirname $aros_gcc_as`
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12329 done
12330 done
12331 IFS=$as_save_IFS
12334 esac
12336 orig_target_as=$ac_cv_path_orig_target_as
12337 if test -n "$orig_target_as"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12339 $as_echo "$orig_target_as" >&6; }
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12347 if test "$orig_target_as" = ""; then
12348 # Extract the first word of "as", so it can be a program name with args.
12349 set dummy as; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if ${ac_cv_path_orig_target_as+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 case $orig_target_as in
12356 [\\/]* | ?:[\\/]*)
12357 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12371 done
12372 done
12373 IFS=$as_save_IFS
12376 esac
12378 orig_target_as=$ac_cv_path_orig_target_as
12379 if test -n "$orig_target_as"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12381 $as_echo "$orig_target_as" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12390 else
12391 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12392 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12393 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_path_orig_target_as+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 case $orig_target_as in
12400 [\\/]* | ?:[\\/]*)
12401 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12415 done
12416 done
12417 IFS=$as_save_IFS
12420 esac
12422 orig_target_as=$ac_cv_path_orig_target_as
12423 if test -n "$orig_target_as"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12425 $as_echo "$orig_target_as" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12432 orig_target_as="$orig_target_as $ac_tool_optarg"
12435 req_avail=yes
12436 if test "$orig_target_as" = ""; then
12437 req_avail=no
12439 if test "$orig_target_as" = "no"; then
12440 req_avail=no
12442 if test "$req_avail" = "no"; then
12443 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12446 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12447 if test "$cross_compiling" = "yes" ; then
12448 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12449 set dummy ${target_tool_prefix}ar; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if ${ac_cv_path_orig_target_ar+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 case $orig_target_ar in
12456 [\\/]* | ?:[\\/]*)
12457 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12476 esac
12478 orig_target_ar=$ac_cv_path_orig_target_ar
12479 if test -n "$orig_target_ar"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12481 $as_echo "$orig_target_ar" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12488 else
12489 if test "$GCC" = "yes"; then
12490 aros_gcc_ar=`$CC -print-prog-name=ar`
12491 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12492 set dummy `basename $aros_gcc_ar`; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_orig_target_ar+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 case $orig_target_ar in
12499 [\\/]* | ?:[\\/]*)
12500 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in `dirname $aros_gcc_ar`
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12514 done
12515 done
12516 IFS=$as_save_IFS
12519 esac
12521 orig_target_ar=$ac_cv_path_orig_target_ar
12522 if test -n "$orig_target_ar"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12524 $as_echo "$orig_target_ar" >&6; }
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12532 if test "$orig_target_ar" = ""; then
12533 # Extract the first word of "ar", so it can be a program name with args.
12534 set dummy ar; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if ${ac_cv_path_orig_target_ar+:} false; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 case $orig_target_ar in
12541 [\\/]* | ?:[\\/]*)
12542 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12556 done
12557 done
12558 IFS=$as_save_IFS
12561 esac
12563 orig_target_ar=$ac_cv_path_orig_target_ar
12564 if test -n "$orig_target_ar"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12566 $as_echo "$orig_target_ar" >&6; }
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12575 else
12576 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12577 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12578 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_orig_target_ar+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 case $orig_target_ar in
12585 [\\/]* | ?:[\\/]*)
12586 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12600 done
12601 done
12602 IFS=$as_save_IFS
12605 esac
12607 orig_target_ar=$ac_cv_path_orig_target_ar
12608 if test -n "$orig_target_ar"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12610 $as_echo "$orig_target_ar" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12617 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12620 req_avail=yes
12621 if test "$orig_target_ar" = ""; then
12622 req_avail=no
12624 if test "$orig_target_ar" = "no"; then
12625 req_avail=no
12627 if test "$req_avail" = "no"; then
12628 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12631 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12632 if test "$cross_compiling" = "yes" ; then
12633 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12634 set dummy ${target_tool_prefix}ar; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 case $orig_target_ranlib in
12641 [\\/]* | ?:[\\/]*)
12642 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12656 done
12657 done
12658 IFS=$as_save_IFS
12661 esac
12663 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12664 if test -n "$orig_target_ranlib"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12666 $as_echo "$orig_target_ranlib" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12673 else
12674 if test "$GCC" = "yes"; then
12675 aros_gcc_ar=`$CC -print-prog-name=ar`
12676 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12677 set dummy `basename $aros_gcc_ar`; ac_word=$2
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679 $as_echo_n "checking for $ac_word... " >&6; }
12680 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 case $orig_target_ranlib in
12684 [\\/]* | ?:[\\/]*)
12685 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689 for as_dir in `dirname $aros_gcc_ar`
12691 IFS=$as_save_IFS
12692 test -z "$as_dir" && as_dir=.
12693 for ac_exec_ext in '' $ac_executable_extensions; do
12694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12695 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697 break 2
12699 done
12700 done
12701 IFS=$as_save_IFS
12704 esac
12706 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12707 if test -n "$orig_target_ranlib"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12709 $as_echo "$orig_target_ranlib" >&6; }
12710 else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12717 if test "$orig_target_ranlib" = ""; then
12718 # Extract the first word of "ar", so it can be a program name with args.
12719 set dummy ar; ac_word=$2
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721 $as_echo_n "checking for $ac_word... " >&6; }
12722 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 case $orig_target_ranlib in
12726 [\\/]* | ?:[\\/]*)
12727 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731 for as_dir in $PATH
12733 IFS=$as_save_IFS
12734 test -z "$as_dir" && as_dir=.
12735 for ac_exec_ext in '' $ac_executable_extensions; do
12736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12737 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12739 break 2
12741 done
12742 done
12743 IFS=$as_save_IFS
12746 esac
12748 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12749 if test -n "$orig_target_ranlib"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12751 $as_echo "$orig_target_ranlib" >&6; }
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12760 else
12761 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12762 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12763 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case $orig_target_ranlib in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12781 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12785 done
12786 done
12787 IFS=$as_save_IFS
12790 esac
12792 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12793 if test -n "$orig_target_ranlib"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12795 $as_echo "$orig_target_ranlib" >&6; }
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12802 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12805 req_avail=yes
12806 if test "$orig_target_ranlib" = ""; then
12807 req_avail=no
12809 if test "$orig_target_ranlib" = "no"; then
12810 req_avail=no
12812 if test "$req_avail" = "no"; then
12813 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12816 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12817 if test "$cross_compiling" = "yes" ; then
12818 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12819 set dummy ${target_tool_prefix}nm; ac_word=$2
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if ${ac_cv_path_orig_target_nm+:} false; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 case $orig_target_nm in
12826 [\\/]* | ?:[\\/]*)
12827 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
12835 for ac_exec_ext in '' $ac_executable_extensions; do
12836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12837 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12839 break 2
12841 done
12842 done
12843 IFS=$as_save_IFS
12846 esac
12848 orig_target_nm=$ac_cv_path_orig_target_nm
12849 if test -n "$orig_target_nm"; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12851 $as_echo "$orig_target_nm" >&6; }
12852 else
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12858 else
12859 if test "$GCC" = "yes"; then
12860 aros_gcc_nm=`$CC -print-prog-name=nm`
12861 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12862 set dummy `basename $aros_gcc_nm`; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if ${ac_cv_path_orig_target_nm+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 case $orig_target_nm in
12869 [\\/]* | ?:[\\/]*)
12870 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874 for as_dir in `dirname $aros_gcc_nm`
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
12878 for ac_exec_ext in '' $ac_executable_extensions; do
12879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12880 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 break 2
12884 done
12885 done
12886 IFS=$as_save_IFS
12889 esac
12891 orig_target_nm=$ac_cv_path_orig_target_nm
12892 if test -n "$orig_target_nm"; then
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12894 $as_echo "$orig_target_nm" >&6; }
12895 else
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12902 if test "$orig_target_nm" = ""; then
12903 # Extract the first word of "nm", so it can be a program name with args.
12904 set dummy nm; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if ${ac_cv_path_orig_target_nm+:} false; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 case $orig_target_nm in
12911 [\\/]* | ?:[\\/]*)
12912 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12926 done
12927 done
12928 IFS=$as_save_IFS
12931 esac
12933 orig_target_nm=$ac_cv_path_orig_target_nm
12934 if test -n "$orig_target_nm"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12936 $as_echo "$orig_target_nm" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12945 else
12946 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12947 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12948 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_path_orig_target_nm+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 case $orig_target_nm in
12955 [\\/]* | ?:[\\/]*)
12956 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12970 done
12971 done
12972 IFS=$as_save_IFS
12975 esac
12977 orig_target_nm=$ac_cv_path_orig_target_nm
12978 if test -n "$orig_target_nm"; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12980 $as_echo "$orig_target_nm" >&6; }
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12987 orig_target_nm="$orig_target_nm $ac_tool_optarg"
12990 req_avail=yes
12991 if test "$orig_target_nm" = ""; then
12992 req_avail=no
12994 if test "$orig_target_nm" = "no"; then
12995 req_avail=no
12997 if test "$req_avail" = "no"; then
12998 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13001 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13002 if test "$cross_compiling" = "yes" ; then
13003 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13004 set dummy ${target_tool_prefix}strip; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if ${ac_cv_path_orig_target_strip+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 case $orig_target_strip in
13011 [\\/]* | ?:[\\/]*)
13012 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13026 done
13027 done
13028 IFS=$as_save_IFS
13031 esac
13033 orig_target_strip=$ac_cv_path_orig_target_strip
13034 if test -n "$orig_target_strip"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13036 $as_echo "$orig_target_strip" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13043 else
13044 if test "$GCC" = "yes"; then
13045 aros_gcc_strip=`$CC -print-prog-name=strip`
13046 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13047 set dummy `basename $aros_gcc_strip`; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if ${ac_cv_path_orig_target_strip+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 case $orig_target_strip in
13054 [\\/]* | ?:[\\/]*)
13055 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in `dirname $aros_gcc_strip`
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13069 done
13070 done
13071 IFS=$as_save_IFS
13074 esac
13076 orig_target_strip=$ac_cv_path_orig_target_strip
13077 if test -n "$orig_target_strip"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13079 $as_echo "$orig_target_strip" >&6; }
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13087 if test "$orig_target_strip" = ""; then
13088 # Extract the first word of "strip", so it can be a program name with args.
13089 set dummy strip; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if ${ac_cv_path_orig_target_strip+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 case $orig_target_strip in
13096 [\\/]* | ?:[\\/]*)
13097 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13111 done
13112 done
13113 IFS=$as_save_IFS
13116 esac
13118 orig_target_strip=$ac_cv_path_orig_target_strip
13119 if test -n "$orig_target_strip"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13121 $as_echo "$orig_target_strip" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13130 else
13131 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13132 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13133 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_path_orig_target_strip+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 case $orig_target_strip in
13140 [\\/]* | ?:[\\/]*)
13141 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13151 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13155 done
13156 done
13157 IFS=$as_save_IFS
13160 esac
13162 orig_target_strip=$ac_cv_path_orig_target_strip
13163 if test -n "$orig_target_strip"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13165 $as_echo "$orig_target_strip" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13172 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13175 req_avail=yes
13176 if test "$orig_target_strip" = ""; then
13177 req_avail=no
13179 if test "$orig_target_strip" = "no"; then
13180 req_avail=no
13182 if test "$req_avail" = "no"; then
13183 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13186 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13187 if test "$cross_compiling" = "yes" ; then
13188 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13189 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 case $orig_target_objcopy in
13196 [\\/]* | ?:[\\/]*)
13197 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13207 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13211 done
13212 done
13213 IFS=$as_save_IFS
13216 esac
13218 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13219 if test -n "$orig_target_objcopy"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13221 $as_echo "$orig_target_objcopy" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13228 else
13229 if test "$GCC" = "yes"; then
13230 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13231 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13232 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 case $orig_target_objcopy in
13239 [\\/]* | ?:[\\/]*)
13240 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in `dirname $aros_gcc_objcopy`
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13254 done
13255 done
13256 IFS=$as_save_IFS
13259 esac
13261 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13262 if test -n "$orig_target_objcopy"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13264 $as_echo "$orig_target_objcopy" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 if test "$orig_target_objcopy" = ""; then
13273 # Extract the first word of "objcopy", so it can be a program name with args.
13274 set dummy objcopy; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 case $orig_target_objcopy in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13301 esac
13303 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13304 if test -n "$orig_target_objcopy"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13306 $as_echo "$orig_target_objcopy" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13315 else
13316 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13317 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13318 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 case $orig_target_objcopy in
13325 [\\/]* | ?:[\\/]*)
13326 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13340 done
13341 done
13342 IFS=$as_save_IFS
13345 esac
13347 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13348 if test -n "$orig_target_objcopy"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13350 $as_echo "$orig_target_objcopy" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13357 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13360 req_avail=yes
13361 if test "$orig_target_objcopy" = ""; then
13362 req_avail=no
13364 if test "$orig_target_objcopy" = "no"; then
13365 req_avail=no
13367 if test "$req_avail" = "no"; then
13368 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13371 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13372 if test "$cross_compiling" = "yes" ; then
13373 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13374 set dummy ${target_tool_prefix}objdump; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_path_orig_target_objdump+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 case $orig_target_objdump in
13381 [\\/]* | ?:[\\/]*)
13382 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13392 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 break 2
13396 done
13397 done
13398 IFS=$as_save_IFS
13401 esac
13403 orig_target_objdump=$ac_cv_path_orig_target_objdump
13404 if test -n "$orig_target_objdump"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13406 $as_echo "$orig_target_objdump" >&6; }
13407 else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 $as_echo "no" >&6; }
13413 else
13414 if test "$GCC" = "yes"; then
13415 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13416 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13417 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419 $as_echo_n "checking for $ac_word... " >&6; }
13420 if ${ac_cv_path_orig_target_objdump+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 case $orig_target_objdump in
13424 [\\/]* | ?:[\\/]*)
13425 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in `dirname $aros_gcc_objdump`
13431 IFS=$as_save_IFS
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 break 2
13439 done
13440 done
13441 IFS=$as_save_IFS
13444 esac
13446 orig_target_objdump=$ac_cv_path_orig_target_objdump
13447 if test -n "$orig_target_objdump"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13449 $as_echo "$orig_target_objdump" >&6; }
13450 else
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13457 if test "$orig_target_objdump" = ""; then
13458 # Extract the first word of "objdump", so it can be a program name with args.
13459 set dummy objdump; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if ${ac_cv_path_orig_target_objdump+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 case $orig_target_objdump in
13466 [\\/]* | ?:[\\/]*)
13467 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13481 done
13482 done
13483 IFS=$as_save_IFS
13486 esac
13488 orig_target_objdump=$ac_cv_path_orig_target_objdump
13489 if test -n "$orig_target_objdump"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13491 $as_echo "$orig_target_objdump" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13500 else
13501 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13502 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13503 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if ${ac_cv_path_orig_target_objdump+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 case $orig_target_objdump in
13510 [\\/]* | ?:[\\/]*)
13511 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13525 done
13526 done
13527 IFS=$as_save_IFS
13530 esac
13532 orig_target_objdump=$ac_cv_path_orig_target_objdump
13533 if test -n "$orig_target_objdump"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13535 $as_echo "$orig_target_objdump" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13542 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13545 req_avail=yes
13546 if test "$orig_target_objdump" = ""; then
13547 req_avail=no
13549 if test "$orig_target_objdump" = "no"; then
13550 req_avail=no
13552 if test "$req_avail" = "no"; then
13553 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13557 if test "$kernel_tool_prefix" = "none" ; then
13558 # No kernel tools specified
13559 # Assume target tools == kernel tools with ELF wrapper
13560 aros_kernel_cc=$orig_target_cc
13561 aros_kernel_cxx=$orig_target_cxx
13562 aros_kernel_cpp=$orig_target_cpp
13563 aros_kernel_ld=$orig_target_ld
13564 aros_kernel_as=$orig_target_as
13565 aros_kernel_ar=$orig_target_ar
13566 aros_kernel_ranlib=$orig_target_ranlib
13567 aros_kernel_nm=$orig_target_nm
13568 aros_kernel_strip=$orig_target_strip
13569 aros_kernel_objcopy=$orig_target_objcopy
13570 aros_kernel_objdump=$orig_target_objdump
13571 use_kernel_cc_wrapper=yes
13574 # At this point, all aros_kernel_* and aros_target_*
13575 # tools should be set up correctly
13577 CC="$aros_kernel_cc $kernel_tool_flags"
13578 CPP="$aros_kernel_cpp"
13580 #-----------------------------------------------------------------------------
13582 # Find all the tools we need to compile. This could be cross-compiling
13583 # though! If that is the case we use the GNU form of the target and
13584 # simply add this to the front of the binary name. This is rather simple,
13585 # but it should work under most circumstances.
13587 # The default tools are to use the same as the host, but only if the
13588 # host and target CPU are the same. With GCC this is normally enough.
13591 aros_cc_pre=""
13592 aros_shared_ld="$aros_host_ld"
13594 aros_target_mkdep="$aros_host_mkdep"
13596 # The default tools executables to be linked to.
13597 if test "$rescomp" != ""; then
13598 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13599 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601 $as_echo_n "checking for $ac_word... " >&6; }
13602 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 case $aros_kernel_rescomp in
13606 [\\/]* | ?:[\\/]*)
13607 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $PATH
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13617 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13621 done
13622 done
13623 IFS=$as_save_IFS
13626 esac
13628 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13629 if test -n "$aros_kernel_rescomp"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13631 $as_echo "$aros_kernel_rescomp" >&6; }
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13638 req_avail=yes
13639 if test "$aros_kernel_rescomp" = ""; then
13640 req_avail=no
13642 if test "$aros_kernel_rescomp" = "no"; then
13643 req_avail=no
13645 if test "$req_avail" = "no"; then
13646 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13650 # Set up the sources for the symlink farm
13651 if test "$crosstools" = "yes"; then
13652 crosstools_target=tools-crosstools
13655 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13656 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13658 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13659 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13660 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13661 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13662 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13663 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13664 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13666 # aros_cc_pre is a variable that is added to the front of the compiler name
13667 # in the generated aros-gcc shell script. We need this to enable the cache
13668 # to work across cleaned builds. Also, support DISTCC using the correct
13669 # environment variable.
13672 if test "x${DISTCC}" != "x" ; then
13673 if test "x${CCACHE}" != "x" ; then
13674 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13675 else
13676 aros_cc_pre="${DISTCC} "
13678 else
13679 if test "x${CCACHE}" != "x" ; then
13680 aros_cc_pre="${CCACHE} "
13684 aros_target_nostdinc_cflags=-nostdinc
13686 aros_target_nostartup_ldflags=-nostartfiles
13688 aros_target_nix_ldflags=-nix
13690 aros_target_detach_ldflags=-detach
13692 aros_target_nostdlib_ldflags=-nostdlib
13695 # Target tools
13697 if test "$aros_target_toolchain" != "yes"; then
13698 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13699 if test "$GCC" = "yes"; then
13700 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13702 else
13703 # We do not know which c compiler version we are going to build and what we need to know
13704 # here is different for different versions so this will be set later during the
13705 # build of crosstools.
13706 if test "$aros_toolchain" = "gnu" ; then
13707 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13708 elif test "$aros_toolchain" = "llvm" ; then
13709 prefix="$AROS_CROSSTOOLSDIR/bin/"
13711 aros_target_cc_path=@aros_target_cc_path@
13713 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13714 aros_target_cc="${prefix}${toolchain_c_compiler}"
13715 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13716 aros_target_as="${prefix}${toolchain_as}"
13717 if test "${use_ld_wrapper}" = "yes"; then
13718 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13719 else
13720 aros_target_ld="${prefix}${toolchain_ld}"
13722 aros_toolchain_ld="${prefix}${toolchain_ld}"
13724 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13725 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13726 aros_target_objdump="${prefix}${toolchain_objdump}"
13727 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13728 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13729 aros_target_strip="${prefix}${toolchain_strip}"
13730 aros_plain_nm="${prefix}${toolchain_nm}"
13731 aros_plain_ar="${prefix}${toolchain_ar}"
13733 # Check whether --enable-includes was given.
13734 if test "${enable_includes+set}" = set; then :
13735 enableval=$enable_includes; aros_target_incl=$enable_includes
13736 else
13737 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13741 if test "$aros_kernel_includes" = ""; then
13742 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13743 aros_kernel_includes="-isystem $aros_target_incl"
13747 if test "$aros_kernel_includes" != "" ; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13749 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13750 if test "$aros_kernel_cc_includes" = "" ; then
13751 # Try to guess where the directory is.
13752 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13753 if test -d $aros_kernel_cc_includes; then
13754 # Check if there is also an include-fixed directory and add it
13755 # to kernel compiler's include path as it may contain some of
13756 # the headers we need.
13757 if test -d "$aros_kernel_cc_includes"-fixed; then
13758 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13760 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13761 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13762 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13764 else
13765 # The directory doesn't exist, we need to do some more work.
13766 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13768 # These are the headers we're looking for.
13769 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13770 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13771 zutil.h stdint.h"
13773 dirs=
13774 for h in $headers; do
13775 # Which other headers are needed by each of the above?
13776 deps=$(echo "#include <$h>" | \
13777 $aros_kernel_cc -E -M - 2>/dev/null | \
13778 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13780 # Copy all the needed headers to a directory beneath gendir.
13781 for d in $deps; do
13782 h=$(basename $d)
13783 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13784 sed -n "s,^.*/include\(/.*\),\1,p")
13785 ! test -d $dir && mkdir -p $dir
13786 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13787 done
13788 done
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13792 $as_echo "$aros_kernel_cc_includes" >&6; }
13793 # Adding -nostdinc to kernel includes as they are always used together.
13794 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13797 if test "$crosstools" != "yes"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13799 $as_echo_n "checking for the target compiler's include path... " >&6; }
13800 if test "$aros_target_cc_includes" = "" ; then
13801 #try to guess where the directory is
13802 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13803 if ! test -d $aros_target_cc_includes; then
13804 #the directory doesn't exist, we need to do some more work
13805 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13807 #these are the headers we're looking for
13808 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13809 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13810 zutil.h"
13812 dirs=
13813 for h in $headers; do
13814 #which other headers each of the above headers needs?
13815 deps=$(echo "#include <$h>" | \
13816 $orig_target_cc -E -M - 2>/dev/null | \
13817 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13819 #copy all the needed headers to a directory beneath gendir
13820 for d in $deps; do
13821 h=$(basename $d)
13822 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13823 sed -n "s,^.*/include\(/.*\),\1,p")
13824 ! test -d $dir && mkdir -p $dir
13825 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13826 done
13827 done
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13831 $as_echo "$aros_target_cc_includes" >&6; }
13832 else
13833 # We do not know which c compiler version we are going to build and what we need to know
13834 # here is different for different versions so this will be set later during the
13835 # build of crosstools.
13836 aros_target_cc_includes=@aros_target_cc_includes@
13840 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13841 # On GCC >= 4.0 -iquote should be used
13844 save_cc="$CC"
13845 save_cflags="$CFLAGS"
13846 CFLAGS="-iquote."
13847 kernel_cflags_iquote=$host_cflags_iquote
13848 kernel_cflags_iquote_end=$host_cflags_iquote_end
13849 if test "x-$cross_compiling" = "x-yes"; then
13850 CC="$aros_kernel_cc"
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13852 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13853 if test "x-$crosstools" != "x-yes"; then
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13858 main ()
13862 return 0;
13864 _ACEOF
13865 if ac_fn_c_try_compile "$LINENO"; then :
13866 use_no_stack_protector="yes"
13867 else
13868 use_no_stack_protector="no"
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 else
13872 # we do know it is supported for the smallest version of gcc we are going to build
13873 # we assume it's also supported by later versions
13874 use_no_stack_protector=yes
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13877 $as_echo "$use_no_stack_protector" >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13879 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13880 if test "x-$crosstools" != "x-yes"; then
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13885 main ()
13889 return 0;
13891 _ACEOF
13892 if ac_fn_c_try_compile "$LINENO"; then :
13893 has_iquote="yes"
13894 else
13895 has_iquote="no"
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898 else
13899 # we do know it is supported for the smallest version of gcc we are going to build
13900 # we assume it's also supported by later versions
13901 has_iquote=yes
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13904 $as_echo "$has_iquote" >&6; }
13905 if test "x-$has_iquote" = "x-yes" ; then
13906 kernel_cflags_iquote=-iquote
13907 kernel_cflags_iquote_end=
13908 else
13909 kernel_cflags_iquote=-I
13910 kernel_cflags_iquote_end=-I-
13913 if test "x-$use_no_stack_protector" = "x-yes" ; then
13914 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13917 #-----------------------------------------------------------------------------
13919 # Check if we can explicitly choose older version of symbol hashing
13921 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13922 CC="$aros_kernel_cc"
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13924 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13929 main ()
13933 return 0;
13935 _ACEOF
13936 if ac_fn_c_try_link "$LINENO"; then :
13937 use_hash_style="yes"
13938 else
13939 use_hash_style="no"
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13944 $as_echo "$use_hash_style" >&6; }
13945 if test "x-$use_hash_style" = "x-yes" ; then
13946 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13948 CC="$save_cc"
13949 CFLAGS="$save_cflags"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13958 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13960 # Check whether --with-resolution was given.
13961 if test "${with_resolution+set}" = set; then :
13962 withval=$with_resolution; resolution=$withval
13963 else
13964 resolution=none
13967 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13968 if test "$resolution" = "yes" ; then
13969 resolution="none"
13971 if test "$resolution" = "no" ; then
13972 resolution="none"
13974 if test "$resolution" != "none" ; then
13975 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13976 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13977 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13980 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13981 aros_cv_nominal_width=$aros_nominal_width
13982 aros_cv_nominal_height=$aros_nominal_height
13983 aros_cv_nominal_depth=$aros_nominal_depth
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13986 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13988 # Check whether --with-serial-debug was given.
13989 if test "${with_serial_debug+set}" = set; then :
13990 withval=$with_serial_debug; serial_debug=$withval
13991 else
13992 serial_debug=none
13995 if test "$aros_serial_debug" = 0 ; then
13996 serial_debug_forced=""
13997 if test "$serial_debug" = "yes" ; then
13998 serial_debug="1"
14000 if test "$serial_debug" = "no" ; then
14001 serial_debug="none"
14003 else
14004 serial_debug_forced="(forced)"
14005 serial_debug=$aros_serial_debug
14007 if test "$serial_debug" != "none" ; then
14008 aros_serial_debug=$serial_debug
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14010 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14011 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14017 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14018 # Check whether --enable-palm_debug_hack was given.
14019 if test "${enable_palm_debug_hack+set}" = set; then :
14020 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14021 else
14022 palm_debug_hack="no"
14025 if test "$palm_debug_hack" = "yes" ; then
14026 aros_palm_debug_hack="1"
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14029 $as_echo "$palm_debug_hack" >&6; }
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14032 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14033 # Check whether --enable-usb30_code was given.
14034 if test "${enable_usb30_code+set}" = set; then :
14035 enableval=$enable_usb30_code; usb30_code="yes"
14036 else
14037 usb30_code="no"
14040 if test "$usb30_code" = "yes" ; then
14041 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
14042 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14045 $as_echo "$usb30_code" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14048 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14049 # Check whether --enable-nesting_supervisor was given.
14050 if test "${enable_nesting_supervisor+set}" = set; then :
14051 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14052 else
14053 nesting_supervisor="no"
14056 if test "$nesting_supervisor" = "yes" ; then
14057 aros_nesting_supervisor="1"
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14060 $as_echo "$nesting_supervisor" >&6; }
14062 if test "$aros_enable_mmu" = "" ; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14064 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14065 # Check whether --enable-mmu was given.
14066 if test "${enable_mmu+set}" = set; then :
14067 enableval=$enable_mmu; aros_enable_mmu=$enableval
14068 else
14069 aros_enable_mmu="yes"
14072 if test "$aros_enable_mmu" = "" ; then
14073 aros_enable_mmu="yes"
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14076 $as_echo "$aros_enable_mmu" >&6; }
14078 if test "$aros_enable_mmu" = "no" ; then
14079 aros_enable_mmu="0"
14080 else
14081 aros_enable_mmu="1"
14085 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14087 if test "x-$need_dlopen" != "x-no" ; then
14088 save_libs="$LIBS"
14089 LIBS=""
14090 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14091 if test "x$ac_cv_func_dlopen" = xyes; then :
14092 have_dl="yes"
14093 else
14094 have_dl="no"
14097 if test "x-$have_dl" = "x-no" ; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14099 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14100 if ${ac_cv_lib_dl_dlopen+:} false; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-ldl $LIBS"
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 char dlopen ();
14116 main ()
14118 return dlopen ();
14120 return 0;
14122 _ACEOF
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 ac_cv_lib_dl_dlopen=yes
14125 else
14126 ac_cv_lib_dl_dlopen=no
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14133 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14134 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14135 have_dl="yes"
14136 aros_host_ldflags="$aros_host_ldflags -ldl"
14137 else
14138 have_dl="no"
14142 if test "x-$have_dl" = "x-no" ; then
14143 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14145 LIBS="$save_libs"
14149 # Check whether --enable-x11_hidd was given.
14150 if test "${enable_x11_hidd+set}" = set; then :
14151 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14152 else
14153 x11_hidd="$need_x11"
14156 case "x-$x11_hidd" in
14157 x-yes|x-no|x-auto) ;;
14158 *) x11_hidd="$need_x11" ;;
14159 esac
14161 ENABLE_X11=0
14163 if test "x-$x11_hidd" != "x-no" ; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14166 $as_echo_n "checking for X... " >&6; }
14169 # Check whether --with-x was given.
14170 if test "${with_x+set}" = set; then :
14171 withval=$with_x;
14174 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14175 if test "x$with_x" = xno; then
14176 # The user explicitly disabled X.
14177 have_x=disabled
14178 else
14179 case $x_includes,$x_libraries in #(
14180 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14181 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 # One or both of the vars are not set, and there is no cached value.
14185 ac_x_includes=no ac_x_libraries=no
14186 rm -f -r conftest.dir
14187 if mkdir conftest.dir; then
14188 cd conftest.dir
14189 cat >Imakefile <<'_ACEOF'
14190 incroot:
14191 @echo incroot='${INCROOT}'
14192 usrlibdir:
14193 @echo usrlibdir='${USRLIBDIR}'
14194 libdir:
14195 @echo libdir='${LIBDIR}'
14196 _ACEOF
14197 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14198 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14199 for ac_var in incroot usrlibdir libdir; do
14200 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14201 done
14202 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14203 for ac_extension in a so sl dylib la dll; do
14204 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14205 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14206 ac_im_usrlibdir=$ac_im_libdir; break
14208 done
14209 # Screen out bogus values from the imake configuration. They are
14210 # bogus both because they are the default anyway, and because
14211 # using them would break gcc on systems where it needs fixed includes.
14212 case $ac_im_incroot in
14213 /usr/include) ac_x_includes= ;;
14214 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14215 esac
14216 case $ac_im_usrlibdir in
14217 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14218 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14219 esac
14221 cd ..
14222 rm -f -r conftest.dir
14225 # Standard set of common directories for X headers.
14226 # Check X11 before X11Rn because it is often a symlink to the current release.
14227 ac_x_header_dirs='
14228 /usr/X11/include
14229 /usr/X11R7/include
14230 /usr/X11R6/include
14231 /usr/X11R5/include
14232 /usr/X11R4/include
14234 /usr/include/X11
14235 /usr/include/X11R7
14236 /usr/include/X11R6
14237 /usr/include/X11R5
14238 /usr/include/X11R4
14240 /usr/local/X11/include
14241 /usr/local/X11R7/include
14242 /usr/local/X11R6/include
14243 /usr/local/X11R5/include
14244 /usr/local/X11R4/include
14246 /usr/local/include/X11
14247 /usr/local/include/X11R7
14248 /usr/local/include/X11R6
14249 /usr/local/include/X11R5
14250 /usr/local/include/X11R4
14252 /usr/X386/include
14253 /usr/x386/include
14254 /usr/XFree86/include/X11
14256 /usr/include
14257 /usr/local/include
14258 /usr/unsupported/include
14259 /usr/athena/include
14260 /usr/local/x11r5/include
14261 /usr/lpp/Xamples/include
14263 /usr/openwin/include
14264 /usr/openwin/share/include'
14266 if test "$ac_x_includes" = no; then
14267 # Guess where to find include files, by looking for Xlib.h.
14268 # First, try using that file with no special directory specified.
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 #include <X11/Xlib.h>
14272 _ACEOF
14273 if ac_fn_c_try_cpp "$LINENO"; then :
14274 # We can compile using X headers with no special include directory.
14275 ac_x_includes=
14276 else
14277 for ac_dir in $ac_x_header_dirs; do
14278 if test -r "$ac_dir/X11/Xlib.h"; then
14279 ac_x_includes=$ac_dir
14280 break
14282 done
14284 rm -f conftest.err conftest.i conftest.$ac_ext
14285 fi # $ac_x_includes = no
14287 if test "$ac_x_libraries" = no; then
14288 # Check for the libraries.
14289 # See if we find them without any special options.
14290 # Don't add to $LIBS permanently.
14291 ac_save_LIBS=$LIBS
14292 LIBS="-lX11 $LIBS"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 #include <X11/Xlib.h>
14297 main ()
14299 XrmInitialize ()
14301 return 0;
14303 _ACEOF
14304 if ac_fn_c_try_link "$LINENO"; then :
14305 LIBS=$ac_save_LIBS
14306 # We can link X programs with no special library path.
14307 ac_x_libraries=
14308 else
14309 LIBS=$ac_save_LIBS
14310 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14312 # Don't even attempt the hair of trying to link an X program!
14313 for ac_extension in a so sl dylib la dll; do
14314 if test -r "$ac_dir/libX11.$ac_extension"; then
14315 ac_x_libraries=$ac_dir
14316 break 2
14318 done
14319 done
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323 fi # $ac_x_libraries = no
14325 case $ac_x_includes,$ac_x_libraries in #(
14326 no,* | *,no | *\'*)
14327 # Didn't find X, or a directory has "'" in its name.
14328 ac_cv_have_x="have_x=no";; #(
14330 # Record where we found X for the cache.
14331 ac_cv_have_x="have_x=yes\
14332 ac_x_includes='$ac_x_includes'\
14333 ac_x_libraries='$ac_x_libraries'"
14334 esac
14336 ;; #(
14337 *) have_x=yes;;
14338 esac
14339 eval "$ac_cv_have_x"
14340 fi # $with_x != no
14342 if test "$have_x" != yes; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14344 $as_echo "$have_x" >&6; }
14345 no_x=yes
14346 else
14347 # If each of the values was on the command line, it overrides each guess.
14348 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14349 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14350 # Update the cache value to reflect the command line values.
14351 ac_cv_have_x="have_x=yes\
14352 ac_x_includes='$x_includes'\
14353 ac_x_libraries='$x_libraries'"
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14355 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14359 if test -n "$x_includes"; then
14360 X_CFLAGS="$X_CFLAGS -I$x_includes"
14363 if test -n "$x_libraries"; then
14364 X_LIBS="$X_LIBS -L$x_libraries"
14367 if test "x-$no_x" = "x-yes" ; then
14369 if test "x-$x11_hidd" != "x-auto" ; then
14370 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14373 else
14374 host_x_gfx=yes
14375 ENABLE_X11=1
14377 aros_host_x11_cflags="$X_CFLAGS"
14378 aros_host_x11_ldflags="$X_LIBS -lX11"
14380 # Check whether --enable-x11_shm was given.
14381 if test "${enable_x11_shm+set}" = set; then :
14382 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14383 else
14384 x11_hidd_shm="auto"
14387 case "x-$x11_hidd_shm" in
14388 x-yes|x-no|x-auto) ;;
14389 *) x11_hidd_shm="auto" ;;
14390 esac
14392 have_xshm=no
14394 if test "x-$x11_hidd_shm" != "x-no" ; then
14396 for ac_header in sys/ipc.h
14397 do :
14398 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14399 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14400 cat >>confdefs.h <<_ACEOF
14401 #define HAVE_SYS_IPC_H 1
14402 _ACEOF
14406 done
14408 for ac_header in sys/shm.h
14409 do :
14410 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14411 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_SYS_SHM_H 1
14414 _ACEOF
14418 done
14421 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14423 save_cflags="$CFLAGS"
14424 save_ldflags="$LDFLAGS"
14425 CFLAGS="$CFLAGS $X_CFLAGS"
14426 LDFLAGS="$LDFLAGS $X_LIBS"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14428 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14429 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 ac_check_lib_save_LIBS=$LIBS
14433 LIBS="-lXext $LIBS"
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char XShmQueryExtension ();
14445 main ()
14447 return XShmQueryExtension ();
14449 return 0;
14451 _ACEOF
14452 if ac_fn_c_try_link "$LINENO"; then :
14453 ac_cv_lib_Xext_XShmQueryExtension=yes
14454 else
14455 ac_cv_lib_Xext_XShmQueryExtension=no
14457 rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext conftest.$ac_ext
14459 LIBS=$ac_check_lib_save_LIBS
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14462 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14463 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14464 have_xshm=yes
14467 CFLAGS="$save_cflags"
14468 LDFLAGS="$save_ldflags"
14472 if test "x-$have_xshm" = "x-yes" ; then
14473 DO_XSHM_SUPPORT="1"
14474 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14475 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14476 else
14477 DO_XSHM_SUPPORT="0"
14481 # Check whether --enable-x11_vidmode was given.
14482 if test "${enable_x11_vidmode+set}" = set; then :
14483 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14484 else
14485 x11_hidd_vidmode="auto"
14488 case "x-$x11_hidd_vidmode" in
14489 x-yes|x-no|x-auto) ;;
14490 *) x11_hidd_vidmode="auto" ;;
14491 esac
14493 have_vidmode=no
14495 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14497 save_cflags="$CFLAGS"
14498 save_ldflags="$LDFLAGS"
14499 CFLAGS="$CFLAGS $X_CFLAGS"
14500 LDFLAGS="$LDFLAGS $X_LIBS"
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14502 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14503 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 ac_check_lib_save_LIBS=$LIBS
14507 LIBS="-lXxf86vm $LIBS"
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 char XF86VidModeQueryExtension ();
14519 main ()
14521 return XF86VidModeQueryExtension ();
14523 return 0;
14525 _ACEOF
14526 if ac_fn_c_try_link "$LINENO"; then :
14527 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14528 else
14529 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14531 rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14536 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14537 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14538 have_vidmode=yes
14541 CFLAGS="$save_cflags"
14542 LDFLAGS="$save_ldflags"
14545 if test "x-$have_vidmode" = "x-yes" ; then
14546 DO_VIDMODE_SUPPORT="1"
14547 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14548 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14549 else
14550 DO_VIDMODE_SUPPORT="0"
14555 # Check whether --enable-sdl_hidd was given.
14556 if test "${enable_sdl_hidd+set}" = set; then :
14557 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14558 else
14559 sdl_hidd="auto"
14562 case "x-$sdl_hidd" in
14563 x-yes|x-no|x-auto) ;;
14564 *) sdl_hidd="auto" ;;
14565 esac
14567 if test "x-$sdl_hidd" != "x-no" ; then
14569 SDL_VERSION=1.2.5
14571 # Check whether --with-sdl-prefix was given.
14572 if test "${with_sdl_prefix+set}" = set; then :
14573 withval=$with_sdl_prefix; sdl_prefix="$withval"
14574 else
14575 sdl_prefix=""
14579 # Check whether --with-sdl-exec-prefix was given.
14580 if test "${with_sdl_exec_prefix+set}" = set; then :
14581 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14582 else
14583 sdl_exec_prefix=""
14586 # Check whether --enable-sdltest was given.
14587 if test "${enable_sdltest+set}" = set; then :
14588 enableval=$enable_sdltest;
14589 else
14590 enable_sdltest=yes
14594 if test x$sdl_exec_prefix != x ; then
14595 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14596 if test x${SDL_CONFIG+set} != xset ; then
14597 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14600 if test x$sdl_prefix != x ; then
14601 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14602 if test x${SDL_CONFIG+set} != xset ; then
14603 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14607 as_save_PATH="$PATH"
14608 if test "x$prefix" != xNONE; then
14609 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14611 # Extract the first word of "sdl-config", so it can be a program name with args.
14612 set dummy sdl-config; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 case $SDL_CONFIG in
14619 [\\/]* | ?:[\\/]*)
14620 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14624 for as_dir in $PATH
14626 IFS=$as_save_IFS
14627 test -z "$as_dir" && as_dir=.
14628 for ac_exec_ext in '' $ac_executable_extensions; do
14629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14630 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14632 break 2
14634 done
14635 done
14636 IFS=$as_save_IFS
14638 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14640 esac
14642 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14643 if test -n "$SDL_CONFIG"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14645 $as_echo "$SDL_CONFIG" >&6; }
14646 else
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648 $as_echo "no" >&6; }
14652 PATH="$as_save_PATH"
14653 min_sdl_version=$SDL_VERSION
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14655 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14656 no_sdl=""
14657 if test "$SDL_CONFIG" = "no" ; then
14658 no_sdl=yes
14659 else
14660 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14661 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14663 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14664 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14665 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14666 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14667 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14668 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14669 if test "x$enable_sdltest" = "xyes" ; then
14670 ac_save_CFLAGS="$CFLAGS"
14671 ac_save_CXXFLAGS="$CXXFLAGS"
14672 ac_save_LIBS="$LIBS"
14673 CFLAGS="$CFLAGS $SDL_CFLAGS"
14674 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14675 LIBS="$LIBS $SDL_LIBS"
14676 rm -f conf.sdltest
14677 if test "$cross_compiling" = yes; then :
14678 echo $ac_n "cross compiling; assumed OK... $ac_c"
14679 else
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 #include <stdio.h>
14684 #include <stdlib.h>
14685 #include <string.h>
14686 #include "SDL.h"
14688 char*
14689 my_strdup (char *str)
14691 char *new_str;
14693 if (str)
14695 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14696 strcpy (new_str, str);
14698 else
14699 new_str = NULL;
14701 return new_str;
14704 int main (int argc, char *argv[])
14706 int major, minor, micro;
14707 char *tmp_version;
14709 /* This hangs on some systems (?)
14710 system ("touch conf.sdltest");
14712 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14714 /* HP/UX 9 (%@#!) writes to sscanf strings */
14715 tmp_version = my_strdup("$min_sdl_version");
14716 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14717 printf("%s, bad version string\n", "$min_sdl_version");
14718 exit(1);
14721 if (($sdl_major_version > major) ||
14722 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14723 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14725 return 0;
14727 else
14729 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14730 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14731 printf("*** best to upgrade to the required version.\n");
14732 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14733 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14734 printf("*** config.cache before re-running configure\n");
14735 return 1;
14740 _ACEOF
14741 if ac_fn_c_try_run "$LINENO"; then :
14743 else
14744 no_sdl=yes
14746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14747 conftest.$ac_objext conftest.beam conftest.$ac_ext
14750 CFLAGS="$ac_save_CFLAGS"
14751 CXXFLAGS="$ac_save_CXXFLAGS"
14752 LIBS="$ac_save_LIBS"
14755 if test "x$no_sdl" = x ; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14757 $as_echo "yes" >&6; }
14758 have_sdl="yes"
14759 else
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14761 $as_echo "no" >&6; }
14762 if test "$SDL_CONFIG" = "no" ; then
14763 echo "*** The sdl-config script installed by SDL could not be found"
14764 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14765 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14766 echo "*** full path to sdl-config."
14767 else
14768 if test -f conf.sdltest ; then
14770 else
14771 echo "*** Could not run SDL test program, checking why..."
14772 CFLAGS="$CFLAGS $SDL_CFLAGS"
14773 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14774 LIBS="$LIBS $SDL_LIBS"
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14778 #include <stdio.h>
14779 #include "SDL.h"
14781 int main(int argc, char *argv[])
14782 { return 0; }
14783 #undef main
14784 #define main K_and_R_C_main
14787 main ()
14789 return 0;
14791 return 0;
14793 _ACEOF
14794 if ac_fn_c_try_link "$LINENO"; then :
14795 echo "*** The test program compiled, but did not run. This usually means"
14796 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14797 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14798 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14799 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14800 echo "*** is required on your system"
14801 echo "***"
14802 echo "*** If you have an old version installed, it is best to remove it, although"
14803 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14804 else
14805 echo "*** The test program failed to compile or link. See the file config.log for the"
14806 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14807 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14808 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14810 rm -f core conftest.err conftest.$ac_objext \
14811 conftest$ac_exeext conftest.$ac_ext
14812 CFLAGS="$ac_save_CFLAGS"
14813 CXXFLAGS="$ac_save_CXXFLAGS"
14814 LIBS="$ac_save_LIBS"
14817 SDL_CFLAGS=""
14818 SDL_LIBS=""
14819 have_sdl="no"
14823 rm -f conf.sdltest
14826 if test "x-$have_sdl" != "x-yes" ; then
14828 if test "x-$sdl_hidd" != "x-auto" ; then
14829 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14832 else
14833 host_sdl_gfx=yes
14834 aros_host_sdl_cflags=$SDL_CFLAGS
14835 aros_host_sdl_libs=$SDL_LIBS
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14843 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14844 # Check whether --enable-dbus was given.
14845 if test "${enable_dbus+set}" = set; then :
14846 enableval=$enable_dbus; dbus="yes"
14847 else
14848 dbus="no"
14851 if test "$dbus" = "yes" ; then
14852 ENABLE_DBUS=1
14853 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14854 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14855 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14856 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14857 else
14858 ENABLE_DBUS=0
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14861 $as_echo "$dbus" >&6; }
14863 if test "$use_kernel_cc_wrapper" = "yes" ; then
14864 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14868 # Generic
14882 # Compatability with other Amiga-like operation systems
14885 # Host related
14914 # Target Related
14989 # Hosted Graphics Related
15007 # Native version related
15012 # Palm native version related
15015 # Unix/Hosted version related
15018 # MMU related
15021 # Apple iOS related
15026 # ARM default GCC target related
15033 # Android related
15038 # DBUS related
15045 #X11 related
15048 # Debug related
15054 # Collect-aros stuff: "-ius" to ignore undefined symbols
15057 # C compiler related
15062 #ObjC compiler related
15065 #Java related
15068 # USB3.0 code
15071 case "$aros_flavour" in
15072 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15073 aros_flavour="emulation" ;;
15074 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15075 aros_flavour="emulation" ;;
15076 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15077 aros_flavour="standalone";;
15078 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15079 aros_flavour="standalone";;
15080 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15081 aros_flavour="native" ;;
15082 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15083 aros_flavour="native" ;;
15084 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15085 aros_flavour="linklib" ;;
15086 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15087 aros_flavour="palmnative" ;;
15088 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15089 aros_flavour="mac68knative" ;;
15090 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15091 aros_flavour="ppcnative" ;;
15092 esac
15094 if test ! -d ${aros_inc_dir} ; then
15095 ${MKDIR} ${aros_inc_dir}
15097 if test ! -d ${aros_geninc_dir} ; then
15098 ${MKDIR} ${aros_geninc_dir}
15100 if test ! -d ${aros_hostcfg_dir} ; then
15101 ${MKDIR} ${aros_hostcfg_dir}
15103 if test ! -d ${aros_targetcfg_dir} ; then
15104 ${MKDIR} ${aros_targetcfg_dir}
15106 if test ! -d ${aros_tools_dir} ; then
15107 ${MKDIR} ${aros_tools_dir}
15109 if test ! -d ${aros_scripts_dir} ; then
15110 ${MKDIR} ${aros_scripts_dir}
15113 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15116 # Generic build tools (metamake, etc)
15117 ac_config_commands="$ac_config_commands genmf-executable-support"
15119 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/mmakefile:compiler/include/mmakefile.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15122 # Binutils
15123 ac_config_commands="$ac_config_commands binutils-support"
15125 if test "${use_ld_wrapper}" = "yes"; then
15126 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"
15129 # Bare Elf support script and spec
15130 if test "${use_kernel_cc_wrapper}" = "yes"; then
15131 ac_config_commands="$ac_config_commands elf-compiler-support"
15133 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"
15137 # Host compiler support scripts and spec
15138 if test "${aros_target_toolchain}" = "no"; then
15139 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15141 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"
15145 # Android support
15146 if test "$aros_target_variant" == "android"; then
15147 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15151 # cmake helper
15152 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15155 cat >confcache <<\_ACEOF
15156 # This file is a shell script that caches the results of configure
15157 # tests run on this system so they can be shared between configure
15158 # scripts and configure runs, see configure's option --config-cache.
15159 # It is not useful on other systems. If it contains results you don't
15160 # want to keep, you may remove or edit it.
15162 # config.status only pays attention to the cache file if you give it
15163 # the --recheck option to rerun configure.
15165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15167 # following values.
15169 _ACEOF
15171 # The following way of writing the cache mishandles newlines in values,
15172 # but we know of no workaround that is simple, portable, and efficient.
15173 # So, we kill variables containing newlines.
15174 # Ultrix sh set writes to stderr and can't be redirected directly,
15175 # and sets the high bit in the cache file unless we assign to the vars.
15177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15178 eval ac_val=\$$ac_var
15179 case $ac_val in #(
15180 *${as_nl}*)
15181 case $ac_var in #(
15182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15184 esac
15185 case $ac_var in #(
15186 _ | IFS | as_nl) ;; #(
15187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15188 *) { eval $ac_var=; unset $ac_var;} ;;
15189 esac ;;
15190 esac
15191 done
15193 (set) 2>&1 |
15194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15195 *${as_nl}ac_space=\ *)
15196 # `set' does not quote correctly, so add quotes: double-quote
15197 # substitution turns \\\\ into \\, and sed turns \\ into \.
15198 sed -n \
15199 "s/'/'\\\\''/g;
15200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15201 ;; #(
15203 # `set' quotes correctly as required by POSIX, so do not add quotes.
15204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15206 esac |
15207 sort
15209 sed '
15210 /^ac_cv_env_/b end
15211 t clear
15212 :clear
15213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15214 t end
15215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15216 :end' >>confcache
15217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15218 if test -w "$cache_file"; then
15219 if test "x$cache_file" != "x/dev/null"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15221 $as_echo "$as_me: updating cache $cache_file" >&6;}
15222 if test ! -f "$cache_file" || test -h "$cache_file"; then
15223 cat confcache >"$cache_file"
15224 else
15225 case $cache_file in #(
15226 */* | ?:*)
15227 mv -f confcache "$cache_file"$$ &&
15228 mv -f "$cache_file"$$ "$cache_file" ;; #(
15230 mv -f confcache "$cache_file" ;;
15231 esac
15234 else
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15236 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15239 rm -f confcache
15241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15242 # Let make expand exec_prefix.
15243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15245 DEFS=-DHAVE_CONFIG_H
15247 ac_libobjs=
15248 ac_ltlibobjs=
15250 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15251 # 1. Remove the extension, and $U if already installed.
15252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15253 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15255 # will be set to the directory where LIBOBJS objects are built.
15256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15258 done
15259 LIBOBJS=$ac_libobjs
15261 LTLIBOBJS=$ac_ltlibobjs
15265 : "${CONFIG_STATUS=./config.status}"
15266 ac_write_fail=0
15267 ac_clean_files_save=$ac_clean_files
15268 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15270 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15271 as_write_fail=0
15272 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15273 #! $SHELL
15274 # Generated by $as_me.
15275 # Run this file to recreate the current configuration.
15276 # Compiler output produced by configure, useful for debugging
15277 # configure, is in config.log if it exists.
15279 debug=false
15280 ac_cs_recheck=false
15281 ac_cs_silent=false
15283 SHELL=\${CONFIG_SHELL-$SHELL}
15284 export SHELL
15285 _ASEOF
15286 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15287 ## -------------------- ##
15288 ## M4sh Initialization. ##
15289 ## -------------------- ##
15291 # Be more Bourne compatible
15292 DUALCASE=1; export DUALCASE # for MKS sh
15293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15294 emulate sh
15295 NULLCMD=:
15296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15297 # is contrary to our usage. Disable this feature.
15298 alias -g '${1+"$@"}'='"$@"'
15299 setopt NO_GLOB_SUBST
15300 else
15301 case `(set -o) 2>/dev/null` in #(
15302 *posix*) :
15303 set -o posix ;; #(
15304 *) :
15306 esac
15310 as_nl='
15312 export as_nl
15313 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15314 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15317 # Prefer a ksh shell builtin over an external printf program on Solaris,
15318 # but without wasting forks for bash or zsh.
15319 if test -z "$BASH_VERSION$ZSH_VERSION" \
15320 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15321 as_echo='print -r --'
15322 as_echo_n='print -rn --'
15323 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15324 as_echo='printf %s\n'
15325 as_echo_n='printf %s'
15326 else
15327 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15328 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15329 as_echo_n='/usr/ucb/echo -n'
15330 else
15331 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15332 as_echo_n_body='eval
15333 arg=$1;
15334 case $arg in #(
15335 *"$as_nl"*)
15336 expr "X$arg" : "X\\(.*\\)$as_nl";
15337 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15338 esac;
15339 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15341 export as_echo_n_body
15342 as_echo_n='sh -c $as_echo_n_body as_echo'
15344 export as_echo_body
15345 as_echo='sh -c $as_echo_body as_echo'
15348 # The user is always right.
15349 if test "${PATH_SEPARATOR+set}" != set; then
15350 PATH_SEPARATOR=:
15351 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15352 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15353 PATH_SEPARATOR=';'
15358 # IFS
15359 # We need space, tab and new line, in precisely that order. Quoting is
15360 # there to prevent editors from complaining about space-tab.
15361 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15362 # splitting by setting IFS to empty value.)
15363 IFS=" "" $as_nl"
15365 # Find who we are. Look in the path if we contain no directory separator.
15366 as_myself=
15367 case $0 in #((
15368 *[\\/]* ) as_myself=$0 ;;
15369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370 for as_dir in $PATH
15372 IFS=$as_save_IFS
15373 test -z "$as_dir" && as_dir=.
15374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15375 done
15376 IFS=$as_save_IFS
15379 esac
15380 # We did not find ourselves, most probably we were run as `sh COMMAND'
15381 # in which case we are not to be found in the path.
15382 if test "x$as_myself" = x; then
15383 as_myself=$0
15385 if test ! -f "$as_myself"; then
15386 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15387 exit 1
15390 # Unset variables that we do not need and which cause bugs (e.g. in
15391 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15392 # suppresses any "Segmentation fault" message there. '((' could
15393 # trigger a bug in pdksh 5.2.14.
15394 for as_var in BASH_ENV ENV MAIL MAILPATH
15395 do eval test x\${$as_var+set} = xset \
15396 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15397 done
15398 PS1='$ '
15399 PS2='> '
15400 PS4='+ '
15402 # NLS nuisances.
15403 LC_ALL=C
15404 export LC_ALL
15405 LANGUAGE=C
15406 export LANGUAGE
15408 # CDPATH.
15409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15413 # ----------------------------------------
15414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15416 # script with STATUS, using 1 if that was 0.
15417 as_fn_error ()
15419 as_status=$1; test $as_status -eq 0 && as_status=1
15420 if test "$4"; then
15421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15424 $as_echo "$as_me: error: $2" >&2
15425 as_fn_exit $as_status
15426 } # as_fn_error
15429 # as_fn_set_status STATUS
15430 # -----------------------
15431 # Set $? to STATUS, without forking.
15432 as_fn_set_status ()
15434 return $1
15435 } # as_fn_set_status
15437 # as_fn_exit STATUS
15438 # -----------------
15439 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15440 as_fn_exit ()
15442 set +e
15443 as_fn_set_status $1
15444 exit $1
15445 } # as_fn_exit
15447 # as_fn_unset VAR
15448 # ---------------
15449 # Portably unset VAR.
15450 as_fn_unset ()
15452 { eval $1=; unset $1;}
15454 as_unset=as_fn_unset
15455 # as_fn_append VAR VALUE
15456 # ----------------------
15457 # Append the text in VALUE to the end of the definition contained in VAR. Take
15458 # advantage of any shell optimizations that allow amortized linear growth over
15459 # repeated appends, instead of the typical quadratic growth present in naive
15460 # implementations.
15461 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15462 eval 'as_fn_append ()
15464 eval $1+=\$2
15466 else
15467 as_fn_append ()
15469 eval $1=\$$1\$2
15471 fi # as_fn_append
15473 # as_fn_arith ARG...
15474 # ------------------
15475 # Perform arithmetic evaluation on the ARGs, and store the result in the
15476 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15477 # must be portable across $(()) and expr.
15478 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15479 eval 'as_fn_arith ()
15481 as_val=$(( $* ))
15483 else
15484 as_fn_arith ()
15486 as_val=`expr "$@" || test $? -eq 1`
15488 fi # as_fn_arith
15491 if expr a : '\(a\)' >/dev/null 2>&1 &&
15492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15493 as_expr=expr
15494 else
15495 as_expr=false
15498 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15499 as_basename=basename
15500 else
15501 as_basename=false
15504 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15505 as_dirname=dirname
15506 else
15507 as_dirname=false
15510 as_me=`$as_basename -- "$0" ||
15511 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15512 X"$0" : 'X\(//\)$' \| \
15513 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15514 $as_echo X/"$0" |
15515 sed '/^.*\/\([^/][^/]*\)\/*$/{
15516 s//\1/
15519 /^X\/\(\/\/\)$/{
15520 s//\1/
15523 /^X\/\(\/\).*/{
15524 s//\1/
15527 s/.*/./; q'`
15529 # Avoid depending upon Character Ranges.
15530 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15531 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15532 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15533 as_cr_digits='0123456789'
15534 as_cr_alnum=$as_cr_Letters$as_cr_digits
15536 ECHO_C= ECHO_N= ECHO_T=
15537 case `echo -n x` in #(((((
15538 -n*)
15539 case `echo 'xy\c'` in
15540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15541 xy) ECHO_C='\c';;
15542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15543 ECHO_T=' ';;
15544 esac;;
15546 ECHO_N='-n';;
15547 esac
15549 rm -f conf$$ conf$$.exe conf$$.file
15550 if test -d conf$$.dir; then
15551 rm -f conf$$.dir/conf$$.file
15552 else
15553 rm -f conf$$.dir
15554 mkdir conf$$.dir 2>/dev/null
15556 if (echo >conf$$.file) 2>/dev/null; then
15557 if ln -s conf$$.file conf$$ 2>/dev/null; then
15558 as_ln_s='ln -s'
15559 # ... but there are two gotchas:
15560 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15561 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15562 # In both cases, we have to default to `cp -pR'.
15563 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15564 as_ln_s='cp -pR'
15565 elif ln conf$$.file conf$$ 2>/dev/null; then
15566 as_ln_s=ln
15567 else
15568 as_ln_s='cp -pR'
15570 else
15571 as_ln_s='cp -pR'
15573 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15574 rmdir conf$$.dir 2>/dev/null
15577 # as_fn_mkdir_p
15578 # -------------
15579 # Create "$as_dir" as a directory, including parents if necessary.
15580 as_fn_mkdir_p ()
15583 case $as_dir in #(
15584 -*) as_dir=./$as_dir;;
15585 esac
15586 test -d "$as_dir" || eval $as_mkdir_p || {
15587 as_dirs=
15588 while :; do
15589 case $as_dir in #(
15590 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15591 *) as_qdir=$as_dir;;
15592 esac
15593 as_dirs="'$as_qdir' $as_dirs"
15594 as_dir=`$as_dirname -- "$as_dir" ||
15595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15596 X"$as_dir" : 'X\(//\)[^/]' \| \
15597 X"$as_dir" : 'X\(//\)$' \| \
15598 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15599 $as_echo X"$as_dir" |
15600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15601 s//\1/
15604 /^X\(\/\/\)[^/].*/{
15605 s//\1/
15608 /^X\(\/\/\)$/{
15609 s//\1/
15612 /^X\(\/\).*/{
15613 s//\1/
15616 s/.*/./; q'`
15617 test -d "$as_dir" && break
15618 done
15619 test -z "$as_dirs" || eval "mkdir $as_dirs"
15620 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15623 } # as_fn_mkdir_p
15624 if mkdir -p . 2>/dev/null; then
15625 as_mkdir_p='mkdir -p "$as_dir"'
15626 else
15627 test -d ./-p && rmdir ./-p
15628 as_mkdir_p=false
15632 # as_fn_executable_p FILE
15633 # -----------------------
15634 # Test if FILE is an executable regular file.
15635 as_fn_executable_p ()
15637 test -f "$1" && test -x "$1"
15638 } # as_fn_executable_p
15639 as_test_x='test -x'
15640 as_executable_p=as_fn_executable_p
15642 # Sed expression to map a string onto a valid CPP name.
15643 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15645 # Sed expression to map a string onto a valid variable name.
15646 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15649 exec 6>&1
15650 ## ----------------------------------- ##
15651 ## Main body of $CONFIG_STATUS script. ##
15652 ## ----------------------------------- ##
15653 _ASEOF
15654 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 # Save the log message, to keep $0 and so on meaningful, and to
15658 # report actual input values of CONFIG_FILES etc. instead of their
15659 # values after options handling.
15660 ac_log="
15661 This file was extended by $as_me, which was
15662 generated by GNU Autoconf 2.69. Invocation command line was
15664 CONFIG_FILES = $CONFIG_FILES
15665 CONFIG_HEADERS = $CONFIG_HEADERS
15666 CONFIG_LINKS = $CONFIG_LINKS
15667 CONFIG_COMMANDS = $CONFIG_COMMANDS
15668 $ $0 $@
15670 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15673 _ACEOF
15675 case $ac_config_files in *"
15676 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15677 esac
15679 case $ac_config_headers in *"
15680 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15681 esac
15684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685 # Files that config.status was made for.
15686 config_files="$ac_config_files"
15687 config_headers="$ac_config_headers"
15688 config_commands="$ac_config_commands"
15690 _ACEOF
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15693 ac_cs_usage="\
15694 \`$as_me' instantiates files and other configuration actions
15695 from templates according to the current configuration. Unless the files
15696 and actions are specified as TAGs, all are instantiated by default.
15698 Usage: $0 [OPTION]... [TAG]...
15700 -h, --help print this help, then exit
15701 -V, --version print version number and configuration settings, then exit
15702 --config print configuration, then exit
15703 -q, --quiet, --silent
15704 do not print progress messages
15705 -d, --debug don't remove temporary files
15706 --recheck update $as_me by reconfiguring in the same conditions
15707 --file=FILE[:TEMPLATE]
15708 instantiate the configuration file FILE
15709 --header=FILE[:TEMPLATE]
15710 instantiate the configuration header FILE
15712 Configuration files:
15713 $config_files
15715 Configuration headers:
15716 $config_headers
15718 Configuration commands:
15719 $config_commands
15721 Report bugs to the package provider."
15723 _ACEOF
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15726 ac_cs_version="\\
15727 config.status
15728 configured by $0, generated by GNU Autoconf 2.69,
15729 with options \\"\$ac_cs_config\\"
15731 Copyright (C) 2012 Free Software Foundation, Inc.
15732 This config.status script is free software; the Free Software Foundation
15733 gives unlimited permission to copy, distribute and modify it."
15735 ac_pwd='$ac_pwd'
15736 srcdir='$srcdir'
15737 test -n "\$AWK" || AWK=awk
15738 _ACEOF
15740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15741 # The default lists apply if the user does not specify any file.
15742 ac_need_defaults=:
15743 while test $# != 0
15745 case $1 in
15746 --*=?*)
15747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15748 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15749 ac_shift=:
15751 --*=)
15752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15753 ac_optarg=
15754 ac_shift=:
15757 ac_option=$1
15758 ac_optarg=$2
15759 ac_shift=shift
15761 esac
15763 case $ac_option in
15764 # Handling of the options.
15765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15766 ac_cs_recheck=: ;;
15767 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15768 $as_echo "$ac_cs_version"; exit ;;
15769 --config | --confi | --conf | --con | --co | --c )
15770 $as_echo "$ac_cs_config"; exit ;;
15771 --debug | --debu | --deb | --de | --d | -d )
15772 debug=: ;;
15773 --file | --fil | --fi | --f )
15774 $ac_shift
15775 case $ac_optarg in
15776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15777 '') as_fn_error $? "missing file argument" ;;
15778 esac
15779 as_fn_append CONFIG_FILES " '$ac_optarg'"
15780 ac_need_defaults=false;;
15781 --header | --heade | --head | --hea )
15782 $ac_shift
15783 case $ac_optarg in
15784 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15785 esac
15786 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15787 ac_need_defaults=false;;
15788 --he | --h)
15789 # Conflict between --help and --header
15790 as_fn_error $? "ambiguous option: \`$1'
15791 Try \`$0 --help' for more information.";;
15792 --help | --hel | -h )
15793 $as_echo "$ac_cs_usage"; exit ;;
15794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15796 ac_cs_silent=: ;;
15798 # This is an error.
15799 -*) as_fn_error $? "unrecognized option: \`$1'
15800 Try \`$0 --help' for more information." ;;
15802 *) as_fn_append ac_config_targets " $1"
15803 ac_need_defaults=false ;;
15805 esac
15806 shift
15807 done
15809 ac_configure_extra_args=
15811 if $ac_cs_silent; then
15812 exec 6>/dev/null
15813 ac_configure_extra_args="$ac_configure_extra_args --silent"
15816 _ACEOF
15817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 if \$ac_cs_recheck; then
15819 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15820 shift
15821 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15822 CONFIG_SHELL='$SHELL'
15823 export CONFIG_SHELL
15824 exec "\$@"
15827 _ACEOF
15828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15829 exec 5>>config.log
15831 echo
15832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15833 ## Running $as_me. ##
15834 _ASBOX
15835 $as_echo "$ac_log"
15836 } >&5
15838 _ACEOF
15839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15841 # INIT-COMMANDS
15843 aros_tools_dir=${aros_tools_dir}
15846 aros_host_exe_suffix=${aros_host_exe_suffix}
15847 aros_tools_dir=${aros_tools_dir}
15848 aros_target_cpu=${aros_target_cpu}
15849 aros_target_arch=${aros_target_arch}
15850 aros_target_suffix=${aros_target_suffix}
15851 orig_target_nm=${orig_target_nm}
15852 orig_target_as=${orig_target_as}
15853 orig_target_ar=${orig_target_ar}
15854 orig_target_ranlib=${orig_target_ranlib}
15855 orig_target_objdump=${orig_target_objdump}
15856 orig_target_objcopy=${orig_target_objcopy}
15857 orig_target_strip=${orig_target_strip}
15858 aros_kernel_ld=${aros_kernel_ld}
15862 aros_host_exe_suffix=${aros_host_exe_suffix}
15863 aros_tools_dir=${aros_tools_dir}
15864 aros_target_cpu=${aros_target_cpu}
15865 aros_target_arch=${aros_target_arch}
15866 aros_target_suffix=${aros_target_suffix}
15867 aros_kernel_ld=${aros_kernel_ld}
15871 aros_host_exe_suffix=${aros_host_exe_suffix}
15872 aros_tools_dir=${aros_tools_dir}
15873 aros_target_cpu=${aros_target_cpu}
15874 aros_target_arch=${aros_target_arch}
15875 aros_target_suffix=${aros_target_suffix}
15879 _ACEOF
15881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883 # Handling of arguments.
15884 for ac_config_target in $ac_config_targets
15886 case $ac_config_target in
15887 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15888 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15889 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15890 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15891 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15892 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15893 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15894 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15895 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15896 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15897 "compiler/include/mmakefile") CONFIG_FILES="$CONFIG_FILES compiler/include/mmakefile:compiler/include/mmakefile.in" ;;
15898 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15899 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15900 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15901 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15902 "${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" ;;
15903 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15904 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15905 "${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" ;;
15906 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15907 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15908 "${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" ;;
15909 "${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" ;;
15910 "${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" ;;
15911 "${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" ;;
15912 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15914 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15915 esac
15916 done
15919 # If the user did not use the arguments to specify the items to instantiate,
15920 # then the envvar interface is used. Set only those that are not.
15921 # We use the long form for the default assignment because of an extremely
15922 # bizarre bug on SunOS 4.1.3.
15923 if $ac_need_defaults; then
15924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15929 # Have a temporary directory for convenience. Make it in the build tree
15930 # simply because there is no reason against having it here, and in addition,
15931 # creating and moving files from /tmp can sometimes cause problems.
15932 # Hook for its removal unless debugging.
15933 # Note that there is a small window in which the directory will not be cleaned:
15934 # after its creation but before its name has been assigned to `$tmp'.
15935 $debug ||
15937 tmp= ac_tmp=
15938 trap 'exit_status=$?
15939 : "${ac_tmp:=$tmp}"
15940 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15942 trap 'as_fn_exit 1' 1 2 13 15
15944 # Create a (secure) tmp directory for tmp files.
15947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15948 test -d "$tmp"
15949 } ||
15951 tmp=./conf$$-$RANDOM
15952 (umask 077 && mkdir "$tmp")
15953 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15954 ac_tmp=$tmp
15956 # Set up the scripts for CONFIG_FILES section.
15957 # No need to generate them if there are no CONFIG_FILES.
15958 # This happens for instance with `./config.status config.h'.
15959 if test -n "$CONFIG_FILES"; then
15962 ac_cr=`echo X | tr X '\015'`
15963 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15964 # But we know of no other shell where ac_cr would be empty at this
15965 # point, so we can use a bashism as a fallback.
15966 if test "x$ac_cr" = x; then
15967 eval ac_cr=\$\'\\r\'
15969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15971 ac_cs_awk_cr='\\r'
15972 else
15973 ac_cs_awk_cr=$ac_cr
15976 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15977 _ACEOF
15981 echo "cat >conf$$subs.awk <<_ACEOF" &&
15982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15983 echo "_ACEOF"
15984 } >conf$$subs.sh ||
15985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15986 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15987 ac_delim='%!_!# '
15988 for ac_last_try in false false false false false :; do
15989 . ./conf$$subs.sh ||
15990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15993 if test $ac_delim_n = $ac_delim_num; then
15994 break
15995 elif $ac_last_try; then
15996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15997 else
15998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16000 done
16001 rm -f conf$$subs.sh
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16005 _ACEOF
16006 sed -n '
16008 s/^/S["/; s/!.*/"]=/
16011 s/^[^!]*!//
16012 :repl
16013 t repl
16014 s/'"$ac_delim"'$//
16015 t delim
16018 s/\(.\{148\}\)..*/\1/
16019 t more1
16020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16023 b repl
16024 :more1
16025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16028 s/.\{148\}//
16029 t nl
16030 :delim
16032 s/\(.\{148\}\)..*/\1/
16033 t more2
16034 s/["\\]/\\&/g; s/^/"/; s/$/"/
16037 :more2
16038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16041 s/.\{148\}//
16042 t delim
16043 ' <conf$$subs.awk | sed '
16044 /^[^""]/{
16046 s/\n//
16048 ' >>$CONFIG_STATUS || ac_write_fail=1
16049 rm -f conf$$subs.awk
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 _ACAWK
16052 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16053 for (key in S) S_is_set[key] = 1
16054 FS = "\a"
16058 line = $ 0
16059 nfields = split(line, field, "@")
16060 substed = 0
16061 len = length(field[1])
16062 for (i = 2; i < nfields; i++) {
16063 key = field[i]
16064 keylen = length(key)
16065 if (S_is_set[key]) {
16066 value = S[key]
16067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16068 len += length(value) + length(field[++i])
16069 substed = 1
16070 } else
16071 len += 1 + keylen
16074 print line
16077 _ACAWK
16078 _ACEOF
16079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16082 else
16084 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16086 _ACEOF
16088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16090 # trailing colons and then remove the whole line if VPATH becomes empty
16091 # (actually we leave an empty line to preserve line numbers).
16092 if test "x$srcdir" = x.; then
16093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16095 s///
16096 s/^/:/
16097 s/[ ]*$/:/
16098 s/:\$(srcdir):/:/g
16099 s/:\${srcdir}:/:/g
16100 s/:@srcdir@:/:/g
16101 s/^:*//
16102 s/:*$//
16104 s/\(=[ ]*\).*/\1/
16106 s/\n//
16107 s/^[^=]*=[ ]*$//
16111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112 fi # test -n "$CONFIG_FILES"
16114 # Set up the scripts for CONFIG_HEADERS section.
16115 # No need to generate them if there are no CONFIG_HEADERS.
16116 # This happens for instance with `./config.status Makefile'.
16117 if test -n "$CONFIG_HEADERS"; then
16118 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16119 BEGIN {
16120 _ACEOF
16122 # Transform confdefs.h into an awk script `defines.awk', embedded as
16123 # here-document in config.status, that substitutes the proper values into
16124 # config.h.in to produce config.h.
16126 # Create a delimiter string that does not exist in confdefs.h, to ease
16127 # handling of long lines.
16128 ac_delim='%!_!# '
16129 for ac_last_try in false false :; do
16130 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16131 if test -z "$ac_tt"; then
16132 break
16133 elif $ac_last_try; then
16134 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16135 else
16136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16138 done
16140 # For the awk script, D is an array of macro values keyed by name,
16141 # likewise P contains macro parameters if any. Preserve backslash
16142 # newline sequences.
16144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16145 sed -n '
16146 s/.\{148\}/&'"$ac_delim"'/g
16147 t rset
16148 :rset
16149 s/^[ ]*#[ ]*define[ ][ ]*/ /
16150 t def
16152 :def
16153 s/\\$//
16154 t bsnl
16155 s/["\\]/\\&/g
16156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16157 D["\1"]=" \3"/p
16158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16160 :bsnl
16161 s/["\\]/\\&/g
16162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16163 D["\1"]=" \3\\\\\\n"\\/p
16164 t cont
16165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16166 t cont
16168 :cont
16170 s/.\{148\}/&'"$ac_delim"'/g
16171 t clear
16172 :clear
16173 s/\\$//
16174 t bsnlc
16175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16177 :bsnlc
16178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16179 b cont
16180 ' <confdefs.h | sed '
16181 s/'"$ac_delim"'/"\\\
16182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16185 for (key in D) D_is_set[key] = 1
16186 FS = "\a"
16188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16189 line = \$ 0
16190 split(line, arg, " ")
16191 if (arg[1] == "#") {
16192 defundef = arg[2]
16193 mac1 = arg[3]
16194 } else {
16195 defundef = substr(arg[1], 2)
16196 mac1 = arg[2]
16198 split(mac1, mac2, "(") #)
16199 macro = mac2[1]
16200 prefix = substr(line, 1, index(line, defundef) - 1)
16201 if (D_is_set[macro]) {
16202 # Preserve the white space surrounding the "#".
16203 print prefix "define", macro P[macro] D[macro]
16204 next
16205 } else {
16206 # Replace #undef with comments. This is necessary, for example,
16207 # in the case of _POSIX_SOURCE, which is predefined and required
16208 # on some systems where configure will not decide to define it.
16209 if (defundef == "undef") {
16210 print "/*", prefix defundef, macro, "*/"
16211 next
16215 { print }
16216 _ACAWK
16217 _ACEOF
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16220 fi # test -n "$CONFIG_HEADERS"
16223 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16224 shift
16225 for ac_tag
16227 case $ac_tag in
16228 :[FHLC]) ac_mode=$ac_tag; continue;;
16229 esac
16230 case $ac_mode$ac_tag in
16231 :[FHL]*:*);;
16232 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16233 :[FH]-) ac_tag=-:-;;
16234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16235 esac
16236 ac_save_IFS=$IFS
16237 IFS=:
16238 set x $ac_tag
16239 IFS=$ac_save_IFS
16240 shift
16241 ac_file=$1
16242 shift
16244 case $ac_mode in
16245 :L) ac_source=$1;;
16246 :[FH])
16247 ac_file_inputs=
16248 for ac_f
16250 case $ac_f in
16251 -) ac_f="$ac_tmp/stdin";;
16252 *) # Look for the file first in the build tree, then in the source tree
16253 # (if the path is not absolute). The absolute path cannot be DOS-style,
16254 # because $ac_f cannot contain `:'.
16255 test -f "$ac_f" ||
16256 case $ac_f in
16257 [\\/$]*) false;;
16258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16259 esac ||
16260 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16261 esac
16262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16263 as_fn_append ac_file_inputs " '$ac_f'"
16264 done
16266 # Let's still pretend it is `configure' which instantiates (i.e., don't
16267 # use $as_me), people would be surprised to read:
16268 # /* config.h. Generated by config.status. */
16269 configure_input='Generated from '`
16270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16271 `' by configure.'
16272 if test x"$ac_file" != x-; then
16273 configure_input="$ac_file. $configure_input"
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16275 $as_echo "$as_me: creating $ac_file" >&6;}
16277 # Neutralize special characters interpreted by sed in replacement strings.
16278 case $configure_input in #(
16279 *\&* | *\|* | *\\* )
16280 ac_sed_conf_input=`$as_echo "$configure_input" |
16281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16282 *) ac_sed_conf_input=$configure_input;;
16283 esac
16285 case $ac_tag in
16286 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16288 esac
16290 esac
16292 ac_dir=`$as_dirname -- "$ac_file" ||
16293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16294 X"$ac_file" : 'X\(//\)[^/]' \| \
16295 X"$ac_file" : 'X\(//\)$' \| \
16296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16297 $as_echo X"$ac_file" |
16298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16299 s//\1/
16302 /^X\(\/\/\)[^/].*/{
16303 s//\1/
16306 /^X\(\/\/\)$/{
16307 s//\1/
16310 /^X\(\/\).*/{
16311 s//\1/
16314 s/.*/./; q'`
16315 as_dir="$ac_dir"; as_fn_mkdir_p
16316 ac_builddir=.
16318 case "$ac_dir" in
16319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16322 # A ".." for each directory in $ac_dir_suffix.
16323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16324 case $ac_top_builddir_sub in
16325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16327 esac ;;
16328 esac
16329 ac_abs_top_builddir=$ac_pwd
16330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16331 # for backward compatibility:
16332 ac_top_builddir=$ac_top_build_prefix
16334 case $srcdir in
16335 .) # We are building in place.
16336 ac_srcdir=.
16337 ac_top_srcdir=$ac_top_builddir_sub
16338 ac_abs_top_srcdir=$ac_pwd ;;
16339 [\\/]* | ?:[\\/]* ) # Absolute name.
16340 ac_srcdir=$srcdir$ac_dir_suffix;
16341 ac_top_srcdir=$srcdir
16342 ac_abs_top_srcdir=$srcdir ;;
16343 *) # Relative name.
16344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16345 ac_top_srcdir=$ac_top_build_prefix$srcdir
16346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16347 esac
16348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16351 case $ac_mode in
16354 # CONFIG_FILE
16357 _ACEOF
16359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16360 # If the template does not know about datarootdir, expand it.
16361 # FIXME: This hack should be removed a few years after 2.60.
16362 ac_datarootdir_hack=; ac_datarootdir_seen=
16363 ac_sed_dataroot='
16364 /datarootdir/ {
16368 /@datadir@/p
16369 /@docdir@/p
16370 /@infodir@/p
16371 /@localedir@/p
16372 /@mandir@/p'
16373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16374 *datarootdir*) ac_datarootdir_seen=yes;;
16375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16377 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16378 _ACEOF
16379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16380 ac_datarootdir_hack='
16381 s&@datadir@&$datadir&g
16382 s&@docdir@&$docdir&g
16383 s&@infodir@&$infodir&g
16384 s&@localedir@&$localedir&g
16385 s&@mandir@&$mandir&g
16386 s&\\\${datarootdir}&$datarootdir&g' ;;
16387 esac
16388 _ACEOF
16390 # Neutralize VPATH when `$srcdir' = `.'.
16391 # Shell code in configure.ac might set extrasub.
16392 # FIXME: do we really want to maintain this feature?
16393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16394 ac_sed_extra="$ac_vpsub
16395 $extrasub
16396 _ACEOF
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16400 s|@configure_input@|$ac_sed_conf_input|;t t
16401 s&@top_builddir@&$ac_top_builddir_sub&;t t
16402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16403 s&@srcdir@&$ac_srcdir&;t t
16404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16405 s&@top_srcdir@&$ac_top_srcdir&;t t
16406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16407 s&@builddir@&$ac_builddir&;t t
16408 s&@abs_builddir@&$ac_abs_builddir&;t t
16409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16410 $ac_datarootdir_hack
16412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16413 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16416 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16417 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16418 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16420 which seems to be undefined. Please make sure it is defined" >&5
16421 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16422 which seems to be undefined. Please make sure it is defined" >&2;}
16424 rm -f "$ac_tmp/stdin"
16425 case $ac_file in
16426 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16427 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16428 esac \
16429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16433 # CONFIG_HEADER
16435 if test x"$ac_file" != x-; then
16437 $as_echo "/* $configure_input */" \
16438 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16439 } >"$ac_tmp/config.h" \
16440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16441 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16443 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16444 else
16445 rm -f "$ac_file"
16446 mv "$ac_tmp/config.h" "$ac_file" \
16447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16449 else
16450 $as_echo "/* $configure_input */" \
16451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16452 || as_fn_error $? "could not create -" "$LINENO" 5
16456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16457 $as_echo "$as_me: executing $ac_file commands" >&6;}
16459 esac
16462 case $ac_file$ac_mode in
16463 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16464 "binutils-support":C)
16465 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16466 mkdir -p $prefix
16467 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16469 chmod a+x ${prefix2}-ld
16471 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16472 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16473 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16474 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16475 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16476 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16477 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16479 "elf-compiler-support":C)
16480 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16481 mkdir -p $prefix
16482 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16484 chmod a+x ${prefix2}-gcc
16486 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16488 "host-compiler-wrapper-support":C)
16489 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16490 mkdir -p $prefix
16491 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16493 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16496 esac
16497 done # for ac_tag
16500 as_fn_exit 0
16501 _ACEOF
16502 ac_clean_files=$ac_clean_files_save
16504 test $ac_write_fail = 0 ||
16505 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16508 # configure is writing to config.log, and then calls config.status.
16509 # config.status does its own redirection, appending to config.log.
16510 # Unfortunately, on DOS this fails, as config.log is still kept open
16511 # by configure, so config.status won't be able to write to it; its
16512 # output is simply discarded. So we exec the FD to /dev/null,
16513 # effectively closing config.log, so it can be properly (re)opened and
16514 # appended to by config.status. When coming back to configure, we
16515 # need to make the FD available again.
16516 if test "$no_create" != yes; then
16517 ac_cs_success=:
16518 ac_config_status_args=
16519 test "$silent" = yes &&
16520 ac_config_status_args="$ac_config_status_args --quiet"
16521 exec 5>/dev/null
16522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16523 exec 5>>config.log
16524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16525 # would make configure fail if this is the last instruction.
16526 $ac_cs_success || as_fn_exit 1
16528 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16530 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16535 #XXX compatability...
16536 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16538 if test -n "$aros_shared_cflags" ; then
16539 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16540 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg