dont forget to export the values ...
[AROS.git] / configure
blob541a8502be63cda5463ebc4fe870cf13f9526615
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_plain_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_plain_ar+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 case $aros_host_plain_ar in
5155 [\\/]* | ?:[\\/]*)
5156 ac_cv_path_aros_host_plain_ar="$aros_host_plain_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_plain_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_plain_ar" && ac_cv_path_aros_host_plain_ar="$aros_host_cmd_ar "
5176 esac
5178 aros_host_plain_ar=$ac_cv_path_aros_host_plain_ar
5179 if test -n "$aros_host_plain_ar"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_plain_ar" >&5
5181 $as_echo "$aros_host_plain_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_plain_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
7911 toolchain_def_opt_lvl="-O2"
7912 toolchain_debug_opt_lvl="-O0"
7913 toolchain_size_opt_lvl="-Os"
7915 *gnu*)
7916 toolchain_c_compiler="gcc"
7917 toolchain_cxx_compiler="g++"
7918 toolchain_cpp_preprocessor="gcc"
7919 toolchain_cpp_opts=" -E"
7920 toolchain_as="as"
7921 aros_ld="ld"
7922 if test "$aros_config_lto" != "yes"; then
7923 toolchain_ld="ld"
7924 toolchain_ar="ar"
7925 toolchain_ranlib="ranlib"
7926 toolchain_nm="nm"
7927 else
7928 toolchain_ld="ld.bfd"
7929 toolchain_ar="gcc-ar"
7930 toolchain_ranlib="gcc-ranlib"
7931 toolchain_nm="gcc-nm"
7933 toolchain_strip="strip"
7934 toolchain_objcopy="objcopy"
7935 toolchain_objdump="objdump"
7936 use_libatomic=yes
7937 toolchain_def_opt_lvl="-O2"
7938 toolchain_debug_opt_lvl="-O0"
7939 toolchain_size_opt_lvl="-Os"
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7943 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7944 toolchain_c_compiler="cc"
7945 toolchain_cxx_compiler="c++"
7946 toolchain_cpp_preprocessor="cpp"
7947 toolchain_cpp_opts=
7948 toolchain_ld="ld"
7949 aros_ld="ld"
7950 toolchain_as="as"
7951 toolchain_ar="ar"
7952 toolchain_ranlib="ranlib"
7953 toolchain_nm="nm"
7954 toolchain_strip="strip"
7955 toolchain_objcopy="objcopy"
7956 toolchain_objdump="objdump"
7958 esac
7960 #-----------------------------------------------------------------------------
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7963 $as_echo_n "checking which type of build to do... " >&6; }
7964 # Check whether --enable-build_type was given.
7965 if test "${enable_build_type+set}" = set; then :
7966 enableval=$enable_build_type; build_type=$enableval
7967 else
7968 build_type="personal"
7972 if test "$build_type" = "nightly"; then
7973 build_type_string="NIGHTLY"
7974 elif test "$build_type" = "snapshot"; then
7975 build_type_string="SNAPSHOT"
7976 elif test "$build_type" = "milestone"; then
7977 build_type_string="MILESTONE"
7978 elif test "$build_type" = "release"; then
7979 build_type_string="RELEASE"
7980 else
7981 build_type_string="PERSONAL"
7982 build_type="personal"
7985 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7988 $as_echo "$build_type" >&6; }
7990 #-----------------------------------------------------------------------------
7991 all_debug_types="messages stack modules mungwall symbols"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7994 $as_echo_n "checking which debug types to enable... " >&6; }
7995 # Check whether --enable-debug was given.
7996 if test "${enable_debug+set}" = set; then :
7997 enableval=$enable_debug; debug="$enableval"
7998 else
7999 debug=""
8003 if test "$debug" = "" -o "$debug" = "no"; then
8004 debug="none"
8005 elif test "$debug" = "yes"; then
8006 debug="all"
8009 if test "$debug" = "all" ; then
8010 debug="messages stack modules symbols"
8011 for d in $all_debug_types; do
8012 export aros_${d}_debug="1"
8013 done
8014 else
8015 for d in $all_debug_types; do
8016 export aros_${d}_debug="0"
8017 done
8020 if test "$debug" != "none"; then
8021 debug=`echo $debug | sed s/,/\ /g`
8022 for d in $debug; do
8023 found="0"
8024 for d2 in $all_debug_types; do
8025 if test "$d2" = "$d"; then
8026 found="1"
8027 break
8029 done
8030 if test "$found" = "0"; then
8031 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
8033 export aros_${d}_debug="1"
8034 done
8035 aros_debug="yes"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
8038 $as_echo "$debug" >&6; }
8040 if test "$aros_messages_debug" = "1"; then
8041 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8042 else
8043 aros_messages_debug=""
8045 if test "$aros_symbols_debug" = "1"; then
8046 aros_symbols_debug="-g"
8047 else
8048 aros_symbols_debug=""
8051 # These are the flags to pass when compiling debugged programs
8052 aros_debug_cppflags="$aros_messages_debug"
8053 aros_debug_cflags="$aros_symbols_debug"
8054 aros_debug_cxxflags=
8055 aros_debug_aflags=""
8056 aros_debug_ldflags="$aros_symbols_debug"
8058 #-----------------------------------------------------------------------------
8059 # Checking for distcc and ccache.
8061 # Always apply the transforms in this particular order. Basically you should
8062 # always run 'ccache distcc compiler' in that order for the best performance.
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
8065 $as_echo_n "checking whether to enable distcc... " >&6; }
8066 # Check whether --enable-distcc was given.
8067 if test "${enable_distcc+set}" = set; then :
8068 enableval=$enable_distcc; distcc="$enableval"
8069 else
8070 distcc="no"
8073 if test "$distcc" != "" -a "$distcc" != "no"; then
8074 # AC_CHECK_PROG will print out the result in this case
8075 # Extract the first word of "distcc", so it can be a program name with args.
8076 set dummy distcc; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_path_DISTCC+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 case $DISTCC in
8083 [\\/]* | ?:[\\/]*)
8084 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8098 done
8099 done
8100 IFS=$as_save_IFS
8102 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8104 esac
8106 DISTCC=$ac_cv_path_DISTCC
8107 if test -n "$DISTCC"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
8109 $as_echo "$DISTCC" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
8122 $as_echo_n "checking whether to enable ccache... " >&6; }
8123 # Check whether --enable-ccache was given.
8124 if test "${enable_ccache+set}" = set; then :
8125 enableval=$enable_ccache; ccache="$enableval"
8126 else
8127 ccache="no"
8130 if test "$ccache" != "" -a "$ccache" != "no"; then
8131 # AC_CHECK_PROG will print out the result in this case
8132 # Extract the first word of "ccache", so it can be a program name with args.
8133 set dummy ccache; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_CCACHE+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$CCACHE"; then
8140 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_CCACHE="ccache"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8159 CCACHE=$ac_cv_prog_CCACHE
8160 if test -n "$CCACHE"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
8162 $as_echo "$CCACHE" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8174 #-----------------------------------------------------------------------------
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
8176 $as_echo_n "checking what specific host gcc version to use... " >&6; }
8178 # Check whether --with-kernel-gcc-version was given.
8179 if test "${with_kernel_gcc_version+set}" = set; then :
8180 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
8181 else
8182 kernel_tool_version=""
8185 if test "$kernel_tool_version" != "" ; then
8186 msg_result=$kernel_tool_version
8187 else
8188 msg_result="default"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8191 $as_echo "$msg_result" >&6; }
8193 #-----------------------------------------------------------------------------
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
8195 $as_echo_n "checking what optimization flags to use... " >&6; }
8197 # Check whether --with-optimization was given.
8198 if test "${with_optimization+set}" = set; then :
8199 withval=$with_optimization; optimization_level="$withval"
8200 else
8201 optimization_level="unknown"
8204 if test "$optimization_level" = "unknown"; then
8205 optimization="default"
8206 if test "$debug" != "none"; then
8207 optimization_level=$toolchain_debug_opt_lvl
8208 else
8209 optimization_level=$toolchain_def_opt_lvl
8211 else
8212 optimization="$optimization_level"
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
8215 $as_echo "$optimization" >&6; }
8217 paranoia_default=yes
8218 #-----------------------------------------------------------------------------
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
8220 $as_echo_n "checking which paranoia flags to use... " >&6; }
8222 # Check whether --with-paranoia was given.
8223 if test "${with_paranoia+set}" = set; then :
8224 withval=$with_paranoia; paranoia_flags="$withval"
8225 else
8226 paranoia_flags="$paranoia_default"
8229 if test "$paranoia_flags" = "no"; then
8230 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
8231 msg_result="none"
8232 else
8233 if test "$paranoia_flags" = "yes"; then
8234 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
8236 msg_result="$paranoia_flags"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
8239 $as_echo "$msg_result" >&6; }
8240 aros_warn_flags="$aros_warn_flags $paranoia_flags"
8242 #-----------------------------------------------------------------------------
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
8244 $as_echo_n "checking what target variant to enable... " >&6; }
8245 # Check whether --enable-target_variant was given.
8246 if test "${enable_target_variant+set}" = set; then :
8247 enableval=$enable_target_variant; target_variant=$enableval
8248 else
8249 target_variant=""
8252 if test "$target_variant" = ""; then
8253 aros_target_variant=""
8254 aros_target_suffix=""
8255 enableval="none"
8256 else
8257 aros_target_variant="$target_variant"
8258 aros_target_suffix="-$target_variant"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8261 $as_echo "$enableval" >&6; }
8263 #-----------------------------------------------------------------------------
8264 # Target-specific defaults. You can override then on a per-target basis.
8266 # Bootloader name. Currently used by PC target.
8267 target_bootloader="none"
8268 PLATFORM_EXECSMP=
8269 ENABLE_EXECSMP=
8271 #-----------------------------------------------------------------------------
8272 # Additional options for some specific targets
8274 case "$aros_target_variant" in
8275 ios)
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8277 $as_echo_n "checking XCode path... " >&6; }
8279 # Check whether --with-xcode was given.
8280 if test "${with_xcode+set}" = set; then :
8281 withval=$with_xcode; aros_xcode_path="$withval"
8282 else
8283 aros_xcode_path="/Developer"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8287 $as_echo "$aros_xcode_path" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8290 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8292 # Check whether --with-sdk-version was given.
8293 if test "${with_sdk_version+set}" = set; then :
8294 withval=$with_sdk_version; aros_sdk_version="$withval"
8295 else
8296 aros_sdk_version="4.1"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8300 $as_echo "$aros_sdk_version" >&6; }
8304 "android")
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8306 $as_echo_n "checking Android SDK path... " >&6; }
8308 # Check whether --with-sdk was given.
8309 if test "${with_sdk+set}" = set; then :
8310 withval=$with_sdk; aros_android_sdk="$withval"
8311 else
8312 aros_android_sdk=$default_android_sdk
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8316 $as_echo "$aros_android_sdk" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8319 $as_echo_n "checking Android NDK path... " >&6; }
8321 # Check whether --with-ndk was given.
8322 if test "${with_ndk+set}" = set; then :
8323 withval=$with_ndk; aros_android_ndk="$withval"
8324 else
8325 aros_android_ndk="none"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8329 $as_echo "$aros_android_ndk" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8332 $as_echo_n "checking what Android SDK version to use... " >&6; }
8334 # Check whether --with-sdk-version was given.
8335 if test "${with_sdk_version+set}" = set; then :
8336 withval=$with_sdk_version; aros_sdk_version="$withval"
8337 else
8338 aros_sdk_version="12"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8342 $as_echo "$aros_sdk_version" >&6; }
8344 aros_android_level=android-$aros_sdk_version
8345 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8346 echo "Platform $aros_android_level is not installed in your SDK"
8347 echo "Use --with-sdk-version=<API level number> to select another platform version"
8348 echo "You can check what plaform versions are installed in your SDK"
8349 echo "by examining contents of $aros_android_sdk/platforms directory"
8350 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8353 export PATH="$aros_android_sdk/tools:$PATH"
8354 # Extract the first word of "$android_tool", so it can be a program name with args.
8355 set dummy $android_tool; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_path_android_tool+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 case $android_tool in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8379 IFS=$as_save_IFS
8382 esac
8384 android_tool=$ac_cv_path_android_tool
8385 if test -n "$android_tool"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8387 $as_echo "$android_tool" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 req_avail=yes
8395 if test "$android_tool" = ""; then
8396 req_avail=no
8398 if test "$android_tool" = "no"; then
8399 req_avail=no
8401 if test "$req_avail" = "no"; then
8402 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8405 if test "$aros_android_ndk" != "none"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8407 $as_echo_n "checking what Android NDK version to use... " >&6; }
8409 # Check whether --with-ndk-version was given.
8410 if test "${with_ndk_version+set}" = set; then :
8411 withval=$with_ndk_version; aros_ndk_version="$withval"
8412 else
8413 aros_ndk_version="9"
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8417 $as_echo "$aros_ndk_version" >&6; }
8420 # Extract the first word of "ant", so it can be a program name with args.
8421 set dummy ant; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_path_ant+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 case $ant in
8428 [\\/]* | ?:[\\/]*)
8429 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8448 esac
8450 ant=$ac_cv_path_ant
8451 if test -n "$ant"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8453 $as_echo "$ant" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8460 if test "$ant" = ""; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8462 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8466 $as_echo_n "checking Build debug or release apk... " >&6; }
8468 # Check whether --with-apk-version was given.
8469 if test "${with_apk_version+set}" = set; then :
8470 withval=$with_apk_version; aros_android_antapk=$withval
8471 else
8472 aros_android_antapk=release
8475 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8476 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8479 $as_echo "$aros_android_antapk" >&6; }
8481 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8482 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8483 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8485 if test "$host_os" = "mingw32"; then
8486 android_tool="cmd //c $android_tool"
8489 need_dlopen="no"
8492 esac
8494 #-----------------------------------------------------------------------------
8495 # External toolchains
8496 kernel_tool_prefix="none"
8497 aros_tool_prefix="none"
8498 elf_tool_prefix="${target_cpu}-elf-"
8500 # Base target cpu ISA configuration switch.
8501 case "$target_cpu" in
8502 *aarch64*)
8504 *arm*)
8506 *m68k*)
8507 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8508 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8509 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8510 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8511 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8512 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8513 m68k_020_ext="ISA_MC68020_EXT :=020"
8514 m68k_030_ext="ISA_MC68030_EXT :=030"
8515 m68k_040_ext="ISA_MC68040_EXT :=040"
8516 m68k_060_ext="ISA_MC68060_EXT :=060"
8517 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8518 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8519 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8520 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8521 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8522 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8523 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8524 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8525 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8526 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8527 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8528 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8530 *x86_64* | *i?86*)
8531 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8532 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8534 *powerpc*)
8536 esac
8538 # This is the target configuration switch.
8539 case "$target_os" in
8540 linux*)
8541 HOST_WANTS_X11=yes
8542 HOST_WANTS_GLX=yes
8543 HOST_WANTS_SDL=yes
8544 HOST_WANTS_DBUS=yes
8545 HOST_WANTS_DLOPEN=yes
8546 aros_target_arch="linux"
8547 aros_target_family="unix"
8548 case "$target_cpu" in
8549 *m68k*)
8550 aros_target_cpu="m68k"
8551 aros_object_format="m68kelf"
8552 aros_flavour="emulcompat"
8553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8554 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8555 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8556 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8557 gcc_target_cpu="mc68000"
8559 *i?86*)
8560 aros_target_cpu="i386"
8561 aros_object_format="elf_i386"
8562 aros_flavour="emulation"
8563 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8564 aros_isa_flags="$""(ISA_X86_FLAGS)"
8565 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8566 aros_kernel_ldflags="-Wl,-melf_i386"
8567 aros_nominal_depth=8
8568 gcc_target_cpu="i386"
8569 pci_hidd_target="hidd-pci-linux"
8570 android_tool_dir_prefix="x86"
8571 android_tool_prefix="i686-android-linux"
8572 android_ndk_arch="x86"
8574 *x86_64*)
8575 aros_target_cpu="x86_64"
8576 aros_object_format="elf_x86_64"
8577 aros_flavour="emulation"
8578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8579 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8580 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8581 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8582 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8583 aros_nominal_depth=8
8584 pci_hidd_target="hidd-pci-linux"
8586 *powerpc*)
8587 aros_target_cpu="ppc"
8588 aros_object_format="elf32ppc"
8589 aros_flavour="emulation"
8590 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8591 aros_nominal_depth=8
8592 gcc_target_cpu="ppc"
8594 # TODO
8595 # Same as powerpc, but I need this for the nightly build to work again.
8596 # Actually, the nightly should be made working with powerpc target.
8597 # That just was too much work for the moment, another week or two.
8598 *ppc*)
8599 aros_target_cpu="ppc"
8600 aros_object_format="elf32ppc"
8601 aros_flavour="emulation"
8602 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8603 aros_nominal_depth=8
8604 gcc_target_cpu="ppc"
8606 *aarch64*)
8607 aros_target_cpu="aarch64"
8608 target_cpu="aarch64"
8609 aros_object_format="aarch64elf_aros"
8610 aros_flavour="emulation"
8611 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8612 gcc_target_cpu="aarch64"
8613 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8614 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8615 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8616 aros_c_libs="$aros_c_libs -laeabi"
8617 gcc_default_float_abi="hard"
8618 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8620 *armhf*)
8621 aros_target_cpu="arm"
8622 target_cpu="arm"
8623 aros_object_format="armelf_aros"
8624 aros_flavour="emulation"
8625 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8626 gcc_target_cpu="arm"
8627 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8628 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8629 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8630 aros_c_libs="$aros_c_libs -laeabi"
8631 gcc_default_float_abi="hard"
8632 android_tool_dir_prefix="arm-linux-androideabi"
8633 android_tool_prefix="arm-linux-androideabi"
8634 android_ndk_arch="arm"
8635 kernel_tool_prefix="arm-linux-gnueabihf-"
8637 *arm*)
8638 aros_target_cpu="arm"
8639 aros_object_format="armelf_aros"
8640 aros_flavour="emulation"
8641 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8642 gcc_target_cpu="arm"
8643 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8644 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8645 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8646 aros_c_libs="$aros_c_libs -laeabi"
8647 android_tool_dir_prefix="arm-linux-androideabi"
8648 android_tool_prefix="arm-linux-androideabi"
8649 android_ndk_arch="arm"
8650 kernel_tool_prefix="arm-linux-gnueabi-"
8653 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8655 esac
8656 case "$aros_target_variant" in
8657 android)
8659 if test "$android_ndk_arch" = ""; then
8660 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8663 aros_nominal_width=320
8664 aros_nominal_height=480
8665 if test "$aros_android_ndk" = "none"; then
8666 aros_kernel_cflags="-mandroid"
8667 aros_kernel_ldflags="-mandroid"
8668 CFLAGS="-mandroid"
8669 else
8670 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8671 kernel_tool_version=""
8672 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8673 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8674 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8675 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8676 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8678 need_x11=no
8679 # Disable implicit PIC mode
8680 aros_config_cflags="$aros_config_cflags -fno-pic"
8681 kernel_tool_prefix="$android_tool_prefix-"
8683 esac
8687 aros_target_arch="pc"
8688 aros_shared_default="no"
8689 target_bootloader="grub2"
8690 case "$target_cpu" in
8691 *i?86*)
8692 aros_target_cpu="i386"
8695 if test "$aros_object_format" = "" ; then
8696 aros_object_format="elf_i386"
8698 aros_flavour="standalone"
8699 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8700 aros_isa_flags="$""(ISA_X86_FLAGS)"
8701 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8702 aros_kernel_ldflags="-Wl,-melf_i386"
8703 aros_nominal_width=640
8704 aros_nominal_height=480
8705 gcc_target_cpu="i386"
8707 *x86_64*)
8708 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8709 aros_target_cpu="x86_64"
8710 aros_serial_debug=1
8711 if test "$aros_object_format" = "" ; then
8712 aros_object_format="elf_x86_64"
8714 aros_flavour="standalone"
8715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8716 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8717 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8718 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8719 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8720 aros_kernel_ldflags=""
8721 aros_nominal_width=640
8722 aros_nominal_height=480
8723 case "$aros_target_variant" in
8724 smp)
8725 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8727 esac
8730 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8732 esac
8735 prep)
8736 aros_target_arch="prep"
8737 aros_shared_default="no"
8738 aros_target_cpu="ppc"
8739 aros_object_format="elf32ppc"
8740 aros_flavour="ppcnative"
8741 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8742 aros_kernel_ldflags=""
8743 aros_nominal_width=640
8744 aros_nominal_height=480
8745 gcc_target_cpu="ppc"
8748 freebsd*)
8749 HOST_WANTS_X11=yes
8750 HOST_WANTS_GLX=yes
8751 HOST_WANTS_SDL=yes
8752 HOST_WANTS_DBUS=yes
8753 HOST_WANTS_DLOPEN=yes
8754 aros_target_arch="freebsd"
8755 aros_target_family="unix"
8756 aros_target_cpu="i386"
8757 aros_flavour="emulation"
8758 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8759 gcc_target_cpu="i386"
8761 aros_target_strip_flags="-x"
8764 darwin*)
8765 HOST_WANTS_X11=yes
8766 HOST_WANTS_GLX=yes
8767 HOST_WANTS_SDL=yes
8768 HOST_WANTS_DBUS=yes
8769 HOST_WANTS_DLOPEN=yes
8770 aros_target_arch="darwin"
8771 aros_target_family="unix"
8772 aros_flavour="emulation"
8773 case "$target_cpu" in
8774 *i?86*)
8775 aros_ios_platform="iPhoneSimulator"
8776 aros_target_cpu="i386"
8777 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8778 aros_isa_flags="$""(ISA_X86_FLAGS)"
8779 aros_kernel_ldflags=""
8780 aros_macosx_version="10.4"
8781 aros_nominal_depth=8
8782 gcc_target_cpu="i386"
8783 aros_object_format="elf_i386"
8784 aros_kernel_ar_flags="-cr"
8785 aros_target_strip_flags="-x"
8786 kernel_tool_flags="-m32"
8788 *x86_64*)
8789 aros_target_cpu="x86_64"
8790 aros_object_format="elf_x86_64"
8791 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8792 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8793 aros_macosx_version="10.6"
8794 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8795 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8796 aros_kernel_cflags="-m64"
8797 aros_kernel_ldflags="-m64"
8798 aros_nominal_depth=8
8799 aros_kernel_rs="$toolchain_ar"
8800 aros_kernel_ar_flags="-cr"
8801 aros_kernel_ld="$toolchain_ld"
8802 aros_kernel_as="$toolchain_as"
8803 aros_kernel_ranlib="$toolchain_ranlib"
8804 aros_kernel_nm="$toolchain_nm"
8805 aros_kernel_strip="strip"
8806 kernel_tool_prefix="i686-apple-darwin10-"
8808 *ppc*)
8809 aros_target_cpu="ppc"
8810 aros_object_format="elf32ppc"
8811 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8812 aros_kernel_ldflags=""
8813 aros_macosx_version="10.0"
8814 aros_nominal_depth=8
8815 gcc_target_cpu="ppc"
8816 aros_kernel_rs="$toolchain_ar"
8817 aros_kernel_ar_flags="-cr"
8818 aros_kernel_ld="$toolchain_ld -arch ppc"
8819 aros_kernel_as="$toolchain_as -arch ppc"
8820 aros_kernel_ranlib="$toolchain_ranlib -arch ppc"
8821 aros_kernel_nm="$toolchain_nm -arch ppc"
8822 aros_kernel_strip="strip -arch ppc"
8823 kernel_tool_prefix="powerpc-apple-darwin10-"
8825 *arm*)
8826 aros_ios_platform="iPhoneOS"
8827 aros_target_cpu="arm"
8828 aros_object_format="armelf_aros"
8829 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8830 aros_c_libs="$aros_c_libs -laeabi"
8831 aros_nominal_depth=8
8832 gcc_target_cpu="arm"
8833 aros_kernel_rs="$toolchain_ar"
8834 aros_kernel_ar_flags="-cr"
8835 aros_kernel_ld="$toolchain_ld -arch arm"
8836 aros_kernel_ranlib="$toolchain_ranlib -arch arm"
8837 kernel_tool_prefix="arm-apple-darwin10-"
8838 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8841 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8843 esac
8844 case "$aros_target_variant" in
8845 ios)
8846 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8847 aros_ios_version="3.0"
8848 aros_nominal_width=320
8849 aros_nominal_height=480
8850 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8851 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"
8852 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8853 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8854 need_x11=no
8855 # This is here because it may depend on iOS or SDK version
8856 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8857 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8858 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8861 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8862 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8864 esac
8867 dragonfly*)
8868 HOST_WANTS_X11=yes
8869 HOST_WANTS_GLX=yes
8870 HOST_WANTS_SDL=yes
8871 HOST_WANTS_DBUS=yes
8872 HOST_WANTS_DLOPEN=yes
8873 aros_target_arch="dragonfly"
8874 aros_target_family="unix"
8875 aros_flavour="emulation"
8876 case "$target_cpu" in
8877 *i?86*)
8878 aros_target_cpu="i386"
8879 aros_object_format="elf_i386"
8880 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8881 aros_isa_flags="$""(ISA_X86_FLAGS)"
8883 *x86_64*)
8884 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8885 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8886 aros_target_cpu="x86_64"
8887 aros_object_format="elf_x86_64"
8888 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8889 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8892 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8894 esac
8897 netbsd*)
8898 HOST_WANTS_X11=yes
8899 HOST_WANTS_GLX=yes
8900 HOST_WANTS_SDL=yes
8901 HOST_WANTS_DBUS=yes
8902 HOST_WANTS_DLOPEN=yes
8903 aros_target_arch="netbsd"
8904 aros_target_family="unix"
8905 case "$target_cpu" in
8906 *m68k*)
8907 aros_target_cpu="m68k"
8908 aros_object_format="m68kelf"
8909 aros_flavour="emulcompat"
8910 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8911 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8912 gcc_target_cpu="mc68000"
8914 *i?86*)
8915 aros_target_cpu="i386"
8916 aros_object_format="elf_i386"
8917 aros_flavour="emulation"
8918 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8919 aros_isa_flags="$""(ISA_X86_FLAGS)"
8920 aros_nominal_depth=8
8921 gcc_target_cpu="i386"
8924 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8926 esac
8927 aros_target_genmap="-Wl,-M -Xlinker >"
8928 aros_flavour="emulation"
8929 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8932 openbsd*)
8933 HOST_WANTS_X11=yes
8934 HOST_WANTS_GLX=yes
8935 HOST_WANTS_SDL=yes
8936 HOST_WANTS_DBUS=yes
8937 HOST_WANTS_DLOPEN=yes
8938 aros_target_arch="openbsd"
8939 aros_target_family="unix"
8940 case "$target_cpu" in
8941 *i?86*)
8942 aros_target_cpu="i386"
8943 aros_object_format="elf_i386"
8944 aros_flavour="emulation"
8945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8946 aros_isa_flags="$""(ISA_X86_FLAGS)"
8947 gcc_target_cpu="i386"
8950 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8952 esac
8953 aros_target_genmap="-Wl,-M -Xlinker >"
8954 aros_target_nm_flags="-u"
8955 aros_flavour="emulation"
8958 solaris*)
8959 aros_target_arch="solaris"
8960 aros_target_family="unix"
8961 case "$target_cpu" in
8962 *i?86*)
8963 aros_target_cpu="i386"
8964 aros_object_format="elf_i386"
8965 aros_flavour="emulation"
8966 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8967 aros_isa_flags="$""(ISA_X86_FLAGS)"
8968 aros_nominal_depth=8
8969 gcc_target_cpu="i386"
8971 *sparc*)
8972 aros_target_cpu="sparc"
8973 aros_object_format="elf_sparc"
8974 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8975 gcc_target_cpu="sparc"
8978 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8980 esac
8981 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8982 aros_flavour="emulation"
8985 morphos*)
8986 aros_target_arch="morphos"
8987 aros_shared_default="no"
8988 aros_target_cpu="ppc"
8989 aros_object_format="elf_ppc"
8990 aros_flavour="nativecompat"
8991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8992 gcc_target_cpu="ppc"
8995 sam440)
8996 aros_target_arch="sam440"
8997 aros_shared_default="no"
8998 aros_target_cpu="ppc"
8999 aros_object_format="elf32ppc"
9000 aros_flavour="ppcnative"
9001 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9002 aros_kernel_ldflags=""
9003 aros_nominal_width=1024
9004 aros_nominal_height=768
9005 aros_nominal_depth=24
9006 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
9007 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9008 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9009 gcc_target_cpu="powerpc"
9012 efika)
9013 aros_target_arch="efika"
9014 aros_shared_default="no"
9015 aros_target_cpu="arm"
9016 aros_object_format="armelf_aros"
9017 aros_flavour="standalone"
9018 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9019 aros_kernel_ldflags=""
9020 aros_nominal_width=1024
9021 aros_nominal_height=600
9022 aros_c_libs="$aros_c_libs -laeabi"
9023 gcc_default_cpu="armv7-a"
9024 gcc_default_fpu="vfpv3"
9025 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
9026 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9027 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9028 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9029 if test "$optimization" = "default"; then
9030 optimization_level=$toolchain_size_opt_lvl
9032 case "$target_cpu" in
9033 *armhf*)
9034 gcc_default_float_abi="hard"
9035 target_cpu=arm
9036 aros_target_cpu=arm
9038 *arm*)
9039 gcc_default_float_abi="softfp"
9042 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
9044 esac
9047 chrp)
9048 aros_target_arch="chrp"
9049 aros_shared_default="no"
9050 aros_target_cpu="ppc"
9051 aros_object_format="elf32ppc"
9052 aros_flavour="ppcnative"
9053 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9054 aros_kernel_ldflags=""
9055 aros_nominal_width=640
9056 aros_nominal_height=480
9057 aros_isa_flags="$aros_isa_flags -mno-toc"
9058 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9059 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
9060 gcc_target_cpu="powerpc"
9061 case "$aros_target_variant" in
9062 efika)
9063 aros_isa_flags="$aros_isa_flags -mcpu=603e"
9064 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
9066 esac
9069 r*pi)
9070 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
9071 aros_flavour="standalone"
9072 aros_target_arch="raspi"
9074 aros_shared_default="no"
9076 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
9078 case "$target_cpu" in
9079 *aarch64*)
9080 aros_target_cpu="aarch64"
9081 gcc_default_cpu="aarch64"
9082 aros_object_format="aarch64elf_aros"
9084 *armhf*)
9085 aros_target_cpu="arm"
9086 gcc_default_cpu="armv6zk"
9087 gcc_default_cpu_tune="arm1176jzf-s"
9088 aros_object_format="armelf_aros"
9089 aros_isa_flags="$aros_isa_flags -marm"
9090 aros_config_cflags="$aros_config_cflags"
9091 aros_config_cxxflags="$aros_config_cxxflags"
9092 aros_config_aflags="$aros_config_aflags -marm"
9093 aros_kernel_cflags="$aros_kernel_cflags -marm"
9094 aros_target_mkdep="$aros_target_mkdep -Darm"
9095 aros_c_libs="$aros_c_libs -laeabi"
9097 *armeb*)
9098 aros_flavour="standcompat"
9099 aros_target_cpu="armeb"
9100 gcc_default_float_abi="hard"
9101 gcc_default_cpu="armv7ve"
9102 gcc_default_cpu_tune="cortex-a7"
9103 aros_object_format="armelfb_aros"
9104 aros_isa_flags="$aros_isa_flags -marm"
9105 aros_config_cflags="$aros_config_cflags"
9106 aros_config_cxxflags="$aros_config_cxxflags"
9107 aros_config_aflags="$aros_config_aflags -marm"
9108 aros_kernel_cflags="$aros_kernel_cflags -marm"
9109 aros_target_mkdep="$aros_target_mkdep -Darm"
9110 aros_c_libs="$aros_c_libs -laeabi"
9112 *arm*)
9113 aros_target_cpu="arm"
9114 gcc_default_cpu="armv6zk"
9115 gcc_default_cpu_tune="arm1176jzf-s"
9116 aros_object_format="armelf_aros"
9117 aros_isa_flags="$aros_isa_flags -marm"
9118 aros_config_cflags="$aros_config_cflags"
9119 aros_config_cxxflags="$aros_config_cxxflags"
9120 aros_config_aflags="$aros_config_aflags -marm"
9121 aros_kernel_cflags="$aros_kernel_cflags -marm"
9122 aros_target_mkdep="$aros_target_mkdep -Darm"
9123 aros_c_libs="$aros_c_libs -laeabi"
9126 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
9128 esac
9130 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9131 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9132 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9133 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9135 case "$aros_target_variant" in
9136 smp)
9137 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
9139 esac
9142 stm32f7_discovery)
9143 aros_flavour="standalone"
9144 aros_target_arch="stm32f7_discovery"
9145 aros_target_cpu="arm"
9146 aros_target_cpu_mode="thumb2"
9147 aros_object_format="armelf_aros"
9148 aros_shared_default="no"
9150 gcc_default_cpu="armv7e-m"
9151 gcc_default_cpu_tune="cortex-m7"
9152 gcc_default_fpu="fpv5-sp-d16"
9153 gcc_default_float_abi="hard"
9155 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
9158 amiga*)
9159 aros_elf_translate="$""(ELF2HUNK)"
9160 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
9161 aros_target_arch="amiga"
9162 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9163 aros_shared_default="no"
9165 case "$target_cpu" in
9166 *m68k*)
9167 # Check whether --enable-amigaos_compliance was given.
9168 if test "${enable_amigaos_compliance+set}" = set; then :
9169 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
9172 aros_enable_mmu=no
9173 aros_target_cpu="m68k"
9174 aros_object_format="m68kelf"
9175 aros_flavour="standcompat"
9176 gcc_target_cpu="m68000"
9177 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9178 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
9179 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
9180 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9181 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
9182 if test "$optimization" = "default"; then
9183 optimization_level=$toolchain_size_opt_lvl
9185 aros_config_aflags="$aros_config_aflags"
9186 aros_target_strip_flags="-R.comment --strip-debug"
9187 aros_nominal_width=640
9188 aros_nominal_height=256
9189 aros_nominal_depth=2
9191 *ppc*)
9192 aros_cpu="ppc"
9193 aros_flavour="native"
9194 gcc_target_cpu="ppc"
9197 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
9199 esac
9202 mingw*)
9203 aros_target_arch="mingw32"
9204 aros_shared_default="no"
9205 aros_flavour="emulation"
9206 aros_shared_cflags=""
9207 need_crosstools="yes"
9208 need_dlopen="no"
9209 rescomp="windres"
9210 case "$target_cpu" in
9211 *i?86*)
9212 aros_target_cpu="i386"
9213 aros_object_format="elf_i386"
9214 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9215 aros_isa_flags="$""(ISA_X86_FLAGS)"
9216 aros_nominal_depth=8
9217 gcc_target_cpu="i386"
9219 kernel_tool_prefix="i386-mingw32-"
9221 *x86_64*)
9222 aros_target_cpu="x86_64"
9223 aros_object_format="elf_x86_64"
9224 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9225 aros_isa_flags="$""(ISA_X8664_FLAGS)"
9226 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
9227 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
9228 aros_nominal_depth=8
9229 kernel_tool_prefix="x86_64-w64-mingw32-"
9231 *arm*)
9232 aros_target_cpu="arm"
9233 aros_object_format="armelf_aros"
9234 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9235 aros_c_libs="$aros_c_libs -laeabi"
9236 aros_nominal_depth=8
9237 gcc_target_cpu="arm"
9238 gcc_default_float_abi="soft"
9239 kernel_tool_prefix="arm-mingw32ce-"
9240 aros_nominal_width=160
9241 aros_nominal_height=160
9244 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
9246 esac
9247 if test $host_os = "cygwin"; then
9248 aros_kernel_cflags="-mno-cygwin"
9251 pp*)
9252 aros_target_arch="pp"
9253 aros_shared_default="no"
9254 case "$target_cpu" in
9255 *m68k*)
9256 aros_target_cpu="m68k"
9257 aros_object_format="m68kelf"
9258 aros_flavour="palmnative"
9259 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9260 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9261 aros_nominal_width=160
9262 aros_nominal_height=160
9263 aros_nominal_depth=1
9264 aros_target_ar_flags="cru"
9265 aros_c_libs="$aros_c_libs -lgcc1"
9266 aros_shared_default=no
9267 aros_shared_cflags="-fpic"
9268 aros_shared_aflags=""
9269 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9270 aros_kernel_ldflags="-Wl,-rpath,./lib"
9271 aros_debug_cppflags="$aros_messages_debug"
9272 aros_debug_cflags="$aros_symbols_debug"
9273 aros_debug_aflags=""
9274 aros_debug_ldflags="$aros_symbols_debug"
9275 aros_mungwall_debug="0"
9276 aros_modules_debug="0"
9277 gcc_target_cpu="mc68000"
9278 ignore_undefined_symbols="-ius"
9281 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
9283 esac
9286 mac*)
9287 aros_target_arch="mac"
9288 aros_shared_default="no"
9289 case "$target_cpu" in
9290 *m68k*)
9291 aros_target_cpu="m68k"
9292 aros_object_format="m68kelf"
9293 aros_flavour="mac68knative"
9294 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9295 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9296 aros_nominal_width=512
9297 aros_nominal_height=384
9298 aros_nominal_depth=8
9299 aros_target_ar_flags="cru"
9300 aros_c_libs="$aros_c_libs -lgcc1"
9301 aros_shared_default=no
9302 aros_shared_cflags="-fpic"
9303 aros_shared_aflags=""
9304 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9305 aros_kernel_ldflags="-Wl,-rpath,./lib"
9306 aros_debug_cppflags="$aros_messages_debug"
9307 aros_debug_cflags="$aros_symbols_debug"
9308 aros_debug_aflags=""
9309 aros_debug_ldflags="$aros_symbols_debug"
9310 aros_mungwall_debug="0"
9311 aros_modules_debug="0"
9312 gcc_target_cpu="mc68000"
9313 ignore_undefined_symbols="-ius"
9316 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9318 esac
9322 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9324 esac
9326 #-----------------------------------------------------------------------------
9327 crosstools_guess="yes"
9328 aros_target_toolchain="no"
9329 aros_kernel_sysroot=""
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9332 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9334 # Check whether --with-kernel-toolchain-prefix was given.
9335 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9336 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9340 $as_echo "$kernel_tool_prefix" >&6; }
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9343 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9345 # Check whether --with-elf-toolchain-prefix was given.
9346 if test "${with_elf_toolchain_prefix+set}" = set; then :
9347 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9348 crosstools_guess="no"
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9352 $as_echo "$elf_tool_prefix" >&6; }
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9355 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9357 # Check whether --with-aros-toolchain was given.
9358 if test "${with_aros_toolchain+set}" = set; then :
9359 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9360 crosstools_guess="no"
9363 if test "$aros_tool_prefix" = "yes" ; then
9364 aros_tool_prefix=$aros_target_cpu-aros-
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9367 $as_echo "$aros_tool_prefix" >&6; }
9369 #-----------------------------------------------------------------------------
9370 # Checking if we should build crosstools..
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9372 $as_echo_n "checking whether to build crosstools... " >&6; }
9373 # Check whether --enable-crosstools was given.
9374 if test "${enable_crosstools+set}" = set; then :
9375 enableval=$enable_crosstools; crosstools="$enableval"
9376 else
9377 crosstools="$crosstools_guess"
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9381 $as_echo "$crosstools" >&6; }
9383 if test "${crosstools}" = "yes"; then
9384 if test "${crosstools_guess}" = "no"; then
9385 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9389 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9390 aros_target_toolchain="yes"
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9394 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9396 # Check whether --with-aros-toolchain-install was given.
9397 if test "${with_aros_toolchain_install+set}" = set; then :
9398 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9401 if test "x$aros_toolchain_install" = "x"; then
9402 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9403 else
9404 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9405 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9406 if test "$crosstools_guess" = "no" ; then
9407 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9408 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9413 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9415 #-----------------------------------------------------------------------------
9416 if test "$aros_toolchain" = "gnu" ; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9418 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9421 # Check whether --with-binutils-version was given.
9422 if test "${with_binutils_version+set}" = set; then :
9423 withval=$with_binutils_version; use_binutils_version="$withval"
9424 else
9425 use_binutils_version=""
9428 if test "$use_binutils_version" = ""; then
9429 target_binutils_version="$default_binutils_version"
9430 else
9431 target_binutils_version="$use_binutils_version"
9433 if test "$aros_toolchain" = "gnu" ; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9435 $as_echo "$target_binutils_version" >&6; }
9439 # Helper to identify gcc version
9442 #-----------------------------------------------------------------------------
9443 if test "$aros_toolchain" = "gnu" ; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9445 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9448 # Check whether --with-gcc-version was given.
9449 if test "${with_gcc_version+set}" = set; then :
9450 withval=$with_gcc_version; use_gcc_version="$withval"
9451 else
9452 use_gcc_version=""
9455 if test "$use_gcc_version" = ""; then
9456 if test "${crosstools}" = "no"; then
9457 if test "x$aros_toolchain_install" != "x"; then
9459 target_gcc_version=""
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9461 $as_echo_n "checking gcc version... " >&6; }
9462 if ${ax_cv_gcc_version+:} false; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9466 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor}$(toolchain_cpp_opts) -dumpversion`"
9467 if test "x$ax_cv_gcc_version" = "x"; then :
9469 ax_cv_gcc_version=""
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9475 $as_echo "$ax_cv_gcc_version" >&6; }
9476 target_gcc_version=$ax_cv_gcc_version
9481 if test "$use_gcc_version" = ""; then
9482 target_gcc_version="$default_gcc_version"
9484 else
9485 target_gcc_version="$use_gcc_version"
9487 if test "$aros_toolchain" = "gnu" ; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9489 $as_echo "$target_gcc_version" >&6; }
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version string style" >&5
9492 $as_echo_n "checking version string style... " >&6; }
9493 if test "${target_gcc_version#*$'-'}" != "$target_gcc_version" ; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: snapshot" >&5
9495 $as_echo "snapshot" >&6; }
9496 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'-' -f1)
9497 GCC_VERSION_MINOR=-1
9498 GCC_VERSION_PATCH=-1
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
9501 $as_echo "release" >&6; }
9502 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9503 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9504 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9507 gcc_fix_bitfields="false"
9508 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9509 gcc_fix_bitfields="true"
9510 else
9511 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9512 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9513 gcc_fix_bitfields="true"
9518 if test "$gcc_fix_bitfields" = "true" ; then
9519 case "$aros_target_cpu" in
9520 *x86_64* | *i?86*)
9521 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9522 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9524 esac
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9529 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9530 # Check whether --enable-objc was given.
9531 if test "${enable_objc+set}" = set; then :
9532 enableval=$enable_objc; objc="$enableval"
9533 else
9534 objc="no"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9538 $as_echo "$objc" >&6; }
9539 if test "x$objc" = "xyes"; then
9540 objc_target="$objc"
9541 else
9542 objc_target="no-objc"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9546 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9547 # Check whether --enable-java was given.
9548 if test "${enable_java+set}" = set; then :
9549 enableval=$enable_java; java="$enableval"
9550 else
9551 java="no"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9555 $as_echo "$java" >&6; }
9556 if test "x$java" != "xno"; then
9557 java_target="$java"
9558 else
9559 java_target="no-java"
9562 spec_obj_format="-m $aros_object_format"
9563 # Now process extra architecture-specific options.
9564 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9565 # as well as floating-point ABI.
9566 case "$aros_target_cpu" in
9567 *m68k*)
9568 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9569 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9570 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"
9571 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"
9572 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"
9573 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"
9574 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"
9576 *x86_64*)
9577 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9578 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9580 arm*)
9581 if test "$gcc_default_cpu" = ""; then
9582 gcc_default_cpu="armv6"
9584 if test "$gcc_default_fpu" = ""; then
9585 gcc_default_fpu="vfp"
9587 if test "$gcc_default_endian" = ""; then
9588 if test "$target_cpu" = "armeb"; then
9589 gcc_default_endian="big-endian"
9590 else
9591 gcc_default_endian="little-endian"
9594 if test "$gcc_default_float_abi" = ""; then
9595 if test "$target_cpu" = "armhf"; then
9596 gcc_default_float_abi="hard"
9597 else
9598 gcc_default_float_abi="softfp"
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9603 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9605 # Check whether --with-cpu was given.
9606 if test "${with_cpu+set}" = set; then :
9607 withval=$with_cpu; aros_gcc_cpu="$withval"
9608 else
9609 aros_gcc_cpu=$gcc_default_cpu
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9613 $as_echo "$aros_gcc_cpu" >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9616 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9618 # Check whether --with-fpu was given.
9619 if test "${with_fpu+set}" = set; then :
9620 withval=$with_fpu; aros_gcc_fpu="$withval"
9621 else
9622 aros_gcc_fpu=$gcc_default_fpu
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9626 $as_echo "$aros_gcc_fpu" >&6; }
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9629 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9631 # Check whether --with-float was given.
9632 if test "${with_float+set}" = set; then :
9633 withval=$with_float; aros_gcc_float_abi="$withval"
9634 else
9635 aros_gcc_float_abi=$gcc_default_float_abi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9639 $as_echo "$aros_gcc_float_abi" >&6; }
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9642 $as_echo_n "checking Which ARM mode to use... " >&6; }
9643 if test "$aros_target_cpu_mode" = ""; then
9644 aros_target_cpu_mode="arm32"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9646 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9649 $as_echo "$aros_target_cpu_mode" >&6; }
9652 case "$aros_target_cpu_mode" in
9653 arm32)
9654 gcc_default_mode="arm"
9655 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"
9657 arm64)
9658 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9660 thumb)
9661 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9663 thumb1)
9664 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9666 thumb2)
9667 gcc_default_mode="thumb"
9668 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9669 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"
9672 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9674 esac
9676 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9677 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9678 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9680 i386)
9681 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9682 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9684 esac
9686 # Some architectures may need custom ELF specs.
9687 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9688 elf_specs_in=config/${aros_object_format}-specs.in
9689 else
9690 elf_specs_in=config/elf-specs.in
9693 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9694 # Since we override specs, we may need to put these defines there
9695 if test "$gcc_target_cpu" != ""; then
9696 gcc_target_cpu="-D__${gcc_target_cpu}__"
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9700 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9702 # Check whether --with-portssources was given.
9703 if test "${with_portssources+set}" = set; then :
9704 withval=$with_portssources; with_portssrcdir=$withval
9705 else
9706 with_portssrcdir="default"
9709 if test "$with_portssrcdir" = "default"; then
9710 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9711 else
9712 AROS_PORTSSRCDIR="$with_portssrcdir"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9715 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9718 $as_echo_n "checking which bootloader to use... " >&6; }
9720 # Check whether --with-bootloader was given.
9721 if test "${with_bootloader+set}" = set; then :
9722 withval=$with_bootloader; target_bootloader=$withval
9723 else
9724 target_bootloader=$target_bootloader
9727 if test "$target_bootloader" = "none"; then
9728 aros_target_bootloader=""
9729 else
9730 aros_target_bootloader="$target_bootloader"
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9733 $as_echo "$target_bootloader" >&6; }
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9736 $as_echo_n "checking which icon-set to use... " >&6; }
9738 # Check whether --with-iconset was given.
9739 if test "${with_iconset+set}" = set; then :
9740 withval=$with_iconset; target_iconset=$withval
9741 else
9742 target_iconset="default"
9745 if test "$target_iconset" = "default"; then
9746 aros_target_iconset="Gorilla"
9747 target_iconset="default (Gorilla)"
9748 else
9749 aros_target_iconset="$target_iconset"
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9752 $as_echo "$target_iconset" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9755 $as_echo_n "checking which GUI Theme to use... " >&6; }
9757 # Check whether --with-theme was given.
9758 if test "${with_theme+set}" = set; then :
9759 withval=$with_theme; target_guitheme=$withval
9760 else
9761 target_guitheme="default"
9764 if test "$target_guitheme" = "default"; then
9765 aros_target_guitheme="Ice"
9766 else
9767 aros_target_guitheme="$target_guitheme"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9770 $as_echo "$aros_target_guitheme" >&6; }
9772 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9773 # for target code)
9774 cross_compiling=no
9776 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9777 cross_compiling=yes
9780 if test "$aros_host_cpu" == "x86_64" ; then
9781 if test "$aros_target_cpu" == "i386" ; then
9782 cross_compiling=no
9786 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9787 if test "$aros_host_arch" != "$aros_target_arch" ; then
9788 cross_compiling=yes
9790 else
9791 cross_compiling=yes
9794 if test "$cross_compiling" = "no" ; then
9795 kernel_tool_prefix=""
9796 if test "$host_cc_elf" = "yes" ; then
9797 elf_tool_prefix=""
9801 if test "$kernel_tool_version" != ""; then
9802 kernel_tool_version="-$kernel_tool_version"
9805 #######################################################################
9806 ## Compute what toolchains to use, and their paths ##
9807 #######################################################################
9809 # This takes, as input:
9810 # crosstools {yes,no}
9811 # kernel_tool_version {"",[version]}
9812 # target_tool_version {"",[version]}
9813 # kernel_tool_prefix {none,[some-arch-os-]}
9814 # gnu-toolchain -:
9815 # target_tool_prefix ${aros_target_cpu}-aros-
9816 # aros_tool_prefix ${aros_target_cpu}-aros-
9818 # The output is
9819 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9820 # Where the 'kernel' binaries are located
9821 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9822 # Where the 'target' binaries are located
9823 # (not the symlink farm - that is aros_target_*!)
9825 # The rules are:
9826 # if crosstools then
9827 # if kernel_tools_prefix = "no-kernel-prefix-"
9828 # aros_kernel_* = crosstools cc paths
9829 # aros_kernel_cc = elf cc wrapper around crosstools cc
9830 # else
9831 # VALIDATE(${kernel_tools_prefix}*)
9832 # aros_kernel_* = ${kernel_tools_prefix}*
9833 # if ${kernel_tools_prefix}cc is an AROS gcc
9834 # aros_kernel_cc = ${kernel_tools_prefix}cc
9835 # else
9836 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9837 # fi
9838 # fi
9840 # orig_target_* = aros built crosstools
9841 # orig_target_cc = elf cc wrapper around crosstools cc
9842 # else
9843 # VALIDATE(${kernel_tools_prefix}*)
9845 # orig_target_* = aros_kernel_*
9846 # if aros_kernel_cc is an AROS gcc
9847 # orig_target_cc = aros_kernel_cc
9848 # else
9849 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9850 # fi
9851 # fi
9853 if test "$aros_toolchain" = "gnu" ; then
9854 target_tool_prefix="${aros_target_cpu}-aros-"
9855 elif test "$aros_toolchain" = "llvm" ; then
9856 target_tool_prefix="bin/"
9859 if test "$kernel_tool_prefix" != "" ; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9861 $as_echo_n "checking which kernel tools... " >&6; }
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9863 $as_echo "$kernel_tool_prefix" >&6; };
9866 if test "$kernel_tool_prefix" = "none" ; then
9867 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9868 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9870 else
9871 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9872 # Kernel tools required - find them
9873 # Note that 'normally', aros_kernel_* overrides will be
9874 # empty, unless specified in the per-arch sections above.
9875 test_kernel_cc=yes
9876 if test "x$aros_kernel_cpp" = "x"; then
9877 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9879 if test "${kernel_tool_version}" != ""; then
9880 if test "$aros_kernel_cpp" != ""; then
9881 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9882 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9883 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9887 if test "$aros_kernel_cpp" = ""; then
9888 if test "$cross_compiling" = "yes" ; then
9889 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9890 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 case $aros_kernel_cpp in
9897 [\\/]* | ?:[\\/]*)
9898 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9917 esac
9919 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9920 if test -n "$aros_kernel_cpp"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9922 $as_echo "$aros_kernel_cpp" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9929 else
9931 if test "" = ""; then
9932 ac_tool_cpp=cpp
9933 else
9934 ac_tool_cpp=
9936 if test "$GCC" = "yes"; then
9937 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
9938 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9939 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9941 $as_echo_n "checking for $ac_word... " >&6; }
9942 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 case $aros_kernel_cpp in
9946 [\\/]* | ?:[\\/]*)
9947 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in `dirname $aros_gcc_cpp`
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9961 done
9962 done
9963 IFS=$as_save_IFS
9966 esac
9968 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9969 if test -n "$aros_kernel_cpp"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9971 $as_echo "$aros_kernel_cpp" >&6; }
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9979 if test "$aros_kernel_cpp" = ""; then
9980 for ac_prog in $ac_tool_cpp
9982 # Extract the first word of "$ac_prog", so it can be a program name with args.
9983 set dummy $ac_prog; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 case $aros_kernel_cpp in
9990 [\\/]* | ?:[\\/]*)
9991 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10005 done
10006 done
10007 IFS=$as_save_IFS
10010 esac
10012 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10013 if test -n "$aros_kernel_cpp"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10015 $as_echo "$aros_kernel_cpp" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10022 test -n "$aros_kernel_cpp" && break
10023 done
10028 else
10029 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
10030 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10031 set dummy $aros_kernel_cpp; ac_word=$2
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 $as_echo_n "checking for $ac_word... " >&6; }
10034 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 case $aros_kernel_cpp in
10038 [\\/]* | ?:[\\/]*)
10039 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10053 done
10054 done
10055 IFS=$as_save_IFS
10058 esac
10060 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10061 if test -n "$aros_kernel_cpp"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10063 $as_echo "$aros_kernel_cpp" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10070 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
10073 req_avail=yes
10074 if test "$aros_kernel_cpp" = ""; then
10075 req_avail=no
10077 if test "$aros_kernel_cpp" = "no"; then
10078 req_avail=no
10080 if test "$req_avail" = "no"; then
10081 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10084 if test "x$aros_kernel_cc" = "x"; then
10085 aros_kernel_cc=${kernel_tool_prefix}${CC}
10087 if test "${kernel_tool_version}" != ""; then
10088 if test "$aros_kernel_cc" != ""; then
10089 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10090 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
10091 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10095 if test "$aros_kernel_cc" = ""; then
10096 if test "$cross_compiling" = "yes" ; then
10097 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
10098 set dummy ${kernel_tool_prefix}cc; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 case $aros_kernel_cc in
10105 [\\/]* | ?:[\\/]*)
10106 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in $PATH
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10120 done
10121 done
10122 IFS=$as_save_IFS
10125 esac
10127 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10128 if test -n "$aros_kernel_cc"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10130 $as_echo "$aros_kernel_cc" >&6; }
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10137 else
10139 if test "" = ""; then
10140 ac_tool_cc=cc
10141 else
10142 ac_tool_cc=
10144 if test "$GCC" = "yes"; then
10145 aros_gcc_cc=`$CC -print-prog-name=$ac_tool_cc`
10146 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
10147 set dummy `basename $aros_gcc_cc`; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 case $aros_kernel_cc in
10154 [\\/]* | ?:[\\/]*)
10155 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in `dirname $aros_gcc_cc`
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
10164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10165 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10169 done
10170 done
10171 IFS=$as_save_IFS
10174 esac
10176 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10177 if test -n "$aros_kernel_cc"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10179 $as_echo "$aros_kernel_cc" >&6; }
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10187 if test "$aros_kernel_cc" = ""; then
10188 for ac_prog in $ac_tool_cc
10190 # Extract the first word of "$ac_prog", so it can be a program name with args.
10191 set dummy $ac_prog; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 case $aros_kernel_cc in
10198 [\\/]* | ?:[\\/]*)
10199 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10209 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10218 esac
10220 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10221 if test -n "$aros_kernel_cc"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10223 $as_echo "$aros_kernel_cc" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10230 test -n "$aros_kernel_cc" && break
10231 done
10236 else
10237 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
10238 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
10239 set dummy $aros_kernel_cc; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_path_aros_kernel_cc+:} false; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 case $aros_kernel_cc in
10246 [\\/]* | ?:[\\/]*)
10247 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10261 done
10262 done
10263 IFS=$as_save_IFS
10266 esac
10268 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
10269 if test -n "$aros_kernel_cc"; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
10271 $as_echo "$aros_kernel_cc" >&6; }
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10278 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
10281 req_avail=yes
10282 if test "$aros_kernel_cc" = ""; then
10283 req_avail=no
10285 if test "$aros_kernel_cc" = "no"; then
10286 req_avail=no
10288 if test "$req_avail" = "no"; then
10289 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10292 if test "x$aros_kernel_cxx" = "x"; then
10293 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
10295 if test "${kernel_tool_version}" != ""; then
10296 if test "$aros_kernel_cxx" != ""; then
10297 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10298 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
10299 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
10303 if test "$aros_kernel_cxx" = ""; then
10304 if test "$cross_compiling" = "yes" ; then
10305 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
10306 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 case $aros_kernel_cxx in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10336 if test -n "$aros_kernel_cxx"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10338 $as_echo "$aros_kernel_cxx" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10345 else
10347 if test "" = ""; then
10348 ac_tool_cxx=cxx
10349 else
10350 ac_tool_cxx=
10352 if test "$GCC" = "yes"; then
10353 aros_gcc_cxx=`$CC -print-prog-name=$ac_tool_cxx`
10354 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10355 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 case $aros_kernel_cxx in
10362 [\\/]* | ?:[\\/]*)
10363 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in `dirname $aros_gcc_cxx`
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10377 done
10378 done
10379 IFS=$as_save_IFS
10382 esac
10384 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10385 if test -n "$aros_kernel_cxx"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10387 $as_echo "$aros_kernel_cxx" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10395 if test "$aros_kernel_cxx" = ""; then
10396 for ac_prog in $ac_tool_cxx
10398 # Extract the first word of "$ac_prog", so it can be a program name with args.
10399 set dummy $ac_prog; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 case $aros_kernel_cxx in
10406 [\\/]* | ?:[\\/]*)
10407 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10421 done
10422 done
10423 IFS=$as_save_IFS
10426 esac
10428 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10429 if test -n "$aros_kernel_cxx"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10431 $as_echo "$aros_kernel_cxx" >&6; }
10432 else
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10438 test -n "$aros_kernel_cxx" && break
10439 done
10444 else
10445 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10446 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10447 set dummy $aros_kernel_cxx; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 case $aros_kernel_cxx in
10454 [\\/]* | ?:[\\/]*)
10455 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10469 done
10470 done
10471 IFS=$as_save_IFS
10474 esac
10476 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10477 if test -n "$aros_kernel_cxx"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10479 $as_echo "$aros_kernel_cxx" >&6; }
10480 else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10486 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10489 # If it's set, make sure it's really there
10490 if test "x$aros_kernel_cxx" != "x" ; then
10491 req_avail=yes
10492 if test "$aros_kernel_cxx" = ""; then
10493 req_avail=no
10495 if test "$aros_kernel_cxx" = "no"; then
10496 req_avail=no
10498 if test "$req_avail" = "no"; then
10499 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10502 if test "x$aros_kernel_ld" = "x"; then
10503 aros_kernel_ld=$aros_host_ld
10506 if test "$aros_kernel_ld" = ""; then
10507 if test "$cross_compiling" = "yes" ; then
10508 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10509 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 case $aros_kernel_ld in
10516 [\\/]* | ?:[\\/]*)
10517 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10527 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10531 done
10532 done
10533 IFS=$as_save_IFS
10536 esac
10538 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10539 if test -n "$aros_kernel_ld"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10541 $as_echo "$aros_kernel_ld" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10548 else
10550 if test "" = ""; then
10551 ac_tool_ld=ld
10552 else
10553 ac_tool_ld=
10555 if test "$GCC" = "yes"; then
10556 aros_gcc_ld=`$CC -print-prog-name=$ac_tool_ld`
10557 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10558 set dummy `basename $aros_gcc_ld`; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 case $aros_kernel_ld in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in `dirname $aros_gcc_ld`
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10582 IFS=$as_save_IFS
10585 esac
10587 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10588 if test -n "$aros_kernel_ld"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10590 $as_echo "$aros_kernel_ld" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10598 if test "$aros_kernel_ld" = ""; then
10599 for ac_prog in $ac_tool_ld
10601 # Extract the first word of "$ac_prog", so it can be a program name with args.
10602 set dummy $ac_prog; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 case $aros_kernel_ld in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10620 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10624 done
10625 done
10626 IFS=$as_save_IFS
10629 esac
10631 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10632 if test -n "$aros_kernel_ld"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10634 $as_echo "$aros_kernel_ld" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10641 test -n "$aros_kernel_ld" && break
10642 done
10647 else
10648 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10649 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10650 set dummy $aros_kernel_ld; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 case $aros_kernel_ld in
10657 [\\/]* | ?:[\\/]*)
10658 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10672 done
10673 done
10674 IFS=$as_save_IFS
10677 esac
10679 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10680 if test -n "$aros_kernel_ld"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10682 $as_echo "$aros_kernel_ld" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10689 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10692 req_avail=yes
10693 if test "$aros_kernel_ld" = ""; then
10694 req_avail=no
10696 if test "$aros_kernel_ld" = "no"; then
10697 req_avail=no
10699 if test "$req_avail" = "no"; then
10700 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10702 if test "x$aros_kernel_as" = "x"; then
10703 aros_kernel_as=$aros_host_as
10704 if test "x$aros_kernel_as" = "x"; then
10705 aros_kernel_as=${HOST_TOOLCHAIN_PREFIX}as${HOST_TOOLCHAIN_SUFFIX}
10709 if test "$aros_kernel_as" = ""; then
10710 if test "$cross_compiling" = "yes" ; then
10711 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10712 set dummy ${kernel_tool_prefix}as; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_path_aros_kernel_as+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 case $aros_kernel_as in
10719 [\\/]* | ?:[\\/]*)
10720 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724 for as_dir in $PATH
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10730 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 break 2
10734 done
10735 done
10736 IFS=$as_save_IFS
10739 esac
10741 aros_kernel_as=$ac_cv_path_aros_kernel_as
10742 if test -n "$aros_kernel_as"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10744 $as_echo "$aros_kernel_as" >&6; }
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10751 else
10753 if test "" = ""; then
10754 ac_tool_as=as
10755 else
10756 ac_tool_as=
10758 if test "$GCC" = "yes"; then
10759 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
10760 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10761 set dummy `basename $aros_gcc_as`; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_path_aros_kernel_as+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 case $aros_kernel_as in
10768 [\\/]* | ?:[\\/]*)
10769 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in `dirname $aros_gcc_as`
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10779 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10785 IFS=$as_save_IFS
10788 esac
10790 aros_kernel_as=$ac_cv_path_aros_kernel_as
10791 if test -n "$aros_kernel_as"; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10793 $as_echo "$aros_kernel_as" >&6; }
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10801 if test "$aros_kernel_as" = ""; then
10802 for ac_prog in $ac_tool_as
10804 # Extract the first word of "$ac_prog", so it can be a program name with args.
10805 set dummy $ac_prog; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_aros_kernel_as+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 case $aros_kernel_as in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10827 done
10828 done
10829 IFS=$as_save_IFS
10832 esac
10834 aros_kernel_as=$ac_cv_path_aros_kernel_as
10835 if test -n "$aros_kernel_as"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10837 $as_echo "$aros_kernel_as" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10844 test -n "$aros_kernel_as" && break
10845 done
10850 else
10851 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10852 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10853 set dummy $aros_kernel_as; ac_word=$2
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855 $as_echo_n "checking for $ac_word... " >&6; }
10856 if ${ac_cv_path_aros_kernel_as+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 case $aros_kernel_as in
10860 [\\/]* | ?:[\\/]*)
10861 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865 for as_dir in $PATH
10867 IFS=$as_save_IFS
10868 test -z "$as_dir" && as_dir=.
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10871 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 break 2
10875 done
10876 done
10877 IFS=$as_save_IFS
10880 esac
10882 aros_kernel_as=$ac_cv_path_aros_kernel_as
10883 if test -n "$aros_kernel_as"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10885 $as_echo "$aros_kernel_as" >&6; }
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10892 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10895 req_avail=yes
10896 if test "$aros_kernel_as" = ""; then
10897 req_avail=no
10899 if test "$aros_kernel_as" = "no"; then
10900 req_avail=no
10902 if test "$req_avail" = "no"; then
10903 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10905 if test "x$aros_kernel_ar" = "x"; then
10906 aros_kernel_ar=$aros_host_plain_ar
10909 if test "$aros_kernel_ar" = ""; then
10910 if test "$cross_compiling" = "yes" ; then
10911 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10912 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10916 $as_echo_n "(cached) " >&6
10917 else
10918 case $aros_kernel_ar in
10919 [\\/]* | ?:[\\/]*)
10920 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $PATH
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10934 done
10935 done
10936 IFS=$as_save_IFS
10939 esac
10941 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10942 if test -n "$aros_kernel_ar"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10944 $as_echo "$aros_kernel_ar" >&6; }
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10951 else
10953 if test "" = ""; then
10954 ac_tool_ar=ar
10955 else
10956 ac_tool_ar=
10958 if test "$GCC" = "yes"; then
10959 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
10960 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10961 set dummy `basename $aros_gcc_ar`; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 case $aros_kernel_ar in
10968 [\\/]* | ?:[\\/]*)
10969 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in `dirname $aros_gcc_ar`
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10983 done
10984 done
10985 IFS=$as_save_IFS
10988 esac
10990 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10991 if test -n "$aros_kernel_ar"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10993 $as_echo "$aros_kernel_ar" >&6; }
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
11001 if test "$aros_kernel_ar" = ""; then
11002 for ac_prog in $ac_tool_ar
11004 # Extract the first word of "$ac_prog", so it can be a program name with args.
11005 set dummy $ac_prog; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 case $aros_kernel_ar in
11012 [\\/]* | ?:[\\/]*)
11013 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11023 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11027 done
11028 done
11029 IFS=$as_save_IFS
11032 esac
11034 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11035 if test -n "$aros_kernel_ar"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11037 $as_echo "$aros_kernel_ar" >&6; }
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11044 test -n "$aros_kernel_ar" && break
11045 done
11050 else
11051 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
11052 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
11053 set dummy $aros_kernel_ar; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_path_aros_kernel_ar+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 case $aros_kernel_ar in
11060 [\\/]* | ?:[\\/]*)
11061 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11075 done
11076 done
11077 IFS=$as_save_IFS
11080 esac
11082 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
11083 if test -n "$aros_kernel_ar"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
11085 $as_echo "$aros_kernel_ar" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11092 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
11095 req_avail=yes
11096 if test "$aros_kernel_ar" = ""; then
11097 req_avail=no
11099 if test "$aros_kernel_ar" = "no"; then
11100 req_avail=no
11102 if test "$req_avail" = "no"; then
11103 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11105 if test "x$aros_kernel_ranlib" = "x"; then
11106 aros_kernel_ranlib=$aros_host_ranlib
11109 if test "$aros_kernel_ranlib" = ""; then
11110 if test "$cross_compiling" = "yes" ; then
11111 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
11112 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 case $aros_kernel_ranlib in
11119 [\\/]* | ?:[\\/]*)
11120 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11134 done
11135 done
11136 IFS=$as_save_IFS
11139 esac
11141 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11142 if test -n "$aros_kernel_ranlib"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11144 $as_echo "$aros_kernel_ranlib" >&6; }
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11151 else
11153 if test "" = ""; then
11154 ac_tool_ranlib=ranlib
11155 else
11156 ac_tool_ranlib=
11158 if test "$GCC" = "yes"; then
11159 aros_gcc_ranlib=`$CC -print-prog-name=$ac_tool_ranlib`
11160 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
11161 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163 $as_echo_n "checking for $ac_word... " >&6; }
11164 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 case $aros_kernel_ranlib in
11168 [\\/]* | ?:[\\/]*)
11169 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in `dirname $aros_gcc_ranlib`
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11179 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11183 done
11184 done
11185 IFS=$as_save_IFS
11188 esac
11190 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11191 if test -n "$aros_kernel_ranlib"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11193 $as_echo "$aros_kernel_ranlib" >&6; }
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11201 if test "$aros_kernel_ranlib" = ""; then
11202 for ac_prog in $ac_tool_ranlib
11204 # Extract the first word of "$ac_prog", so it can be a program name with args.
11205 set dummy $ac_prog; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 case $aros_kernel_ranlib in
11212 [\\/]* | ?:[\\/]*)
11213 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11227 done
11228 done
11229 IFS=$as_save_IFS
11232 esac
11234 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11235 if test -n "$aros_kernel_ranlib"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11237 $as_echo "$aros_kernel_ranlib" >&6; }
11238 else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11244 test -n "$aros_kernel_ranlib" && break
11245 done
11250 else
11251 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
11252 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
11253 set dummy $aros_kernel_ranlib; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 case $aros_kernel_ranlib in
11260 [\\/]* | ?:[\\/]*)
11261 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 break 2
11275 done
11276 done
11277 IFS=$as_save_IFS
11280 esac
11282 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
11283 if test -n "$aros_kernel_ranlib"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
11285 $as_echo "$aros_kernel_ranlib" >&6; }
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11292 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
11295 req_avail=yes
11296 if test "$aros_kernel_ranlib" = ""; then
11297 req_avail=no
11299 if test "$aros_kernel_ranlib" = "no"; then
11300 req_avail=no
11302 if test "$req_avail" = "no"; then
11303 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11305 if test "x$aros_kernel_nm" = "x"; then
11306 aros_kernel_nm=$aros_host_nm
11307 if test "x$aros_kernel_nm" = "x"; then
11308 aros_kernel_nm=${HOST_TOOLCHAIN_PREFIX}nm${HOST_TOOLCHAIN_SUFFIX}
11312 if test "$aros_kernel_nm" = ""; then
11313 if test "$cross_compiling" = "yes" ; then
11314 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
11315 set dummy ${kernel_tool_prefix}nm; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 case $aros_kernel_nm in
11322 [\\/]* | ?:[\\/]*)
11323 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11337 done
11338 done
11339 IFS=$as_save_IFS
11342 esac
11344 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11345 if test -n "$aros_kernel_nm"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11347 $as_echo "$aros_kernel_nm" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11354 else
11356 if test "" = ""; then
11357 ac_tool_nm=nm
11358 else
11359 ac_tool_nm=
11361 if test "$GCC" = "yes"; then
11362 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
11363 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11364 set dummy `basename $aros_gcc_nm`; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 case $aros_kernel_nm in
11371 [\\/]* | ?:[\\/]*)
11372 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376 for as_dir in `dirname $aros_gcc_nm`
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11382 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11384 break 2
11386 done
11387 done
11388 IFS=$as_save_IFS
11391 esac
11393 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11394 if test -n "$aros_kernel_nm"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11396 $as_echo "$aros_kernel_nm" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11404 if test "$aros_kernel_nm" = ""; then
11405 for ac_prog in $ac_tool_nm
11407 # Extract the first word of "$ac_prog", so it can be a program name with args.
11408 set dummy $ac_prog; ac_word=$2
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11410 $as_echo_n "checking for $ac_word... " >&6; }
11411 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 case $aros_kernel_nm in
11415 [\\/]* | ?:[\\/]*)
11416 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11426 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11430 done
11431 done
11432 IFS=$as_save_IFS
11435 esac
11437 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11438 if test -n "$aros_kernel_nm"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11440 $as_echo "$aros_kernel_nm" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 test -n "$aros_kernel_nm" && break
11448 done
11453 else
11454 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11455 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11456 set dummy $aros_kernel_nm; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 case $aros_kernel_nm in
11463 [\\/]* | ?:[\\/]*)
11464 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11478 done
11479 done
11480 IFS=$as_save_IFS
11483 esac
11485 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11486 if test -n "$aros_kernel_nm"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11488 $as_echo "$aros_kernel_nm" >&6; }
11489 else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11495 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11498 req_avail=yes
11499 if test "$aros_kernel_nm" = ""; then
11500 req_avail=no
11502 if test "$aros_kernel_nm" = "no"; then
11503 req_avail=no
11505 if test "$req_avail" = "no"; then
11506 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11509 if test "$aros_kernel_strip" = ""; then
11510 if test "$cross_compiling" = "yes" ; then
11511 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11512 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 case $aros_kernel_strip in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11534 done
11535 done
11536 IFS=$as_save_IFS
11539 esac
11541 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11542 if test -n "$aros_kernel_strip"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11544 $as_echo "$aros_kernel_strip" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11551 else
11553 if test "" = ""; then
11554 ac_tool_strip=strip
11555 else
11556 ac_tool_strip=
11558 if test "$GCC" = "yes"; then
11559 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
11560 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11561 set dummy `basename $aros_gcc_strip`; ac_word=$2
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 $as_echo_n "checking for $ac_word... " >&6; }
11564 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 case $aros_kernel_strip in
11568 [\\/]* | ?:[\\/]*)
11569 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in `dirname $aros_gcc_strip`
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11583 done
11584 done
11585 IFS=$as_save_IFS
11588 esac
11590 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11591 if test -n "$aros_kernel_strip"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11593 $as_echo "$aros_kernel_strip" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11601 if test "$aros_kernel_strip" = ""; then
11602 for ac_prog in $ac_tool_strip
11604 # Extract the first word of "$ac_prog", so it can be a program name with args.
11605 set dummy $ac_prog; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 case $aros_kernel_strip in
11612 [\\/]* | ?:[\\/]*)
11613 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11627 done
11628 done
11629 IFS=$as_save_IFS
11632 esac
11634 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11635 if test -n "$aros_kernel_strip"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11637 $as_echo "$aros_kernel_strip" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11644 test -n "$aros_kernel_strip" && break
11645 done
11650 else
11651 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11652 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11653 set dummy $aros_kernel_strip; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $aros_kernel_strip in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11680 esac
11682 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11683 if test -n "$aros_kernel_strip"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11685 $as_echo "$aros_kernel_strip" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11692 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11695 req_avail=yes
11696 if test "$aros_kernel_strip" = ""; then
11697 req_avail=no
11699 if test "$aros_kernel_strip" = "no"; then
11700 req_avail=no
11702 if test "$req_avail" = "no"; then
11703 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11706 # Objcopy and objdump are not required for the kernel
11707 # toolchain on many architectures.
11708 # So we'll look for them, but not make them strictly required.
11709 if test "x$aros_kernel_objcopy" = "x"; then
11710 aros_kernel_objcopy=$aros_host_objcopy
11711 if test "x$aros_kernel_objcopy" = "x"; then
11712 aros_kernel_objcopy=${HOST_TOOLCHAIN_PREFIX}objcopy${HOST_TOOLCHAIN_SUFFIX}
11716 if test "$aros_kernel_objcopy" = ""; then
11717 if test "$cross_compiling" = "yes" ; then
11718 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11719 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 case $aros_kernel_objcopy in
11726 [\\/]* | ?:[\\/]*)
11727 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11746 esac
11748 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11749 if test -n "$aros_kernel_objcopy"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11751 $as_echo "$aros_kernel_objcopy" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11758 else
11760 if test "" = ""; then
11761 ac_tool_objcopy=objcopy
11762 else
11763 ac_tool_objcopy=
11765 if test "$GCC" = "yes"; then
11766 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
11767 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11768 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 case $aros_kernel_objcopy in
11775 [\\/]* | ?:[\\/]*)
11776 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in `dirname $aros_gcc_objcopy`
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11790 done
11791 done
11792 IFS=$as_save_IFS
11795 esac
11797 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11798 if test -n "$aros_kernel_objcopy"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11800 $as_echo "$aros_kernel_objcopy" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11808 if test "$aros_kernel_objcopy" = ""; then
11809 for ac_prog in $ac_tool_objcopy
11811 # Extract the first word of "$ac_prog", so it can be a program name with args.
11812 set dummy $ac_prog; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 case $aros_kernel_objcopy in
11819 [\\/]* | ?:[\\/]*)
11820 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11834 done
11835 done
11836 IFS=$as_save_IFS
11839 esac
11841 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11842 if test -n "$aros_kernel_objcopy"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11844 $as_echo "$aros_kernel_objcopy" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11851 test -n "$aros_kernel_objcopy" && break
11852 done
11857 else
11858 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11859 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11860 set dummy $aros_kernel_objcopy; ac_word=$2
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862 $as_echo_n "checking for $ac_word... " >&6; }
11863 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 case $aros_kernel_objcopy in
11867 [\\/]* | ?:[\\/]*)
11868 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11878 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 break 2
11882 done
11883 done
11884 IFS=$as_save_IFS
11887 esac
11889 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11890 if test -n "$aros_kernel_objcopy"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11892 $as_echo "$aros_kernel_objcopy" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11899 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11902 if test "x$aros_kernel_objdump" = "x"; then
11903 aros_kernel_objdump=$aros_host_objdump
11904 if test "x$aros_kernel_objdump" = "x"; then
11905 aros_kernel_objdump=${HOST_TOOLCHAIN_PREFIX}objdump${HOST_TOOLCHAIN_SUFFIX}
11909 if test "$aros_kernel_objdump" = ""; then
11910 if test "$cross_compiling" = "yes" ; then
11911 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11912 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 case $aros_kernel_objdump in
11919 [\\/]* | ?:[\\/]*)
11920 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11934 done
11935 done
11936 IFS=$as_save_IFS
11939 esac
11941 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11942 if test -n "$aros_kernel_objdump"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11944 $as_echo "$aros_kernel_objdump" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11951 else
11953 if test "" = ""; then
11954 ac_tool_objdump=objdump
11955 else
11956 ac_tool_objdump=
11958 if test "$GCC" = "yes"; then
11959 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
11960 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11961 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963 $as_echo_n "checking for $ac_word... " >&6; }
11964 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 case $aros_kernel_objdump in
11968 [\\/]* | ?:[\\/]*)
11969 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in `dirname $aros_gcc_objdump`
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11983 done
11984 done
11985 IFS=$as_save_IFS
11988 esac
11990 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11991 if test -n "$aros_kernel_objdump"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11993 $as_echo "$aros_kernel_objdump" >&6; }
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
12001 if test "$aros_kernel_objdump" = ""; then
12002 for ac_prog in $ac_tool_objdump
12004 # Extract the first word of "$ac_prog", so it can be a program name with args.
12005 set dummy $ac_prog; ac_word=$2
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 case $aros_kernel_objdump in
12012 [\\/]* | ?:[\\/]*)
12013 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12019 IFS=$as_save_IFS
12020 test -z "$as_dir" && as_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025 break 2
12027 done
12028 done
12029 IFS=$as_save_IFS
12032 esac
12034 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12035 if test -n "$aros_kernel_objdump"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12037 $as_echo "$aros_kernel_objdump" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12044 test -n "$aros_kernel_objdump" && break
12045 done
12050 else
12051 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
12052 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
12053 set dummy $aros_kernel_objdump; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 case $aros_kernel_objdump in
12060 [\\/]* | ?:[\\/]*)
12061 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12075 done
12076 done
12077 IFS=$as_save_IFS
12080 esac
12082 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
12083 if test -n "$aros_kernel_objdump"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
12085 $as_echo "$aros_kernel_objdump" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12092 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
12095 if test "x${crosstools}" != "xyes" ; then
12096 req_avail=yes
12097 if test "$aros_kernel_objcopy" = ""; then
12098 req_avail=no
12100 if test "$aros_kernel_objcopy" = "no"; then
12101 req_avail=no
12103 if test "$req_avail" = "no"; then
12104 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12106 req_avail=yes
12107 if test "$aros_kernel_objdump" = ""; then
12108 req_avail=no
12110 if test "$aros_kernel_objdump" = "no"; then
12111 req_avail=no
12113 if test "$req_avail" = "no"; then
12114 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
12121 $as_echo_n "checking which target tools to use... " >&6; }
12122 if test "$aros_target_toolchain" = "yes"; then
12123 if test "$aros_toolchain" = "llvm" ; then
12124 msg_result="llvm"
12125 else
12126 msg_result=$target_tool_prefix
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
12129 $as_echo "$msg_result" >&6; }
12130 # We are building AROS crosstools
12131 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
12132 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
12133 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
12134 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
12135 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
12136 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
12137 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
12138 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
12139 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
12140 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
12141 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
12142 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
12143 else
12144 # Determine whether AROS or ELF tools should be used
12145 if test "$aros_tool_prefix" = "none"; then
12146 aros_tool_prefix="${elf_tool_prefix}"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
12150 $as_echo "$aros_tool_prefix" >&6; }
12151 # We are *not* building AROS crosstools - use the AROS or ELF tools
12153 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" = ""; then
12154 if test "$cross_compiling" = "yes" ; then
12155 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
12156 set dummy ${target_tool_prefix}cpp; ac_word=$2
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12158 $as_echo_n "checking for $ac_word... " >&6; }
12159 if ${ac_cv_path_orig_target_cpp+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 case $orig_target_cpp in
12163 [\\/]* | ?:[\\/]*)
12164 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12178 done
12179 done
12180 IFS=$as_save_IFS
12183 esac
12185 orig_target_cpp=$ac_cv_path_orig_target_cpp
12186 if test -n "$orig_target_cpp"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12188 $as_echo "$orig_target_cpp" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12195 else
12197 if test "" = ""; then
12198 ac_tool_cpp=cpp
12199 else
12200 ac_tool_cpp=
12202 if test "$GCC" = "yes"; then
12203 aros_gcc_cpp=`$CC -print-prog-name=$ac_tool_cpp`
12204 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
12205 set dummy `basename $aros_gcc_cpp`; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_path_orig_target_cpp+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 case $orig_target_cpp in
12212 [\\/]* | ?:[\\/]*)
12213 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in `dirname $aros_gcc_cpp`
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12227 done
12228 done
12229 IFS=$as_save_IFS
12232 esac
12234 orig_target_cpp=$ac_cv_path_orig_target_cpp
12235 if test -n "$orig_target_cpp"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12237 $as_echo "$orig_target_cpp" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12245 if test "$orig_target_cpp" = ""; then
12246 for ac_prog in $ac_tool_cpp
12248 # Extract the first word of "$ac_prog", so it can be a program name with args.
12249 set dummy $ac_prog; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if ${ac_cv_path_orig_target_cpp+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 case $orig_target_cpp in
12256 [\\/]* | ?:[\\/]*)
12257 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 break 2
12271 done
12272 done
12273 IFS=$as_save_IFS
12276 esac
12278 orig_target_cpp=$ac_cv_path_orig_target_cpp
12279 if test -n "$orig_target_cpp"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12281 $as_echo "$orig_target_cpp" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 test -n "$orig_target_cpp" && break
12289 done
12294 else
12295 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}" : '[^ ]* \(.*\)'`
12296 # 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.
12297 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}${toolchain_cpp_opts}; ac_word=$2
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if ${ac_cv_path_orig_target_cpp+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 case $orig_target_cpp in
12304 [\\/]* | ?:[\\/]*)
12305 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12319 done
12320 done
12321 IFS=$as_save_IFS
12324 esac
12326 orig_target_cpp=$ac_cv_path_orig_target_cpp
12327 if test -n "$orig_target_cpp"; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
12329 $as_echo "$orig_target_cpp" >&6; }
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12336 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
12339 req_avail=yes
12340 if test "$orig_target_cpp" = ""; then
12341 req_avail=no
12343 if test "$orig_target_cpp" = "no"; then
12344 req_avail=no
12346 if test "$req_avail" = "no"; then
12347 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
12350 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
12351 if test "$cross_compiling" = "yes" ; then
12352 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12353 set dummy ${target_tool_prefix}gcc; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_path_orig_target_cc+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 case $orig_target_cc in
12360 [\\/]* | ?:[\\/]*)
12361 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12375 done
12376 done
12377 IFS=$as_save_IFS
12380 esac
12382 orig_target_cc=$ac_cv_path_orig_target_cc
12383 if test -n "$orig_target_cc"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12385 $as_echo "$orig_target_cc" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12392 else
12394 if test "" = ""; then
12395 ac_tool_gcc=gcc
12396 else
12397 ac_tool_gcc=
12399 if test "$GCC" = "yes"; then
12400 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12401 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12402 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_path_orig_target_cc+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 case $orig_target_cc in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in `dirname $aros_gcc_gcc`
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12424 done
12425 done
12426 IFS=$as_save_IFS
12429 esac
12431 orig_target_cc=$ac_cv_path_orig_target_cc
12432 if test -n "$orig_target_cc"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12434 $as_echo "$orig_target_cc" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12442 if test "$orig_target_cc" = ""; then
12443 for ac_prog in $ac_tool_gcc
12445 # Extract the first word of "$ac_prog", so it can be a program name with args.
12446 set dummy $ac_prog; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if ${ac_cv_path_orig_target_cc+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 case $orig_target_cc in
12453 [\\/]* | ?:[\\/]*)
12454 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12468 done
12469 done
12470 IFS=$as_save_IFS
12473 esac
12475 orig_target_cc=$ac_cv_path_orig_target_cc
12476 if test -n "$orig_target_cc"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12478 $as_echo "$orig_target_cc" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12485 test -n "$orig_target_cc" && break
12486 done
12491 else
12492 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12493 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12494 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if ${ac_cv_path_orig_target_cc+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 case $orig_target_cc in
12501 [\\/]* | ?:[\\/]*)
12502 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $PATH
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12512 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12516 done
12517 done
12518 IFS=$as_save_IFS
12521 esac
12523 orig_target_cc=$ac_cv_path_orig_target_cc
12524 if test -n "$orig_target_cc"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12526 $as_echo "$orig_target_cc" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12533 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12536 req_avail=yes
12537 if test "$orig_target_cc" = ""; then
12538 req_avail=no
12540 if test "$orig_target_cc" = "no"; then
12541 req_avail=no
12543 if test "$req_avail" = "no"; then
12544 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12547 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12548 if test "$cross_compiling" = "yes" ; then
12549 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12550 set dummy ${target_tool_prefix}g++; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_path_orig_target_cxx+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 case $orig_target_cxx in
12557 [\\/]* | ?:[\\/]*)
12558 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in $PATH
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12568 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12572 done
12573 done
12574 IFS=$as_save_IFS
12577 esac
12579 orig_target_cxx=$ac_cv_path_orig_target_cxx
12580 if test -n "$orig_target_cxx"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12582 $as_echo "$orig_target_cxx" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12589 else
12591 if test "" = ""; then
12592 ac_tool_g++=g++
12593 else
12594 ac_tool_g++=
12596 if test "$GCC" = "yes"; then
12597 aros_gcc_g++=`$CC -print-prog-name=$ac_tool_g++`
12598 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12599 set dummy `basename $aros_gcc_g++`; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_path_orig_target_cxx+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 case $orig_target_cxx in
12606 [\\/]* | ?:[\\/]*)
12607 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in `dirname $aros_gcc_g++`
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12617 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12621 done
12622 done
12623 IFS=$as_save_IFS
12626 esac
12628 orig_target_cxx=$ac_cv_path_orig_target_cxx
12629 if test -n "$orig_target_cxx"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12631 $as_echo "$orig_target_cxx" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12639 if test "$orig_target_cxx" = ""; then
12640 for ac_prog in $ac_tool_g++
12642 # Extract the first word of "$ac_prog", so it can be a program name with args.
12643 set dummy $ac_prog; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_path_orig_target_cxx+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 case $orig_target_cxx in
12650 [\\/]* | ?:[\\/]*)
12651 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
12660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 break 2
12665 done
12666 done
12667 IFS=$as_save_IFS
12670 esac
12672 orig_target_cxx=$ac_cv_path_orig_target_cxx
12673 if test -n "$orig_target_cxx"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12675 $as_echo "$orig_target_cxx" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12682 test -n "$orig_target_cxx" && break
12683 done
12688 else
12689 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12690 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12691 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_path_orig_target_cxx+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 case $orig_target_cxx in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12709 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12713 done
12714 done
12715 IFS=$as_save_IFS
12718 esac
12720 orig_target_cxx=$ac_cv_path_orig_target_cxx
12721 if test -n "$orig_target_cxx"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12723 $as_echo "$orig_target_cxx" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12730 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12733 req_avail=yes
12734 if test "$orig_target_cxx" = ""; then
12735 req_avail=no
12737 if test "$orig_target_cxx" = "no"; then
12738 req_avail=no
12740 if test "$req_avail" = "no"; then
12741 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12744 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12745 if test "$cross_compiling" = "yes" ; then
12746 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12747 set dummy ${target_tool_prefix}gcc; ac_word=$2
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if ${ac_cv_path_orig_target_ld+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 case $orig_target_ld in
12754 [\\/]* | ?:[\\/]*)
12755 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12769 done
12770 done
12771 IFS=$as_save_IFS
12774 esac
12776 orig_target_ld=$ac_cv_path_orig_target_ld
12777 if test -n "$orig_target_ld"; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12779 $as_echo "$orig_target_ld" >&6; }
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12786 else
12788 if test "" = ""; then
12789 ac_tool_gcc=gcc
12790 else
12791 ac_tool_gcc=
12793 if test "$GCC" = "yes"; then
12794 aros_gcc_gcc=`$CC -print-prog-name=$ac_tool_gcc`
12795 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12796 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if ${ac_cv_path_orig_target_ld+:} false; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 case $orig_target_ld in
12803 [\\/]* | ?:[\\/]*)
12804 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in `dirname $aros_gcc_gcc`
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12818 done
12819 done
12820 IFS=$as_save_IFS
12823 esac
12825 orig_target_ld=$ac_cv_path_orig_target_ld
12826 if test -n "$orig_target_ld"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12828 $as_echo "$orig_target_ld" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12836 if test "$orig_target_ld" = ""; then
12837 for ac_prog in $ac_tool_gcc
12839 # Extract the first word of "$ac_prog", so it can be a program name with args.
12840 set dummy $ac_prog; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_path_orig_target_ld+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 case $orig_target_ld in
12847 [\\/]* | ?:[\\/]*)
12848 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12858 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 break 2
12862 done
12863 done
12864 IFS=$as_save_IFS
12867 esac
12869 orig_target_ld=$ac_cv_path_orig_target_ld
12870 if test -n "$orig_target_ld"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12872 $as_echo "$orig_target_ld" >&6; }
12873 else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12879 test -n "$orig_target_ld" && break
12880 done
12885 else
12886 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12887 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12888 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if ${ac_cv_path_orig_target_ld+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 case $orig_target_ld in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12906 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12915 esac
12917 orig_target_ld=$ac_cv_path_orig_target_ld
12918 if test -n "$orig_target_ld"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12920 $as_echo "$orig_target_ld" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12927 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12930 req_avail=yes
12931 if test "$orig_target_ld" = ""; then
12932 req_avail=no
12934 if test "$orig_target_ld" = "no"; then
12935 req_avail=no
12937 if test "$req_avail" = "no"; then
12938 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12941 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12942 if test "$cross_compiling" = "yes" ; then
12943 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12944 set dummy ${target_tool_prefix}as; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if ${ac_cv_path_orig_target_as+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 case $orig_target_as in
12951 [\\/]* | ?:[\\/]*)
12952 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12966 done
12967 done
12968 IFS=$as_save_IFS
12971 esac
12973 orig_target_as=$ac_cv_path_orig_target_as
12974 if test -n "$orig_target_as"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12976 $as_echo "$orig_target_as" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12983 else
12985 if test "" = ""; then
12986 ac_tool_as=as
12987 else
12988 ac_tool_as=
12990 if test "$GCC" = "yes"; then
12991 aros_gcc_as=`$CC -print-prog-name=$ac_tool_as`
12992 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12993 set dummy `basename $aros_gcc_as`; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if ${ac_cv_path_orig_target_as+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 case $orig_target_as in
13000 [\\/]* | ?:[\\/]*)
13001 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in `dirname $aros_gcc_as`
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13015 done
13016 done
13017 IFS=$as_save_IFS
13020 esac
13022 orig_target_as=$ac_cv_path_orig_target_as
13023 if test -n "$orig_target_as"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13025 $as_echo "$orig_target_as" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13033 if test "$orig_target_as" = ""; then
13034 for ac_prog in $ac_tool_as
13036 # Extract the first word of "$ac_prog", so it can be a program name with args.
13037 set dummy $ac_prog; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if ${ac_cv_path_orig_target_as+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 case $orig_target_as in
13044 [\\/]* | ?:[\\/]*)
13045 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13055 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 break 2
13059 done
13060 done
13061 IFS=$as_save_IFS
13064 esac
13066 orig_target_as=$ac_cv_path_orig_target_as
13067 if test -n "$orig_target_as"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13069 $as_echo "$orig_target_as" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13076 test -n "$orig_target_as" && break
13077 done
13082 else
13083 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
13084 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
13085 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if ${ac_cv_path_orig_target_as+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 case $orig_target_as in
13092 [\\/]* | ?:[\\/]*)
13093 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13103 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13107 done
13108 done
13109 IFS=$as_save_IFS
13112 esac
13114 orig_target_as=$ac_cv_path_orig_target_as
13115 if test -n "$orig_target_as"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
13117 $as_echo "$orig_target_as" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13124 orig_target_as="$orig_target_as $ac_tool_optarg"
13127 req_avail=yes
13128 if test "$orig_target_as" = ""; then
13129 req_avail=no
13131 if test "$orig_target_as" = "no"; then
13132 req_avail=no
13134 if test "$req_avail" = "no"; then
13135 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
13138 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
13139 if test "$cross_compiling" = "yes" ; then
13140 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13141 set dummy ${target_tool_prefix}ar; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 $as_echo_n "checking for $ac_word... " >&6; }
13144 if ${ac_cv_path_orig_target_ar+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 case $orig_target_ar in
13148 [\\/]* | ?:[\\/]*)
13149 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13163 done
13164 done
13165 IFS=$as_save_IFS
13168 esac
13170 orig_target_ar=$ac_cv_path_orig_target_ar
13171 if test -n "$orig_target_ar"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13173 $as_echo "$orig_target_ar" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13180 else
13182 if test "" = ""; then
13183 ac_tool_ar=ar
13184 else
13185 ac_tool_ar=
13187 if test "$GCC" = "yes"; then
13188 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13189 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13190 set dummy `basename $aros_gcc_ar`; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if ${ac_cv_path_orig_target_ar+:} false; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 case $orig_target_ar in
13197 [\\/]* | ?:[\\/]*)
13198 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in `dirname $aros_gcc_ar`
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13212 done
13213 done
13214 IFS=$as_save_IFS
13217 esac
13219 orig_target_ar=$ac_cv_path_orig_target_ar
13220 if test -n "$orig_target_ar"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13222 $as_echo "$orig_target_ar" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13230 if test "$orig_target_ar" = ""; then
13231 for ac_prog in $ac_tool_ar
13233 # Extract the first word of "$ac_prog", so it can be a program name with args.
13234 set dummy $ac_prog; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if ${ac_cv_path_orig_target_ar+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 case $orig_target_ar in
13241 [\\/]* | ?:[\\/]*)
13242 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13252 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13256 done
13257 done
13258 IFS=$as_save_IFS
13261 esac
13263 orig_target_ar=$ac_cv_path_orig_target_ar
13264 if test -n "$orig_target_ar"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13266 $as_echo "$orig_target_ar" >&6; }
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13273 test -n "$orig_target_ar" && break
13274 done
13279 else
13280 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
13281 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
13282 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284 $as_echo_n "checking for $ac_word... " >&6; }
13285 if ${ac_cv_path_orig_target_ar+:} false; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 case $orig_target_ar in
13289 [\\/]* | ?:[\\/]*)
13290 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in $PATH
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13300 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13304 done
13305 done
13306 IFS=$as_save_IFS
13309 esac
13311 orig_target_ar=$ac_cv_path_orig_target_ar
13312 if test -n "$orig_target_ar"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
13314 $as_echo "$orig_target_ar" >&6; }
13315 else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13321 orig_target_ar="$orig_target_ar $ac_tool_optarg"
13324 req_avail=yes
13325 if test "$orig_target_ar" = ""; then
13326 req_avail=no
13328 if test "$orig_target_ar" = "no"; then
13329 req_avail=no
13331 if test "$req_avail" = "no"; then
13332 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
13335 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
13336 if test "$cross_compiling" = "yes" ; then
13337 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
13338 set dummy ${target_tool_prefix}ar; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 case $orig_target_ranlib in
13345 [\\/]* | ?:[\\/]*)
13346 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13360 done
13361 done
13362 IFS=$as_save_IFS
13365 esac
13367 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13368 if test -n "$orig_target_ranlib"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13370 $as_echo "$orig_target_ranlib" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13377 else
13379 if test "" = ""; then
13380 ac_tool_ar=ar
13381 else
13382 ac_tool_ar=
13384 if test "$GCC" = "yes"; then
13385 aros_gcc_ar=`$CC -print-prog-name=$ac_tool_ar`
13386 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
13387 set dummy `basename $aros_gcc_ar`; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 case $orig_target_ranlib in
13394 [\\/]* | ?:[\\/]*)
13395 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in `dirname $aros_gcc_ar`
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13409 done
13410 done
13411 IFS=$as_save_IFS
13414 esac
13416 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13417 if test -n "$orig_target_ranlib"; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13419 $as_echo "$orig_target_ranlib" >&6; }
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 $as_echo "no" >&6; }
13427 if test "$orig_target_ranlib" = ""; then
13428 for ac_prog in $ac_tool_ar
13430 # Extract the first word of "$ac_prog", so it can be a program name with args.
13431 set dummy $ac_prog; ac_word=$2
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13433 $as_echo_n "checking for $ac_word... " >&6; }
13434 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 case $orig_target_ranlib in
13438 [\\/]* | ?:[\\/]*)
13439 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 break 2
13453 done
13454 done
13455 IFS=$as_save_IFS
13458 esac
13460 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13461 if test -n "$orig_target_ranlib"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13463 $as_echo "$orig_target_ranlib" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13470 test -n "$orig_target_ranlib" && break
13471 done
13476 else
13477 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
13478 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
13479 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_orig_target_ranlib+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 case $orig_target_ranlib in
13486 [\\/]* | ?:[\\/]*)
13487 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13503 IFS=$as_save_IFS
13506 esac
13508 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
13509 if test -n "$orig_target_ranlib"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
13511 $as_echo "$orig_target_ranlib" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13518 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
13521 req_avail=yes
13522 if test "$orig_target_ranlib" = ""; then
13523 req_avail=no
13525 if test "$orig_target_ranlib" = "no"; then
13526 req_avail=no
13528 if test "$req_avail" = "no"; then
13529 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
13532 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
13533 if test "$cross_compiling" = "yes" ; then
13534 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
13535 set dummy ${target_tool_prefix}nm; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_path_orig_target_nm+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 case $orig_target_nm in
13542 [\\/]* | ?:[\\/]*)
13543 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in $PATH
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13553 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13557 done
13558 done
13559 IFS=$as_save_IFS
13562 esac
13564 orig_target_nm=$ac_cv_path_orig_target_nm
13565 if test -n "$orig_target_nm"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13567 $as_echo "$orig_target_nm" >&6; }
13568 else
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13574 else
13576 if test "" = ""; then
13577 ac_tool_nm=nm
13578 else
13579 ac_tool_nm=
13581 if test "$GCC" = "yes"; then
13582 aros_gcc_nm=`$CC -print-prog-name=$ac_tool_nm`
13583 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13584 set dummy `basename $aros_gcc_nm`; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if ${ac_cv_path_orig_target_nm+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 case $orig_target_nm in
13591 [\\/]* | ?:[\\/]*)
13592 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in `dirname $aros_gcc_nm`
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13608 IFS=$as_save_IFS
13611 esac
13613 orig_target_nm=$ac_cv_path_orig_target_nm
13614 if test -n "$orig_target_nm"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13616 $as_echo "$orig_target_nm" >&6; }
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; }
13624 if test "$orig_target_nm" = ""; then
13625 for ac_prog in $ac_tool_nm
13627 # Extract the first word of "$ac_prog", so it can be a program name with args.
13628 set dummy $ac_prog; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if ${ac_cv_path_orig_target_nm+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 case $orig_target_nm in
13635 [\\/]* | ?:[\\/]*)
13636 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13642 IFS=$as_save_IFS
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13646 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 break 2
13650 done
13651 done
13652 IFS=$as_save_IFS
13655 esac
13657 orig_target_nm=$ac_cv_path_orig_target_nm
13658 if test -n "$orig_target_nm"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13660 $as_echo "$orig_target_nm" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13667 test -n "$orig_target_nm" && break
13668 done
13673 else
13674 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13675 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13676 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if ${ac_cv_path_orig_target_nm+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 case $orig_target_nm in
13683 [\\/]* | ?:[\\/]*)
13684 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13698 done
13699 done
13700 IFS=$as_save_IFS
13703 esac
13705 orig_target_nm=$ac_cv_path_orig_target_nm
13706 if test -n "$orig_target_nm"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13708 $as_echo "$orig_target_nm" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13715 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13718 req_avail=yes
13719 if test "$orig_target_nm" = ""; then
13720 req_avail=no
13722 if test "$orig_target_nm" = "no"; then
13723 req_avail=no
13725 if test "$req_avail" = "no"; then
13726 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13729 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13730 if test "$cross_compiling" = "yes" ; then
13731 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13732 set dummy ${target_tool_prefix}strip; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if ${ac_cv_path_orig_target_strip+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 case $orig_target_strip in
13739 [\\/]* | ?:[\\/]*)
13740 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13750 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13754 done
13755 done
13756 IFS=$as_save_IFS
13759 esac
13761 orig_target_strip=$ac_cv_path_orig_target_strip
13762 if test -n "$orig_target_strip"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13764 $as_echo "$orig_target_strip" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13771 else
13773 if test "" = ""; then
13774 ac_tool_strip=strip
13775 else
13776 ac_tool_strip=
13778 if test "$GCC" = "yes"; then
13779 aros_gcc_strip=`$CC -print-prog-name=$ac_tool_strip`
13780 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13781 set dummy `basename $aros_gcc_strip`; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 $as_echo_n "checking for $ac_word... " >&6; }
13784 if ${ac_cv_path_orig_target_strip+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 case $orig_target_strip in
13788 [\\/]* | ?:[\\/]*)
13789 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793 for as_dir in `dirname $aros_gcc_strip`
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13799 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 break 2
13803 done
13804 done
13805 IFS=$as_save_IFS
13808 esac
13810 orig_target_strip=$ac_cv_path_orig_target_strip
13811 if test -n "$orig_target_strip"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13813 $as_echo "$orig_target_strip" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13821 if test "$orig_target_strip" = ""; then
13822 for ac_prog in $ac_tool_strip
13824 # Extract the first word of "$ac_prog", so it can be a program name with args.
13825 set dummy $ac_prog; ac_word=$2
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827 $as_echo_n "checking for $ac_word... " >&6; }
13828 if ${ac_cv_path_orig_target_strip+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831 case $orig_target_strip in
13832 [\\/]* | ?:[\\/]*)
13833 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13843 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13847 done
13848 done
13849 IFS=$as_save_IFS
13852 esac
13854 orig_target_strip=$ac_cv_path_orig_target_strip
13855 if test -n "$orig_target_strip"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13857 $as_echo "$orig_target_strip" >&6; }
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13864 test -n "$orig_target_strip" && break
13865 done
13870 else
13871 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13872 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13873 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if ${ac_cv_path_orig_target_strip+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 case $orig_target_strip in
13880 [\\/]* | ?:[\\/]*)
13881 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13895 done
13896 done
13897 IFS=$as_save_IFS
13900 esac
13902 orig_target_strip=$ac_cv_path_orig_target_strip
13903 if test -n "$orig_target_strip"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13905 $as_echo "$orig_target_strip" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13912 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13915 req_avail=yes
13916 if test "$orig_target_strip" = ""; then
13917 req_avail=no
13919 if test "$orig_target_strip" = "no"; then
13920 req_avail=no
13922 if test "$req_avail" = "no"; then
13923 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13926 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13927 if test "$cross_compiling" = "yes" ; then
13928 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13929 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 case $orig_target_objcopy in
13936 [\\/]* | ?:[\\/]*)
13937 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13951 done
13952 done
13953 IFS=$as_save_IFS
13956 esac
13958 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13959 if test -n "$orig_target_objcopy"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13961 $as_echo "$orig_target_objcopy" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13968 else
13970 if test "" = ""; then
13971 ac_tool_objcopy=objcopy
13972 else
13973 ac_tool_objcopy=
13975 if test "$GCC" = "yes"; then
13976 aros_gcc_objcopy=`$CC -print-prog-name=$ac_tool_objcopy`
13977 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13978 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13980 $as_echo_n "checking for $ac_word... " >&6; }
13981 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 case $orig_target_objcopy in
13985 [\\/]* | ?:[\\/]*)
13986 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in `dirname $aros_gcc_objcopy`
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
13995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13996 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
14000 done
14001 done
14002 IFS=$as_save_IFS
14005 esac
14007 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14008 if test -n "$orig_target_objcopy"; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14010 $as_echo "$orig_target_objcopy" >&6; }
14011 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14018 if test "$orig_target_objcopy" = ""; then
14019 for ac_prog in $ac_tool_objcopy
14021 # Extract the first word of "$ac_prog", so it can be a program name with args.
14022 set dummy $ac_prog; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 case $orig_target_objcopy in
14029 [\\/]* | ?:[\\/]*)
14030 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034 for as_dir in $PATH
14036 IFS=$as_save_IFS
14037 test -z "$as_dir" && as_dir=.
14038 for ac_exec_ext in '' $ac_executable_extensions; do
14039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14040 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14042 break 2
14044 done
14045 done
14046 IFS=$as_save_IFS
14049 esac
14051 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14052 if test -n "$orig_target_objcopy"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14054 $as_echo "$orig_target_objcopy" >&6; }
14055 else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14061 test -n "$orig_target_objcopy" && break
14062 done
14067 else
14068 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
14069 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
14070 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072 $as_echo_n "checking for $ac_word... " >&6; }
14073 if ${ac_cv_path_orig_target_objcopy+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 case $orig_target_objcopy in
14077 [\\/]* | ?:[\\/]*)
14078 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
14081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14082 for as_dir in $PATH
14084 IFS=$as_save_IFS
14085 test -z "$as_dir" && as_dir=.
14086 for ac_exec_ext in '' $ac_executable_extensions; do
14087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14088 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
14089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14090 break 2
14092 done
14093 done
14094 IFS=$as_save_IFS
14097 esac
14099 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
14100 if test -n "$orig_target_objcopy"; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
14102 $as_echo "$orig_target_objcopy" >&6; }
14103 else
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14109 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
14112 req_avail=yes
14113 if test "$orig_target_objcopy" = ""; then
14114 req_avail=no
14116 if test "$orig_target_objcopy" = "no"; then
14117 req_avail=no
14119 if test "$req_avail" = "no"; then
14120 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
14123 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
14124 if test "$cross_compiling" = "yes" ; then
14125 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
14126 set dummy ${target_tool_prefix}objdump; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if ${ac_cv_path_orig_target_objdump+:} false; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 case $orig_target_objdump in
14133 [\\/]* | ?:[\\/]*)
14134 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14148 done
14149 done
14150 IFS=$as_save_IFS
14153 esac
14155 orig_target_objdump=$ac_cv_path_orig_target_objdump
14156 if test -n "$orig_target_objdump"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14158 $as_echo "$orig_target_objdump" >&6; }
14159 else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14165 else
14167 if test "" = ""; then
14168 ac_tool_objdump=objdump
14169 else
14170 ac_tool_objdump=
14172 if test "$GCC" = "yes"; then
14173 aros_gcc_objdump=`$CC -print-prog-name=$ac_tool_objdump`
14174 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
14175 set dummy `basename $aros_gcc_objdump`; ac_word=$2
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14177 $as_echo_n "checking for $ac_word... " >&6; }
14178 if ${ac_cv_path_orig_target_objdump+:} false; then :
14179 $as_echo_n "(cached) " >&6
14180 else
14181 case $orig_target_objdump in
14182 [\\/]* | ?:[\\/]*)
14183 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in `dirname $aros_gcc_objdump`
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 break 2
14197 done
14198 done
14199 IFS=$as_save_IFS
14202 esac
14204 orig_target_objdump=$ac_cv_path_orig_target_objdump
14205 if test -n "$orig_target_objdump"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14207 $as_echo "$orig_target_objdump" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14215 if test "$orig_target_objdump" = ""; then
14216 for ac_prog in $ac_tool_objdump
14218 # Extract the first word of "$ac_prog", so it can be a program name with args.
14219 set dummy $ac_prog; ac_word=$2
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14221 $as_echo_n "checking for $ac_word... " >&6; }
14222 if ${ac_cv_path_orig_target_objdump+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 case $orig_target_objdump in
14226 [\\/]* | ?:[\\/]*)
14227 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14241 done
14242 done
14243 IFS=$as_save_IFS
14246 esac
14248 orig_target_objdump=$ac_cv_path_orig_target_objdump
14249 if test -n "$orig_target_objdump"; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14251 $as_echo "$orig_target_objdump" >&6; }
14252 else
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14258 test -n "$orig_target_objdump" && break
14259 done
14264 else
14265 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
14266 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
14267 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if ${ac_cv_path_orig_target_objdump+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 case $orig_target_objdump in
14274 [\\/]* | ?:[\\/]*)
14275 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14294 esac
14296 orig_target_objdump=$ac_cv_path_orig_target_objdump
14297 if test -n "$orig_target_objdump"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
14299 $as_echo "$orig_target_objdump" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14306 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
14309 req_avail=yes
14310 if test "$orig_target_objdump" = ""; then
14311 req_avail=no
14313 if test "$orig_target_objdump" = "no"; then
14314 req_avail=no
14316 if test "$req_avail" = "no"; then
14317 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
14321 if test "$kernel_tool_prefix" = "none" ; then
14322 # No kernel tools specified
14323 # Assume kernel tools == target tools with ELF wrapper
14324 aros_kernel_cc=$orig_target_cc
14325 aros_kernel_cxx=$orig_target_cxx
14326 aros_kernel_cpp="$orig_target_cpp"
14327 aros_kernel_ld=$orig_target_ld
14328 aros_kernel_as=$orig_target_as
14329 aros_kernel_ar=$orig_target_ar
14330 aros_kernel_ranlib=$orig_target_ranlib
14331 aros_kernel_nm=$orig_target_nm
14332 aros_kernel_strip=$orig_target_strip
14333 aros_kernel_objcopy=$orig_target_objcopy
14334 aros_kernel_objdump=$orig_target_objdump
14335 aros_kernel_isa_flags=$aros_isa_flags
14336 use_kernel_cc_wrapper=yes
14339 # At this point, all aros_kernel_* and aros_target_*
14340 # tools should be set up correctly
14342 CC="$aros_kernel_cc $kernel_tool_flags"
14343 CPP="$aros_kernel_cpp"
14345 #-----------------------------------------------------------------------------
14347 # Find all the tools we need to compile. This could be cross-compiling
14348 # though! If that is the case we use the GNU form of the target and
14349 # simply add this to the front of the binary name. This is rather simple,
14350 # but it should work under most circumstances.
14352 # The default tools are to use the same as the host, but only if the
14353 # host and target CPU are the same. With GCC this is normally enough.
14356 aros_cc_pre=""
14357 aros_shared_ld="$aros_host_ld"
14359 aros_target_mkdep="$aros_host_mkdep"
14361 # The default tools executables to be linked to.
14362 if test "$rescomp" != ""; then
14363 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
14364 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14366 $as_echo_n "checking for $ac_word... " >&6; }
14367 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 case $aros_kernel_rescomp in
14371 [\\/]* | ?:[\\/]*)
14372 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14382 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14386 done
14387 done
14388 IFS=$as_save_IFS
14391 esac
14393 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
14394 if test -n "$aros_kernel_rescomp"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
14396 $as_echo "$aros_kernel_rescomp" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14403 req_avail=yes
14404 if test "$aros_kernel_rescomp" = ""; then
14405 req_avail=no
14407 if test "$aros_kernel_rescomp" = "no"; then
14408 req_avail=no
14410 if test "$req_avail" = "no"; then
14411 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
14415 # Set up the sources for the symlink farm
14416 if test "$crosstools" = "yes"; then
14417 crosstools_target=tools-crosstools
14420 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
14421 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
14423 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
14424 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
14425 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
14426 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
14427 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
14428 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
14429 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
14431 # aros_cc_pre is a variable that is added to the front of the compiler name
14432 # in the generated aros-gcc shell script. We need this to enable the cache
14433 # to work across cleaned builds. Also, support DISTCC using the correct
14434 # environment variable.
14437 if test "x${DISTCC}" != "x" ; then
14438 if test "x${CCACHE}" != "x" ; then
14439 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
14440 else
14441 aros_cc_pre="${DISTCC} "
14443 else
14444 if test "x${CCACHE}" != "x" ; then
14445 aros_cc_pre="${CCACHE} "
14449 aros_target_nostdinc_cflags=-nostdinc
14451 aros_target_nostartup_ldflags=-nostartfiles
14453 aros_target_nix_ldflags=-nix
14455 aros_target_detach_ldflags=-detach
14457 aros_target_nostdlib_ldflags=-nostdlib
14460 aros_target_cc_path=
14462 # Target tools
14464 if test "$aros_target_toolchain" != "yes"; then
14465 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
14466 if test "$GCC" = "yes"; then
14467 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
14469 else
14470 # We do not know which c compiler version we are going to build and what we need to know
14471 # here is different for different versions so this will be set later during the
14472 # build of crosstools.
14473 if test "$aros_toolchain" = "gnu" ; then
14474 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
14475 elif test "$aros_toolchain" = "llvm" ; then
14476 prefix="$AROS_CROSSTOOLSDIR/bin/"
14478 aros_target_cc_path=@aros_target_cc_path@
14480 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}${toolchain_cpp_opts}"
14481 aros_target_cc="${prefix}${toolchain_c_compiler}"
14482 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
14483 aros_target_as="${prefix}${toolchain_as}"
14484 if test "${use_ld_wrapper}" = "yes"; then
14485 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
14486 else
14487 aros_target_ld="${prefix}${toolchain_ld}"
14489 aros_toolchain_ld="${prefix}${toolchain_ld}"
14491 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
14492 aros_target_objcopy="${prefix}${toolchain_objcopy}"
14493 aros_target_objdump="${prefix}${toolchain_objdump}"
14494 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
14495 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
14496 aros_target_strip="${prefix}${toolchain_strip}"
14497 aros_plain_nm="${prefix}${toolchain_nm}"
14498 aros_plain_ar="${prefix}${toolchain_ar}"
14500 # Check whether --enable-includes was given.
14501 if test "${enable_includes+set}" = set; then :
14502 enableval=$enable_includes; aros_target_incl=$enable_includes
14503 else
14504 aros_target_incl=no
14508 if test "x$aros_target_incl" = "xno"; then
14509 if test "x$test_kernel_cc" != "xno"; then
14510 aros_target_incl=`$aros_kernel_cc -print-sysroot 2>/dev/null`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
14511 else
14512 aros_target_incl=
14516 if test "x$aros_kernel_includes" = "x"; then
14517 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14518 if test "x$aros_target_incl" != "x"; then
14519 aros_kernel_includes="-isystem $aros_target_incl"
14524 if test "x$test_kernel_cc" != "xno"; then
14525 if test "$aros_kernel_includes" != "" ; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
14527 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
14528 if test "$aros_kernel_cc_includes" = "" ; then
14529 # Try to guess where the directory is.
14530 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
14531 if test -d $aros_kernel_cc_includes; then
14532 # Check if there is also an include-fixed directory and add it
14533 # to kernel compiler's include path as it may contain some of
14534 # the headers we need.
14535 if test -d "$aros_kernel_cc_includes"-fixed; then
14536 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
14538 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
14539 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
14540 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
14542 else
14543 # The directory doesn't exist, we need to do some more work.
14544 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
14546 # These are the headers we're looking for.
14547 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14548 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14549 zutil.h stdint.h"
14551 dirs=
14552 for h in $headers; do
14553 # Which other headers are needed by each of the above?
14554 deps=$(echo "#include <$h>" | \
14555 $aros_kernel_cc -E -M - 2>/dev/null | \
14556 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14558 # Copy all the needed headers to a directory beneath gendir.
14559 for d in $deps; do
14560 h=$(basename $d)
14561 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
14562 sed -n "s,^.*/include\(/.*\),\1,p")
14563 ! test -d $dir && mkdir -p $dir
14564 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14565 done
14566 done
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
14570 $as_echo "$aros_kernel_cc_includes" >&6; }
14571 # Adding -nostdinc to kernel includes as they are always used together.
14572 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
14576 if test "$crosstools" != "yes"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
14578 $as_echo_n "checking for the target compiler's include path... " >&6; }
14579 if test "$aros_target_cc_includes" = "" ; then
14580 #try to guess where the directory is
14581 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
14582 if ! test -d $aros_target_cc_includes; then
14583 #the directory doesn't exist, we need to do some more work
14584 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
14586 #these are the headers we're looking for
14587 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
14588 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
14589 zutil.h"
14591 dirs=
14592 for h in $headers; do
14593 #which other headers each of the above headers needs?
14594 deps=$(echo "#include <$h>" | \
14595 $orig_target_cc -E -M - 2>/dev/null | \
14596 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14598 #copy all the needed headers to a directory beneath gendir
14599 for d in $deps; do
14600 h=$(basename $d)
14601 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14602 sed -n "s,^.*/include\(/.*\),\1,p")
14603 ! test -d $dir && mkdir -p $dir
14604 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14605 done
14606 done
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14610 $as_echo "$aros_target_cc_includes" >&6; }
14611 else
14612 # We do not know which c compiler version we are going to build and what we need to know
14613 # here is different for different versions so this will be set later during the
14614 # build of crosstools.
14615 aros_target_cc_includes=@aros_target_cc_includes@
14619 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14620 # On GCC >= 4.0 -iquote should be used
14623 save_cc="$CC"
14624 save_cflags="$CFLAGS"
14625 if test "x$test_kernel_cc" != "xno"; then
14626 CFLAGS="-iquote."
14627 kernel_cflags_iquote=$host_cflags_iquote
14628 kernel_cflags_iquote_end=$host_cflags_iquote_end
14629 if test "x-$cross_compiling" = "x-yes"; then
14630 CC="$aros_kernel_cc"
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14632 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14633 if test "x-$crosstools" != "x-yes"; then
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14638 main ()
14642 return 0;
14644 _ACEOF
14645 if ac_fn_c_try_compile "$LINENO"; then :
14646 use_no_stack_protector="yes"
14647 else
14648 use_no_stack_protector="no"
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 else
14652 # we do know it is supported for the smallest version of gcc we are going to build
14653 # we assume it's also supported by later versions
14654 use_no_stack_protector=yes
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14657 $as_echo "$use_no_stack_protector" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14659 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14660 if test "x-$crosstools" != "x-yes"; then
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14665 main ()
14669 return 0;
14671 _ACEOF
14672 if ac_fn_c_try_compile "$LINENO"; then :
14673 has_iquote="yes"
14674 else
14675 has_iquote="no"
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 else
14679 # we do know it is supported for the smallest version of gcc we are going to build
14680 # we assume it's also supported by later versions
14681 has_iquote=yes
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14684 $as_echo "$has_iquote" >&6; }
14685 if test "x-$has_iquote" = "x-yes" ; then
14686 kernel_cflags_iquote=-iquote
14687 kernel_cflags_iquote_end=
14688 else
14689 kernel_cflags_iquote=-I
14690 kernel_cflags_iquote_end=-I-
14693 if test "x-$use_no_stack_protector" = "x-yes" ; then
14694 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14697 #-----------------------------------------------------------------------------
14699 # Check if we can explicitly choose older version of symbol hashing
14701 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14702 CC="$aros_kernel_cc"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14704 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14709 main ()
14713 return 0;
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 use_hash_style="yes"
14718 else
14719 use_hash_style="no"
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14724 $as_echo "$use_hash_style" >&6; }
14725 if test "x-$use_hash_style" = "x-yes" ; then
14726 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14728 else
14729 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14730 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14732 CC="$save_cc"
14733 CFLAGS="$save_cflags"
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14742 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14744 # Check whether --with-resolution was given.
14745 if test "${with_resolution+set}" = set; then :
14746 withval=$with_resolution; resolution=$withval
14747 else
14748 resolution=none
14751 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14752 if test "$resolution" = "yes" ; then
14753 resolution="none"
14755 if test "$resolution" = "no" ; then
14756 resolution="none"
14758 if test "$resolution" != "none" ; then
14759 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14760 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14761 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14764 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14765 aros_cv_nominal_width=$aros_nominal_width
14766 aros_cv_nominal_height=$aros_nominal_height
14767 aros_cv_nominal_depth=$aros_nominal_depth
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14770 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14772 # Check whether --with-serial-debug was given.
14773 if test "${with_serial_debug+set}" = set; then :
14774 withval=$with_serial_debug; serial_debug=$withval
14775 else
14776 serial_debug=none
14779 if test "$aros_serial_debug" = 0 ; then
14780 serial_debug_forced=""
14781 if test "$serial_debug" = "yes" ; then
14782 serial_debug="1"
14784 if test "$serial_debug" = "no" ; then
14785 serial_debug="none"
14787 else
14788 serial_debug_forced="(forced)"
14789 serial_debug=$aros_serial_debug
14791 if test "$serial_debug" != "none" ; then
14792 aros_serial_debug=$serial_debug
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14794 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14801 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14802 # Check whether --enable-palm_debug_hack was given.
14803 if test "${enable_palm_debug_hack+set}" = set; then :
14804 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14805 else
14806 palm_debug_hack="no"
14809 if test "$palm_debug_hack" = "yes" ; then
14810 aros_palm_debug_hack="1"
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14813 $as_echo "$palm_debug_hack" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14816 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14817 # Check whether --enable-usb30_code was given.
14818 if test "${enable_usb30_code+set}" = set; then :
14819 enableval=$enable_usb30_code; usb30_code="yes"
14820 else
14821 usb30_code="no"
14824 if test "$usb30_code" = "yes" ; then
14825 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14826 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14829 $as_echo "$usb30_code" >&6; }
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14832 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14833 # Check whether --enable-nesting_supervisor was given.
14834 if test "${enable_nesting_supervisor+set}" = set; then :
14835 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14836 else
14837 nesting_supervisor="no"
14840 if test "$nesting_supervisor" = "yes" ; then
14841 aros_nesting_supervisor="1"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14844 $as_echo "$nesting_supervisor" >&6; }
14846 if test "$aros_enable_mmu" = "" ; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14848 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14849 # Check whether --enable-mmu was given.
14850 if test "${enable_mmu+set}" = set; then :
14851 enableval=$enable_mmu; aros_enable_mmu=$enableval
14852 else
14853 aros_enable_mmu="yes"
14856 if test "$aros_enable_mmu" = "" ; then
14857 aros_enable_mmu="yes"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14860 $as_echo "$aros_enable_mmu" >&6; }
14862 if test "$aros_enable_mmu" = "no" ; then
14863 aros_enable_mmu="0"
14864 else
14865 aros_enable_mmu="1"
14869 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14871 if test "x-$need_dlopen" != "x-no" ; then
14872 save_libs="$LIBS"
14873 LIBS=""
14874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14875 if test "x$ac_cv_func_dlopen" = xyes; then :
14876 have_dl="yes"
14877 else
14878 have_dl="no"
14881 if test "x-$have_dl" = "x-no" ; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14883 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14884 if ${ac_cv_lib_dl_dlopen+:} false; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 ac_check_lib_save_LIBS=$LIBS
14888 LIBS="-ldl $LIBS"
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14892 /* Override any GCC internal prototype to avoid an error.
14893 Use char because int might match the return type of a GCC
14894 builtin and then its argument prototype would still apply. */
14895 #ifdef __cplusplus
14896 extern "C"
14897 #endif
14898 char dlopen ();
14900 main ()
14902 return dlopen ();
14904 return 0;
14906 _ACEOF
14907 if ac_fn_c_try_link "$LINENO"; then :
14908 ac_cv_lib_dl_dlopen=yes
14909 else
14910 ac_cv_lib_dl_dlopen=no
14912 rm -f core conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14914 LIBS=$ac_check_lib_save_LIBS
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14917 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14918 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14919 have_dl="yes"
14920 aros_host_ldflags="$aros_host_ldflags -ldl"
14921 else
14922 have_dl="no"
14926 if test "x-$have_dl" = "x-no" ; then
14927 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14929 LIBS="$save_libs"
14933 # Check whether --enable-x11_hidd was given.
14934 if test "${enable_x11_hidd+set}" = set; then :
14935 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14936 else
14937 x11_hidd="$need_x11"
14940 case "x-$x11_hidd" in
14941 x-yes|x-no|x-auto) ;;
14942 *) x11_hidd="$need_x11" ;;
14943 esac
14945 ENABLE_X11=0
14947 if test "x-$x11_hidd" != "x-no" ; then
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14950 $as_echo_n "checking for X... " >&6; }
14953 # Check whether --with-x was given.
14954 if test "${with_x+set}" = set; then :
14955 withval=$with_x;
14958 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14959 if test "x$with_x" = xno; then
14960 # The user explicitly disabled X.
14961 have_x=disabled
14962 else
14963 case $x_includes,$x_libraries in #(
14964 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14965 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 # One or both of the vars are not set, and there is no cached value.
14969 ac_x_includes=no ac_x_libraries=no
14970 rm -f -r conftest.dir
14971 if mkdir conftest.dir; then
14972 cd conftest.dir
14973 cat >Imakefile <<'_ACEOF'
14974 incroot:
14975 @echo incroot='${INCROOT}'
14976 usrlibdir:
14977 @echo usrlibdir='${USRLIBDIR}'
14978 libdir:
14979 @echo libdir='${LIBDIR}'
14980 _ACEOF
14981 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14982 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14983 for ac_var in incroot usrlibdir libdir; do
14984 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14985 done
14986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14987 for ac_extension in a so sl dylib la dll; do
14988 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14989 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14990 ac_im_usrlibdir=$ac_im_libdir; break
14992 done
14993 # Screen out bogus values from the imake configuration. They are
14994 # bogus both because they are the default anyway, and because
14995 # using them would break gcc on systems where it needs fixed includes.
14996 case $ac_im_incroot in
14997 /usr/include) ac_x_includes= ;;
14998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14999 esac
15000 case $ac_im_usrlibdir in
15001 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15003 esac
15005 cd ..
15006 rm -f -r conftest.dir
15009 # Standard set of common directories for X headers.
15010 # Check X11 before X11Rn because it is often a symlink to the current release.
15011 ac_x_header_dirs='
15012 /usr/X11/include
15013 /usr/X11R7/include
15014 /usr/X11R6/include
15015 /usr/X11R5/include
15016 /usr/X11R4/include
15018 /usr/include/X11
15019 /usr/include/X11R7
15020 /usr/include/X11R6
15021 /usr/include/X11R5
15022 /usr/include/X11R4
15024 /usr/local/X11/include
15025 /usr/local/X11R7/include
15026 /usr/local/X11R6/include
15027 /usr/local/X11R5/include
15028 /usr/local/X11R4/include
15030 /usr/local/include/X11
15031 /usr/local/include/X11R7
15032 /usr/local/include/X11R6
15033 /usr/local/include/X11R5
15034 /usr/local/include/X11R4
15036 /usr/X386/include
15037 /usr/x386/include
15038 /usr/XFree86/include/X11
15040 /usr/include
15041 /usr/local/include
15042 /usr/unsupported/include
15043 /usr/athena/include
15044 /usr/local/x11r5/include
15045 /usr/lpp/Xamples/include
15047 /usr/openwin/include
15048 /usr/openwin/share/include'
15050 if test "$ac_x_includes" = no; then
15051 # Guess where to find include files, by looking for Xlib.h.
15052 # First, try using that file with no special directory specified.
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055 #include <X11/Xlib.h>
15056 _ACEOF
15057 if ac_fn_c_try_cpp "$LINENO"; then :
15058 # We can compile using X headers with no special include directory.
15059 ac_x_includes=
15060 else
15061 for ac_dir in $ac_x_header_dirs; do
15062 if test -r "$ac_dir/X11/Xlib.h"; then
15063 ac_x_includes=$ac_dir
15064 break
15066 done
15068 rm -f conftest.err conftest.i conftest.$ac_ext
15069 fi # $ac_x_includes = no
15071 if test "$ac_x_libraries" = no; then
15072 # Check for the libraries.
15073 # See if we find them without any special options.
15074 # Don't add to $LIBS permanently.
15075 ac_save_LIBS=$LIBS
15076 LIBS="-lX11 $LIBS"
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 #include <X11/Xlib.h>
15081 main ()
15083 XrmInitialize ()
15085 return 0;
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 LIBS=$ac_save_LIBS
15090 # We can link X programs with no special library path.
15091 ac_x_libraries=
15092 else
15093 LIBS=$ac_save_LIBS
15094 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15096 # Don't even attempt the hair of trying to link an X program!
15097 for ac_extension in a so sl dylib la dll; do
15098 if test -r "$ac_dir/libX11.$ac_extension"; then
15099 ac_x_libraries=$ac_dir
15100 break 2
15102 done
15103 done
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 fi # $ac_x_libraries = no
15109 case $ac_x_includes,$ac_x_libraries in #(
15110 no,* | *,no | *\'*)
15111 # Didn't find X, or a directory has "'" in its name.
15112 ac_cv_have_x="have_x=no";; #(
15114 # Record where we found X for the cache.
15115 ac_cv_have_x="have_x=yes\
15116 ac_x_includes='$ac_x_includes'\
15117 ac_x_libraries='$ac_x_libraries'"
15118 esac
15120 ;; #(
15121 *) have_x=yes;;
15122 esac
15123 eval "$ac_cv_have_x"
15124 fi # $with_x != no
15126 if test "$have_x" != yes; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15128 $as_echo "$have_x" >&6; }
15129 no_x=yes
15130 else
15131 # If each of the values was on the command line, it overrides each guess.
15132 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15133 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15134 # Update the cache value to reflect the command line values.
15135 ac_cv_have_x="have_x=yes\
15136 ac_x_includes='$x_includes'\
15137 ac_x_libraries='$x_libraries'"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15139 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15143 if test -n "$x_includes"; then
15144 X_CFLAGS="$X_CFLAGS -I$x_includes"
15147 if test -n "$x_libraries"; then
15148 X_LIBS="$X_LIBS -L$x_libraries"
15151 if test "x-$no_x" = "x-yes" ; then
15153 if test "x-$x11_hidd" != "x-auto" ; then
15154 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
15157 else
15158 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
15159 if test "x-$host_feature_glx" != "x-no" ; then
15160 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
15162 ENABLE_X11=1
15164 aros_host_x11_cflags="$X_CFLAGS"
15165 aros_host_x11_ldflags="$X_LIBS -lX11"
15167 # Check whether --enable-x11_shm was given.
15168 if test "${enable_x11_shm+set}" = set; then :
15169 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
15170 else
15171 x11_hidd_shm="auto"
15174 case "x-$x11_hidd_shm" in
15175 x-yes|x-no|x-auto) ;;
15176 *) x11_hidd_shm="auto" ;;
15177 esac
15179 have_xshm=no
15181 if test "x-$x11_hidd_shm" != "x-no" ; then
15183 for ac_header in sys/ipc.h
15184 do :
15185 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15186 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15187 cat >>confdefs.h <<_ACEOF
15188 #define HAVE_SYS_IPC_H 1
15189 _ACEOF
15193 done
15195 for ac_header in sys/shm.h
15196 do :
15197 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15198 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15199 cat >>confdefs.h <<_ACEOF
15200 #define HAVE_SYS_SHM_H 1
15201 _ACEOF
15205 done
15208 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
15210 save_cflags="$CFLAGS"
15211 save_ldflags="$LDFLAGS"
15212 CFLAGS="$CFLAGS $X_CFLAGS"
15213 LDFLAGS="$LDFLAGS $X_LIBS"
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
15215 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
15216 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 ac_check_lib_save_LIBS=$LIBS
15220 LIBS="-lXext $LIBS"
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15224 /* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 char XShmQueryExtension ();
15232 main ()
15234 return XShmQueryExtension ();
15236 return 0;
15238 _ACEOF
15239 if ac_fn_c_try_link "$LINENO"; then :
15240 ac_cv_lib_Xext_XShmQueryExtension=yes
15241 else
15242 ac_cv_lib_Xext_XShmQueryExtension=no
15244 rm -f core conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15246 LIBS=$ac_check_lib_save_LIBS
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
15249 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
15250 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
15251 have_xshm=yes
15254 CFLAGS="$save_cflags"
15255 LDFLAGS="$save_ldflags"
15259 if test "x-$have_xshm" = "x-yes" ; then
15260 DO_XSHM_SUPPORT="1"
15261 elif test "x-$x11_hidd_shm" = "x-yes" ; then
15262 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
15263 else
15264 DO_XSHM_SUPPORT="0"
15268 # Check whether --enable-x11_vidmode was given.
15269 if test "${enable_x11_vidmode+set}" = set; then :
15270 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
15271 else
15272 x11_hidd_vidmode="auto"
15275 case "x-$x11_hidd_vidmode" in
15276 x-yes|x-no|x-auto) ;;
15277 *) x11_hidd_vidmode="auto" ;;
15278 esac
15280 have_vidmode=no
15282 if test "x-$x11_hidd_vidmode" != "x-no" ; then
15284 save_cflags="$CFLAGS"
15285 save_ldflags="$LDFLAGS"
15286 CFLAGS="$CFLAGS $X_CFLAGS"
15287 LDFLAGS="$LDFLAGS $X_LIBS"
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
15289 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
15290 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-lXxf86vm $LIBS"
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15298 /* Override any GCC internal prototype to avoid an error.
15299 Use char because int might match the return type of a GCC
15300 builtin and then its argument prototype would still apply. */
15301 #ifdef __cplusplus
15302 extern "C"
15303 #endif
15304 char XF86VidModeQueryExtension ();
15306 main ()
15308 return XF86VidModeQueryExtension ();
15310 return 0;
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"; then :
15314 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
15315 else
15316 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
15318 rm -f core conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
15323 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
15324 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
15325 have_vidmode=yes
15328 CFLAGS="$save_cflags"
15329 LDFLAGS="$save_ldflags"
15332 if test "x-$have_vidmode" = "x-yes" ; then
15333 DO_VIDMODE_SUPPORT="1"
15334 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
15335 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
15336 else
15337 DO_VIDMODE_SUPPORT="0"
15342 # Check whether --enable-sdl_hidd was given.
15343 if test "${enable_sdl_hidd+set}" = set; then :
15344 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
15345 else
15346 sdl_hidd="auto"
15349 case "x-$sdl_hidd" in
15350 x-yes|x-no|x-auto) ;;
15351 *) sdl_hidd="auto" ;;
15352 esac
15354 if test "x-$sdl_hidd" != "x-no" ; then
15356 SDL_VERSION=1.2.5
15358 # Check whether --with-sdl-prefix was given.
15359 if test "${with_sdl_prefix+set}" = set; then :
15360 withval=$with_sdl_prefix; sdl_prefix="$withval"
15361 else
15362 sdl_prefix=""
15366 # Check whether --with-sdl-exec-prefix was given.
15367 if test "${with_sdl_exec_prefix+set}" = set; then :
15368 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15369 else
15370 sdl_exec_prefix=""
15373 # Check whether --enable-sdltest was given.
15374 if test "${enable_sdltest+set}" = set; then :
15375 enableval=$enable_sdltest;
15376 else
15377 enable_sdltest=yes
15381 if test x$sdl_exec_prefix != x ; then
15382 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15383 if test x${SDL_CONFIG+set} != xset ; then
15384 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15387 if test x$sdl_prefix != x ; then
15388 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15389 if test x${SDL_CONFIG+set} != xset ; then
15390 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15394 as_save_PATH="$PATH"
15395 if test "x$prefix" != xNONE; then
15396 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15398 # Extract the first word of "sdl-config", so it can be a program name with args.
15399 set dummy sdl-config; ac_word=$2
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15401 $as_echo_n "checking for $ac_word... " >&6; }
15402 if ${ac_cv_path_SDL_CONFIG+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 case $SDL_CONFIG in
15406 [\\/]* | ?:[\\/]*)
15407 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15419 break 2
15421 done
15422 done
15423 IFS=$as_save_IFS
15425 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15427 esac
15429 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15430 if test -n "$SDL_CONFIG"; then
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15432 $as_echo "$SDL_CONFIG" >&6; }
15433 else
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435 $as_echo "no" >&6; }
15439 PATH="$as_save_PATH"
15440 min_sdl_version=$SDL_VERSION
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15442 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15443 no_sdl=""
15444 if test "$SDL_CONFIG" = "no" ; then
15445 no_sdl=yes
15446 else
15447 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15448 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15450 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15451 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15452 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15453 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15454 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15455 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15456 if test "x$enable_sdltest" = "xyes" ; then
15457 ac_save_CFLAGS="$CFLAGS"
15458 ac_save_CXXFLAGS="$CXXFLAGS"
15459 ac_save_LIBS="$LIBS"
15460 CFLAGS="$CFLAGS $SDL_CFLAGS"
15461 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15462 LIBS="$LIBS $SDL_LIBS"
15463 rm -f conf.sdltest
15464 if test "$cross_compiling" = yes; then :
15465 echo $ac_n "cross compiling; assumed OK... $ac_c"
15466 else
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15470 #include <stdio.h>
15471 #include <stdlib.h>
15472 #include <string.h>
15473 #include "SDL.h"
15475 char*
15476 my_strdup (char *str)
15478 char *new_str;
15480 if (str)
15482 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15483 strcpy (new_str, str);
15485 else
15486 new_str = NULL;
15488 return new_str;
15491 int main (int argc, char *argv[])
15493 int major, minor, micro;
15494 char *tmp_version;
15496 /* This hangs on some systems (?)
15497 system ("touch conf.sdltest");
15499 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15501 /* HP/UX 9 (%@#!) writes to sscanf strings */
15502 tmp_version = my_strdup("$min_sdl_version");
15503 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15504 printf("%s, bad version string\n", "$min_sdl_version");
15505 exit(1);
15508 if (($sdl_major_version > major) ||
15509 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15510 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15512 return 0;
15514 else
15516 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15517 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15518 printf("*** best to upgrade to the required version.\n");
15519 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15520 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15521 printf("*** config.cache before re-running configure\n");
15522 return 1;
15527 _ACEOF
15528 if ac_fn_c_try_run "$LINENO"; then :
15530 else
15531 no_sdl=yes
15533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15534 conftest.$ac_objext conftest.beam conftest.$ac_ext
15537 CFLAGS="$ac_save_CFLAGS"
15538 CXXFLAGS="$ac_save_CXXFLAGS"
15539 LIBS="$ac_save_LIBS"
15542 if test "x$no_sdl" = x ; then
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 $as_echo "yes" >&6; }
15545 have_sdl="yes"
15546 else
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15549 if test "$SDL_CONFIG" = "no" ; then
15550 echo "*** The sdl-config script installed by SDL could not be found"
15551 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15552 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15553 echo "*** full path to sdl-config."
15554 else
15555 if test -f conf.sdltest ; then
15557 else
15558 echo "*** Could not run SDL test program, checking why..."
15559 CFLAGS="$CFLAGS $SDL_CFLAGS"
15560 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15561 LIBS="$LIBS $SDL_LIBS"
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15565 #include <stdio.h>
15566 #include "SDL.h"
15568 int main(int argc, char *argv[])
15569 { return 0; }
15570 #undef main
15571 #define main K_and_R_C_main
15574 main ()
15576 return 0;
15578 return 0;
15580 _ACEOF
15581 if ac_fn_c_try_link "$LINENO"; then :
15582 echo "*** The test program compiled, but did not run. This usually means"
15583 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15584 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15585 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15586 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15587 echo "*** is required on your system"
15588 echo "***"
15589 echo "*** If you have an old version installed, it is best to remove it, although"
15590 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15591 else
15592 echo "*** The test program failed to compile or link. See the file config.log for the"
15593 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15594 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15595 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15597 rm -f core conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 CFLAGS="$ac_save_CFLAGS"
15600 CXXFLAGS="$ac_save_CXXFLAGS"
15601 LIBS="$ac_save_LIBS"
15604 SDL_CFLAGS=""
15605 SDL_LIBS=""
15606 have_sdl="no"
15610 rm -f conf.sdltest
15613 if test "x-$have_sdl" != "x-yes" ; then
15615 if test "x-$sdl_hidd" != "x-auto" ; then
15616 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15619 else
15620 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15621 aros_host_sdl_cflags=$SDL_CFLAGS
15622 aros_host_sdl_libs=$SDL_LIBS
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15630 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15631 # Check whether --enable-dbus was given.
15632 if test "${enable_dbus+set}" = set; then :
15633 enableval=$enable_dbus; dbus="yes"
15634 else
15635 dbus="no"
15638 if test "$dbus" = "yes" ; then
15639 ENABLE_DBUS=1
15640 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15641 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15642 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15643 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15644 else
15645 ENABLE_DBUS=0
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15648 $as_echo "$dbus" >&6; }
15650 if test "$use_kernel_cc_wrapper" = "yes" ; then
15651 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15654 aros_kernel_cppflags=$aros_config_cppflags
15655 aros_optimization_cflags="$optimization_level"
15656 if test "$optimization" = "default"; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15658 $as_echo_n "checking default optimization level to use... " >&6; }
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15660 $as_echo "$optimization_level" >&6; }
15663 if ! test "$gcc_default_cpu" = "" ; then
15664 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"
15667 if test "$use_libatomic" = "yes" ; then
15668 aros_cxx_libs="$aros_cxx_libs -latomic"
15672 # Generic
15686 # Compatability with other Amiga-like operating systems
15689 # Host Related ###########################
15721 # Target Related #########################
15815 # Native version related
15820 # MMU related
15823 # Bootloader related
15826 # Unix/Hosted version related
15829 # ARM default GCC target related
15836 # Palm native version related
15839 # Apple iOS related
15844 # Android related
15850 # Debug related
15856 # Collect-aros stuff: "-ius" to ignore undefined symbols
15859 # C compiler related
15864 #ObjC compiler related
15867 #Java related
15870 # DBUS related
15877 #X11 related
15885 #SDL related
15889 # USB3.0 code
15892 case "$aros_flavour" in
15893 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15894 aros_flavour="emulation" ;;
15895 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15896 aros_flavour="emulation" ;;
15897 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15898 aros_flavour="standalone";;
15899 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15900 aros_flavour="standalone";;
15901 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15902 aros_flavour="native" ;;
15903 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15904 aros_flavour="native" ;;
15905 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15906 aros_flavour="linklib" ;;
15907 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15908 aros_flavour="palmnative" ;;
15909 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15910 aros_flavour="mac68knative" ;;
15911 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15912 aros_flavour="ppcnative" ;;
15913 esac
15915 if test ! -d ${aros_inc_dir} ; then
15916 ${MKDIR} ${aros_inc_dir}
15918 if test ! -d ${aros_geninc_dir} ; then
15919 ${MKDIR} ${aros_geninc_dir}
15921 if test ! -d ${aros_hostcfg_dir} ; then
15922 ${MKDIR} ${aros_hostcfg_dir}
15924 if test ! -d ${aros_targetcfg_dir} ; then
15925 ${MKDIR} ${aros_targetcfg_dir}
15927 if test ! -d ${aros_tools_dir} ; then
15928 ${MKDIR} ${aros_tools_dir}
15930 if test ! -d ${aros_scripts_dir} ; then
15931 ${MKDIR} ${aros_scripts_dir}
15934 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15937 # Generic build tools (metamake, etc)
15938 ac_config_commands="$ac_config_commands genmf-executable-support"
15940 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"
15943 # Binutils
15944 ac_config_commands="$ac_config_commands binutils-support"
15946 if test "${use_ld_wrapper}" = "yes"; then
15947 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"
15950 # Bare Elf support script and spec
15951 if test "${use_kernel_cc_wrapper}" = "yes"; then
15952 ac_config_commands="$ac_config_commands elf-compiler-support"
15954 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"
15958 # Host compiler support scripts and spec
15959 if test "${aros_target_toolchain}" = "no"; then
15960 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15962 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"
15966 # Android support
15967 if test "$aros_target_variant" == "android"; then
15968 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15972 # cmake helper
15973 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15976 cat >confcache <<\_ACEOF
15977 # This file is a shell script that caches the results of configure
15978 # tests run on this system so they can be shared between configure
15979 # scripts and configure runs, see configure's option --config-cache.
15980 # It is not useful on other systems. If it contains results you don't
15981 # want to keep, you may remove or edit it.
15983 # config.status only pays attention to the cache file if you give it
15984 # the --recheck option to rerun configure.
15986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15988 # following values.
15990 _ACEOF
15992 # The following way of writing the cache mishandles newlines in values,
15993 # but we know of no workaround that is simple, portable, and efficient.
15994 # So, we kill variables containing newlines.
15995 # Ultrix sh set writes to stderr and can't be redirected directly,
15996 # and sets the high bit in the cache file unless we assign to the vars.
15998 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15999 eval ac_val=\$$ac_var
16000 case $ac_val in #(
16001 *${as_nl}*)
16002 case $ac_var in #(
16003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16004 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16005 esac
16006 case $ac_var in #(
16007 _ | IFS | as_nl) ;; #(
16008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16009 *) { eval $ac_var=; unset $ac_var;} ;;
16010 esac ;;
16011 esac
16012 done
16014 (set) 2>&1 |
16015 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16016 *${as_nl}ac_space=\ *)
16017 # `set' does not quote correctly, so add quotes: double-quote
16018 # substitution turns \\\\ into \\, and sed turns \\ into \.
16019 sed -n \
16020 "s/'/'\\\\''/g;
16021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16022 ;; #(
16024 # `set' quotes correctly as required by POSIX, so do not add quotes.
16025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16027 esac |
16028 sort
16030 sed '
16031 /^ac_cv_env_/b end
16032 t clear
16033 :clear
16034 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16035 t end
16036 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16037 :end' >>confcache
16038 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16039 if test -w "$cache_file"; then
16040 if test "x$cache_file" != "x/dev/null"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16042 $as_echo "$as_me: updating cache $cache_file" >&6;}
16043 if test ! -f "$cache_file" || test -h "$cache_file"; then
16044 cat confcache >"$cache_file"
16045 else
16046 case $cache_file in #(
16047 */* | ?:*)
16048 mv -f confcache "$cache_file"$$ &&
16049 mv -f "$cache_file"$$ "$cache_file" ;; #(
16051 mv -f confcache "$cache_file" ;;
16052 esac
16055 else
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16060 rm -f confcache
16062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16063 # Let make expand exec_prefix.
16064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16066 DEFS=-DHAVE_CONFIG_H
16068 ac_libobjs=
16069 ac_ltlibobjs=
16071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16072 # 1. Remove the extension, and $U if already installed.
16073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16074 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16076 # will be set to the directory where LIBOBJS objects are built.
16077 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16078 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16079 done
16080 LIBOBJS=$ac_libobjs
16082 LTLIBOBJS=$ac_ltlibobjs
16086 : "${CONFIG_STATUS=./config.status}"
16087 ac_write_fail=0
16088 ac_clean_files_save=$ac_clean_files
16089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16092 as_write_fail=0
16093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16094 #! $SHELL
16095 # Generated by $as_me.
16096 # Run this file to recreate the current configuration.
16097 # Compiler output produced by configure, useful for debugging
16098 # configure, is in config.log if it exists.
16100 debug=false
16101 ac_cs_recheck=false
16102 ac_cs_silent=false
16104 SHELL=\${CONFIG_SHELL-$SHELL}
16105 export SHELL
16106 _ASEOF
16107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16108 ## -------------------- ##
16109 ## M4sh Initialization. ##
16110 ## -------------------- ##
16112 # Be more Bourne compatible
16113 DUALCASE=1; export DUALCASE # for MKS sh
16114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16115 emulate sh
16116 NULLCMD=:
16117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16118 # is contrary to our usage. Disable this feature.
16119 alias -g '${1+"$@"}'='"$@"'
16120 setopt NO_GLOB_SUBST
16121 else
16122 case `(set -o) 2>/dev/null` in #(
16123 *posix*) :
16124 set -o posix ;; #(
16125 *) :
16127 esac
16131 as_nl='
16133 export as_nl
16134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16135 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16138 # Prefer a ksh shell builtin over an external printf program on Solaris,
16139 # but without wasting forks for bash or zsh.
16140 if test -z "$BASH_VERSION$ZSH_VERSION" \
16141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16142 as_echo='print -r --'
16143 as_echo_n='print -rn --'
16144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16145 as_echo='printf %s\n'
16146 as_echo_n='printf %s'
16147 else
16148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16150 as_echo_n='/usr/ucb/echo -n'
16151 else
16152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16153 as_echo_n_body='eval
16154 arg=$1;
16155 case $arg in #(
16156 *"$as_nl"*)
16157 expr "X$arg" : "X\\(.*\\)$as_nl";
16158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16159 esac;
16160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16162 export as_echo_n_body
16163 as_echo_n='sh -c $as_echo_n_body as_echo'
16165 export as_echo_body
16166 as_echo='sh -c $as_echo_body as_echo'
16169 # The user is always right.
16170 if test "${PATH_SEPARATOR+set}" != set; then
16171 PATH_SEPARATOR=:
16172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16174 PATH_SEPARATOR=';'
16179 # IFS
16180 # We need space, tab and new line, in precisely that order. Quoting is
16181 # there to prevent editors from complaining about space-tab.
16182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16183 # splitting by setting IFS to empty value.)
16184 IFS=" "" $as_nl"
16186 # Find who we are. Look in the path if we contain no directory separator.
16187 as_myself=
16188 case $0 in #((
16189 *[\\/]* ) as_myself=$0 ;;
16190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16191 for as_dir in $PATH
16193 IFS=$as_save_IFS
16194 test -z "$as_dir" && as_dir=.
16195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16196 done
16197 IFS=$as_save_IFS
16200 esac
16201 # We did not find ourselves, most probably we were run as `sh COMMAND'
16202 # in which case we are not to be found in the path.
16203 if test "x$as_myself" = x; then
16204 as_myself=$0
16206 if test ! -f "$as_myself"; then
16207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16208 exit 1
16211 # Unset variables that we do not need and which cause bugs (e.g. in
16212 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16213 # suppresses any "Segmentation fault" message there. '((' could
16214 # trigger a bug in pdksh 5.2.14.
16215 for as_var in BASH_ENV ENV MAIL MAILPATH
16216 do eval test x\${$as_var+set} = xset \
16217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16218 done
16219 PS1='$ '
16220 PS2='> '
16221 PS4='+ '
16223 # NLS nuisances.
16224 LC_ALL=C
16225 export LC_ALL
16226 LANGUAGE=C
16227 export LANGUAGE
16229 # CDPATH.
16230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16233 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16234 # ----------------------------------------
16235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16237 # script with STATUS, using 1 if that was 0.
16238 as_fn_error ()
16240 as_status=$1; test $as_status -eq 0 && as_status=1
16241 if test "$4"; then
16242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16245 $as_echo "$as_me: error: $2" >&2
16246 as_fn_exit $as_status
16247 } # as_fn_error
16250 # as_fn_set_status STATUS
16251 # -----------------------
16252 # Set $? to STATUS, without forking.
16253 as_fn_set_status ()
16255 return $1
16256 } # as_fn_set_status
16258 # as_fn_exit STATUS
16259 # -----------------
16260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16261 as_fn_exit ()
16263 set +e
16264 as_fn_set_status $1
16265 exit $1
16266 } # as_fn_exit
16268 # as_fn_unset VAR
16269 # ---------------
16270 # Portably unset VAR.
16271 as_fn_unset ()
16273 { eval $1=; unset $1;}
16275 as_unset=as_fn_unset
16276 # as_fn_append VAR VALUE
16277 # ----------------------
16278 # Append the text in VALUE to the end of the definition contained in VAR. Take
16279 # advantage of any shell optimizations that allow amortized linear growth over
16280 # repeated appends, instead of the typical quadratic growth present in naive
16281 # implementations.
16282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16283 eval 'as_fn_append ()
16285 eval $1+=\$2
16287 else
16288 as_fn_append ()
16290 eval $1=\$$1\$2
16292 fi # as_fn_append
16294 # as_fn_arith ARG...
16295 # ------------------
16296 # Perform arithmetic evaluation on the ARGs, and store the result in the
16297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16298 # must be portable across $(()) and expr.
16299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16300 eval 'as_fn_arith ()
16302 as_val=$(( $* ))
16304 else
16305 as_fn_arith ()
16307 as_val=`expr "$@" || test $? -eq 1`
16309 fi # as_fn_arith
16312 if expr a : '\(a\)' >/dev/null 2>&1 &&
16313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16314 as_expr=expr
16315 else
16316 as_expr=false
16319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16320 as_basename=basename
16321 else
16322 as_basename=false
16325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16326 as_dirname=dirname
16327 else
16328 as_dirname=false
16331 as_me=`$as_basename -- "$0" ||
16332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16333 X"$0" : 'X\(//\)$' \| \
16334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16335 $as_echo X/"$0" |
16336 sed '/^.*\/\([^/][^/]*\)\/*$/{
16337 s//\1/
16340 /^X\/\(\/\/\)$/{
16341 s//\1/
16344 /^X\/\(\/\).*/{
16345 s//\1/
16348 s/.*/./; q'`
16350 # Avoid depending upon Character Ranges.
16351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16354 as_cr_digits='0123456789'
16355 as_cr_alnum=$as_cr_Letters$as_cr_digits
16357 ECHO_C= ECHO_N= ECHO_T=
16358 case `echo -n x` in #(((((
16359 -n*)
16360 case `echo 'xy\c'` in
16361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16362 xy) ECHO_C='\c';;
16363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16364 ECHO_T=' ';;
16365 esac;;
16367 ECHO_N='-n';;
16368 esac
16370 rm -f conf$$ conf$$.exe conf$$.file
16371 if test -d conf$$.dir; then
16372 rm -f conf$$.dir/conf$$.file
16373 else
16374 rm -f conf$$.dir
16375 mkdir conf$$.dir 2>/dev/null
16377 if (echo >conf$$.file) 2>/dev/null; then
16378 if ln -s conf$$.file conf$$ 2>/dev/null; then
16379 as_ln_s='ln -s'
16380 # ... but there are two gotchas:
16381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16383 # In both cases, we have to default to `cp -pR'.
16384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16385 as_ln_s='cp -pR'
16386 elif ln conf$$.file conf$$ 2>/dev/null; then
16387 as_ln_s=ln
16388 else
16389 as_ln_s='cp -pR'
16391 else
16392 as_ln_s='cp -pR'
16394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16395 rmdir conf$$.dir 2>/dev/null
16398 # as_fn_mkdir_p
16399 # -------------
16400 # Create "$as_dir" as a directory, including parents if necessary.
16401 as_fn_mkdir_p ()
16404 case $as_dir in #(
16405 -*) as_dir=./$as_dir;;
16406 esac
16407 test -d "$as_dir" || eval $as_mkdir_p || {
16408 as_dirs=
16409 while :; do
16410 case $as_dir in #(
16411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16412 *) as_qdir=$as_dir;;
16413 esac
16414 as_dirs="'$as_qdir' $as_dirs"
16415 as_dir=`$as_dirname -- "$as_dir" ||
16416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16417 X"$as_dir" : 'X\(//\)[^/]' \| \
16418 X"$as_dir" : 'X\(//\)$' \| \
16419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16420 $as_echo X"$as_dir" |
16421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16422 s//\1/
16425 /^X\(\/\/\)[^/].*/{
16426 s//\1/
16429 /^X\(\/\/\)$/{
16430 s//\1/
16433 /^X\(\/\).*/{
16434 s//\1/
16437 s/.*/./; q'`
16438 test -d "$as_dir" && break
16439 done
16440 test -z "$as_dirs" || eval "mkdir $as_dirs"
16441 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16444 } # as_fn_mkdir_p
16445 if mkdir -p . 2>/dev/null; then
16446 as_mkdir_p='mkdir -p "$as_dir"'
16447 else
16448 test -d ./-p && rmdir ./-p
16449 as_mkdir_p=false
16453 # as_fn_executable_p FILE
16454 # -----------------------
16455 # Test if FILE is an executable regular file.
16456 as_fn_executable_p ()
16458 test -f "$1" && test -x "$1"
16459 } # as_fn_executable_p
16460 as_test_x='test -x'
16461 as_executable_p=as_fn_executable_p
16463 # Sed expression to map a string onto a valid CPP name.
16464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16466 # Sed expression to map a string onto a valid variable name.
16467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16470 exec 6>&1
16471 ## ----------------------------------- ##
16472 ## Main body of $CONFIG_STATUS script. ##
16473 ## ----------------------------------- ##
16474 _ASEOF
16475 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16478 # Save the log message, to keep $0 and so on meaningful, and to
16479 # report actual input values of CONFIG_FILES etc. instead of their
16480 # values after options handling.
16481 ac_log="
16482 This file was extended by $as_me, which was
16483 generated by GNU Autoconf 2.69. Invocation command line was
16485 CONFIG_FILES = $CONFIG_FILES
16486 CONFIG_HEADERS = $CONFIG_HEADERS
16487 CONFIG_LINKS = $CONFIG_LINKS
16488 CONFIG_COMMANDS = $CONFIG_COMMANDS
16489 $ $0 $@
16491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16494 _ACEOF
16496 case $ac_config_files in *"
16497 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16498 esac
16500 case $ac_config_headers in *"
16501 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16502 esac
16505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16506 # Files that config.status was made for.
16507 config_files="$ac_config_files"
16508 config_headers="$ac_config_headers"
16509 config_commands="$ac_config_commands"
16511 _ACEOF
16513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16514 ac_cs_usage="\
16515 \`$as_me' instantiates files and other configuration actions
16516 from templates according to the current configuration. Unless the files
16517 and actions are specified as TAGs, all are instantiated by default.
16519 Usage: $0 [OPTION]... [TAG]...
16521 -h, --help print this help, then exit
16522 -V, --version print version number and configuration settings, then exit
16523 --config print configuration, then exit
16524 -q, --quiet, --silent
16525 do not print progress messages
16526 -d, --debug don't remove temporary files
16527 --recheck update $as_me by reconfiguring in the same conditions
16528 --file=FILE[:TEMPLATE]
16529 instantiate the configuration file FILE
16530 --header=FILE[:TEMPLATE]
16531 instantiate the configuration header FILE
16533 Configuration files:
16534 $config_files
16536 Configuration headers:
16537 $config_headers
16539 Configuration commands:
16540 $config_commands
16542 Report bugs to the package provider."
16544 _ACEOF
16545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16546 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16547 ac_cs_version="\\
16548 config.status
16549 configured by $0, generated by GNU Autoconf 2.69,
16550 with options \\"\$ac_cs_config\\"
16552 Copyright (C) 2012 Free Software Foundation, Inc.
16553 This config.status script is free software; the Free Software Foundation
16554 gives unlimited permission to copy, distribute and modify it."
16556 ac_pwd='$ac_pwd'
16557 srcdir='$srcdir'
16558 test -n "\$AWK" || AWK=awk
16559 _ACEOF
16561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16562 # The default lists apply if the user does not specify any file.
16563 ac_need_defaults=:
16564 while test $# != 0
16566 case $1 in
16567 --*=?*)
16568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16570 ac_shift=:
16572 --*=)
16573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16574 ac_optarg=
16575 ac_shift=:
16578 ac_option=$1
16579 ac_optarg=$2
16580 ac_shift=shift
16582 esac
16584 case $ac_option in
16585 # Handling of the options.
16586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16587 ac_cs_recheck=: ;;
16588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16589 $as_echo "$ac_cs_version"; exit ;;
16590 --config | --confi | --conf | --con | --co | --c )
16591 $as_echo "$ac_cs_config"; exit ;;
16592 --debug | --debu | --deb | --de | --d | -d )
16593 debug=: ;;
16594 --file | --fil | --fi | --f )
16595 $ac_shift
16596 case $ac_optarg in
16597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16598 '') as_fn_error $? "missing file argument" ;;
16599 esac
16600 as_fn_append CONFIG_FILES " '$ac_optarg'"
16601 ac_need_defaults=false;;
16602 --header | --heade | --head | --hea )
16603 $ac_shift
16604 case $ac_optarg in
16605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16606 esac
16607 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16608 ac_need_defaults=false;;
16609 --he | --h)
16610 # Conflict between --help and --header
16611 as_fn_error $? "ambiguous option: \`$1'
16612 Try \`$0 --help' for more information.";;
16613 --help | --hel | -h )
16614 $as_echo "$ac_cs_usage"; exit ;;
16615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16617 ac_cs_silent=: ;;
16619 # This is an error.
16620 -*) as_fn_error $? "unrecognized option: \`$1'
16621 Try \`$0 --help' for more information." ;;
16623 *) as_fn_append ac_config_targets " $1"
16624 ac_need_defaults=false ;;
16626 esac
16627 shift
16628 done
16630 ac_configure_extra_args=
16632 if $ac_cs_silent; then
16633 exec 6>/dev/null
16634 ac_configure_extra_args="$ac_configure_extra_args --silent"
16637 _ACEOF
16638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16639 if \$ac_cs_recheck; then
16640 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16641 shift
16642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16643 CONFIG_SHELL='$SHELL'
16644 export CONFIG_SHELL
16645 exec "\$@"
16648 _ACEOF
16649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16650 exec 5>>config.log
16652 echo
16653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16654 ## Running $as_me. ##
16655 _ASBOX
16656 $as_echo "$ac_log"
16657 } >&5
16659 _ACEOF
16660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16662 # INIT-COMMANDS
16665 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16666 aros_tools_dir=${aros_tools_dir}
16670 aros_host_exe_suffix=${aros_host_exe_suffix}
16671 aros_tools_dir=${aros_tools_dir}
16672 aros_target_cpu=${aros_target_cpu}
16673 aros_target_arch=${aros_target_arch}
16674 aros_target_suffix=${aros_target_suffix}
16675 orig_target_nm=${orig_target_nm}
16676 orig_target_as=${orig_target_as}
16677 orig_target_ar=${orig_target_ar}
16678 orig_target_ranlib=${orig_target_ranlib}
16679 orig_target_objdump=${orig_target_objdump}
16680 orig_target_objcopy=${orig_target_objcopy}
16681 orig_target_strip=${orig_target_strip}
16682 aros_kernel_ld=${aros_kernel_ld}
16686 aros_host_exe_suffix=${aros_host_exe_suffix}
16687 aros_tools_dir=${aros_tools_dir}
16688 aros_target_cpu=${aros_target_cpu}
16689 aros_target_arch=${aros_target_arch}
16690 aros_target_suffix=${aros_target_suffix}
16691 aros_kernel_ld=${aros_kernel_ld}
16695 aros_host_exe_suffix=${aros_host_exe_suffix}
16696 aros_tools_dir=${aros_tools_dir}
16697 aros_target_cpu=${aros_target_cpu}
16698 aros_target_arch=${aros_target_arch}
16699 aros_target_suffix=${aros_target_suffix}
16703 _ACEOF
16705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707 # Handling of arguments.
16708 for ac_config_target in $ac_config_targets
16710 case $ac_config_target in
16711 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16712 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16713 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16714 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16715 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16716 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16717 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16718 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16719 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16720 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16721 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16722 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16723 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16724 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16725 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16726 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16727 "${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" ;;
16728 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16729 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16730 "${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" ;;
16731 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16732 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16733 "${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" ;;
16734 "${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" ;;
16735 "${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" ;;
16736 "${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" ;;
16737 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16739 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16740 esac
16741 done
16744 # If the user did not use the arguments to specify the items to instantiate,
16745 # then the envvar interface is used. Set only those that are not.
16746 # We use the long form for the default assignment because of an extremely
16747 # bizarre bug on SunOS 4.1.3.
16748 if $ac_need_defaults; then
16749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16750 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16751 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16754 # Have a temporary directory for convenience. Make it in the build tree
16755 # simply because there is no reason against having it here, and in addition,
16756 # creating and moving files from /tmp can sometimes cause problems.
16757 # Hook for its removal unless debugging.
16758 # Note that there is a small window in which the directory will not be cleaned:
16759 # after its creation but before its name has been assigned to `$tmp'.
16760 $debug ||
16762 tmp= ac_tmp=
16763 trap 'exit_status=$?
16764 : "${ac_tmp:=$tmp}"
16765 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16767 trap 'as_fn_exit 1' 1 2 13 15
16769 # Create a (secure) tmp directory for tmp files.
16772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16773 test -d "$tmp"
16774 } ||
16776 tmp=./conf$$-$RANDOM
16777 (umask 077 && mkdir "$tmp")
16778 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16779 ac_tmp=$tmp
16781 # Set up the scripts for CONFIG_FILES section.
16782 # No need to generate them if there are no CONFIG_FILES.
16783 # This happens for instance with `./config.status config.h'.
16784 if test -n "$CONFIG_FILES"; then
16787 ac_cr=`echo X | tr X '\015'`
16788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16789 # But we know of no other shell where ac_cr would be empty at this
16790 # point, so we can use a bashism as a fallback.
16791 if test "x$ac_cr" = x; then
16792 eval ac_cr=\$\'\\r\'
16794 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16796 ac_cs_awk_cr='\\r'
16797 else
16798 ac_cs_awk_cr=$ac_cr
16801 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16802 _ACEOF
16806 echo "cat >conf$$subs.awk <<_ACEOF" &&
16807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16808 echo "_ACEOF"
16809 } >conf$$subs.sh ||
16810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16812 ac_delim='%!_!# '
16813 for ac_last_try in false false false false false :; do
16814 . ./conf$$subs.sh ||
16815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16817 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16818 if test $ac_delim_n = $ac_delim_num; then
16819 break
16820 elif $ac_last_try; then
16821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16822 else
16823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16825 done
16826 rm -f conf$$subs.sh
16828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16830 _ACEOF
16831 sed -n '
16833 s/^/S["/; s/!.*/"]=/
16836 s/^[^!]*!//
16837 :repl
16838 t repl
16839 s/'"$ac_delim"'$//
16840 t delim
16843 s/\(.\{148\}\)..*/\1/
16844 t more1
16845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16848 b repl
16849 :more1
16850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16853 s/.\{148\}//
16854 t nl
16855 :delim
16857 s/\(.\{148\}\)..*/\1/
16858 t more2
16859 s/["\\]/\\&/g; s/^/"/; s/$/"/
16862 :more2
16863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16866 s/.\{148\}//
16867 t delim
16868 ' <conf$$subs.awk | sed '
16869 /^[^""]/{
16871 s/\n//
16873 ' >>$CONFIG_STATUS || ac_write_fail=1
16874 rm -f conf$$subs.awk
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 _ACAWK
16877 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16878 for (key in S) S_is_set[key] = 1
16879 FS = "\a"
16883 line = $ 0
16884 nfields = split(line, field, "@")
16885 substed = 0
16886 len = length(field[1])
16887 for (i = 2; i < nfields; i++) {
16888 key = field[i]
16889 keylen = length(key)
16890 if (S_is_set[key]) {
16891 value = S[key]
16892 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16893 len += length(value) + length(field[++i])
16894 substed = 1
16895 } else
16896 len += 1 + keylen
16899 print line
16902 _ACAWK
16903 _ACEOF
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16906 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16907 else
16909 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16910 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16911 _ACEOF
16913 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16914 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16915 # trailing colons and then remove the whole line if VPATH becomes empty
16916 # (actually we leave an empty line to preserve line numbers).
16917 if test "x$srcdir" = x.; then
16918 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16920 s///
16921 s/^/:/
16922 s/[ ]*$/:/
16923 s/:\$(srcdir):/:/g
16924 s/:\${srcdir}:/:/g
16925 s/:@srcdir@:/:/g
16926 s/^:*//
16927 s/:*$//
16929 s/\(=[ ]*\).*/\1/
16931 s/\n//
16932 s/^[^=]*=[ ]*$//
16936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 fi # test -n "$CONFIG_FILES"
16939 # Set up the scripts for CONFIG_HEADERS section.
16940 # No need to generate them if there are no CONFIG_HEADERS.
16941 # This happens for instance with `./config.status Makefile'.
16942 if test -n "$CONFIG_HEADERS"; then
16943 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16944 BEGIN {
16945 _ACEOF
16947 # Transform confdefs.h into an awk script `defines.awk', embedded as
16948 # here-document in config.status, that substitutes the proper values into
16949 # config.h.in to produce config.h.
16951 # Create a delimiter string that does not exist in confdefs.h, to ease
16952 # handling of long lines.
16953 ac_delim='%!_!# '
16954 for ac_last_try in false false :; do
16955 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16956 if test -z "$ac_tt"; then
16957 break
16958 elif $ac_last_try; then
16959 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16960 else
16961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16963 done
16965 # For the awk script, D is an array of macro values keyed by name,
16966 # likewise P contains macro parameters if any. Preserve backslash
16967 # newline sequences.
16969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16970 sed -n '
16971 s/.\{148\}/&'"$ac_delim"'/g
16972 t rset
16973 :rset
16974 s/^[ ]*#[ ]*define[ ][ ]*/ /
16975 t def
16977 :def
16978 s/\\$//
16979 t bsnl
16980 s/["\\]/\\&/g
16981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16982 D["\1"]=" \3"/p
16983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16985 :bsnl
16986 s/["\\]/\\&/g
16987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16988 D["\1"]=" \3\\\\\\n"\\/p
16989 t cont
16990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16991 t cont
16993 :cont
16995 s/.\{148\}/&'"$ac_delim"'/g
16996 t clear
16997 :clear
16998 s/\\$//
16999 t bsnlc
17000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17002 :bsnlc
17003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17004 b cont
17005 ' <confdefs.h | sed '
17006 s/'"$ac_delim"'/"\\\
17007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17010 for (key in D) D_is_set[key] = 1
17011 FS = "\a"
17013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17014 line = \$ 0
17015 split(line, arg, " ")
17016 if (arg[1] == "#") {
17017 defundef = arg[2]
17018 mac1 = arg[3]
17019 } else {
17020 defundef = substr(arg[1], 2)
17021 mac1 = arg[2]
17023 split(mac1, mac2, "(") #)
17024 macro = mac2[1]
17025 prefix = substr(line, 1, index(line, defundef) - 1)
17026 if (D_is_set[macro]) {
17027 # Preserve the white space surrounding the "#".
17028 print prefix "define", macro P[macro] D[macro]
17029 next
17030 } else {
17031 # Replace #undef with comments. This is necessary, for example,
17032 # in the case of _POSIX_SOURCE, which is predefined and required
17033 # on some systems where configure will not decide to define it.
17034 if (defundef == "undef") {
17035 print "/*", prefix defundef, macro, "*/"
17036 next
17040 { print }
17041 _ACAWK
17042 _ACEOF
17043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17044 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17045 fi # test -n "$CONFIG_HEADERS"
17048 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17049 shift
17050 for ac_tag
17052 case $ac_tag in
17053 :[FHLC]) ac_mode=$ac_tag; continue;;
17054 esac
17055 case $ac_mode$ac_tag in
17056 :[FHL]*:*);;
17057 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17058 :[FH]-) ac_tag=-:-;;
17059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17060 esac
17061 ac_save_IFS=$IFS
17062 IFS=:
17063 set x $ac_tag
17064 IFS=$ac_save_IFS
17065 shift
17066 ac_file=$1
17067 shift
17069 case $ac_mode in
17070 :L) ac_source=$1;;
17071 :[FH])
17072 ac_file_inputs=
17073 for ac_f
17075 case $ac_f in
17076 -) ac_f="$ac_tmp/stdin";;
17077 *) # Look for the file first in the build tree, then in the source tree
17078 # (if the path is not absolute). The absolute path cannot be DOS-style,
17079 # because $ac_f cannot contain `:'.
17080 test -f "$ac_f" ||
17081 case $ac_f in
17082 [\\/$]*) false;;
17083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17084 esac ||
17085 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17086 esac
17087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17088 as_fn_append ac_file_inputs " '$ac_f'"
17089 done
17091 # Let's still pretend it is `configure' which instantiates (i.e., don't
17092 # use $as_me), people would be surprised to read:
17093 # /* config.h. Generated by config.status. */
17094 configure_input='Generated from '`
17095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17096 `' by configure.'
17097 if test x"$ac_file" != x-; then
17098 configure_input="$ac_file. $configure_input"
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17100 $as_echo "$as_me: creating $ac_file" >&6;}
17102 # Neutralize special characters interpreted by sed in replacement strings.
17103 case $configure_input in #(
17104 *\&* | *\|* | *\\* )
17105 ac_sed_conf_input=`$as_echo "$configure_input" |
17106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17107 *) ac_sed_conf_input=$configure_input;;
17108 esac
17110 case $ac_tag in
17111 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17113 esac
17115 esac
17117 ac_dir=`$as_dirname -- "$ac_file" ||
17118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17119 X"$ac_file" : 'X\(//\)[^/]' \| \
17120 X"$ac_file" : 'X\(//\)$' \| \
17121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17122 $as_echo X"$ac_file" |
17123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17124 s//\1/
17127 /^X\(\/\/\)[^/].*/{
17128 s//\1/
17131 /^X\(\/\/\)$/{
17132 s//\1/
17135 /^X\(\/\).*/{
17136 s//\1/
17139 s/.*/./; q'`
17140 as_dir="$ac_dir"; as_fn_mkdir_p
17141 ac_builddir=.
17143 case "$ac_dir" in
17144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17147 # A ".." for each directory in $ac_dir_suffix.
17148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17149 case $ac_top_builddir_sub in
17150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17152 esac ;;
17153 esac
17154 ac_abs_top_builddir=$ac_pwd
17155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17156 # for backward compatibility:
17157 ac_top_builddir=$ac_top_build_prefix
17159 case $srcdir in
17160 .) # We are building in place.
17161 ac_srcdir=.
17162 ac_top_srcdir=$ac_top_builddir_sub
17163 ac_abs_top_srcdir=$ac_pwd ;;
17164 [\\/]* | ?:[\\/]* ) # Absolute name.
17165 ac_srcdir=$srcdir$ac_dir_suffix;
17166 ac_top_srcdir=$srcdir
17167 ac_abs_top_srcdir=$srcdir ;;
17168 *) # Relative name.
17169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17170 ac_top_srcdir=$ac_top_build_prefix$srcdir
17171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17172 esac
17173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17176 case $ac_mode in
17179 # CONFIG_FILE
17182 _ACEOF
17184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17185 # If the template does not know about datarootdir, expand it.
17186 # FIXME: This hack should be removed a few years after 2.60.
17187 ac_datarootdir_hack=; ac_datarootdir_seen=
17188 ac_sed_dataroot='
17189 /datarootdir/ {
17193 /@datadir@/p
17194 /@docdir@/p
17195 /@infodir@/p
17196 /@localedir@/p
17197 /@mandir@/p'
17198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17199 *datarootdir*) ac_datarootdir_seen=yes;;
17200 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17203 _ACEOF
17204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17205 ac_datarootdir_hack='
17206 s&@datadir@&$datadir&g
17207 s&@docdir@&$docdir&g
17208 s&@infodir@&$infodir&g
17209 s&@localedir@&$localedir&g
17210 s&@mandir@&$mandir&g
17211 s&\\\${datarootdir}&$datarootdir&g' ;;
17212 esac
17213 _ACEOF
17215 # Neutralize VPATH when `$srcdir' = `.'.
17216 # Shell code in configure.ac might set extrasub.
17217 # FIXME: do we really want to maintain this feature?
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 ac_sed_extra="$ac_vpsub
17220 $extrasub
17221 _ACEOF
17222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17225 s|@configure_input@|$ac_sed_conf_input|;t t
17226 s&@top_builddir@&$ac_top_builddir_sub&;t t
17227 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17228 s&@srcdir@&$ac_srcdir&;t t
17229 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17230 s&@top_srcdir@&$ac_top_srcdir&;t t
17231 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17232 s&@builddir@&$ac_builddir&;t t
17233 s&@abs_builddir@&$ac_abs_builddir&;t t
17234 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17235 $ac_datarootdir_hack
17237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17238 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17241 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17243 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17245 which seems to be undefined. Please make sure it is defined" >&5
17246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17247 which seems to be undefined. Please make sure it is defined" >&2;}
17249 rm -f "$ac_tmp/stdin"
17250 case $ac_file in
17251 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17252 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17253 esac \
17254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17258 # CONFIG_HEADER
17260 if test x"$ac_file" != x-; then
17262 $as_echo "/* $configure_input */" \
17263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17264 } >"$ac_tmp/config.h" \
17265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17266 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17268 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17269 else
17270 rm -f "$ac_file"
17271 mv "$ac_tmp/config.h" "$ac_file" \
17272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17274 else
17275 $as_echo "/* $configure_input */" \
17276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17277 || as_fn_error $? "could not create -" "$LINENO" 5
17281 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17282 $as_echo "$as_me: executing $ac_file commands" >&6;}
17284 esac
17287 case $ac_file$ac_mode in
17288 "genmf-executable-support":C)
17289 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
17290 chmod a+x ${aros_tools_dir}/genmf.py
17292 "binutils-support":C)
17293 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17294 mkdir -p $prefix
17295 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17297 chmod a+x ${prefix2}-ld
17299 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
17300 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
17301 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
17302 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
17303 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
17304 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
17305 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
17307 "elf-compiler-support":C)
17308 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17309 mkdir -p $prefix
17310 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
17312 chmod a+x ${prefix2}-gcc
17314 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
17316 "host-compiler-wrapper-support":C)
17317 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
17318 mkdir -p $prefix
17319 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
17321 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
17324 esac
17325 done # for ac_tag
17328 as_fn_exit 0
17329 _ACEOF
17330 ac_clean_files=$ac_clean_files_save
17332 test $ac_write_fail = 0 ||
17333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17336 # configure is writing to config.log, and then calls config.status.
17337 # config.status does its own redirection, appending to config.log.
17338 # Unfortunately, on DOS this fails, as config.log is still kept open
17339 # by configure, so config.status won't be able to write to it; its
17340 # output is simply discarded. So we exec the FD to /dev/null,
17341 # effectively closing config.log, so it can be properly (re)opened and
17342 # appended to by config.status. When coming back to configure, we
17343 # need to make the FD available again.
17344 if test "$no_create" != yes; then
17345 ac_cs_success=:
17346 ac_config_status_args=
17347 test "$silent" = yes &&
17348 ac_config_status_args="$ac_config_status_args --quiet"
17349 exec 5>/dev/null
17350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17351 exec 5>>config.log
17352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17353 # would make configure fail if this is the last instruction.
17354 $ac_cs_success || as_fn_exit 1
17356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17363 #XXX compatability...
17364 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
17366 if test -n "$aros_shared_cflags" ; then
17367 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
17368 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg