w.i.p changes
[AROS.git] / configure
blob7186c66a59ec6ec673e826fdb7df5bc55fe397ae
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_ldflags
628 aros_host_x11_cflags
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 ENABLE_X11
632 KERNEL_DBUS_INCLUDES
633 KERNEL_DBUS_KOBJ
634 DBUS_LIBFLAGS
635 DBUS_CFLAGS
636 ENABLE_DBUS
637 java_target
638 objc_target
639 target_binutils_version
640 gcc_target_cpu
641 ignore_undefined_symbols
642 aros_modules_debug
643 aros_stack_debug
644 aros_mungwall_debug
645 aros_debug
646 aros_android_antapk
647 aros_android_level
648 aros_ios_sdk
649 aros_ios_version
650 aros_ios_platform
651 aros_palm_debug_hack
652 gcc_default_mode
653 gcc_default_float_abi
654 gcc_default_fpu
655 gcc_default_cpu_tune
656 gcc_default_cpu
657 aros_nesting_supervisor
658 target_grub2_version
659 aros_enable_mmu
660 ENABLE_EXECSMP
661 PLATFORM_EXECSMP
662 aros_serial_debug
663 aros_nominal_depth
664 aros_nominal_height
665 aros_nominal_width
666 pci_hidd_target
667 use_libatomic
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_isa_extra
672 aros_kernel_isa_flags
673 aros_optimization_cflags
674 aros_config_coverage
675 aros_config_lto
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cxxflags
681 aros_debug_cflags
682 aros_debug_cppflags
683 aros_kernel_ldflags
684 aros_kernel_objcflags
685 aros_kernel_includes
686 aros_kernel_cflags
687 aros_kernel_cppflags
688 aros_kernel_sysroot
689 aros_config_ldflags
690 aros_config_aflags
691 aros_config_cxxflags
692 aros_config_cflags
693 aros_config_cppflags
694 aros_nowarn_flags
695 aros_warn_flags
696 aros_shared_ldflags
697 aros_shared_aflags
698 aros_shared_cflags
699 aros_cxx_libs
700 aros_c_libs
701 spec_obj_format
702 aros_object_format
703 aros_shared_ld
704 aros_shared_default
705 aros_target_nm
706 aros_target_strip
707 aros_target_objcopy
708 aros_target_objdump
709 aros_target_cc_path
710 aros_target_cc_includes
711 aros_target_ld
712 aros_target_as
713 aros_target_cpp
714 aros_target_cxx
715 aros_target_cc
716 aros_plain_ar
717 aros_plain_nm
718 aros_target_ranlib
719 aros_target_ar
720 aros_target_suffix
721 aros_target_variant
722 aros_target_cpu_mode
723 aros_target_cpu
724 aros_target_family
725 aros_target_arch
726 aros_target_bootloader
727 aros_target_iconset
728 aros_target_guitheme
729 aros_target_options
730 target_extra_cfg
731 make_extra_targetcfg
732 make_extra_commands
733 aros_elf_translate
734 aros_tools_dir
735 aros_host_lib_suffix
736 aros_host_exe_suffix
737 aros_host_mkargs
738 aros_host_mkdep
739 aros_host_debug
740 aros_host_ldflags
741 gnu89_inline
742 aros_host_cxxflags
743 aros_host_cflags
744 aros_host_cppflags
745 aros_host_make
746 aros_host_ar
747 aros_host_cxx
748 aros_host_cc
749 aros_host_def_cc
750 aros_host_cpp
751 aros_host_cpu
752 aros_host_arch
753 aros_cc_pre
754 host_extra_cfg
755 ax_cv_flex_version
756 host_stat_h__unused_used
757 aros_amigaos_compliance
758 AROS_PORTSSRCDIR
759 AROS_CROSSTOOLSDIR
760 SRCDIR
761 AROS_BUILDDIR_UNIX
762 AROS_BUILDDIR
763 aros_build_host
764 aros_toolchain_ld
765 aros_target_toolchain
766 aros_flavour_uc
767 aros_flavour
768 aros_cpu
769 aros_arch
770 SDL_LIBS
771 SDL_CFLAGS
772 SDL_CONFIG
773 XMKMF
774 kernel_cflags_iquote_end
775 kernel_cflags_iquote
776 host_cflags_iquote_end
777 host_cflags_iquote
778 aros_toolchain
779 aros_target_nostdlib_ldflags
780 aros_target_detach_ldflags
781 aros_target_nix_ldflags
782 aros_target_nostartup_ldflags
783 aros_target_nostdinc_cflags
784 aros_kernel_rescomp
785 orig_target_objdump
786 orig_target_objcopy
787 orig_target_strip
788 orig_target_nm
789 orig_target_ranlib
790 orig_target_ar
791 orig_target_as
792 orig_target_ld
793 orig_target_cxx
794 orig_target_cc
795 orig_target_cpp
796 aros_kernel_objdump
797 aros_kernel_objcopy
798 aros_kernel_strip
799 aros_kernel_nm
800 aros_kernel_ranlib
801 aros_kernel_ar
802 aros_kernel_as
803 aros_kernel_ld
804 aros_kernel_cxx
805 aros_kernel_cc
806 aros_kernel_cpp
807 target_gcc_version
809 android_tool
810 CCACHE
811 DISTCC
812 LIBOBJS
813 EGREP
814 GREP
816 TEST
819 libpng_incdir
820 libpng_libextra
821 libpng
822 arosconfig_use_libpngconfig
823 pkgpyexecdir
824 pyexecdir
825 pkgpythondir
826 pythondir
827 PYTHON_PLATFORM
828 PYTHON_EXEC_PREFIX
829 PYTHON_PREFIX
830 PYTHON_VERSION
831 PYTHON
832 PATCH
833 CHMOD
835 PPMTOILBM
836 PNGTOPNM
837 FLEX
838 BISON
841 UNIQ
842 SORT
843 TOUCH
844 MKDIR
845 ECHO
849 aros_host_strip
850 aros_host_ranlib
851 aros_host_full_ar
852 aros_host_cmd_ar
853 aros_host_automake
854 aros_host_autoheader
855 aros_host_autoconf
856 aros_host_aclocal
857 aros_host_ld
858 base_lld_name
859 MMAKE
862 ac_ct_CC
863 CFLAGS
865 OBJEXT
866 EXEEXT
867 ac_ct_CXX
868 CPPFLAGS
869 LDFLAGS
870 CXXFLAGS
872 host_os
873 host_vendor
874 host_cpu
875 host
876 build_os
877 build_vendor
878 build_cpu
879 build
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 runstatedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files=''
920 ac_user_opts='
921 enable_option_checking
922 with_c_compiler
923 with_cxx_compiler
924 enable_libpng_config
925 with_toolchain
926 enable_lto
927 enable_coverage
928 enable_build_type
929 enable_debug
930 enable_distcc
931 enable_ccache
932 with_kernel_gcc_version
933 with_optimization
934 with_paranoia
935 enable_target_variant
936 with_xcode
937 with_sdk_version
938 with_sdk
939 with_ndk
940 with_ndk_version
941 with_apk_version
942 enable_amigaos_compliance
943 with_kernel_toolchain_prefix
944 with_elf_toolchain_prefix
945 with_aros_toolchain
946 enable_crosstools
947 with_aros_toolchain_install
948 with_binutils_version
949 with_gcc_version
950 enable_objc
951 enable_java
952 with_cpu
953 with_fpu
954 with_float
955 with_portssources
956 with_bootloader
957 with_iconset
958 with_theme
959 enable_includes
960 with_resolution
961 with_serial_debug
962 enable_palm_debug_hack
963 enable_usb30_code
964 enable_nesting_supervisor
965 enable_mmu
966 enable_x11_hidd
967 with_x
968 enable_x11_shm
969 enable_x11_vidmode
970 enable_sdl_hidd
971 with_sdl_prefix
972 with_sdl_exec_prefix
973 enable_sdltest
974 enable_dbus
976 ac_precious_vars='build_alias
977 host_alias
978 target_alias
980 CXXFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
986 CFLAGS
988 PYTHON
989 XMKMF'
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 runstatedir='${localstatedir}/run'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1048 ac_prev=
1049 continue
1052 case $ac_option in
1053 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 *=) ac_optarg= ;;
1055 *) ac_optarg=yes ;;
1056 esac
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1062 ac_dashdash=yes ;;
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 ac_prev=bindir ;;
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1085 ac_prev=datadir ;;
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1113 ac_prev=docdir ;;
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 ac_prev=dvidir ;;
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1281 -runstatedir | --runstatedir | --runstatedi | --runstated \
1282 | --runstate | --runstat | --runsta | --runst | --runs \
1283 | --run | --ru | --r)
1284 ac_prev=runstatedir ;;
1285 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1286 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1287 | --run=* | --ru=* | --r=*)
1288 runstatedir=$ac_optarg ;;
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 ac_prev=sbindir ;;
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 | --sbi=* | --sb=*)
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1299 | --sha | --sh)
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 | --sha=* | --sh=*)
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1308 ac_prev=site ;;
1309 -site=* | --site=* | --sit=*)
1310 site=$ac_optarg ;;
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 ac_prev=srcdir ;;
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 verbose=yes ;;
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1335 -with-* | --with-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1360 "with_$ac_useropt"
1361 "*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval with_$ac_useropt=no ;;
1367 --x)
1368 # Obsolete; use --with-x.
1369 with_x=yes ;;
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1389 *=*)
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395 esac
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1407 esac
1408 done
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1417 no) ;;
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 esac
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir runstatedir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1431 case $ac_val in
1432 */ )
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1435 esac
1436 # Be sure to have absolute directory names.
1437 case $ac_val in
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440 esac
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1456 cross_compiling=yes
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $? "pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 s//\1/
1488 /^X\(\/\/\)[^/].*/{
1489 s//\1/
1492 /^X\(\/\/\)$/{
1493 s//\1/
1496 /^X\(\/\).*/{
1497 s//\1/
1500 s/.*/./; q'`
1501 srcdir=$ac_confdir
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 srcdir=..
1505 else
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515 pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 srcdir=.
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1539 cat <<_ACEOF
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1549 Configuration:
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 [PREFIX]
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1594 _ACEOF
1596 cat <<\_ACEOF
1598 X features:
1599 --x-includes=DIR X include files are in DIR
1600 --x-libraries=DIR X library files are in DIR
1602 System types:
1603 --build=BUILD configure for building on BUILD [guessed]
1604 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1605 _ACEOF
1608 if test -n "$ac_init_help"; then
1610 cat <<\_ACEOF
1612 Optional Features:
1613 --disable-option-checking ignore unrecognized --enable/--with options
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1616 --disable-libpng-config disable libpng-config test and configuration
1617 --enable-lto=yes|no Enable link time optimizations if the target
1618 compiler supports them (default=no)
1619 --enable-coverage=yes|no
1620 Enable coverage instrumentation if the target
1621 compiler supports it (default=no)
1622 --enable-build-type=TYPE
1623 Select the build type. Available types are:
1624 personal, nightly, snapshot, milestone, release. Do
1625 NOT use this option unless you know what you are
1626 doing! (default=personal)
1627 --enable-debug=list Enable different types of debug. Commas or
1628 whitespaces can be used to separate the items in the
1629 list. Available types of debug are: all, none,
1630 messages, stack, mungwall, modules, symbols. If no
1631 list is provided then "all" is assumed.
1632 (default=none)
1633 --enable-distcc Use distcc as a front end to the compiler
1634 (default=no).
1635 --enable-ccache Use ccache as a front end to the compiler
1636 (default=no).
1637 --enable-target-variant=NAME
1638 Enable a specific target variant (default=none)
1639 --enable-amigaos-compliance=VERSION
1640 Enforce userspace AmigaOS compliance to a specific
1641 KickStart version (default=none).
1642 --disable-crosstools Do not build cross-compiler toolchain
1643 --enable-objc Enable Objectve-C support (default=no)
1644 --enable-java Enable Java support (default=no)
1645 --enable-includes=dir Alternative system include directory
1646 --enable-palm-debug-hack
1647 Enable palm debug output hack in palm native
1648 (default=no)
1649 --enable-usb30-code Enable usb3.0 code (default=no)
1650 --enable-nesting-supervisor
1651 Enable nesting supervisor support in unix
1652 (default=no)
1653 --disable-mmu Disable MMU support (default=enabled)
1654 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1655 --enable-x11-shm use X11 shared memory (default=auto)
1656 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1657 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1658 --disable-sdltest Do not try to compile and run a test SDL program
1659 --enable-dbus Enable DBUS support via dbus.library (default=no)
1661 Optional Packages:
1662 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1663 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1664 --with-c-compiler=VERSION
1665 Use specified c compiler for building AROS
1666 --with-cxx-compiler=VERSION
1667 Use specified c++ compiler building AROS
1668 --with-toolchain=family Which toolchain family to crosscompile with
1669 (defaults to gnu)
1670 --with-kernel-gcc-version=VERSION
1671 Use gcc-VERSION for building bootstrap
1672 --with-optimization=FLAGS
1673 Use optimization flags FLAGS (e.g
1674 --with-optimization=-O2).
1675 --with-paranoia=(yes|no|FLAGS)
1676 Specific compiler warning FLAGS to enable for
1677 paranoia builds (default=-Wall -Werror)
1678 --with-xcode=PATH Specify XCode path for iOS targets
1679 (default=/Developer).
1680 --with-sdk-version=VERSION
1681 Use iOS SDK version VERSION (default=4.1).
1682 --with-sdk=PATH Specify Android SDK path
1683 (default=$default_android_sdk).
1684 --with-ndk=PATH Specify Android NDK path (default=none).
1685 --with-sdk-version=LEVEL
1686 Use Android SDK for API LEVEL (default=12).
1687 --with-ndk-version=LEVEL
1688 Use Android NDK for API LEVEL (default=9).
1689 --with-apk-version=(release|debug)
1690 Which version of AROSBootstrap.apk to compile.
1691 Release version needs key for signing, debug version
1692 will only run in emulator. (default=release)
1693 --with-kernel-toolchain-prefix=...
1694 Specify crosscompile toolchain prefix for kernel
1695 objects
1696 --with-elf-toolchain-prefix=...
1697 Specify crosscompile toolchain prefix to wrap for
1698 AROS objects
1699 --with-aros-toolchain=PREFIX
1700 Specify prebuilt AROS toolchain. Use yes for default
1701 name
1702 --with-aros-toolchain-install=DIR
1703 Where to install or search for cross tools binaries
1704 --with-binutils-version=VERSION
1705 Use binutils-VERSION for building AROS
1706 --with-gcc-version=VERSION
1707 Compile gcc-VERSION for AROS
1708 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1709 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1710 --with-float=<spec> Specify floating point ABI
1711 (default=$gcc_default_float_abi).
1712 --with-portssources=DIR Where to download sourcecode for external ports
1713 --with-bootloader=NAME Use a specific bootloader
1714 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1715 --with-theme=NAME Use a specific GUI Theme
1716 --with-resolution=XRESxYRESxDEPTH
1717 Default resolution of the initial WorkbenchScreen
1718 --with-serial-debug Enable serial debug output in native (default=no)
1719 --with-x use the X Window System
1720 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1721 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1723 Some influential environment variables:
1724 CXX C++ compiler command
1725 CXXFLAGS C++ compiler flags
1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1727 nonstandard directory <lib dir>
1728 LIBS libraries to pass to the linker, e.g. -l<library>
1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1730 you have headers in a nonstandard directory <include dir>
1731 CC C compiler command
1732 CFLAGS C compiler flags
1733 CPP C preprocessor
1734 PYTHON the Python interpreter
1735 XMKMF Path to xmkmf, Makefile generator for X Window System
1737 Use these variables to override the choices made by `configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1741 _ACEOF
1742 ac_status=$?
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1750 continue
1751 ac_builddir=.
1753 case "$ac_dir" in
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 esac ;;
1763 esac
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1769 case $srcdir in
1770 .) # We are building in place.
1771 ac_srcdir=.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1778 *) # Relative name.
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1782 esac
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1793 else
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 fi || ac_status=$?
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1797 done
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1802 cat <<\_ACEOF
1803 configure
1804 generated by GNU Autoconf 2.69
1806 Copyright (C) 2012 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1809 _ACEOF
1810 exit
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_cpp
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_c_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_try_link
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_header_mongrel
2063 # ac_fn_c_try_run LINENO
2064 # ----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_c_try_run ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 ac_retval=$ac_status
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_c_try_run
2105 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2106 # -------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_c_check_header_compile ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 #include <$2>
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_header_compile
2136 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2137 # ----------------------------------------------------
2138 # Tries to find if the field MEMBER exists in type AGGR, after including
2139 # INCLUDES, setting cache variable VAR accordingly.
2140 ac_fn_c_check_member ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2144 $as_echo_n "checking for $2.$3... " >&6; }
2145 if eval \${$4+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 static $2 ac_aggr;
2155 if (ac_aggr.$3)
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$4=yes"
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static $2 ac_aggr;
2171 if (sizeof ac_aggr.$3)
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 eval "$4=no"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$4
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_member
2193 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2194 # ---------------------------------------------
2195 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2196 # accordingly.
2197 ac_fn_c_check_decl ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 as_decl_name=`echo $2|sed 's/ *(.*//'`
2201 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2203 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 #ifndef $as_decl_name
2214 #ifdef __cplusplus
2215 (void) $as_decl_use;
2216 #else
2217 (void) $as_decl_name;
2218 #endif
2219 #endif
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 eval "$3=yes"
2227 else
2228 eval "$3=no"
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 } # ac_fn_c_check_decl
2239 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2240 # -------------------------------------------
2241 # Tests whether TYPE exists after having included INCLUDES, setting cache
2242 # variable VAR accordingly.
2243 ac_fn_c_check_type ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 eval "$3=no"
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 if (sizeof ($2))
2259 return 0;
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 if (sizeof (($2)))
2272 return 0;
2274 return 0;
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2279 else
2280 eval "$3=yes"
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_type
2293 # ac_fn_c_check_func LINENO FUNC VAR
2294 # ----------------------------------
2295 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2296 ac_fn_c_check_func ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval \${$3+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2308 #define $2 innocuous_$2
2310 /* System header to define __stub macros and hopefully few prototypes,
2311 which can conflict with char $2 (); below.
2312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2313 <limits.h> exists even on freestanding compilers. */
2315 #ifdef __STDC__
2316 # include <limits.h>
2317 #else
2318 # include <assert.h>
2319 #endif
2321 #undef $2
2323 /* Override any GCC internal prototype to avoid an error.
2324 Use char because int might match the return type of a GCC
2325 builtin and then its argument prototype would still apply. */
2326 #ifdef __cplusplus
2327 extern "C"
2328 #endif
2329 char $2 ();
2330 /* The GNU C library defines this for functions which it implements
2331 to always fail with ENOSYS. Some functions are actually named
2332 something starting with __ and the normal name is an alias. */
2333 #if defined __stub_$2 || defined __stub___$2
2334 choke me
2335 #endif
2338 main ()
2340 return $2 ();
2342 return 0;
2344 _ACEOF
2345 if ac_fn_c_try_link "$LINENO"; then :
2346 eval "$3=yes"
2347 else
2348 eval "$3=no"
2350 rm -f core conftest.err conftest.$ac_objext \
2351 conftest$ac_exeext conftest.$ac_ext
2353 eval ac_res=\$$3
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 } # ac_fn_c_check_func
2359 cat >config.log <<_ACEOF
2360 This file contains any messages produced by compilers while
2361 running configure, to aid debugging if configure makes a mistake.
2363 It was created by $as_me, which was
2364 generated by GNU Autoconf 2.69. Invocation command line was
2366 $ $0 $@
2368 _ACEOF
2369 exec 5>>config.log
2371 cat <<_ASUNAME
2372 ## --------- ##
2373 ## Platform. ##
2374 ## --------- ##
2376 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2382 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2385 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2386 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2387 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2389 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2390 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2391 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2393 _ASUNAME
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 $as_echo "PATH: $as_dir"
2401 done
2402 IFS=$as_save_IFS
2404 } >&5
2406 cat >&5 <<_ACEOF
2409 ## ----------- ##
2410 ## Core tests. ##
2411 ## ----------- ##
2413 _ACEOF
2416 # Keep a trace of the command line.
2417 # Strip out --no-create and --no-recursion so they do not pile up.
2418 # Strip out --silent because we don't want to record it for future runs.
2419 # Also quote any args containing shell meta-characters.
2420 # Make two passes to allow for proper duplicate-argument suppression.
2421 ac_configure_args=
2422 ac_configure_args0=
2423 ac_configure_args1=
2424 ac_must_keep_next=false
2425 for ac_pass in 1 2
2427 for ac_arg
2429 case $ac_arg in
2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432 | -silent | --silent | --silen | --sile | --sil)
2433 continue ;;
2434 *\'*)
2435 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 esac
2437 case $ac_pass in
2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 as_fn_append ac_configure_args1 " '$ac_arg'"
2441 if test $ac_must_keep_next = true; then
2442 ac_must_keep_next=false # Got value, back to normal.
2443 else
2444 case $ac_arg in
2445 *=* | --config-cache | -C | -disable-* | --disable-* \
2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448 | -with-* | --with-* | -without-* | --without-* | --x)
2449 case "$ac_configure_args0 " in
2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451 esac
2453 -* ) ac_must_keep_next=true ;;
2454 esac
2456 as_fn_append ac_configure_args " '$ac_arg'"
2458 esac
2459 done
2460 done
2461 { ac_configure_args0=; unset ac_configure_args0;}
2462 { ac_configure_args1=; unset ac_configure_args1;}
2464 # When interrupted or exit'd, cleanup temporary files, and complete
2465 # config.log. We remove comments because anyway the quotes in there
2466 # would cause problems or look ugly.
2467 # WARNING: Use '\'' to represent an apostrophe within the trap.
2468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469 trap 'exit_status=$?
2470 # Save into config.log some information that might help in debugging.
2472 echo
2474 $as_echo "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2477 echo
2478 # The following way of writing the cache mishandles newlines in values,
2480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in #(
2483 *${as_nl}*)
2484 case $ac_var in #(
2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 esac
2488 case $ac_var in #(
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2492 esac ;;
2493 esac
2494 done
2495 (set) 2>&1 |
2496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2498 sed -n \
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 ;; #(
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 esac |
2506 sort
2508 echo
2510 $as_echo "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2513 echo
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2524 if test -n "$ac_subst_files"; then
2525 $as_echo "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2528 echo
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2532 case $ac_val in
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 esac
2535 $as_echo "$ac_var='\''$ac_val'\''"
2536 done | sort
2537 echo
2540 if test -s confdefs.h; then
2541 $as_echo "## ----------- ##
2542 ## confdefs.h. ##
2543 ## ----------- ##"
2544 echo
2545 cat confdefs.h
2546 echo
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2551 } >&5
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 exit $exit_status
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558 done
2559 ac_signal=0
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 $as_echo "/* confdefs.h */" > confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 _ACEOF
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574 _ACEOF
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_STRING "$PACKAGE_STRING"
2582 _ACEOF
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_URL "$PACKAGE_URL"
2590 _ACEOF
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2595 ac_site_file1=NONE
2596 ac_site_file2=NONE
2597 if test -n "$CONFIG_SITE"; then
2598 # We do not want a PATH search for config.site.
2599 case $CONFIG_SITE in #((
2600 -*) ac_site_file1=./$CONFIG_SITE;;
2601 */*) ac_site_file1=$CONFIG_SITE;;
2602 *) ac_site_file1=./$CONFIG_SITE;;
2603 esac
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2607 else
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2618 . "$ac_site_file" \
2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "failed to load site script $ac_site_file
2622 See \`config.log' for more details" "$LINENO" 5; }
2624 done
2626 if test -r "$cache_file"; then
2627 # Some versions of bash will fail to source /dev/null (special files
2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631 $as_echo "$as_me: loading cache $cache_file" >&6;}
2632 case $cache_file in
2633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634 *) . "./$cache_file";;
2635 esac
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639 $as_echo "$as_me: creating cache $cache_file" >&6;}
2640 >$cache_file
2643 as_fn_append ac_header_list " stdlib.h"
2644 as_fn_append ac_header_list " unistd.h"
2645 as_fn_append ac_header_list " sys/param.h"
2646 # Check that the precious variables saved in the cache have kept the same
2647 # value.
2648 ac_cache_corrupted=false
2649 for ac_var in $ac_precious_vars; do
2650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2651 eval ac_new_set=\$ac_env_${ac_var}_set
2652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2653 eval ac_new_val=\$ac_env_${ac_var}_value
2654 case $ac_old_set,$ac_new_set in
2655 set,)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2657 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,set)
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2661 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2663 ,);;
2665 if test "x$ac_old_val" != "x$ac_new_val"; then
2666 # differences in whitespace do not lead to failure.
2667 ac_old_val_w=`echo x $ac_old_val`
2668 ac_new_val_w=`echo x $ac_new_val`
2669 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2671 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2672 ac_cache_corrupted=:
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2675 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2676 eval $ac_var=\$ac_old_val
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2679 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2681 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2682 fi;;
2683 esac
2684 # Pass precious variables to config.status.
2685 if test "$ac_new_set" = set; then
2686 case $ac_new_val in
2687 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2688 *) ac_arg=$ac_var=$ac_new_val ;;
2689 esac
2690 case " $ac_configure_args " in
2691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2692 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2693 esac
2695 done
2696 if $ac_cache_corrupted; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2700 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2701 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2703 ## -------------------- ##
2704 ## Main body of script. ##
2705 ## -------------------- ##
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 ac_aux_dir=
2716 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2717 if test -f "$ac_dir/install-sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install-sh -c"
2720 break
2721 elif test -f "$ac_dir/install.sh"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/install.sh -c"
2724 break
2725 elif test -f "$ac_dir/shtool"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 break
2730 done
2731 if test -z "$ac_aux_dir"; then
2732 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2735 # These three variables are undocumented and unsupported,
2736 # and are intended to be withdrawn in a future Autoconf release.
2737 # They can cause serious problems if a builder's source tree is in a directory
2738 # whose full name contains unusual characters.
2739 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2740 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2741 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2745 # Check what host we are running on.
2746 # If a target is not suggested, we use this one.
2747 # Note that what we call a target, Autoconf calls a host.
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2771 esac
2772 build=$ac_cv_build
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_build
2775 shift
2776 build_cpu=$1
2777 build_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 build_os=$*
2782 IFS=$ac_save_IFS
2783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$host_alias" = x; then
2792 ac_cv_host=$ac_cv_build
2793 else
2794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2801 case $ac_cv_host in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2804 esac
2805 host=$ac_cv_host
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_host
2808 shift
2809 host_cpu=$1
2810 host_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 host_os=$*
2815 IFS=$ac_save_IFS
2816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2820 # Default versions for the gnu tools we build
2821 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2822 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2823 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2824 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2825 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2826 default_grub2_version="2.02"
2827 target_grub2_version=$default_grub2_version
2829 # The AROS target is slightly different to the normal GNU style
2830 # format. We don't have the middle part, and we reverse the order
2831 # of the $(CPU) and $(OS) bits.
2833 # Don't strip the version of the target yet, it might be
2834 # useful on some systems.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2837 $as_echo_n "checking for AROS style target... " >&6; }
2839 if test "$target" = "NONE" ; then
2840 target=$host_os-$host_cpu
2841 else
2842 if test "$target" = "" ; then
2843 target=$host_os-$host_cpu
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2847 $as_echo "$target" >&6; }
2849 if test "$host_os" = "mingw32" ; then
2850 PWDCMD="pwd -W"
2853 # Don't know where else to put this...
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2855 $as_echo_n "checking building AROS in... " >&6; }
2856 AROS_BUILDDIR=`${PWDCMD-pwd}`
2857 AROS_BUILDDIR_UNIX=${PWD}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2859 $as_echo "$AROS_BUILDDIR" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2862 $as_echo_n "checking AROS source in... " >&6; }
2863 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2864 SRCDIR=${srcpwd}
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2866 $as_echo "$SRCDIR" >&6; }
2868 # Parse the target field into something useful.
2870 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2871 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2874 # Some debug output, to be removed again.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2876 $as_echo_n "checking for target system (debug output)... " >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2878 $as_echo "$target_os" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2880 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2882 $as_echo "$target_cpu" >&6; }
2884 aros_nominal_width=800
2885 aros_nominal_height=600
2886 aros_nominal_depth=4
2889 HOST_WANTS_X11=
2890 HOST_WANTS_GLX=
2891 HOST_WANTS_SDL=
2892 HOST_WANTS_DBUS=
2893 HOST_WANTS_DLOPEN=
2895 default_c_compilers="gcc clang cc"
2897 # Check whether --with-c-compiler was given.
2898 if test "${with_c_compiler+set}" = set; then :
2899 withval=$with_c_compiler; use_c_compiler="$withval"
2900 else
2901 use_c_compiler=""
2904 if test "$use_c_compiler" = ""; then
2905 host_c_compilers="$default_c_compilers"
2906 else
2907 host_c_compilers="$use_c_compiler"
2908 CC=$use_c_compiler
2911 default_cxx_compilers="g++ clang++ c++"
2913 # Check whether --with-cxx-compiler was given.
2914 if test "${with_cxx_compiler+set}" = set; then :
2915 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2916 else
2917 use_cxx_compiler=""
2920 if test "$use_cxx_compiler" = ""; then
2921 host_cxx_compilers="$default_cxx_compilers"
2922 else
2923 host_cxx_compilers="$use_cxx_compiler"
2924 CXX=$use_cxx_compiler
2928 # The first step is to find the host binaries.
2929 # Check for a compiler.
2930 # Due to a bug in autoconf check for c++ compiler first.
2931 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2932 ac_ext=cpp
2933 ac_cpp='$CXXCPP $CPPFLAGS'
2934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2937 if test -z "$CXX"; then
2938 if test -n "$CCC"; then
2939 CXX=$CCC
2940 else
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in ${host_cxx_compilers}
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CXX+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$CXX"; then
2952 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 CXX=$ac_cv_prog_CXX
2972 if test -n "$CXX"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2974 $as_echo "$CXX" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$CXX" && break
2982 done
2984 if test -z "$CXX"; then
2985 ac_ct_CXX=$CXX
2986 for ac_prog in ${host_cxx_compilers}
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_CXX"; then
2996 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CXX="$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3016 if test -n "$ac_ct_CXX"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3018 $as_echo "$ac_ct_CXX" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$ac_ct_CXX" && break
3026 done
3028 if test "x$ac_ct_CXX" = x; then
3029 CXX="g++"
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 CXX=$ac_ct_CXX
3043 # Provide some information about the compiler.
3044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3045 set X $ac_compile
3046 ac_compiler=$2
3047 for ac_option in --version -v -V -qversion; do
3048 { { ac_try="$ac_compiler $ac_option >&5"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056 ac_status=$?
3057 if test -s conftest.err; then
3058 sed '10a\
3059 ... rest of stderr output deleted ...
3060 10q' conftest.err >conftest.er1
3061 cat conftest.er1 >&5
3063 rm -f conftest.er1 conftest.err
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }
3066 done
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3072 main ()
3076 return 0;
3078 _ACEOF
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3083 # of exeext.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3085 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3086 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # The possible output files:
3089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3091 ac_rmfiles=
3092 for ac_file in $ac_files
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097 esac
3098 done
3099 rm -f $ac_rmfiles
3101 if { { ac_try="$ac_link_default"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link_default") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3116 # Autoconf.
3117 for ac_file in $ac_files ''
3119 test -f "$ac_file" || continue
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3123 [ab].out )
3124 # We found the default executable, but exeext='' is most
3125 # certainly right.
3126 break;;
3127 *.* )
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129 then :; else
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3136 # actually working.
3137 break;;
3139 break;;
3140 esac
3141 done
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3144 else
3145 ac_file=''
3147 if test -z "$ac_file"; then :
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error 77 "C++ compiler cannot create executables
3156 See \`config.log' for more details" "$LINENO" 5; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3162 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164 $as_echo "$ac_file" >&6; }
3165 ac_exeext=$ac_cv_exeext
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170 $as_echo_n "checking for suffix of executables... " >&6; }
3171 if { { ac_try="$ac_link"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; then :
3182 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3184 # work properly (i.e., refer to `conftest.exe'), while it won't with
3185 # `rm'.
3186 for ac_file in conftest.exe conftest conftest.*; do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 break;;
3192 * ) break;;
3193 esac
3194 done
3195 else
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest conftest$ac_cv_exeext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203 $as_echo "$ac_cv_exeext" >&6; }
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3207 ac_exeext=$EXEEXT
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210 #include <stdio.h>
3212 main ()
3214 FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3218 return 0;
3220 _ACEOF
3221 ac_clean_files="$ac_clean_files conftest.out"
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225 $as_echo_n "checking whether we are cross compiling... " >&6; }
3226 if test "$cross_compiling" != yes; then
3227 { { ac_try="$ac_link"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; }; then
3249 cross_compiling=no
3250 else
3251 if test "$cross_compiling" = maybe; then
3252 cross_compiling=yes
3253 else
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot run C++ compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details" "$LINENO" 5; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263 $as_echo "$cross_compiling" >&6; }
3265 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if ${ac_cv_objext+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compile") 2>&5
3292 ac_status=$?
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300 break;;
3301 esac
3302 done
3303 else
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details" "$LINENO" 5; }
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3317 ac_objext=$OBJEXT
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3320 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3327 main ()
3329 #ifndef __GNUC__
3330 choke me
3331 #endif
3334 return 0;
3336 _ACEOF
3337 if ac_fn_cxx_try_compile "$LINENO"; then :
3338 ac_compiler_gnu=yes
3339 else
3340 ac_compiler_gnu=no
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3347 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3349 GXX=yes
3350 else
3351 GXX=
3353 ac_test_CXXFLAGS=${CXXFLAGS+set}
3354 ac_save_CXXFLAGS=$CXXFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3356 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3357 if ${ac_cv_prog_cxx_g+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3361 ac_cxx_werror_flag=yes
3362 ac_cv_prog_cxx_g=no
3363 CXXFLAGS="-g"
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3368 main ()
3372 return 0;
3374 _ACEOF
3375 if ac_fn_cxx_try_compile "$LINENO"; then :
3376 ac_cv_prog_cxx_g=yes
3377 else
3378 CXXFLAGS=""
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3383 main ()
3387 return 0;
3389 _ACEOF
3390 if ac_fn_cxx_try_compile "$LINENO"; then :
3392 else
3393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3394 CXXFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3399 main ()
3403 return 0;
3405 _ACEOF
3406 if ac_fn_cxx_try_compile "$LINENO"; then :
3407 ac_cv_prog_cxx_g=yes
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3417 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3418 if test "$ac_test_CXXFLAGS" = set; then
3419 CXXFLAGS=$ac_save_CXXFLAGS
3420 elif test $ac_cv_prog_cxx_g = yes; then
3421 if test "$GXX" = yes; then
3422 CXXFLAGS="-g -O2"
3423 else
3424 CXXFLAGS="-g"
3426 else
3427 if test "$GXX" = yes; then
3428 CXXFLAGS="-O2"
3429 else
3430 CXXFLAGS=
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 CXX_BASE=$CXX
3440 # Extract the first word of "$CXX", so it can be a program name with args.
3441 set dummy $CXX; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_path_CXX+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 case $CXX in
3448 [\\/]* | ?:[\\/]*)
3449 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3465 IFS=$as_save_IFS
3468 esac
3470 CXX=$ac_cv_path_CXX
3471 if test -n "$CXX"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3473 $as_echo "$CXX" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in ${host_c_compilers}
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3509 done
3510 done
3511 IFS=$as_save_IFS
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3525 test -n "$CC" && break
3526 done
3528 if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in ${host_c_compilers}
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3569 test -n "$ac_ct_CC" && break
3570 done
3572 if test "x$ac_ct_CC" = x; then
3573 CC=""
3574 else
3575 case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581 CC=$ac_ct_CC
3586 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "no acceptable C compiler found in \$PATH
3589 See \`config.log' for more details" "$LINENO" 5; }
3591 # Provide some information about the compiler.
3592 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3593 set X $ac_compile
3594 ac_compiler=$2
3595 for ac_option in --version -v -V -qversion; do
3596 { { ac_try="$ac_compiler $ac_option >&5"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3604 ac_status=$?
3605 if test -s conftest.err; then
3606 sed '10a\
3607 ... rest of stderr output deleted ...
3608 10q' conftest.err >conftest.er1
3609 cat conftest.er1 >&5
3611 rm -f conftest.er1 conftest.err
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }
3614 done
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if ${ac_cv_c_compiler_gnu+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3625 main ()
3627 #ifndef __GNUC__
3628 choke me
3629 #endif
3632 return 0;
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_compiler_gnu=yes
3637 else
3638 ac_compiler_gnu=no
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if ${ac_cv_prog_cc_g+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no
3661 CFLAGS="-g"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3666 main ()
3670 return 0;
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_g=yes
3675 else
3676 CFLAGS=""
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3681 main ()
3685 return 0;
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3690 else
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3697 main ()
3701 return 0;
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3715 $as_echo "$ac_cv_prog_cc_g" >&6; }
3716 if test "$ac_test_CFLAGS" = set; then
3717 CFLAGS=$ac_save_CFLAGS
3718 elif test $ac_cv_prog_cc_g = yes; then
3719 if test "$GCC" = yes; then
3720 CFLAGS="-g -O2"
3721 else
3722 CFLAGS="-g"
3724 else
3725 if test "$GCC" = yes; then
3726 CFLAGS="-O2"
3727 else
3728 CFLAGS=
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733 if ${ac_cv_prog_cc_c89+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_cv_prog_cc_c89=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <stdarg.h>
3741 #include <stdio.h>
3742 struct stat;
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3747 char **p;
3748 int i;
3750 return p[i];
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3754 char *s;
3755 va_list v;
3756 va_start (v,p);
3757 s = g (p, va_arg (v,int));
3758 va_end (v);
3759 return s;
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3773 #define FOO(x) 'x'
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 int argc;
3781 char **argv;
3783 main ()
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 return 0;
3789 _ACEOF
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_c89=$ac_arg
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 $as_echo "none needed" >&6; } ;;
3809 xno)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3811 $as_echo "unsupported" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3817 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 CC_BASE=$CC
3828 # Extract the first word of "$CC", so it can be a program name with args.
3829 set dummy $CC; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if ${ac_cv_path_CC+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 case $CC in
3836 [\\/]* | ?:[\\/]*)
3837 ac_cv_path_CC="$CC" # Let the user override the test with a path.
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3851 done
3852 done
3853 IFS=$as_save_IFS
3856 esac
3858 CC=$ac_cv_path_CC
3859 if test -n "$CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3862 else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3868 aros_host_def_cc="$CC"
3869 case $ac_cv_prog_cc_stdc in #(
3870 no) :
3871 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3872 *) :
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3874 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3875 if ${ac_cv_prog_cc_c99+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 ac_cv_prog_cc_c99=no
3879 ac_save_CC=$CC
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #include <stdarg.h>
3883 #include <stdbool.h>
3884 #include <stdlib.h>
3885 #include <wchar.h>
3886 #include <stdio.h>
3888 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3889 #define debug(...) fprintf (stderr, __VA_ARGS__)
3890 #define showlist(...) puts (#__VA_ARGS__)
3891 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3892 static void
3893 test_varargs_macros (void)
3895 int x = 1234;
3896 int y = 5678;
3897 debug ("Flag");
3898 debug ("X = %d\n", x);
3899 showlist (The first, second, and third items.);
3900 report (x>y, "x is %d but y is %d", x, y);
3903 // Check long long types.
3904 #define BIG64 18446744073709551615ull
3905 #define BIG32 4294967295ul
3906 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3907 #if !BIG_OK
3908 your preprocessor is broken;
3909 #endif
3910 #if BIG_OK
3911 #else
3912 your preprocessor is broken;
3913 #endif
3914 static long long int bignum = -9223372036854775807LL;
3915 static unsigned long long int ubignum = BIG64;
3917 struct incomplete_array
3919 int datasize;
3920 double data[];
3923 struct named_init {
3924 int number;
3925 const wchar_t *name;
3926 double average;
3929 typedef const char *ccp;
3931 static inline int
3932 test_restrict (ccp restrict text)
3934 // See if C++-style comments work.
3935 // Iterate through items via the restricted pointer.
3936 // Also check for declarations in for loops.
3937 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3938 continue;
3939 return 0;
3942 // Check varargs and va_copy.
3943 static void
3944 test_varargs (const char *format, ...)
3946 va_list args;
3947 va_start (args, format);
3948 va_list args_copy;
3949 va_copy (args_copy, args);
3951 const char *str;
3952 int number;
3953 float fnumber;
3955 while (*format)
3957 switch (*format++)
3959 case 's': // string
3960 str = va_arg (args_copy, const char *);
3961 break;
3962 case 'd': // int
3963 number = va_arg (args_copy, int);
3964 break;
3965 case 'f': // float
3966 fnumber = va_arg (args_copy, double);
3967 break;
3968 default:
3969 break;
3972 va_end (args_copy);
3973 va_end (args);
3977 main ()
3980 // Check bool.
3981 _Bool success = false;
3983 // Check restrict.
3984 if (test_restrict ("String literal") == 0)
3985 success = true;
3986 char *restrict newvar = "Another string";
3988 // Check varargs.
3989 test_varargs ("s, d' f .", "string", 65, 34.234);
3990 test_varargs_macros ();
3992 // Check flexible array members.
3993 struct incomplete_array *ia =
3994 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3995 ia->datasize = 10;
3996 for (int i = 0; i < ia->datasize; ++i)
3997 ia->data[i] = i * 1.234;
3999 // Check named initializers.
4000 struct named_init ni = {
4001 .number = 34,
4002 .name = L"Test wide string",
4003 .average = 543.34343,
4006 ni.number = 58;
4008 int dynamic_array[ni.number];
4009 dynamic_array[ni.number - 1] = 543;
4011 // work around unused variable warnings
4012 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4013 || dynamic_array[ni.number - 1] != 543);
4016 return 0;
4018 _ACEOF
4019 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4021 CC="$ac_save_CC $ac_arg"
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_c99=$ac_arg
4025 rm -f core conftest.err conftest.$ac_objext
4026 test "x$ac_cv_prog_cc_c99" != "xno" && break
4027 done
4028 rm -f conftest.$ac_ext
4029 CC=$ac_save_CC
4032 # AC_CACHE_VAL
4033 case "x$ac_cv_prog_cc_c99" in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4037 xno)
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4041 CC="$CC $ac_cv_prog_cc_c99"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4043 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4044 esac
4045 if test "x$ac_cv_prog_cc_c99" != xno; then :
4046 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4050 if ${ac_cv_prog_cc_c89+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 ac_cv_prog_cc_c89=no
4054 ac_save_CC=$CC
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #include <stdarg.h>
4058 #include <stdio.h>
4059 struct stat;
4060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4061 struct buf { int x; };
4062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4063 static char *e (p, i)
4064 char **p;
4065 int i;
4067 return p[i];
4069 static char *f (char * (*g) (char **, int), char **p, ...)
4071 char *s;
4072 va_list v;
4073 va_start (v,p);
4074 s = g (p, va_arg (v,int));
4075 va_end (v);
4076 return s;
4079 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4080 function prototypes and stuff, but not '\xHH' hex character constants.
4081 These don't provoke an error unfortunately, instead are silently treated
4082 as 'x'. The following induces an error, until -std is added to get
4083 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4084 array size at least. It's necessary to write '\x00'==0 to get something
4085 that's true only with -std. */
4086 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4089 inside strings and character constants. */
4090 #define FOO(x) 'x'
4091 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093 int test (int i, double x);
4094 struct s1 {int (*f) (int a);};
4095 struct s2 {int (*f) (double a);};
4096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4097 int argc;
4098 char **argv;
4100 main ()
4102 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4104 return 0;
4106 _ACEOF
4107 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4108 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 CC="$ac_save_CC $ac_arg"
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_cv_prog_cc_c89=$ac_arg
4114 rm -f core conftest.err conftest.$ac_objext
4115 test "x$ac_cv_prog_cc_c89" != "xno" && break
4116 done
4117 rm -f conftest.$ac_ext
4118 CC=$ac_save_CC
4121 # AC_CACHE_VAL
4122 case "x$ac_cv_prog_cc_c89" in
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125 $as_echo "none needed" >&6; } ;;
4126 xno)
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4128 $as_echo "unsupported" >&6; } ;;
4130 CC="$CC $ac_cv_prog_cc_c89"
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4132 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4133 esac
4134 if test "x$ac_cv_prog_cc_c89" != xno; then :
4135 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4136 else
4137 ac_cv_prog_cc_stdc=no
4142 esac
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4144 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4145 if ${ac_cv_prog_cc_stdc+:} false; then :
4146 $as_echo_n "(cached) " >&6
4149 case $ac_cv_prog_cc_stdc in #(
4150 no) :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152 $as_echo "unsupported" >&6; } ;; #(
4153 '') :
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;; #(
4156 *) :
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4158 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4159 esac
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4167 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4168 # On Suns, sometimes $CPP names a directory.
4169 if test -n "$CPP" && test -d "$CPP"; then
4170 CPP=
4172 if test -z "$CPP"; then
4173 if ${ac_cv_prog_CPP+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 # Double quotes because CPP needs to be expanded
4177 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4179 ac_preproc_ok=false
4180 for ac_c_preproc_warn_flag in '' yes
4182 # Use a header file that comes with gcc, so configuring glibc
4183 # with a fresh cross-compiler works.
4184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 # <limits.h> exists even on freestanding compilers.
4186 # On the NeXT, cc -E runs the code through the compiler's parser,
4187 # not just through cpp. "Syntax error" is here to catch this case.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #ifdef __STDC__
4191 # include <limits.h>
4192 #else
4193 # include <assert.h>
4194 #endif
4195 Syntax error
4196 _ACEOF
4197 if ac_fn_c_try_cpp "$LINENO"; then :
4199 else
4200 # Broken: fails on valid input.
4201 continue
4203 rm -f conftest.err conftest.i conftest.$ac_ext
4205 # OK, works on sane cases. Now check whether nonexistent headers
4206 # can be detected and how.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ac_nonexistent.h>
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4212 # Broken: success on invalid input.
4213 continue
4214 else
4215 # Passes both tests.
4216 ac_preproc_ok=:
4217 break
4219 rm -f conftest.err conftest.i conftest.$ac_ext
4221 done
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.i conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then :
4225 break
4228 done
4229 ac_cv_prog_CPP=$CPP
4232 CPP=$ac_cv_prog_CPP
4233 else
4234 ac_cv_prog_CPP=$CPP
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4237 $as_echo "$CPP" >&6; }
4238 ac_preproc_ok=false
4239 for ac_c_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #ifdef __STDC__
4250 # include <limits.h>
4251 #else
4252 # include <assert.h>
4253 #endif
4254 Syntax error
4255 _ACEOF
4256 if ac_fn_c_try_cpp "$LINENO"; then :
4258 else
4259 # Broken: fails on valid input.
4260 continue
4262 rm -f conftest.err conftest.i conftest.$ac_ext
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <ac_nonexistent.h>
4269 _ACEOF
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4271 # Broken: success on invalid input.
4272 continue
4273 else
4274 # Passes both tests.
4275 ac_preproc_ok=:
4276 break
4278 rm -f conftest.err conftest.i conftest.$ac_ext
4280 done
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.i conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then :
4285 else
4286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details" "$LINENO" 5; }
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 # detect the compiler version
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which toolchain family ${CC_BASE} belongs to" >&5
4301 $as_echo_n "checking which toolchain family ${CC_BASE} belongs to... " >&6; }
4302 HOST_COMPILER_VERSION=`"$CC" --version 2>/dev/null`
4303 if test x"$HOST_COMPILER_VERSION" = "x"; then
4304 HOST_COMPILER_VERSION=`"$CC" --qversion 2>/dev/null`
4306 if test x"$HOST_COMPILER_VERSION" = "x"; then
4307 HOST_COMPILER_VERSION=`"$CC" -V 2>/dev/null`
4310 IS_SUN_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'Sun C\+\+'`
4311 if test "$IS_SUN_COMPILER" -ne "0"; then
4312 HOST_TOOLCHAIN_PREFIX=
4313 HOST_TOOLCHAIN_SUFFIX=
4314 HOST_TOOLCHAIN_FAMILY=sun
4316 IS_LLVM_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'LLVM|clang'`
4317 if test "$IS_LLVM_COMPILER" -ne "0"; then
4318 if test "$CC_BASE" != "gcc"; then
4319 HOST_TOOLCHAIN_PREFIX=llvm-
4320 HOST_TOOLCHAIN_SUFFIX="`echo $CC_BASE | sed -e \"s|clang||g\"`"
4321 HOST_TOOLCHAIN_FAMILY=llvm
4322 else
4323 IS_GNU_COMPILER=1
4326 if test "x$IS_GNU_COMPILER" = "x"; then
4327 IS_GNU_COMPILER=`echo $HOST_COMPILER_VERSION | grep -i -c -E 'gcc'`
4329 if test "$IS_GNU_COMPILER" -ne "0"; then
4330 HOST_TOOLCHAIN_PREFIX=
4331 HOST_TOOLCHAIN_SUFFIX=
4332 HOST_TOOLCHAIN_FAMILY=gnu
4334 if test x"$HOST_TOOLCHAIN_FAMILY" = "x"; then
4335 HOST_TOOLCHAIN_FAMILY=unknown
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_TOOLCHAIN_FAMILY" >&5
4338 $as_echo "$HOST_TOOLCHAIN_FAMILY" >&6; }
4340 # Check for a compatible awk
4341 for ac_prog in gawk nawk
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_AWK+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$AWK"; then
4351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_AWK="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 AWK=$ac_cv_prog_AWK
4371 if test -n "$AWK"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4373 $as_echo "$AWK" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4380 test -n "$AWK" && break
4381 done
4383 req_avail=yes
4384 if test "$AWK" = ""; then
4385 req_avail=no
4387 if test "$AWK" = "no"; then
4388 req_avail=no
4390 if test "$req_avail" = "no"; then
4391 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4393 # Extract the first word of "mmake", so it can be a program name with args.
4394 set dummy mmake; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_MMAKE+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$MMAKE"; then
4401 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_MMAKE="mmake "
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4416 IFS=$as_save_IFS
4420 MMAKE=$ac_cv_prog_MMAKE
4421 if test -n "$MMAKE"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4423 $as_echo "$MMAKE" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4431 # Perform some default variable assignments. Note all of these will be
4432 # Regenerated from the script, so there is no need to cache them.
4434 aros_build_host=$host
4435 aros_host_cpp="$CPP"
4436 aros_host_cc="$CC"
4437 aros_host_cxx="$CXX"
4438 base_ld_name=${HOST_TOOLCHAIN_PREFIX}ld${HOST_TOOLCHAIN_SUFFIX}
4439 if test "$HOST_TOOLCHAIN_FAMILY" = "llvm"; then
4440 for ac_prog in $base_ld_name ld.lld${HOST_TOOLCHAIN_SUFFIX} ld64.lld${HOST_TOOLCHAIN_SUFFIX} ld-link${HOST_TOOLCHAIN_SUFFIX}.exe ld${HOST_TOOLCHAIN_SUFFIX}
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_base_lld_name+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$base_lld_name"; then
4450 ac_cv_prog_base_lld_name="$base_lld_name" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_base_lld_name="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 base_lld_name=$ac_cv_prog_base_lld_name
4470 if test -n "$base_lld_name"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $base_lld_name" >&5
4472 $as_echo "$base_lld_name" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$base_lld_name" && break
4480 done
4482 base_ld_name=$base_lld_name
4485 if test "$base_ld_name" = ""; then
4486 ac_tool_ld=ld
4487 else
4488 ac_tool_ld=$base_ld_name
4490 if test "$GCC" = "yes"; then
4491 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
4492 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4493 set dummy `basename $aros_gcc_ld`; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_path_aros_host_ld+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 case $aros_host_ld in
4500 [\\/]* | ?:[\\/]*)
4501 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in `dirname $aros_gcc_ld`
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4515 done
4516 done
4517 IFS=$as_save_IFS
4520 esac
4522 aros_host_ld=$ac_cv_path_aros_host_ld
4523 if test -n "$aros_host_ld"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4525 $as_echo "$aros_host_ld" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4533 if test "$aros_host_ld" = ""; then
4534 for ac_prog in $ac_tool_ld
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy $ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_path_aros_host_ld+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 case $aros_host_ld in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4564 esac
4566 aros_host_ld=$ac_cv_path_aros_host_ld
4567 if test -n "$aros_host_ld"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4569 $as_echo "$aros_host_ld" >&6; }
4570 else
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4576 test -n "$aros_host_ld" && break
4577 done
4581 req_avail=yes
4582 if test "$aros_host_ld" = ""; then
4583 req_avail=no
4585 if test "$aros_host_ld" = "no"; then
4586 req_avail=no
4588 if test "$req_avail" = "no"; then
4589 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4591 aros_host_make="make"
4592 aros_host_cflags="$CFLAGS"
4593 aros_host_cxxflags="$CXXFLAGS"
4594 aros_host_cppflags="$CPPFLAGS"
4595 aros_host_ldflags="$LDFLAGS"
4596 aros_host_debug="-g -O0"
4597 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4598 aros_host_mkargs="--no-print-directory"
4599 aros_host_exe_suffix="$EXEEXT"
4600 aros_host_lib_suffix=""
4602 # Ignore all compliance, AROS ROMs = 0
4603 # KickStart v1.0 = 30
4604 # KickStart v1.3 = 34
4605 # KickStart v2.0 = 37
4606 # KickStart v3.0 = 39
4607 # KickStart v3.1 = 40
4608 # AmigaOS v3.5 = 44
4609 aros_amigaos_compliance=0
4611 for ac_prog in aclocal aclocal19 aclocal-1.9
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$aros_host_aclocal"; then
4621 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_aros_host_aclocal="$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4641 if test -n "$aros_host_aclocal"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4643 $as_echo "$aros_host_aclocal" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$aros_host_aclocal" && break
4651 done
4653 for ac_prog in autoconf autoconf259 autoconf253
4655 # Extract the first word of "$ac_prog", so it can be a program name with args.
4656 set dummy $ac_prog; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$aros_host_autoconf"; then
4663 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_prog_aros_host_autoconf="$ac_prog"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4683 if test -n "$aros_host_autoconf"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4685 $as_echo "$aros_host_autoconf" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4692 test -n "$aros_host_autoconf" && break
4693 done
4695 for ac_prog in autoheader autoheader259 autoheader253
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$aros_host_autoheader"; then
4705 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_aros_host_autoheader="$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4725 if test -n "$aros_host_autoheader"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4727 $as_echo "$aros_host_autoheader" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4734 test -n "$aros_host_autoheader" && break
4735 done
4737 for ac_prog in automake automake19 automake-1.9
4739 # Extract the first word of "$ac_prog", so it can be a program name with args.
4740 set dummy $ac_prog; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_aros_host_automake+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$aros_host_automake"; then
4747 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_aros_host_automake="$ac_prog"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 aros_host_automake=$ac_cv_prog_aros_host_automake
4767 if test -n "$aros_host_automake"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4769 $as_echo "$aros_host_automake" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4776 test -n "$aros_host_automake" && break
4777 done
4780 req_avail=yes
4781 if test "$aros_host_aclocal" = ""; then
4782 req_avail=no
4784 if test "$aros_host_aclocal" = "no"; then
4785 req_avail=no
4787 if test "$req_avail" = "no"; then
4788 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4790 req_avail=yes
4791 if test "$aros_host_automake" = ""; then
4792 req_avail=no
4794 if test "$aros_host_automake" = "no"; then
4795 req_avail=no
4797 if test "$req_avail" = "no"; then
4798 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4801 case "$aros_host_cc" in
4802 *clang*)
4803 aros_host_cc_pipe=""
4805 *gcc*)
4806 aros_host_cc_pipe="-pipe"
4808 icc)
4809 aros_host_cc_pipe=""
4812 aros_host_cc_pipe=""
4814 esac
4816 aros_kernel_cc_includes=""
4817 aros_target_cc_includes=""
4818 host_cc_elf=yes
4820 # ----------------------------------------------------------------------------------------
4821 # Host-specific defaults
4823 # This is the main host configuration section. It is where the host
4824 # can change the values of any variables it needs to change. We do
4825 # not look at anything that compiles to the target yet, we'll get
4826 # to that later.
4828 case "$host_os" in
4829 aros*)
4830 aros_host_arch="aros"
4831 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4832 case "$host_cpu" in
4833 *i?86*)
4834 aros_host_cpu="i386"
4836 *x86_64*)
4837 aros_host_cpu="x86_64"
4839 *powerpc*)
4840 aros_host_cpu="ppc"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4844 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4845 aros_host_cpu="$host_cpu"
4847 esac
4850 linux*)
4851 aros_host_arch="linux"
4852 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4853 android_build_os="linux-x86"
4854 android_tool="android"
4855 default_android_sdk="/opt/android-sdk-linux_x86"
4856 case "$host_cpu" in
4857 *i?86*)
4858 aros_host_cpu="i386"
4860 *x86_64*)
4861 aros_host_cpu="x86_64"
4863 *m68k*)
4864 aros_host_cpu="m68k"
4866 *powerpc*)
4867 aros_host_cpu="ppc"
4869 *arm*)
4870 aros_host_cpu="arm"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4874 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4875 aros_host_cpu="$host_cpu"
4877 esac
4880 freebsd*)
4881 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4882 aros_host_make="gmake"
4883 aros_host_arch="freebsd"
4884 aros_host_cpu="i386"
4886 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4888 case $host_os in
4889 freebsd[234]*)
4890 aros_object_format="elf_i386"
4894 aros_object_format="elf_i386_fbsd"
4896 esac
4900 darwin*)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4902 $as_echo_n "checking for macOS SDK files... " >&6; }
4903 LOC=$( xcode-select -p )
4904 if test $? != 0; then :
4905 as_fn_error $? "XCode incorrectly configured!
4906 please run 'xcode-select --install' before
4907 re-running configure" "$LINENO" 5
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4910 $as_echo "$LOC" >&6; }
4911 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4912 aros_host_arch="darwin"
4913 host_cc_elf=no
4914 if [ -z ${SED+x} ]; then SED="gsed"; fi
4915 android_build_os="darwin-x86"
4916 android_tool="android"
4917 default_android_sdk="/android-sdk-mac_x86"
4918 case "$host_cpu" in
4919 *i?86*)
4920 aros_host_cpu="i386"
4922 *x86_64*)
4923 aros_host_cpu="x86_64"
4925 *powerpc*)
4926 aros_host_cpu="ppc"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4930 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4931 aros_host_cpu="$host_cpu"
4933 esac
4935 aros_host_ldflags="$aros_host_ldflags -liconv"
4939 dragonfly*)
4940 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4941 aros_host_make="gmake"
4942 aros_host_arch="dragonfly"
4943 case $host_cpu in
4944 *i?86*)
4945 aros_host_cpu="i386"
4947 *amd64*)
4948 aros_host_cpu="x86_64"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4952 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4953 aros_host_cpu="$host_cpu"
4955 esac
4958 netbsd*)
4959 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4960 aros_host_make="gmake"
4961 aros_host_arch="netbsd"
4962 case "$host_cpu" in
4963 *i?86*)
4964 aros_host_cpu="i386"
4966 *m68k*)
4967 aros_host_cpu="m68k"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4971 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4972 aros_host_cpu="$host_cpu"
4974 esac
4975 aros_host_lib_suffix=".0.0"
4978 openbsd*)
4979 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4980 aros_host_make="gmake"
4981 aros_host_arch="openbsd"
4982 case "$host_cpu" in
4983 *i?86*)
4984 aros_host_cpu="i386"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4988 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4989 aros_host_cpu="$host_cpu"
4991 esac
4994 solaris*)
4995 aros_host_arch="solaris"
4996 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4997 case "$host_cpu" in
4998 *i?86*)
4999 aros_host_cpu="i386"
5001 *sparc*)
5002 aros_host_cpu="sparc"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5006 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5007 aros_host_cpu="$host_cpu"
5009 esac
5012 morphos*)
5013 aros_host_arch="morphos"
5014 aros_host_cpu="ppc"
5015 host_cc_elf=no
5018 amiga*)
5019 aros_host_arch="amiga"
5020 host_cc_elf=no
5021 SORT="/gg/bin/sort"
5022 TEST="/gg/bin/test"
5023 UNIQ="/gg/bin/uniq"
5024 FOR="for"
5025 TOUCH="/gg/bin/touch"
5026 case "$host_cpu" in
5027 *m68k*)
5028 aros_host_cpu="m68k"
5030 *powerpc*)
5031 aros_host_cpu="ppc"
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5035 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5036 aros_host_cpu="$host_cpu"
5038 esac
5041 cygwin*)
5042 aros_host_arch="cygwin"
5043 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5044 host_cc_elf=no
5045 android_build_os="windows"
5046 android_tool="android.bat"
5047 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
5049 case "$host_cpu" in
5050 *i?86*)
5051 aros_host_cpu="i386"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5055 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5056 aros_host_cpu="$host_cpu"
5058 esac
5061 mingw32*)
5062 aros_host_arch="mingw32"
5063 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
5064 host_cc_elf=no
5065 android_build_os="windows"
5066 android_tool="android.bat"
5067 default_android_sdk="/c/android-sdk-windows-1.6_r1"
5069 libpng_libextra="-lws2_32"
5071 case "$host_cpu" in
5072 *i?86*)
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
5075 $as_echo_n "checking for Windows native gcc target... " >&6; }
5076 host_cpu=`gcc -dumpmachine`
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
5078 $as_echo "$host_cpu" >&6; }
5081 esac
5083 case "$host_cpu" in
5084 *i?86*)
5085 aros_host_cpu="i386"
5088 mingw32*)
5089 aros_host_cpu="i386"
5092 *x86_64*)
5093 aros_host_cpu="x86_64"
5094 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
5099 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
5100 aros_host_cpu="$host_cpu"
5102 esac
5105 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
5107 esac
5109 base_ar_name=${HOST_TOOLCHAIN_PREFIX}ar${HOST_TOOLCHAIN_SUFFIX}
5110 # Extract the first word of "$base_ar_name", so it can be a program name with args.
5111 set dummy $base_ar_name; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_aros_host_cmd_ar+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$aros_host_cmd_ar"; then
5118 ac_cv_prog_aros_host_cmd_ar="$aros_host_cmd_ar" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_aros_host_cmd_ar="$base_ar_name cr"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 aros_host_cmd_ar=$ac_cv_prog_aros_host_cmd_ar
5138 if test -n "$aros_host_cmd_ar"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_cmd_ar" >&5
5140 $as_echo "$aros_host_cmd_ar" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 # Extract the first word of "$aros_host_cmd_ar", so it can be a program name with args.
5148 set dummy $aros_host_cmd_ar; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_path_aros_host_full_ar+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 case $aros_host_full_ar in
5155 [\\/]* | ?:[\\/]*)
5156 ac_cv_path_aros_host_full_ar="$aros_host_full_ar" # Let the user override the test with a path.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_path_aros_host_full_ar="$as_dir/$ac_word$ac_exec_ext"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5174 test -z "$ac_cv_path_aros_host_full_ar" && ac_cv_path_aros_host_full_ar="$aros_host_cmd_ar "
5176 esac
5178 aros_host_full_ar=$ac_cv_path_aros_host_full_ar
5179 if test -n "$aros_host_full_ar"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_full_ar" >&5
5181 $as_echo "$aros_host_full_ar" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 aros_host_ar=`echo $aros_host_cmd_ar | sed -e "s|$base_ar_name|$aros_host_full_ar|g"`
5189 req_avail=yes
5190 if test "$aros_host_ar" = ""; then
5191 req_avail=no
5193 if test "$aros_host_ar" = "no"; then
5194 req_avail=no
5196 if test "$req_avail" = "no"; then
5197 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5199 base_ranlib_name=${HOST_TOOLCHAIN_PREFIX}ranlib${HOST_TOOLCHAIN_SUFFIX}
5200 # Extract the first word of "$base_ranlib_name", so it can be a program name with args.
5201 set dummy $base_ranlib_name; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_path_aros_host_ranlib+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 case $aros_host_ranlib in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test with a path.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_path_aros_host_ranlib="$as_dir/$ac_word$ac_exec_ext"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5223 done
5224 done
5225 IFS=$as_save_IFS
5227 test -z "$ac_cv_path_aros_host_ranlib" && ac_cv_path_aros_host_ranlib="$base_ranlib_name "
5229 esac
5231 aros_host_ranlib=$ac_cv_path_aros_host_ranlib
5232 if test -n "$aros_host_ranlib"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5234 $as_echo "$aros_host_ranlib" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 req_avail=yes
5242 if test "$aros_host_ranlib" = ""; then
5243 req_avail=no
5245 if test "$aros_host_ranlib" = "no"; then
5246 req_avail=no
5248 if test "$req_avail" = "no"; then
5249 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5251 # Extract the first word of "strip", so it can be a program name with args.
5252 set dummy strip; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_aros_host_strip+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$aros_host_strip"; then
5259 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_aros_host_strip="strip "
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5274 IFS=$as_save_IFS
5278 aros_host_strip=$ac_cv_prog_aros_host_strip
5279 if test -n "$aros_host_strip"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5281 $as_echo "$aros_host_strip" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 req_avail=yes
5289 if test "$aros_host_strip" = ""; then
5290 req_avail=no
5292 if test "$aros_host_strip" = "no"; then
5293 req_avail=no
5295 if test "$req_avail" = "no"; then
5296 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5299 # Extract the first word of "rm", so it can be a program name with args.
5300 set dummy rm; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_RM+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$RM"; then
5307 ac_cv_prog_RM="$RM" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_RM="rm -rf"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 RM=$ac_cv_prog_RM
5327 if test -n "$RM"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5329 $as_echo "$RM" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5336 req_avail=yes
5337 if test "$RM" = ""; then
5338 req_avail=no
5340 if test "$RM" = "no"; then
5341 req_avail=no
5343 if test "$req_avail" = "no"; then
5344 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5346 # Extract the first word of "cp", so it can be a program name with args.
5347 set dummy cp; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_CP+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$CP"; then
5354 ac_cv_prog_CP="$CP" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_CP="cp "
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 CP=$ac_cv_prog_CP
5374 if test -n "$CP"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5376 $as_echo "$CP" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 req_avail=yes
5384 if test "$CP" = ""; then
5385 req_avail=no
5387 if test "$CP" = "no"; then
5388 req_avail=no
5390 if test "$req_avail" = "no"; then
5391 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5393 # Extract the first word of "mv", so it can be a program name with args.
5394 set dummy mv; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_MV+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$MV"; then
5401 ac_cv_prog_MV="$MV" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_MV="mv "
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5416 IFS=$as_save_IFS
5420 MV=$ac_cv_prog_MV
5421 if test -n "$MV"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5423 $as_echo "$MV" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5430 req_avail=yes
5431 if test "$MV" = ""; then
5432 req_avail=no
5434 if test "$MV" = "no"; then
5435 req_avail=no
5437 if test "$req_avail" = "no"; then
5438 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5440 # Extract the first word of "echo", so it can be a program name with args.
5441 set dummy echo; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_ECHO+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -n "$ECHO"; then
5448 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_prog_ECHO="echo "
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5467 ECHO=$ac_cv_prog_ECHO
5468 if test -n "$ECHO"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5470 $as_echo "$ECHO" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5477 req_avail=yes
5478 if test "$ECHO" = ""; then
5479 req_avail=no
5481 if test "$ECHO" = "no"; then
5482 req_avail=no
5484 if test "$req_avail" = "no"; then
5485 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5487 # Extract the first word of "mkdir", so it can be a program name with args.
5488 set dummy mkdir; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_MKDIR+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$MKDIR"; then
5495 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_MKDIR="mkdir -p"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5510 IFS=$as_save_IFS
5514 MKDIR=$ac_cv_prog_MKDIR
5515 if test -n "$MKDIR"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5517 $as_echo "$MKDIR" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5524 req_avail=yes
5525 if test "$MKDIR" = ""; then
5526 req_avail=no
5528 if test "$MKDIR" = "no"; then
5529 req_avail=no
5531 if test "$req_avail" = "no"; then
5532 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5534 # Extract the first word of "touch", so it can be a program name with args.
5535 set dummy touch; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_TOUCH+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$TOUCH"; then
5542 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_TOUCH="touch "
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 TOUCH=$ac_cv_prog_TOUCH
5562 if test -n "$TOUCH"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5564 $as_echo "$TOUCH" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 req_avail=yes
5572 if test "$TOUCH" = ""; then
5573 req_avail=no
5575 if test "$TOUCH" = "no"; then
5576 req_avail=no
5578 if test "$req_avail" = "no"; then
5579 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5581 # Extract the first word of "sort", so it can be a program name with args.
5582 set dummy sort; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_SORT+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$SORT"; then
5589 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_SORT="sort "
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5604 IFS=$as_save_IFS
5608 SORT=$ac_cv_prog_SORT
5609 if test -n "$SORT"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5611 $as_echo "$SORT" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5618 req_avail=yes
5619 if test "$SORT" = ""; then
5620 req_avail=no
5622 if test "$SORT" = "no"; then
5623 req_avail=no
5625 if test "$req_avail" = "no"; then
5626 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5628 # Extract the first word of "uniq", so it can be a program name with args.
5629 set dummy uniq; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_UNIQ+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$UNIQ"; then
5636 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_UNIQ="uniq "
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 UNIQ=$ac_cv_prog_UNIQ
5656 if test -n "$UNIQ"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5658 $as_echo "$UNIQ" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 req_avail=yes
5666 if test "$UNIQ" = ""; then
5667 req_avail=no
5669 if test "$UNIQ" = "no"; then
5670 req_avail=no
5672 if test "$req_avail" = "no"; then
5673 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5675 # Extract the first word of "true", so it can be a program name with args.
5676 set dummy true; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_NOP+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$NOP"; then
5683 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_NOP="true "
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5702 NOP=$ac_cv_prog_NOP
5703 if test -n "$NOP"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5705 $as_echo "$NOP" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5712 req_avail=yes
5713 if test "$NOP" = ""; then
5714 req_avail=no
5716 if test "$NOP" = "no"; then
5717 req_avail=no
5719 if test "$req_avail" = "no"; then
5720 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5722 # Extract the first word of "cat", so it can be a program name with args.
5723 set dummy cat; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_CAT+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$CAT"; then
5730 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_CAT="cat "
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5745 IFS=$as_save_IFS
5749 CAT=$ac_cv_prog_CAT
5750 if test -n "$CAT"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5752 $as_echo "$CAT" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5759 req_avail=yes
5760 if test "$CAT" = ""; then
5761 req_avail=no
5763 if test "$CAT" = "no"; then
5764 req_avail=no
5766 if test "$req_avail" = "no"; then
5767 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5769 # Extract the first word of "bison", so it can be a program name with args.
5770 set dummy bison; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_BISON+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -n "$BISON"; then
5777 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_BISON="bison "
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5790 done
5791 done
5792 IFS=$as_save_IFS
5796 BISON=$ac_cv_prog_BISON
5797 if test -n "$BISON"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5799 $as_echo "$BISON" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5806 req_avail=yes
5807 if test "$BISON" = ""; then
5808 req_avail=no
5810 if test "$BISON" = "no"; then
5811 req_avail=no
5813 if test "$req_avail" = "no"; then
5814 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5816 # Extract the first word of "flex", so it can be a program name with args.
5817 set dummy flex; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_FLEX+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$FLEX"; then
5824 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_FLEX="flex "
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5843 FLEX=$ac_cv_prog_FLEX
5844 if test -n "$FLEX"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5846 $as_echo "$FLEX" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5853 req_avail=yes
5854 if test "$FLEX" = ""; then
5855 req_avail=no
5857 if test "$FLEX" = "no"; then
5858 req_avail=no
5860 if test "$req_avail" = "no"; then
5861 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $FLEX" >&5
5864 $as_echo_n "checking version of $FLEX... " >&6; }
5865 ax_cv_flex_version="`$FLEX --version | cut -d\" \" -f2`"
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_flex_version" >&5
5867 $as_echo "$ax_cv_flex_version" >&6; }
5868 # Extract the first word of "pngtopnm", so it can be a program name with args.
5869 set dummy pngtopnm; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$PNGTOPNM"; then
5876 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_PNGTOPNM="pngtopnm "
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5896 if test -n "$PNGTOPNM"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5898 $as_echo "$PNGTOPNM" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5905 req_avail=yes
5906 if test "$PNGTOPNM" = ""; then
5907 req_avail=no
5909 if test "$PNGTOPNM" = "no"; then
5910 req_avail=no
5912 if test "$req_avail" = "no"; then
5913 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5915 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5916 set dummy ppmtoilbm; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$PPMTOILBM"; then
5923 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5936 done
5937 done
5938 IFS=$as_save_IFS
5942 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5943 if test -n "$PPMTOILBM"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5945 $as_echo "$PPMTOILBM" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 req_avail=yes
5953 if test "$PPMTOILBM" = ""; then
5954 req_avail=no
5956 if test "$PPMTOILBM" = "no"; then
5957 req_avail=no
5959 if test "$req_avail" = "no"; then
5960 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5962 # Extract the first word of "sed", so it can be a program name with args.
5963 set dummy sed; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_SED+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 if test -n "$SED"; then
5970 ac_cv_prog_SED="$SED" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_SED="sed "
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5983 done
5984 done
5985 IFS=$as_save_IFS
5989 SED=$ac_cv_prog_SED
5990 if test -n "$SED"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5992 $as_echo "$SED" >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5999 req_avail=yes
6000 if test "$SED" = ""; then
6001 req_avail=no
6003 if test "$SED" = "no"; then
6004 req_avail=no
6006 if test "$req_avail" = "no"; then
6007 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
6009 # Extract the first word of "chmod", so it can be a program name with args.
6010 set dummy chmod; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_CHMOD+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$CHMOD"; then
6017 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_CHMOD="chmod "
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6030 done
6031 done
6032 IFS=$as_save_IFS
6036 CHMOD=$ac_cv_prog_CHMOD
6037 if test -n "$CHMOD"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6039 $as_echo "$CHMOD" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6046 req_avail=yes
6047 if test "$CHMOD" = ""; then
6048 req_avail=no
6050 if test "$CHMOD" = "no"; then
6051 req_avail=no
6053 if test "$req_avail" = "no"; then
6054 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
6056 # Extract the first word of "patch", so it can be a program name with args.
6057 set dummy patch; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_PATCH+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$PATCH"; then
6064 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_PATCH="patch "
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6077 done
6078 done
6079 IFS=$as_save_IFS
6083 PATCH=$ac_cv_prog_PATCH
6084 if test -n "$PATCH"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
6086 $as_echo "$PATCH" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6093 req_avail=yes
6094 if test "$PATCH" = ""; then
6095 req_avail=no
6097 if test "$PATCH" = "no"; then
6098 req_avail=no
6100 if test "$req_avail" = "no"; then
6101 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
6110 if test -n "$PYTHON"; then
6111 # If the user set $PYTHON, use it and don't search something else.
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
6113 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
6114 prog="import sys
6115 # split strings by '.' and convert to numeric. Append some zeros
6116 # because we need at least 4 digits for the hex conversion.
6117 # map returns an iterator in Python 3.0 and a list in 2.x
6118 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6119 minverhex = 0
6120 # xrange is not present in Python 3.0 and range returns an iterator
6121 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6122 sys.exit(sys.hexversion < minverhex)"
6123 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6124 ($PYTHON -c "$prog") >&5 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; then :
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6129 $as_echo "yes" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
6135 am_display_PYTHON=$PYTHON
6136 else
6137 # Otherwise, try each interpreter until we find one that satisfies
6138 # VERSION.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
6140 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
6141 if ${am_cv_pathless_PYTHON+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6145 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
6146 test "$am_cv_pathless_PYTHON" = none && break
6147 prog="import sys
6148 # split strings by '.' and convert to numeric. Append some zeros
6149 # because we need at least 4 digits for the hex conversion.
6150 # map returns an iterator in Python 3.0 and a list in 2.x
6151 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
6152 minverhex = 0
6153 # xrange is not present in Python 3.0 and range returns an iterator
6154 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6155 sys.exit(sys.hexversion < minverhex)"
6156 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6157 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; then :
6161 break
6163 done
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6166 $as_echo "$am_cv_pathless_PYTHON" >&6; }
6167 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6168 if test "$am_cv_pathless_PYTHON" = none; then
6169 PYTHON=:
6170 else
6171 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6172 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_path_PYTHON+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 case $PYTHON in
6179 [\\/]* | ?:[\\/]*)
6180 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6194 done
6195 done
6196 IFS=$as_save_IFS
6199 esac
6201 PYTHON=$ac_cv_path_PYTHON
6202 if test -n "$PYTHON"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6204 $as_echo "$PYTHON" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6212 am_display_PYTHON=$am_cv_pathless_PYTHON
6216 if test "$PYTHON" = :; then
6217 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6218 else
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6222 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
6223 if ${am_cv_python_version+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6229 $as_echo "$am_cv_python_version" >&6; }
6230 PYTHON_VERSION=$am_cv_python_version
6234 PYTHON_PREFIX='${prefix}'
6236 PYTHON_EXEC_PREFIX='${exec_prefix}'
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6241 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
6242 if ${am_cv_python_platform+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6248 $as_echo "$am_cv_python_platform" >&6; }
6249 PYTHON_PLATFORM=$am_cv_python_platform
6252 # Just factor out some code duplication.
6253 am_python_setup_sysconfig="\
6254 import sys
6255 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6256 # with python 3.x. See automake bug#10227.
6257 try:
6258 import sysconfig
6259 except ImportError:
6260 can_use_sysconfig = 0
6261 else:
6262 can_use_sysconfig = 1
6263 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6264 # <https://github.com/pypa/virtualenv/issues/118>
6265 try:
6266 from platform import python_implementation
6267 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6268 can_use_sysconfig = 0
6269 except ImportError:
6270 pass"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6274 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6275 if ${am_cv_python_pythondir+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test "x$prefix" = xNONE
6279 then
6280 am_py_prefix=$ac_default_prefix
6281 else
6282 am_py_prefix=$prefix
6284 am_cv_python_pythondir=`$PYTHON -c "
6285 $am_python_setup_sysconfig
6286 if can_use_sysconfig:
6287 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6288 else:
6289 from distutils import sysconfig
6290 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6291 sys.stdout.write(sitedir)"`
6292 case $am_cv_python_pythondir in
6293 $am_py_prefix*)
6294 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6295 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6298 case $am_py_prefix in
6299 /usr|/System*) ;;
6301 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6303 esac
6305 esac
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6309 $as_echo "$am_cv_python_pythondir" >&6; }
6310 pythondir=$am_cv_python_pythondir
6314 pkgpythondir=\${pythondir}/$PACKAGE
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6318 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6319 if ${am_cv_python_pyexecdir+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test "x$exec_prefix" = xNONE
6323 then
6324 am_py_exec_prefix=$am_py_prefix
6325 else
6326 am_py_exec_prefix=$exec_prefix
6328 am_cv_python_pyexecdir=`$PYTHON -c "
6329 $am_python_setup_sysconfig
6330 if can_use_sysconfig:
6331 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6332 else:
6333 from distutils import sysconfig
6334 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6335 sys.stdout.write(sitedir)"`
6336 case $am_cv_python_pyexecdir in
6337 $am_py_exec_prefix*)
6338 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6339 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6342 case $am_py_exec_prefix in
6343 /usr|/System*) ;;
6345 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6347 esac
6349 esac
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6353 $as_echo "$am_cv_python_pyexecdir" >&6; }
6354 pyexecdir=$am_cv_python_pyexecdir
6358 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6366 # Check whether --enable-libpng-config was given.
6367 if test "${enable_libpng_config+set}" = set; then :
6368 enableval=$enable_libpng_config;
6371 if test "$enable_libpng_config" != "no"; then
6372 # Extract the first word of "libpng-config", so it can be a program name with args.
6373 set dummy libpng-config; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$arosconfig_use_libpngconfig"; then
6380 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6393 done
6394 done
6395 IFS=$as_save_IFS
6397 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6400 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6401 if test -n "$arosconfig_use_libpngconfig"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6403 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6411 if test "$arosconfig_use_libpngconfig" = "yes"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6413 $as_echo_n "checking libpng-config library... " >&6; }
6414 libpng_incdir="`libpng-config --cflags`"
6415 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6416 libpng="`libpng-config --libs`"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6418 $as_echo "$libpng" >&6; }
6419 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6422 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6423 if ${ac_cv_lib_png_png_read_png+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 ac_check_lib_save_LIBS=$LIBS
6427 LIBS="-lpng $LIBS"
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6431 /* Override any GCC internal prototype to avoid an error.
6432 Use char because int might match the return type of a GCC
6433 builtin and then its argument prototype would still apply. */
6434 #ifdef __cplusplus
6435 extern "C"
6436 #endif
6437 char png_read_png ();
6439 main ()
6441 return png_read_png ();
6443 return 0;
6445 _ACEOF
6446 if ac_fn_c_try_link "$LINENO"; then :
6447 ac_cv_lib_png_png_read_png=yes
6448 else
6449 ac_cv_lib_png_png_read_png=no
6451 rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 LIBS=$ac_check_lib_save_LIBS
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6456 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6457 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6458 libpng="-lpng"
6459 else
6460 libpng="no"
6463 if test "$libpng_libextra" != ""; then
6464 if test "$libpng" != "no"; then
6465 libpng_libextra="$libpng_libextra $libpng"
6469 req_avail=yes
6470 if test "$libpng" = ""; then
6471 req_avail=no
6473 if test "$libpng" = "no"; then
6474 req_avail=no
6476 if test "$req_avail" = "no"; then
6477 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6483 FOR=for
6485 IF=if
6487 TEST=test
6489 CMP=cmp
6493 # Check for some includes for the X11 HIDD and the kernel
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6497 if ${ac_cv_path_GREP+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if test -z "$GREP"; then
6501 ac_path_GREP_found=false
6502 # Loop through the user's path and test for each of PROGNAME-LIST
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_prog in grep ggrep; do
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6511 as_fn_executable_p "$ac_path_GREP" || continue
6512 # Check for GNU ac_path_GREP and select it if it is found.
6513 # Check for GNU $ac_path_GREP
6514 case `"$ac_path_GREP" --version 2>&1` in
6515 *GNU*)
6516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6518 ac_count=0
6519 $as_echo_n 0123456789 >"conftest.in"
6520 while :
6522 cat "conftest.in" "conftest.in" >"conftest.tmp"
6523 mv "conftest.tmp" "conftest.in"
6524 cp "conftest.in" "conftest.nl"
6525 $as_echo 'GREP' >> "conftest.nl"
6526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6528 as_fn_arith $ac_count + 1 && ac_count=$as_val
6529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6530 # Best one so far, save it but keep looking for a better one
6531 ac_cv_path_GREP="$ac_path_GREP"
6532 ac_path_GREP_max=$ac_count
6534 # 10*(2^10) chars as input seems more than enough
6535 test $ac_count -gt 10 && break
6536 done
6537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6538 esac
6540 $ac_path_GREP_found && break 3
6541 done
6542 done
6543 done
6544 IFS=$as_save_IFS
6545 if test -z "$ac_cv_path_GREP"; then
6546 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6548 else
6549 ac_cv_path_GREP=$GREP
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6554 $as_echo "$ac_cv_path_GREP" >&6; }
6555 GREP="$ac_cv_path_GREP"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6559 $as_echo_n "checking for egrep... " >&6; }
6560 if ${ac_cv_path_EGREP+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6564 then ac_cv_path_EGREP="$GREP -E"
6565 else
6566 if test -z "$EGREP"; then
6567 ac_path_EGREP_found=false
6568 # Loop through the user's path and test for each of PROGNAME-LIST
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_prog in egrep; do
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6577 as_fn_executable_p "$ac_path_EGREP" || continue
6578 # Check for GNU ac_path_EGREP and select it if it is found.
6579 # Check for GNU $ac_path_EGREP
6580 case `"$ac_path_EGREP" --version 2>&1` in
6581 *GNU*)
6582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6584 ac_count=0
6585 $as_echo_n 0123456789 >"conftest.in"
6586 while :
6588 cat "conftest.in" "conftest.in" >"conftest.tmp"
6589 mv "conftest.tmp" "conftest.in"
6590 cp "conftest.in" "conftest.nl"
6591 $as_echo 'EGREP' >> "conftest.nl"
6592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6594 as_fn_arith $ac_count + 1 && ac_count=$as_val
6595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6596 # Best one so far, save it but keep looking for a better one
6597 ac_cv_path_EGREP="$ac_path_EGREP"
6598 ac_path_EGREP_max=$ac_count
6600 # 10*(2^10) chars as input seems more than enough
6601 test $ac_count -gt 10 && break
6602 done
6603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6604 esac
6606 $ac_path_EGREP_found && break 3
6607 done
6608 done
6609 done
6610 IFS=$as_save_IFS
6611 if test -z "$ac_cv_path_EGREP"; then
6612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6614 else
6615 ac_cv_path_EGREP=$EGREP
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6621 $as_echo "$ac_cv_path_EGREP" >&6; }
6622 EGREP="$ac_cv_path_EGREP"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6626 $as_echo_n "checking for ANSI C header files... " >&6; }
6627 if ${ac_cv_header_stdc+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 #include <stdlib.h>
6633 #include <stdarg.h>
6634 #include <string.h>
6635 #include <float.h>
6638 main ()
6642 return 0;
6644 _ACEOF
6645 if ac_fn_c_try_compile "$LINENO"; then :
6646 ac_cv_header_stdc=yes
6647 else
6648 ac_cv_header_stdc=no
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 if test $ac_cv_header_stdc = yes; then
6653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <string.h>
6658 _ACEOF
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "memchr" >/dev/null 2>&1; then :
6662 else
6663 ac_cv_header_stdc=no
6665 rm -f conftest*
6669 if test $ac_cv_header_stdc = yes; then
6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 #include <stdlib.h>
6675 _ACEOF
6676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6677 $EGREP "free" >/dev/null 2>&1; then :
6679 else
6680 ac_cv_header_stdc=no
6682 rm -f conftest*
6686 if test $ac_cv_header_stdc = yes; then
6687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6688 if test "$cross_compiling" = yes; then :
6690 else
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #include <ctype.h>
6694 #include <stdlib.h>
6695 #if ((' ' & 0x0FF) == 0x020)
6696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6698 #else
6699 # define ISLOWER(c) \
6700 (('a' <= (c) && (c) <= 'i') \
6701 || ('j' <= (c) && (c) <= 'r') \
6702 || ('s' <= (c) && (c) <= 'z'))
6703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6704 #endif
6706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6708 main ()
6710 int i;
6711 for (i = 0; i < 256; i++)
6712 if (XOR (islower (i), ISLOWER (i))
6713 || toupper (i) != TOUPPER (i))
6714 return 2;
6715 return 0;
6717 _ACEOF
6718 if ac_fn_c_try_run "$LINENO"; then :
6720 else
6721 ac_cv_header_stdc=no
6723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6724 conftest.$ac_objext conftest.beam conftest.$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6730 $as_echo "$ac_cv_header_stdc" >&6; }
6731 if test $ac_cv_header_stdc = yes; then
6733 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6737 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6738 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6739 inttypes.h stdint.h unistd.h
6740 do :
6741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6745 cat >>confdefs.h <<_ACEOF
6746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6747 _ACEOF
6751 done
6754 for ac_header in sys/ipc.h sys/shm.h \
6755 sys/mmap.h sys/mman.h sysexits.h \
6756 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6758 do :
6759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6760 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 _ACEOF
6768 done
6771 for ac_header in sys/mount.h
6772 do :
6773 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6775 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF
6777 #define HAVE_SYS_MOUNT_H 1
6778 _ACEOF
6782 done
6784 for ac_header in GL/glx.h
6785 do :
6786 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6787 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6788 cat >>confdefs.h <<_ACEOF
6789 #define HAVE_GL_GLX_H 1
6790 _ACEOF
6791 host_feature_glx=yes
6792 else
6793 host_feature_glx=no
6796 done
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6800 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6804 #define __unused __attribute__((unused))
6805 #include <sys/stat.h>
6808 main ()
6812 return 0;
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 host_stat_h__unused_used=no
6817 else
6818 host_stat_h__unused_used=yes
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6822 $as_echo "$host_stat_h__unused_used" >&6; }
6824 ac_header_dirent=no
6825 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6826 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6828 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6829 if eval \${$as_ac_Header+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <sys/types.h>
6835 #include <$ac_hdr>
6838 main ()
6840 if ((DIR *) 0)
6841 return 0;
6843 return 0;
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"; then :
6847 eval "$as_ac_Header=yes"
6848 else
6849 eval "$as_ac_Header=no"
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 eval ac_res=\$$as_ac_Header
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6855 $as_echo "$ac_res" >&6; }
6856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6857 cat >>confdefs.h <<_ACEOF
6858 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6859 _ACEOF
6861 ac_header_dirent=$ac_hdr; break
6864 done
6865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6866 if test $ac_header_dirent = dirent.h; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6868 $as_echo_n "checking for library containing opendir... " >&6; }
6869 if ${ac_cv_search_opendir+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 ac_func_search_save_LIBS=$LIBS
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6876 /* Override any GCC internal prototype to avoid an error.
6877 Use char because int might match the return type of a GCC
6878 builtin and then its argument prototype would still apply. */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 char opendir ();
6884 main ()
6886 return opendir ();
6888 return 0;
6890 _ACEOF
6891 for ac_lib in '' dir; do
6892 if test -z "$ac_lib"; then
6893 ac_res="none required"
6894 else
6895 ac_res=-l$ac_lib
6896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6898 if ac_fn_c_try_link "$LINENO"; then :
6899 ac_cv_search_opendir=$ac_res
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext
6903 if ${ac_cv_search_opendir+:} false; then :
6904 break
6906 done
6907 if ${ac_cv_search_opendir+:} false; then :
6909 else
6910 ac_cv_search_opendir=no
6912 rm conftest.$ac_ext
6913 LIBS=$ac_func_search_save_LIBS
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6916 $as_echo "$ac_cv_search_opendir" >&6; }
6917 ac_res=$ac_cv_search_opendir
6918 if test "$ac_res" != no; then :
6919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6925 $as_echo_n "checking for library containing opendir... " >&6; }
6926 if ${ac_cv_search_opendir+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 ac_func_search_save_LIBS=$LIBS
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 /* Override any GCC internal prototype to avoid an error.
6934 Use char because int might match the return type of a GCC
6935 builtin and then its argument prototype would still apply. */
6936 #ifdef __cplusplus
6937 extern "C"
6938 #endif
6939 char opendir ();
6941 main ()
6943 return opendir ();
6945 return 0;
6947 _ACEOF
6948 for ac_lib in '' x; do
6949 if test -z "$ac_lib"; then
6950 ac_res="none required"
6951 else
6952 ac_res=-l$ac_lib
6953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6955 if ac_fn_c_try_link "$LINENO"; then :
6956 ac_cv_search_opendir=$ac_res
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext
6960 if ${ac_cv_search_opendir+:} false; then :
6961 break
6963 done
6964 if ${ac_cv_search_opendir+:} false; then :
6966 else
6967 ac_cv_search_opendir=no
6969 rm conftest.$ac_ext
6970 LIBS=$ac_func_search_save_LIBS
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6973 $as_echo "$ac_cv_search_opendir" >&6; }
6974 ac_res=$ac_cv_search_opendir
6975 if test "$ac_res" != no; then :
6976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6983 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6984 if ${ac_cv_header_stat_broken+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/stat.h>
6992 #if defined S_ISBLK && defined S_IFDIR
6993 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6994 #endif
6996 #if defined S_ISBLK && defined S_IFCHR
6997 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6998 #endif
7000 #if defined S_ISLNK && defined S_IFREG
7001 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7002 #endif
7004 #if defined S_ISSOCK && defined S_IFREG
7005 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7006 #endif
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 ac_cv_header_stat_broken=no
7011 else
7012 ac_cv_header_stat_broken=yes
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
7017 $as_echo "$ac_cv_header_stat_broken" >&6; }
7018 if test $ac_cv_header_stat_broken = yes; then
7020 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7025 $as_echo_n "checking for ANSI C header files... " >&6; }
7026 if ${ac_cv_header_stdc+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 #include <stdlib.h>
7032 #include <stdarg.h>
7033 #include <string.h>
7034 #include <float.h>
7037 main ()
7041 return 0;
7043 _ACEOF
7044 if ac_fn_c_try_compile "$LINENO"; then :
7045 ac_cv_header_stdc=yes
7046 else
7047 ac_cv_header_stdc=no
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 if test $ac_cv_header_stdc = yes; then
7052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 #include <string.h>
7057 _ACEOF
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "memchr" >/dev/null 2>&1; then :
7061 else
7062 ac_cv_header_stdc=no
7064 rm -f conftest*
7068 if test $ac_cv_header_stdc = yes; then
7069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 #include <stdlib.h>
7074 _ACEOF
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "free" >/dev/null 2>&1; then :
7078 else
7079 ac_cv_header_stdc=no
7081 rm -f conftest*
7085 if test $ac_cv_header_stdc = yes; then
7086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087 if test "$cross_compiling" = yes; then :
7089 else
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #include <ctype.h>
7093 #include <stdlib.h>
7094 #if ((' ' & 0x0FF) == 0x020)
7095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097 #else
7098 # define ISLOWER(c) \
7099 (('a' <= (c) && (c) <= 'i') \
7100 || ('j' <= (c) && (c) <= 'r') \
7101 || ('s' <= (c) && (c) <= 'z'))
7102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7103 #endif
7105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7107 main ()
7109 int i;
7110 for (i = 0; i < 256; i++)
7111 if (XOR (islower (i), ISLOWER (i))
7112 || toupper (i) != TOUPPER (i))
7113 return 2;
7114 return 0;
7116 _ACEOF
7117 if ac_fn_c_try_run "$LINENO"; then :
7119 else
7120 ac_cv_header_stdc=no
7122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7123 conftest.$ac_objext conftest.beam conftest.$ac_ext
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7129 $as_echo "$ac_cv_header_stdc" >&6; }
7130 if test $ac_cv_header_stdc = yes; then
7132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7137 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7138 if ${ac_cv_header_sys_wait_h+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 #include <sys/wait.h>
7145 #ifndef WEXITSTATUS
7146 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7147 #endif
7148 #ifndef WIFEXITED
7149 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7150 #endif
7153 main ()
7155 int s;
7156 wait (&s);
7157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7159 return 0;
7161 _ACEOF
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163 ac_cv_header_sys_wait_h=yes
7164 else
7165 ac_cv_header_sys_wait_h=no
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7170 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7171 if test $ac_cv_header_sys_wait_h = yes; then
7173 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7178 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7179 if ${ac_cv_header_time+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #include <sys/types.h>
7185 #include <sys/time.h>
7186 #include <time.h>
7189 main ()
7191 if ((struct tm *) 0)
7192 return 0;
7194 return 0;
7196 _ACEOF
7197 if ac_fn_c_try_compile "$LINENO"; then :
7198 ac_cv_header_time=yes
7199 else
7200 ac_cv_header_time=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7205 $as_echo "$ac_cv_header_time" >&6; }
7206 if test $ac_cv_header_time = yes; then
7208 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7212 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7213 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7215 cat >>confdefs.h <<_ACEOF
7216 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7217 _ACEOF
7220 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7225 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7226 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7228 cat >>confdefs.h <<_ACEOF
7229 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7230 _ACEOF
7233 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7235 else
7236 case " $LIBOBJS " in
7237 *" fileblocks.$ac_objext "* ) ;;
7238 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7240 esac
7245 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7246 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7248 cat >>confdefs.h <<_ACEOF
7249 #define HAVE_STRUCT_STAT_ST_RDEV 1
7250 _ACEOF
7253 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7259 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7260 if ${ac_cv_struct_tm+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 #include <time.h>
7269 main ()
7271 struct tm tm;
7272 int *p = &tm.tm_sec;
7273 return !p;
7275 return 0;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 ac_cv_struct_tm=time.h
7280 else
7281 ac_cv_struct_tm=sys/time.h
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7286 $as_echo "$ac_cv_struct_tm" >&6; }
7287 if test $ac_cv_struct_tm = sys/time.h; then
7289 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7293 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7294 #include <$ac_cv_struct_tm>
7297 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7299 cat >>confdefs.h <<_ACEOF
7300 #define HAVE_STRUCT_TM_TM_ZONE 1
7301 _ACEOF
7306 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7308 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7310 else
7311 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7313 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7314 ac_have_decl=1
7315 else
7316 ac_have_decl=0
7319 cat >>confdefs.h <<_ACEOF
7320 #define HAVE_DECL_TZNAME $ac_have_decl
7321 _ACEOF
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7324 $as_echo_n "checking for tzname... " >&6; }
7325 if ${ac_cv_var_tzname+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 #include <time.h>
7331 #if !HAVE_DECL_TZNAME
7332 extern char *tzname[];
7333 #endif
7336 main ()
7338 return tzname[0][0];
7340 return 0;
7342 _ACEOF
7343 if ac_fn_c_try_link "$LINENO"; then :
7344 ac_cv_var_tzname=yes
7345 else
7346 ac_cv_var_tzname=no
7348 rm -f core conftest.err conftest.$ac_objext \
7349 conftest$ac_exeext conftest.$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7352 $as_echo "$ac_cv_var_tzname" >&6; }
7353 if test $ac_cv_var_tzname = yes; then
7355 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7360 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7361 if test "x$ac_cv_type_off_t" = xyes; then :
7363 else
7365 cat >>confdefs.h <<_ACEOF
7366 #define off_t long int
7367 _ACEOF
7371 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7372 if test "x$ac_cv_type_pid_t" = xyes; then :
7374 else
7376 cat >>confdefs.h <<_ACEOF
7377 #define pid_t int
7378 _ACEOF
7382 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7383 if test "x$ac_cv_type_size_t" = xyes; then :
7385 else
7387 cat >>confdefs.h <<_ACEOF
7388 #define size_t unsigned int
7389 _ACEOF
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7394 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7395 if ${ac_cv_type_uid_t+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7402 _ACEOF
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 $EGREP "uid_t" >/dev/null 2>&1; then :
7405 ac_cv_type_uid_t=yes
7406 else
7407 ac_cv_type_uid_t=no
7409 rm -f conftest*
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7413 $as_echo "$ac_cv_type_uid_t" >&6; }
7414 if test $ac_cv_type_uid_t = no; then
7416 $as_echo "#define uid_t int" >>confdefs.h
7419 $as_echo "#define gid_t int" >>confdefs.h
7424 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7425 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7429 _ACEOF
7435 # Look for some functions
7436 for ac_func in getpagesize kqueue statfs statvfs \
7437 clone kse_create rfork_thread thr_create sa_register \
7438 getcontext makecontext setcontext sigaltstack swapcontext
7439 do :
7440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7441 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7442 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7443 cat >>confdefs.h <<_ACEOF
7444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7445 _ACEOF
7448 done
7454 for ac_header in $ac_header_list
7455 do :
7456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7460 cat >>confdefs.h <<_ACEOF
7461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 _ACEOF
7466 done
7475 for ac_func in getpagesize
7476 do :
7477 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7478 if test "x$ac_cv_func_getpagesize" = xyes; then :
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_GETPAGESIZE 1
7481 _ACEOF
7484 done
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7487 $as_echo_n "checking for working mmap... " >&6; }
7488 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test "$cross_compiling" = yes; then :
7492 ac_cv_func_mmap_fixed_mapped=no
7493 else
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 $ac_includes_default
7497 /* malloc might have been renamed as rpl_malloc. */
7498 #undef malloc
7500 /* Thanks to Mike Haertel and Jim Avera for this test.
7501 Here is a matrix of mmap possibilities:
7502 mmap private not fixed
7503 mmap private fixed at somewhere currently unmapped
7504 mmap private fixed at somewhere already mapped
7505 mmap shared not fixed
7506 mmap shared fixed at somewhere currently unmapped
7507 mmap shared fixed at somewhere already mapped
7508 For private mappings, we should verify that changes cannot be read()
7509 back from the file, nor mmap's back from the file at a different
7510 address. (There have been systems where private was not correctly
7511 implemented like the infamous i386 svr4.0, and systems where the
7512 VM page cache was not coherent with the file system buffer cache
7513 like early versions of FreeBSD and possibly contemporary NetBSD.)
7514 For shared mappings, we should conversely verify that changes get
7515 propagated back to all the places they're supposed to be.
7517 Grep wants private fixed already mapped.
7518 The main things grep needs to know about mmap are:
7519 * does it exist and is it safe to write into the mmap'd area
7520 * how to use it (BSD variants) */
7522 #include <fcntl.h>
7523 #include <sys/mman.h>
7525 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7526 char *malloc ();
7527 #endif
7529 /* This mess was copied from the GNU getpagesize.h. */
7530 #ifndef HAVE_GETPAGESIZE
7531 # ifdef _SC_PAGESIZE
7532 # define getpagesize() sysconf(_SC_PAGESIZE)
7533 # else /* no _SC_PAGESIZE */
7534 # ifdef HAVE_SYS_PARAM_H
7535 # include <sys/param.h>
7536 # ifdef EXEC_PAGESIZE
7537 # define getpagesize() EXEC_PAGESIZE
7538 # else /* no EXEC_PAGESIZE */
7539 # ifdef NBPG
7540 # define getpagesize() NBPG * CLSIZE
7541 # ifndef CLSIZE
7542 # define CLSIZE 1
7543 # endif /* no CLSIZE */
7544 # else /* no NBPG */
7545 # ifdef NBPC
7546 # define getpagesize() NBPC
7547 # else /* no NBPC */
7548 # ifdef PAGESIZE
7549 # define getpagesize() PAGESIZE
7550 # endif /* PAGESIZE */
7551 # endif /* no NBPC */
7552 # endif /* no NBPG */
7553 # endif /* no EXEC_PAGESIZE */
7554 # else /* no HAVE_SYS_PARAM_H */
7555 # define getpagesize() 8192 /* punt totally */
7556 # endif /* no HAVE_SYS_PARAM_H */
7557 # endif /* no _SC_PAGESIZE */
7559 #endif /* no HAVE_GETPAGESIZE */
7562 main ()
7564 char *data, *data2, *data3;
7565 const char *cdata2;
7566 int i, pagesize;
7567 int fd, fd2;
7569 pagesize = getpagesize ();
7571 /* First, make a file with some known garbage in it. */
7572 data = (char *) malloc (pagesize);
7573 if (!data)
7574 return 1;
7575 for (i = 0; i < pagesize; ++i)
7576 *(data + i) = rand ();
7577 umask (0);
7578 fd = creat ("conftest.mmap", 0600);
7579 if (fd < 0)
7580 return 2;
7581 if (write (fd, data, pagesize) != pagesize)
7582 return 3;
7583 close (fd);
7585 /* Next, check that the tail of a page is zero-filled. File must have
7586 non-zero length, otherwise we risk SIGBUS for entire page. */
7587 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7588 if (fd2 < 0)
7589 return 4;
7590 cdata2 = "";
7591 if (write (fd2, cdata2, 1) != 1)
7592 return 5;
7593 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7594 if (data2 == MAP_FAILED)
7595 return 6;
7596 for (i = 0; i < pagesize; ++i)
7597 if (*(data2 + i))
7598 return 7;
7599 close (fd2);
7600 if (munmap (data2, pagesize))
7601 return 8;
7603 /* Next, try to mmap the file at a fixed address which already has
7604 something else allocated at it. If we can, also make sure that
7605 we see the same garbage. */
7606 fd = open ("conftest.mmap", O_RDWR);
7607 if (fd < 0)
7608 return 9;
7609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7611 return 10;
7612 for (i = 0; i < pagesize; ++i)
7613 if (*(data + i) != *(data2 + i))
7614 return 11;
7616 /* Finally, make sure that changes to the mapped area do not
7617 percolate back to the file as seen by read(). (This is a bug on
7618 some variants of i386 svr4.0.) */
7619 for (i = 0; i < pagesize; ++i)
7620 *(data2 + i) = *(data2 + i) + 1;
7621 data3 = (char *) malloc (pagesize);
7622 if (!data3)
7623 return 12;
7624 if (read (fd, data3, pagesize) != pagesize)
7625 return 13;
7626 for (i = 0; i < pagesize; ++i)
7627 if (*(data + i) != *(data3 + i))
7628 return 14;
7629 close (fd);
7630 free (data);
7631 free (data3);
7632 return 0;
7634 _ACEOF
7635 if ac_fn_c_try_run "$LINENO"; then :
7636 ac_cv_func_mmap_fixed_mapped=yes
7637 else
7638 ac_cv_func_mmap_fixed_mapped=no
7640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7641 conftest.$ac_objext conftest.beam conftest.$ac_ext
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7646 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7647 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7649 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7652 rm -f conftest.mmap conftest.txt
7655 #-----------------------------------------------------------------------------
7658 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7659 # it switched on by default, and we use the host compiler, so it compiles AROS
7660 # code with this enabled resulting in link failures as we don't have support
7661 # for it.
7663 # We use two methods to disable it. For the host compiler (used to compile
7664 # some hosted modules), we test to see if the compiler supports stack
7665 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7666 # work on all platforms.
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fno-stack-protector" >&5
7670 $as_echo_n "checking whether ${CC_BASE} accepts -fno-stack-protector... " >&6; }
7671 save_cflags="$CFLAGS"
7672 CFLAGS="$CFLAGS -fno-stack-protector"
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7677 main ()
7681 return 0;
7683 _ACEOF
7684 if ac_fn_c_try_compile "$LINENO"; then :
7685 use_no_stack_protector="yes"
7686 else
7687 use_no_stack_protector="no"
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7691 $as_echo "$use_no_stack_protector" >&6; }
7692 if test "x-$use_no_stack_protector" = "x-yes" ; then
7693 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7695 CFLAGS="$save_cflags"
7697 #-----------------------------------------------------------------------------
7699 # Disable pointer-signedness warnings if the compiler recognises the option
7700 # (this only works for the host compiler at the moment)
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -Wno-pointer-sign" >&5
7703 $as_echo_n "checking whether ${CC_BASE} accepts -Wno-pointer-sign... " >&6; }
7704 save_cflags="$CFLAGS"
7705 CFLAGS="$CFLAGS -Wno-pointer-sign"
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7710 main ()
7714 return 0;
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 use_no_sign_warning="yes"
7719 else
7720 use_no_sign_warning="no"
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7724 $as_echo "$use_no_sign_warning" >&6; }
7725 if test "x-$use_no_sign_warning" = "x-yes" ; then
7726 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7728 CFLAGS="$save_cflags"
7730 #-----------------------------------------------------------------------------
7732 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -fgnu89-inline" >&5
7735 $as_echo_n "checking whether ${CC_BASE} accepts -fgnu89-inline... " >&6; }
7736 save_cflags="$CFLAGS"
7737 CFLAGS="$CFLAGS -fgnu89-inline"
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7742 main ()
7746 return 0;
7748 _ACEOF
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750 use_gnu89_inline="yes"
7751 else
7752 use_gnu89_inline="no"
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7756 $as_echo "$use_gnu89_inline" >&6; }
7757 if test "x-$use_gnu89_inline" = "x-yes" ; then
7758 gnu89_inline="-fgnu89-inline"
7760 CFLAGS="$save_cflags"
7763 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7764 # On GCC >= 4.0 -iquote should be used
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC_BASE} accepts -iquote" >&5
7767 $as_echo_n "checking whether ${CC_BASE} accepts -iquote... " >&6; }
7768 CFLAGS="$CFLAGS -iquote."
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7773 main ()
7777 return 0;
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"; then :
7781 has_iquote="yes"
7782 else
7783 has_iquote="no"
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7787 $as_echo "$has_iquote" >&6; }
7788 if test "x-$has_iquote" = "x-yes" ; then
7789 host_cflags_iquote=-iquote
7790 host_cflags_iquote_end=
7791 else
7792 host_cflags_iquote=-I
7793 host_cflags_iquote_end=-I-
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7797 $as_echo "$as_me: Performing target configuration..." >&6;}
7800 test_kernel_cc=no
7802 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7803 export_newline="
7806 aros_elf_translate=
7807 aros_warn_flags=
7808 aros_isa_extra=
7809 aros_isa_flags=
7810 aros_kernel_isaflags=
7811 aros_config_cppflags=
7812 aros_config_cflags=
7813 aros_config_cxxflags=
7814 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7815 aros_config_ldflags=""
7817 aros_shared_default=yes
7819 aros_shared_cflags="-fPIC"
7820 aros_shared_aflags=""
7821 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7822 aros_kernel_ldflags="-Wl,-rpath,./lib"
7824 aros_kernel_ar_flags="cr"
7825 aros_target_ar_flags="cr"
7826 aros_target_nm_flags="-C -ul"
7827 aros_target_strip_flags="--strip-unneeded -R.comment"
7829 aros_c_libs=
7830 aros_cxx_libs=
7832 aros_target_genmap="-Wl,-Map -Xlinker"
7834 # Native flavour stuff
7835 aros_serial_debug="0"
7837 # Palm native flavour stuff
7838 aros_palm_debug_hack="0"
7840 # Unix flavour stuff
7841 aros_nesting_supervisor="0"
7843 # Collect-aros stuff: "-ius" to ignore undefined symbols
7844 ignore_undefined_symbols=""
7846 # Check for X11 by default
7847 need_x11="auto"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7850 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7852 # Check whether --with-toolchain was given.
7853 if test "${with_toolchain+set}" = set; then :
7854 withval=$with_toolchain; aros_toolchain="$withval"
7855 else
7856 aros_toolchain="$default_toolchain_family"
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7860 $as_echo "$aros_toolchain" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7864 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7865 # Check whether --enable-lto was given.
7866 if test "${enable_lto+set}" = set; then :
7867 enableval=$enable_lto; aros_config_lto="$enableval"
7868 else
7869 aros_config_lto="no"
7872 if test "$aros_config_lto" != "no"; then
7873 aros_config_lto="yes"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7876 $as_echo "$aros_config_lto" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7879 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7880 # Check whether --enable-coverage was given.
7881 if test "${enable_coverage+set}" = set; then :
7882 enableval=$enable_coverage; aros_config_coverage="$enableval"
7883 else
7884 aros_config_coverage="no"
7887 if test "$aros_config_coverage" != "no"; then
7888 aros_config_coverage="yes"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7891 $as_echo "$aros_config_coverage" >&6; }
7893 use_ld_wrapper=yes
7895 case "$aros_toolchain" in
7896 *llvm*)
7897 toolchain_c_compiler="clang"
7898 toolchain_cxx_compiler="clang++"
7899 toolchain_cpp_preprocessor="clang"
7900 toolchain_cpp_opts=" -E"
7901 toolchain_ld="ld.lld"
7902 aros_ld="ld"
7903 toolchain_as="llvm-as"
7904 toolchain_ar="llvm-ar"
7905 toolchain_ranlib="llvm-ranlib"
7906 toolchain_nm="llvm-nm"
7907 toolchain_strip="true"
7908 toolchain_objcopy="llvm-objcopy"
7909 toolchain_objdump="llvm-objdump"
7910 use_libatomic=yes
7912 *gnu*)
7913 toolchain_c_compiler="gcc"
7914 toolchain_cxx_compiler="g++"
7915 toolchain_cpp_preprocessor="gcc"
7916 toolchain_cpp_opts=" -E"
7917 toolchain_as="as"
7918 aros_ld="ld"
7919 if test "$aros_config_lto" != "yes"; then
7920 toolchain_ld="ld"
7921 toolchain_ar="ar"
7922 toolchain_ranlib="ranlib"
7923 toolchain_nm="nm"
7924 else
7925 toolchain_ld="ld.bfd"
7926 toolchain_ar="gcc-ar"
7927 toolchain_ranlib="gcc-ranlib"
7928 toolchain_nm="gcc-nm"
7930 toolchain_strip="strip"
7931 toolchain_objcopy="objcopy"
7932 toolchain_objdump="objdump"
7933 use_libatomic=yes
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7937 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7938 toolchain_c_compiler="cc"
7939 toolchain_cxx_compiler="c++"
7940 toolchain_cpp_preprocessor="cpp"
7941 toolchain_cpp_opts=
7942 toolchain_ld="ld"
7943 aros_ld="ld"
7944 toolchain_as="as"
7945 toolchain_ar="ar"
7946 toolchain_ranlib="ranlib"
7947 toolchain_nm="nm"
7948 toolchain_strip="strip"
7949 toolchain_objcopy="objcopy"
7950 toolchain_objdump="objdump"
7952 esac
7954 #-----------------------------------------------------------------------------
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7957 $as_echo_n "checking which type of build to do... " >&6; }
7958 # Check whether --enable-build_type was given.
7959 if test "${enable_build_type+set}" = set; then :
7960 enableval=$enable_build_type; build_type=$enableval
7961 else
7962 build_type="personal"
7966 if test "$build_type" = "nightly"; then
7967 build_type_string="NIGHTLY"
7968 elif test "$build_type" = "snapshot"; then
7969 build_type_string="SNAPSHOT"
7970 elif test "$build_type" = "milestone"; then
7971 build_type_string="MILESTONE"
7972 elif test "$build_type" = "release"; then
7973 build_type_string="RELEASE"
7974 else
7975 build_type_string="PERSONAL"
7976 build_type="personal"
7979 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7982 $as_echo "$build_type" >&6; }
7984 #-----------------------------------------------------------------------------
7985 all_debug_types="messages stack modules mungwall symbols"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7988 $as_echo_n "checking which debug types to enable... " >&6; }
7989 # Check whether --enable-debug was given.
7990 if test "${enable_debug+set}" = set; then :
7991 enableval=$enable_debug; debug="$enableval"
7992 else
7993 debug=""
7997 if test "$debug" = "" -o "$debug" = "no"; then
7998 debug="none"
7999 elif test "$debug" = "yes"; then
8000 debug="all"
8003 if test "$debug" = "all" ; then
8004 debug="messages stack modules symbols"
8005 for d in $all_debug_types; do
8006 export aros_${d}_debug="1"
8007 done
8008 else
8009 for d in $all_debug_types; do
8010 export aros_${d}_debug="0"
8011 done
8014 if test "$debug" != "none"; then
8015 debug=`echo $debug | sed s/,/\ /g`
8016 for d in $debug; do
8017 found="0"
8018 for d2 in $all_debug_types; do
8019 if test "$d2" = "$d"; then
8020 found="1"
8021 break
8023 done
8024 if test "$found" = "0"; then
8025 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8027 export aros_${d}_debug="1"
8028 done
8029 aros_debug="yes"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8032 $as_echo "$debug" >&6; }
8034 if test "$aros_messages_debug" = "1"; then
8035 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8036 else
8037 aros_messages_debug=""
8039 if test "$aros_symbols_debug" = "1"; then
8040 aros_symbols_debug="-g"
8041 else
8042 aros_symbols_debug=""
8045 # These are the flags to pass when compiling debugged programs
8046 aros_debug_cppflags="$aros_messages_debug"
8047 aros_debug_cflags="$aros_symbols_debug"
8048 aros_debug_cxxflags=
8049 aros_debug_aflags=""
8050 aros_debug_ldflags="$aros_symbols_debug"
8052 #-----------------------------------------------------------------------------
8053 # Checking for distcc and ccache.
8055 # Always apply the transforms in this particular order. Basically you should
8056 # always run 'ccache distcc compiler' in that order for the best performance.
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8059 $as_echo_n "checking whether to enable distcc... " >&6; }
8060 # Check whether --enable-distcc was given.
8061 if test "${enable_distcc+set}" = set; then :
8062 enableval=$enable_distcc; distcc="$enableval"
8063 else
8064 distcc="no"
8067 if test "$distcc" != "" -a "$distcc" != "no"; then
8068 # AC_CHECK_PROG will print out the result in this case
8069 # Extract the first word of "distcc", so it can be a program name with args.
8070 set dummy distcc; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_path_DISTCC+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 case $DISTCC in
8077 [\\/]* | ?:[\\/]*)
8078 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8096 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8098 esac
8100 DISTCC=$ac_cv_path_DISTCC
8101 if test -n "$DISTCC"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8103 $as_echo "$DISTCC" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8116 $as_echo_n "checking whether to enable ccache... " >&6; }
8117 # Check whether --enable-ccache was given.
8118 if test "${enable_ccache+set}" = set; then :
8119 enableval=$enable_ccache; ccache="$enableval"
8120 else
8121 ccache="no"
8124 if test "$ccache" != "" -a "$ccache" != "no"; then
8125 # AC_CHECK_PROG will print out the result in this case
8126 # Extract the first word of "ccache", so it can be a program name with args.
8127 set dummy ccache; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_CCACHE+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 if test -n "$CCACHE"; then
8134 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_CCACHE="ccache"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8147 done
8148 done
8149 IFS=$as_save_IFS
8153 CCACHE=$ac_cv_prog_CCACHE
8154 if test -n "$CCACHE"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8156 $as_echo "$CCACHE" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8168 #-----------------------------------------------------------------------------
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8170 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8172 # Check whether --with-kernel-gcc-version was given.
8173 if test "${with_kernel_gcc_version+set}" = set; then :
8174 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8175 else
8176 kernel_tool_version=""
8179 if test "$kernel_tool_version" != "" ; then
8180 msg_result=$kernel_tool_version
8181 else
8182 msg_result="default"
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8185 $as_echo "$msg_result" >&6; }
8187 #-----------------------------------------------------------------------------
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8189 $as_echo_n "checking what optimization flags to use... " >&6; }
8191 # Check whether --with-optimization was given.
8192 if test "${with_optimization+set}" = set; then :
8193 withval=$with_optimization; optimization_level="$withval"
8194 else
8195 optimization_level="unknown"
8198 if test "$optimization_level" = "unknown"; then
8199 optimization="default"
8200 if test "$debug" != "none"; then
8201 optimization_level="-O0"
8202 else
8203 optimization_level="-O2"
8205 else
8206 optimization="$optimization_level"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8209 $as_echo "$optimization" >&6; }
8211 paranoia_default=yes
8212 #-----------------------------------------------------------------------------
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8214 $as_echo_n "checking which paranoia flags to use... " >&6; }
8216 # Check whether --with-paranoia was given.
8217 if test "${with_paranoia+set}" = set; then :
8218 withval=$with_paranoia; paranoia_flags="$withval"
8219 else
8220 paranoia_flags="$paranoia_default"
8223 if test "$paranoia_flags" = "no"; then
8224 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8225 msg_result="none"
8226 else
8227 if test "$paranoia_flags" = "yes"; then
8228 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8230 msg_result="$paranoia_flags"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8233 $as_echo "$msg_result" >&6; }
8234 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8236 #-----------------------------------------------------------------------------
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8238 $as_echo_n "checking what target variant to enable... " >&6; }
8239 # Check whether --enable-target_variant was given.
8240 if test "${enable_target_variant+set}" = set; then :
8241 enableval=$enable_target_variant; target_variant=$enableval
8242 else
8243 target_variant=""
8246 if test "$target_variant" = ""; then
8247 aros_target_variant=""
8248 aros_target_suffix=""
8249 enableval="none"
8250 else
8251 aros_target_variant="$target_variant"
8252 aros_target_suffix="-$target_variant"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8255 $as_echo "$enableval" >&6; }
8257 #-----------------------------------------------------------------------------
8258 # Target-specific defaults. You can override then on a per-target basis.
8260 # Bootloader name. Currently used by PC target.
8261 target_bootloader="none"
8262 PLATFORM_EXECSMP=
8263 ENABLE_EXECSMP=
8265 #-----------------------------------------------------------------------------
8266 # Additional options for some specific targets
8268 case "$aros_target_variant" in
8269 ios)
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8271 $as_echo_n "checking XCode path... " >&6; }
8273 # Check whether --with-xcode was given.
8274 if test "${with_xcode+set}" = set; then :
8275 withval=$with_xcode; aros_xcode_path="$withval"
8276 else
8277 aros_xcode_path="/Developer"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8281 $as_echo "$aros_xcode_path" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8284 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8286 # Check whether --with-sdk-version was given.
8287 if test "${with_sdk_version+set}" = set; then :
8288 withval=$with_sdk_version; aros_sdk_version="$withval"
8289 else
8290 aros_sdk_version="4.1"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8294 $as_echo "$aros_sdk_version" >&6; }
8298 "android")
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8300 $as_echo_n "checking Android SDK path... " >&6; }
8302 # Check whether --with-sdk was given.
8303 if test "${with_sdk+set}" = set; then :
8304 withval=$with_sdk; aros_android_sdk="$withval"
8305 else
8306 aros_android_sdk=$default_android_sdk
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8310 $as_echo "$aros_android_sdk" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8313 $as_echo_n "checking Android NDK path... " >&6; }
8315 # Check whether --with-ndk was given.
8316 if test "${with_ndk+set}" = set; then :
8317 withval=$with_ndk; aros_android_ndk="$withval"
8318 else
8319 aros_android_ndk="none"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8323 $as_echo "$aros_android_ndk" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8326 $as_echo_n "checking what Android SDK version to use... " >&6; }
8328 # Check whether --with-sdk-version was given.
8329 if test "${with_sdk_version+set}" = set; then :
8330 withval=$with_sdk_version; aros_sdk_version="$withval"
8331 else
8332 aros_sdk_version="12"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8336 $as_echo "$aros_sdk_version" >&6; }
8338 aros_android_level=android-$aros_sdk_version
8339 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8340 echo "Platform $aros_android_level is not installed in your SDK"
8341 echo "Use --with-sdk-version=<API level number> to select another platform version"
8342 echo "You can check what plaform versions are installed in your SDK"
8343 echo "by examining contents of $aros_android_sdk/platforms directory"
8344 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8347 export PATH="$aros_android_sdk/tools:$PATH"
8348 # Extract the first word of "$android_tool", so it can be a program name with args.
8349 set dummy $android_tool; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_path_android_tool+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 case $android_tool in
8356 [\\/]* | ?:[\\/]*)
8357 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8373 IFS=$as_save_IFS
8376 esac
8378 android_tool=$ac_cv_path_android_tool
8379 if test -n "$android_tool"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8381 $as_echo "$android_tool" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8388 req_avail=yes
8389 if test "$android_tool" = ""; then
8390 req_avail=no
8392 if test "$android_tool" = "no"; then
8393 req_avail=no
8395 if test "$req_avail" = "no"; then
8396 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8399 if test "$aros_android_ndk" != "none"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8401 $as_echo_n "checking what Android NDK version to use... " >&6; }
8403 # Check whether --with-ndk-version was given.
8404 if test "${with_ndk_version+set}" = set; then :
8405 withval=$with_ndk_version; aros_ndk_version="$withval"
8406 else
8407 aros_ndk_version="9"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8411 $as_echo "$aros_ndk_version" >&6; }
8414 # Extract the first word of "ant", so it can be a program name with args.
8415 set dummy ant; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_path_ant+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 case $ant in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8437 done
8438 done
8439 IFS=$as_save_IFS
8442 esac
8444 ant=$ac_cv_path_ant
8445 if test -n "$ant"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8447 $as_echo "$ant" >&6; }
8448 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8454 if test "$ant" = ""; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8456 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8460 $as_echo_n "checking Build debug or release apk... " >&6; }
8462 # Check whether --with-apk-version was given.
8463 if test "${with_apk_version+set}" = set; then :
8464 withval=$with_apk_version; aros_android_antapk=$withval
8465 else
8466 aros_android_antapk=release
8469 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8470 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8473 $as_echo "$aros_android_antapk" >&6; }
8475 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8476 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8477 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8479 if test "$host_os" = "mingw32"; then
8480 android_tool="cmd //c $android_tool"
8483 need_dlopen="no"
8486 esac
8488 #-----------------------------------------------------------------------------
8489 # External toolchains
8490 kernel_tool_prefix="none"
8491 aros_tool_prefix="none"
8492 elf_tool_prefix="${target_cpu}-elf-"
8494 # Base target cpu ISA configuration switch.
8495 case "$target_cpu" in
8496 *aarch64*)
8498 *arm*)
8500 *m68k*)
8501 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8502 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8503 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8504 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8505 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8506 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8507 m68k_020_ext="ISA_MC68020_EXT :=020"
8508 m68k_030_ext="ISA_MC68030_EXT :=030"
8509 m68k_040_ext="ISA_MC68040_EXT :=040"
8510 m68k_060_ext="ISA_MC68060_EXT :=060"
8511 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8512 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8513 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8514 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8515 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8516 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8517 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8518 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8519 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8520 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8521 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8522 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8524 *x86_64* | *i?86*)
8525 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8526 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8528 *powerpc*)
8530 esac
8532 # This is the target configuration switch.
8533 case "$target_os" in
8534 linux*)
8535 HOST_WANTS_X11=yes
8536 HOST_WANTS_GLX=yes
8537 HOST_WANTS_SDL=yes
8538 HOST_WANTS_DBUS=yes
8539 HOST_WANTS_DLOPEN=yes
8540 aros_target_arch="linux"
8541 aros_target_family="unix"
8542 case "$target_cpu" in
8543 *m68k*)
8544 aros_target_cpu="m68k"
8545 aros_object_format="m68kelf"
8546 aros_flavour="emulcompat"
8547 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8548 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8549 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8550 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8551 gcc_target_cpu="mc68000"
8553 *i?86*)
8554 aros_target_cpu="i386"
8555 aros_object_format="elf_i386"
8556 aros_flavour="emulation"
8557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8558 aros_isa_flags="$""(ISA_X86_FLAGS)"
8559 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8560 aros_kernel_ldflags="-Wl,-melf_i386"
8561 aros_nominal_depth=8
8562 gcc_target_cpu="i386"
8563 pci_hidd_target="hidd-pci-linux"
8564 android_tool_dir_prefix="x86"
8565 android_tool_prefix="i686-android-linux"
8566 android_ndk_arch="x86"
8568 *x86_64*)
8569 aros_target_cpu="x86_64"
8570 aros_object_format="elf_x86_64"
8571 aros_flavour="emulation"
8572 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8573 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8574 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8575 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8576 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8577 aros_nominal_depth=8
8578 pci_hidd_target="hidd-pci-linux"
8580 *powerpc*)
8581 aros_target_cpu="ppc"
8582 aros_object_format="elf32ppc"
8583 aros_flavour="emulation"
8584 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8585 aros_nominal_depth=8
8586 gcc_target_cpu="ppc"
8588 # TODO
8589 # Same as powerpc, but I need this for the nightly build to work again.
8590 # Actually, the nightly should be made working with powerpc target.
8591 # That just was too much work for the moment, another week or two.
8592 *ppc*)
8593 aros_target_cpu="ppc"
8594 aros_object_format="elf32ppc"
8595 aros_flavour="emulation"
8596 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8597 aros_nominal_depth=8
8598 gcc_target_cpu="ppc"
8600 *aarch64*)
8601 aros_target_cpu="aarch64"
8602 target_cpu="aarch64"
8603 aros_object_format="aarch64elf_aros"
8604 aros_flavour="emulation"
8605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8606 gcc_target_cpu="aarch64"
8607 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8608 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8609 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8610 aros_c_libs="$aros_c_libs -laeabi"
8611 gcc_default_float_abi="hard"
8612 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8614 *armhf*)
8615 aros_target_cpu="arm"
8616 target_cpu="arm"
8617 aros_object_format="armelf_aros"
8618 aros_flavour="emulation"
8619 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8620 gcc_target_cpu="arm"
8621 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8622 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8623 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8624 aros_c_libs="$aros_c_libs -laeabi"
8625 gcc_default_float_abi="hard"
8626 android_tool_dir_prefix="arm-linux-androideabi"
8627 android_tool_prefix="arm-linux-androideabi"
8628 android_ndk_arch="arm"
8629 kernel_tool_prefix="arm-linux-gnueabihf-"
8631 *arm*)
8632 aros_target_cpu="arm"
8633 aros_object_format="armelf_aros"
8634 aros_flavour="emulation"
8635 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8636 gcc_target_cpu="arm"
8637 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8638 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8639 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8640 aros_c_libs="$aros_c_libs -laeabi"
8641 android_tool_dir_prefix="arm-linux-androideabi"
8642 android_tool_prefix="arm-linux-androideabi"
8643 android_ndk_arch="arm"
8644 kernel_tool_prefix="arm-linux-gnueabi-"
8647 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8649 esac
8650 case "$aros_target_variant" in
8651 android)
8653 if test "$android_ndk_arch" = ""; then
8654 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8657 aros_nominal_width=320
8658 aros_nominal_height=480
8659 if test "$aros_android_ndk" = "none"; then
8660 aros_kernel_cflags="-mandroid"
8661 aros_kernel_ldflags="-mandroid"
8662 CFLAGS="-mandroid"
8663 else
8664 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8665 kernel_tool_version=""
8666 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8667 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8668 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8669 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8670 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8672 need_x11=no
8673 # Disable implicit PIC mode
8674 aros_config_cflags="$aros_config_cflags -fno-pic"
8675 kernel_tool_prefix="$android_tool_prefix-"
8677 esac
8681 aros_target_arch="pc"
8682 aros_shared_default="no"
8683 target_bootloader="grub2"
8684 case "$target_cpu" in
8685 *i?86*)
8686 aros_target_cpu="i386"
8689 if test "$aros_object_format" = "" ; then
8690 aros_object_format="elf_i386"
8692 aros_flavour="standalone"
8693 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8694 aros_isa_flags="$""(ISA_X86_FLAGS)"
8695 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8696 aros_kernel_ldflags="-Wl,-melf_i386"
8697 aros_nominal_width=640
8698 aros_nominal_height=480
8699 gcc_target_cpu="i386"
8701 *x86_64*)
8702 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8703 aros_target_cpu="x86_64"
8704 aros_serial_debug=1
8705 if test "$aros_object_format" = "" ; then
8706 aros_object_format="elf_x86_64"
8708 aros_flavour="standalone"
8709 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8710 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8711 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8712 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8713 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8714 aros_kernel_ldflags=""
8715 aros_nominal_width=640
8716 aros_nominal_height=480
8717 case "$aros_target_variant" in
8718 smp)
8719 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8721 esac
8724 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8726 esac
8729 prep)
8730 aros_target_arch="prep"
8731 aros_shared_default="no"
8732 aros_target_cpu="ppc"
8733 aros_object_format="elf32ppc"
8734 aros_flavour="ppcnative"
8735 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8736 aros_kernel_ldflags=""
8737 aros_nominal_width=640
8738 aros_nominal_height=480
8739 gcc_target_cpu="ppc"
8742 freebsd*)
8743 HOST_WANTS_X11=yes
8744 HOST_WANTS_GLX=yes
8745 HOST_WANTS_SDL=yes
8746 HOST_WANTS_DBUS=yes
8747 HOST_WANTS_DLOPEN=yes
8748 aros_target_arch="freebsd"
8749 aros_target_family="unix"
8750 aros_target_cpu="i386"
8751 aros_flavour="emulation"
8752 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8753 gcc_target_cpu="i386"
8755 aros_target_strip_flags="-x"
8758 darwin*)
8759 HOST_WANTS_X11=yes
8760 HOST_WANTS_GLX=yes
8761 HOST_WANTS_SDL=yes
8762 HOST_WANTS_DBUS=yes
8763 HOST_WANTS_DLOPEN=yes
8764 aros_target_arch="darwin"
8765 aros_target_family="unix"
8766 aros_flavour="emulation"
8767 case "$target_cpu" in
8768 *i?86*)
8769 aros_ios_platform="iPhoneSimulator"
8770 aros_target_cpu="i386"
8771 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8772 aros_isa_flags="$""(ISA_X86_FLAGS)"
8773 aros_kernel_ldflags=""
8774 aros_macosx_version="10.4"
8775 aros_nominal_depth=8
8776 gcc_target_cpu="i386"
8777 aros_object_format="elf_i386"
8778 aros_kernel_ar_flags="-cr"
8779 aros_target_strip_flags="-x"
8780 kernel_tool_flags="-m32"
8782 *x86_64*)
8783 aros_target_cpu="x86_64"
8784 aros_object_format="elf_x86_64"
8785 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8786 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8787 aros_macosx_version="10.6"
8788 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8789 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8790 aros_kernel_cflags="-m64"
8791 aros_kernel_ldflags="-m64"
8792 aros_nominal_depth=8
8793 aros_kernel_rs="$toolchain_ar"
8794 aros_kernel_ar_flags="-cr"
8795 aros_kernel_ld="$toolchain_ld"
8796 aros_kernel_as="$toolchain_as"
8797 aros_kernel_ranlib="$toolchain_ranlib"
8798 aros_kernel_nm="$toolchain_nm"
8799 aros_kernel_strip="strip"
8800 kernel_tool_prefix="i686-apple-darwin10-"
8802 *ppc*)
8803 aros_target_cpu="ppc"
8804 aros_object_format="elf32ppc"
8805 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8806 aros_kernel_ldflags=""
8807 aros_macosx_version="10.0"
8808 aros_nominal_depth=8
8809 gcc_target_cpu="ppc"
8810 aros_kernel_rs="$toolchain_ar"
8811 aros_kernel_ar_flags="-cr"
8812 aros_kernel_ld="$toolchain_ld -arch ppc"
8813 aros_kernel_as="$toolchain_as -arch ppc"
8814 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
8815 aros_kernel_nm="$toolchain_nm -arch ppc"
8816 aros_kernel_strip="strip -arch ppc"
8817 kernel_tool_prefix="powerpc-apple-darwin10-"
8819 *arm*)
8820 aros_ios_platform="iPhoneOS"
8821 aros_target_cpu="arm"
8822 aros_object_format="armelf_aros"
8823 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8824 aros_c_libs="$aros_c_libs -laeabi"
8825 aros_nominal_depth=8
8826 gcc_target_cpu="arm"
8827 aros_kernel_rs="$toolchain_ar"
8828 aros_kernel_ar_flags="-cr"
8829 aros_kernel_ld="$toolchain_ld -arch arm"
8830 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
8831 kernel_tool_prefix="arm-apple-darwin10-"
8832 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8835 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8837 esac
8838 case "$aros_target_variant" in
8839 ios)
8840 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8841 aros_ios_version="3.0"
8842 aros_nominal_width=320
8843 aros_nominal_height=480
8844 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8845 target_extra_cfg+="$export_newline""# Apple iOS specific$export_newline""IOS_PLATFORM := $aros_ios_platform$export_newline""IOS_OS_VERSION := $aros_ios_version$export_newline""IOS_SDK_PATH := $aros_ios_sdk$export_newline"
8846 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8847 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8848 need_x11=no
8849 # This is here because it may depend on iOS or SDK version
8850 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8851 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8852 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8855 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8856 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8858 esac
8861 dragonfly*)
8862 HOST_WANTS_X11=yes
8863 HOST_WANTS_GLX=yes
8864 HOST_WANTS_SDL=yes
8865 HOST_WANTS_DBUS=yes
8866 HOST_WANTS_DLOPEN=yes
8867 aros_target_arch="dragonfly"
8868 aros_target_family="unix"
8869 aros_flavour="emulation"
8870 case "$target_cpu" in
8871 *i?86*)
8872 aros_target_cpu="i386"
8873 aros_object_format="elf_i386"
8874 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8875 aros_isa_flags="$""(ISA_X86_FLAGS)"
8877 *x86_64*)
8878 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8879 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8880 aros_target_cpu="x86_64"
8881 aros_object_format="elf_x86_64"
8882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8883 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8886 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8888 esac
8891 netbsd*)
8892 HOST_WANTS_X11=yes
8893 HOST_WANTS_GLX=yes
8894 HOST_WANTS_SDL=yes
8895 HOST_WANTS_DBUS=yes
8896 HOST_WANTS_DLOPEN=yes
8897 aros_target_arch="netbsd"
8898 aros_target_family="unix"
8899 case "$target_cpu" in
8900 *m68k*)
8901 aros_target_cpu="m68k"
8902 aros_object_format="m68kelf"
8903 aros_flavour="emulcompat"
8904 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8905 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8906 gcc_target_cpu="mc68000"
8908 *i?86*)
8909 aros_target_cpu="i386"
8910 aros_object_format="elf_i386"
8911 aros_flavour="emulation"
8912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8913 aros_isa_flags="$""(ISA_X86_FLAGS)"
8914 aros_nominal_depth=8
8915 gcc_target_cpu="i386"
8918 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8920 esac
8921 aros_target_genmap="-Wl,-M -Xlinker >"
8922 aros_flavour="emulation"
8923 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8926 openbsd*)
8927 HOST_WANTS_X11=yes
8928 HOST_WANTS_GLX=yes
8929 HOST_WANTS_SDL=yes
8930 HOST_WANTS_DBUS=yes
8931 HOST_WANTS_DLOPEN=yes
8932 aros_target_arch="openbsd"
8933 aros_target_family="unix"
8934 case "$target_cpu" in
8935 *i?86*)
8936 aros_target_cpu="i386"
8937 aros_object_format="elf_i386"
8938 aros_flavour="emulation"
8939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8940 aros_isa_flags="$""(ISA_X86_FLAGS)"
8941 gcc_target_cpu="i386"
8944 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8946 esac
8947 aros_target_genmap="-Wl,-M -Xlinker >"
8948 aros_target_nm_flags="-u"
8949 aros_flavour="emulation"
8952 solaris*)
8953 aros_target_arch="solaris"
8954 aros_target_family="unix"
8955 case "$target_cpu" in
8956 *i?86*)
8957 aros_target_cpu="i386"
8958 aros_object_format="elf_i386"
8959 aros_flavour="emulation"
8960 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8961 aros_isa_flags="$""(ISA_X86_FLAGS)"
8962 aros_nominal_depth=8
8963 gcc_target_cpu="i386"
8965 *sparc*)
8966 aros_target_cpu="sparc"
8967 aros_object_format="elf_sparc"
8968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8969 gcc_target_cpu="sparc"
8972 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8974 esac
8975 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8976 aros_flavour="emulation"
8979 morphos*)
8980 aros_target_arch="morphos"
8981 aros_shared_default="no"
8982 aros_target_cpu="ppc"
8983 aros_object_format="elf_ppc"
8984 aros_flavour="nativecompat"
8985 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8986 gcc_target_cpu="ppc"
8989 sam440)
8990 aros_target_arch="sam440"
8991 aros_shared_default="no"
8992 aros_target_cpu="ppc"
8993 aros_object_format="elf32ppc"
8994 aros_flavour="ppcnative"
8995 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8996 aros_kernel_ldflags=""
8997 aros_nominal_width=1024
8998 aros_nominal_height=768
8999 aros_nominal_depth=24
9000 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
9001 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9002 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9003 gcc_target_cpu="powerpc"
9006 efika)
9007 aros_target_arch="efika"
9008 aros_shared_default="no"
9009 aros_target_cpu="arm"
9010 aros_object_format="armelf_aros"
9011 aros_flavour="standalone"
9012 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9013 aros_kernel_ldflags=""
9014 aros_nominal_width=1024
9015 aros_nominal_height=600
9016 aros_c_libs="$aros_c_libs -laeabi"
9017 gcc_default_cpu="armv7-a"
9018 gcc_default_fpu="vfpv3"
9019 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
9020 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9021 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9022 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9023 if test "$optimization" = "default"; then
9024 optimization_level="-Os"
9026 case "$target_cpu" in
9027 *armhf*)
9028 gcc_default_float_abi="hard"
9029 target_cpu=arm
9030 aros_target_cpu=arm
9032 *arm*)
9033 gcc_default_float_abi="softfp"
9036 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9038 esac
9041 chrp)
9042 aros_target_arch="chrp"
9043 aros_shared_default="no"
9044 aros_target_cpu="ppc"
9045 aros_object_format="elf32ppc"
9046 aros_flavour="ppcnative"
9047 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9048 aros_kernel_ldflags=""
9049 aros_nominal_width=640
9050 aros_nominal_height=480
9051 aros_isa_flags="$aros_isa_flags -mno-toc"
9052 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9053 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9054 gcc_target_cpu="powerpc"
9055 case "$aros_target_variant" in
9056 efika)
9057 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9058 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9060 esac
9063 r*pi)
9064 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9065 aros_flavour="standalone"
9066 aros_target_arch="raspi"
9068 aros_shared_default="no"
9070 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9072 case "$target_cpu" in
9073 *aarch64*)
9074 aros_target_cpu="aarch64"
9075 gcc_default_cpu="aarch64"
9076 aros_object_format="aarch64elf_aros"
9078 *armhf*)
9079 aros_target_cpu="arm"
9080 gcc_default_cpu="armv6zk"
9081 gcc_default_cpu_tune="arm1176jzf-s"
9082 aros_object_format="armelf_aros"
9083 aros_isa_flags="$aros_isa_flags -marm"
9084 aros_config_cflags="$aros_config_cflags"
9085 aros_config_cxxflags="$aros_config_cxxflags"
9086 aros_config_aflags="$aros_config_aflags -marm"
9087 aros_kernel_cflags="$aros_kernel_cflags -marm"
9088 aros_target_mkdep="$aros_target_mkdep -Darm"
9089 aros_c_libs="$aros_c_libs -laeabi"
9091 *armeb*)
9092 aros_flavour="standcompat"
9093 aros_target_cpu="armeb"
9094 gcc_default_float_abi="hard"
9095 gcc_default_cpu="armv7ve"
9096 gcc_default_cpu_tune="cortex-a7"
9097 aros_object_format="armelfb_aros"
9098 aros_isa_flags="$aros_isa_flags -marm"
9099 aros_config_cflags="$aros_config_cflags"
9100 aros_config_cxxflags="$aros_config_cxxflags"
9101 aros_config_aflags="$aros_config_aflags -marm"
9102 aros_kernel_cflags="$aros_kernel_cflags -marm"
9103 aros_target_mkdep="$aros_target_mkdep -Darm"
9104 aros_c_libs="$aros_c_libs -laeabi"
9106 *arm*)
9107 aros_target_cpu="arm"
9108 gcc_default_cpu="armv6zk"
9109 gcc_default_cpu_tune="arm1176jzf-s"
9110 aros_object_format="armelf_aros"
9111 aros_isa_flags="$aros_isa_flags -marm"
9112 aros_config_cflags="$aros_config_cflags"
9113 aros_config_cxxflags="$aros_config_cxxflags"
9114 aros_config_aflags="$aros_config_aflags -marm"
9115 aros_kernel_cflags="$aros_kernel_cflags -marm"
9116 aros_target_mkdep="$aros_target_mkdep -Darm"
9117 aros_c_libs="$aros_c_libs -laeabi"
9120 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9122 esac
9124 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9125 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9126 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9127 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9129 case "$aros_target_variant" in
9130 smp)
9131 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9133 esac
9136 stm32f7_discovery)
9137 aros_flavour="standalone"
9138 aros_target_arch="stm32f7_discovery"
9139 aros_target_cpu="arm"
9140 aros_target_cpu_mode="thumb2"
9141 aros_object_format="armelf_aros"
9142 aros_shared_default="no"
9144 gcc_default_cpu="armv7e-m"
9145 gcc_default_cpu_tune="cortex-m7"
9146 gcc_default_fpu="fpv5-sp-d16"
9147 gcc_default_float_abi="hard"
9149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9152 amiga*)
9153 aros_elf_translate="$""(ELF2HUNK)"
9154 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9155 aros_target_arch="amiga"
9156 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9157 aros_shared_default="no"
9159 case "$target_cpu" in
9160 *m68k*)
9161 # Check whether --enable-amigaos_compliance was given.
9162 if test "${enable_amigaos_compliance+set}" = set; then :
9163 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9166 aros_enable_mmu=no
9167 aros_target_cpu="m68k"
9168 aros_object_format="m68kelf"
9169 aros_flavour="standcompat"
9170 gcc_target_cpu="m68000"
9171 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9172 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9173 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9174 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9175 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9176 if test "$optimization" = "default"; then
9177 optimization_level="-Os"
9179 aros_config_aflags="$aros_config_aflags"
9180 aros_target_strip_flags="-R.comment --strip-debug"
9181 aros_nominal_width=640
9182 aros_nominal_height=256
9183 aros_nominal_depth=2
9185 *ppc*)
9186 aros_cpu="ppc"
9187 aros_flavour="native"
9188 gcc_target_cpu="ppc"
9191 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9193 esac
9196 mingw*)
9197 aros_target_arch="mingw32"
9198 aros_shared_default="no"
9199 aros_flavour="emulation"
9200 aros_shared_cflags=""
9201 need_crosstools="yes"
9202 need_dlopen="no"
9203 rescomp="windres"
9204 case "$target_cpu" in
9205 *i?86*)
9206 aros_target_cpu="i386"
9207 aros_object_format="elf_i386"
9208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9209 aros_isa_flags="$""(ISA_X86_FLAGS)"
9210 aros_nominal_depth=8
9211 gcc_target_cpu="i386"
9213 kernel_tool_prefix="i386-mingw32-"
9215 *x86_64*)
9216 aros_target_cpu="x86_64"
9217 aros_object_format="elf_x86_64"
9218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9219 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9220 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9221 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9222 aros_nominal_depth=8
9223 kernel_tool_prefix="x86_64-w64-mingw32-"
9225 *arm*)
9226 aros_target_cpu="arm"
9227 aros_object_format="armelf_aros"
9228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9229 aros_c_libs="$aros_c_libs -laeabi"
9230 aros_nominal_depth=8
9231 gcc_target_cpu="arm"
9232 gcc_default_float_abi="soft"
9233 kernel_tool_prefix="arm-mingw32ce-"
9234 aros_nominal_width=160
9235 aros_nominal_height=160
9238 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9240 esac
9241 if test $host_os = "cygwin"; then
9242 aros_kernel_cflags="-mno-cygwin"
9245 pp*)
9246 aros_target_arch="pp"
9247 aros_shared_default="no"
9248 case "$target_cpu" in
9249 *m68k*)
9250 aros_target_cpu="m68k"
9251 aros_object_format="m68kelf"
9252 aros_flavour="palmnative"
9253 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9254 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9255 aros_nominal_width=160
9256 aros_nominal_height=160
9257 aros_nominal_depth=1
9258 aros_target_ar_flags="cru"
9259 aros_c_libs="$aros_c_libs -lgcc1"
9260 aros_shared_default=no
9261 aros_shared_cflags="-fpic"
9262 aros_shared_aflags=""
9263 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9264 aros_kernel_ldflags="-Wl,-rpath,./lib"
9265 aros_debug_cppflags="$aros_messages_debug"
9266 aros_debug_cflags="$aros_symbols_debug"
9267 aros_debug_aflags=""
9268 aros_debug_ldflags="$aros_symbols_debug"
9269 aros_mungwall_debug="0"
9270 aros_modules_debug="0"
9271 gcc_target_cpu="mc68000"
9272 ignore_undefined_symbols="-ius"
9275 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9277 esac
9280 mac*)
9281 aros_target_arch="mac"
9282 aros_shared_default="no"
9283 case "$target_cpu" in
9284 *m68k*)
9285 aros_target_cpu="m68k"
9286 aros_object_format="m68kelf"
9287 aros_flavour="mac68knative"
9288 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9289 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9290 aros_nominal_width=512
9291 aros_nominal_height=384
9292 aros_nominal_depth=8
9293 aros_target_ar_flags="cru"
9294 aros_c_libs="$aros_c_libs -lgcc1"
9295 aros_shared_default=no
9296 aros_shared_cflags="-fpic"
9297 aros_shared_aflags=""
9298 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9299 aros_kernel_ldflags="-Wl,-rpath,./lib"
9300 aros_debug_cppflags="$aros_messages_debug"
9301 aros_debug_cflags="$aros_symbols_debug"
9302 aros_debug_aflags=""
9303 aros_debug_ldflags="$aros_symbols_debug"
9304 aros_mungwall_debug="0"
9305 aros_modules_debug="0"
9306 gcc_target_cpu="mc68000"
9307 ignore_undefined_symbols="-ius"
9310 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9312 esac
9316 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9318 esac
9320 #-----------------------------------------------------------------------------
9321 crosstools_guess="yes"
9322 aros_target_toolchain="no"
9323 aros_kernel_sysroot=""
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9326 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9328 # Check whether --with-kernel-toolchain-prefix was given.
9329 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9330 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9334 $as_echo "$kernel_tool_prefix" >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9337 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9339 # Check whether --with-elf-toolchain-prefix was given.
9340 if test "${with_elf_toolchain_prefix+set}" = set; then :
9341 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9342 crosstools_guess="no"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9346 $as_echo "$elf_tool_prefix" >&6; }
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9349 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9351 # Check whether --with-aros-toolchain was given.
9352 if test "${with_aros_toolchain+set}" = set; then :
9353 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9354 crosstools_guess="no"
9357 if test "$aros_tool_prefix" = "yes" ; then
9358 aros_tool_prefix=$aros_target_cpu-aros-
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9361 $as_echo "$aros_tool_prefix" >&6; }
9363 #-----------------------------------------------------------------------------
9364 # Checking if we should build crosstools..
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9366 $as_echo_n "checking whether to build crosstools... " >&6; }
9367 # Check whether --enable-crosstools was given.
9368 if test "${enable_crosstools+set}" = set; then :
9369 enableval=$enable_crosstools; crosstools="$enableval"
9370 else
9371 crosstools="$crosstools_guess"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9375 $as_echo "$crosstools" >&6; }
9377 if test "${crosstools}" = "yes"; then
9378 if test "${crosstools_guess}" = "no"; then
9379 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9383 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9384 aros_target_toolchain="yes"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9388 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9390 # Check whether --with-aros-toolchain-install was given.
9391 if test "${with_aros_toolchain_install+set}" = set; then :
9392 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9395 if test "x$aros_toolchain_install" = "x"; then
9396 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9397 else
9398 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9399 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9400 if test "$crosstools_guess" = "no" ; then
9401 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9402 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9407 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9409 #-----------------------------------------------------------------------------
9410 if test "$aros_toolchain" = "gnu" ; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9412 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9415 # Check whether --with-binutils-version was given.
9416 if test "${with_binutils_version+set}" = set; then :
9417 withval=$with_binutils_version; use_binutils_version="$withval"
9418 else
9419 use_binutils_version=""
9422 if test "$use_binutils_version" = ""; then
9423 target_binutils_version="$default_binutils_version"
9424 else
9425 target_binutils_version="$use_binutils_version"
9427 if test "$aros_toolchain" = "gnu" ; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9429 $as_echo "$target_binutils_version" >&6; }
9433 # Helper to identify gcc version
9436 #-----------------------------------------------------------------------------
9437 if test "$aros_toolchain" = "gnu" ; then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9439 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9442 # Check whether --with-gcc-version was given.
9443 if test "${with_gcc_version+set}" = set; then :
9444 withval=$with_gcc_version; use_gcc_version="$withval"
9445 else
9446 use_gcc_version=""
9449 if test "$use_gcc_version" = ""; then
9450 if test "${crosstools}" = "no"; then
9451 if test "x$aros_toolchain_install" != "x"; then
9453 target_gcc_version=""
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9455 $as_echo_n "checking gcc version... " >&6; }
9456 if ${ax_cv_gcc_version+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9460 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} $(toolchain_cpp_opts) -dumpversion`"
9461 if test "x$ax_cv_gcc_version" = "x"; then :
9463 ax_cv_gcc_version=""
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9469 $as_echo "$ax_cv_gcc_version" >&6; }
9470 target_gcc_version=$ax_cv_gcc_version
9475 if test "$use_gcc_version" = ""; then
9476 target_gcc_version="$default_gcc_version"
9478 else
9479 target_gcc_version="$use_gcc_version"
9481 if test "$aros_toolchain" = "gnu" ; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9483 $as_echo "$target_gcc_version" >&6; }
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9486 $as_echo_n "checking version string style... " >&6; }
9487 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9489 $as_echo "snapshot" >&6; }
9490 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9491 GCC_VERSION_MINOR=-1
9492 GCC_VERSION_PATCH=-1
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9495 $as_echo "release" >&6; }
9496 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9497 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9498 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9501 gcc_fix_bitfields="false"
9502 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9503 gcc_fix_bitfields="true"
9504 else
9505 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9506 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9507 gcc_fix_bitfields="true"
9512 if test "$gcc_fix_bitfields" = "true" ; then
9513 case "$aros_target_cpu" in
9514 *x86_64* | *i?86*)
9515 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9516 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9518 esac
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9523 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9524 # Check whether --enable-objc was given.
9525 if test "${enable_objc+set}" = set; then :
9526 enableval=$enable_objc; objc="$enableval"
9527 else
9528 objc="no"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9532 $as_echo "$objc" >&6; }
9533 if test "x$objc" = "xyes"; then
9534 objc_target="$objc"
9535 else
9536 objc_target="no-objc"
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9540 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9541 # Check whether --enable-java was given.
9542 if test "${enable_java+set}" = set; then :
9543 enableval=$enable_java; java="$enableval"
9544 else
9545 java="no"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9549 $as_echo "$java" >&6; }
9550 if test "x$java" != "xno"; then
9551 java_target="$java"
9552 else
9553 java_target="no-java"
9556 spec_obj_format="-m $aros_object_format"
9557 # Now process extra architecture-specific options.
9558 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9559 # as well as floating-point ABI.
9560 case "$aros_target_cpu" in
9561 *m68k*)
9562 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9563 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9564 aros_isa_extra="$aros_isa_extra$m68k_isa_extra$export_newline$m68k_020_isa_extra$export_newline$m68k_030_isa_extra$export_newline$m68k_040_isa_extra$export_newline$m68k_060_isa_extra$export_newline$m68k_ac080_isa_extra$export_newline"
9565 aros_isa_extra="$aros_isa_extra$m68k_020_cppflags$export_newline$m68k_030_cppflags$export_newline$m68k_040_cppflags$export_newline$m68k_060_cppflags$export_newline"
9566 aros_isa_extra="$aros_isa_extra$m68k_020_cflags$export_newline$m68k_030_cflags$export_newline$m68k_040_cflags$export_newline$m68k_060_cflags$export_newline"
9567 aros_isa_extra="$aros_isa_extra$m68k_020_ldflags$export_newline$m68k_030_ldflags$export_newline$m68k_040_ldflags$export_newline$m68k_060_ldflags$export_newline"
9568 aros_isa_extra="$aros_isa_extra$m68k_020_ext$export_newline$m68k_030_ext$export_newline$m68k_040_ext$export_newline$m68k_060_ext$export_newline"
9570 *x86_64*)
9571 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9572 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9574 arm*)
9575 if test "$gcc_default_cpu" = ""; then
9576 gcc_default_cpu="armv6"
9578 if test "$gcc_default_fpu" = ""; then
9579 gcc_default_fpu="vfp"
9581 if test "$gcc_default_endian" = ""; then
9582 if test "$target_cpu" = "armeb"; then
9583 gcc_default_endian="big-endian"
9584 else
9585 gcc_default_endian="little-endian"
9588 if test "$gcc_default_float_abi" = ""; then
9589 if test "$target_cpu" = "armhf"; then
9590 gcc_default_float_abi="hard"
9591 else
9592 gcc_default_float_abi="softfp"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9597 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9599 # Check whether --with-cpu was given.
9600 if test "${with_cpu+set}" = set; then :
9601 withval=$with_cpu; aros_gcc_cpu="$withval"
9602 else
9603 aros_gcc_cpu=$gcc_default_cpu
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9607 $as_echo "$aros_gcc_cpu" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9610 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9612 # Check whether --with-fpu was given.
9613 if test "${with_fpu+set}" = set; then :
9614 withval=$with_fpu; aros_gcc_fpu="$withval"
9615 else
9616 aros_gcc_fpu=$gcc_default_fpu
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9620 $as_echo "$aros_gcc_fpu" >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9623 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9625 # Check whether --with-float was given.
9626 if test "${with_float+set}" = set; then :
9627 withval=$with_float; aros_gcc_float_abi="$withval"
9628 else
9629 aros_gcc_float_abi=$gcc_default_float_abi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9633 $as_echo "$aros_gcc_float_abi" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9636 $as_echo_n "checking Which ARM mode to use... " >&6; }
9637 if test "$aros_target_cpu_mode" = ""; then
9638 aros_target_cpu_mode="arm32"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9640 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9643 $as_echo "$aros_target_cpu_mode" >&6; }
9646 case "$aros_target_cpu_mode" in
9647 arm32)
9648 gcc_default_mode="arm"
9649 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -m$gcc_default_endian -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9651 arm64)
9652 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9654 thumb)
9655 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9657 thumb1)
9658 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9660 thumb2)
9661 gcc_default_mode="thumb"
9662 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9663 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -$gcc_default_endian -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9666 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9668 esac
9670 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9671 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9672 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9674 i386)
9675 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9676 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9678 esac
9680 # Some architectures may need custom ELF specs.
9681 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9682 elf_specs_in=config/${aros_object_format}-specs.in
9683 else
9684 elf_specs_in=config/elf-specs.in
9687 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9688 # Since we override specs, we may need to put these defines there
9689 if test "$gcc_target_cpu" != ""; then
9690 gcc_target_cpu="-D__${gcc_target_cpu}__"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9694 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9696 # Check whether --with-portssources was given.
9697 if test "${with_portssources+set}" = set; then :
9698 withval=$with_portssources; with_portssrcdir=$withval
9699 else
9700 with_portssrcdir="default"
9703 if test "$with_portssrcdir" = "default"; then
9704 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9705 else
9706 AROS_PORTSSRCDIR="$with_portssrcdir"
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9709 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9712 $as_echo_n "checking which bootloader to use... " >&6; }
9714 # Check whether --with-bootloader was given.
9715 if test "${with_bootloader+set}" = set; then :
9716 withval=$with_bootloader; target_bootloader=$withval
9717 else
9718 target_bootloader=$target_bootloader
9721 if test "$target_bootloader" = "none"; then
9722 aros_target_bootloader=""
9723 else
9724 aros_target_bootloader="$target_bootloader"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9727 $as_echo "$target_bootloader" >&6; }
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9730 $as_echo_n "checking which icon-set to use... " >&6; }
9732 # Check whether --with-iconset was given.
9733 if test "${with_iconset+set}" = set; then :
9734 withval=$with_iconset; target_iconset=$withval
9735 else
9736 target_iconset="default"
9739 if test "$target_iconset" = "default"; then
9740 aros_target_iconset="Gorilla"
9741 target_iconset="default (Gorilla)"
9742 else
9743 aros_target_iconset="$target_iconset"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9746 $as_echo "$target_iconset" >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9749 $as_echo_n "checking which GUI Theme to use... " >&6; }
9751 # Check whether --with-theme was given.
9752 if test "${with_theme+set}" = set; then :
9753 withval=$with_theme; target_guitheme=$withval
9754 else
9755 target_guitheme="default"
9758 if test "$target_guitheme" = "default"; then
9759 aros_target_guitheme="Ice"
9760 else
9761 aros_target_guitheme="$target_guitheme"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9764 $as_echo "$aros_target_guitheme" >&6; }
9766 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9767 # for target code)
9768 cross_compiling=no
9770 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9771 cross_compiling=yes
9774 if test "$aros_host_cpu" == "x86_64" ; then
9775 if test "$aros_target_cpu" == "i386" ; then
9776 cross_compiling=no
9780 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9781 if test "$aros_host_arch" != "$aros_target_arch" ; then
9782 cross_compiling=yes
9784 else
9785 cross_compiling=yes
9788 if test "$cross_compiling" = "no" ; then
9789 kernel_tool_prefix=""
9790 if test "$host_cc_elf" = "yes" ; then
9791 elf_tool_prefix=""
9795 if test "$kernel_tool_version" != ""; then
9796 kernel_tool_version="-$kernel_tool_version"
9799 #######################################################################
9800 ## Compute what toolchains to use, and their paths ##
9801 #######################################################################
9803 # This takes, as input:
9804 # crosstools {yes,no}
9805 # kernel_tool_version {"",[version]}
9806 # target_tool_version {"",[version]}
9807 # kernel_tool_prefix {none,[some-arch-os-]}
9808 # gnu-toolchain -:
9809 # target_tool_prefix ${aros_target_cpu}-aros-
9810 # aros_tool_prefix ${aros_target_cpu}-aros-
9812 # The output is
9813 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9814 # Where the 'kernel' binaries are located
9815 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9816 # Where the 'target' binaries are located
9817 # (not the symlink farm - that is aros_target_*!)
9819 # The rules are:
9820 # if crosstools then
9821 # if kernel_tools_prefix = "no-kernel-prefix-"
9822 # aros_kernel_* = crosstools cc paths
9823 # aros_kernel_cc = elf cc wrapper around crosstools cc
9824 # else
9825 # VALIDATE(${kernel_tools_prefix}*)
9826 # aros_kernel_* = ${kernel_tools_prefix}*
9827 # if ${kernel_tools_prefix}cc is an AROS gcc
9828 # aros_kernel_cc = ${kernel_tools_prefix}cc
9829 # else
9830 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9831 # fi
9832 # fi
9834 # orig_target_* = aros built crosstools
9835 # orig_target_cc = elf cc wrapper around crosstools cc
9836 # else
9837 # VALIDATE(${kernel_tools_prefix}*)
9839 # orig_target_* = aros_kernel_*
9840 # if aros_kernel_cc is an AROS gcc
9841 # orig_target_cc = aros_kernel_cc
9842 # else
9843 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9844 # fi
9845 # fi
9847 if test "$aros_toolchain" = "gnu" ; then
9848 target_tool_prefix="${aros_target_cpu}-aros-"
9849 elif test "$aros_toolchain" = "llvm" ; then
9850 target_tool_prefix="bin/"
9853 if test "$kernel_tool_prefix" != "" ; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9855 $as_echo_n "checking which kernel tools... " >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9857 $as_echo "$kernel_tool_prefix" >&6; };
9860 if test "$kernel_tool_prefix" = "none" ; then
9861 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9862 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9864 else
9865 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9866 # Kernel tools required - find them
9867 # Note that 'normally', aros_kernel_* overrides will be
9868 # empty, unless specified in the per-arch sections above.
9869 test_kernel_cc=yes
9870 if test "x$aros_kernel_cpp" = "x"; then
9871 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9873 if test "${kernel_tool_version}" != ""; then
9874 if test "$aros_kernel_cpp" != ""; then
9875 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9876 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9877 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9881 if test "$aros_kernel_cpp" = ""; then
9882 if test "$cross_compiling" = "yes" ; then
9883 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9884 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 case $aros_kernel_cpp in
9891 [\\/]* | ?:[\\/]*)
9892 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9902 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9906 done
9907 done
9908 IFS=$as_save_IFS
9911 esac
9913 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9914 if test -n "$aros_kernel_cpp"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9916 $as_echo "$aros_kernel_cpp" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9923 else
9925 if test "" = ""; then
9926 ac_tool_cpp=cpp
9927 else
9928 ac_tool_cpp=
9930 if test "$GCC" = "yes"; then
9931 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
9932 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9933 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 case $aros_kernel_cpp in
9940 [\\/]* | ?:[\\/]*)
9941 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in `dirname $aros_gcc_cpp`
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9951 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9955 done
9956 done
9957 IFS=$as_save_IFS
9960 esac
9962 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9963 if test -n "$aros_kernel_cpp"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9965 $as_echo "$aros_kernel_cpp" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9973 if test "$aros_kernel_cpp" = ""; then
9974 for ac_prog in $ac_tool_cpp
9976 # Extract the first word of "$ac_prog", so it can be a program name with args.
9977 set dummy $ac_prog; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 case $aros_kernel_cpp in
9984 [\\/]* | ?:[\\/]*)
9985 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9999 done
10000 done
10001 IFS=$as_save_IFS
10004 esac
10006 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10007 if test -n "$aros_kernel_cpp"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10009 $as_echo "$aros_kernel_cpp" >&6; }
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10016 test -n "$aros_kernel_cpp" && break
10017 done
10022 else
10023 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10024 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10025 set dummy $aros_kernel_cpp; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 case $aros_kernel_cpp in
10032 [\\/]* | ?:[\\/]*)
10033 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10039 IFS=$as_save_IFS
10040 test -z "$as_dir" && as_dir=.
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10043 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 break 2
10047 done
10048 done
10049 IFS=$as_save_IFS
10052 esac
10054 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10055 if test -n "$aros_kernel_cpp"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10057 $as_echo "$aros_kernel_cpp" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10064 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10067 req_avail=yes
10068 if test "$aros_kernel_cpp" = ""; then
10069 req_avail=no
10071 if test "$aros_kernel_cpp" = "no"; then
10072 req_avail=no
10074 if test "$req_avail" = "no"; then
10075 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10078 if test "x$aros_kernel_cc" = "x"; then
10079 aros_kernel_cc=${kernel_tool_prefix}${CC}
10081 if test "${kernel_tool_version}" != ""; then
10082 if test "$aros_kernel_cc" != ""; then
10083 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10084 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10085 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10089 if test "$aros_kernel_cc" = ""; then
10090 if test "$cross_compiling" = "yes" ; then
10091 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10092 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 case $aros_kernel_cc in
10099 [\\/]* | ?:[\\/]*)
10100 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10114 done
10115 done
10116 IFS=$as_save_IFS
10119 esac
10121 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10122 if test -n "$aros_kernel_cc"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10124 $as_echo "$aros_kernel_cc" >&6; }
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10131 else
10133 if test "" = ""; then
10134 ac_tool_cc=cc
10135 else
10136 ac_tool_cc=
10138 if test "$GCC" = "yes"; then
10139 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10140 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10141 set dummy `basename $aros_gcc_cc`; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 case $aros_kernel_cc in
10148 [\\/]* | ?:[\\/]*)
10149 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in `dirname $aros_gcc_cc`
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10163 done
10164 done
10165 IFS=$as_save_IFS
10168 esac
10170 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10171 if test -n "$aros_kernel_cc"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10173 $as_echo "$aros_kernel_cc" >&6; }
10174 else
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }
10181 if test "$aros_kernel_cc" = ""; then
10182 for ac_prog in $ac_tool_cc
10184 # Extract the first word of "$ac_prog", so it can be a program name with args.
10185 set dummy $ac_prog; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 case $aros_kernel_cc in
10192 [\\/]* | ?:[\\/]*)
10193 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10207 done
10208 done
10209 IFS=$as_save_IFS
10212 esac
10214 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10215 if test -n "$aros_kernel_cc"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10217 $as_echo "$aros_kernel_cc" >&6; }
10218 else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10224 test -n "$aros_kernel_cc" && break
10225 done
10230 else
10231 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10232 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10233 set dummy $aros_kernel_cc; ac_word=$2
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 $as_echo_n "checking for $ac_word... " >&6; }
10236 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 case $aros_kernel_cc in
10240 [\\/]* | ?:[\\/]*)
10241 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10255 done
10256 done
10257 IFS=$as_save_IFS
10260 esac
10262 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10263 if test -n "$aros_kernel_cc"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10265 $as_echo "$aros_kernel_cc" >&6; }
10266 else
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10272 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10275 req_avail=yes
10276 if test "$aros_kernel_cc" = ""; then
10277 req_avail=no
10279 if test "$aros_kernel_cc" = "no"; then
10280 req_avail=no
10282 if test "$req_avail" = "no"; then
10283 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10286 if test "x$aros_kernel_cxx" = "x"; then
10287 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
10289 if test "${kernel_tool_version}" != ""; then
10290 if test "$aros_kernel_cxx" != ""; then
10291 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10292 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10293 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10297 if test "$aros_kernel_cxx" = ""; then
10298 if test "$cross_compiling" = "yes" ; then
10299 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10300 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 case $aros_kernel_cxx in
10307 [\\/]* | ?:[\\/]*)
10308 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10322 done
10323 done
10324 IFS=$as_save_IFS
10327 esac
10329 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10330 if test -n "$aros_kernel_cxx"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10332 $as_echo "$aros_kernel_cxx" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10339 else
10341 if test "" = ""; then
10342 ac_tool_cxx=cxx
10343 else
10344 ac_tool_cxx=
10346 if test "$GCC" = "yes"; then
10347 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10348 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10349 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 case $aros_kernel_cxx in
10356 [\\/]* | ?:[\\/]*)
10357 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in `dirname $aros_gcc_cxx`
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10371 done
10372 done
10373 IFS=$as_save_IFS
10376 esac
10378 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10379 if test -n "$aros_kernel_cxx"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10381 $as_echo "$aros_kernel_cxx" >&6; }
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10389 if test "$aros_kernel_cxx" = ""; then
10390 for ac_prog in $ac_tool_cxx
10392 # Extract the first word of "$ac_prog", so it can be a program name with args.
10393 set dummy $ac_prog; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 case $aros_kernel_cxx in
10400 [\\/]* | ?:[\\/]*)
10401 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10415 done
10416 done
10417 IFS=$as_save_IFS
10420 esac
10422 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10423 if test -n "$aros_kernel_cxx"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10425 $as_echo "$aros_kernel_cxx" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10432 test -n "$aros_kernel_cxx" && break
10433 done
10438 else
10439 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10440 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10441 set dummy $aros_kernel_cxx; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 case $aros_kernel_cxx in
10448 [\\/]* | ?:[\\/]*)
10449 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10463 done
10464 done
10465 IFS=$as_save_IFS
10468 esac
10470 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10471 if test -n "$aros_kernel_cxx"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10473 $as_echo "$aros_kernel_cxx" >&6; }
10474 else
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10480 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10483 # If it's set, make sure it's really there
10484 if test "x$aros_kernel_cxx" != "x" ; then
10485 req_avail=yes
10486 if test "$aros_kernel_cxx" = ""; then
10487 req_avail=no
10489 if test "$aros_kernel_cxx" = "no"; then
10490 req_avail=no
10492 if test "$req_avail" = "no"; then
10493 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10496 if test "x$aros_kernel_ld" = "x"; then
10497 aros_kernel_ld=$aros_host_ld
10500 if test "$aros_kernel_ld" = ""; then
10501 if test "$cross_compiling" = "yes" ; then
10502 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10503 set dummy ${kernel_tool_prefix}ld; 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_ld+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 case $aros_kernel_ld in
10510 [\\/]* | ?:[\\/]*)
10511 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10533 if test -n "$aros_kernel_ld"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10535 $as_echo "$aros_kernel_ld" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10542 else
10544 if test "" = ""; then
10545 ac_tool_ld=ld
10546 else
10547 ac_tool_ld=
10549 if test "$GCC" = "yes"; then
10550 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10551 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10552 set dummy `basename $aros_gcc_ld`; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 case $aros_kernel_ld in
10559 [\\/]* | ?:[\\/]*)
10560 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in `dirname $aros_gcc_ld`
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10574 done
10575 done
10576 IFS=$as_save_IFS
10579 esac
10581 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10582 if test -n "$aros_kernel_ld"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10584 $as_echo "$aros_kernel_ld" >&6; }
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10592 if test "$aros_kernel_ld" = ""; then
10593 for ac_prog in $ac_tool_ld
10595 # Extract the first word of "$ac_prog", so it can be a program name with args.
10596 set dummy $ac_prog; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 case $aros_kernel_ld in
10603 [\\/]* | ?:[\\/]*)
10604 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10618 done
10619 done
10620 IFS=$as_save_IFS
10623 esac
10625 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10626 if test -n "$aros_kernel_ld"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10628 $as_echo "$aros_kernel_ld" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10635 test -n "$aros_kernel_ld" && break
10636 done
10641 else
10642 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10643 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10644 set dummy $aros_kernel_ld; 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_ld+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 case $aros_kernel_ld in
10651 [\\/]* | ?:[\\/]*)
10652 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # 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_ld="$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_ld=$ac_cv_path_aros_kernel_ld
10674 if test -n "$aros_kernel_ld"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10676 $as_echo "$aros_kernel_ld" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10683 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10686 req_avail=yes
10687 if test "$aros_kernel_ld" = ""; then
10688 req_avail=no
10690 if test "$aros_kernel_ld" = "no"; then
10691 req_avail=no
10693 if test "$req_avail" = "no"; then
10694 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10696 if test "x$aros_kernel_as" = "x"; then
10697 aros_kernel_as=$aros_host_as
10698 if test "x$aros_kernel_as" = "x"; then
10699 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10703 if test "$aros_kernel_as" = ""; then
10704 if test "$cross_compiling" = "yes" ; then
10705 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10706 set dummy ${kernel_tool_prefix}as; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if ${ac_cv_path_aros_kernel_as+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 case $aros_kernel_as in
10713 [\\/]* | ?:[\\/]*)
10714 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10730 IFS=$as_save_IFS
10733 esac
10735 aros_kernel_as=$ac_cv_path_aros_kernel_as
10736 if test -n "$aros_kernel_as"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10738 $as_echo "$aros_kernel_as" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10745 else
10747 if test "" = ""; then
10748 ac_tool_as=as
10749 else
10750 ac_tool_as=
10752 if test "$GCC" = "yes"; then
10753 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10754 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10755 set dummy `basename $aros_gcc_as`; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_path_aros_kernel_as+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 case $aros_kernel_as in
10762 [\\/]* | ?:[\\/]*)
10763 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in `dirname $aros_gcc_as`
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10777 done
10778 done
10779 IFS=$as_save_IFS
10782 esac
10784 aros_kernel_as=$ac_cv_path_aros_kernel_as
10785 if test -n "$aros_kernel_as"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10787 $as_echo "$aros_kernel_as" >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10795 if test "$aros_kernel_as" = ""; then
10796 for ac_prog in $ac_tool_as
10798 # Extract the first word of "$ac_prog", so it can be a program name with args.
10799 set dummy $ac_prog; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_path_aros_kernel_as+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 case $aros_kernel_as in
10806 [\\/]* | ?:[\\/]*)
10807 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10823 IFS=$as_save_IFS
10826 esac
10828 aros_kernel_as=$ac_cv_path_aros_kernel_as
10829 if test -n "$aros_kernel_as"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10831 $as_echo "$aros_kernel_as" >&6; }
10832 else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10838 test -n "$aros_kernel_as" && break
10839 done
10844 else
10845 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10846 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10847 set dummy $aros_kernel_as; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_path_aros_kernel_as+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 case $aros_kernel_as in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10874 esac
10876 aros_kernel_as=$ac_cv_path_aros_kernel_as
10877 if test -n "$aros_kernel_as"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10879 $as_echo "$aros_kernel_as" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10886 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10889 req_avail=yes
10890 if test "$aros_kernel_as" = ""; then
10891 req_avail=no
10893 if test "$aros_kernel_as" = "no"; then
10894 req_avail=no
10896 if test "$req_avail" = "no"; then
10897 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10899 if test "x$aros_kernel_ar" = "x"; then
10900 aros_kernel_ar=$aros_host_full_ar
10903 if test "$aros_kernel_ar" = ""; then
10904 if test "$cross_compiling" = "yes" ; then
10905 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10906 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908 $as_echo_n "checking for $ac_word... " >&6; }
10909 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 case $aros_kernel_ar in
10913 [\\/]* | ?:[\\/]*)
10914 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918 for as_dir in $PATH
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10924 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10928 done
10929 done
10930 IFS=$as_save_IFS
10933 esac
10935 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10936 if test -n "$aros_kernel_ar"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10938 $as_echo "$aros_kernel_ar" >&6; }
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10945 else
10947 if test "" = ""; then
10948 ac_tool_ar=ar
10949 else
10950 ac_tool_ar=
10952 if test "$GCC" = "yes"; then
10953 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
10954 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10955 set dummy `basename $aros_gcc_ar`; ac_word=$2
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957 $as_echo_n "checking for $ac_word... " >&6; }
10958 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 case $aros_kernel_ar in
10962 [\\/]* | ?:[\\/]*)
10963 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in `dirname $aros_gcc_ar`
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10977 done
10978 done
10979 IFS=$as_save_IFS
10982 esac
10984 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10985 if test -n "$aros_kernel_ar"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10987 $as_echo "$aros_kernel_ar" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10995 if test "$aros_kernel_ar" = ""; then
10996 for ac_prog in $ac_tool_ar
10998 # Extract the first word of "$ac_prog", so it can be a program name with args.
10999 set dummy $ac_prog; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 case $aros_kernel_ar in
11006 [\\/]* | ?:[\\/]*)
11007 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11021 done
11022 done
11023 IFS=$as_save_IFS
11026 esac
11028 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11029 if test -n "$aros_kernel_ar"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11031 $as_echo "$aros_kernel_ar" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11038 test -n "$aros_kernel_ar" && break
11039 done
11044 else
11045 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11046 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11047 set dummy $aros_kernel_ar; ac_word=$2
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 $as_echo_n "checking for $ac_word... " >&6; }
11050 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 case $aros_kernel_ar in
11054 [\\/]* | ?:[\\/]*)
11055 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11065 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11069 done
11070 done
11071 IFS=$as_save_IFS
11074 esac
11076 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11077 if test -n "$aros_kernel_ar"; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11079 $as_echo "$aros_kernel_ar" >&6; }
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11086 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11089 req_avail=yes
11090 if test "$aros_kernel_ar" = ""; then
11091 req_avail=no
11093 if test "$aros_kernel_ar" = "no"; then
11094 req_avail=no
11096 if test "$req_avail" = "no"; then
11097 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11099 if test "x$aros_kernel_ranlib" = "x"; then
11100 aros_kernel_ranlib=$aros_host_ranlib
11103 if test "$aros_kernel_ranlib" = ""; then
11104 if test "$cross_compiling" = "yes" ; then
11105 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11106 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 case $aros_kernel_ranlib in
11113 [\\/]* | ?:[\\/]*)
11114 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11128 done
11129 done
11130 IFS=$as_save_IFS
11133 esac
11135 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11136 if test -n "$aros_kernel_ranlib"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11138 $as_echo "$aros_kernel_ranlib" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11145 else
11147 if test "" = ""; then
11148 ac_tool_ranlib=ranlib
11149 else
11150 ac_tool_ranlib=
11152 if test "$GCC" = "yes"; then
11153 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11154 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11155 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 case $aros_kernel_ranlib in
11162 [\\/]* | ?:[\\/]*)
11163 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in `dirname $aros_gcc_ranlib`
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11177 done
11178 done
11179 IFS=$as_save_IFS
11182 esac
11184 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11185 if test -n "$aros_kernel_ranlib"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11187 $as_echo "$aros_kernel_ranlib" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11195 if test "$aros_kernel_ranlib" = ""; then
11196 for ac_prog in $ac_tool_ranlib
11198 # Extract the first word of "$ac_prog", so it can be a program name with args.
11199 set dummy $ac_prog; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 case $aros_kernel_ranlib in
11206 [\\/]* | ?:[\\/]*)
11207 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11221 done
11222 done
11223 IFS=$as_save_IFS
11226 esac
11228 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11229 if test -n "$aros_kernel_ranlib"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11231 $as_echo "$aros_kernel_ranlib" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11238 test -n "$aros_kernel_ranlib" && break
11239 done
11244 else
11245 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11246 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11247 set dummy $aros_kernel_ranlib; 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_ranlib+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 case $aros_kernel_ranlib in
11254 [\\/]* | ?:[\\/]*)
11255 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # 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_ranlib="$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_ranlib=$ac_cv_path_aros_kernel_ranlib
11277 if test -n "$aros_kernel_ranlib"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11279 $as_echo "$aros_kernel_ranlib" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11286 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11289 req_avail=yes
11290 if test "$aros_kernel_ranlib" = ""; then
11291 req_avail=no
11293 if test "$aros_kernel_ranlib" = "no"; then
11294 req_avail=no
11296 if test "$req_avail" = "no"; then
11297 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11299 if test "x$aros_kernel_nm" = "x"; then
11300 aros_kernel_nm=$aros_host_nm
11301 if test "x$aros_kernel_nm" = "x"; then
11302 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11306 if test "$aros_kernel_nm" = ""; then
11307 if test "$cross_compiling" = "yes" ; then
11308 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11309 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $aros_kernel_nm in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11336 esac
11338 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11339 if test -n "$aros_kernel_nm"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11341 $as_echo "$aros_kernel_nm" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11348 else
11350 if test "" = ""; then
11351 ac_tool_nm=nm
11352 else
11353 ac_tool_nm=
11355 if test "$GCC" = "yes"; then
11356 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11357 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11358 set dummy `basename $aros_gcc_nm`; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 case $aros_kernel_nm in
11365 [\\/]* | ?:[\\/]*)
11366 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in `dirname $aros_gcc_nm`
11372 IFS=$as_save_IFS
11373 test -z "$as_dir" && as_dir=.
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11376 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378 break 2
11380 done
11381 done
11382 IFS=$as_save_IFS
11385 esac
11387 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11388 if test -n "$aros_kernel_nm"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11390 $as_echo "$aros_kernel_nm" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11398 if test "$aros_kernel_nm" = ""; then
11399 for ac_prog in $ac_tool_nm
11401 # Extract the first word of "$ac_prog", so it can be a program name with args.
11402 set dummy $ac_prog; ac_word=$2
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11404 $as_echo_n "checking for $ac_word... " >&6; }
11405 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 case $aros_kernel_nm in
11409 [\\/]* | ?:[\\/]*)
11410 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
11418 for ac_exec_ext in '' $ac_executable_extensions; do
11419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11420 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 break 2
11424 done
11425 done
11426 IFS=$as_save_IFS
11429 esac
11431 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11432 if test -n "$aros_kernel_nm"; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11434 $as_echo "$aros_kernel_nm" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11441 test -n "$aros_kernel_nm" && break
11442 done
11447 else
11448 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11449 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11450 set dummy $aros_kernel_nm; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 case $aros_kernel_nm in
11457 [\\/]* | ?:[\\/]*)
11458 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11477 esac
11479 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11480 if test -n "$aros_kernel_nm"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11482 $as_echo "$aros_kernel_nm" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11489 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11492 req_avail=yes
11493 if test "$aros_kernel_nm" = ""; then
11494 req_avail=no
11496 if test "$aros_kernel_nm" = "no"; then
11497 req_avail=no
11499 if test "$req_avail" = "no"; then
11500 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11503 if test "$aros_kernel_strip" = ""; then
11504 if test "$cross_compiling" = "yes" ; then
11505 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11506 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 case $aros_kernel_strip in
11513 [\\/]* | ?:[\\/]*)
11514 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526 break 2
11528 done
11529 done
11530 IFS=$as_save_IFS
11533 esac
11535 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11536 if test -n "$aros_kernel_strip"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11538 $as_echo "$aros_kernel_strip" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11545 else
11547 if test "" = ""; then
11548 ac_tool_strip=strip
11549 else
11550 ac_tool_strip=
11552 if test "$GCC" = "yes"; then
11553 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11554 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11555 set dummy `basename $aros_gcc_strip`; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 case $aros_kernel_strip in
11562 [\\/]* | ?:[\\/]*)
11563 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in `dirname $aros_gcc_strip`
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11577 done
11578 done
11579 IFS=$as_save_IFS
11582 esac
11584 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11585 if test -n "$aros_kernel_strip"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11587 $as_echo "$aros_kernel_strip" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11595 if test "$aros_kernel_strip" = ""; then
11596 for ac_prog in $ac_tool_strip
11598 # Extract the first word of "$ac_prog", so it can be a program name with args.
11599 set dummy $ac_prog; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 case $aros_kernel_strip in
11606 [\\/]* | ?:[\\/]*)
11607 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11621 done
11622 done
11623 IFS=$as_save_IFS
11626 esac
11628 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11629 if test -n "$aros_kernel_strip"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11631 $as_echo "$aros_kernel_strip" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11638 test -n "$aros_kernel_strip" && break
11639 done
11644 else
11645 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11646 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11647 set dummy $aros_kernel_strip; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 case $aros_kernel_strip in
11654 [\\/]* | ?:[\\/]*)
11655 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11661 IFS=$as_save_IFS
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
11664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11665 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667 break 2
11669 done
11670 done
11671 IFS=$as_save_IFS
11674 esac
11676 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11677 if test -n "$aros_kernel_strip"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11679 $as_echo "$aros_kernel_strip" >&6; }
11680 else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11686 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11689 req_avail=yes
11690 if test "$aros_kernel_strip" = ""; then
11691 req_avail=no
11693 if test "$aros_kernel_strip" = "no"; then
11694 req_avail=no
11696 if test "$req_avail" = "no"; then
11697 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11700 # Objcopy and objdump are not required for the kernel
11701 # toolchain on many architectures.
11702 # So we'll look for them, but not make them strictly required.
11703 if test "x$aros_kernel_objcopy" = "x"; then
11704 aros_kernel_objcopy=$aros_host_objcopy
11705 if test "x$aros_kernel_objcopy" = "x"; then
11706 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11710 if test "$aros_kernel_objcopy" = ""; then
11711 if test "$cross_compiling" = "yes" ; then
11712 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11713 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715 $as_echo_n "checking for $ac_word... " >&6; }
11716 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 case $aros_kernel_objcopy in
11720 [\\/]* | ?:[\\/]*)
11721 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11735 done
11736 done
11737 IFS=$as_save_IFS
11740 esac
11742 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11743 if test -n "$aros_kernel_objcopy"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11745 $as_echo "$aros_kernel_objcopy" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11752 else
11754 if test "" = ""; then
11755 ac_tool_objcopy=objcopy
11756 else
11757 ac_tool_objcopy=
11759 if test "$GCC" = "yes"; then
11760 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11761 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11762 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 case $aros_kernel_objcopy in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in `dirname $aros_gcc_objcopy`
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11789 esac
11791 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11792 if test -n "$aros_kernel_objcopy"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11794 $as_echo "$aros_kernel_objcopy" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11802 if test "$aros_kernel_objcopy" = ""; then
11803 for ac_prog in $ac_tool_objcopy
11805 # Extract the first word of "$ac_prog", so it can be a program name with args.
11806 set dummy $ac_prog; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 case $aros_kernel_objcopy in
11813 [\\/]* | ?:[\\/]*)
11814 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11828 done
11829 done
11830 IFS=$as_save_IFS
11833 esac
11835 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11836 if test -n "$aros_kernel_objcopy"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11838 $as_echo "$aros_kernel_objcopy" >&6; }
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11845 test -n "$aros_kernel_objcopy" && break
11846 done
11851 else
11852 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11853 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11854 set dummy $aros_kernel_objcopy; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 case $aros_kernel_objcopy in
11861 [\\/]* | ?:[\\/]*)
11862 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11876 done
11877 done
11878 IFS=$as_save_IFS
11881 esac
11883 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11884 if test -n "$aros_kernel_objcopy"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11886 $as_echo "$aros_kernel_objcopy" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11893 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11896 if test "x$aros_kernel_objdump" = "x"; then
11897 aros_kernel_objdump=$aros_host_objdump
11898 if test "x$aros_kernel_objdump" = "x"; then
11899 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
11903 if test "$aros_kernel_objdump" = ""; then
11904 if test "$cross_compiling" = "yes" ; then
11905 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11906 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $aros_kernel_objdump in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11933 esac
11935 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11936 if test -n "$aros_kernel_objdump"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11938 $as_echo "$aros_kernel_objdump" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11945 else
11947 if test "" = ""; then
11948 ac_tool_objdump=objdump
11949 else
11950 ac_tool_objdump=
11952 if test "$GCC" = "yes"; then
11953 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
11954 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11955 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 case $aros_kernel_objdump in
11962 [\\/]* | ?:[\\/]*)
11963 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in `dirname $aros_gcc_objdump`
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11977 done
11978 done
11979 IFS=$as_save_IFS
11982 esac
11984 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11985 if test -n "$aros_kernel_objdump"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11987 $as_echo "$aros_kernel_objdump" >&6; }
11988 else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11995 if test "$aros_kernel_objdump" = ""; then
11996 for ac_prog in $ac_tool_objdump
11998 # Extract the first word of "$ac_prog", so it can be a program name with args.
11999 set dummy $ac_prog; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 case $aros_kernel_objdump in
12006 [\\/]* | ?:[\\/]*)
12007 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12021 done
12022 done
12023 IFS=$as_save_IFS
12026 esac
12028 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12029 if test -n "$aros_kernel_objdump"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12031 $as_echo "$aros_kernel_objdump" >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12038 test -n "$aros_kernel_objdump" && break
12039 done
12044 else
12045 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12046 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12047 set dummy $aros_kernel_objdump; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 case $aros_kernel_objdump in
12054 [\\/]* | ?:[\\/]*)
12055 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 break 2
12069 done
12070 done
12071 IFS=$as_save_IFS
12074 esac
12076 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12077 if test -n "$aros_kernel_objdump"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12079 $as_echo "$aros_kernel_objdump" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12086 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12089 if test "x${crosstools}" != "xyes" ; then
12090 req_avail=yes
12091 if test "$aros_kernel_objcopy" = ""; then
12092 req_avail=no
12094 if test "$aros_kernel_objcopy" = "no"; then
12095 req_avail=no
12097 if test "$req_avail" = "no"; then
12098 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12100 req_avail=yes
12101 if test "$aros_kernel_objdump" = ""; then
12102 req_avail=no
12104 if test "$aros_kernel_objdump" = "no"; then
12105 req_avail=no
12107 if test "$req_avail" = "no"; then
12108 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12115 $as_echo_n "checking which target tools to use... " >&6; }
12116 if test "$aros_target_toolchain" = "yes"; then
12117 if test "$aros_toolchain" = "llvm" ; then
12118 msg_result="llvm"
12119 else
12120 msg_result=$target_tool_prefix
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12123 $as_echo "$msg_result" >&6; }
12124 # We are building AROS crosstools
12125 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12126 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12127 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12128 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12129 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12130 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12131 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12132 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12133 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12134 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12135 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12136 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12137 else
12138 # Determine whether AROS or ELF tools should be used
12139 if test "$aros_tool_prefix" = "none"; then
12140 aros_tool_prefix="${elf_tool_prefix}"
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12144 $as_echo "$aros_tool_prefix" >&6; }
12145 # We are *not* building AROS crosstools - use the AROS or ELF tools
12147 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12148 if test "$cross_compiling" = "yes" ; then
12149 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12150 set dummy ${target_tool_prefix}cpp; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_path_orig_target_cpp+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 case $orig_target_cpp in
12157 [\\/]* | ?:[\\/]*)
12158 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12172 done
12173 done
12174 IFS=$as_save_IFS
12177 esac
12179 orig_target_cpp=$ac_cv_path_orig_target_cpp
12180 if test -n "$orig_target_cpp"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12182 $as_echo "$orig_target_cpp" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12189 else
12191 if test "" = ""; then
12192 ac_tool_cpp=cpp
12193 else
12194 ac_tool_cpp=
12196 if test "$GCC" = "yes"; then
12197 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12198 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12199 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if ${ac_cv_path_orig_target_cpp+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 case $orig_target_cpp in
12206 [\\/]* | ?:[\\/]*)
12207 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in `dirname $aros_gcc_cpp`
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12221 done
12222 done
12223 IFS=$as_save_IFS
12226 esac
12228 orig_target_cpp=$ac_cv_path_orig_target_cpp
12229 if test -n "$orig_target_cpp"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12231 $as_echo "$orig_target_cpp" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12239 if test "$orig_target_cpp" = ""; then
12240 for ac_prog in $ac_tool_cpp
12242 # Extract the first word of "$ac_prog", so it can be a program name with args.
12243 set dummy $ac_prog; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if ${ac_cv_path_orig_target_cpp+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 case $orig_target_cpp in
12250 [\\/]* | ?:[\\/]*)
12251 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12261 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12265 done
12266 done
12267 IFS=$as_save_IFS
12270 esac
12272 orig_target_cpp=$ac_cv_path_orig_target_cpp
12273 if test -n "$orig_target_cpp"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12275 $as_echo "$orig_target_cpp" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12282 test -n "$orig_target_cpp" && break
12283 done
12288 else
12289 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12290 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}", so it can be a program name with args.
12291 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_path_orig_target_cpp+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 case $orig_target_cpp in
12298 [\\/]* | ?:[\\/]*)
12299 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12313 done
12314 done
12315 IFS=$as_save_IFS
12318 esac
12320 orig_target_cpp=$ac_cv_path_orig_target_cpp
12321 if test -n "$orig_target_cpp"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12323 $as_echo "$orig_target_cpp" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12330 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12333 req_avail=yes
12334 if test "$orig_target_cpp" = ""; then
12335 req_avail=no
12337 if test "$orig_target_cpp" = "no"; then
12338 req_avail=no
12340 if test "$req_avail" = "no"; then
12341 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12344 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12345 if test "$cross_compiling" = "yes" ; then
12346 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12347 set dummy ${target_tool_prefix}gcc; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_orig_target_cc+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 case $orig_target_cc in
12354 [\\/]* | ?:[\\/]*)
12355 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12374 esac
12376 orig_target_cc=$ac_cv_path_orig_target_cc
12377 if test -n "$orig_target_cc"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12379 $as_echo "$orig_target_cc" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12386 else
12388 if test "" = ""; then
12389 ac_tool_gcc=gcc
12390 else
12391 ac_tool_gcc=
12393 if test "$GCC" = "yes"; then
12394 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12395 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12396 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if ${ac_cv_path_orig_target_cc+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 case $orig_target_cc in
12403 [\\/]* | ?:[\\/]*)
12404 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in `dirname $aros_gcc_gcc`
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12414 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 break 2
12418 done
12419 done
12420 IFS=$as_save_IFS
12423 esac
12425 orig_target_cc=$ac_cv_path_orig_target_cc
12426 if test -n "$orig_target_cc"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12428 $as_echo "$orig_target_cc" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12436 if test "$orig_target_cc" = ""; then
12437 for ac_prog in $ac_tool_gcc
12439 # Extract the first word of "$ac_prog", so it can be a program name with args.
12440 set dummy $ac_prog; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_path_orig_target_cc+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 case $orig_target_cc in
12447 [\\/]* | ?:[\\/]*)
12448 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452 for as_dir in $PATH
12454 IFS=$as_save_IFS
12455 test -z "$as_dir" && as_dir=.
12456 for ac_exec_ext in '' $ac_executable_extensions; do
12457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12458 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460 break 2
12462 done
12463 done
12464 IFS=$as_save_IFS
12467 esac
12469 orig_target_cc=$ac_cv_path_orig_target_cc
12470 if test -n "$orig_target_cc"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12472 $as_echo "$orig_target_cc" >&6; }
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12479 test -n "$orig_target_cc" && break
12480 done
12485 else
12486 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12487 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12488 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490 $as_echo_n "checking for $ac_word... " >&6; }
12491 if ${ac_cv_path_orig_target_cc+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 case $orig_target_cc in
12495 [\\/]* | ?:[\\/]*)
12496 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12506 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12510 done
12511 done
12512 IFS=$as_save_IFS
12515 esac
12517 orig_target_cc=$ac_cv_path_orig_target_cc
12518 if test -n "$orig_target_cc"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12520 $as_echo "$orig_target_cc" >&6; }
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12527 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12530 req_avail=yes
12531 if test "$orig_target_cc" = ""; then
12532 req_avail=no
12534 if test "$orig_target_cc" = "no"; then
12535 req_avail=no
12537 if test "$req_avail" = "no"; then
12538 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12541 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12542 if test "$cross_compiling" = "yes" ; then
12543 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12544 set dummy ${target_tool_prefix}g++; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_path_orig_target_cxx+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 case $orig_target_cxx in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12566 done
12567 done
12568 IFS=$as_save_IFS
12571 esac
12573 orig_target_cxx=$ac_cv_path_orig_target_cxx
12574 if test -n "$orig_target_cxx"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12576 $as_echo "$orig_target_cxx" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12583 else
12585 if test "" = ""; then
12586 ac_tool_g++=g++
12587 else
12588 ac_tool_g++=
12590 if test "$GCC" = "yes"; then
12591 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12592 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12593 set dummy `basename $aros_gcc_g++`; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_path_orig_target_cxx+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 case $orig_target_cxx in
12600 [\\/]* | ?:[\\/]*)
12601 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in `dirname $aros_gcc_g++`
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 break 2
12615 done
12616 done
12617 IFS=$as_save_IFS
12620 esac
12622 orig_target_cxx=$ac_cv_path_orig_target_cxx
12623 if test -n "$orig_target_cxx"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12625 $as_echo "$orig_target_cxx" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12633 if test "$orig_target_cxx" = ""; then
12634 for ac_prog in $ac_tool_g++
12636 # Extract the first word of "$ac_prog", so it can be a program name with args.
12637 set dummy $ac_prog; ac_word=$2
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639 $as_echo_n "checking for $ac_word... " >&6; }
12640 if ${ac_cv_path_orig_target_cxx+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 case $orig_target_cxx in
12644 [\\/]* | ?:[\\/]*)
12645 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12651 IFS=$as_save_IFS
12652 test -z "$as_dir" && as_dir=.
12653 for ac_exec_ext in '' $ac_executable_extensions; do
12654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12655 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657 break 2
12659 done
12660 done
12661 IFS=$as_save_IFS
12664 esac
12666 orig_target_cxx=$ac_cv_path_orig_target_cxx
12667 if test -n "$orig_target_cxx"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12669 $as_echo "$orig_target_cxx" >&6; }
12670 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12676 test -n "$orig_target_cxx" && break
12677 done
12682 else
12683 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12684 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12685 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_path_orig_target_cxx+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 case $orig_target_cxx in
12692 [\\/]* | ?:[\\/]*)
12693 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12707 done
12708 done
12709 IFS=$as_save_IFS
12712 esac
12714 orig_target_cxx=$ac_cv_path_orig_target_cxx
12715 if test -n "$orig_target_cxx"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12717 $as_echo "$orig_target_cxx" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12724 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12727 req_avail=yes
12728 if test "$orig_target_cxx" = ""; then
12729 req_avail=no
12731 if test "$orig_target_cxx" = "no"; then
12732 req_avail=no
12734 if test "$req_avail" = "no"; then
12735 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12738 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12739 if test "$cross_compiling" = "yes" ; then
12740 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12741 set dummy ${target_tool_prefix}gcc; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_path_orig_target_ld+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 case $orig_target_ld in
12748 [\\/]* | ?:[\\/]*)
12749 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12763 done
12764 done
12765 IFS=$as_save_IFS
12768 esac
12770 orig_target_ld=$ac_cv_path_orig_target_ld
12771 if test -n "$orig_target_ld"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12773 $as_echo "$orig_target_ld" >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12780 else
12782 if test "" = ""; then
12783 ac_tool_gcc=gcc
12784 else
12785 ac_tool_gcc=
12787 if test "$GCC" = "yes"; then
12788 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12789 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12790 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_path_orig_target_ld+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 case $orig_target_ld in
12797 [\\/]* | ?:[\\/]*)
12798 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in `dirname $aros_gcc_gcc`
12804 IFS=$as_save_IFS
12805 test -z "$as_dir" && as_dir=.
12806 for ac_exec_ext in '' $ac_executable_extensions; do
12807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 break 2
12812 done
12813 done
12814 IFS=$as_save_IFS
12817 esac
12819 orig_target_ld=$ac_cv_path_orig_target_ld
12820 if test -n "$orig_target_ld"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12822 $as_echo "$orig_target_ld" >&6; }
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12830 if test "$orig_target_ld" = ""; then
12831 for ac_prog in $ac_tool_gcc
12833 # Extract the first word of "$ac_prog", so it can be a program name with args.
12834 set dummy $ac_prog; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if ${ac_cv_path_orig_target_ld+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 case $orig_target_ld in
12841 [\\/]* | ?:[\\/]*)
12842 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12852 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12856 done
12857 done
12858 IFS=$as_save_IFS
12861 esac
12863 orig_target_ld=$ac_cv_path_orig_target_ld
12864 if test -n "$orig_target_ld"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12866 $as_echo "$orig_target_ld" >&6; }
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12873 test -n "$orig_target_ld" && break
12874 done
12879 else
12880 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12881 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12882 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if ${ac_cv_path_orig_target_ld+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 case $orig_target_ld in
12889 [\\/]* | ?:[\\/]*)
12890 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12904 done
12905 done
12906 IFS=$as_save_IFS
12909 esac
12911 orig_target_ld=$ac_cv_path_orig_target_ld
12912 if test -n "$orig_target_ld"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12914 $as_echo "$orig_target_ld" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12921 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12924 req_avail=yes
12925 if test "$orig_target_ld" = ""; then
12926 req_avail=no
12928 if test "$orig_target_ld" = "no"; then
12929 req_avail=no
12931 if test "$req_avail" = "no"; then
12932 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12935 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12936 if test "$cross_compiling" = "yes" ; then
12937 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12938 set dummy ${target_tool_prefix}as; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_path_orig_target_as+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 case $orig_target_as in
12945 [\\/]* | ?:[\\/]*)
12946 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12956 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 break 2
12960 done
12961 done
12962 IFS=$as_save_IFS
12965 esac
12967 orig_target_as=$ac_cv_path_orig_target_as
12968 if test -n "$orig_target_as"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12970 $as_echo "$orig_target_as" >&6; }
12971 else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12977 else
12979 if test "" = ""; then
12980 ac_tool_as=as
12981 else
12982 ac_tool_as=
12984 if test "$GCC" = "yes"; then
12985 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
12986 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12987 set dummy `basename $aros_gcc_as`; ac_word=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12989 $as_echo_n "checking for $ac_word... " >&6; }
12990 if ${ac_cv_path_orig_target_as+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 case $orig_target_as in
12994 [\\/]* | ?:[\\/]*)
12995 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in `dirname $aros_gcc_as`
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13011 IFS=$as_save_IFS
13014 esac
13016 orig_target_as=$ac_cv_path_orig_target_as
13017 if test -n "$orig_target_as"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13019 $as_echo "$orig_target_as" >&6; }
13020 else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13027 if test "$orig_target_as" = ""; then
13028 for ac_prog in $ac_tool_as
13030 # Extract the first word of "$ac_prog", so it can be a program name with args.
13031 set dummy $ac_prog; ac_word=$2
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 $as_echo_n "checking for $ac_word... " >&6; }
13034 if ${ac_cv_path_orig_target_as+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 case $orig_target_as in
13038 [\\/]* | ?:[\\/]*)
13039 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13049 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13053 done
13054 done
13055 IFS=$as_save_IFS
13058 esac
13060 orig_target_as=$ac_cv_path_orig_target_as
13061 if test -n "$orig_target_as"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13063 $as_echo "$orig_target_as" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13070 test -n "$orig_target_as" && break
13071 done
13076 else
13077 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13078 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13079 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_path_orig_target_as+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 case $orig_target_as in
13086 [\\/]* | ?:[\\/]*)
13087 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13097 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 break 2
13101 done
13102 done
13103 IFS=$as_save_IFS
13106 esac
13108 orig_target_as=$ac_cv_path_orig_target_as
13109 if test -n "$orig_target_as"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13111 $as_echo "$orig_target_as" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13118 orig_target_as="$orig_target_as $ac_tool_optarg"
13121 req_avail=yes
13122 if test "$orig_target_as" = ""; then
13123 req_avail=no
13125 if test "$orig_target_as" = "no"; then
13126 req_avail=no
13128 if test "$req_avail" = "no"; then
13129 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13132 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13133 if test "$cross_compiling" = "yes" ; then
13134 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13135 set dummy ${target_tool_prefix}ar; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if ${ac_cv_path_orig_target_ar+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 case $orig_target_ar in
13142 [\\/]* | ?:[\\/]*)
13143 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13157 done
13158 done
13159 IFS=$as_save_IFS
13162 esac
13164 orig_target_ar=$ac_cv_path_orig_target_ar
13165 if test -n "$orig_target_ar"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13167 $as_echo "$orig_target_ar" >&6; }
13168 else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13174 else
13176 if test "" = ""; then
13177 ac_tool_ar=ar
13178 else
13179 ac_tool_ar=
13181 if test "$GCC" = "yes"; then
13182 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13183 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13184 set dummy `basename $aros_gcc_ar`; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if ${ac_cv_path_orig_target_ar+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 case $orig_target_ar in
13191 [\\/]* | ?:[\\/]*)
13192 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in `dirname $aros_gcc_ar`
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13202 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13206 done
13207 done
13208 IFS=$as_save_IFS
13211 esac
13213 orig_target_ar=$ac_cv_path_orig_target_ar
13214 if test -n "$orig_target_ar"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13216 $as_echo "$orig_target_ar" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13224 if test "$orig_target_ar" = ""; then
13225 for ac_prog in $ac_tool_ar
13227 # Extract the first word of "$ac_prog", so it can be a program name with args.
13228 set dummy $ac_prog; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if ${ac_cv_path_orig_target_ar+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 case $orig_target_ar in
13235 [\\/]* | ?:[\\/]*)
13236 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13246 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13250 done
13251 done
13252 IFS=$as_save_IFS
13255 esac
13257 orig_target_ar=$ac_cv_path_orig_target_ar
13258 if test -n "$orig_target_ar"; then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13260 $as_echo "$orig_target_ar" >&6; }
13261 else
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13267 test -n "$orig_target_ar" && break
13268 done
13273 else
13274 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13275 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13276 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_path_orig_target_ar+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 case $orig_target_ar in
13283 [\\/]* | ?:[\\/]*)
13284 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13298 done
13299 done
13300 IFS=$as_save_IFS
13303 esac
13305 orig_target_ar=$ac_cv_path_orig_target_ar
13306 if test -n "$orig_target_ar"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13308 $as_echo "$orig_target_ar" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13315 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13318 req_avail=yes
13319 if test "$orig_target_ar" = ""; then
13320 req_avail=no
13322 if test "$orig_target_ar" = "no"; then
13323 req_avail=no
13325 if test "$req_avail" = "no"; then
13326 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13329 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13330 if test "$cross_compiling" = "yes" ; then
13331 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13332 set dummy ${target_tool_prefix}ar; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 case $orig_target_ranlib in
13339 [\\/]* | ?:[\\/]*)
13340 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13354 done
13355 done
13356 IFS=$as_save_IFS
13359 esac
13361 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13362 if test -n "$orig_target_ranlib"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13364 $as_echo "$orig_target_ranlib" >&6; }
13365 else
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13371 else
13373 if test "" = ""; then
13374 ac_tool_ar=ar
13375 else
13376 ac_tool_ar=
13378 if test "$GCC" = "yes"; then
13379 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13380 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13381 set dummy `basename $aros_gcc_ar`; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 case $orig_target_ranlib in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in `dirname $aros_gcc_ar`
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13399 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13403 done
13404 done
13405 IFS=$as_save_IFS
13408 esac
13410 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13411 if test -n "$orig_target_ranlib"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13413 $as_echo "$orig_target_ranlib" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13421 if test "$orig_target_ranlib" = ""; then
13422 for ac_prog in $ac_tool_ar
13424 # Extract the first word of "$ac_prog", so it can be a program name with args.
13425 set dummy $ac_prog; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 case $orig_target_ranlib in
13432 [\\/]* | ?:[\\/]*)
13433 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13439 IFS=$as_save_IFS
13440 test -z "$as_dir" && as_dir=.
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445 break 2
13447 done
13448 done
13449 IFS=$as_save_IFS
13452 esac
13454 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13455 if test -n "$orig_target_ranlib"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13457 $as_echo "$orig_target_ranlib" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13464 test -n "$orig_target_ranlib" && break
13465 done
13470 else
13471 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13472 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13473 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 case $orig_target_ranlib in
13480 [\\/]* | ?:[\\/]*)
13481 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13491 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13495 done
13496 done
13497 IFS=$as_save_IFS
13500 esac
13502 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13503 if test -n "$orig_target_ranlib"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13505 $as_echo "$orig_target_ranlib" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13512 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13515 req_avail=yes
13516 if test "$orig_target_ranlib" = ""; then
13517 req_avail=no
13519 if test "$orig_target_ranlib" = "no"; then
13520 req_avail=no
13522 if test "$req_avail" = "no"; then
13523 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13526 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13527 if test "$cross_compiling" = "yes" ; then
13528 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13529 set dummy ${target_tool_prefix}nm; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if ${ac_cv_path_orig_target_nm+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 case $orig_target_nm in
13536 [\\/]* | ?:[\\/]*)
13537 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 break 2
13551 done
13552 done
13553 IFS=$as_save_IFS
13556 esac
13558 orig_target_nm=$ac_cv_path_orig_target_nm
13559 if test -n "$orig_target_nm"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13561 $as_echo "$orig_target_nm" >&6; }
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13568 else
13570 if test "" = ""; then
13571 ac_tool_nm=nm
13572 else
13573 ac_tool_nm=
13575 if test "$GCC" = "yes"; then
13576 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13577 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13578 set dummy `basename $aros_gcc_nm`; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_path_orig_target_nm+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 case $orig_target_nm in
13585 [\\/]* | ?:[\\/]*)
13586 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in `dirname $aros_gcc_nm`
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13600 done
13601 done
13602 IFS=$as_save_IFS
13605 esac
13607 orig_target_nm=$ac_cv_path_orig_target_nm
13608 if test -n "$orig_target_nm"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13610 $as_echo "$orig_target_nm" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13618 if test "$orig_target_nm" = ""; then
13619 for ac_prog in $ac_tool_nm
13621 # Extract the first word of "$ac_prog", so it can be a program name with args.
13622 set dummy $ac_prog; ac_word=$2
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13624 $as_echo_n "checking for $ac_word... " >&6; }
13625 if ${ac_cv_path_orig_target_nm+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 case $orig_target_nm in
13629 [\\/]* | ?:[\\/]*)
13630 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in $PATH
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13644 done
13645 done
13646 IFS=$as_save_IFS
13649 esac
13651 orig_target_nm=$ac_cv_path_orig_target_nm
13652 if test -n "$orig_target_nm"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13654 $as_echo "$orig_target_nm" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13661 test -n "$orig_target_nm" && break
13662 done
13667 else
13668 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13669 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13670 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672 $as_echo_n "checking for $ac_word... " >&6; }
13673 if ${ac_cv_path_orig_target_nm+:} false; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 case $orig_target_nm in
13677 [\\/]* | ?:[\\/]*)
13678 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
13686 for ac_exec_ext in '' $ac_executable_extensions; do
13687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 break 2
13692 done
13693 done
13694 IFS=$as_save_IFS
13697 esac
13699 orig_target_nm=$ac_cv_path_orig_target_nm
13700 if test -n "$orig_target_nm"; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13702 $as_echo "$orig_target_nm" >&6; }
13703 else
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13709 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13712 req_avail=yes
13713 if test "$orig_target_nm" = ""; then
13714 req_avail=no
13716 if test "$orig_target_nm" = "no"; then
13717 req_avail=no
13719 if test "$req_avail" = "no"; then
13720 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13723 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13724 if test "$cross_compiling" = "yes" ; then
13725 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13726 set dummy ${target_tool_prefix}strip; ac_word=$2
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13728 $as_echo_n "checking for $ac_word... " >&6; }
13729 if ${ac_cv_path_orig_target_strip+:} false; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 case $orig_target_strip in
13733 [\\/]* | ?:[\\/]*)
13734 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738 for as_dir in $PATH
13740 IFS=$as_save_IFS
13741 test -z "$as_dir" && as_dir=.
13742 for ac_exec_ext in '' $ac_executable_extensions; do
13743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13744 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13746 break 2
13748 done
13749 done
13750 IFS=$as_save_IFS
13753 esac
13755 orig_target_strip=$ac_cv_path_orig_target_strip
13756 if test -n "$orig_target_strip"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13758 $as_echo "$orig_target_strip" >&6; }
13759 else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13765 else
13767 if test "" = ""; then
13768 ac_tool_strip=strip
13769 else
13770 ac_tool_strip=
13772 if test "$GCC" = "yes"; then
13773 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13774 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13775 set dummy `basename $aros_gcc_strip`; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if ${ac_cv_path_orig_target_strip+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 case $orig_target_strip in
13782 [\\/]* | ?:[\\/]*)
13783 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in `dirname $aros_gcc_strip`
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13793 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13797 done
13798 done
13799 IFS=$as_save_IFS
13802 esac
13804 orig_target_strip=$ac_cv_path_orig_target_strip
13805 if test -n "$orig_target_strip"; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13807 $as_echo "$orig_target_strip" >&6; }
13808 else
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13815 if test "$orig_target_strip" = ""; then
13816 for ac_prog in $ac_tool_strip
13818 # Extract the first word of "$ac_prog", so it can be a program name with args.
13819 set dummy $ac_prog; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if ${ac_cv_path_orig_target_strip+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 case $orig_target_strip in
13826 [\\/]* | ?:[\\/]*)
13827 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839 break 2
13841 done
13842 done
13843 IFS=$as_save_IFS
13846 esac
13848 orig_target_strip=$ac_cv_path_orig_target_strip
13849 if test -n "$orig_target_strip"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13851 $as_echo "$orig_target_strip" >&6; }
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13858 test -n "$orig_target_strip" && break
13859 done
13864 else
13865 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13866 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13867 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869 $as_echo_n "checking for $ac_word... " >&6; }
13870 if ${ac_cv_path_orig_target_strip+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 case $orig_target_strip in
13874 [\\/]* | ?:[\\/]*)
13875 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879 for as_dir in $PATH
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
13884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13885 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13889 done
13890 done
13891 IFS=$as_save_IFS
13894 esac
13896 orig_target_strip=$ac_cv_path_orig_target_strip
13897 if test -n "$orig_target_strip"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13899 $as_echo "$orig_target_strip" >&6; }
13900 else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902 $as_echo "no" >&6; }
13906 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13909 req_avail=yes
13910 if test "$orig_target_strip" = ""; then
13911 req_avail=no
13913 if test "$orig_target_strip" = "no"; then
13914 req_avail=no
13916 if test "$req_avail" = "no"; then
13917 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13920 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13921 if test "$cross_compiling" = "yes" ; then
13922 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13923 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 case $orig_target_objcopy in
13930 [\\/]* | ?:[\\/]*)
13931 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13941 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13945 done
13946 done
13947 IFS=$as_save_IFS
13950 esac
13952 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13953 if test -n "$orig_target_objcopy"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13955 $as_echo "$orig_target_objcopy" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13962 else
13964 if test "" = ""; then
13965 ac_tool_objcopy=objcopy
13966 else
13967 ac_tool_objcopy=
13969 if test "$GCC" = "yes"; then
13970 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
13971 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13972 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974 $as_echo_n "checking for $ac_word... " >&6; }
13975 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 case $orig_target_objcopy in
13979 [\\/]* | ?:[\\/]*)
13980 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in `dirname $aros_gcc_objcopy`
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13990 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13994 done
13995 done
13996 IFS=$as_save_IFS
13999 esac
14001 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14002 if test -n "$orig_target_objcopy"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14004 $as_echo "$orig_target_objcopy" >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14012 if test "$orig_target_objcopy" = ""; then
14013 for ac_prog in $ac_tool_objcopy
14015 # Extract the first word of "$ac_prog", so it can be a program name with args.
14016 set dummy $ac_prog; ac_word=$2
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14018 $as_echo_n "checking for $ac_word... " >&6; }
14019 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 case $orig_target_objcopy in
14023 [\\/]* | ?:[\\/]*)
14024 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14034 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14038 done
14039 done
14040 IFS=$as_save_IFS
14043 esac
14045 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14046 if test -n "$orig_target_objcopy"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14048 $as_echo "$orig_target_objcopy" >&6; }
14049 else
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14055 test -n "$orig_target_objcopy" && break
14056 done
14061 else
14062 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14063 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14064 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066 $as_echo_n "checking for $ac_word... " >&6; }
14067 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 case $orig_target_objcopy in
14071 [\\/]* | ?:[\\/]*)
14072 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14082 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14086 done
14087 done
14088 IFS=$as_save_IFS
14091 esac
14093 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14094 if test -n "$orig_target_objcopy"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14096 $as_echo "$orig_target_objcopy" >&6; }
14097 else
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14103 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14106 req_avail=yes
14107 if test "$orig_target_objcopy" = ""; then
14108 req_avail=no
14110 if test "$orig_target_objcopy" = "no"; then
14111 req_avail=no
14113 if test "$req_avail" = "no"; then
14114 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14117 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14118 if test "$cross_compiling" = "yes" ; then
14119 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14120 set dummy ${target_tool_prefix}objdump; ac_word=$2
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122 $as_echo_n "checking for $ac_word... " >&6; }
14123 if ${ac_cv_path_orig_target_objdump+:} false; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 case $orig_target_objdump in
14127 [\\/]* | ?:[\\/]*)
14128 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14138 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14142 done
14143 done
14144 IFS=$as_save_IFS
14147 esac
14149 orig_target_objdump=$ac_cv_path_orig_target_objdump
14150 if test -n "$orig_target_objdump"; then
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14152 $as_echo "$orig_target_objdump" >&6; }
14153 else
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155 $as_echo "no" >&6; }
14159 else
14161 if test "" = ""; then
14162 ac_tool_objdump=objdump
14163 else
14164 ac_tool_objdump=
14166 if test "$GCC" = "yes"; then
14167 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14168 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14169 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_path_orig_target_objdump+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 case $orig_target_objdump in
14176 [\\/]* | ?:[\\/]*)
14177 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in `dirname $aros_gcc_objdump`
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14191 done
14192 done
14193 IFS=$as_save_IFS
14196 esac
14198 orig_target_objdump=$ac_cv_path_orig_target_objdump
14199 if test -n "$orig_target_objdump"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14201 $as_echo "$orig_target_objdump" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14209 if test "$orig_target_objdump" = ""; then
14210 for ac_prog in $ac_tool_objdump
14212 # Extract the first word of "$ac_prog", so it can be a program name with args.
14213 set dummy $ac_prog; ac_word=$2
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14215 $as_echo_n "checking for $ac_word... " >&6; }
14216 if ${ac_cv_path_orig_target_objdump+:} false; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 case $orig_target_objdump in
14220 [\\/]* | ?:[\\/]*)
14221 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14227 IFS=$as_save_IFS
14228 test -z "$as_dir" && as_dir=.
14229 for ac_exec_ext in '' $ac_executable_extensions; do
14230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14231 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14233 break 2
14235 done
14236 done
14237 IFS=$as_save_IFS
14240 esac
14242 orig_target_objdump=$ac_cv_path_orig_target_objdump
14243 if test -n "$orig_target_objdump"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14245 $as_echo "$orig_target_objdump" >&6; }
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14252 test -n "$orig_target_objdump" && break
14253 done
14258 else
14259 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14260 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14261 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if ${ac_cv_path_orig_target_objdump+:} false; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267 case $orig_target_objdump in
14268 [\\/]* | ?:[\\/]*)
14269 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273 for as_dir in $PATH
14275 IFS=$as_save_IFS
14276 test -z "$as_dir" && as_dir=.
14277 for ac_exec_ext in '' $ac_executable_extensions; do
14278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14279 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14281 break 2
14283 done
14284 done
14285 IFS=$as_save_IFS
14288 esac
14290 orig_target_objdump=$ac_cv_path_orig_target_objdump
14291 if test -n "$orig_target_objdump"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14293 $as_echo "$orig_target_objdump" >&6; }
14294 else
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14300 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14303 req_avail=yes
14304 if test "$orig_target_objdump" = ""; then
14305 req_avail=no
14307 if test "$orig_target_objdump" = "no"; then
14308 req_avail=no
14310 if test "$req_avail" = "no"; then
14311 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14315 if test "$kernel_tool_prefix" = "none" ; then
14316 # No kernel tools specified
14317 # Assume kernel tools == target tools with ELF wrapper
14318 aros_kernel_cc=$orig_target_cc
14319 aros_kernel_cxx=$orig_target_cxx
14320 aros_kernel_cpp="$orig_target_cpp"
14321 aros_kernel_ld=$orig_target_ld
14322 aros_kernel_as=$orig_target_as
14323 aros_kernel_ar=$orig_target_ar
14324 aros_kernel_ranlib=$orig_target_ranlib
14325 aros_kernel_nm=$orig_target_nm
14326 aros_kernel_strip=$orig_target_strip
14327 aros_kernel_objcopy=$orig_target_objcopy
14328 aros_kernel_objdump=$orig_target_objdump
14329 aros_kernel_isa_flags=$aros_isa_flags
14330 use_kernel_cc_wrapper=yes
14333 # At this point, all aros_kernel_* and aros_target_*
14334 # tools should be set up correctly
14336 CC="$aros_kernel_cc $kernel_tool_flags"
14337 CPP="$aros_kernel_cpp"
14339 #-----------------------------------------------------------------------------
14341 # Find all the tools we need to compile. This could be cross-compiling
14342 # though! If that is the case we use the GNU form of the target and
14343 # simply add this to the front of the binary name. This is rather simple,
14344 # but it should work under most circumstances.
14346 # The default tools are to use the same as the host, but only if the
14347 # host and target CPU are the same. With GCC this is normally enough.
14350 aros_cc_pre=""
14351 aros_shared_ld="$aros_host_ld"
14353 aros_target_mkdep="$aros_host_mkdep"
14355 # The default tools executables to be linked to.
14356 if test "$rescomp" != ""; then
14357 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14358 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 case $aros_kernel_rescomp in
14365 [\\/]* | ?:[\\/]*)
14366 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14372 IFS=$as_save_IFS
14373 test -z "$as_dir" && as_dir=.
14374 for ac_exec_ext in '' $ac_executable_extensions; do
14375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14376 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 break 2
14380 done
14381 done
14382 IFS=$as_save_IFS
14385 esac
14387 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14388 if test -n "$aros_kernel_rescomp"; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14390 $as_echo "$aros_kernel_rescomp" >&6; }
14391 else
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14397 req_avail=yes
14398 if test "$aros_kernel_rescomp" = ""; then
14399 req_avail=no
14401 if test "$aros_kernel_rescomp" = "no"; then
14402 req_avail=no
14404 if test "$req_avail" = "no"; then
14405 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14409 # Set up the sources for the symlink farm
14410 if test "$crosstools" = "yes"; then
14411 crosstools_target=tools-crosstools
14414 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14415 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14417 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14418 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14419 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14420 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14421 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14422 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14423 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14425 # aros_cc_pre is a variable that is added to the front of the compiler name
14426 # in the generated aros-gcc shell script. We need this to enable the cache
14427 # to work across cleaned builds. Also, support DISTCC using the correct
14428 # environment variable.
14431 if test "x${DISTCC}" != "x" ; then
14432 if test "x${CCACHE}" != "x" ; then
14433 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14434 else
14435 aros_cc_pre="${DISTCC} "
14437 else
14438 if test "x${CCACHE}" != "x" ; then
14439 aros_cc_pre="${CCACHE} "
14443 aros_target_nostdinc_cflags=-nostdinc
14445 aros_target_nostartup_ldflags=-nostartfiles
14447 aros_target_nix_ldflags=-nix
14449 aros_target_detach_ldflags=-detach
14451 aros_target_nostdlib_ldflags=-nostdlib
14454 aros_target_cc_path=
14456 # Target tools
14458 if test "$aros_target_toolchain" != "yes"; then
14459 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14460 if test "$GCC" = "yes"; then
14461 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14463 else
14464 # We do not know which c compiler version we are going to build and what we need to know
14465 # here is different for different versions so this will be set later during the
14466 # build of crosstools.
14467 if test "$aros_toolchain" = "gnu" ; then
14468 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14469 elif test "$aros_toolchain" = "llvm" ; then
14470 prefix="$AROS_CROSSTOOLSDIR/bin/"
14472 aros_target_cc_path=@aros_target_cc_path@
14474 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14475 aros_target_cc="${prefix}${toolchain_c_compiler}"
14476 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14477 aros_target_as="${prefix}${toolchain_as}"
14478 if test "${use_ld_wrapper}" = "yes"; then
14479 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14480 else
14481 aros_target_ld="${prefix}${toolchain_ld}"
14483 aros_toolchain_ld="${prefix}${toolchain_ld}"
14485 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14486 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14487 aros_target_objdump="${prefix}${toolchain_objdump}"
14488 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14489 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14490 aros_target_strip="${prefix}${toolchain_strip}"
14491 aros_plain_nm="${prefix}${toolchain_nm}"
14492 aros_plain_ar="${prefix}${toolchain_ar}"
14494 # Check whether --enable-includes was given.
14495 if test "${enable_includes+set}" = set; then :
14496 enableval=$enable_includes; aros_target_incl=$enable_includes
14497 else
14498 aros_target_incl=no
14502 if test "x$aros_target_incl" = "xno"; then
14503 if test "x$test_kernel_cc" != "xno"; then
14504 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14505 else
14506 aros_target_incl=
14510 if test "x$aros_kernel_includes" = "x"; then
14511 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14512 if test "x$aros_target_incl" != "x"; then
14513 aros_kernel_includes="-isystem $aros_target_incl"
14518 if test "x$test_kernel_cc" != "xno"; then
14519 if test "$aros_kernel_includes" != "" ; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14521 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14522 if test "$aros_kernel_cc_includes" = "" ; then
14523 # Try to guess where the directory is.
14524 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14525 if test -d $aros_kernel_cc_includes; then
14526 # Check if there is also an include-fixed directory and add it
14527 # to kernel compiler's include path as it may contain some of
14528 # the headers we need.
14529 if test -d "$aros_kernel_cc_includes"-fixed; then
14530 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14532 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14533 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14534 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14536 else
14537 # The directory doesn't exist, we need to do some more work.
14538 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14540 # These are the headers we're looking for.
14541 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14542 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14543 zutil.h stdint.h"
14545 dirs=
14546 for h in $headers; do
14547 # Which other headers are needed by each of the above?
14548 deps=$(echo "#include <$h>" | \
14549 $aros_kernel_cc -E -M - 2>/dev/null | \
14550 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14552 # Copy all the needed headers to a directory beneath gendir.
14553 for d in $deps; do
14554 h=$(basename $d)
14555 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14556 sed -n "s,^.*/include\(/.*\),\1,p")
14557 ! test -d $dir && mkdir -p $dir
14558 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14559 done
14560 done
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14564 $as_echo "$aros_kernel_cc_includes" >&6; }
14565 # Adding -nostdinc to kernel includes as they are always used together.
14566 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14570 if test "$crosstools" != "yes"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14572 $as_echo_n "checking for the target compiler's include path... " >&6; }
14573 if test "$aros_target_cc_includes" = "" ; then
14574 #try to guess where the directory is
14575 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14576 if ! test -d $aros_target_cc_includes; then
14577 #the directory doesn't exist, we need to do some more work
14578 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14580 #these are the headers we're looking for
14581 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14582 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14583 zutil.h"
14585 dirs=
14586 for h in $headers; do
14587 #which other headers each of the above headers needs?
14588 deps=$(echo "#include <$h>" | \
14589 $orig_target_cc -E -M - 2>/dev/null | \
14590 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14592 #copy all the needed headers to a directory beneath gendir
14593 for d in $deps; do
14594 h=$(basename $d)
14595 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14596 sed -n "s,^.*/include\(/.*\),\1,p")
14597 ! test -d $dir && mkdir -p $dir
14598 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14599 done
14600 done
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14604 $as_echo "$aros_target_cc_includes" >&6; }
14605 else
14606 # We do not know which c compiler version we are going to build and what we need to know
14607 # here is different for different versions so this will be set later during the
14608 # build of crosstools.
14609 aros_target_cc_includes=@aros_target_cc_includes@
14613 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14614 # On GCC >= 4.0 -iquote should be used
14617 save_cc="$CC"
14618 save_cflags="$CFLAGS"
14619 if test "x$test_kernel_cc" != "xno"; then
14620 CFLAGS="-iquote."
14621 kernel_cflags_iquote=$host_cflags_iquote
14622 kernel_cflags_iquote_end=$host_cflags_iquote_end
14623 if test "x-$cross_compiling" = "x-yes"; then
14624 CC="$aros_kernel_cc"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14626 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14627 if test "x-$crosstools" != "x-yes"; then
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14632 main ()
14636 return 0;
14638 _ACEOF
14639 if ac_fn_c_try_compile "$LINENO"; then :
14640 use_no_stack_protector="yes"
14641 else
14642 use_no_stack_protector="no"
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 else
14646 # we do know it is supported for the smallest version of gcc we are going to build
14647 # we assume it's also supported by later versions
14648 use_no_stack_protector=yes
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14651 $as_echo "$use_no_stack_protector" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14653 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14654 if test "x-$crosstools" != "x-yes"; then
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14659 main ()
14663 return 0;
14665 _ACEOF
14666 if ac_fn_c_try_compile "$LINENO"; then :
14667 has_iquote="yes"
14668 else
14669 has_iquote="no"
14671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 else
14673 # we do know it is supported for the smallest version of gcc we are going to build
14674 # we assume it's also supported by later versions
14675 has_iquote=yes
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14678 $as_echo "$has_iquote" >&6; }
14679 if test "x-$has_iquote" = "x-yes" ; then
14680 kernel_cflags_iquote=-iquote
14681 kernel_cflags_iquote_end=
14682 else
14683 kernel_cflags_iquote=-I
14684 kernel_cflags_iquote_end=-I-
14687 if test "x-$use_no_stack_protector" = "x-yes" ; then
14688 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14691 #-----------------------------------------------------------------------------
14693 # Check if we can explicitly choose older version of symbol hashing
14695 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14696 CC="$aros_kernel_cc"
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14698 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14703 main ()
14707 return 0;
14709 _ACEOF
14710 if ac_fn_c_try_link "$LINENO"; then :
14711 use_hash_style="yes"
14712 else
14713 use_hash_style="no"
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14718 $as_echo "$use_hash_style" >&6; }
14719 if test "x-$use_hash_style" = "x-yes" ; then
14720 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14722 else
14723 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14724 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14726 CC="$save_cc"
14727 CFLAGS="$save_cflags"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14736 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14738 # Check whether --with-resolution was given.
14739 if test "${with_resolution+set}" = set; then :
14740 withval=$with_resolution; resolution=$withval
14741 else
14742 resolution=none
14745 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14746 if test "$resolution" = "yes" ; then
14747 resolution="none"
14749 if test "$resolution" = "no" ; then
14750 resolution="none"
14752 if test "$resolution" != "none" ; then
14753 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14754 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14755 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14758 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14759 aros_cv_nominal_width=$aros_nominal_width
14760 aros_cv_nominal_height=$aros_nominal_height
14761 aros_cv_nominal_depth=$aros_nominal_depth
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14764 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14766 # Check whether --with-serial-debug was given.
14767 if test "${with_serial_debug+set}" = set; then :
14768 withval=$with_serial_debug; serial_debug=$withval
14769 else
14770 serial_debug=none
14773 if test "$aros_serial_debug" = 0 ; then
14774 serial_debug_forced=""
14775 if test "$serial_debug" = "yes" ; then
14776 serial_debug="1"
14778 if test "$serial_debug" = "no" ; then
14779 serial_debug="none"
14781 else
14782 serial_debug_forced="(forced)"
14783 serial_debug=$aros_serial_debug
14785 if test "$serial_debug" != "none" ; then
14786 aros_serial_debug=$serial_debug
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14788 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14789 else
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791 $as_echo "no" >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14795 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14796 # Check whether --enable-palm_debug_hack was given.
14797 if test "${enable_palm_debug_hack+set}" = set; then :
14798 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14799 else
14800 palm_debug_hack="no"
14803 if test "$palm_debug_hack" = "yes" ; then
14804 aros_palm_debug_hack="1"
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14807 $as_echo "$palm_debug_hack" >&6; }
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14810 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14811 # Check whether --enable-usb30_code was given.
14812 if test "${enable_usb30_code+set}" = set; then :
14813 enableval=$enable_usb30_code; usb30_code="yes"
14814 else
14815 usb30_code="no"
14818 if test "$usb30_code" = "yes" ; then
14819 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14820 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14823 $as_echo "$usb30_code" >&6; }
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14826 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14827 # Check whether --enable-nesting_supervisor was given.
14828 if test "${enable_nesting_supervisor+set}" = set; then :
14829 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14830 else
14831 nesting_supervisor="no"
14834 if test "$nesting_supervisor" = "yes" ; then
14835 aros_nesting_supervisor="1"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14838 $as_echo "$nesting_supervisor" >&6; }
14840 if test "$aros_enable_mmu" = "" ; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14842 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14843 # Check whether --enable-mmu was given.
14844 if test "${enable_mmu+set}" = set; then :
14845 enableval=$enable_mmu; aros_enable_mmu=$enableval
14846 else
14847 aros_enable_mmu="yes"
14850 if test "$aros_enable_mmu" = "" ; then
14851 aros_enable_mmu="yes"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14854 $as_echo "$aros_enable_mmu" >&6; }
14856 if test "$aros_enable_mmu" = "no" ; then
14857 aros_enable_mmu="0"
14858 else
14859 aros_enable_mmu="1"
14863 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14865 if test "x-$need_dlopen" != "x-no" ; then
14866 save_libs="$LIBS"
14867 LIBS=""
14868 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14869 if test "x$ac_cv_func_dlopen" = xyes; then :
14870 have_dl="yes"
14871 else
14872 have_dl="no"
14875 if test "x-$have_dl" = "x-no" ; then
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14877 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14878 if ${ac_cv_lib_dl_dlopen+:} false; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 ac_check_lib_save_LIBS=$LIBS
14882 LIBS="-ldl $LIBS"
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 char dlopen ();
14894 main ()
14896 return dlopen ();
14898 return 0;
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"; then :
14902 ac_cv_lib_dl_dlopen=yes
14903 else
14904 ac_cv_lib_dl_dlopen=no
14906 rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14908 LIBS=$ac_check_lib_save_LIBS
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14911 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14912 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14913 have_dl="yes"
14914 aros_host_ldflags="$aros_host_ldflags -ldl"
14915 else
14916 have_dl="no"
14920 if test "x-$have_dl" = "x-no" ; then
14921 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14923 LIBS="$save_libs"
14927 # Check whether --enable-x11_hidd was given.
14928 if test "${enable_x11_hidd+set}" = set; then :
14929 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14930 else
14931 x11_hidd="$need_x11"
14934 case "x-$x11_hidd" in
14935 x-yes|x-no|x-auto) ;;
14936 *) x11_hidd="$need_x11" ;;
14937 esac
14939 ENABLE_X11=0
14941 if test "x-$x11_hidd" != "x-no" ; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14944 $as_echo_n "checking for X... " >&6; }
14947 # Check whether --with-x was given.
14948 if test "${with_x+set}" = set; then :
14949 withval=$with_x;
14952 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14953 if test "x$with_x" = xno; then
14954 # The user explicitly disabled X.
14955 have_x=disabled
14956 else
14957 case $x_includes,$x_libraries in #(
14958 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14959 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 # One or both of the vars are not set, and there is no cached value.
14963 ac_x_includes=no ac_x_libraries=no
14964 rm -f -r conftest.dir
14965 if mkdir conftest.dir; then
14966 cd conftest.dir
14967 cat >Imakefile <<'_ACEOF'
14968 incroot:
14969 @echo incroot='${INCROOT}'
14970 usrlibdir:
14971 @echo usrlibdir='${USRLIBDIR}'
14972 libdir:
14973 @echo libdir='${LIBDIR}'
14974 _ACEOF
14975 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14976 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14977 for ac_var in incroot usrlibdir libdir; do
14978 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14979 done
14980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14981 for ac_extension in a so sl dylib la dll; do
14982 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14983 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14984 ac_im_usrlibdir=$ac_im_libdir; break
14986 done
14987 # Screen out bogus values from the imake configuration. They are
14988 # bogus both because they are the default anyway, and because
14989 # using them would break gcc on systems where it needs fixed includes.
14990 case $ac_im_incroot in
14991 /usr/include) ac_x_includes= ;;
14992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14993 esac
14994 case $ac_im_usrlibdir in
14995 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14997 esac
14999 cd ..
15000 rm -f -r conftest.dir
15003 # Standard set of common directories for X headers.
15004 # Check X11 before X11Rn because it is often a symlink to the current release.
15005 ac_x_header_dirs='
15006 /usr/X11/include
15007 /usr/X11R7/include
15008 /usr/X11R6/include
15009 /usr/X11R5/include
15010 /usr/X11R4/include
15012 /usr/include/X11
15013 /usr/include/X11R7
15014 /usr/include/X11R6
15015 /usr/include/X11R5
15016 /usr/include/X11R4
15018 /usr/local/X11/include
15019 /usr/local/X11R7/include
15020 /usr/local/X11R6/include
15021 /usr/local/X11R5/include
15022 /usr/local/X11R4/include
15024 /usr/local/include/X11
15025 /usr/local/include/X11R7
15026 /usr/local/include/X11R6
15027 /usr/local/include/X11R5
15028 /usr/local/include/X11R4
15030 /usr/X386/include
15031 /usr/x386/include
15032 /usr/XFree86/include/X11
15034 /usr/include
15035 /usr/local/include
15036 /usr/unsupported/include
15037 /usr/athena/include
15038 /usr/local/x11r5/include
15039 /usr/lpp/Xamples/include
15041 /usr/openwin/include
15042 /usr/openwin/share/include'
15044 if test "$ac_x_includes" = no; then
15045 # Guess where to find include files, by looking for Xlib.h.
15046 # First, try using that file with no special directory specified.
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 #include <X11/Xlib.h>
15050 _ACEOF
15051 if ac_fn_c_try_cpp "$LINENO"; then :
15052 # We can compile using X headers with no special include directory.
15053 ac_x_includes=
15054 else
15055 for ac_dir in $ac_x_header_dirs; do
15056 if test -r "$ac_dir/X11/Xlib.h"; then
15057 ac_x_includes=$ac_dir
15058 break
15060 done
15062 rm -f conftest.err conftest.i conftest.$ac_ext
15063 fi # $ac_x_includes = no
15065 if test "$ac_x_libraries" = no; then
15066 # Check for the libraries.
15067 # See if we find them without any special options.
15068 # Don't add to $LIBS permanently.
15069 ac_save_LIBS=$LIBS
15070 LIBS="-lX11 $LIBS"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 #include <X11/Xlib.h>
15075 main ()
15077 XrmInitialize ()
15079 return 0;
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"; then :
15083 LIBS=$ac_save_LIBS
15084 # We can link X programs with no special library path.
15085 ac_x_libraries=
15086 else
15087 LIBS=$ac_save_LIBS
15088 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15090 # Don't even attempt the hair of trying to link an X program!
15091 for ac_extension in a so sl dylib la dll; do
15092 if test -r "$ac_dir/libX11.$ac_extension"; then
15093 ac_x_libraries=$ac_dir
15094 break 2
15096 done
15097 done
15099 rm -f core conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 fi # $ac_x_libraries = no
15103 case $ac_x_includes,$ac_x_libraries in #(
15104 no,* | *,no | *\'*)
15105 # Didn't find X, or a directory has "'" in its name.
15106 ac_cv_have_x="have_x=no";; #(
15108 # Record where we found X for the cache.
15109 ac_cv_have_x="have_x=yes\
15110 ac_x_includes='$ac_x_includes'\
15111 ac_x_libraries='$ac_x_libraries'"
15112 esac
15114 ;; #(
15115 *) have_x=yes;;
15116 esac
15117 eval "$ac_cv_have_x"
15118 fi # $with_x != no
15120 if test "$have_x" != yes; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15122 $as_echo "$have_x" >&6; }
15123 no_x=yes
15124 else
15125 # If each of the values was on the command line, it overrides each guess.
15126 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15127 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15128 # Update the cache value to reflect the command line values.
15129 ac_cv_have_x="have_x=yes\
15130 ac_x_includes='$x_includes'\
15131 ac_x_libraries='$x_libraries'"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15133 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15137 if test -n "$x_includes"; then
15138 X_CFLAGS="$X_CFLAGS -I$x_includes"
15141 if test -n "$x_libraries"; then
15142 X_LIBS="$X_LIBS -L$x_libraries"
15145 if test "x-$no_x" = "x-yes" ; then
15147 if test "x-$x11_hidd" != "x-auto" ; then
15148 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15151 else
15152 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15153 if test "x-$host_feature_glx" != "x-no" ; then
15154 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15156 ENABLE_X11=1
15158 aros_host_x11_cflags="$X_CFLAGS"
15159 aros_host_x11_ldflags="$X_LIBS -lX11"
15161 # Check whether --enable-x11_shm was given.
15162 if test "${enable_x11_shm+set}" = set; then :
15163 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15164 else
15165 x11_hidd_shm="auto"
15168 case "x-$x11_hidd_shm" in
15169 x-yes|x-no|x-auto) ;;
15170 *) x11_hidd_shm="auto" ;;
15171 esac
15173 have_xshm=no
15175 if test "x-$x11_hidd_shm" != "x-no" ; then
15177 for ac_header in sys/ipc.h
15178 do :
15179 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15180 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15181 cat >>confdefs.h <<_ACEOF
15182 #define HAVE_SYS_IPC_H 1
15183 _ACEOF
15187 done
15189 for ac_header in sys/shm.h
15190 do :
15191 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15192 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_SYS_SHM_H 1
15195 _ACEOF
15199 done
15202 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15204 save_cflags="$CFLAGS"
15205 save_ldflags="$LDFLAGS"
15206 CFLAGS="$CFLAGS $X_CFLAGS"
15207 LDFLAGS="$LDFLAGS $X_LIBS"
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15209 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15210 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15211 $as_echo_n "(cached) " >&6
15212 else
15213 ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-lXext $LIBS"
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15218 /* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 char XShmQueryExtension ();
15226 main ()
15228 return XShmQueryExtension ();
15230 return 0;
15232 _ACEOF
15233 if ac_fn_c_try_link "$LINENO"; then :
15234 ac_cv_lib_Xext_XShmQueryExtension=yes
15235 else
15236 ac_cv_lib_Xext_XShmQueryExtension=no
15238 rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240 LIBS=$ac_check_lib_save_LIBS
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15243 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15244 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15245 have_xshm=yes
15248 CFLAGS="$save_cflags"
15249 LDFLAGS="$save_ldflags"
15253 if test "x-$have_xshm" = "x-yes" ; then
15254 DO_XSHM_SUPPORT="1"
15255 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15256 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15257 else
15258 DO_XSHM_SUPPORT="0"
15262 # Check whether --enable-x11_vidmode was given.
15263 if test "${enable_x11_vidmode+set}" = set; then :
15264 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15265 else
15266 x11_hidd_vidmode="auto"
15269 case "x-$x11_hidd_vidmode" in
15270 x-yes|x-no|x-auto) ;;
15271 *) x11_hidd_vidmode="auto" ;;
15272 esac
15274 have_vidmode=no
15276 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15278 save_cflags="$CFLAGS"
15279 save_ldflags="$LDFLAGS"
15280 CFLAGS="$CFLAGS $X_CFLAGS"
15281 LDFLAGS="$LDFLAGS $X_LIBS"
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15283 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15284 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 ac_check_lib_save_LIBS=$LIBS
15288 LIBS="-lXxf86vm $LIBS"
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h. */
15292 /* Override any GCC internal prototype to avoid an error.
15293 Use char because int might match the return type of a GCC
15294 builtin and then its argument prototype would still apply. */
15295 #ifdef __cplusplus
15296 extern "C"
15297 #endif
15298 char XF86VidModeQueryExtension ();
15300 main ()
15302 return XF86VidModeQueryExtension ();
15304 return 0;
15306 _ACEOF
15307 if ac_fn_c_try_link "$LINENO"; then :
15308 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15309 else
15310 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15312 rm -f core conftest.err conftest.$ac_objext \
15313 conftest$ac_exeext conftest.$ac_ext
15314 LIBS=$ac_check_lib_save_LIBS
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15317 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15318 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15319 have_vidmode=yes
15322 CFLAGS="$save_cflags"
15323 LDFLAGS="$save_ldflags"
15326 if test "x-$have_vidmode" = "x-yes" ; then
15327 DO_VIDMODE_SUPPORT="1"
15328 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15329 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15330 else
15331 DO_VIDMODE_SUPPORT="0"
15336 # Check whether --enable-sdl_hidd was given.
15337 if test "${enable_sdl_hidd+set}" = set; then :
15338 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15339 else
15340 sdl_hidd="auto"
15343 case "x-$sdl_hidd" in
15344 x-yes|x-no|x-auto) ;;
15345 *) sdl_hidd="auto" ;;
15346 esac
15348 if test "x-$sdl_hidd" != "x-no" ; then
15350 SDL_VERSION=1.2.5
15352 # Check whether --with-sdl-prefix was given.
15353 if test "${with_sdl_prefix+set}" = set; then :
15354 withval=$with_sdl_prefix; sdl_prefix="$withval"
15355 else
15356 sdl_prefix=""
15360 # Check whether --with-sdl-exec-prefix was given.
15361 if test "${with_sdl_exec_prefix+set}" = set; then :
15362 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15363 else
15364 sdl_exec_prefix=""
15367 # Check whether --enable-sdltest was given.
15368 if test "${enable_sdltest+set}" = set; then :
15369 enableval=$enable_sdltest;
15370 else
15371 enable_sdltest=yes
15375 if test x$sdl_exec_prefix != x ; then
15376 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15377 if test x${SDL_CONFIG+set} != xset ; then
15378 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15381 if test x$sdl_prefix != x ; then
15382 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15383 if test x${SDL_CONFIG+set} != xset ; then
15384 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15388 as_save_PATH="$PATH"
15389 if test "x$prefix" != xNONE; then
15390 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15392 # Extract the first word of "sdl-config", so it can be a program name with args.
15393 set dummy sdl-config; ac_word=$2
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15395 $as_echo_n "checking for $ac_word... " >&6; }
15396 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15397 $as_echo_n "(cached) " >&6
15398 else
15399 case $SDL_CONFIG in
15400 [\\/]* | ?:[\\/]*)
15401 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15405 for as_dir in $PATH
15407 IFS=$as_save_IFS
15408 test -z "$as_dir" && as_dir=.
15409 for ac_exec_ext in '' $ac_executable_extensions; do
15410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15411 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15413 break 2
15415 done
15416 done
15417 IFS=$as_save_IFS
15419 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15421 esac
15423 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15424 if test -n "$SDL_CONFIG"; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15426 $as_echo "$SDL_CONFIG" >&6; }
15427 else
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15429 $as_echo "no" >&6; }
15433 PATH="$as_save_PATH"
15434 min_sdl_version=$SDL_VERSION
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15436 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15437 no_sdl=""
15438 if test "$SDL_CONFIG" = "no" ; then
15439 no_sdl=yes
15440 else
15441 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15442 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15444 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15446 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15448 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15449 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15450 if test "x$enable_sdltest" = "xyes" ; then
15451 ac_save_CFLAGS="$CFLAGS"
15452 ac_save_CXXFLAGS="$CXXFLAGS"
15453 ac_save_LIBS="$LIBS"
15454 CFLAGS="$CFLAGS $SDL_CFLAGS"
15455 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15456 LIBS="$LIBS $SDL_LIBS"
15457 rm -f conf.sdltest
15458 if test "$cross_compiling" = yes; then :
15459 echo $ac_n "cross compiling; assumed OK... $ac_c"
15460 else
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15464 #include <stdio.h>
15465 #include <stdlib.h>
15466 #include <string.h>
15467 #include "SDL.h"
15469 char*
15470 my_strdup (char *str)
15472 char *new_str;
15474 if (str)
15476 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15477 strcpy (new_str, str);
15479 else
15480 new_str = NULL;
15482 return new_str;
15485 int main (int argc, char *argv[])
15487 int major, minor, micro;
15488 char *tmp_version;
15490 /* This hangs on some systems (?)
15491 system ("touch conf.sdltest");
15493 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15495 /* HP/UX 9 (%@#!) writes to sscanf strings */
15496 tmp_version = my_strdup("$min_sdl_version");
15497 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15498 printf("%s, bad version string\n", "$min_sdl_version");
15499 exit(1);
15502 if (($sdl_major_version > major) ||
15503 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15504 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15506 return 0;
15508 else
15510 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15511 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15512 printf("*** best to upgrade to the required version.\n");
15513 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15514 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15515 printf("*** config.cache before re-running configure\n");
15516 return 1;
15521 _ACEOF
15522 if ac_fn_c_try_run "$LINENO"; then :
15524 else
15525 no_sdl=yes
15527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15528 conftest.$ac_objext conftest.beam conftest.$ac_ext
15531 CFLAGS="$ac_save_CFLAGS"
15532 CXXFLAGS="$ac_save_CXXFLAGS"
15533 LIBS="$ac_save_LIBS"
15536 if test "x$no_sdl" = x ; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15538 $as_echo "yes" >&6; }
15539 have_sdl="yes"
15540 else
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15542 $as_echo "no" >&6; }
15543 if test "$SDL_CONFIG" = "no" ; then
15544 echo "*** The sdl-config script installed by SDL could not be found"
15545 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15546 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15547 echo "*** full path to sdl-config."
15548 else
15549 if test -f conf.sdltest ; then
15551 else
15552 echo "*** Could not run SDL test program, checking why..."
15553 CFLAGS="$CFLAGS $SDL_CFLAGS"
15554 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15555 LIBS="$LIBS $SDL_LIBS"
15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15559 #include <stdio.h>
15560 #include "SDL.h"
15562 int main(int argc, char *argv[])
15563 { return 0; }
15564 #undef main
15565 #define main K_and_R_C_main
15568 main ()
15570 return 0;
15572 return 0;
15574 _ACEOF
15575 if ac_fn_c_try_link "$LINENO"; then :
15576 echo "*** The test program compiled, but did not run. This usually means"
15577 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15578 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15579 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15580 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15581 echo "*** is required on your system"
15582 echo "***"
15583 echo "*** If you have an old version installed, it is best to remove it, although"
15584 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15585 else
15586 echo "*** The test program failed to compile or link. See the file config.log for the"
15587 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15588 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15589 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15591 rm -f core conftest.err conftest.$ac_objext \
15592 conftest$ac_exeext conftest.$ac_ext
15593 CFLAGS="$ac_save_CFLAGS"
15594 CXXFLAGS="$ac_save_CXXFLAGS"
15595 LIBS="$ac_save_LIBS"
15598 SDL_CFLAGS=""
15599 SDL_LIBS=""
15600 have_sdl="no"
15604 rm -f conf.sdltest
15607 if test "x-$have_sdl" != "x-yes" ; then
15609 if test "x-$sdl_hidd" != "x-auto" ; then
15610 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15613 else
15614 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15615 aros_host_sdl_cflags=$SDL_CFLAGS
15616 aros_host_sdl_libs=$SDL_LIBS
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15624 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15625 # Check whether --enable-dbus was given.
15626 if test "${enable_dbus+set}" = set; then :
15627 enableval=$enable_dbus; dbus="yes"
15628 else
15629 dbus="no"
15632 if test "$dbus" = "yes" ; then
15633 ENABLE_DBUS=1
15634 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15635 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15636 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15637 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15638 else
15639 ENABLE_DBUS=0
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15642 $as_echo "$dbus" >&6; }
15644 if test "$use_kernel_cc_wrapper" = "yes" ; then
15645 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15648 aros_kernel_cppflags=$aros_config_cppflags
15649 aros_optimization_cflags="$optimization_level"
15650 if test "$optimization" = "default"; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15652 $as_echo_n "checking default optimization level to use... " >&6; }
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15654 $as_echo "$optimization_level" >&6; }
15657 if ! test "$gcc_default_cpu" = "" ; then
15658 target_extra_cfg+="$export_newline""# ARM gcc default target$export_newline""GCC_DEFAULT_CPU := $gcc_default_cpu$export_newline""GCC_DEFAULT_FPU := $gcc_default_fpu$export_newline""GCC_DEFAULT_FLOAT_ABI := $gcc_default_float_abi$export_newline""GCC_DEFAULT_MODE := $gcc_default_mode$export_newline"
15661 if test "$use_libatomic" = "yes" ; then
15662 aros_cxx_libs="$aros_cxx_libs -latomic"
15666 # Generic
15680 # Compatability with other Amiga-like operating systems
15683 # Host Related ###########################
15715 # Target Related #########################
15809 # Native version related
15814 # MMU related
15817 # Bootloader related
15820 # Unix/Hosted version related
15823 # ARM default GCC target related
15830 # Palm native version related
15833 # Apple iOS related
15838 # Android related
15844 # Debug related
15850 # Collect-aros stuff: "-ius" to ignore undefined symbols
15853 # C compiler related
15858 #ObjC compiler related
15861 #Java related
15864 # DBUS related
15871 #X11 related
15879 #SDL related
15883 # USB3.0 code
15886 case "$aros_flavour" in
15887 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15888 aros_flavour="emulation" ;;
15889 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15890 aros_flavour="emulation" ;;
15891 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15892 aros_flavour="standalone";;
15893 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15894 aros_flavour="standalone";;
15895 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15896 aros_flavour="native" ;;
15897 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15898 aros_flavour="native" ;;
15899 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15900 aros_flavour="linklib" ;;
15901 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15902 aros_flavour="palmnative" ;;
15903 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15904 aros_flavour="mac68knative" ;;
15905 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15906 aros_flavour="ppcnative" ;;
15907 esac
15909 if test ! -d ${aros_inc_dir} ; then
15910 ${MKDIR} ${aros_inc_dir}
15912 if test ! -d ${aros_geninc_dir} ; then
15913 ${MKDIR} ${aros_geninc_dir}
15915 if test ! -d ${aros_hostcfg_dir} ; then
15916 ${MKDIR} ${aros_hostcfg_dir}
15918 if test ! -d ${aros_targetcfg_dir} ; then
15919 ${MKDIR} ${aros_targetcfg_dir}
15921 if test ! -d ${aros_tools_dir} ; then
15922 ${MKDIR} ${aros_tools_dir}
15924 if test ! -d ${aros_scripts_dir} ; then
15925 ${MKDIR} ${aros_scripts_dir}
15928 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15931 # Generic build tools (metamake, etc)
15932 ac_config_commands="$ac_config_commands genmf-executable-support"
15934 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15937 # Binutils
15938 ac_config_commands="$ac_config_commands binutils-support"
15940 if test "${use_ld_wrapper}" = "yes"; then
15941 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"
15944 # Bare Elf support script and spec
15945 if test "${use_kernel_cc_wrapper}" = "yes"; then
15946 ac_config_commands="$ac_config_commands elf-compiler-support"
15948 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"
15952 # Host compiler support scripts and spec
15953 if test "${aros_target_toolchain}" = "no"; then
15954 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15956 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"
15960 # Android support
15961 if test "$aros_target_variant" == "android"; then
15962 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15966 # cmake helper
15967 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15970 cat >confcache <<\_ACEOF
15971 # This file is a shell script that caches the results of configure
15972 # tests run on this system so they can be shared between configure
15973 # scripts and configure runs, see configure's option --config-cache.
15974 # It is not useful on other systems. If it contains results you don't
15975 # want to keep, you may remove or edit it.
15977 # config.status only pays attention to the cache file if you give it
15978 # the --recheck option to rerun configure.
15980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15982 # following values.
15984 _ACEOF
15986 # The following way of writing the cache mishandles newlines in values,
15987 # but we know of no workaround that is simple, portable, and efficient.
15988 # So, we kill variables containing newlines.
15989 # Ultrix sh set writes to stderr and can't be redirected directly,
15990 # and sets the high bit in the cache file unless we assign to the vars.
15992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15993 eval ac_val=\$$ac_var
15994 case $ac_val in #(
15995 *${as_nl}*)
15996 case $ac_var in #(
15997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15999 esac
16000 case $ac_var in #(
16001 _ | IFS | as_nl) ;; #(
16002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16003 *) { eval $ac_var=; unset $ac_var;} ;;
16004 esac ;;
16005 esac
16006 done
16008 (set) 2>&1 |
16009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16010 *${as_nl}ac_space=\ *)
16011 # `set' does not quote correctly, so add quotes: double-quote
16012 # substitution turns \\\\ into \\, and sed turns \\ into \.
16013 sed -n \
16014 "s/'/'\\\\''/g;
16015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16016 ;; #(
16018 # `set' quotes correctly as required by POSIX, so do not add quotes.
16019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16021 esac |
16022 sort
16024 sed '
16025 /^ac_cv_env_/b end
16026 t clear
16027 :clear
16028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16029 t end
16030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16031 :end' >>confcache
16032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16033 if test -w "$cache_file"; then
16034 if test "x$cache_file" != "x/dev/null"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16036 $as_echo "$as_me: updating cache $cache_file" >&6;}
16037 if test ! -f "$cache_file" || test -h "$cache_file"; then
16038 cat confcache >"$cache_file"
16039 else
16040 case $cache_file in #(
16041 */* | ?:*)
16042 mv -f confcache "$cache_file"$$ &&
16043 mv -f "$cache_file"$$ "$cache_file" ;; #(
16045 mv -f confcache "$cache_file" ;;
16046 esac
16049 else
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16054 rm -f confcache
16056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16057 # Let make expand exec_prefix.
16058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16060 DEFS=-DHAVE_CONFIG_H
16062 ac_libobjs=
16063 ac_ltlibobjs=
16065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16066 # 1. Remove the extension, and $U if already installed.
16067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16068 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16070 # will be set to the directory where LIBOBJS objects are built.
16071 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16072 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16073 done
16074 LIBOBJS=$ac_libobjs
16076 LTLIBOBJS=$ac_ltlibobjs
16080 : "${CONFIG_STATUS=./config.status}"
16081 ac_write_fail=0
16082 ac_clean_files_save=$ac_clean_files
16083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16086 as_write_fail=0
16087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16088 #! $SHELL
16089 # Generated by $as_me.
16090 # Run this file to recreate the current configuration.
16091 # Compiler output produced by configure, useful for debugging
16092 # configure, is in config.log if it exists.
16094 debug=false
16095 ac_cs_recheck=false
16096 ac_cs_silent=false
16098 SHELL=\${CONFIG_SHELL-$SHELL}
16099 export SHELL
16100 _ASEOF
16101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16102 ## -------------------- ##
16103 ## M4sh Initialization. ##
16104 ## -------------------- ##
16106 # Be more Bourne compatible
16107 DUALCASE=1; export DUALCASE # for MKS sh
16108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16109 emulate sh
16110 NULLCMD=:
16111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16112 # is contrary to our usage. Disable this feature.
16113 alias -g '${1+"$@"}'='"$@"'
16114 setopt NO_GLOB_SUBST
16115 else
16116 case `(set -o) 2>/dev/null` in #(
16117 *posix*) :
16118 set -o posix ;; #(
16119 *) :
16121 esac
16125 as_nl='
16127 export as_nl
16128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16129 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16132 # Prefer a ksh shell builtin over an external printf program on Solaris,
16133 # but without wasting forks for bash or zsh.
16134 if test -z "$BASH_VERSION$ZSH_VERSION" \
16135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16136 as_echo='print -r --'
16137 as_echo_n='print -rn --'
16138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16139 as_echo='printf %s\n'
16140 as_echo_n='printf %s'
16141 else
16142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16144 as_echo_n='/usr/ucb/echo -n'
16145 else
16146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16147 as_echo_n_body='eval
16148 arg=$1;
16149 case $arg in #(
16150 *"$as_nl"*)
16151 expr "X$arg" : "X\\(.*\\)$as_nl";
16152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16153 esac;
16154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16156 export as_echo_n_body
16157 as_echo_n='sh -c $as_echo_n_body as_echo'
16159 export as_echo_body
16160 as_echo='sh -c $as_echo_body as_echo'
16163 # The user is always right.
16164 if test "${PATH_SEPARATOR+set}" != set; then
16165 PATH_SEPARATOR=:
16166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16168 PATH_SEPARATOR=';'
16173 # IFS
16174 # We need space, tab and new line, in precisely that order. Quoting is
16175 # there to prevent editors from complaining about space-tab.
16176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16177 # splitting by setting IFS to empty value.)
16178 IFS=" "" $as_nl"
16180 # Find who we are. Look in the path if we contain no directory separator.
16181 as_myself=
16182 case $0 in #((
16183 *[\\/]* ) as_myself=$0 ;;
16184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16185 for as_dir in $PATH
16187 IFS=$as_save_IFS
16188 test -z "$as_dir" && as_dir=.
16189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16190 done
16191 IFS=$as_save_IFS
16194 esac
16195 # We did not find ourselves, most probably we were run as `sh COMMAND'
16196 # in which case we are not to be found in the path.
16197 if test "x$as_myself" = x; then
16198 as_myself=$0
16200 if test ! -f "$as_myself"; then
16201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16202 exit 1
16205 # Unset variables that we do not need and which cause bugs (e.g. in
16206 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16207 # suppresses any "Segmentation fault" message there. '((' could
16208 # trigger a bug in pdksh 5.2.14.
16209 for as_var in BASH_ENV ENV MAIL MAILPATH
16210 do eval test x\${$as_var+set} = xset \
16211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16212 done
16213 PS1='$ '
16214 PS2='> '
16215 PS4='+ '
16217 # NLS nuisances.
16218 LC_ALL=C
16219 export LC_ALL
16220 LANGUAGE=C
16221 export LANGUAGE
16223 # CDPATH.
16224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16227 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16228 # ----------------------------------------
16229 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16230 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16231 # script with STATUS, using 1 if that was 0.
16232 as_fn_error ()
16234 as_status=$1; test $as_status -eq 0 && as_status=1
16235 if test "$4"; then
16236 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16239 $as_echo "$as_me: error: $2" >&2
16240 as_fn_exit $as_status
16241 } # as_fn_error
16244 # as_fn_set_status STATUS
16245 # -----------------------
16246 # Set $? to STATUS, without forking.
16247 as_fn_set_status ()
16249 return $1
16250 } # as_fn_set_status
16252 # as_fn_exit STATUS
16253 # -----------------
16254 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16255 as_fn_exit ()
16257 set +e
16258 as_fn_set_status $1
16259 exit $1
16260 } # as_fn_exit
16262 # as_fn_unset VAR
16263 # ---------------
16264 # Portably unset VAR.
16265 as_fn_unset ()
16267 { eval $1=; unset $1;}
16269 as_unset=as_fn_unset
16270 # as_fn_append VAR VALUE
16271 # ----------------------
16272 # Append the text in VALUE to the end of the definition contained in VAR. Take
16273 # advantage of any shell optimizations that allow amortized linear growth over
16274 # repeated appends, instead of the typical quadratic growth present in naive
16275 # implementations.
16276 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16277 eval 'as_fn_append ()
16279 eval $1+=\$2
16281 else
16282 as_fn_append ()
16284 eval $1=\$$1\$2
16286 fi # as_fn_append
16288 # as_fn_arith ARG...
16289 # ------------------
16290 # Perform arithmetic evaluation on the ARGs, and store the result in the
16291 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16292 # must be portable across $(()) and expr.
16293 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16294 eval 'as_fn_arith ()
16296 as_val=$(( $* ))
16298 else
16299 as_fn_arith ()
16301 as_val=`expr "$@" || test $? -eq 1`
16303 fi # as_fn_arith
16306 if expr a : '\(a\)' >/dev/null 2>&1 &&
16307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16308 as_expr=expr
16309 else
16310 as_expr=false
16313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16314 as_basename=basename
16315 else
16316 as_basename=false
16319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16320 as_dirname=dirname
16321 else
16322 as_dirname=false
16325 as_me=`$as_basename -- "$0" ||
16326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16327 X"$0" : 'X\(//\)$' \| \
16328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16329 $as_echo X/"$0" |
16330 sed '/^.*\/\([^/][^/]*\)\/*$/{
16331 s//\1/
16334 /^X\/\(\/\/\)$/{
16335 s//\1/
16338 /^X\/\(\/\).*/{
16339 s//\1/
16342 s/.*/./; q'`
16344 # Avoid depending upon Character Ranges.
16345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16348 as_cr_digits='0123456789'
16349 as_cr_alnum=$as_cr_Letters$as_cr_digits
16351 ECHO_C= ECHO_N= ECHO_T=
16352 case `echo -n x` in #(((((
16353 -n*)
16354 case `echo 'xy\c'` in
16355 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16356 xy) ECHO_C='\c';;
16357 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16358 ECHO_T=' ';;
16359 esac;;
16361 ECHO_N='-n';;
16362 esac
16364 rm -f conf$$ conf$$.exe conf$$.file
16365 if test -d conf$$.dir; then
16366 rm -f conf$$.dir/conf$$.file
16367 else
16368 rm -f conf$$.dir
16369 mkdir conf$$.dir 2>/dev/null
16371 if (echo >conf$$.file) 2>/dev/null; then
16372 if ln -s conf$$.file conf$$ 2>/dev/null; then
16373 as_ln_s='ln -s'
16374 # ... but there are two gotchas:
16375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16377 # In both cases, we have to default to `cp -pR'.
16378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16379 as_ln_s='cp -pR'
16380 elif ln conf$$.file conf$$ 2>/dev/null; then
16381 as_ln_s=ln
16382 else
16383 as_ln_s='cp -pR'
16385 else
16386 as_ln_s='cp -pR'
16388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16389 rmdir conf$$.dir 2>/dev/null
16392 # as_fn_mkdir_p
16393 # -------------
16394 # Create "$as_dir" as a directory, including parents if necessary.
16395 as_fn_mkdir_p ()
16398 case $as_dir in #(
16399 -*) as_dir=./$as_dir;;
16400 esac
16401 test -d "$as_dir" || eval $as_mkdir_p || {
16402 as_dirs=
16403 while :; do
16404 case $as_dir in #(
16405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16406 *) as_qdir=$as_dir;;
16407 esac
16408 as_dirs="'$as_qdir' $as_dirs"
16409 as_dir=`$as_dirname -- "$as_dir" ||
16410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16411 X"$as_dir" : 'X\(//\)[^/]' \| \
16412 X"$as_dir" : 'X\(//\)$' \| \
16413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16414 $as_echo X"$as_dir" |
16415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16416 s//\1/
16419 /^X\(\/\/\)[^/].*/{
16420 s//\1/
16423 /^X\(\/\/\)$/{
16424 s//\1/
16427 /^X\(\/\).*/{
16428 s//\1/
16431 s/.*/./; q'`
16432 test -d "$as_dir" && break
16433 done
16434 test -z "$as_dirs" || eval "mkdir $as_dirs"
16435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16438 } # as_fn_mkdir_p
16439 if mkdir -p . 2>/dev/null; then
16440 as_mkdir_p='mkdir -p "$as_dir"'
16441 else
16442 test -d ./-p && rmdir ./-p
16443 as_mkdir_p=false
16447 # as_fn_executable_p FILE
16448 # -----------------------
16449 # Test if FILE is an executable regular file.
16450 as_fn_executable_p ()
16452 test -f "$1" && test -x "$1"
16453 } # as_fn_executable_p
16454 as_test_x='test -x'
16455 as_executable_p=as_fn_executable_p
16457 # Sed expression to map a string onto a valid CPP name.
16458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16460 # Sed expression to map a string onto a valid variable name.
16461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16464 exec 6>&1
16465 ## ----------------------------------- ##
16466 ## Main body of $CONFIG_STATUS script. ##
16467 ## ----------------------------------- ##
16468 _ASEOF
16469 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16472 # Save the log message, to keep $0 and so on meaningful, and to
16473 # report actual input values of CONFIG_FILES etc. instead of their
16474 # values after options handling.
16475 ac_log="
16476 This file was extended by $as_me, which was
16477 generated by GNU Autoconf 2.69. Invocation command line was
16479 CONFIG_FILES = $CONFIG_FILES
16480 CONFIG_HEADERS = $CONFIG_HEADERS
16481 CONFIG_LINKS = $CONFIG_LINKS
16482 CONFIG_COMMANDS = $CONFIG_COMMANDS
16483 $ $0 $@
16485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16488 _ACEOF
16490 case $ac_config_files in *"
16491 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16492 esac
16494 case $ac_config_headers in *"
16495 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16496 esac
16499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16500 # Files that config.status was made for.
16501 config_files="$ac_config_files"
16502 config_headers="$ac_config_headers"
16503 config_commands="$ac_config_commands"
16505 _ACEOF
16507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508 ac_cs_usage="\
16509 \`$as_me' instantiates files and other configuration actions
16510 from templates according to the current configuration. Unless the files
16511 and actions are specified as TAGs, all are instantiated by default.
16513 Usage: $0 [OPTION]... [TAG]...
16515 -h, --help print this help, then exit
16516 -V, --version print version number and configuration settings, then exit
16517 --config print configuration, then exit
16518 -q, --quiet, --silent
16519 do not print progress messages
16520 -d, --debug don't remove temporary files
16521 --recheck update $as_me by reconfiguring in the same conditions
16522 --file=FILE[:TEMPLATE]
16523 instantiate the configuration file FILE
16524 --header=FILE[:TEMPLATE]
16525 instantiate the configuration header FILE
16527 Configuration files:
16528 $config_files
16530 Configuration headers:
16531 $config_headers
16533 Configuration commands:
16534 $config_commands
16536 Report bugs to the package provider."
16538 _ACEOF
16539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16540 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16541 ac_cs_version="\\
16542 config.status
16543 configured by $0, generated by GNU Autoconf 2.69,
16544 with options \\"\$ac_cs_config\\"
16546 Copyright (C) 2012 Free Software Foundation, Inc.
16547 This config.status script is free software; the Free Software Foundation
16548 gives unlimited permission to copy, distribute and modify it."
16550 ac_pwd='$ac_pwd'
16551 srcdir='$srcdir'
16552 test -n "\$AWK" || AWK=awk
16553 _ACEOF
16555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16556 # The default lists apply if the user does not specify any file.
16557 ac_need_defaults=:
16558 while test $# != 0
16560 case $1 in
16561 --*=?*)
16562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16564 ac_shift=:
16566 --*=)
16567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16568 ac_optarg=
16569 ac_shift=:
16572 ac_option=$1
16573 ac_optarg=$2
16574 ac_shift=shift
16576 esac
16578 case $ac_option in
16579 # Handling of the options.
16580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16581 ac_cs_recheck=: ;;
16582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16583 $as_echo "$ac_cs_version"; exit ;;
16584 --config | --confi | --conf | --con | --co | --c )
16585 $as_echo "$ac_cs_config"; exit ;;
16586 --debug | --debu | --deb | --de | --d | -d )
16587 debug=: ;;
16588 --file | --fil | --fi | --f )
16589 $ac_shift
16590 case $ac_optarg in
16591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16592 '') as_fn_error $? "missing file argument" ;;
16593 esac
16594 as_fn_append CONFIG_FILES " '$ac_optarg'"
16595 ac_need_defaults=false;;
16596 --header | --heade | --head | --hea )
16597 $ac_shift
16598 case $ac_optarg in
16599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16600 esac
16601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16602 ac_need_defaults=false;;
16603 --he | --h)
16604 # Conflict between --help and --header
16605 as_fn_error $? "ambiguous option: \`$1'
16606 Try \`$0 --help' for more information.";;
16607 --help | --hel | -h )
16608 $as_echo "$ac_cs_usage"; exit ;;
16609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16611 ac_cs_silent=: ;;
16613 # This is an error.
16614 -*) as_fn_error $? "unrecognized option: \`$1'
16615 Try \`$0 --help' for more information." ;;
16617 *) as_fn_append ac_config_targets " $1"
16618 ac_need_defaults=false ;;
16620 esac
16621 shift
16622 done
16624 ac_configure_extra_args=
16626 if $ac_cs_silent; then
16627 exec 6>/dev/null
16628 ac_configure_extra_args="$ac_configure_extra_args --silent"
16631 _ACEOF
16632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16633 if \$ac_cs_recheck; then
16634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16635 shift
16636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16637 CONFIG_SHELL='$SHELL'
16638 export CONFIG_SHELL
16639 exec "\$@"
16642 _ACEOF
16643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16644 exec 5>>config.log
16646 echo
16647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16648 ## Running $as_me. ##
16649 _ASBOX
16650 $as_echo "$ac_log"
16651 } >&5
16653 _ACEOF
16654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16656 # INIT-COMMANDS
16659 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16660 aros_tools_dir=${aros_tools_dir}
16664 aros_host_exe_suffix=${aros_host_exe_suffix}
16665 aros_tools_dir=${aros_tools_dir}
16666 aros_target_cpu=${aros_target_cpu}
16667 aros_target_arch=${aros_target_arch}
16668 aros_target_suffix=${aros_target_suffix}
16669 orig_target_nm=${orig_target_nm}
16670 orig_target_as=${orig_target_as}
16671 orig_target_ar=${orig_target_ar}
16672 orig_target_ranlib=${orig_target_ranlib}
16673 orig_target_objdump=${orig_target_objdump}
16674 orig_target_objcopy=${orig_target_objcopy}
16675 orig_target_strip=${orig_target_strip}
16676 aros_kernel_ld=${aros_kernel_ld}
16680 aros_host_exe_suffix=${aros_host_exe_suffix}
16681 aros_tools_dir=${aros_tools_dir}
16682 aros_target_cpu=${aros_target_cpu}
16683 aros_target_arch=${aros_target_arch}
16684 aros_target_suffix=${aros_target_suffix}
16685 aros_kernel_ld=${aros_kernel_ld}
16689 aros_host_exe_suffix=${aros_host_exe_suffix}
16690 aros_tools_dir=${aros_tools_dir}
16691 aros_target_cpu=${aros_target_cpu}
16692 aros_target_arch=${aros_target_arch}
16693 aros_target_suffix=${aros_target_suffix}
16697 _ACEOF
16699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701 # Handling of arguments.
16702 for ac_config_target in $ac_config_targets
16704 case $ac_config_target in
16705 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16706 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16708 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16709 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16710 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16711 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16712 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16713 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16714 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16715 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16716 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16717 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16718 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16719 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16720 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16721 "${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" ;;
16722 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16723 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16724 "${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" ;;
16725 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16726 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16727 "${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" ;;
16728 "${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" ;;
16729 "${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" ;;
16730 "${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" ;;
16731 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16733 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16734 esac
16735 done
16738 # If the user did not use the arguments to specify the items to instantiate,
16739 # then the envvar interface is used. Set only those that are not.
16740 # We use the long form for the default assignment because of an extremely
16741 # bizarre bug on SunOS 4.1.3.
16742 if $ac_need_defaults; then
16743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16748 # Have a temporary directory for convenience. Make it in the build tree
16749 # simply because there is no reason against having it here, and in addition,
16750 # creating and moving files from /tmp can sometimes cause problems.
16751 # Hook for its removal unless debugging.
16752 # Note that there is a small window in which the directory will not be cleaned:
16753 # after its creation but before its name has been assigned to `$tmp'.
16754 $debug ||
16756 tmp= ac_tmp=
16757 trap 'exit_status=$?
16758 : "${ac_tmp:=$tmp}"
16759 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16761 trap 'as_fn_exit 1' 1 2 13 15
16763 # Create a (secure) tmp directory for tmp files.
16766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16767 test -d "$tmp"
16768 } ||
16770 tmp=./conf$$-$RANDOM
16771 (umask 077 && mkdir "$tmp")
16772 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16773 ac_tmp=$tmp
16775 # Set up the scripts for CONFIG_FILES section.
16776 # No need to generate them if there are no CONFIG_FILES.
16777 # This happens for instance with `./config.status config.h'.
16778 if test -n "$CONFIG_FILES"; then
16781 ac_cr=`echo X | tr X '\015'`
16782 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16783 # But we know of no other shell where ac_cr would be empty at this
16784 # point, so we can use a bashism as a fallback.
16785 if test "x$ac_cr" = x; then
16786 eval ac_cr=\$\'\\r\'
16788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16790 ac_cs_awk_cr='\\r'
16791 else
16792 ac_cs_awk_cr=$ac_cr
16795 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16796 _ACEOF
16800 echo "cat >conf$$subs.awk <<_ACEOF" &&
16801 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16802 echo "_ACEOF"
16803 } >conf$$subs.sh ||
16804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16806 ac_delim='%!_!# '
16807 for ac_last_try in false false false false false :; do
16808 . ./conf$$subs.sh ||
16809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16811 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16812 if test $ac_delim_n = $ac_delim_num; then
16813 break
16814 elif $ac_last_try; then
16815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16816 else
16817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16819 done
16820 rm -f conf$$subs.sh
16822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16824 _ACEOF
16825 sed -n '
16827 s/^/S["/; s/!.*/"]=/
16830 s/^[^!]*!//
16831 :repl
16832 t repl
16833 s/'"$ac_delim"'$//
16834 t delim
16837 s/\(.\{148\}\)..*/\1/
16838 t more1
16839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16842 b repl
16843 :more1
16844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16847 s/.\{148\}//
16848 t nl
16849 :delim
16851 s/\(.\{148\}\)..*/\1/
16852 t more2
16853 s/["\\]/\\&/g; s/^/"/; s/$/"/
16856 :more2
16857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16860 s/.\{148\}//
16861 t delim
16862 ' <conf$$subs.awk | sed '
16863 /^[^""]/{
16865 s/\n//
16867 ' >>$CONFIG_STATUS || ac_write_fail=1
16868 rm -f conf$$subs.awk
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 _ACAWK
16871 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16872 for (key in S) S_is_set[key] = 1
16873 FS = "\a"
16877 line = $ 0
16878 nfields = split(line, field, "@")
16879 substed = 0
16880 len = length(field[1])
16881 for (i = 2; i < nfields; i++) {
16882 key = field[i]
16883 keylen = length(key)
16884 if (S_is_set[key]) {
16885 value = S[key]
16886 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16887 len += length(value) + length(field[++i])
16888 substed = 1
16889 } else
16890 len += 1 + keylen
16893 print line
16896 _ACAWK
16897 _ACEOF
16898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16900 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16901 else
16903 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16904 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16905 _ACEOF
16907 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16908 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16909 # trailing colons and then remove the whole line if VPATH becomes empty
16910 # (actually we leave an empty line to preserve line numbers).
16911 if test "x$srcdir" = x.; then
16912 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16914 s///
16915 s/^/:/
16916 s/[ ]*$/:/
16917 s/:\$(srcdir):/:/g
16918 s/:\${srcdir}:/:/g
16919 s/:@srcdir@:/:/g
16920 s/^:*//
16921 s/:*$//
16923 s/\(=[ ]*\).*/\1/
16925 s/\n//
16926 s/^[^=]*=[ ]*$//
16930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931 fi # test -n "$CONFIG_FILES"
16933 # Set up the scripts for CONFIG_HEADERS section.
16934 # No need to generate them if there are no CONFIG_HEADERS.
16935 # This happens for instance with `./config.status Makefile'.
16936 if test -n "$CONFIG_HEADERS"; then
16937 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16938 BEGIN {
16939 _ACEOF
16941 # Transform confdefs.h into an awk script `defines.awk', embedded as
16942 # here-document in config.status, that substitutes the proper values into
16943 # config.h.in to produce config.h.
16945 # Create a delimiter string that does not exist in confdefs.h, to ease
16946 # handling of long lines.
16947 ac_delim='%!_!# '
16948 for ac_last_try in false false :; do
16949 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16950 if test -z "$ac_tt"; then
16951 break
16952 elif $ac_last_try; then
16953 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16954 else
16955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16957 done
16959 # For the awk script, D is an array of macro values keyed by name,
16960 # likewise P contains macro parameters if any. Preserve backslash
16961 # newline sequences.
16963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16964 sed -n '
16965 s/.\{148\}/&'"$ac_delim"'/g
16966 t rset
16967 :rset
16968 s/^[ ]*#[ ]*define[ ][ ]*/ /
16969 t def
16971 :def
16972 s/\\$//
16973 t bsnl
16974 s/["\\]/\\&/g
16975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16976 D["\1"]=" \3"/p
16977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16979 :bsnl
16980 s/["\\]/\\&/g
16981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16982 D["\1"]=" \3\\\\\\n"\\/p
16983 t cont
16984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16985 t cont
16987 :cont
16989 s/.\{148\}/&'"$ac_delim"'/g
16990 t clear
16991 :clear
16992 s/\\$//
16993 t bsnlc
16994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16996 :bsnlc
16997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16998 b cont
16999 ' <confdefs.h | sed '
17000 s/'"$ac_delim"'/"\\\
17001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17004 for (key in D) D_is_set[key] = 1
17005 FS = "\a"
17007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17008 line = \$ 0
17009 split(line, arg, " ")
17010 if (arg[1] == "#") {
17011 defundef = arg[2]
17012 mac1 = arg[3]
17013 } else {
17014 defundef = substr(arg[1], 2)
17015 mac1 = arg[2]
17017 split(mac1, mac2, "(") #)
17018 macro = mac2[1]
17019 prefix = substr(line, 1, index(line, defundef) - 1)
17020 if (D_is_set[macro]) {
17021 # Preserve the white space surrounding the "#".
17022 print prefix "define", macro P[macro] D[macro]
17023 next
17024 } else {
17025 # Replace #undef with comments. This is necessary, for example,
17026 # in the case of _POSIX_SOURCE, which is predefined and required
17027 # on some systems where configure will not decide to define it.
17028 if (defundef == "undef") {
17029 print "/*", prefix defundef, macro, "*/"
17030 next
17034 { print }
17035 _ACAWK
17036 _ACEOF
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17039 fi # test -n "$CONFIG_HEADERS"
17042 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17043 shift
17044 for ac_tag
17046 case $ac_tag in
17047 :[FHLC]) ac_mode=$ac_tag; continue;;
17048 esac
17049 case $ac_mode$ac_tag in
17050 :[FHL]*:*);;
17051 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17052 :[FH]-) ac_tag=-:-;;
17053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17054 esac
17055 ac_save_IFS=$IFS
17056 IFS=:
17057 set x $ac_tag
17058 IFS=$ac_save_IFS
17059 shift
17060 ac_file=$1
17061 shift
17063 case $ac_mode in
17064 :L) ac_source=$1;;
17065 :[FH])
17066 ac_file_inputs=
17067 for ac_f
17069 case $ac_f in
17070 -) ac_f="$ac_tmp/stdin";;
17071 *) # Look for the file first in the build tree, then in the source tree
17072 # (if the path is not absolute). The absolute path cannot be DOS-style,
17073 # because $ac_f cannot contain `:'.
17074 test -f "$ac_f" ||
17075 case $ac_f in
17076 [\\/$]*) false;;
17077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17078 esac ||
17079 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17080 esac
17081 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17082 as_fn_append ac_file_inputs " '$ac_f'"
17083 done
17085 # Let's still pretend it is `configure' which instantiates (i.e., don't
17086 # use $as_me), people would be surprised to read:
17087 # /* config.h. Generated by config.status. */
17088 configure_input='Generated from '`
17089 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17090 `' by configure.'
17091 if test x"$ac_file" != x-; then
17092 configure_input="$ac_file. $configure_input"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17094 $as_echo "$as_me: creating $ac_file" >&6;}
17096 # Neutralize special characters interpreted by sed in replacement strings.
17097 case $configure_input in #(
17098 *\&* | *\|* | *\\* )
17099 ac_sed_conf_input=`$as_echo "$configure_input" |
17100 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17101 *) ac_sed_conf_input=$configure_input;;
17102 esac
17104 case $ac_tag in
17105 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17107 esac
17109 esac
17111 ac_dir=`$as_dirname -- "$ac_file" ||
17112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17113 X"$ac_file" : 'X\(//\)[^/]' \| \
17114 X"$ac_file" : 'X\(//\)$' \| \
17115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17116 $as_echo X"$ac_file" |
17117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17118 s//\1/
17121 /^X\(\/\/\)[^/].*/{
17122 s//\1/
17125 /^X\(\/\/\)$/{
17126 s//\1/
17129 /^X\(\/\).*/{
17130 s//\1/
17133 s/.*/./; q'`
17134 as_dir="$ac_dir"; as_fn_mkdir_p
17135 ac_builddir=.
17137 case "$ac_dir" in
17138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17141 # A ".." for each directory in $ac_dir_suffix.
17142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17143 case $ac_top_builddir_sub in
17144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17146 esac ;;
17147 esac
17148 ac_abs_top_builddir=$ac_pwd
17149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17150 # for backward compatibility:
17151 ac_top_builddir=$ac_top_build_prefix
17153 case $srcdir in
17154 .) # We are building in place.
17155 ac_srcdir=.
17156 ac_top_srcdir=$ac_top_builddir_sub
17157 ac_abs_top_srcdir=$ac_pwd ;;
17158 [\\/]* | ?:[\\/]* ) # Absolute name.
17159 ac_srcdir=$srcdir$ac_dir_suffix;
17160 ac_top_srcdir=$srcdir
17161 ac_abs_top_srcdir=$srcdir ;;
17162 *) # Relative name.
17163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17164 ac_top_srcdir=$ac_top_build_prefix$srcdir
17165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17166 esac
17167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17170 case $ac_mode in
17173 # CONFIG_FILE
17176 _ACEOF
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179 # If the template does not know about datarootdir, expand it.
17180 # FIXME: This hack should be removed a few years after 2.60.
17181 ac_datarootdir_hack=; ac_datarootdir_seen=
17182 ac_sed_dataroot='
17183 /datarootdir/ {
17187 /@datadir@/p
17188 /@docdir@/p
17189 /@infodir@/p
17190 /@localedir@/p
17191 /@mandir@/p'
17192 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17193 *datarootdir*) ac_datarootdir_seen=yes;;
17194 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17196 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17197 _ACEOF
17198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17199 ac_datarootdir_hack='
17200 s&@datadir@&$datadir&g
17201 s&@docdir@&$docdir&g
17202 s&@infodir@&$infodir&g
17203 s&@localedir@&$localedir&g
17204 s&@mandir@&$mandir&g
17205 s&\\\${datarootdir}&$datarootdir&g' ;;
17206 esac
17207 _ACEOF
17209 # Neutralize VPATH when `$srcdir' = `.'.
17210 # Shell code in configure.ac might set extrasub.
17211 # FIXME: do we really want to maintain this feature?
17212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17213 ac_sed_extra="$ac_vpsub
17214 $extrasub
17215 _ACEOF
17216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17219 s|@configure_input@|$ac_sed_conf_input|;t t
17220 s&@top_builddir@&$ac_top_builddir_sub&;t t
17221 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17222 s&@srcdir@&$ac_srcdir&;t t
17223 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17224 s&@top_srcdir@&$ac_top_srcdir&;t t
17225 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17226 s&@builddir@&$ac_builddir&;t t
17227 s&@abs_builddir@&$ac_abs_builddir&;t t
17228 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17229 $ac_datarootdir_hack
17231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17232 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17235 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17236 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17237 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17239 which seems to be undefined. Please make sure it is defined" >&5
17240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17241 which seems to be undefined. Please make sure it is defined" >&2;}
17243 rm -f "$ac_tmp/stdin"
17244 case $ac_file in
17245 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17246 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17247 esac \
17248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17252 # CONFIG_HEADER
17254 if test x"$ac_file" != x-; then
17256 $as_echo "/* $configure_input */" \
17257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17258 } >"$ac_tmp/config.h" \
17259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17260 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17263 else
17264 rm -f "$ac_file"
17265 mv "$ac_tmp/config.h" "$ac_file" \
17266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17268 else
17269 $as_echo "/* $configure_input */" \
17270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17271 || as_fn_error $? "could not create -" "$LINENO" 5
17275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17276 $as_echo "$as_me: executing $ac_file commands" >&6;}
17278 esac
17281 case $ac_file$ac_mode in
17282 "genmf-executable-support":C)
17283 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17284 chmod a+x ${aros_tools_dir}/genmf.py
17286 "binutils-support":C)
17287 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17288 mkdir -p $prefix
17289 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17291 chmod a+x ${prefix2}-ld
17293 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17294 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17295 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17296 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17297 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17298 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17299 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17301 "elf-compiler-support":C)
17302 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17303 mkdir -p $prefix
17304 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17306 chmod a+x ${prefix2}-gcc
17308 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17310 "host-compiler-wrapper-support":C)
17311 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17312 mkdir -p $prefix
17313 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17315 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17318 esac
17319 done # for ac_tag
17322 as_fn_exit 0
17323 _ACEOF
17324 ac_clean_files=$ac_clean_files_save
17326 test $ac_write_fail = 0 ||
17327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17330 # configure is writing to config.log, and then calls config.status.
17331 # config.status does its own redirection, appending to config.log.
17332 # Unfortunately, on DOS this fails, as config.log is still kept open
17333 # by configure, so config.status won't be able to write to it; its
17334 # output is simply discarded. So we exec the FD to /dev/null,
17335 # effectively closing config.log, so it can be properly (re)opened and
17336 # appended to by config.status. When coming back to configure, we
17337 # need to make the FD available again.
17338 if test "$no_create" != yes; then
17339 ac_cs_success=:
17340 ac_config_status_args=
17341 test "$silent" = yes &&
17342 ac_config_status_args="$ac_config_status_args --quiet"
17343 exec 5>/dev/null
17344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17345 exec 5>>config.log
17346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17347 # would make configure fail if this is the last instruction.
17348 $ac_cs_success || as_fn_exit 1
17350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17357 #XXX compatability...
17358 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17360 if test -n "$aros_shared_cflags" ; then
17361 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17362 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg