revert - libatomic is still needed for target code.
[AROS.git] / configure
blob9b60cccfe19290db36c85a204bd04d4d732a94b3
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_optimization_cflags
673 aros_config_coverage
674 aros_config_lto
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cxxflags
680 aros_debug_cflags
681 aros_debug_cppflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_cppflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cxxflags
691 aros_config_cflags
692 aros_config_cppflags
693 aros_nowarn_flags
694 aros_warn_flags
695 aros_shared_ldflags
696 aros_shared_aflags
697 aros_shared_cflags
698 aros_cxx_libs
699 aros_c_libs
700 spec_obj_format
701 aros_object_format
702 aros_shared_ld
703 aros_shared_default
704 aros_target_nm
705 aros_target_strip
706 aros_target_objcopy
707 aros_target_objdump
708 aros_target_cc_path
709 aros_target_cc_includes
710 aros_target_ld
711 aros_target_as
712 aros_target_cpp
713 aros_target_cxx
714 aros_target_cc
715 aros_plain_ar
716 aros_plain_nm
717 aros_target_ranlib
718 aros_target_ar
719 aros_target_suffix
720 aros_target_variant
721 aros_target_cpu_mode
722 aros_target_cpu
723 aros_target_family
724 aros_target_arch
725 aros_target_bootloader
726 aros_target_iconset
727 aros_target_guitheme
728 aros_target_options
729 target_extra_cfg
730 make_extra_targetcfg
731 make_extra_commands
732 aros_elf_translate
733 aros_tools_dir
734 aros_host_lib_suffix
735 aros_host_exe_suffix
736 aros_host_mkargs
737 aros_host_mkdep
738 aros_host_debug
739 aros_host_ldflags
740 gnu89_inline
741 aros_host_cxxflags
742 aros_host_cflags
743 aros_host_cppflags
744 aros_host_make
745 aros_host_cxx
746 aros_host_cc
747 aros_host_def_cc
748 aros_host_cpp
749 aros_host_cpu
750 aros_host_arch
751 aros_cc_pre
752 host_extra_cfg
753 host_stat_h__unused_used
754 aros_amigaos_compliance
755 AROS_PORTSSRCDIR
756 AROS_CROSSTOOLSDIR
757 SRCDIR
758 AROS_BUILDDIR_UNIX
759 AROS_BUILDDIR
760 aros_build_host
761 aros_toolchain_ld
762 aros_target_toolchain
763 aros_flavour_uc
764 aros_flavour
765 aros_cpu
766 aros_arch
767 SDL_LIBS
768 SDL_CFLAGS
769 SDL_CONFIG
770 XMKMF
771 kernel_cflags_iquote_end
772 kernel_cflags_iquote
773 host_cflags_iquote_end
774 host_cflags_iquote
775 aros_toolchain
776 aros_target_nostdlib_ldflags
777 aros_target_detach_ldflags
778 aros_target_nix_ldflags
779 aros_target_nostartup_ldflags
780 aros_target_nostdinc_cflags
781 aros_kernel_rescomp
782 orig_target_objdump
783 orig_target_objcopy
784 orig_target_strip
785 orig_target_nm
786 orig_target_ranlib
787 orig_target_ar
788 orig_target_as
789 orig_target_ld
790 orig_target_cxx
791 orig_target_cc
792 orig_target_cpp
793 aros_kernel_objdump
794 aros_kernel_objcopy
795 aros_kernel_strip
796 aros_kernel_nm
797 aros_kernel_ranlib
798 aros_kernel_ar
799 aros_kernel_as
800 aros_kernel_ld
801 aros_kernel_cxx
802 aros_kernel_cc
803 aros_kernel_cpp
804 target_gcc_version
806 android_tool
807 CCACHE
808 DISTCC
809 LIBOBJS
810 EGREP
811 GREP
813 TEST
816 libpng_incdir
817 libpng_libextra
818 libpng
819 arosconfig_use_libpngconfig
820 pkgpyexecdir
821 pyexecdir
822 pkgpythondir
823 pythondir
824 PYTHON_PLATFORM
825 PYTHON_EXEC_PREFIX
826 PYTHON_PREFIX
827 PYTHON_VERSION
828 PYTHON
829 PATCH
830 CHMOD
832 PPMTOILBM
833 PNGTOPNM
834 FLEX
835 BISON
838 UNIQ
839 SORT
840 TOUCH
841 MKDIR
842 ECHO
846 aros_host_strip
847 aros_host_ranlib
848 aros_host_ar
849 aros_host_automake
850 aros_host_autoheader
851 aros_host_autoconf
852 aros_host_aclocal
853 aros_host_ld
854 MMAKE
857 ac_ct_CC
858 CFLAGS
860 OBJEXT
861 EXEEXT
862 ac_ct_CXX
863 CPPFLAGS
864 LDFLAGS
865 CXXFLAGS
867 host_os
868 host_vendor
869 host_cpu
870 host
871 build_os
872 build_vendor
873 build_cpu
874 build
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 runstatedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL'
914 ac_subst_files=''
915 ac_user_opts='
916 enable_option_checking
917 with_c_compiler
918 with_cxx_compiler
919 enable_libpng_config
920 with_toolchain
921 enable_lto
922 enable_coverage
923 enable_build_type
924 enable_debug
925 enable_distcc
926 enable_ccache
927 with_kernel_gcc_version
928 with_optimization
929 with_paranoia
930 enable_target_variant
931 with_xcode
932 with_sdk_version
933 with_sdk
934 with_ndk
935 with_ndk_version
936 with_apk_version
937 enable_amigaos_compliance
938 with_kernel_toolchain_prefix
939 with_elf_toolchain_prefix
940 with_aros_toolchain
941 enable_crosstools
942 with_aros_toolchain_install
943 with_binutils_version
944 with_gcc_version
945 enable_objc
946 enable_java
947 with_cpu
948 with_fpu
949 with_float
950 with_portssources
951 with_bootloader
952 with_iconset
953 with_theme
954 enable_includes
955 with_resolution
956 with_serial_debug
957 enable_palm_debug_hack
958 enable_usb30_code
959 enable_nesting_supervisor
960 enable_mmu
961 enable_x11_hidd
962 with_x
963 enable_x11_shm
964 enable_x11_vidmode
965 enable_sdl_hidd
966 with_sdl_prefix
967 with_sdl_exec_prefix
968 enable_sdltest
969 enable_dbus
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
975 CXXFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
981 CFLAGS
983 PYTHON
984 XMKMF'
987 # Initialize some variables set by options.
988 ac_init_help=
989 ac_init_version=false
990 ac_unrecognized_opts=
991 ac_unrecognized_sep=
992 # The variables have the same names as the options, with
993 # dashes changed to underlines.
994 cache_file=/dev/null
995 exec_prefix=NONE
996 no_create=
997 no_recursion=
998 prefix=NONE
999 program_prefix=NONE
1000 program_suffix=NONE
1001 program_transform_name=s,x,x,
1002 silent=
1003 site=
1004 srcdir=
1005 verbose=
1006 x_includes=NONE
1007 x_libraries=NONE
1009 # Installation directory options.
1010 # These are left unexpanded so users can "make install exec_prefix=/foo"
1011 # and all the variables that are supposed to be based on exec_prefix
1012 # by default will actually change.
1013 # Use braces instead of parens because sh, perl, etc. also accept them.
1014 # (The list follows the same order as the GNU Coding Standards.)
1015 bindir='${exec_prefix}/bin'
1016 sbindir='${exec_prefix}/sbin'
1017 libexecdir='${exec_prefix}/libexec'
1018 datarootdir='${prefix}/share'
1019 datadir='${datarootdir}'
1020 sysconfdir='${prefix}/etc'
1021 sharedstatedir='${prefix}/com'
1022 localstatedir='${prefix}/var'
1023 runstatedir='${localstatedir}/run'
1024 includedir='${prefix}/include'
1025 oldincludedir='/usr/include'
1026 docdir='${datarootdir}/doc/${PACKAGE}'
1027 infodir='${datarootdir}/info'
1028 htmldir='${docdir}'
1029 dvidir='${docdir}'
1030 pdfdir='${docdir}'
1031 psdir='${docdir}'
1032 libdir='${exec_prefix}/lib'
1033 localedir='${datarootdir}/locale'
1034 mandir='${datarootdir}/man'
1036 ac_prev=
1037 ac_dashdash=
1038 for ac_option
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1043 ac_prev=
1044 continue
1047 case $ac_option in
1048 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 *=) ac_optarg= ;;
1050 *) ac_optarg=yes ;;
1051 esac
1053 # Accept the important Cygnus configure options, so we can diagnose typos.
1055 case $ac_dashdash$ac_option in
1057 ac_dashdash=yes ;;
1059 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060 ac_prev=bindir ;;
1061 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1062 bindir=$ac_optarg ;;
1064 -build | --build | --buil | --bui | --bu)
1065 ac_prev=build_alias ;;
1066 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1067 build_alias=$ac_optarg ;;
1069 -cache-file | --cache-file | --cache-fil | --cache-fi \
1070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1071 ac_prev=cache_file ;;
1072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1074 cache_file=$ac_optarg ;;
1076 --config-cache | -C)
1077 cache_file=config.cache ;;
1079 -datadir | --datadir | --datadi | --datad)
1080 ac_prev=datadir ;;
1081 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1082 datadir=$ac_optarg ;;
1084 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1085 | --dataroo | --dataro | --datar)
1086 ac_prev=datarootdir ;;
1087 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1088 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1089 datarootdir=$ac_optarg ;;
1091 -disable-* | --disable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid feature name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "enable_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval enable_$ac_useropt=\$ac_optarg ;;
1133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1135 | --exec | --exe | --ex)
1136 ac_prev=exec_prefix ;;
1137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1139 | --exec=* | --exe=* | --ex=*)
1140 exec_prefix=$ac_optarg ;;
1142 -gas | --gas | --ga | --g)
1143 # Obsolete; use --with-gas.
1144 with_gas=yes ;;
1146 -help | --help | --hel | --he | -h)
1147 ac_init_help=long ;;
1148 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1149 ac_init_help=recursive ;;
1150 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1151 ac_init_help=short ;;
1153 -host | --host | --hos | --ho)
1154 ac_prev=host_alias ;;
1155 -host=* | --host=* | --hos=* | --ho=*)
1156 host_alias=$ac_optarg ;;
1158 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159 ac_prev=htmldir ;;
1160 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161 | --ht=*)
1162 htmldir=$ac_optarg ;;
1164 -includedir | --includedir | --includedi | --included | --include \
1165 | --includ | --inclu | --incl | --inc)
1166 ac_prev=includedir ;;
1167 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1168 | --includ=* | --inclu=* | --incl=* | --inc=*)
1169 includedir=$ac_optarg ;;
1171 -infodir | --infodir | --infodi | --infod | --info | --inf)
1172 ac_prev=infodir ;;
1173 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1174 infodir=$ac_optarg ;;
1176 -libdir | --libdir | --libdi | --libd)
1177 ac_prev=libdir ;;
1178 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1179 libdir=$ac_optarg ;;
1181 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1182 | --libexe | --libex | --libe)
1183 ac_prev=libexecdir ;;
1184 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1185 | --libexe=* | --libex=* | --libe=*)
1186 libexecdir=$ac_optarg ;;
1188 -localedir | --localedir | --localedi | --localed | --locale)
1189 ac_prev=localedir ;;
1190 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1191 localedir=$ac_optarg ;;
1193 -localstatedir | --localstatedir | --localstatedi | --localstated \
1194 | --localstate | --localstat | --localsta | --localst | --locals)
1195 ac_prev=localstatedir ;;
1196 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1197 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1198 localstatedir=$ac_optarg ;;
1200 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201 ac_prev=mandir ;;
1202 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1203 mandir=$ac_optarg ;;
1205 -nfp | --nfp | --nf)
1206 # Obsolete; use --without-fp.
1207 with_fp=no ;;
1209 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1210 | --no-cr | --no-c | -n)
1211 no_create=yes ;;
1213 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1214 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215 no_recursion=yes ;;
1217 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1218 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1219 | --oldin | --oldi | --old | --ol | --o)
1220 ac_prev=oldincludedir ;;
1221 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1222 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1223 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1224 oldincludedir=$ac_optarg ;;
1226 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227 ac_prev=prefix ;;
1228 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1229 prefix=$ac_optarg ;;
1231 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1232 | --program-pre | --program-pr | --program-p)
1233 ac_prev=program_prefix ;;
1234 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1235 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1236 program_prefix=$ac_optarg ;;
1238 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1239 | --program-suf | --program-su | --program-s)
1240 ac_prev=program_suffix ;;
1241 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1242 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1243 program_suffix=$ac_optarg ;;
1245 -program-transform-name | --program-transform-name \
1246 | --program-transform-nam | --program-transform-na \
1247 | --program-transform-n | --program-transform- \
1248 | --program-transform | --program-transfor \
1249 | --program-transfo | --program-transf \
1250 | --program-trans | --program-tran \
1251 | --progr-tra | --program-tr | --program-t)
1252 ac_prev=program_transform_name ;;
1253 -program-transform-name=* | --program-transform-name=* \
1254 | --program-transform-nam=* | --program-transform-na=* \
1255 | --program-transform-n=* | --program-transform-=* \
1256 | --program-transform=* | --program-transfor=* \
1257 | --program-transfo=* | --program-transf=* \
1258 | --program-trans=* | --program-tran=* \
1259 | --progr-tra=* | --program-tr=* | --program-t=*)
1260 program_transform_name=$ac_optarg ;;
1262 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263 ac_prev=pdfdir ;;
1264 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1265 pdfdir=$ac_optarg ;;
1267 -psdir | --psdir | --psdi | --psd | --ps)
1268 ac_prev=psdir ;;
1269 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270 psdir=$ac_optarg ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 silent=yes ;;
1276 -runstatedir | --runstatedir | --runstatedi | --runstated \
1277 | --runstate | --runstat | --runsta | --runst | --runs \
1278 | --run | --ru | --r)
1279 ac_prev=runstatedir ;;
1280 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1281 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1282 | --run=* | --ru=* | --r=*)
1283 runstatedir=$ac_optarg ;;
1285 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286 ac_prev=sbindir ;;
1287 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288 | --sbi=* | --sb=*)
1289 sbindir=$ac_optarg ;;
1291 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293 | --sharedst | --shareds | --shared | --share | --shar \
1294 | --sha | --sh)
1295 ac_prev=sharedstatedir ;;
1296 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299 | --sha=* | --sh=*)
1300 sharedstatedir=$ac_optarg ;;
1302 -site | --site | --sit)
1303 ac_prev=site ;;
1304 -site=* | --site=* | --sit=*)
1305 site=$ac_optarg ;;
1307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308 ac_prev=srcdir ;;
1309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310 srcdir=$ac_optarg ;;
1312 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313 | --syscon | --sysco | --sysc | --sys | --sy)
1314 ac_prev=sysconfdir ;;
1315 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317 sysconfdir=$ac_optarg ;;
1319 -target | --target | --targe | --targ | --tar | --ta | --t)
1320 ac_prev=target_alias ;;
1321 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322 target_alias=$ac_optarg ;;
1324 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1325 verbose=yes ;;
1327 -version | --version | --versio | --versi | --vers | -V)
1328 ac_init_version=: ;;
1330 -with-* | --with-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error $? "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1339 "with_$ac_useropt"
1340 "*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval with_$ac_useropt=\$ac_optarg ;;
1346 -without-* | --without-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid package name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1355 "with_$ac_useropt"
1356 "*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval with_$ac_useropt=no ;;
1362 --x)
1363 # Obsolete; use --with-x.
1364 with_x=yes ;;
1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367 | --x-incl | --x-inc | --x-in | --x-i)
1368 ac_prev=x_includes ;;
1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371 x_includes=$ac_optarg ;;
1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375 ac_prev=x_libraries ;;
1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378 x_libraries=$ac_optarg ;;
1380 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1381 Try \`$0 --help' for more information"
1384 *=*)
1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 case $ac_envvar in #(
1388 '' | [0-9]* | *[!_$as_cr_alnum]* )
1389 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1390 esac
1391 eval $ac_envvar=\$ac_optarg
1392 export $ac_envvar ;;
1395 # FIXME: should be removed in autoconf 3.0.
1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1402 esac
1403 done
1405 if test -n "$ac_prev"; then
1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407 as_fn_error $? "missing argument to $ac_option"
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1412 no) ;;
1413 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 esac
1418 # Check all directory arguments for consistency.
1419 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir runstatedir
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1426 case $ac_val in
1427 */ )
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1430 esac
1431 # Be sure to have absolute directory names.
1432 case $ac_val in
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435 esac
1436 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1437 done
1439 # There might be people who depend on the old broken behavior: `$host'
1440 # used to hold the argument of --host etc.
1441 # FIXME: To remove some day.
1442 build=$build_alias
1443 host=$host_alias
1444 target=$target_alias
1446 # FIXME: To remove some day.
1447 if test "x$host_alias" != x; then
1448 if test "x$build_alias" = x; then
1449 cross_compiling=maybe
1450 elif test "x$build_alias" != "x$host_alias"; then
1451 cross_compiling=yes
1455 ac_tool_prefix=
1456 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1458 test "$silent" = yes && exec 6>/dev/null
1461 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di=`ls -di .` &&
1463 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error $? "working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error $? "pwd does not report name of working directory"
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471 ac_srcdir_defaulted=yes
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 $as_echo X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480 s//\1/
1483 /^X\(\/\/\)[^/].*/{
1484 s//\1/
1487 /^X\(\/\/\)$/{
1488 s//\1/
1491 /^X\(\/\).*/{
1492 s//\1/
1495 s/.*/./; q'`
1496 srcdir=$ac_confdir
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 srcdir=..
1500 else
1501 ac_srcdir_defaulted=no
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1507 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 ac_abs_confdir=`(
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1510 pwd)`
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 srcdir=.
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1518 case $srcdir in
1519 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 esac
1521 for ac_var in $ac_precious_vars; do
1522 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_${ac_var}_value=\$${ac_var}
1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526 done
1529 # Report the --help message.
1531 if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1534 cat <<_ACEOF
1535 \`configure' configures this package to adapt to many kinds of systems.
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE. See below for descriptions of some of the useful variables.
1542 Defaults for the options are specified in brackets.
1544 Configuration:
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking ...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1555 Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
1557 [$ac_default_prefix]
1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1559 [PREFIX]
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1566 For better control, use the options below.
1568 Fine tuning of the installation directories:
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
1589 _ACEOF
1591 cat <<\_ACEOF
1593 X features:
1594 --x-includes=DIR X include files are in DIR
1595 --x-libraries=DIR X library files are in DIR
1597 System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 _ACEOF
1603 if test -n "$ac_init_help"; then
1605 cat <<\_ACEOF
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --disable-libpng-config disable libpng-config test and configuration
1612 --enable-lto=yes|no Enable link time optimizations if the target
1613 compiler supports them (default=no)
1614 --enable-coverage=yes|no
1615 Enable coverage instrumentation if the target
1616 compiler supports it (default=no)
1617 --enable-build-type=TYPE
1618 Select the build type. Available types are:
1619 personal, nightly, snapshot, milestone, release. Do
1620 NOT use this option unless you know what you are
1621 doing! (default=personal)
1622 --enable-debug=list Enable different types of debug. Commas or
1623 whitespaces can be used to separate the items in the
1624 list. Available types of debug are: all, none,
1625 messages, stack, mungwall, modules, symbols. If no
1626 list is provided then "all" is assumed.
1627 (default=none)
1628 --enable-distcc Use distcc as a front end to the compiler
1629 (default=no).
1630 --enable-ccache Use ccache as a front end to the compiler
1631 (default=no).
1632 --enable-target-variant=NAME
1633 Enable a specific target variant (default=none)
1634 --enable-amigaos-compliance=VERSION
1635 Enforce userspace AmigaOS compliance to a specific
1636 KickStart version (default=none).
1637 --disable-crosstools Do not build cross-compiler toolchain
1638 --enable-objc Enable Objectve-C support (default=no)
1639 --enable-java Enable Java support (default=no)
1640 --enable-includes=dir Alternative system include directory
1641 --enable-palm-debug-hack
1642 Enable palm debug output hack in palm native
1643 (default=no)
1644 --enable-usb30-code Enable usb3.0 code (default=no)
1645 --enable-nesting-supervisor
1646 Enable nesting supervisor support in unix
1647 (default=no)
1648 --disable-mmu Disable MMU support (default=enabled)
1649 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1650 --enable-x11-shm use X11 shared memory (default=auto)
1651 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1652 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1653 --disable-sdltest Do not try to compile and run a test SDL program
1654 --enable-dbus Enable DBUS support via dbus.library (default=no)
1656 Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-c-compiler=VERSION
1660 Use specified c compiler for building AROS
1661 --with-cxx-compiler=VERSION
1662 Use specified c++ compiler building AROS
1663 --with-toolchain=family Which toolchain family to crosscompile with
1664 (defaults to gnu)
1665 --with-kernel-gcc-version=VERSION
1666 Use gcc-VERSION for building bootstrap
1667 --with-optimization=FLAGS
1668 Use optimization flags FLAGS (e.g
1669 --with-optimization=-O2).
1670 --with-paranoia=(yes|no|FLAGS)
1671 Specific compiler warning FLAGS to enable for
1672 paranoia builds (default=-Wall -Werror)
1673 --with-xcode=PATH Specify XCode path for iOS targets
1674 (default=/Developer).
1675 --with-sdk-version=VERSION
1676 Use iOS SDK version VERSION (default=4.1).
1677 --with-sdk=PATH Specify Android SDK path
1678 (default=$default_android_sdk).
1679 --with-ndk=PATH Specify Android NDK path (default=none).
1680 --with-sdk-version=LEVEL
1681 Use Android SDK for API LEVEL (default=12).
1682 --with-ndk-version=LEVEL
1683 Use Android NDK for API LEVEL (default=9).
1684 --with-apk-version=(release|debug)
1685 Which version of AROSBootstrap.apk to compile.
1686 Release version needs key for signing, debug version
1687 will only run in emulator. (default=release)
1688 --with-kernel-toolchain-prefix=...
1689 Specify crosscompile toolchain prefix for kernel
1690 objects
1691 --with-elf-toolchain-prefix=...
1692 Specify crosscompile toolchain prefix to wrap for
1693 AROS objects
1694 --with-aros-toolchain=PREFIX
1695 Specify prebuilt AROS toolchain. Use yes for default
1696 name
1697 --with-aros-toolchain-install=DIR
1698 Where to install or search for cross tools binaries
1699 --with-binutils-version=VERSION
1700 Use binutils-VERSION for building AROS
1701 --with-gcc-version=VERSION
1702 Compile gcc-VERSION for AROS
1703 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1704 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1705 --with-float=<spec> Specify floating point ABI
1706 (default=$gcc_default_float_abi).
1707 --with-portssources=DIR Where to download sourcecode for external ports
1708 --with-bootloader=NAME Use a specific bootloader
1709 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1710 --with-theme=NAME Use a specific GUI Theme
1711 --with-resolution=XRESxYRESxDEPTH
1712 Default resolution of the initial WorkbenchScreen
1713 --with-serial-debug Enable serial debug output in native (default=no)
1714 --with-x use the X Window System
1715 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1716 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1718 Some influential environment variables:
1719 CXX C++ compiler command
1720 CXXFLAGS C++ compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CC C compiler command
1727 CFLAGS C compiler flags
1728 CPP C preprocessor
1729 PYTHON the Python interpreter
1730 XMKMF Path to xmkmf, Makefile generator for X Window System
1732 Use these variables to override the choices made by `configure' or to help
1733 it to find libraries and programs with nonstandard names/locations.
1735 Report bugs to the package provider.
1736 _ACEOF
1737 ac_status=$?
1740 if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 continue
1746 ac_builddir=.
1748 case "$ac_dir" in
1749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1757 esac ;;
1758 esac
1759 ac_abs_top_builddir=$ac_pwd
1760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1761 # for backward compatibility:
1762 ac_top_builddir=$ac_top_build_prefix
1764 case $srcdir in
1765 .) # We are building in place.
1766 ac_srcdir=.
1767 ac_top_srcdir=$ac_top_builddir_sub
1768 ac_abs_top_srcdir=$ac_pwd ;;
1769 [\\/]* | ?:[\\/]* ) # Absolute name.
1770 ac_srcdir=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir=$srcdir
1772 ac_abs_top_srcdir=$srcdir ;;
1773 *) # Relative name.
1774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1777 esac
1778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780 cd "$ac_dir" || { ac_status=$?; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1788 else
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 fi || ac_status=$?
1791 cd "$ac_pwd" || { ac_status=$?; break; }
1792 done
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1797 cat <<\_ACEOF
1798 configure
1799 generated by GNU Autoconf 2.69
1801 Copyright (C) 2012 Free Software Foundation, Inc.
1802 This configure script is free software; the Free Software Foundation
1803 gives unlimited permission to copy, distribute and modify it.
1804 _ACEOF
1805 exit
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_compile
1888 # ac_fn_c_try_cpp LINENO
1889 # ----------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_c_try_cpp ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } > conftest.i && {
1910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_cpp
1925 # ac_fn_c_try_link LINENO
1926 # -----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_link ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 test -x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=1
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1969 } # ac_fn_c_try_link
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1975 # accordingly.
1976 ac_fn_c_check_header_mongrel ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if eval \${$3+:} false; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 else
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999 else
2000 ac_header_compiler=no
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015 else
2016 ac_header_preproc=no
2018 rm -f conftest.err conftest.i conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 yes:no: )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 no:yes:* )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=\$ac_header_compiler"
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_try_run LINENO
2059 # ----------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2061 # that executables *can* be run.
2062 ac_fn_c_try_run ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2076 { { case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_try") 2>&5
2083 ac_status=$?
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; }; }; then :
2086 ac_retval=0
2087 else
2088 $as_echo "$as_me: program exited with status $ac_status" >&5
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 ac_retval=$ac_status
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2098 } # ac_fn_c_try_run
2100 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2101 # -------------------------------------------------------
2102 # Tests whether HEADER exists and can be compiled using the include files in
2103 # INCLUDES, setting the cache variable VAR accordingly.
2104 ac_fn_c_check_header_compile ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_header_compile
2131 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2132 # ----------------------------------------------------
2133 # Tries to find if the field MEMBER exists in type AGGR, after including
2134 # INCLUDES, setting cache variable VAR accordingly.
2135 ac_fn_c_check_member ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2139 $as_echo_n "checking for $2.$3... " >&6; }
2140 if eval \${$4+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static $2 ac_aggr;
2150 if (ac_aggr.$3)
2151 return 0;
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 static $2 ac_aggr;
2166 if (sizeof ac_aggr.$3)
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 eval "$4=yes"
2174 else
2175 eval "$4=no"
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$4
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_member
2188 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2189 # ---------------------------------------------
2190 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2191 # accordingly.
2192 ac_fn_c_check_decl ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 as_decl_name=`echo $2|sed 's/ *(.*//'`
2196 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2198 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2199 if eval \${$3+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 #ifndef $as_decl_name
2209 #ifdef __cplusplus
2210 (void) $as_decl_use;
2211 #else
2212 (void) $as_decl_name;
2213 #endif
2214 #endif
2217 return 0;
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 eval "$3=yes"
2222 else
2223 eval "$3=no"
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_decl
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 eval "$3=no"
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 if (sizeof ($2))
2254 return 0;
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 main ()
2266 if (sizeof (($2)))
2267 return 0;
2269 return 0;
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2274 else
2275 eval "$3=yes"
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_type
2288 # ac_fn_c_check_func LINENO FUNC VAR
2289 # ----------------------------------
2290 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2291 ac_fn_c_check_func ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if eval \${$3+:} false; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2303 #define $2 innocuous_$2
2305 /* System header to define __stub macros and hopefully few prototypes,
2306 which can conflict with char $2 (); below.
2307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2308 <limits.h> exists even on freestanding compilers. */
2310 #ifdef __STDC__
2311 # include <limits.h>
2312 #else
2313 # include <assert.h>
2314 #endif
2316 #undef $2
2318 /* Override any GCC internal prototype to avoid an error.
2319 Use char because int might match the return type of a GCC
2320 builtin and then its argument prototype would still apply. */
2321 #ifdef __cplusplus
2322 extern "C"
2323 #endif
2324 char $2 ();
2325 /* The GNU C library defines this for functions which it implements
2326 to always fail with ENOSYS. Some functions are actually named
2327 something starting with __ and the normal name is an alias. */
2328 #if defined __stub_$2 || defined __stub___$2
2329 choke me
2330 #endif
2333 main ()
2335 return $2 ();
2337 return 0;
2339 _ACEOF
2340 if ac_fn_c_try_link "$LINENO"; then :
2341 eval "$3=yes"
2342 else
2343 eval "$3=no"
2345 rm -f core conftest.err conftest.$ac_objext \
2346 conftest$ac_exeext conftest.$ac_ext
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_func
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2358 It was created by $as_me, which was
2359 generated by GNU Autoconf 2.69. Invocation command line was
2361 $ $0 $@
2363 _ACEOF
2364 exec 5>>config.log
2366 cat <<_ASUNAME
2367 ## --------- ##
2368 ## Platform. ##
2369 ## --------- ##
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2388 _ASUNAME
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 $as_echo "PATH: $as_dir"
2396 done
2397 IFS=$as_save_IFS
2399 } >&5
2401 cat >&5 <<_ACEOF
2404 ## ----------- ##
2405 ## Core tests. ##
2406 ## ----------- ##
2408 _ACEOF
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_configure_args=
2417 ac_configure_args0=
2418 ac_configure_args1=
2419 ac_must_keep_next=false
2420 for ac_pass in 1 2
2422 for ac_arg
2424 case $ac_arg in
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2428 continue ;;
2429 *\'*)
2430 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 esac
2432 case $ac_pass in
2433 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435 as_fn_append ac_configure_args1 " '$ac_arg'"
2436 if test $ac_must_keep_next = true; then
2437 ac_must_keep_next=false # Got value, back to normal.
2438 else
2439 case $ac_arg in
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2444 case "$ac_configure_args0 " in
2445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2446 esac
2448 -* ) ac_must_keep_next=true ;;
2449 esac
2451 as_fn_append ac_configure_args " '$ac_arg'"
2453 esac
2454 done
2455 done
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log. We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465 # Save into config.log some information that might help in debugging.
2467 echo
2469 $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2472 echo
2473 # The following way of writing the cache mishandles newlines in values,
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in #(
2478 *${as_nl}*)
2479 case $ac_var in #(
2480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2482 esac
2483 case $ac_var in #(
2484 _ | IFS | as_nl) ;; #(
2485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486 *) { eval $ac_var=; unset $ac_var;} ;;
2487 esac ;;
2488 esac
2489 done
2490 (set) 2>&1 |
2491 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492 *${as_nl}ac_space=\ *)
2493 sed -n \
2494 "s/'\''/'\''\\\\'\'''\''/g;
2495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2496 ;; #(
2498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500 esac |
2501 sort
2503 echo
2505 $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2508 echo
2509 for ac_var in $ac_subst_vars
2511 eval ac_val=\$$ac_var
2512 case $ac_val in
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 esac
2515 $as_echo "$ac_var='\''$ac_val'\''"
2516 done | sort
2517 echo
2519 if test -n "$ac_subst_files"; then
2520 $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2523 echo
2524 for ac_var in $ac_subst_files
2526 eval ac_val=\$$ac_var
2527 case $ac_val in
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 esac
2530 $as_echo "$ac_var='\''$ac_val'\''"
2531 done | sort
2532 echo
2535 if test -s confdefs.h; then
2536 $as_echo "## ----------- ##
2537 ## confdefs.h. ##
2538 ## ----------- ##"
2539 echo
2540 cat confdefs.h
2541 echo
2543 test "$ac_signal" != 0 &&
2544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
2546 } >&5
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2549 exit $exit_status
2551 for ac_signal in 1 2 13 15; do
2552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 done
2554 ac_signal=0
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2559 $as_echo "/* confdefs.h */" > confdefs.h
2561 # Predefined preprocessor variables.
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2565 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581 _ACEOF
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2585 _ACEOF
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2590 ac_site_file1=NONE
2591 ac_site_file2=NONE
2592 if test -n "$CONFIG_SITE"; then
2593 # We do not want a PATH search for config.site.
2594 case $CONFIG_SITE in #((
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2596 */*) ac_site_file1=$CONFIG_SITE;;
2597 *) ac_site_file1=./$CONFIG_SITE;;
2598 esac
2599 elif test "x$prefix" != xNONE; then
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2602 else
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 test "x$ac_site_file" = xNONE && continue
2609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612 sed 's/^/| /' "$ac_site_file" >&5
2613 . "$ac_site_file" \
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2619 done
2621 if test -r "$cache_file"; then
2622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627 case $cache_file in
2628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
2630 esac
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635 >$cache_file
2638 as_fn_append ac_header_list " stdlib.h"
2639 as_fn_append ac_header_list " unistd.h"
2640 as_fn_append ac_header_list " sys/param.h"
2641 # Check that the precious variables saved in the cache have kept the same
2642 # value.
2643 ac_cache_corrupted=false
2644 for ac_var in $ac_precious_vars; do
2645 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646 eval ac_new_set=\$ac_env_${ac_var}_set
2647 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648 eval ac_new_val=\$ac_env_${ac_var}_value
2649 case $ac_old_set,$ac_new_set in
2650 set,)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2654 ,set)
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2658 ,);;
2660 if test "x$ac_old_val" != "x$ac_new_val"; then
2661 # differences in whitespace do not lead to failure.
2662 ac_old_val_w=`echo x $ac_old_val`
2663 ac_new_val_w=`echo x $ac_new_val`
2664 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2667 ac_cache_corrupted=:
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2670 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2671 eval $ac_var=\$ac_old_val
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2674 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2676 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677 fi;;
2678 esac
2679 # Pass precious variables to config.status.
2680 if test "$ac_new_set" = set; then
2681 case $ac_new_val in
2682 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683 *) ac_arg=$ac_var=$ac_new_val ;;
2684 esac
2685 case " $ac_configure_args " in
2686 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2687 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688 esac
2690 done
2691 if $ac_cache_corrupted; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2696 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2698 ## -------------------- ##
2699 ## Main body of script. ##
2700 ## -------------------- ##
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 ac_aux_dir=
2711 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2712 if test -f "$ac_dir/install-sh"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/install-sh -c"
2715 break
2716 elif test -f "$ac_dir/install.sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install.sh -c"
2719 break
2720 elif test -f "$ac_dir/shtool"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/shtool install -c"
2723 break
2725 done
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740 # Check what host we are running on.
2741 # If a target is not suggested, we use this one.
2742 # Note that what we call a target, Autoconf calls a host.
2743 # Make sure we can run config.sub.
2744 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2745 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2748 $as_echo_n "checking build system type... " >&6; }
2749 if ${ac_cv_build+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 ac_build_alias=$build_alias
2753 test "x$ac_build_alias" = x &&
2754 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2755 test "x$ac_build_alias" = x &&
2756 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2757 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2758 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2762 $as_echo "$ac_cv_build" >&6; }
2763 case $ac_cv_build in
2764 *-*-*) ;;
2765 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2766 esac
2767 build=$ac_cv_build
2768 ac_save_IFS=$IFS; IFS='-'
2769 set x $ac_cv_build
2770 shift
2771 build_cpu=$1
2772 build_vendor=$2
2773 shift; shift
2774 # Remember, the first character of IFS is used to create $*,
2775 # except with old shells:
2776 build_os=$*
2777 IFS=$ac_save_IFS
2778 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2782 $as_echo_n "checking host system type... " >&6; }
2783 if ${ac_cv_host+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test "x$host_alias" = x; then
2787 ac_cv_host=$ac_cv_build
2788 else
2789 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2790 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2795 $as_echo "$ac_cv_host" >&6; }
2796 case $ac_cv_host in
2797 *-*-*) ;;
2798 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2799 esac
2800 host=$ac_cv_host
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_host
2803 shift
2804 host_cpu=$1
2805 host_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 host_os=$*
2810 IFS=$ac_save_IFS
2811 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815 # Default versions for the gnu tools we build
2816 default_toolchain_family=`cat ${srcdir}/config/toolchain_def`
2817 default_gcc_version=`cat ${srcdir}/config/gcc_def`
2818 exp_gcc_version=`cat ${srcdir}/config/gcc_exp`
2819 default_binutils_version=`cat ${srcdir}/config/binutils_def`
2820 exp_binutils_version=`cat ${srcdir}/config/binutils_exp`
2821 default_grub2_version="2.02"
2822 target_grub2_version=$default_grub2_version
2824 # The AROS target is slightly different to the normal GNU style
2825 # format. We don't have the middle part, and we reverse the order
2826 # of the $(CPU) and $(OS) bits.
2828 # Don't strip the version of the target yet, it might be
2829 # useful on some systems.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2832 $as_echo_n "checking for AROS style target... " >&6; }
2834 if test "$target" = "NONE" ; then
2835 target=$host_os-$host_cpu
2836 else
2837 if test "$target" = "" ; then
2838 target=$host_os-$host_cpu
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2842 $as_echo "$target" >&6; }
2844 if test "$host_os" = "mingw32" ; then
2845 PWDCMD="pwd -W"
2848 # Don't know where else to put this...
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2850 $as_echo_n "checking building AROS in... " >&6; }
2851 AROS_BUILDDIR=`${PWDCMD-pwd}`
2852 AROS_BUILDDIR_UNIX=${PWD}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2854 $as_echo "$AROS_BUILDDIR" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2857 $as_echo_n "checking AROS source in... " >&6; }
2858 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2859 SRCDIR=${srcpwd}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2861 $as_echo "$SRCDIR" >&6; }
2863 # Parse the target field into something useful.
2865 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2866 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2869 # Some debug output, to be removed again.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2871 $as_echo_n "checking for target system (debug output)... " >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2873 $as_echo "$target_os" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2875 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2877 $as_echo "$target_cpu" >&6; }
2879 aros_nominal_width=800
2880 aros_nominal_height=600
2881 aros_nominal_depth=4
2884 default_c_compilers="gcc clang cc"
2886 # Check whether --with-c-compiler was given.
2887 if test "${with_c_compiler+set}" = set; then :
2888 withval=$with_c_compiler; use_c_compiler="$withval"
2889 else
2890 use_c_compiler=""
2893 if test "$use_c_compiler" = ""; then
2894 host_c_compilers="$default_c_compilers"
2895 else
2896 host_c_compilers="$use_c_compiler"
2899 default_cxx_compilers="g++ clang++ c++"
2901 # Check whether --with-cxx-compiler was given.
2902 if test "${with_cxx_compiler+set}" = set; then :
2903 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2904 else
2905 use_cxx_compiler=""
2908 if test "$use_cxx_compiler" = ""; then
2909 host_cxx_compilers="$default_cxx_compilers"
2910 else
2911 host_cxx_compilers="$use_cxx_compiler"
2915 # The first step is to find the host binaries.
2916 # Check for a compiler.
2917 # Due to a bug in autoconf check for c++ compiler first.
2918 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2919 ac_ext=cpp
2920 ac_cpp='$CXXCPP $CPPFLAGS'
2921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2924 if test -z "$CXX"; then
2925 if test -n "$CCC"; then
2926 CXX=$CCC
2927 else
2928 if test -n "$ac_tool_prefix"; then
2929 for ac_prog in ${host_cxx_compilers}
2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CXX+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CXX"; then
2939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2954 IFS=$as_save_IFS
2958 CXX=$ac_cv_prog_CXX
2959 if test -n "$CXX"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2961 $as_echo "$CXX" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2968 test -n "$CXX" && break
2969 done
2971 if test -z "$CXX"; then
2972 ac_ct_CXX=$CXX
2973 for ac_prog in ${host_cxx_compilers}
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$ac_ct_CXX"; then
2983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_CXX="$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3003 if test -n "$ac_ct_CXX"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3005 $as_echo "$ac_ct_CXX" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$ac_ct_CXX" && break
3013 done
3015 if test "x$ac_ct_CXX" = x; then
3016 CXX="g++"
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CXX=$ac_ct_CXX
3030 # Provide some information about the compiler.
3031 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3032 set X $ac_compile
3033 ac_compiler=$2
3034 for ac_option in --version -v -V -qversion; do
3035 { { ac_try="$ac_compiler $ac_option >&5"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3043 ac_status=$?
3044 if test -s conftest.err; then
3045 sed '10a\
3046 ... rest of stderr output deleted ...
3047 10q' conftest.err >conftest.er1
3048 cat conftest.er1 >&5
3050 rm -f conftest.er1 conftest.err
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 done
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3059 main ()
3063 return 0;
3065 _ACEOF
3066 ac_clean_files_save=$ac_clean_files
3067 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3068 # Try to create an executable without -o first, disregard a.out.
3069 # It will help us diagnose broken compilers, and finding out an intuition
3070 # of exeext.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3072 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3073 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 # The possible output files:
3076 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3078 ac_rmfiles=
3079 for ac_file in $ac_files
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 esac
3085 done
3086 rm -f $ac_rmfiles
3088 if { { ac_try="$ac_link_default"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link_default") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3100 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3101 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3102 # so that the user can short-circuit this test for compilers unknown to
3103 # Autoconf.
3104 for ac_file in $ac_files ''
3106 test -f "$ac_file" || continue
3107 case $ac_file in
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3110 [ab].out )
3111 # We found the default executable, but exeext='' is most
3112 # certainly right.
3113 break;;
3114 *.* )
3115 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3116 then :; else
3117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 # We set ac_cv_exeext here because the later test for it is not
3120 # safe: cross compilers may not add the suffix if given an `-o'
3121 # argument, so we may need to know it at that point already.
3122 # Even if this section looks crufty: it has the advantage of
3123 # actually working.
3124 break;;
3126 break;;
3127 esac
3128 done
3129 test "$ac_cv_exeext" = no && ac_cv_exeext=
3131 else
3132 ac_file=''
3134 if test -z "$ac_file"; then :
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error 77 "C++ compiler cannot create executables
3143 See \`config.log' for more details" "$LINENO" 5; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 $as_echo "yes" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3149 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3151 $as_echo "$ac_file" >&6; }
3152 ac_exeext=$ac_cv_exeext
3154 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3157 $as_echo_n "checking for suffix of executables... " >&6; }
3158 if { { ac_try="$ac_link"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3171 # work properly (i.e., refer to `conftest.exe'), while it won't with
3172 # `rm'.
3173 for ac_file in conftest.exe conftest conftest.*; do
3174 test -f "$ac_file" || continue
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 break;;
3179 * ) break;;
3180 esac
3181 done
3182 else
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details" "$LINENO" 5; }
3188 rm -f conftest conftest$ac_cv_exeext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3190 $as_echo "$ac_cv_exeext" >&6; }
3192 rm -f conftest.$ac_ext
3193 EXEEXT=$ac_cv_exeext
3194 ac_exeext=$EXEEXT
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3197 #include <stdio.h>
3199 main ()
3201 FILE *f = fopen ("conftest.out", "w");
3202 return ferror (f) || fclose (f) != 0;
3205 return 0;
3207 _ACEOF
3208 ac_clean_files="$ac_clean_files conftest.out"
3209 # Check that the compiler produces executables we can run. If not, either
3210 # the compiler is broken, or we cross compile.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3212 $as_echo_n "checking whether we are cross compiling... " >&6; }
3213 if test "$cross_compiling" != yes; then
3214 { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3225 if { ac_try='./conftest$ac_cv_exeext'
3226 { { case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_try") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; }; then
3236 cross_compiling=no
3237 else
3238 if test "$cross_compiling" = maybe; then
3239 cross_compiling=yes
3240 else
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "cannot run C++ compiled programs.
3244 If you meant to cross compile, use \`--host'.
3245 See \`config.log' for more details" "$LINENO" 5; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3250 $as_echo "$cross_compiling" >&6; }
3252 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3253 ac_clean_files=$ac_clean_files_save
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3255 $as_echo_n "checking for suffix of object files... " >&6; }
3256 if ${ac_cv_objext+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 rm -f conftest.o conftest.obj
3271 if { { ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_compile") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 for ac_file in conftest.o conftest.obj conftest.*; do
3283 test -f "$ac_file" || continue;
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289 done
3290 else
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details" "$LINENO" 5; }
3299 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3302 $as_echo "$ac_cv_objext" >&6; }
3303 OBJEXT=$ac_cv_objext
3304 ac_objext=$OBJEXT
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3306 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3307 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3314 main ()
3316 #ifndef __GNUC__
3317 choke me
3318 #endif
3321 return 0;
3323 _ACEOF
3324 if ac_fn_cxx_try_compile "$LINENO"; then :
3325 ac_compiler_gnu=yes
3326 else
3327 ac_compiler_gnu=no
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3334 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3335 if test $ac_compiler_gnu = yes; then
3336 GXX=yes
3337 else
3338 GXX=
3340 ac_test_CXXFLAGS=${CXXFLAGS+set}
3341 ac_save_CXXFLAGS=$CXXFLAGS
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3343 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3344 if ${ac_cv_prog_cxx_g+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3348 ac_cxx_werror_flag=yes
3349 ac_cv_prog_cxx_g=no
3350 CXXFLAGS="-g"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3355 main ()
3359 return 0;
3361 _ACEOF
3362 if ac_fn_cxx_try_compile "$LINENO"; then :
3363 ac_cv_prog_cxx_g=yes
3364 else
3365 CXXFLAGS=""
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 main ()
3374 return 0;
3376 _ACEOF
3377 if ac_fn_cxx_try_compile "$LINENO"; then :
3379 else
3380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3381 CXXFLAGS="-g"
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3386 main ()
3390 return 0;
3392 _ACEOF
3393 if ac_fn_cxx_try_compile "$LINENO"; then :
3394 ac_cv_prog_cxx_g=yes
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3404 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3405 if test "$ac_test_CXXFLAGS" = set; then
3406 CXXFLAGS=$ac_save_CXXFLAGS
3407 elif test $ac_cv_prog_cxx_g = yes; then
3408 if test "$GXX" = yes; then
3409 CXXFLAGS="-g -O2"
3410 else
3411 CXXFLAGS="-g"
3413 else
3414 if test "$GXX" = yes; then
3415 CXXFLAGS="-O2"
3416 else
3417 CXXFLAGS=
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog in ${host_c_compilers}
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$CC" && break
3472 done
3474 if test -z "$CC"; then
3475 ac_ct_CC=$CC
3476 for ac_prog in ${host_c_compilers}
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC="$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$ac_ct_CC" && break
3516 done
3518 if test "x$ac_ct_CC" = x; then
3519 CC=""
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 CC=$ac_ct_CC
3532 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "no acceptable C compiler found in \$PATH
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 # Provide some information about the compiler.
3538 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3539 set X $ac_compile
3540 ac_compiler=$2
3541 for ac_option in --version -v -V -qversion; do
3542 { { ac_try="$ac_compiler $ac_option >&5"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3550 ac_status=$?
3551 if test -s conftest.err; then
3552 sed '10a\
3553 ... rest of stderr output deleted ...
3554 10q' conftest.err >conftest.er1
3555 cat conftest.er1 >&5
3557 rm -f conftest.er1 conftest.err
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }
3560 done
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564 if ${ac_cv_c_compiler_gnu+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3571 main ()
3573 #ifndef __GNUC__
3574 choke me
3575 #endif
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_compiler_gnu=yes
3583 else
3584 ac_compiler_gnu=no
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592 if test $ac_compiler_gnu = yes; then
3593 GCC=yes
3594 else
3595 GCC=
3597 ac_test_CFLAGS=${CFLAGS+set}
3598 ac_save_CFLAGS=$CFLAGS
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3601 if ${ac_cv_prog_cc_g+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 ac_save_c_werror_flag=$ac_c_werror_flag
3605 ac_c_werror_flag=yes
3606 ac_cv_prog_cc_g=no
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3612 main ()
3616 return 0;
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621 else
3622 CFLAGS=""
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3631 return 0;
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3636 else
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 CFLAGS="-g"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3643 main ()
3647 return 0;
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_g=yes
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661 $as_echo "$ac_cv_prog_cc_g" >&6; }
3662 if test "$ac_test_CFLAGS" = set; then
3663 CFLAGS=$ac_save_CFLAGS
3664 elif test $ac_cv_prog_cc_g = yes; then
3665 if test "$GCC" = yes; then
3666 CFLAGS="-g -O2"
3667 else
3668 CFLAGS="-g"
3670 else
3671 if test "$GCC" = yes; then
3672 CFLAGS="-O2"
3673 else
3674 CFLAGS=
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679 if ${ac_cv_prog_cc_c89+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_cv_prog_cc_c89=no
3683 ac_save_CC=$CC
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <stdarg.h>
3687 #include <stdio.h>
3688 struct stat;
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693 char **p;
3694 int i;
3696 return p[i];
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3700 char *s;
3701 va_list v;
3702 va_start (v,p);
3703 s = g (p, va_arg (v,int));
3704 va_end (v);
3705 return s;
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3729 main ()
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 return 0;
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_c89=$ac_arg
3743 rm -f core conftest.err conftest.$ac_objext
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3750 # AC_CACHE_VAL
3751 case "x$ac_cv_prog_cc_c89" in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754 $as_echo "none needed" >&6; } ;;
3755 xno)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 $as_echo "unsupported" >&6; } ;;
3759 CC="$CC $ac_cv_prog_cc_c89"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 esac
3763 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 aros_host_def_cc="$CC"
3774 case $ac_cv_prog_cc_stdc in #(
3775 no) :
3776 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3777 *) :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3779 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3780 if ${ac_cv_prog_cc_c99+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_cv_prog_cc_c99=no
3784 ac_save_CC=$CC
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <stdarg.h>
3788 #include <stdbool.h>
3789 #include <stdlib.h>
3790 #include <wchar.h>
3791 #include <stdio.h>
3793 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3794 #define debug(...) fprintf (stderr, __VA_ARGS__)
3795 #define showlist(...) puts (#__VA_ARGS__)
3796 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3797 static void
3798 test_varargs_macros (void)
3800 int x = 1234;
3801 int y = 5678;
3802 debug ("Flag");
3803 debug ("X = %d\n", x);
3804 showlist (The first, second, and third items.);
3805 report (x>y, "x is %d but y is %d", x, y);
3808 // Check long long types.
3809 #define BIG64 18446744073709551615ull
3810 #define BIG32 4294967295ul
3811 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3812 #if !BIG_OK
3813 your preprocessor is broken;
3814 #endif
3815 #if BIG_OK
3816 #else
3817 your preprocessor is broken;
3818 #endif
3819 static long long int bignum = -9223372036854775807LL;
3820 static unsigned long long int ubignum = BIG64;
3822 struct incomplete_array
3824 int datasize;
3825 double data[];
3828 struct named_init {
3829 int number;
3830 const wchar_t *name;
3831 double average;
3834 typedef const char *ccp;
3836 static inline int
3837 test_restrict (ccp restrict text)
3839 // See if C++-style comments work.
3840 // Iterate through items via the restricted pointer.
3841 // Also check for declarations in for loops.
3842 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3843 continue;
3844 return 0;
3847 // Check varargs and va_copy.
3848 static void
3849 test_varargs (const char *format, ...)
3851 va_list args;
3852 va_start (args, format);
3853 va_list args_copy;
3854 va_copy (args_copy, args);
3856 const char *str;
3857 int number;
3858 float fnumber;
3860 while (*format)
3862 switch (*format++)
3864 case 's': // string
3865 str = va_arg (args_copy, const char *);
3866 break;
3867 case 'd': // int
3868 number = va_arg (args_copy, int);
3869 break;
3870 case 'f': // float
3871 fnumber = va_arg (args_copy, double);
3872 break;
3873 default:
3874 break;
3877 va_end (args_copy);
3878 va_end (args);
3882 main ()
3885 // Check bool.
3886 _Bool success = false;
3888 // Check restrict.
3889 if (test_restrict ("String literal") == 0)
3890 success = true;
3891 char *restrict newvar = "Another string";
3893 // Check varargs.
3894 test_varargs ("s, d' f .", "string", 65, 34.234);
3895 test_varargs_macros ();
3897 // Check flexible array members.
3898 struct incomplete_array *ia =
3899 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3900 ia->datasize = 10;
3901 for (int i = 0; i < ia->datasize; ++i)
3902 ia->data[i] = i * 1.234;
3904 // Check named initializers.
3905 struct named_init ni = {
3906 .number = 34,
3907 .name = L"Test wide string",
3908 .average = 543.34343,
3911 ni.number = 58;
3913 int dynamic_array[ni.number];
3914 dynamic_array[ni.number - 1] = 543;
3916 // work around unused variable warnings
3917 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3918 || dynamic_array[ni.number - 1] != 543);
3921 return 0;
3923 _ACEOF
3924 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3926 CC="$ac_save_CC $ac_arg"
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_cv_prog_cc_c99=$ac_arg
3930 rm -f core conftest.err conftest.$ac_objext
3931 test "x$ac_cv_prog_cc_c99" != "xno" && break
3932 done
3933 rm -f conftest.$ac_ext
3934 CC=$ac_save_CC
3937 # AC_CACHE_VAL
3938 case "x$ac_cv_prog_cc_c99" in
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3941 $as_echo "none needed" >&6; } ;;
3942 xno)
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3944 $as_echo "unsupported" >&6; } ;;
3946 CC="$CC $ac_cv_prog_cc_c99"
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3948 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3949 esac
3950 if test "x$ac_cv_prog_cc_c99" != xno; then :
3951 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if ${ac_cv_prog_cc_c89+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 ac_cv_prog_cc_c89=no
3959 ac_save_CC=$CC
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <stdarg.h>
3963 #include <stdio.h>
3964 struct stat;
3965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966 struct buf { int x; };
3967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968 static char *e (p, i)
3969 char **p;
3970 int i;
3972 return p[i];
3974 static char *f (char * (*g) (char **, int), char **p, ...)
3976 char *s;
3977 va_list v;
3978 va_start (v,p);
3979 s = g (p, va_arg (v,int));
3980 va_end (v);
3981 return s;
3984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3985 function prototypes and stuff, but not '\xHH' hex character constants.
3986 These don't provoke an error unfortunately, instead are silently treated
3987 as 'x'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3989 array size at least. It's necessary to write '\x00'==0 to get something
3990 that's true only with -std. */
3991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3995 #define FOO(x) 'x'
3996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3998 int test (int i, double x);
3999 struct s1 {int (*f) (int a);};
4000 struct s2 {int (*f) (double a);};
4001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002 int argc;
4003 char **argv;
4005 main ()
4007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 return 0;
4011 _ACEOF
4012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 CC="$ac_save_CC $ac_arg"
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_c89=$ac_arg
4019 rm -f core conftest.err conftest.$ac_objext
4020 test "x$ac_cv_prog_cc_c89" != "xno" && break
4021 done
4022 rm -f conftest.$ac_ext
4023 CC=$ac_save_CC
4026 # AC_CACHE_VAL
4027 case "x$ac_cv_prog_cc_c89" in
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;;
4031 xno)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 $as_echo "unsupported" >&6; } ;;
4035 CC="$CC $ac_cv_prog_cc_c89"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4038 esac
4039 if test "x$ac_cv_prog_cc_c89" != xno; then :
4040 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4041 else
4042 ac_cv_prog_cc_stdc=no
4047 esac
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4049 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4050 if ${ac_cv_prog_cc_stdc+:} false; then :
4051 $as_echo_n "(cached) " >&6
4054 case $ac_cv_prog_cc_stdc in #(
4055 no) :
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057 $as_echo "unsupported" >&6; } ;; #(
4058 '') :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;; #(
4061 *) :
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4063 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4064 esac
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4072 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4073 # On Suns, sometimes $CPP names a directory.
4074 if test -n "$CPP" && test -d "$CPP"; then
4075 CPP=
4077 if test -z "$CPP"; then
4078 if ${ac_cv_prog_CPP+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 # Double quotes because CPP needs to be expanded
4082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 ac_preproc_ok=false
4085 for ac_c_preproc_warn_flag in '' yes
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100 Syntax error
4101 _ACEOF
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4104 else
4105 # Broken: fails on valid input.
4106 continue
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <ac_nonexistent.h>
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4118 continue
4119 else
4120 # Passes both tests.
4121 ac_preproc_ok=:
4122 break
4124 rm -f conftest.err conftest.i conftest.$ac_ext
4126 done
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.i conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then :
4130 break
4133 done
4134 ac_cv_prog_CPP=$CPP
4137 CPP=$ac_cv_prog_CPP
4138 else
4139 ac_cv_prog_CPP=$CPP
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4142 $as_echo "$CPP" >&6; }
4143 ac_preproc_ok=false
4144 for ac_c_preproc_warn_flag in '' yes
4146 # Use a header file that comes with gcc, so configuring glibc
4147 # with a fresh cross-compiler works.
4148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149 # <limits.h> exists even on freestanding compilers.
4150 # On the NeXT, cc -E runs the code through the compiler's parser,
4151 # not just through cpp. "Syntax error" is here to catch this case.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #ifdef __STDC__
4155 # include <limits.h>
4156 #else
4157 # include <assert.h>
4158 #endif
4159 Syntax error
4160 _ACEOF
4161 if ac_fn_c_try_cpp "$LINENO"; then :
4163 else
4164 # Broken: fails on valid input.
4165 continue
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <ac_nonexistent.h>
4174 _ACEOF
4175 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: success on invalid input.
4177 continue
4178 else
4179 # Passes both tests.
4180 ac_preproc_ok=:
4181 break
4183 rm -f conftest.err conftest.i conftest.$ac_ext
4185 done
4186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187 rm -f conftest.i conftest.err conftest.$ac_ext
4188 if $ac_preproc_ok; then :
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4194 See \`config.log' for more details" "$LINENO" 5; }
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 # Check for a compatible awk
4205 for ac_prog in gawk nawk
4207 # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_AWK+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$AWK"; then
4215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_AWK="$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 AWK=$ac_cv_prog_AWK
4235 if test -n "$AWK"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4237 $as_echo "$AWK" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4244 test -n "$AWK" && break
4245 done
4247 req_avail=yes
4248 if test "$AWK" = ""; then
4249 req_avail=no
4251 if test "$AWK" = "no"; then
4252 req_avail=no
4254 if test "$req_avail" = "no"; then
4255 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4257 # Extract the first word of "mmake", so it can be a program name with args.
4258 set dummy mmake; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_MMAKE+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$MMAKE"; then
4265 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_MMAKE="mmake "
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4278 done
4279 done
4280 IFS=$as_save_IFS
4284 MMAKE=$ac_cv_prog_MMAKE
4285 if test -n "$MMAKE"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4287 $as_echo "$MMAKE" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4295 # Perform some default variable assignments. Note all of these will be
4296 # Regenerated from the script, so there is no need to cache them.
4298 aros_build_host=$host
4299 aros_host_cpp="$CPP"
4300 aros_host_cc="$CC"
4301 aros_host_cxx="$CXX"
4302 if test "$GCC" = "yes"; then
4303 aros_gcc_ld=`$CC -print-prog-name=ld`
4304 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4305 set dummy `basename $aros_gcc_ld`; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_path_aros_host_ld+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 case $aros_host_ld in
4312 [\\/]* | ?:[\\/]*)
4313 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in `dirname $aros_gcc_ld`
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4332 esac
4334 aros_host_ld=$ac_cv_path_aros_host_ld
4335 if test -n "$aros_host_ld"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4337 $as_echo "$aros_host_ld" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4345 if test "$aros_host_ld" = ""; then
4346 # Extract the first word of "ld", so it can be a program name with args.
4347 set dummy ld; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_path_aros_host_ld+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 case $aros_host_ld in
4354 [\\/]* | ?:[\\/]*)
4355 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4374 esac
4376 aros_host_ld=$ac_cv_path_aros_host_ld
4377 if test -n "$aros_host_ld"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4379 $as_echo "$aros_host_ld" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4387 req_avail=yes
4388 if test "$aros_host_ld" = ""; then
4389 req_avail=no
4391 if test "$aros_host_ld" = "no"; then
4392 req_avail=no
4394 if test "$req_avail" = "no"; then
4395 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4397 aros_host_make="make"
4398 aros_host_cflags="$CFLAGS"
4399 aros_host_cxxflags="$CXXFLAGS"
4400 aros_host_cppflags="$CPPFLAGS"
4401 aros_host_ldflags="$LDFLAGS"
4402 aros_host_debug="-g -O0"
4403 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4404 aros_host_mkargs="--no-print-directory"
4405 aros_host_exe_suffix="$EXEEXT"
4406 aros_host_lib_suffix=""
4408 # Ignore all compliance, AROS ROMs = 0
4409 # KickStart v1.0 = 30
4410 # KickStart v1.3 = 34
4411 # KickStart v2.0 = 37
4412 # KickStart v3.0 = 39
4413 # KickStart v3.1 = 40
4414 # AmigaOS v3.5 = 44
4415 aros_amigaos_compliance=0
4417 for ac_prog in aclocal aclocal19 aclocal-1.9
4419 # Extract the first word of "$ac_prog", so it can be a program name with args.
4420 set dummy $ac_prog; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if test -n "$aros_host_aclocal"; then
4427 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_aros_host_aclocal="$ac_prog"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4440 done
4441 done
4442 IFS=$as_save_IFS
4446 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4447 if test -n "$aros_host_aclocal"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4449 $as_echo "$aros_host_aclocal" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4456 test -n "$aros_host_aclocal" && break
4457 done
4459 for ac_prog in autoconf autoconf259 autoconf253
4461 # Extract the first word of "$ac_prog", so it can be a program name with args.
4462 set dummy $ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$aros_host_autoconf"; then
4469 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_aros_host_autoconf="$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4484 IFS=$as_save_IFS
4488 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4489 if test -n "$aros_host_autoconf"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4491 $as_echo "$aros_host_autoconf" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4498 test -n "$aros_host_autoconf" && break
4499 done
4501 for ac_prog in autoheader autoheader259 autoheader253
4503 # Extract the first word of "$ac_prog", so it can be a program name with args.
4504 set dummy $ac_prog; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$aros_host_autoheader"; then
4511 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_aros_host_autoheader="$ac_prog"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4531 if test -n "$aros_host_autoheader"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4533 $as_echo "$aros_host_autoheader" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4540 test -n "$aros_host_autoheader" && break
4541 done
4543 for ac_prog in automake automake19 automake-1.9
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_aros_host_automake+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$aros_host_automake"; then
4553 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_aros_host_automake="$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 aros_host_automake=$ac_cv_prog_aros_host_automake
4573 if test -n "$aros_host_automake"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4575 $as_echo "$aros_host_automake" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$aros_host_automake" && break
4583 done
4586 req_avail=yes
4587 if test "$aros_host_aclocal" = ""; then
4588 req_avail=no
4590 if test "$aros_host_aclocal" = "no"; then
4591 req_avail=no
4593 if test "$req_avail" = "no"; then
4594 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4596 req_avail=yes
4597 if test "$aros_host_automake" = ""; then
4598 req_avail=no
4600 if test "$aros_host_automake" = "no"; then
4601 req_avail=no
4603 if test "$req_avail" = "no"; then
4604 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4607 case "$aros_host_cc" in
4608 *clang*)
4609 aros_host_cc_pipe=""
4611 *gcc*)
4612 aros_host_cc_pipe="-pipe"
4614 icc)
4615 aros_host_cc_pipe=""
4618 aros_host_cc_pipe=""
4620 esac
4622 aros_kernel_cc_includes=""
4623 aros_target_cc_includes=""
4624 host_cc_elf=yes
4626 # ----------------------------------------------------------------------------------------
4627 # Host-specific defaults
4629 # This is the main host configuration section. It is where the host
4630 # can change the values of any variables it needs to change. We do
4631 # not look at anything that compiles to the target yet, we'll get
4632 # to that later.
4634 case "$host_os" in
4635 aros*)
4636 aros_host_arch="aros"
4637 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4638 case "$host_cpu" in
4639 *i?86*)
4640 aros_host_cpu="i386"
4642 *x86_64*)
4643 aros_host_cpu="x86_64"
4645 *powerpc*)
4646 aros_host_cpu="ppc"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4650 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4651 aros_host_cpu="$host_cpu"
4653 esac
4656 linux*)
4657 aros_host_arch="linux"
4658 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4659 android_build_os="linux-x86"
4660 android_tool="android"
4661 default_android_sdk="/opt/android-sdk-linux_x86"
4662 case "$host_cpu" in
4663 *i?86*)
4664 aros_host_cpu="i386"
4666 *x86_64*)
4667 aros_host_cpu="x86_64"
4669 *m68k*)
4670 aros_host_cpu="m68k"
4672 *powerpc*)
4673 aros_host_cpu="ppc"
4675 *arm*)
4676 aros_host_cpu="arm"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4680 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4681 aros_host_cpu="$host_cpu"
4683 esac
4686 freebsd*)
4687 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4688 aros_host_make="gmake"
4689 aros_host_arch="freebsd"
4690 aros_host_cpu="i386"
4692 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4694 case $host_os in
4695 freebsd[234]*)
4696 aros_object_format="elf_i386"
4700 aros_object_format="elf_i386_fbsd"
4702 esac
4706 darwin*)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS SDK files" >&5
4708 $as_echo_n "checking for macOS SDK files... " >&6; }
4709 LOC=$( xcode-select -p )
4710 if test $? != 0; then :
4711 as_fn_error $? "XCode incorrectly configured!
4712 please run 'xcode-select --install' before
4713 re-running configure" "$LINENO" 5
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOC" >&5
4716 $as_echo "$LOC" >&6; }
4717 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4718 aros_host_arch="darwin"
4719 host_cc_elf=no
4720 if [ -z ${SED+x} ]; then SED="gsed"; fi
4721 android_build_os="darwin-x86"
4722 android_tool="android"
4723 default_android_sdk="/android-sdk-mac_x86"
4724 case "$host_cpu" in
4725 *i?86*)
4726 aros_host_cpu="i386"
4728 *x86_64*)
4729 aros_host_cpu="x86_64"
4731 *powerpc*)
4732 aros_host_cpu="ppc"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4736 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4737 aros_host_cpu="$host_cpu"
4739 esac
4741 aros_host_ldflags="$aros_host_ldflags -liconv"
4745 dragonfly*)
4746 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4747 aros_host_make="gmake"
4748 aros_host_arch="dragonfly"
4749 case $host_cpu in
4750 *i?86*)
4751 aros_host_cpu="i386"
4753 *amd64*)
4754 aros_host_cpu="x86_64"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4758 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4759 aros_host_cpu="$host_cpu"
4761 esac
4764 netbsd*)
4765 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4766 aros_host_make="gmake"
4767 aros_host_arch="netbsd"
4768 case "$host_cpu" in
4769 *i?86*)
4770 aros_host_cpu="i386"
4772 *m68k*)
4773 aros_host_cpu="m68k"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4777 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4778 aros_host_cpu="$host_cpu"
4780 esac
4781 aros_host_lib_suffix=".0.0"
4784 openbsd*)
4785 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4786 aros_host_make="gmake"
4787 aros_host_arch="openbsd"
4788 case "$host_cpu" in
4789 *i?86*)
4790 aros_host_cpu="i386"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4794 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4795 aros_host_cpu="$host_cpu"
4797 esac
4800 solaris*)
4801 aros_host_arch="solaris"
4802 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4803 case "$host_cpu" in
4804 *i?86*)
4805 aros_host_cpu="i386"
4807 *sparc*)
4808 aros_host_cpu="sparc"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4812 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4813 aros_host_cpu="$host_cpu"
4815 esac
4818 morphos*)
4819 aros_host_arch="morphos"
4820 aros_host_cpu="ppc"
4821 host_cc_elf=no
4824 amiga*)
4825 aros_host_arch="amiga"
4826 host_cc_elf=no
4827 SORT="/gg/bin/sort"
4828 TEST="/gg/bin/test"
4829 UNIQ="/gg/bin/uniq"
4830 FOR="for"
4831 TOUCH="/gg/bin/touch"
4832 case "$host_cpu" in
4833 *m68k*)
4834 aros_host_cpu="m68k"
4836 *powerpc*)
4837 aros_host_cpu="ppc"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4841 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4842 aros_host_cpu="$host_cpu"
4844 esac
4847 cygwin*)
4848 aros_host_arch="cygwin"
4849 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4850 host_cc_elf=no
4851 android_build_os="windows"
4852 android_tool="android.bat"
4853 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4855 case "$host_cpu" in
4856 *i?86*)
4857 aros_host_cpu="i386"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4861 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4862 aros_host_cpu="$host_cpu"
4864 esac
4867 mingw32*)
4868 aros_host_arch="mingw32"
4869 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4870 host_cc_elf=no
4871 android_build_os="windows"
4872 android_tool="android.bat"
4873 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4875 libpng_libextra="-lws2_32"
4877 case "$host_cpu" in
4878 *i?86*)
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4881 $as_echo_n "checking for Windows native gcc target... " >&6; }
4882 host_cpu=`gcc -dumpmachine`
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4884 $as_echo "$host_cpu" >&6; }
4887 esac
4889 case "$host_cpu" in
4890 *i?86*)
4891 aros_host_cpu="i386"
4894 mingw32*)
4895 aros_host_cpu="i386"
4898 *x86_64*)
4899 aros_host_cpu="x86_64"
4900 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4905 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4906 aros_host_cpu="$host_cpu"
4908 esac
4911 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4913 esac
4915 # Extract the first word of "ar", so it can be a program name with args.
4916 set dummy ar; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_aros_host_ar+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$aros_host_ar"; then
4923 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_aros_host_ar="ar cr"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 aros_host_ar=$ac_cv_prog_aros_host_ar
4943 if test -n "$aros_host_ar"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4945 $as_echo "$aros_host_ar" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 req_avail=yes
4953 if test "$aros_host_ar" = ""; then
4954 req_avail=no
4956 if test "$aros_host_ar" = "no"; then
4957 req_avail=no
4959 if test "$req_avail" = "no"; then
4960 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4962 # Extract the first word of "ranlib", so it can be a program name with args.
4963 set dummy ranlib; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$aros_host_ranlib"; then
4970 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_aros_host_ranlib="ranlib "
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4990 if test -n "$aros_host_ranlib"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4992 $as_echo "$aros_host_ranlib" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 req_avail=yes
5000 if test "$aros_host_ranlib" = ""; then
5001 req_avail=no
5003 if test "$aros_host_ranlib" = "no"; then
5004 req_avail=no
5006 if test "$req_avail" = "no"; then
5007 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5009 # Extract the first word of "strip", so it can be a program name with args.
5010 set dummy strip; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_aros_host_strip+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$aros_host_strip"; then
5017 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_aros_host_strip="strip "
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 aros_host_strip=$ac_cv_prog_aros_host_strip
5037 if test -n "$aros_host_strip"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5039 $as_echo "$aros_host_strip" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 req_avail=yes
5047 if test "$aros_host_strip" = ""; then
5048 req_avail=no
5050 if test "$aros_host_strip" = "no"; then
5051 req_avail=no
5053 if test "$req_avail" = "no"; then
5054 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5057 # Extract the first word of "rm", so it can be a program name with args.
5058 set dummy rm; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_RM+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$RM"; then
5065 ac_cv_prog_RM="$RM" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_RM="rm -rf"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 RM=$ac_cv_prog_RM
5085 if test -n "$RM"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5087 $as_echo "$RM" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 req_avail=yes
5095 if test "$RM" = ""; then
5096 req_avail=no
5098 if test "$RM" = "no"; then
5099 req_avail=no
5101 if test "$req_avail" = "no"; then
5102 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5104 # Extract the first word of "cp", so it can be a program name with args.
5105 set dummy cp; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CP+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CP"; then
5112 ac_cv_prog_CP="$CP" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CP="cp "
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 CP=$ac_cv_prog_CP
5132 if test -n "$CP"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5134 $as_echo "$CP" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 req_avail=yes
5142 if test "$CP" = ""; then
5143 req_avail=no
5145 if test "$CP" = "no"; then
5146 req_avail=no
5148 if test "$req_avail" = "no"; then
5149 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5151 # Extract the first word of "mv", so it can be a program name with args.
5152 set dummy mv; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_MV+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$MV"; then
5159 ac_cv_prog_MV="$MV" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_MV="mv "
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 MV=$ac_cv_prog_MV
5179 if test -n "$MV"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5181 $as_echo "$MV" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 req_avail=yes
5189 if test "$MV" = ""; then
5190 req_avail=no
5192 if test "$MV" = "no"; then
5193 req_avail=no
5195 if test "$req_avail" = "no"; then
5196 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5198 # Extract the first word of "echo", so it can be a program name with args.
5199 set dummy echo; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ECHO+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ECHO"; then
5206 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ECHO="echo "
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 ECHO=$ac_cv_prog_ECHO
5226 if test -n "$ECHO"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5228 $as_echo "$ECHO" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 req_avail=yes
5236 if test "$ECHO" = ""; then
5237 req_avail=no
5239 if test "$ECHO" = "no"; then
5240 req_avail=no
5242 if test "$req_avail" = "no"; then
5243 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5245 # Extract the first word of "mkdir", so it can be a program name with args.
5246 set dummy mkdir; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_MKDIR+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$MKDIR"; then
5253 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_MKDIR="mkdir -p"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 MKDIR=$ac_cv_prog_MKDIR
5273 if test -n "$MKDIR"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5275 $as_echo "$MKDIR" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 req_avail=yes
5283 if test "$MKDIR" = ""; then
5284 req_avail=no
5286 if test "$MKDIR" = "no"; then
5287 req_avail=no
5289 if test "$req_avail" = "no"; then
5290 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5292 # Extract the first word of "touch", so it can be a program name with args.
5293 set dummy touch; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_TOUCH+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$TOUCH"; then
5300 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_TOUCH="touch "
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 TOUCH=$ac_cv_prog_TOUCH
5320 if test -n "$TOUCH"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5322 $as_echo "$TOUCH" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 req_avail=yes
5330 if test "$TOUCH" = ""; then
5331 req_avail=no
5333 if test "$TOUCH" = "no"; then
5334 req_avail=no
5336 if test "$req_avail" = "no"; then
5337 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5339 # Extract the first word of "sort", so it can be a program name with args.
5340 set dummy sort; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_SORT+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$SORT"; then
5347 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_SORT="sort "
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5366 SORT=$ac_cv_prog_SORT
5367 if test -n "$SORT"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5369 $as_echo "$SORT" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5376 req_avail=yes
5377 if test "$SORT" = ""; then
5378 req_avail=no
5380 if test "$SORT" = "no"; then
5381 req_avail=no
5383 if test "$req_avail" = "no"; then
5384 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5386 # Extract the first word of "uniq", so it can be a program name with args.
5387 set dummy uniq; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_UNIQ+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$UNIQ"; then
5394 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_UNIQ="uniq "
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 UNIQ=$ac_cv_prog_UNIQ
5414 if test -n "$UNIQ"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5416 $as_echo "$UNIQ" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 req_avail=yes
5424 if test "$UNIQ" = ""; then
5425 req_avail=no
5427 if test "$UNIQ" = "no"; then
5428 req_avail=no
5430 if test "$req_avail" = "no"; then
5431 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5433 # Extract the first word of "true", so it can be a program name with args.
5434 set dummy true; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_NOP+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$NOP"; then
5441 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_NOP="true "
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5456 IFS=$as_save_IFS
5460 NOP=$ac_cv_prog_NOP
5461 if test -n "$NOP"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5463 $as_echo "$NOP" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5470 req_avail=yes
5471 if test "$NOP" = ""; then
5472 req_avail=no
5474 if test "$NOP" = "no"; then
5475 req_avail=no
5477 if test "$req_avail" = "no"; then
5478 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5480 # Extract the first word of "cat", so it can be a program name with args.
5481 set dummy cat; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_CAT+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$CAT"; then
5488 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_CAT="cat "
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5507 CAT=$ac_cv_prog_CAT
5508 if test -n "$CAT"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5510 $as_echo "$CAT" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 req_avail=yes
5518 if test "$CAT" = ""; then
5519 req_avail=no
5521 if test "$CAT" = "no"; then
5522 req_avail=no
5524 if test "$req_avail" = "no"; then
5525 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5527 # Extract the first word of "bison", so it can be a program name with args.
5528 set dummy bison; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_BISON+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$BISON"; then
5535 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_BISON="bison "
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5554 BISON=$ac_cv_prog_BISON
5555 if test -n "$BISON"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5557 $as_echo "$BISON" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 req_avail=yes
5565 if test "$BISON" = ""; then
5566 req_avail=no
5568 if test "$BISON" = "no"; then
5569 req_avail=no
5571 if test "$req_avail" = "no"; then
5572 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5574 # Extract the first word of "flex", so it can be a program name with args.
5575 set dummy flex; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_FLEX+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$FLEX"; then
5582 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_FLEX="flex "
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 FLEX=$ac_cv_prog_FLEX
5602 if test -n "$FLEX"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5604 $as_echo "$FLEX" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 req_avail=yes
5612 if test "$FLEX" = ""; then
5613 req_avail=no
5615 if test "$FLEX" = "no"; then
5616 req_avail=no
5618 if test "$req_avail" = "no"; then
5619 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5621 # Extract the first word of "pngtopnm", so it can be a program name with args.
5622 set dummy pngtopnm; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if test -n "$PNGTOPNM"; then
5629 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_PNGTOPNM="pngtopnm "
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5642 done
5643 done
5644 IFS=$as_save_IFS
5648 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5649 if test -n "$PNGTOPNM"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5651 $as_echo "$PNGTOPNM" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 req_avail=yes
5659 if test "$PNGTOPNM" = ""; then
5660 req_avail=no
5662 if test "$PNGTOPNM" = "no"; then
5663 req_avail=no
5665 if test "$req_avail" = "no"; then
5666 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5668 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5669 set dummy ppmtoilbm; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 if test -n "$PPMTOILBM"; then
5676 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5689 done
5690 done
5691 IFS=$as_save_IFS
5695 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5696 if test -n "$PPMTOILBM"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5698 $as_echo "$PPMTOILBM" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5705 req_avail=yes
5706 if test "$PPMTOILBM" = ""; then
5707 req_avail=no
5709 if test "$PPMTOILBM" = "no"; then
5710 req_avail=no
5712 if test "$req_avail" = "no"; then
5713 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5715 # Extract the first word of "sed", so it can be a program name with args.
5716 set dummy sed; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_SED+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$SED"; then
5723 ac_cv_prog_SED="$SED" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_SED="sed "
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 SED=$ac_cv_prog_SED
5743 if test -n "$SED"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5745 $as_echo "$SED" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5752 req_avail=yes
5753 if test "$SED" = ""; then
5754 req_avail=no
5756 if test "$SED" = "no"; then
5757 req_avail=no
5759 if test "$req_avail" = "no"; then
5760 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5762 # Extract the first word of "chmod", so it can be a program name with args.
5763 set dummy chmod; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_CHMOD+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$CHMOD"; then
5770 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_CHMOD="chmod "
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5783 done
5784 done
5785 IFS=$as_save_IFS
5789 CHMOD=$ac_cv_prog_CHMOD
5790 if test -n "$CHMOD"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5792 $as_echo "$CHMOD" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5799 req_avail=yes
5800 if test "$CHMOD" = ""; then
5801 req_avail=no
5803 if test "$CHMOD" = "no"; then
5804 req_avail=no
5806 if test "$req_avail" = "no"; then
5807 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5809 # Extract the first word of "patch", so it can be a program name with args.
5810 set dummy patch; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_PATCH+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$PATCH"; then
5817 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_PATCH="patch "
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5836 PATCH=$ac_cv_prog_PATCH
5837 if test -n "$PATCH"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5839 $as_echo "$PATCH" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5846 req_avail=yes
5847 if test "$PATCH" = ""; then
5848 req_avail=no
5850 if test "$PATCH" = "no"; then
5851 req_avail=no
5853 if test "$req_avail" = "no"; then
5854 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5863 if test -n "$PYTHON"; then
5864 # If the user set $PYTHON, use it and don't search something else.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5866 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5867 prog="import sys
5868 # split strings by '.' and convert to numeric. Append some zeros
5869 # because we need at least 4 digits for the hex conversion.
5870 # map returns an iterator in Python 3.0 and a list in 2.x
5871 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5872 minverhex = 0
5873 # xrange is not present in Python 3.0 and range returns an iterator
5874 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5875 sys.exit(sys.hexversion < minverhex)"
5876 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5877 ($PYTHON -c "$prog") >&5 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then :
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882 $as_echo "yes" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5888 am_display_PYTHON=$PYTHON
5889 else
5890 # Otherwise, try each interpreter until we find one that satisfies
5891 # VERSION.
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5893 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5894 if ${am_cv_pathless_PYTHON+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5898 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5899 test "$am_cv_pathless_PYTHON" = none && break
5900 prog="import sys
5901 # split strings by '.' and convert to numeric. Append some zeros
5902 # because we need at least 4 digits for the hex conversion.
5903 # map returns an iterator in Python 3.0 and a list in 2.x
5904 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5905 minverhex = 0
5906 # xrange is not present in Python 3.0 and range returns an iterator
5907 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5908 sys.exit(sys.hexversion < minverhex)"
5909 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5910 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; then :
5914 break
5916 done
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5919 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5920 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5921 if test "$am_cv_pathless_PYTHON" = none; then
5922 PYTHON=:
5923 else
5924 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5925 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_path_PYTHON+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 case $PYTHON in
5932 [\\/]* | ?:[\\/]*)
5933 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5947 done
5948 done
5949 IFS=$as_save_IFS
5952 esac
5954 PYTHON=$ac_cv_path_PYTHON
5955 if test -n "$PYTHON"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5957 $as_echo "$PYTHON" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 am_display_PYTHON=$am_cv_pathless_PYTHON
5969 if test "$PYTHON" = :; then
5970 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5971 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5975 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5976 if ${am_cv_python_version+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5982 $as_echo "$am_cv_python_version" >&6; }
5983 PYTHON_VERSION=$am_cv_python_version
5987 PYTHON_PREFIX='${prefix}'
5989 PYTHON_EXEC_PREFIX='${exec_prefix}'
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5994 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5995 if ${am_cv_python_platform+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
6001 $as_echo "$am_cv_python_platform" >&6; }
6002 PYTHON_PLATFORM=$am_cv_python_platform
6005 # Just factor out some code duplication.
6006 am_python_setup_sysconfig="\
6007 import sys
6008 # Prefer sysconfig over distutils.sysconfig, for better compatibility
6009 # with python 3.x. See automake bug#10227.
6010 try:
6011 import sysconfig
6012 except ImportError:
6013 can_use_sysconfig = 0
6014 else:
6015 can_use_sysconfig = 1
6016 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6017 # <https://github.com/pypa/virtualenv/issues/118>
6018 try:
6019 from platform import python_implementation
6020 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6021 can_use_sysconfig = 0
6022 except ImportError:
6023 pass"
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6027 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6028 if ${am_cv_python_pythondir+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test "x$prefix" = xNONE
6032 then
6033 am_py_prefix=$ac_default_prefix
6034 else
6035 am_py_prefix=$prefix
6037 am_cv_python_pythondir=`$PYTHON -c "
6038 $am_python_setup_sysconfig
6039 if can_use_sysconfig:
6040 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6041 else:
6042 from distutils import sysconfig
6043 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6044 sys.stdout.write(sitedir)"`
6045 case $am_cv_python_pythondir in
6046 $am_py_prefix*)
6047 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6048 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6051 case $am_py_prefix in
6052 /usr|/System*) ;;
6054 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6056 esac
6058 esac
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6062 $as_echo "$am_cv_python_pythondir" >&6; }
6063 pythondir=$am_cv_python_pythondir
6067 pkgpythondir=\${pythondir}/$PACKAGE
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6071 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6072 if ${am_cv_python_pyexecdir+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test "x$exec_prefix" = xNONE
6076 then
6077 am_py_exec_prefix=$am_py_prefix
6078 else
6079 am_py_exec_prefix=$exec_prefix
6081 am_cv_python_pyexecdir=`$PYTHON -c "
6082 $am_python_setup_sysconfig
6083 if can_use_sysconfig:
6084 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6085 else:
6086 from distutils import sysconfig
6087 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6088 sys.stdout.write(sitedir)"`
6089 case $am_cv_python_pyexecdir in
6090 $am_py_exec_prefix*)
6091 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6092 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6095 case $am_py_exec_prefix in
6096 /usr|/System*) ;;
6098 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6100 esac
6102 esac
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6106 $as_echo "$am_cv_python_pyexecdir" >&6; }
6107 pyexecdir=$am_cv_python_pyexecdir
6111 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6119 # Check whether --enable-libpng-config was given.
6120 if test "${enable_libpng_config+set}" = set; then :
6121 enableval=$enable_libpng_config;
6124 if test "$enable_libpng_config" != "no"; then
6125 # Extract the first word of "libpng-config", so it can be a program name with args.
6126 set dummy libpng-config; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if test -n "$arosconfig_use_libpngconfig"; then
6133 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6146 done
6147 done
6148 IFS=$as_save_IFS
6150 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6153 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6154 if test -n "$arosconfig_use_libpngconfig"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6156 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6164 if test "$arosconfig_use_libpngconfig" = "yes"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6166 $as_echo_n "checking libpng-config library... " >&6; }
6167 libpng_incdir="`libpng-config --cflags`"
6168 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6169 libpng="`libpng-config --libs`"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6171 $as_echo "$libpng" >&6; }
6172 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6175 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6176 if ${ac_cv_lib_png_png_read_png+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lpng $LIBS"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6184 /* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 char png_read_png ();
6192 main ()
6194 return png_read_png ();
6196 return 0;
6198 _ACEOF
6199 if ac_fn_c_try_link "$LINENO"; then :
6200 ac_cv_lib_png_png_read_png=yes
6201 else
6202 ac_cv_lib_png_png_read_png=no
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6209 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6210 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6211 libpng="-lpng"
6212 else
6213 libpng="no"
6216 if test "$libpng_libextra" != ""; then
6217 if test "$libpng" != "no"; then
6218 libpng_libextra="$libpng_libextra $libpng"
6222 req_avail=yes
6223 if test "$libpng" = ""; then
6224 req_avail=no
6226 if test "$libpng" = "no"; then
6227 req_avail=no
6229 if test "$req_avail" = "no"; then
6230 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6236 FOR=for
6238 IF=if
6240 TEST=test
6242 CMP=cmp
6246 # Check for some includes for the X11 HIDD and the kernel
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6250 if ${ac_cv_path_GREP+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -z "$GREP"; then
6254 ac_path_GREP_found=false
6255 # Loop through the user's path and test for each of PROGNAME-LIST
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_prog in grep ggrep; do
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6264 as_fn_executable_p "$ac_path_GREP" || continue
6265 # Check for GNU ac_path_GREP and select it if it is found.
6266 # Check for GNU $ac_path_GREP
6267 case `"$ac_path_GREP" --version 2>&1` in
6268 *GNU*)
6269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6271 ac_count=0
6272 $as_echo_n 0123456789 >"conftest.in"
6273 while :
6275 cat "conftest.in" "conftest.in" >"conftest.tmp"
6276 mv "conftest.tmp" "conftest.in"
6277 cp "conftest.in" "conftest.nl"
6278 $as_echo 'GREP' >> "conftest.nl"
6279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6281 as_fn_arith $ac_count + 1 && ac_count=$as_val
6282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6283 # Best one so far, save it but keep looking for a better one
6284 ac_cv_path_GREP="$ac_path_GREP"
6285 ac_path_GREP_max=$ac_count
6287 # 10*(2^10) chars as input seems more than enough
6288 test $ac_count -gt 10 && break
6289 done
6290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6291 esac
6293 $ac_path_GREP_found && break 3
6294 done
6295 done
6296 done
6297 IFS=$as_save_IFS
6298 if test -z "$ac_cv_path_GREP"; then
6299 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6301 else
6302 ac_cv_path_GREP=$GREP
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6307 $as_echo "$ac_cv_path_GREP" >&6; }
6308 GREP="$ac_cv_path_GREP"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6312 $as_echo_n "checking for egrep... " >&6; }
6313 if ${ac_cv_path_EGREP+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6317 then ac_cv_path_EGREP="$GREP -E"
6318 else
6319 if test -z "$EGREP"; then
6320 ac_path_EGREP_found=false
6321 # Loop through the user's path and test for each of PROGNAME-LIST
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_prog in egrep; do
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6330 as_fn_executable_p "$ac_path_EGREP" || continue
6331 # Check for GNU ac_path_EGREP and select it if it is found.
6332 # Check for GNU $ac_path_EGREP
6333 case `"$ac_path_EGREP" --version 2>&1` in
6334 *GNU*)
6335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6337 ac_count=0
6338 $as_echo_n 0123456789 >"conftest.in"
6339 while :
6341 cat "conftest.in" "conftest.in" >"conftest.tmp"
6342 mv "conftest.tmp" "conftest.in"
6343 cp "conftest.in" "conftest.nl"
6344 $as_echo 'EGREP' >> "conftest.nl"
6345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6347 as_fn_arith $ac_count + 1 && ac_count=$as_val
6348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6349 # Best one so far, save it but keep looking for a better one
6350 ac_cv_path_EGREP="$ac_path_EGREP"
6351 ac_path_EGREP_max=$ac_count
6353 # 10*(2^10) chars as input seems more than enough
6354 test $ac_count -gt 10 && break
6355 done
6356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6357 esac
6359 $ac_path_EGREP_found && break 3
6360 done
6361 done
6362 done
6363 IFS=$as_save_IFS
6364 if test -z "$ac_cv_path_EGREP"; then
6365 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6367 else
6368 ac_cv_path_EGREP=$EGREP
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6374 $as_echo "$ac_cv_path_EGREP" >&6; }
6375 EGREP="$ac_cv_path_EGREP"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6379 $as_echo_n "checking for ANSI C header files... " >&6; }
6380 if ${ac_cv_header_stdc+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <stdlib.h>
6386 #include <stdarg.h>
6387 #include <string.h>
6388 #include <float.h>
6391 main ()
6395 return 0;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 ac_cv_header_stdc=yes
6400 else
6401 ac_cv_header_stdc=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 if test $ac_cv_header_stdc = yes; then
6406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #include <string.h>
6411 _ACEOF
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "memchr" >/dev/null 2>&1; then :
6415 else
6416 ac_cv_header_stdc=no
6418 rm -f conftest*
6422 if test $ac_cv_header_stdc = yes; then
6423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #include <stdlib.h>
6428 _ACEOF
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 $EGREP "free" >/dev/null 2>&1; then :
6432 else
6433 ac_cv_header_stdc=no
6435 rm -f conftest*
6439 if test $ac_cv_header_stdc = yes; then
6440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6441 if test "$cross_compiling" = yes; then :
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 #include <ctype.h>
6447 #include <stdlib.h>
6448 #if ((' ' & 0x0FF) == 0x020)
6449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6451 #else
6452 # define ISLOWER(c) \
6453 (('a' <= (c) && (c) <= 'i') \
6454 || ('j' <= (c) && (c) <= 'r') \
6455 || ('s' <= (c) && (c) <= 'z'))
6456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6457 #endif
6459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6461 main ()
6463 int i;
6464 for (i = 0; i < 256; i++)
6465 if (XOR (islower (i), ISLOWER (i))
6466 || toupper (i) != TOUPPER (i))
6467 return 2;
6468 return 0;
6470 _ACEOF
6471 if ac_fn_c_try_run "$LINENO"; then :
6473 else
6474 ac_cv_header_stdc=no
6476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477 conftest.$ac_objext conftest.beam conftest.$ac_ext
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6483 $as_echo "$ac_cv_header_stdc" >&6; }
6484 if test $ac_cv_header_stdc = yes; then
6486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6492 inttypes.h stdint.h unistd.h
6493 do :
6494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6498 cat >>confdefs.h <<_ACEOF
6499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 _ACEOF
6504 done
6507 for ac_header in sys/ipc.h sys/shm.h \
6508 sys/mmap.h sys/mman.h sysexits.h \
6509 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6511 do :
6512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6515 cat >>confdefs.h <<_ACEOF
6516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 _ACEOF
6521 done
6524 for ac_header in sys/mount.h
6525 do :
6526 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6528 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_SYS_MOUNT_H 1
6531 _ACEOF
6535 done
6537 for ac_header in GL/glx.h
6538 do :
6539 ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
6540 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_GL_GLX_H 1
6543 _ACEOF
6544 host_feature_glx=yes
6545 else
6546 host_feature_glx=no
6549 done
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __unused conflicts with sys/stat.h" >&5
6553 $as_echo_n "checking if __unused conflicts with sys/stat.h... " >&6; }
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6557 #define __unused __attribute__((unused))
6558 #include <sys/stat.h>
6561 main ()
6565 return 0;
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 host_stat_h__unused_used=no
6570 else
6571 host_stat_h__unused_used=yes
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_stat_h__unused_used" >&5
6575 $as_echo "$host_stat_h__unused_used" >&6; }
6577 ac_header_dirent=no
6578 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6579 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6581 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6582 if eval \${$as_ac_Header+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6588 #include <$ac_hdr>
6591 main ()
6593 if ((DIR *) 0)
6594 return 0;
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 eval "$as_ac_Header=yes"
6601 else
6602 eval "$as_ac_Header=no"
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 eval ac_res=\$$as_ac_Header
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6608 $as_echo "$ac_res" >&6; }
6609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6612 _ACEOF
6614 ac_header_dirent=$ac_hdr; break
6617 done
6618 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6619 if test $ac_header_dirent = dirent.h; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6621 $as_echo_n "checking for library containing opendir... " >&6; }
6622 if ${ac_cv_search_opendir+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 ac_func_search_save_LIBS=$LIBS
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 char opendir ();
6637 main ()
6639 return opendir ();
6641 return 0;
6643 _ACEOF
6644 for ac_lib in '' dir; do
6645 if test -z "$ac_lib"; then
6646 ac_res="none required"
6647 else
6648 ac_res=-l$ac_lib
6649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 ac_cv_search_opendir=$ac_res
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext
6656 if ${ac_cv_search_opendir+:} false; then :
6657 break
6659 done
6660 if ${ac_cv_search_opendir+:} false; then :
6662 else
6663 ac_cv_search_opendir=no
6665 rm conftest.$ac_ext
6666 LIBS=$ac_func_search_save_LIBS
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6669 $as_echo "$ac_cv_search_opendir" >&6; }
6670 ac_res=$ac_cv_search_opendir
6671 if test "$ac_res" != no; then :
6672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6678 $as_echo_n "checking for library containing opendir... " >&6; }
6679 if ${ac_cv_search_opendir+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 ac_func_search_save_LIBS=$LIBS
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6686 /* Override any GCC internal prototype to avoid an error.
6687 Use char because int might match the return type of a GCC
6688 builtin and then its argument prototype would still apply. */
6689 #ifdef __cplusplus
6690 extern "C"
6691 #endif
6692 char opendir ();
6694 main ()
6696 return opendir ();
6698 return 0;
6700 _ACEOF
6701 for ac_lib in '' x; do
6702 if test -z "$ac_lib"; then
6703 ac_res="none required"
6704 else
6705 ac_res=-l$ac_lib
6706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 ac_cv_search_opendir=$ac_res
6711 rm -f core conftest.err conftest.$ac_objext \
6712 conftest$ac_exeext
6713 if ${ac_cv_search_opendir+:} false; then :
6714 break
6716 done
6717 if ${ac_cv_search_opendir+:} false; then :
6719 else
6720 ac_cv_search_opendir=no
6722 rm conftest.$ac_ext
6723 LIBS=$ac_func_search_save_LIBS
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6726 $as_echo "$ac_cv_search_opendir" >&6; }
6727 ac_res=$ac_cv_search_opendir
6728 if test "$ac_res" != no; then :
6729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6736 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6737 if ${ac_cv_header_stat_broken+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <sys/types.h>
6743 #include <sys/stat.h>
6745 #if defined S_ISBLK && defined S_IFDIR
6746 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6747 #endif
6749 #if defined S_ISBLK && defined S_IFCHR
6750 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6751 #endif
6753 #if defined S_ISLNK && defined S_IFREG
6754 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6755 #endif
6757 #if defined S_ISSOCK && defined S_IFREG
6758 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6759 #endif
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 ac_cv_header_stat_broken=no
6764 else
6765 ac_cv_header_stat_broken=yes
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6770 $as_echo "$ac_cv_header_stat_broken" >&6; }
6771 if test $ac_cv_header_stat_broken = yes; then
6773 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6778 $as_echo_n "checking for ANSI C header files... " >&6; }
6779 if ${ac_cv_header_stdc+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <stdlib.h>
6785 #include <stdarg.h>
6786 #include <string.h>
6787 #include <float.h>
6790 main ()
6794 return 0;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 ac_cv_header_stdc=yes
6799 else
6800 ac_cv_header_stdc=no
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 if test $ac_cv_header_stdc = yes; then
6805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <string.h>
6810 _ACEOF
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "memchr" >/dev/null 2>&1; then :
6814 else
6815 ac_cv_header_stdc=no
6817 rm -f conftest*
6821 if test $ac_cv_header_stdc = yes; then
6822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <stdlib.h>
6827 _ACEOF
6828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829 $EGREP "free" >/dev/null 2>&1; then :
6831 else
6832 ac_cv_header_stdc=no
6834 rm -f conftest*
6838 if test $ac_cv_header_stdc = yes; then
6839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6840 if test "$cross_compiling" = yes; then :
6842 else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <ctype.h>
6846 #include <stdlib.h>
6847 #if ((' ' & 0x0FF) == 0x020)
6848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6850 #else
6851 # define ISLOWER(c) \
6852 (('a' <= (c) && (c) <= 'i') \
6853 || ('j' <= (c) && (c) <= 'r') \
6854 || ('s' <= (c) && (c) <= 'z'))
6855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6856 #endif
6858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6860 main ()
6862 int i;
6863 for (i = 0; i < 256; i++)
6864 if (XOR (islower (i), ISLOWER (i))
6865 || toupper (i) != TOUPPER (i))
6866 return 2;
6867 return 0;
6869 _ACEOF
6870 if ac_fn_c_try_run "$LINENO"; then :
6872 else
6873 ac_cv_header_stdc=no
6875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6876 conftest.$ac_objext conftest.beam conftest.$ac_ext
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6882 $as_echo "$ac_cv_header_stdc" >&6; }
6883 if test $ac_cv_header_stdc = yes; then
6885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6890 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6891 if ${ac_cv_header_sys_wait_h+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <sys/types.h>
6897 #include <sys/wait.h>
6898 #ifndef WEXITSTATUS
6899 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6900 #endif
6901 #ifndef WIFEXITED
6902 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6903 #endif
6906 main ()
6908 int s;
6909 wait (&s);
6910 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6912 return 0;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_header_sys_wait_h=yes
6917 else
6918 ac_cv_header_sys_wait_h=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6923 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6924 if test $ac_cv_header_sys_wait_h = yes; then
6926 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6931 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6932 if ${ac_cv_header_time+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <sys/time.h>
6939 #include <time.h>
6942 main ()
6944 if ((struct tm *) 0)
6945 return 0;
6947 return 0;
6949 _ACEOF
6950 if ac_fn_c_try_compile "$LINENO"; then :
6951 ac_cv_header_time=yes
6952 else
6953 ac_cv_header_time=no
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6958 $as_echo "$ac_cv_header_time" >&6; }
6959 if test $ac_cv_header_time = yes; then
6961 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6965 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6966 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6968 cat >>confdefs.h <<_ACEOF
6969 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6970 _ACEOF
6973 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6978 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6979 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6983 _ACEOF
6986 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6988 else
6989 case " $LIBOBJS " in
6990 *" fileblocks.$ac_objext "* ) ;;
6991 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6993 esac
6998 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6999 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_STRUCT_STAT_ST_RDEV 1
7003 _ACEOF
7006 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7012 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7013 if ${ac_cv_struct_tm+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 #include <sys/types.h>
7019 #include <time.h>
7022 main ()
7024 struct tm tm;
7025 int *p = &tm.tm_sec;
7026 return !p;
7028 return 0;
7030 _ACEOF
7031 if ac_fn_c_try_compile "$LINENO"; then :
7032 ac_cv_struct_tm=time.h
7033 else
7034 ac_cv_struct_tm=sys/time.h
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7039 $as_echo "$ac_cv_struct_tm" >&6; }
7040 if test $ac_cv_struct_tm = sys/time.h; then
7042 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7046 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7047 #include <$ac_cv_struct_tm>
7050 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7052 cat >>confdefs.h <<_ACEOF
7053 #define HAVE_STRUCT_TM_TM_ZONE 1
7054 _ACEOF
7059 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7061 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7063 else
7064 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7066 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7067 ac_have_decl=1
7068 else
7069 ac_have_decl=0
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_DECL_TZNAME $ac_have_decl
7074 _ACEOF
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7077 $as_echo_n "checking for tzname... " >&6; }
7078 if ${ac_cv_var_tzname+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <time.h>
7084 #if !HAVE_DECL_TZNAME
7085 extern char *tzname[];
7086 #endif
7089 main ()
7091 return tzname[0][0];
7093 return 0;
7095 _ACEOF
7096 if ac_fn_c_try_link "$LINENO"; then :
7097 ac_cv_var_tzname=yes
7098 else
7099 ac_cv_var_tzname=no
7101 rm -f core conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7105 $as_echo "$ac_cv_var_tzname" >&6; }
7106 if test $ac_cv_var_tzname = yes; then
7108 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7113 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7114 if test "x$ac_cv_type_off_t" = xyes; then :
7116 else
7118 cat >>confdefs.h <<_ACEOF
7119 #define off_t long int
7120 _ACEOF
7124 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7125 if test "x$ac_cv_type_pid_t" = xyes; then :
7127 else
7129 cat >>confdefs.h <<_ACEOF
7130 #define pid_t int
7131 _ACEOF
7135 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7136 if test "x$ac_cv_type_size_t" = xyes; then :
7138 else
7140 cat >>confdefs.h <<_ACEOF
7141 #define size_t unsigned int
7142 _ACEOF
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7147 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7148 if ${ac_cv_type_uid_t+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <sys/types.h>
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "uid_t" >/dev/null 2>&1; then :
7158 ac_cv_type_uid_t=yes
7159 else
7160 ac_cv_type_uid_t=no
7162 rm -f conftest*
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7166 $as_echo "$ac_cv_type_uid_t" >&6; }
7167 if test $ac_cv_type_uid_t = no; then
7169 $as_echo "#define uid_t int" >>confdefs.h
7172 $as_echo "#define gid_t int" >>confdefs.h
7177 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7178 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7180 cat >>confdefs.h <<_ACEOF
7181 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7182 _ACEOF
7188 # Look for some functions
7189 for ac_func in getpagesize kqueue statfs statvfs \
7190 clone kse_create rfork_thread thr_create sa_register \
7191 getcontext makecontext setcontext sigaltstack swapcontext
7192 do :
7193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7194 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7195 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7196 cat >>confdefs.h <<_ACEOF
7197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7198 _ACEOF
7201 done
7207 for ac_header in $ac_header_list
7208 do :
7209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7210 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7212 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7213 cat >>confdefs.h <<_ACEOF
7214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7215 _ACEOF
7219 done
7228 for ac_func in getpagesize
7229 do :
7230 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7231 if test "x$ac_cv_func_getpagesize" = xyes; then :
7232 cat >>confdefs.h <<_ACEOF
7233 #define HAVE_GETPAGESIZE 1
7234 _ACEOF
7237 done
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7240 $as_echo_n "checking for working mmap... " >&6; }
7241 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test "$cross_compiling" = yes; then :
7245 ac_cv_func_mmap_fixed_mapped=no
7246 else
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 $ac_includes_default
7250 /* malloc might have been renamed as rpl_malloc. */
7251 #undef malloc
7253 /* Thanks to Mike Haertel and Jim Avera for this test.
7254 Here is a matrix of mmap possibilities:
7255 mmap private not fixed
7256 mmap private fixed at somewhere currently unmapped
7257 mmap private fixed at somewhere already mapped
7258 mmap shared not fixed
7259 mmap shared fixed at somewhere currently unmapped
7260 mmap shared fixed at somewhere already mapped
7261 For private mappings, we should verify that changes cannot be read()
7262 back from the file, nor mmap's back from the file at a different
7263 address. (There have been systems where private was not correctly
7264 implemented like the infamous i386 svr4.0, and systems where the
7265 VM page cache was not coherent with the file system buffer cache
7266 like early versions of FreeBSD and possibly contemporary NetBSD.)
7267 For shared mappings, we should conversely verify that changes get
7268 propagated back to all the places they're supposed to be.
7270 Grep wants private fixed already mapped.
7271 The main things grep needs to know about mmap are:
7272 * does it exist and is it safe to write into the mmap'd area
7273 * how to use it (BSD variants) */
7275 #include <fcntl.h>
7276 #include <sys/mman.h>
7278 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7279 char *malloc ();
7280 #endif
7282 /* This mess was copied from the GNU getpagesize.h. */
7283 #ifndef HAVE_GETPAGESIZE
7284 # ifdef _SC_PAGESIZE
7285 # define getpagesize() sysconf(_SC_PAGESIZE)
7286 # else /* no _SC_PAGESIZE */
7287 # ifdef HAVE_SYS_PARAM_H
7288 # include <sys/param.h>
7289 # ifdef EXEC_PAGESIZE
7290 # define getpagesize() EXEC_PAGESIZE
7291 # else /* no EXEC_PAGESIZE */
7292 # ifdef NBPG
7293 # define getpagesize() NBPG * CLSIZE
7294 # ifndef CLSIZE
7295 # define CLSIZE 1
7296 # endif /* no CLSIZE */
7297 # else /* no NBPG */
7298 # ifdef NBPC
7299 # define getpagesize() NBPC
7300 # else /* no NBPC */
7301 # ifdef PAGESIZE
7302 # define getpagesize() PAGESIZE
7303 # endif /* PAGESIZE */
7304 # endif /* no NBPC */
7305 # endif /* no NBPG */
7306 # endif /* no EXEC_PAGESIZE */
7307 # else /* no HAVE_SYS_PARAM_H */
7308 # define getpagesize() 8192 /* punt totally */
7309 # endif /* no HAVE_SYS_PARAM_H */
7310 # endif /* no _SC_PAGESIZE */
7312 #endif /* no HAVE_GETPAGESIZE */
7315 main ()
7317 char *data, *data2, *data3;
7318 const char *cdata2;
7319 int i, pagesize;
7320 int fd, fd2;
7322 pagesize = getpagesize ();
7324 /* First, make a file with some known garbage in it. */
7325 data = (char *) malloc (pagesize);
7326 if (!data)
7327 return 1;
7328 for (i = 0; i < pagesize; ++i)
7329 *(data + i) = rand ();
7330 umask (0);
7331 fd = creat ("conftest.mmap", 0600);
7332 if (fd < 0)
7333 return 2;
7334 if (write (fd, data, pagesize) != pagesize)
7335 return 3;
7336 close (fd);
7338 /* Next, check that the tail of a page is zero-filled. File must have
7339 non-zero length, otherwise we risk SIGBUS for entire page. */
7340 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7341 if (fd2 < 0)
7342 return 4;
7343 cdata2 = "";
7344 if (write (fd2, cdata2, 1) != 1)
7345 return 5;
7346 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7347 if (data2 == MAP_FAILED)
7348 return 6;
7349 for (i = 0; i < pagesize; ++i)
7350 if (*(data2 + i))
7351 return 7;
7352 close (fd2);
7353 if (munmap (data2, pagesize))
7354 return 8;
7356 /* Next, try to mmap the file at a fixed address which already has
7357 something else allocated at it. If we can, also make sure that
7358 we see the same garbage. */
7359 fd = open ("conftest.mmap", O_RDWR);
7360 if (fd < 0)
7361 return 9;
7362 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7363 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7364 return 10;
7365 for (i = 0; i < pagesize; ++i)
7366 if (*(data + i) != *(data2 + i))
7367 return 11;
7369 /* Finally, make sure that changes to the mapped area do not
7370 percolate back to the file as seen by read(). (This is a bug on
7371 some variants of i386 svr4.0.) */
7372 for (i = 0; i < pagesize; ++i)
7373 *(data2 + i) = *(data2 + i) + 1;
7374 data3 = (char *) malloc (pagesize);
7375 if (!data3)
7376 return 12;
7377 if (read (fd, data3, pagesize) != pagesize)
7378 return 13;
7379 for (i = 0; i < pagesize; ++i)
7380 if (*(data + i) != *(data3 + i))
7381 return 14;
7382 close (fd);
7383 free (data);
7384 free (data3);
7385 return 0;
7387 _ACEOF
7388 if ac_fn_c_try_run "$LINENO"; then :
7389 ac_cv_func_mmap_fixed_mapped=yes
7390 else
7391 ac_cv_func_mmap_fixed_mapped=no
7393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7394 conftest.$ac_objext conftest.beam conftest.$ac_ext
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7399 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7400 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7402 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7405 rm -f conftest.mmap conftest.txt
7408 #-----------------------------------------------------------------------------
7411 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7412 # it switched on by default, and we use the host compiler, so it compiles AROS
7413 # code with this enabled resulting in link failures as we don't have support
7414 # for it.
7416 # We use two methods to disable it. For the host compiler (used to compile
7417 # some hosted modules), we test to see if the compiler supports stack
7418 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7419 # work on all platforms.
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7423 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7424 save_cflags="$CFLAGS"
7425 CFLAGS="$CFLAGS -fno-stack-protector"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7430 main ()
7434 return 0;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 use_no_stack_protector="yes"
7439 else
7440 use_no_stack_protector="no"
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7444 $as_echo "$use_no_stack_protector" >&6; }
7445 if test "x-$use_no_stack_protector" = "x-yes" ; then
7446 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7448 CFLAGS="$save_cflags"
7450 #-----------------------------------------------------------------------------
7452 # Disable pointer-signedness warnings if the compiler recognises the option
7453 # (this only works for the host compiler at the moment)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7456 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7457 save_cflags="$CFLAGS"
7458 CFLAGS="$CFLAGS -Wno-pointer-sign"
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7463 main ()
7467 return 0;
7469 _ACEOF
7470 if ac_fn_c_try_compile "$LINENO"; then :
7471 use_no_sign_warning="yes"
7472 else
7473 use_no_sign_warning="no"
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7477 $as_echo "$use_no_sign_warning" >&6; }
7478 if test "x-$use_no_sign_warning" = "x-yes" ; then
7479 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7481 CFLAGS="$save_cflags"
7483 #-----------------------------------------------------------------------------
7485 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7488 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7489 save_cflags="$CFLAGS"
7490 CFLAGS="$CFLAGS -fgnu89-inline"
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7495 main ()
7499 return 0;
7501 _ACEOF
7502 if ac_fn_c_try_compile "$LINENO"; then :
7503 use_gnu89_inline="yes"
7504 else
7505 use_gnu89_inline="no"
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7509 $as_echo "$use_gnu89_inline" >&6; }
7510 if test "x-$use_gnu89_inline" = "x-yes" ; then
7511 gnu89_inline="-fgnu89-inline"
7513 CFLAGS="$save_cflags"
7516 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7517 # On GCC >= 4.0 -iquote should be used
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7520 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7521 CFLAGS="$CFLAGS -iquote."
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 main ()
7530 return 0;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 has_iquote="yes"
7535 else
7536 has_iquote="no"
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7540 $as_echo "$has_iquote" >&6; }
7541 if test "x-$has_iquote" = "x-yes" ; then
7542 host_cflags_iquote=-iquote
7543 host_cflags_iquote_end=
7544 else
7545 host_cflags_iquote=-I
7546 host_cflags_iquote_end=-I-
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7550 $as_echo "$as_me: Performing target configuration..." >&6;}
7553 test_kernel_cc=no
7555 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7556 export_newline="
7559 aros_elf_translate=
7560 aros_warn_flags=
7561 aros_isa_extra=
7562 aros_isa_flags=
7563 aros_config_cppflags=
7564 aros_config_cflags=
7565 aros_config_cxxflags=
7566 aros_config_aflags="$""(WARN_ALL) -x assembler-with-cpp -c"
7567 aros_config_ldflags=""
7569 aros_shared_default=yes
7571 aros_shared_cflags="-fPIC"
7572 aros_shared_aflags=""
7573 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7574 aros_kernel_ldflags="-Wl,-rpath,./lib"
7576 aros_kernel_ar_flags="cr"
7577 aros_target_ar_flags="cr"
7578 aros_target_nm_flags="-C -ul"
7579 aros_target_strip_flags="--strip-unneeded -R.comment"
7581 aros_c_libs=
7582 aros_cxx_libs=
7584 aros_target_genmap="-Wl,-Map -Xlinker"
7586 # Native flavour stuff
7587 aros_serial_debug="0"
7589 # Palm native flavour stuff
7590 aros_palm_debug_hack="0"
7592 # Unix flavour stuff
7593 aros_nesting_supervisor="0"
7595 # Collect-aros stuff: "-ius" to ignore undefined symbols
7596 ignore_undefined_symbols=""
7598 # Check for X11 by default
7599 need_x11="auto"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7602 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7604 # Check whether --with-toolchain was given.
7605 if test "${with_toolchain+set}" = set; then :
7606 withval=$with_toolchain; aros_toolchain="$withval"
7607 else
7608 aros_toolchain="$default_toolchain_family"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7612 $as_echo "$aros_toolchain" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7616 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7617 # Check whether --enable-lto was given.
7618 if test "${enable_lto+set}" = set; then :
7619 enableval=$enable_lto; aros_config_lto="$enableval"
7620 else
7621 aros_config_lto="no"
7624 if test "$aros_config_lto" != "no"; then
7625 aros_config_lto="yes"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7628 $as_echo "$aros_config_lto" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable coverage instrumentation" >&5
7631 $as_echo_n "checking if we should enable coverage instrumentation... " >&6; }
7632 # Check whether --enable-coverage was given.
7633 if test "${enable_coverage+set}" = set; then :
7634 enableval=$enable_coverage; aros_config_coverage="$enableval"
7635 else
7636 aros_config_coverage="no"
7639 if test "$aros_config_coverage" != "no"; then
7640 aros_config_coverage="yes"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_coverage" >&5
7643 $as_echo "$aros_config_coverage" >&6; }
7645 use_ld_wrapper=yes
7647 case "$aros_toolchain" in
7648 *llvm*)
7649 toolchain_c_compiler="clang"
7650 toolchain_cxx_compiler="clang++"
7651 toolchain_cpp_preprocessor="clang -E"
7652 toolchain_ld="ld.lld"
7653 aros_ld="ld"
7654 toolchain_as="llvm-as"
7655 toolchain_ar="llvm-ar"
7656 toolchain_ranlib="llvm-ranlib"
7657 toolchain_nm="llvm-nm"
7658 toolchain_strip="true"
7659 toolchain_objcopy="llvm-objcopy"
7660 toolchain_objdump="llvm-objdump"
7661 use_libatomic=yes
7663 *gnu*)
7664 toolchain_c_compiler="gcc"
7665 toolchain_cxx_compiler="g++"
7666 toolchain_cpp_preprocessor="gcc -E"
7667 toolchain_as="as"
7668 aros_ld="ld"
7669 if test "$aros_config_lto" != "yes"; then
7670 toolchain_ld="ld"
7671 toolchain_ar="ar"
7672 toolchain_ranlib="ranlib"
7673 toolchain_nm="nm"
7674 else
7675 toolchain_ld="ld.bfd"
7676 toolchain_ar="gcc-ar"
7677 toolchain_ranlib="gcc-ranlib"
7678 toolchain_nm="gcc-nm"
7680 toolchain_strip="strip"
7681 toolchain_objcopy="objcopy"
7682 toolchain_objdump="objdump"
7683 use_libatomic=yes
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7687 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7688 toolchain_c_compiler="cc"
7689 toolchain_cxx_compiler="c++"
7690 toolchain_cpp_preprocessor="cpp"
7691 toolchain_ld="ld"
7692 aros_ld="ld"
7693 toolchain_as="as"
7694 toolchain_ar="ar"
7695 toolchain_ranlib="ranlib"
7696 toolchain_nm="nm"
7697 toolchain_strip="strip"
7698 toolchain_objcopy="objcopy"
7699 toolchain_objdump="objdump"
7701 esac
7703 #-----------------------------------------------------------------------------
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7706 $as_echo_n "checking which type of build to do... " >&6; }
7707 # Check whether --enable-build_type was given.
7708 if test "${enable_build_type+set}" = set; then :
7709 enableval=$enable_build_type; build_type=$enableval
7710 else
7711 build_type="personal"
7715 if test "$build_type" = "nightly"; then
7716 build_type_string="NIGHTLY"
7717 elif test "$build_type" = "snapshot"; then
7718 build_type_string="SNAPSHOT"
7719 elif test "$build_type" = "milestone"; then
7720 build_type_string="MILESTONE"
7721 elif test "$build_type" = "release"; then
7722 build_type_string="RELEASE"
7723 else
7724 build_type_string="PERSONAL"
7725 build_type="personal"
7728 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7731 $as_echo "$build_type" >&6; }
7733 #-----------------------------------------------------------------------------
7734 all_debug_types="messages stack modules mungwall symbols"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7737 $as_echo_n "checking which debug types to enable... " >&6; }
7738 # Check whether --enable-debug was given.
7739 if test "${enable_debug+set}" = set; then :
7740 enableval=$enable_debug; debug="$enableval"
7741 else
7742 debug=""
7746 if test "$debug" = "" -o "$debug" = "no"; then
7747 debug="none"
7748 elif test "$debug" = "yes"; then
7749 debug="all"
7752 if test "$debug" = "all" ; then
7753 debug="messages stack modules symbols"
7754 for d in $all_debug_types; do
7755 export aros_${d}_debug="1"
7756 done
7757 else
7758 for d in $all_debug_types; do
7759 export aros_${d}_debug="0"
7760 done
7763 if test "$debug" != "none"; then
7764 debug=`echo $debug | sed s/,/\ /g`
7765 for d in $debug; do
7766 found="0"
7767 for d2 in $all_debug_types; do
7768 if test "$d2" = "$d"; then
7769 found="1"
7770 break
7772 done
7773 if test "$found" = "0"; then
7774 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7776 export aros_${d}_debug="1"
7777 done
7778 aros_debug="yes"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7781 $as_echo "$debug" >&6; }
7783 if test "$aros_messages_debug" = "1"; then
7784 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7785 else
7786 aros_messages_debug=""
7788 if test "$aros_symbols_debug" = "1"; then
7789 aros_symbols_debug="-g"
7790 else
7791 aros_symbols_debug=""
7794 # These are the flags to pass when compiling debugged programs
7795 aros_debug_cppflags="$aros_messages_debug"
7796 aros_debug_cflags="$aros_symbols_debug"
7797 aros_debug_cxxflags=
7798 aros_debug_aflags=""
7799 aros_debug_ldflags="$aros_symbols_debug"
7801 #-----------------------------------------------------------------------------
7802 # Checking for distcc and ccache.
7804 # Always apply the transforms in this particular order. Basically you should
7805 # always run 'ccache distcc compiler' in that order for the best performance.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7808 $as_echo_n "checking whether to enable distcc... " >&6; }
7809 # Check whether --enable-distcc was given.
7810 if test "${enable_distcc+set}" = set; then :
7811 enableval=$enable_distcc; distcc="$enableval"
7812 else
7813 distcc="no"
7816 if test "$distcc" != "" -a "$distcc" != "no"; then
7817 # AC_CHECK_PROG will print out the result in this case
7818 # Extract the first word of "distcc", so it can be a program name with args.
7819 set dummy distcc; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_path_DISTCC+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 case $DISTCC in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7845 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7847 esac
7849 DISTCC=$ac_cv_path_DISTCC
7850 if test -n "$DISTCC"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7852 $as_echo "$DISTCC" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7865 $as_echo_n "checking whether to enable ccache... " >&6; }
7866 # Check whether --enable-ccache was given.
7867 if test "${enable_ccache+set}" = set; then :
7868 enableval=$enable_ccache; ccache="$enableval"
7869 else
7870 ccache="no"
7873 if test "$ccache" != "" -a "$ccache" != "no"; then
7874 # AC_CHECK_PROG will print out the result in this case
7875 # Extract the first word of "ccache", so it can be a program name with args.
7876 set dummy ccache; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_CCACHE+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$CCACHE"; then
7883 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_CCACHE="ccache"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 CCACHE=$ac_cv_prog_CCACHE
7903 if test -n "$CCACHE"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7905 $as_echo "$CCACHE" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7917 #-----------------------------------------------------------------------------
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7919 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7921 # Check whether --with-kernel-gcc-version was given.
7922 if test "${with_kernel_gcc_version+set}" = set; then :
7923 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7924 else
7925 kernel_tool_version=""
7928 if test "$kernel_tool_version" != "" ; then
7929 msg_result=$kernel_tool_version
7930 else
7931 msg_result="default"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7934 $as_echo "$msg_result" >&6; }
7936 #-----------------------------------------------------------------------------
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7938 $as_echo_n "checking what optimization flags to use... " >&6; }
7940 # Check whether --with-optimization was given.
7941 if test "${with_optimization+set}" = set; then :
7942 withval=$with_optimization; optimization_level="$withval"
7943 else
7944 optimization_level="unknown"
7947 if test "$optimization_level" = "unknown"; then
7948 optimization="default"
7949 if test "$debug" != "none"; then
7950 optimization_level="-O0"
7951 else
7952 optimization_level="-O2"
7954 else
7955 optimization="$optimization_level"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7958 $as_echo "$optimization" >&6; }
7960 paranoia_default=yes
7961 #-----------------------------------------------------------------------------
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7963 $as_echo_n "checking which paranoia flags to use... " >&6; }
7965 # Check whether --with-paranoia was given.
7966 if test "${with_paranoia+set}" = set; then :
7967 withval=$with_paranoia; paranoia_flags="$withval"
7968 else
7969 paranoia_flags="$paranoia_default"
7972 if test "$paranoia_flags" = "no"; then
7973 paranoia_flags="$""(WARN_ALL) -Werror-implicit-function-declaration"
7974 msg_result="none"
7975 else
7976 if test "$paranoia_flags" = "yes"; then
7977 paranoia_flags="$""(WARN_ALL) $""(WARN_ERROR)"
7979 msg_result="$paranoia_flags"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7982 $as_echo "$msg_result" >&6; }
7983 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7985 #-----------------------------------------------------------------------------
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7987 $as_echo_n "checking what target variant to enable... " >&6; }
7988 # Check whether --enable-target_variant was given.
7989 if test "${enable_target_variant+set}" = set; then :
7990 enableval=$enable_target_variant; target_variant=$enableval
7991 else
7992 target_variant=""
7995 if test "$target_variant" = ""; then
7996 aros_target_variant=""
7997 aros_target_suffix=""
7998 enableval="none"
7999 else
8000 aros_target_variant="$target_variant"
8001 aros_target_suffix="-$target_variant"
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
8004 $as_echo "$enableval" >&6; }
8006 #-----------------------------------------------------------------------------
8007 # Target-specific defaults. You can override then on a per-target basis.
8009 # Bootloader name. Currently used by PC target.
8010 target_bootloader="none"
8011 PLATFORM_EXECSMP=
8012 ENABLE_EXECSMP=
8014 #-----------------------------------------------------------------------------
8015 # Additional options for some specific targets
8017 case "$aros_target_variant" in
8018 ios)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
8020 $as_echo_n "checking XCode path... " >&6; }
8022 # Check whether --with-xcode was given.
8023 if test "${with_xcode+set}" = set; then :
8024 withval=$with_xcode; aros_xcode_path="$withval"
8025 else
8026 aros_xcode_path="/Developer"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
8030 $as_echo "$aros_xcode_path" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
8033 $as_echo_n "checking what iOS SDK version to use... " >&6; }
8035 # Check whether --with-sdk-version was given.
8036 if test "${with_sdk_version+set}" = set; then :
8037 withval=$with_sdk_version; aros_sdk_version="$withval"
8038 else
8039 aros_sdk_version="4.1"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8043 $as_echo "$aros_sdk_version" >&6; }
8047 "android")
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
8049 $as_echo_n "checking Android SDK path... " >&6; }
8051 # Check whether --with-sdk was given.
8052 if test "${with_sdk+set}" = set; then :
8053 withval=$with_sdk; aros_android_sdk="$withval"
8054 else
8055 aros_android_sdk=$default_android_sdk
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
8059 $as_echo "$aros_android_sdk" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
8062 $as_echo_n "checking Android NDK path... " >&6; }
8064 # Check whether --with-ndk was given.
8065 if test "${with_ndk+set}" = set; then :
8066 withval=$with_ndk; aros_android_ndk="$withval"
8067 else
8068 aros_android_ndk="none"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
8072 $as_echo "$aros_android_ndk" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8075 $as_echo_n "checking what Android SDK version to use... " >&6; }
8077 # Check whether --with-sdk-version was given.
8078 if test "${with_sdk_version+set}" = set; then :
8079 withval=$with_sdk_version; aros_sdk_version="$withval"
8080 else
8081 aros_sdk_version="12"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8085 $as_echo "$aros_sdk_version" >&6; }
8087 aros_android_level=android-$aros_sdk_version
8088 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8089 echo "Platform $aros_android_level is not installed in your SDK"
8090 echo "Use --with-sdk-version=<API level number> to select another platform version"
8091 echo "You can check what plaform versions are installed in your SDK"
8092 echo "by examining contents of $aros_android_sdk/platforms directory"
8093 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8096 export PATH="$aros_android_sdk/tools:$PATH"
8097 # Extract the first word of "$android_tool", so it can be a program name with args.
8098 set dummy $android_tool; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_path_android_tool+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 case $android_tool in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8125 esac
8127 android_tool=$ac_cv_path_android_tool
8128 if test -n "$android_tool"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8130 $as_echo "$android_tool" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8137 req_avail=yes
8138 if test "$android_tool" = ""; then
8139 req_avail=no
8141 if test "$android_tool" = "no"; then
8142 req_avail=no
8144 if test "$req_avail" = "no"; then
8145 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8148 if test "$aros_android_ndk" != "none"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8150 $as_echo_n "checking what Android NDK version to use... " >&6; }
8152 # Check whether --with-ndk-version was given.
8153 if test "${with_ndk_version+set}" = set; then :
8154 withval=$with_ndk_version; aros_ndk_version="$withval"
8155 else
8156 aros_ndk_version="9"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8160 $as_echo "$aros_ndk_version" >&6; }
8163 # Extract the first word of "ant", so it can be a program name with args.
8164 set dummy ant; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_path_ant+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 case $ant in
8171 [\\/]* | ?:[\\/]*)
8172 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8191 esac
8193 ant=$ac_cv_path_ant
8194 if test -n "$ant"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8196 $as_echo "$ant" >&6; }
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8203 if test "$ant" = ""; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8205 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8209 $as_echo_n "checking Build debug or release apk... " >&6; }
8211 # Check whether --with-apk-version was given.
8212 if test "${with_apk_version+set}" = set; then :
8213 withval=$with_apk_version; aros_android_antapk=$withval
8214 else
8215 aros_android_antapk=release
8218 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8219 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8222 $as_echo "$aros_android_antapk" >&6; }
8224 target_extra_cfg+="$export_newline""# Android$export_newline""AROS_ANDROID_ANTAPK := $aros_android_antapk$export_newline"
8225 host_extra_cfg+="$export_newline""# Android-specific$export_newline""ANDROID := $android_tool$export_newline""ANT := $ant$export_newline"
8226 aros_target_options+="$export_newline""# Enable Android Gfx Driver$export_newline""OPT_HOST_ANDROIDGFX := yes$export_newline"
8228 if test "$host_os" = "mingw32"; then
8229 android_tool="cmd //c $android_tool"
8232 need_dlopen="no"
8235 esac
8237 #-----------------------------------------------------------------------------
8238 # External toolchains
8239 kernel_tool_prefix="none"
8240 aros_tool_prefix="none"
8241 elf_tool_prefix="${target_cpu}-elf-"
8243 # Base target cpu ISA configuration switch.
8244 case "$target_cpu" in
8245 *aarch64*)
8247 *arm*)
8249 *m68k*)
8250 m68k_isa_extra="ISA_MC68000_FLAGS = -march=68000"
8251 m68k_020_isa_extra="ISA_MC68020_FLAGS = -march=68020"
8252 m68k_030_isa_extra="ISA_MC68030_FLAGS = -march=68030"
8253 m68k_040_isa_extra="ISA_MC68040_FLAGS = -march=68040"
8254 m68k_060_isa_extra="ISA_MC68060_FLAGS = -march=68060"
8255 m68k_ac080_isa_extra="ISA_AC68080_FLAGS = -march=68040"
8256 m68k_020_ext="ISA_MC68020_EXT :=020"
8257 m68k_030_ext="ISA_MC68030_EXT :=030"
8258 m68k_040_ext="ISA_MC68040_EXT :=040"
8259 m68k_060_ext="ISA_MC68060_EXT :=060"
8260 m68k_020_cflags="ISA_MC68020_CFLAGS ="
8261 m68k_030_cflags="ISA_MC68030_CFLAGS ="
8262 m68k_040_cflags="ISA_MC68040_CFLAGS ="
8263 m68k_060_cflags="ISA_MC68060_CFLAGS ="
8264 m68k_020_cppflags="ISA_MC68020_CPPFLAGS ="
8265 m68k_030_cppflags="ISA_MC68030_CPPFLAGS ="
8266 m68k_040_cppflags="ISA_MC68040_CPPFLAGS ="
8267 m68k_060_cppflags="ISA_MC68060_CPPFLAGS ="
8268 m68k_020_ldflags="ISA_MC68020_LDFLAGS ="
8269 m68k_030_ldflags="ISA_MC68030_LDFLAGS ="
8270 m68k_040_ldflags="ISA_MC68040_LDFLAGS ="
8271 m68k_060_ldflags="ISA_MC68060_LDFLAGS ="
8273 *x86_64* | *i?86*)
8274 x86_isa_extra="ISA_X86_FLAGS = -m32 -march=i486"
8275 x86_64_isa_extra="ISA_X8664_FLAGS = -mcmodel=large"
8277 *powerpc*)
8279 esac
8281 # This is the target configuration switch.
8282 case "$target_os" in
8283 linux*)
8284 aros_target_arch="linux"
8285 aros_target_family="unix"
8286 case "$target_cpu" in
8287 *m68k*)
8288 aros_target_cpu="m68k"
8289 aros_object_format="m68kelf"
8290 aros_flavour="emulcompat"
8291 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8292 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8293 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8294 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8295 gcc_target_cpu="mc68000"
8297 *i?86*)
8298 aros_target_cpu="i386"
8299 aros_object_format="elf_i386"
8300 aros_flavour="emulation"
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8302 aros_isa_flags="$""(ISA_X86_FLAGS)"
8303 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8304 aros_kernel_ldflags="-Wl,-melf_i386"
8305 aros_nominal_depth=8
8306 gcc_target_cpu="i386"
8307 pci_hidd_target="hidd-pci-linux"
8308 android_tool_dir_prefix="x86"
8309 android_tool_prefix="i686-android-linux"
8310 android_ndk_arch="x86"
8312 *x86_64*)
8313 aros_target_cpu="x86_64"
8314 aros_object_format="elf_x86_64"
8315 aros_flavour="emulation"
8316 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8317 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8318 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8319 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8320 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8321 aros_nominal_depth=8
8322 pci_hidd_target="hidd-pci-linux"
8324 *powerpc*)
8325 aros_target_cpu="ppc"
8326 aros_object_format="elf32ppc"
8327 aros_flavour="emulation"
8328 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8329 aros_nominal_depth=8
8330 gcc_target_cpu="ppc"
8332 # TODO
8333 # Same as powerpc, but I need this for the nightly build to work again.
8334 # Actually, the nightly should be made working with powerpc target.
8335 # That just was too much work for the moment, another week or two.
8336 *ppc*)
8337 aros_target_cpu="ppc"
8338 aros_object_format="elf32ppc"
8339 aros_flavour="emulation"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8341 aros_nominal_depth=8
8342 gcc_target_cpu="ppc"
8344 *aarch64*)
8345 aros_target_cpu="aarch64"
8346 target_cpu="aarch64"
8347 aros_object_format="aarch64elf_aros"
8348 aros_flavour="emulation"
8349 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8350 gcc_target_cpu="aarch64"
8351 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8352 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8353 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8354 aros_c_libs="$aros_c_libs -laeabi"
8355 gcc_default_float_abi="hard"
8356 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8358 *armhf*)
8359 aros_target_cpu="arm"
8360 target_cpu="arm"
8361 aros_object_format="armelf_aros"
8362 aros_flavour="emulation"
8363 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8364 gcc_target_cpu="arm"
8365 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8366 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8367 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8368 aros_c_libs="$aros_c_libs -laeabi"
8369 gcc_default_float_abi="hard"
8370 android_tool_dir_prefix="arm-linux-androideabi"
8371 android_tool_prefix="arm-linux-androideabi"
8372 android_ndk_arch="arm"
8373 kernel_tool_prefix="arm-linux-gnueabihf-"
8375 *arm*)
8376 aros_target_cpu="arm"
8377 aros_object_format="armelf_aros"
8378 aros_flavour="emulation"
8379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8380 gcc_target_cpu="arm"
8381 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8382 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_OMIT_FP)"
8383 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING)"
8384 aros_c_libs="$aros_c_libs -laeabi"
8385 android_tool_dir_prefix="arm-linux-androideabi"
8386 android_tool_prefix="arm-linux-androideabi"
8387 android_ndk_arch="arm"
8388 kernel_tool_prefix="arm-linux-gnueabi-"
8391 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8393 esac
8394 case "$aros_target_variant" in
8395 android)
8397 if test "$android_ndk_arch" = ""; then
8398 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8401 aros_nominal_width=320
8402 aros_nominal_height=480
8403 if test "$aros_android_ndk" = "none"; then
8404 aros_kernel_cflags="-mandroid"
8405 aros_kernel_ldflags="-mandroid"
8406 CFLAGS="-mandroid"
8407 else
8408 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8409 kernel_tool_version=""
8410 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8411 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8412 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8413 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8414 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8416 need_x11=no
8417 # Disable implicit PIC mode
8418 aros_config_cflags="$aros_config_cflags -fno-pic"
8419 kernel_tool_prefix="$android_tool_prefix-"
8421 esac
8425 aros_target_arch="pc"
8426 aros_shared_default="no"
8427 target_bootloader="grub2"
8428 case "$target_cpu" in
8429 *i?86*)
8430 aros_target_cpu="i386"
8433 if test "$aros_object_format" = "" ; then
8434 aros_object_format="elf_i386"
8436 aros_flavour="standalone"
8437 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8438 aros_isa_flags="$""(ISA_X86_FLAGS)"
8439 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8440 aros_kernel_ldflags="-Wl,-melf_i386"
8441 aros_nominal_width=640
8442 aros_nominal_height=480
8443 gcc_target_cpu="i386"
8445 *x86_64*)
8446 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8447 aros_target_cpu="x86_64"
8448 aros_serial_debug=1
8449 if test "$aros_object_format" = "" ; then
8450 aros_object_format="elf_x86_64"
8452 aros_flavour="standalone"
8453 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8454 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8455 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_RED_ZONE)"
8456 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8457 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_OMIT_FP)"
8458 aros_kernel_ldflags=""
8459 aros_nominal_width=640
8460 aros_nominal_height=480
8461 case "$aros_target_variant" in
8462 smp)
8463 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8465 esac
8468 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8470 esac
8473 prep)
8474 aros_target_arch="prep"
8475 aros_shared_default="no"
8476 aros_target_cpu="ppc"
8477 aros_object_format="elf32ppc"
8478 aros_flavour="ppcnative"
8479 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8480 aros_kernel_ldflags=""
8481 aros_nominal_width=640
8482 aros_nominal_height=480
8483 gcc_target_cpu="ppc"
8486 freebsd*)
8487 aros_target_arch="freebsd"
8488 aros_target_family="unix"
8489 aros_target_cpu="i386"
8490 aros_flavour="emulation"
8491 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8492 gcc_target_cpu="i386"
8494 aros_target_strip_flags="-x"
8497 darwin*)
8498 aros_target_arch="darwin"
8499 aros_target_family="unix"
8500 aros_flavour="emulation"
8501 case "$target_cpu" in
8502 *i?86*)
8503 aros_ios_platform="iPhoneSimulator"
8504 aros_target_cpu="i386"
8505 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8506 aros_isa_flags="$""(ISA_X86_FLAGS)"
8507 aros_kernel_ldflags=""
8508 aros_macosx_version="10.4"
8509 aros_nominal_depth=8
8510 gcc_target_cpu="i386"
8511 aros_object_format="elf_i386"
8512 aros_kernel_ar_flags="-cr"
8513 aros_target_strip_flags="-x"
8514 kernel_tool_flags="-m32"
8516 *x86_64*)
8517 aros_target_cpu="x86_64"
8518 aros_object_format="elf_x86_64"
8519 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8520 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8521 aros_macosx_version="10.6"
8522 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8523 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8524 aros_kernel_cflags="-m64"
8525 aros_kernel_ldflags="-m64"
8526 aros_nominal_depth=8
8527 aros_kernel_ar="ar"
8528 aros_kernel_ar_flags="-cr"
8529 aros_kernel_ld="ld"
8530 aros_kernel_as="as"
8531 aros_kernel_ranlib="ranlib"
8532 aros_kernel_nm="nm"
8533 aros_kernel_strip="strip"
8534 kernel_tool_prefix="i686-apple-darwin10-"
8536 *ppc*)
8537 aros_target_cpu="ppc"
8538 aros_object_format="elf32ppc"
8539 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8540 aros_kernel_ldflags=""
8541 aros_macosx_version="10.0"
8542 aros_nominal_depth=8
8543 gcc_target_cpu="ppc"
8544 aros_kernel_ar="ar"
8545 aros_kernel_ar_flags="-cr"
8546 aros_kernel_ld="ld -arch ppc"
8547 aros_kernel_as="as -arch ppc"
8548 aros_kernel_ranlib="ranlib -arch ppc"
8549 aros_kernel_nm="nm -arch ppc"
8550 aros_kernel_strip="strip -arch ppc"
8551 kernel_tool_prefix="powerpc-apple-darwin10-"
8553 *arm*)
8554 aros_ios_platform="iPhoneOS"
8555 aros_target_cpu="arm"
8556 aros_object_format="armelf_aros"
8557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8558 aros_c_libs="$aros_c_libs -laeabi"
8559 aros_nominal_depth=8
8560 gcc_target_cpu="arm"
8561 aros_kernel_ar="ar"
8562 aros_kernel_ar_flags="-cr"
8563 aros_kernel_ld="ld -arch arm"
8564 aros_kernel_ranlib="ranlib -arch arm"
8565 kernel_tool_prefix="arm-apple-darwin10-"
8566 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8569 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8571 esac
8572 case "$aros_target_variant" in
8573 ios)
8574 make_extra_targetcfg="$export_newline""# Apple iOS stuff for gcc$export_newline""IOS_LDFLAGS := -F$""(IOS_SDK_PATH)/System/Library/Frameworks$export_newline"
8575 aros_ios_version="3.0"
8576 aros_nominal_width=320
8577 aros_nominal_height=480
8578 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8579 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"
8580 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8581 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8582 need_x11=no
8583 # This is here because it may depend on iOS or SDK version
8584 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8585 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8586 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8589 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8590 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8592 esac
8595 dragonfly*)
8596 aros_target_arch="dragonfly"
8597 aros_target_family="unix"
8598 aros_flavour="emulation"
8599 case "$target_cpu" in
8600 *i?86*)
8601 aros_target_cpu="i386"
8602 aros_object_format="elf_i386"
8603 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8604 aros_isa_flags="$""(ISA_X86_FLAGS)"
8606 *x86_64*)
8607 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8608 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8609 aros_target_cpu="x86_64"
8610 aros_object_format="elf_x86_64"
8611 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8612 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8615 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8617 esac
8620 netbsd*)
8621 aros_target_arch="netbsd"
8622 aros_target_family="unix"
8623 case "$target_cpu" in
8624 *m68k*)
8625 aros_target_cpu="m68k"
8626 aros_object_format="m68kelf"
8627 aros_flavour="emulcompat"
8628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8629 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8630 gcc_target_cpu="mc68000"
8632 *i?86*)
8633 aros_target_cpu="i386"
8634 aros_object_format="elf_i386"
8635 aros_flavour="emulation"
8636 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8637 aros_isa_flags="$""(ISA_X86_FLAGS)"
8638 aros_nominal_depth=8
8639 gcc_target_cpu="i386"
8642 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8644 esac
8645 aros_target_genmap="-Wl,-M -Xlinker >"
8646 aros_flavour="emulation"
8647 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8650 openbsd*)
8651 aros_target_arch="openbsd"
8652 aros_target_family="unix"
8653 case "$target_cpu" in
8654 *i?86*)
8655 aros_target_cpu="i386"
8656 aros_object_format="elf_i386"
8657 aros_flavour="emulation"
8658 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8659 aros_isa_flags="$""(ISA_X86_FLAGS)"
8660 gcc_target_cpu="i386"
8663 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8665 esac
8666 aros_target_genmap="-Wl,-M -Xlinker >"
8667 aros_target_nm_flags="-u"
8668 aros_flavour="emulation"
8671 solaris*)
8672 aros_target_arch="solaris"
8673 aros_target_family="unix"
8674 case "$target_cpu" in
8675 *i?86*)
8676 aros_target_cpu="i386"
8677 aros_object_format="elf_i386"
8678 aros_flavour="emulation"
8679 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8680 aros_isa_flags="$""(ISA_X86_FLAGS)"
8681 aros_nominal_depth=8
8682 gcc_target_cpu="i386"
8684 *sparc*)
8685 aros_target_cpu="sparc"
8686 aros_object_format="elf_sparc"
8687 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8688 gcc_target_cpu="sparc"
8691 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8693 esac
8694 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8695 aros_flavour="emulation"
8698 morphos*)
8699 aros_target_arch="morphos"
8700 aros_shared_default="no"
8701 aros_target_cpu="ppc"
8702 aros_object_format="elf_ppc"
8703 aros_flavour="nativecompat"
8704 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8705 gcc_target_cpu="ppc"
8708 sam440)
8709 aros_target_arch="sam440"
8710 aros_shared_default="no"
8711 aros_target_cpu="ppc"
8712 aros_object_format="elf32ppc"
8713 aros_flavour="ppcnative"
8714 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8715 aros_kernel_ldflags=""
8716 aros_nominal_width=1024
8717 aros_nominal_height=768
8718 aros_nominal_depth=24
8719 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8720 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8721 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8722 gcc_target_cpu="powerpc"
8725 efika)
8726 aros_target_arch="efika"
8727 aros_shared_default="no"
8728 aros_target_cpu="arm"
8729 aros_object_format="armelf_aros"
8730 aros_flavour="standalone"
8731 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8732 aros_kernel_ldflags=""
8733 aros_nominal_width=1024
8734 aros_nominal_height=600
8735 aros_c_libs="$aros_c_libs -laeabi"
8736 gcc_default_cpu="armv7-a"
8737 gcc_default_fpu="vfpv3"
8738 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8739 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8740 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8741 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8742 if test "$optimization" = "default"; then
8743 optimization_level="-Os"
8745 case "$target_cpu" in
8746 *armhf*)
8747 gcc_default_float_abi="hard"
8748 target_cpu=arm
8749 aros_target_cpu=arm
8751 *arm*)
8752 gcc_default_float_abi="softfp"
8755 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8757 esac
8760 chrp)
8761 aros_target_arch="chrp"
8762 aros_shared_default="no"
8763 aros_target_cpu="ppc"
8764 aros_object_format="elf32ppc"
8765 aros_flavour="ppcnative"
8766 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8767 aros_kernel_ldflags=""
8768 aros_nominal_width=640
8769 aros_nominal_height=480
8770 aros_isa_flags="$aros_isa_flags -mno-toc"
8771 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8772 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES)"
8773 gcc_target_cpu="powerpc"
8774 case "$aros_target_variant" in
8775 efika)
8776 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8777 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8779 esac
8782 r*pi)
8783 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8784 aros_flavour="standalone"
8785 aros_target_arch="raspi"
8787 aros_shared_default="no"
8789 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8791 case "$target_cpu" in
8792 *aarch64*)
8793 aros_target_cpu="aarch64"
8794 gcc_default_cpu="aarch64"
8795 aros_object_format="aarch64elf_aros"
8797 *armhf*)
8798 aros_target_cpu="arm"
8799 gcc_default_cpu="armv6zk"
8800 gcc_default_cpu_tune="arm1176jzf-s"
8801 aros_object_format="armelf_aros"
8802 aros_isa_flags="$aros_isa_flags -marm"
8803 aros_config_cflags="$aros_config_cflags"
8804 aros_config_cxxflags="$aros_config_cxxflags"
8805 aros_config_aflags="$aros_config_aflags -marm"
8806 aros_kernel_cflags="$aros_kernel_cflags -marm"
8807 aros_target_mkdep="$aros_target_mkdep -Darm"
8808 aros_c_libs="$aros_c_libs -laeabi"
8810 *armeb*)
8811 aros_flavour="standcompat"
8812 aros_target_cpu="armeb"
8813 gcc_default_float_abi="hard"
8814 gcc_default_cpu="armv7ve"
8815 gcc_default_cpu_tune="cortex-a7"
8816 aros_object_format="armelfb_aros"
8817 aros_isa_flags="$aros_isa_flags -marm"
8818 aros_config_cflags="$aros_config_cflags"
8819 aros_config_cxxflags="$aros_config_cxxflags"
8820 aros_config_aflags="$aros_config_aflags -marm"
8821 aros_kernel_cflags="$aros_kernel_cflags -marm"
8822 aros_target_mkdep="$aros_target_mkdep -Darm"
8823 aros_c_libs="$aros_c_libs -laeabi"
8825 *arm*)
8826 aros_target_cpu="arm"
8827 gcc_default_cpu="armv6zk"
8828 gcc_default_cpu_tune="arm1176jzf-s"
8829 aros_object_format="armelf_aros"
8830 aros_isa_flags="$aros_isa_flags -marm"
8831 aros_config_cflags="$aros_config_cflags"
8832 aros_config_cxxflags="$aros_config_cxxflags"
8833 aros_config_aflags="$aros_config_aflags -marm"
8834 aros_kernel_cflags="$aros_kernel_cflags -marm"
8835 aros_target_mkdep="$aros_target_mkdep -Darm"
8836 aros_c_libs="$aros_c_libs -laeabi"
8839 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8841 esac
8843 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8844 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8845 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8846 aros_kernel_cflags="$aros_kernel_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
8848 case "$aros_target_variant" in
8849 smp)
8850 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8852 esac
8855 stm32f7_discovery)
8856 aros_flavour="standalone"
8857 aros_target_arch="stm32f7_discovery"
8858 aros_target_cpu="arm"
8859 aros_target_cpu_mode="thumb2"
8860 aros_object_format="armelf_aros"
8861 aros_shared_default="no"
8863 gcc_default_cpu="armv7e-m"
8864 gcc_default_cpu_tune="cortex-m7"
8865 gcc_default_fpu="fpv5-sp-d16"
8866 gcc_default_float_abi="hard"
8868 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8871 amiga*)
8872 aros_elf_translate="$""(ELF2HUNK)"
8873 make_extra_commands="$export_newline""ELF2HUNK := $""(TOOLDIR)/elf2hunk$""(HOST_EXE_SUFFIX)$export_newline"
8874 aros_target_arch="amiga"
8875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8876 aros_shared_default="no"
8878 case "$target_cpu" in
8879 *m68k*)
8880 # Check whether --enable-amigaos_compliance was given.
8881 if test "${enable_amigaos_compliance+set}" = set; then :
8882 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8885 aros_enable_mmu=no
8886 aros_target_cpu="m68k"
8887 aros_object_format="m68kelf"
8888 aros_flavour="standcompat"
8889 gcc_target_cpu="m68000"
8890 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8891 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8892 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8893 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8894 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_STRICT_ALIASING) $""(CFLAGS_FREESTANDING) $""(CFLAGS_OMIT_FP) $""(CFLAGS_BUILTIN)"
8895 if test "$optimization" = "default"; then
8896 optimization_level="-Os"
8898 aros_config_aflags="$aros_config_aflags"
8899 aros_target_strip_flags="-R.comment --strip-debug"
8900 aros_nominal_width=640
8901 aros_nominal_height=256
8902 aros_nominal_depth=2
8904 *ppc*)
8905 aros_cpu="ppc"
8906 aros_flavour="native"
8907 gcc_target_cpu="ppc"
8910 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8912 esac
8915 mingw*)
8916 aros_target_arch="mingw32"
8917 aros_shared_default="no"
8918 aros_flavour="emulation"
8919 aros_shared_cflags=""
8920 need_crosstools="yes"
8921 need_dlopen="no"
8922 rescomp="windres"
8923 case "$target_cpu" in
8924 *i?86*)
8925 aros_target_cpu="i386"
8926 aros_object_format="elf_i386"
8927 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8928 aros_isa_flags="$""(ISA_X86_FLAGS)"
8929 aros_nominal_depth=8
8930 gcc_target_cpu="i386"
8932 kernel_tool_prefix="i386-mingw32-"
8934 *x86_64*)
8935 aros_target_cpu="x86_64"
8936 aros_object_format="elf_x86_64"
8937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8938 aros_isa_flags="$""(ISA_X8664_FLAGS)"
8939 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_OMIT_FP)"
8940 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_OMIT_FP)"
8941 aros_nominal_depth=8
8942 kernel_tool_prefix="x86_64-w64-mingw32-"
8944 *arm*)
8945 aros_target_cpu="arm"
8946 aros_object_format="armelf_aros"
8947 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8948 aros_c_libs="$aros_c_libs -laeabi"
8949 aros_nominal_depth=8
8950 gcc_target_cpu="arm"
8951 gcc_default_float_abi="soft"
8952 kernel_tool_prefix="arm-mingw32ce-"
8953 aros_nominal_width=160
8954 aros_nominal_height=160
8957 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8959 esac
8960 if test $host_os = "cygwin"; then
8961 aros_kernel_cflags="-mno-cygwin"
8964 pp*)
8965 aros_target_arch="pp"
8966 aros_shared_default="no"
8967 case "$target_cpu" in
8968 *m68k*)
8969 aros_target_cpu="m68k"
8970 aros_object_format="m68kelf"
8971 aros_flavour="palmnative"
8972 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8973 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
8974 aros_nominal_width=160
8975 aros_nominal_height=160
8976 aros_nominal_depth=1
8977 aros_target_ar_flags="cru"
8978 aros_c_libs="$aros_c_libs -lgcc1"
8979 aros_shared_default=no
8980 aros_shared_cflags="-fpic"
8981 aros_shared_aflags=""
8982 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8983 aros_kernel_ldflags="-Wl,-rpath,./lib"
8984 aros_debug_cppflags="$aros_messages_debug"
8985 aros_debug_cflags="$aros_symbols_debug"
8986 aros_debug_aflags=""
8987 aros_debug_ldflags="$aros_symbols_debug"
8988 aros_mungwall_debug="0"
8989 aros_modules_debug="0"
8990 gcc_target_cpu="mc68000"
8991 ignore_undefined_symbols="-ius"
8994 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8996 esac
8999 mac*)
9000 aros_target_arch="mac"
9001 aros_shared_default="no"
9002 case "$target_cpu" in
9003 *m68k*)
9004 aros_target_cpu="m68k"
9005 aros_object_format="m68kelf"
9006 aros_flavour="mac68knative"
9007 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9008 aros_isa_flags="$""(ISA_MC68000_FLAGS)"
9009 aros_nominal_width=512
9010 aros_nominal_height=384
9011 aros_nominal_depth=8
9012 aros_target_ar_flags="cru"
9013 aros_c_libs="$aros_c_libs -lgcc1"
9014 aros_shared_default=no
9015 aros_shared_cflags="-fpic"
9016 aros_shared_aflags=""
9017 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9018 aros_kernel_ldflags="-Wl,-rpath,./lib"
9019 aros_debug_cppflags="$aros_messages_debug"
9020 aros_debug_cflags="$aros_symbols_debug"
9021 aros_debug_aflags=""
9022 aros_debug_ldflags="$aros_symbols_debug"
9023 aros_mungwall_debug="0"
9024 aros_modules_debug="0"
9025 gcc_target_cpu="mc68000"
9026 ignore_undefined_symbols="-ius"
9029 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
9031 esac
9035 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
9037 esac
9039 #-----------------------------------------------------------------------------
9040 crosstools_guess="yes"
9041 aros_target_toolchain="no"
9042 aros_kernel_sysroot=""
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
9045 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
9047 # Check whether --with-kernel-toolchain-prefix was given.
9048 if test "${with_kernel_toolchain_prefix+set}" = set; then :
9049 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9053 $as_echo "$kernel_tool_prefix" >&6; }
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
9056 $as_echo_n "checking ELF toolchain prefix... " >&6; }
9058 # Check whether --with-elf-toolchain-prefix was given.
9059 if test "${with_elf_toolchain_prefix+set}" = set; then :
9060 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
9061 crosstools_guess="no"
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
9065 $as_echo "$elf_tool_prefix" >&6; }
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
9068 $as_echo_n "checking AROS toolchain prefix... " >&6; }
9070 # Check whether --with-aros-toolchain was given.
9071 if test "${with_aros_toolchain+set}" = set; then :
9072 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
9073 crosstools_guess="no"
9076 if test "$aros_tool_prefix" = "yes" ; then
9077 aros_tool_prefix=$aros_target_cpu-aros-
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
9080 $as_echo "$aros_tool_prefix" >&6; }
9082 #-----------------------------------------------------------------------------
9083 # Checking if we should build crosstools..
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
9085 $as_echo_n "checking whether to build crosstools... " >&6; }
9086 # Check whether --enable-crosstools was given.
9087 if test "${enable_crosstools+set}" = set; then :
9088 enableval=$enable_crosstools; crosstools="$enableval"
9089 else
9090 crosstools="$crosstools_guess"
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
9094 $as_echo "$crosstools" >&6; }
9096 if test "${crosstools}" = "yes"; then
9097 if test "${crosstools_guess}" = "no"; then
9098 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
9102 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
9103 aros_target_toolchain="yes"
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
9107 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
9109 # Check whether --with-aros-toolchain-install was given.
9110 if test "${with_aros_toolchain_install+set}" = set; then :
9111 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
9114 if test "x$aros_toolchain_install" = "x"; then
9115 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
9116 else
9117 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
9118 PATH="$AROS_CROSSTOOLSDIR:$PATH"
9119 if test "$crosstools_guess" = "no" ; then
9120 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
9121 aros_kernel_sysroot="$""(TARGET_SYSROOT)"
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
9126 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
9128 #-----------------------------------------------------------------------------
9129 if test "$aros_toolchain" = "gnu" ; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
9131 $as_echo_n "checking what specific target binutils version to use... " >&6; }
9134 # Check whether --with-binutils-version was given.
9135 if test "${with_binutils_version+set}" = set; then :
9136 withval=$with_binutils_version; use_binutils_version="$withval"
9137 else
9138 use_binutils_version=""
9141 if test "$use_binutils_version" = ""; then
9142 target_binutils_version="$default_binutils_version"
9143 else
9144 target_binutils_version="$use_binutils_version"
9146 if test "$aros_toolchain" = "gnu" ; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9148 $as_echo "$target_binutils_version" >&6; }
9152 # Helper to identify gcc version
9155 #-----------------------------------------------------------------------------
9156 if test "$aros_toolchain" = "gnu" ; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9158 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9161 # Check whether --with-gcc-version was given.
9162 if test "${with_gcc_version+set}" = set; then :
9163 withval=$with_gcc_version; use_gcc_version="$withval"
9164 else
9165 use_gcc_version=""
9168 if test "$use_gcc_version" = ""; then
9169 if test "${crosstools}" = "no"; then
9170 if test "x$aros_toolchain_install" != "x"; then
9172 target_gcc_version=""
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9174 $as_echo_n "checking gcc version... " >&6; }
9175 if ${ax_cv_gcc_version+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9179 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9180 if test "x$ax_cv_gcc_version" = "x"; then :
9182 ax_cv_gcc_version=""
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9188 $as_echo "$ax_cv_gcc_version" >&6; }
9189 target_gcc_version=$ax_cv_gcc_version
9194 if test "$use_gcc_version" = ""; then
9195 target_gcc_version="$default_gcc_version"
9197 else
9198 target_gcc_version="$use_gcc_version"
9200 if test "$aros_toolchain" = "gnu" ; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9202 $as_echo "$target_gcc_version" >&6; }
9204 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9205 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9206 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9208 gcc_fix_bitfields="false"
9209 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9210 gcc_fix_bitfields="true"
9211 else
9212 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9213 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9214 gcc_fix_bitfields="true"
9219 if test "$gcc_fix_bitfields" = "true" ; then
9220 case "$aros_target_cpu" in
9221 *x86_64* | *i?86*)
9222 x86_isa_extra="$x86_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9223 x86_64_isa_extra="$x86_64_isa_extra $""(CFLAGS_NO_MS_BITFIELDS)"
9225 esac
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9230 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9231 # Check whether --enable-objc was given.
9232 if test "${enable_objc+set}" = set; then :
9233 enableval=$enable_objc; objc="$enableval"
9234 else
9235 objc="no"
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9239 $as_echo "$objc" >&6; }
9240 if test "x$objc" = "xyes"; then
9241 objc_target="$objc"
9242 else
9243 objc_target="no-objc"
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9247 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9248 # Check whether --enable-java was given.
9249 if test "${enable_java+set}" = set; then :
9250 enableval=$enable_java; java="$enableval"
9251 else
9252 java="no"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9256 $as_echo "$java" >&6; }
9257 if test "x$java" != "xno"; then
9258 java_target="$java"
9259 else
9260 java_target="no-java"
9263 spec_obj_format="-m $aros_object_format"
9264 # Now process extra architecture-specific options.
9265 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9266 # as well as floating-point ABI.
9267 case "$aros_target_cpu" in
9268 *m68k*)
9269 aros_isa_targets="M68K_ISA_TARGETS :=MC68020 MC68040"
9270 aros_isa_extra="$aros_isa_extra$export_newline$aros_isa_targets$export_newline"
9271 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"
9272 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"
9273 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"
9274 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"
9275 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"
9277 *x86_64*)
9278 aros_isa_extra="$export_newline$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9279 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9281 arm*)
9282 if test "$gcc_default_cpu" = ""; then
9283 gcc_default_cpu="armv6"
9285 if test "$gcc_default_fpu" = ""; then
9286 gcc_default_fpu="vfp"
9288 if test "$gcc_default_endian" = ""; then
9289 if test "$target_cpu" = "armeb"; then
9290 gcc_default_endian="big-endian"
9291 else
9292 gcc_default_endian="little-endian"
9295 if test "$gcc_default_float_abi" = ""; then
9296 if test "$target_cpu" = "armhf"; then
9297 gcc_default_float_abi="hard"
9298 else
9299 gcc_default_float_abi="softfp"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9304 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9306 # Check whether --with-cpu was given.
9307 if test "${with_cpu+set}" = set; then :
9308 withval=$with_cpu; aros_gcc_cpu="$withval"
9309 else
9310 aros_gcc_cpu=$gcc_default_cpu
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9314 $as_echo "$aros_gcc_cpu" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9317 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9319 # Check whether --with-fpu was given.
9320 if test "${with_fpu+set}" = set; then :
9321 withval=$with_fpu; aros_gcc_fpu="$withval"
9322 else
9323 aros_gcc_fpu=$gcc_default_fpu
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9327 $as_echo "$aros_gcc_fpu" >&6; }
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9330 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9332 # Check whether --with-float was given.
9333 if test "${with_float+set}" = set; then :
9334 withval=$with_float; aros_gcc_float_abi="$withval"
9335 else
9336 aros_gcc_float_abi=$gcc_default_float_abi
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9340 $as_echo "$aros_gcc_float_abi" >&6; }
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9343 $as_echo_n "checking Which ARM mode to use... " >&6; }
9344 if test "$aros_target_cpu_mode" = ""; then
9345 aros_target_cpu_mode="arm32"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9347 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9350 $as_echo "$aros_target_cpu_mode" >&6; }
9353 case "$aros_target_cpu_mode" in
9354 arm32)
9355 gcc_default_mode="arm"
9356 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"
9358 arm64)
9359 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9361 thumb)
9362 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9364 thumb1)
9365 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9367 thumb2)
9368 gcc_default_mode="thumb"
9369 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9370 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"
9373 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9375 esac
9377 aros_config_cflags="$aros_config_cflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9378 aros_config_cxxflags="$aros_config_cxxflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9379 aros_config_aflags="$aros_config_aflags $""(CFLAGS_NO_ASYNCHRONOUS_UNWIND_TABLES) $""(CFLAGS_NO_EXCEPTIONS)"
9381 i386)
9382 aros_isa_extra="$x86_isa_extra$export_newline$x86_64_isa_extra$export_newline"
9383 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9385 esac
9387 # Some architectures may need custom ELF specs.
9388 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9389 elf_specs_in=config/${aros_object_format}-specs.in
9390 else
9391 elf_specs_in=config/elf-specs.in
9394 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9395 # Since we override specs, we may need to put these defines there
9396 if test "$gcc_target_cpu" != ""; then
9397 gcc_target_cpu="-D__${gcc_target_cpu}__"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9401 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9403 # Check whether --with-portssources was given.
9404 if test "${with_portssources+set}" = set; then :
9405 withval=$with_portssources; with_portssrcdir=$withval
9406 else
9407 with_portssrcdir="default"
9410 if test "$with_portssrcdir" = "default"; then
9411 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9412 else
9413 AROS_PORTSSRCDIR="$with_portssrcdir"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9416 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9419 $as_echo_n "checking which bootloader to use... " >&6; }
9421 # Check whether --with-bootloader was given.
9422 if test "${with_bootloader+set}" = set; then :
9423 withval=$with_bootloader; target_bootloader=$withval
9424 else
9425 target_bootloader=$target_bootloader
9428 if test "$target_bootloader" = "none"; then
9429 aros_target_bootloader=""
9430 else
9431 aros_target_bootloader="$target_bootloader"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9434 $as_echo "$target_bootloader" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9437 $as_echo_n "checking which icon-set to use... " >&6; }
9439 # Check whether --with-iconset was given.
9440 if test "${with_iconset+set}" = set; then :
9441 withval=$with_iconset; target_iconset=$withval
9442 else
9443 target_iconset="default"
9446 if test "$target_iconset" = "default"; then
9447 aros_target_iconset="Gorilla"
9448 target_iconset="default (Gorilla)"
9449 else
9450 aros_target_iconset="$target_iconset"
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9453 $as_echo "$target_iconset" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9456 $as_echo_n "checking which GUI Theme to use... " >&6; }
9458 # Check whether --with-theme was given.
9459 if test "${with_theme+set}" = set; then :
9460 withval=$with_theme; target_guitheme=$withval
9461 else
9462 target_guitheme="default"
9465 if test "$target_guitheme" = "default"; then
9466 aros_target_guitheme="Ice"
9467 else
9468 aros_target_guitheme="$target_guitheme"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9471 $as_echo "$aros_target_guitheme" >&6; }
9473 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9474 # for target code)
9475 cross_compiling=no
9477 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9478 cross_compiling=yes
9481 if test "$aros_host_cpu" == "x86_64" ; then
9482 if test "$aros_target_cpu" == "i386" ; then
9483 cross_compiling=no
9487 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9488 if test "$aros_host_arch" != "$aros_target_arch" ; then
9489 cross_compiling=yes
9491 else
9492 cross_compiling=yes
9495 if test "$cross_compiling" = "no" ; then
9496 kernel_tool_prefix=""
9497 if test "$host_cc_elf" = "yes" ; then
9498 elf_tool_prefix=""
9502 if test "$kernel_tool_version" != ""; then
9503 kernel_tool_version="-$kernel_tool_version"
9506 #######################################################################
9507 ## Compute what toolchains to use, and their paths ##
9508 #######################################################################
9510 # This takes, as input:
9511 # crosstools {yes,no}
9512 # kernel_tool_version {"",[version]}
9513 # target_tool_version {"",[version]}
9514 # kernel_tool_prefix {none,[some-arch-os-]}
9515 # gnu-toolchain -:
9516 # target_tool_prefix ${aros_target_cpu}-aros-
9517 # aros_tool_prefix ${aros_target_cpu}-aros-
9519 # The output is
9520 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9521 # Where the 'kernel' binaries are located
9522 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9523 # Where the 'target' binaries are located
9524 # (not the symlink farm - that is aros_target_*!)
9526 # The rules are:
9527 # if crosstools then
9528 # if kernel_tools_prefix = "no-kernel-prefix-"
9529 # aros_kernel_* = crosstools cc paths
9530 # aros_kernel_cc = elf cc wrapper around crosstools cc
9531 # else
9532 # VALIDATE(${kernel_tools_prefix}*)
9533 # aros_kernel_* = ${kernel_tools_prefix}*
9534 # if ${kernel_tools_prefix}cc is an AROS gcc
9535 # aros_kernel_cc = ${kernel_tools_prefix}cc
9536 # else
9537 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9538 # fi
9539 # fi
9541 # orig_target_* = aros built crosstools
9542 # orig_target_cc = elf cc wrapper around crosstools cc
9543 # else
9544 # VALIDATE(${kernel_tools_prefix}*)
9546 # orig_target_* = aros_kernel_*
9547 # if aros_kernel_cc is an AROS gcc
9548 # orig_target_cc = aros_kernel_cc
9549 # else
9550 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9551 # fi
9552 # fi
9554 if test "$aros_toolchain" = "gnu" ; then
9555 target_tool_prefix="${aros_target_cpu}-aros-"
9556 elif test "$aros_toolchain" = "llvm" ; then
9557 target_tool_prefix="bin/"
9560 if test "$kernel_tool_prefix" != "" ; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9562 $as_echo_n "checking which kernel tools... " >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9564 $as_echo "$kernel_tool_prefix" >&6; };
9567 if test "$kernel_tool_prefix" = "none" ; then
9568 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9569 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9571 else
9572 if test "x-$aros_flavour" != "x-standalone" -o "x-$aros_flavour" != "x-standcompat" ; then
9573 # Kernel tools required - find them
9574 # Note that 'normally', aros_kernel_* overrides will be
9575 # empty, unless specified in the per-arch sections above.
9576 test_kernel_cc=yes
9577 if test "x$aros_kernel_cpp" = "x"; then
9578 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9580 if test "${kernel_tool_version}" != ""; then
9581 if test "$aros_kernel_cpp" != ""; then
9582 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9583 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9584 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9588 if test "$aros_kernel_cpp" = ""; then
9589 if test "$cross_compiling" = "yes" ; then
9590 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9591 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 case $aros_kernel_cpp in
9598 [\\/]* | ?:[\\/]*)
9599 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $PATH
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9609 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9613 done
9614 done
9615 IFS=$as_save_IFS
9618 esac
9620 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9621 if test -n "$aros_kernel_cpp"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9623 $as_echo "$aros_kernel_cpp" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9630 else
9631 if test "$GCC" = "yes"; then
9632 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9633 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9634 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 case $aros_kernel_cpp in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in `dirname $aros_gcc_cpp`
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9656 done
9657 done
9658 IFS=$as_save_IFS
9661 esac
9663 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9664 if test -n "$aros_kernel_cpp"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9666 $as_echo "$aros_kernel_cpp" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 if test "$aros_kernel_cpp" = ""; then
9675 # Extract the first word of "cpp", so it can be a program name with args.
9676 set dummy cpp; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 case $aros_kernel_cpp in
9683 [\\/]* | ?:[\\/]*)
9684 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 break 2
9698 done
9699 done
9700 IFS=$as_save_IFS
9703 esac
9705 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9706 if test -n "$aros_kernel_cpp"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9708 $as_echo "$aros_kernel_cpp" >&6; }
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9717 else
9718 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9719 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9720 set dummy $aros_kernel_cpp; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 case $aros_kernel_cpp in
9727 [\\/]* | ?:[\\/]*)
9728 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9747 esac
9749 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9750 if test -n "$aros_kernel_cpp"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9752 $as_echo "$aros_kernel_cpp" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9762 req_avail=yes
9763 if test "$aros_kernel_cpp" = ""; then
9764 req_avail=no
9766 if test "$aros_kernel_cpp" = "no"; then
9767 req_avail=no
9769 if test "$req_avail" = "no"; then
9770 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9773 if test "x$aros_kernel_cc" = "x"; then
9774 aros_kernel_cc=${kernel_tool_prefix}${CC}
9776 if test "${kernel_tool_version}" != ""; then
9777 if test "$aros_kernel_cc" != ""; then
9778 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9779 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9780 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9784 if test "$aros_kernel_cc" = ""; then
9785 if test "$cross_compiling" = "yes" ; then
9786 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9787 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789 $as_echo_n "checking for $ac_word... " >&6; }
9790 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 case $aros_kernel_cc in
9794 [\\/]* | ?:[\\/]*)
9795 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9809 done
9810 done
9811 IFS=$as_save_IFS
9814 esac
9816 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9817 if test -n "$aros_kernel_cc"; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9819 $as_echo "$aros_kernel_cc" >&6; }
9820 else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; }
9826 else
9827 if test "$GCC" = "yes"; then
9828 aros_gcc_cc=`$CC -print-prog-name=cc`
9829 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9830 set dummy `basename $aros_gcc_cc`; ac_word=$2
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9832 $as_echo_n "checking for $ac_word... " >&6; }
9833 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 case $aros_kernel_cc in
9837 [\\/]* | ?:[\\/]*)
9838 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in `dirname $aros_gcc_cc`
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9852 done
9853 done
9854 IFS=$as_save_IFS
9857 esac
9859 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9860 if test -n "$aros_kernel_cc"; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9862 $as_echo "$aros_kernel_cc" >&6; }
9863 else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 $as_echo "no" >&6; }
9870 if test "$aros_kernel_cc" = ""; then
9871 # Extract the first word of "cc", so it can be a program name with args.
9872 set dummy cc; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 case $aros_kernel_cc in
9879 [\\/]* | ?:[\\/]*)
9880 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9894 done
9895 done
9896 IFS=$as_save_IFS
9899 esac
9901 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9902 if test -n "$aros_kernel_cc"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9904 $as_echo "$aros_kernel_cc" >&6; }
9905 else
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9913 else
9914 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9915 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9916 set dummy $aros_kernel_cc; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 case $aros_kernel_cc in
9923 [\\/]* | ?:[\\/]*)
9924 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9934 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9938 done
9939 done
9940 IFS=$as_save_IFS
9943 esac
9945 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9946 if test -n "$aros_kernel_cc"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9948 $as_echo "$aros_kernel_cc" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9955 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9958 req_avail=yes
9959 if test "$aros_kernel_cc" = ""; then
9960 req_avail=no
9962 if test "$aros_kernel_cc" = "no"; then
9963 req_avail=no
9965 if test "$req_avail" = "no"; then
9966 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9969 if test "x$aros_kernel_cxx" = "x"; then
9970 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9972 if test "${kernel_tool_version}" != ""; then
9973 if test "$aros_kernel_cxx" != ""; then
9974 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9975 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9976 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9980 if test "$aros_kernel_cxx" = ""; then
9981 if test "$cross_compiling" = "yes" ; then
9982 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9983 set dummy ${kernel_tool_prefix}cxx; 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_cxx+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 case $aros_kernel_cxx in
9990 [\\/]* | ?:[\\/]*)
9991 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # 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_cxx="$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_cxx=$ac_cv_path_aros_kernel_cxx
10013 if test -n "$aros_kernel_cxx"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10015 $as_echo "$aros_kernel_cxx" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10022 else
10023 if test "$GCC" = "yes"; then
10024 aros_gcc_cxx=`$CC -print-prog-name=cxx`
10025 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
10026 set dummy `basename $aros_gcc_cxx`; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 case $aros_kernel_cxx in
10033 [\\/]* | ?:[\\/]*)
10034 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in `dirname $aros_gcc_cxx`
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10048 done
10049 done
10050 IFS=$as_save_IFS
10053 esac
10055 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10056 if test -n "$aros_kernel_cxx"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10058 $as_echo "$aros_kernel_cxx" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10066 if test "$aros_kernel_cxx" = ""; then
10067 # Extract the first word of "cxx", so it can be a program name with args.
10068 set dummy cxx; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 case $aros_kernel_cxx in
10075 [\\/]* | ?:[\\/]*)
10076 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10090 done
10091 done
10092 IFS=$as_save_IFS
10095 esac
10097 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10098 if test -n "$aros_kernel_cxx"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10100 $as_echo "$aros_kernel_cxx" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10109 else
10110 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
10111 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
10112 set dummy $aros_kernel_cxx; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 case $aros_kernel_cxx in
10119 [\\/]* | ?:[\\/]*)
10120 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10134 done
10135 done
10136 IFS=$as_save_IFS
10139 esac
10141 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
10142 if test -n "$aros_kernel_cxx"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
10144 $as_echo "$aros_kernel_cxx" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10151 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
10154 # If it's set, make sure it's really there
10155 if test "x$aros_kernel_cxx" != "x" ; then
10156 req_avail=yes
10157 if test "$aros_kernel_cxx" = ""; then
10158 req_avail=no
10160 if test "$aros_kernel_cxx" = "no"; then
10161 req_avail=no
10163 if test "$req_avail" = "no"; then
10164 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10168 if test "$aros_kernel_ld" = ""; then
10169 if test "$cross_compiling" = "yes" ; then
10170 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10171 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 case $aros_kernel_ld in
10178 [\\/]* | ?:[\\/]*)
10179 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10193 done
10194 done
10195 IFS=$as_save_IFS
10198 esac
10200 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10201 if test -n "$aros_kernel_ld"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10203 $as_echo "$aros_kernel_ld" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10210 else
10211 if test "$GCC" = "yes"; then
10212 aros_gcc_ld=`$CC -print-prog-name=ld`
10213 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10214 set dummy `basename $aros_gcc_ld`; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 case $aros_kernel_ld in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in `dirname $aros_gcc_ld`
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10236 done
10237 done
10238 IFS=$as_save_IFS
10241 esac
10243 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10244 if test -n "$aros_kernel_ld"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10246 $as_echo "$aros_kernel_ld" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10254 if test "$aros_kernel_ld" = ""; then
10255 # Extract the first word of "ld", so it can be a program name with args.
10256 set dummy ld; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 case $aros_kernel_ld in
10263 [\\/]* | ?:[\\/]*)
10264 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10278 done
10279 done
10280 IFS=$as_save_IFS
10283 esac
10285 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10286 if test -n "$aros_kernel_ld"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10288 $as_echo "$aros_kernel_ld" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10297 else
10298 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10299 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10300 set dummy $aros_kernel_ld; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 case $aros_kernel_ld in
10307 [\\/]* | ?:[\\/]*)
10308 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10322 done
10323 done
10324 IFS=$as_save_IFS
10327 esac
10329 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10330 if test -n "$aros_kernel_ld"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10332 $as_echo "$aros_kernel_ld" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10339 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10342 req_avail=yes
10343 if test "$aros_kernel_ld" = ""; then
10344 req_avail=no
10346 if test "$aros_kernel_ld" = "no"; then
10347 req_avail=no
10349 if test "$req_avail" = "no"; then
10350 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10353 if test "$aros_kernel_as" = ""; then
10354 if test "$cross_compiling" = "yes" ; then
10355 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10356 set dummy ${kernel_tool_prefix}as; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_path_aros_kernel_as+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 case $aros_kernel_as in
10363 [\\/]* | ?:[\\/]*)
10364 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10378 done
10379 done
10380 IFS=$as_save_IFS
10383 esac
10385 aros_kernel_as=$ac_cv_path_aros_kernel_as
10386 if test -n "$aros_kernel_as"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10388 $as_echo "$aros_kernel_as" >&6; }
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10395 else
10396 if test "$GCC" = "yes"; then
10397 aros_gcc_as=`$CC -print-prog-name=as`
10398 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10399 set dummy `basename $aros_gcc_as`; 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_as+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 case $aros_kernel_as in
10406 [\\/]* | ?:[\\/]*)
10407 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in `dirname $aros_gcc_as`
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_as="$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_as=$ac_cv_path_aros_kernel_as
10429 if test -n "$aros_kernel_as"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10431 $as_echo "$aros_kernel_as" >&6; }
10432 else
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10439 if test "$aros_kernel_as" = ""; then
10440 # Extract the first word of "as", so it can be a program name with args.
10441 set dummy as; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if ${ac_cv_path_aros_kernel_as+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 case $aros_kernel_as in
10448 [\\/]* | ?:[\\/]*)
10449 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10463 done
10464 done
10465 IFS=$as_save_IFS
10468 esac
10470 aros_kernel_as=$ac_cv_path_aros_kernel_as
10471 if test -n "$aros_kernel_as"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10473 $as_echo "$aros_kernel_as" >&6; }
10474 else
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10482 else
10483 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10484 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10485 set dummy $aros_kernel_as; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_path_aros_kernel_as+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 case $aros_kernel_as in
10492 [\\/]* | ?:[\\/]*)
10493 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10509 IFS=$as_save_IFS
10512 esac
10514 aros_kernel_as=$ac_cv_path_aros_kernel_as
10515 if test -n "$aros_kernel_as"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10517 $as_echo "$aros_kernel_as" >&6; }
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10524 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10527 req_avail=yes
10528 if test "$aros_kernel_as" = ""; then
10529 req_avail=no
10531 if test "$aros_kernel_as" = "no"; then
10532 req_avail=no
10534 if test "$req_avail" = "no"; then
10535 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10538 if test "$aros_kernel_ar" = ""; then
10539 if test "$cross_compiling" = "yes" ; then
10540 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10541 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 $as_echo_n "checking for $ac_word... " >&6; }
10544 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 case $aros_kernel_ar in
10548 [\\/]* | ?:[\\/]*)
10549 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10563 done
10564 done
10565 IFS=$as_save_IFS
10568 esac
10570 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10571 if test -n "$aros_kernel_ar"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10573 $as_echo "$aros_kernel_ar" >&6; }
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10580 else
10581 if test "$GCC" = "yes"; then
10582 aros_gcc_ar=`$CC -print-prog-name=ar`
10583 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10584 set dummy `basename $aros_gcc_ar`; ac_word=$2
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586 $as_echo_n "checking for $ac_word... " >&6; }
10587 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 case $aros_kernel_ar in
10591 [\\/]* | ?:[\\/]*)
10592 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596 for as_dir in `dirname $aros_gcc_ar`
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 break 2
10606 done
10607 done
10608 IFS=$as_save_IFS
10611 esac
10613 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10614 if test -n "$aros_kernel_ar"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10616 $as_echo "$aros_kernel_ar" >&6; }
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; }
10624 if test "$aros_kernel_ar" = ""; then
10625 # Extract the first word of "ar", so it can be a program name with args.
10626 set dummy ar; ac_word=$2
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 $as_echo_n "checking for $ac_word... " >&6; }
10629 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 case $aros_kernel_ar in
10633 [\\/]* | ?:[\\/]*)
10634 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10648 done
10649 done
10650 IFS=$as_save_IFS
10653 esac
10655 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10656 if test -n "$aros_kernel_ar"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10658 $as_echo "$aros_kernel_ar" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10667 else
10668 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10669 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10670 set dummy $aros_kernel_ar; ac_word=$2
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672 $as_echo_n "checking for $ac_word... " >&6; }
10673 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 case $aros_kernel_ar in
10677 [\\/]* | ?:[\\/]*)
10678 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10684 IFS=$as_save_IFS
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10688 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 break 2
10692 done
10693 done
10694 IFS=$as_save_IFS
10697 esac
10699 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10700 if test -n "$aros_kernel_ar"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10702 $as_echo "$aros_kernel_ar" >&6; }
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10709 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10712 req_avail=yes
10713 if test "$aros_kernel_ar" = ""; then
10714 req_avail=no
10716 if test "$aros_kernel_ar" = "no"; then
10717 req_avail=no
10719 if test "$req_avail" = "no"; then
10720 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10723 if test "$aros_kernel_ranlib" = ""; then
10724 if test "$cross_compiling" = "yes" ; then
10725 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10726 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 case $aros_kernel_ranlib in
10733 [\\/]* | ?:[\\/]*)
10734 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10748 done
10749 done
10750 IFS=$as_save_IFS
10753 esac
10755 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10756 if test -n "$aros_kernel_ranlib"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10758 $as_echo "$aros_kernel_ranlib" >&6; }
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10765 else
10766 if test "$GCC" = "yes"; then
10767 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10768 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10769 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 case $aros_kernel_ranlib in
10776 [\\/]* | ?:[\\/]*)
10777 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in `dirname $aros_gcc_ranlib`
10783 IFS=$as_save_IFS
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10791 done
10792 done
10793 IFS=$as_save_IFS
10796 esac
10798 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10799 if test -n "$aros_kernel_ranlib"; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10801 $as_echo "$aros_kernel_ranlib" >&6; }
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10809 if test "$aros_kernel_ranlib" = ""; then
10810 # Extract the first word of "ranlib", so it can be a program name with args.
10811 set dummy ranlib; ac_word=$2
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 case $aros_kernel_ranlib in
10818 [\\/]* | ?:[\\/]*)
10819 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10833 done
10834 done
10835 IFS=$as_save_IFS
10838 esac
10840 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10841 if test -n "$aros_kernel_ranlib"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10843 $as_echo "$aros_kernel_ranlib" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10852 else
10853 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10854 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10855 set dummy $aros_kernel_ranlib; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857 $as_echo_n "checking for $ac_word... " >&6; }
10858 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 case $aros_kernel_ranlib in
10862 [\\/]* | ?:[\\/]*)
10863 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10877 done
10878 done
10879 IFS=$as_save_IFS
10882 esac
10884 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10885 if test -n "$aros_kernel_ranlib"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10887 $as_echo "$aros_kernel_ranlib" >&6; }
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10894 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10897 req_avail=yes
10898 if test "$aros_kernel_ranlib" = ""; then
10899 req_avail=no
10901 if test "$aros_kernel_ranlib" = "no"; then
10902 req_avail=no
10904 if test "$req_avail" = "no"; then
10905 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10908 if test "$aros_kernel_nm" = ""; then
10909 if test "$cross_compiling" = "yes" ; then
10910 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10911 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 case $aros_kernel_nm in
10918 [\\/]* | ?:[\\/]*)
10919 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10933 done
10934 done
10935 IFS=$as_save_IFS
10938 esac
10940 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10941 if test -n "$aros_kernel_nm"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10943 $as_echo "$aros_kernel_nm" >&6; }
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10950 else
10951 if test "$GCC" = "yes"; then
10952 aros_gcc_nm=`$CC -print-prog-name=nm`
10953 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10954 set dummy `basename $aros_gcc_nm`; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 case $aros_kernel_nm in
10961 [\\/]* | ?:[\\/]*)
10962 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in `dirname $aros_gcc_nm`
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10972 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10976 done
10977 done
10978 IFS=$as_save_IFS
10981 esac
10983 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10984 if test -n "$aros_kernel_nm"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10986 $as_echo "$aros_kernel_nm" >&6; }
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10994 if test "$aros_kernel_nm" = ""; then
10995 # Extract the first word of "nm", so it can be a program name with args.
10996 set dummy nm; ac_word=$2
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10998 $as_echo_n "checking for $ac_word... " >&6; }
10999 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 case $aros_kernel_nm in
11003 [\\/]* | ?:[\\/]*)
11004 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11014 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11018 done
11019 done
11020 IFS=$as_save_IFS
11023 esac
11025 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11026 if test -n "$aros_kernel_nm"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11028 $as_echo "$aros_kernel_nm" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11037 else
11038 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
11039 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
11040 set dummy $aros_kernel_nm; ac_word=$2
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042 $as_echo_n "checking for $ac_word... " >&6; }
11043 if ${ac_cv_path_aros_kernel_nm+:} false; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 case $aros_kernel_nm in
11047 [\\/]* | ?:[\\/]*)
11048 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
11051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052 for as_dir in $PATH
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
11056 for ac_exec_ext in '' $ac_executable_extensions; do
11057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11058 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
11059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 break 2
11062 done
11063 done
11064 IFS=$as_save_IFS
11067 esac
11069 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
11070 if test -n "$aros_kernel_nm"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
11072 $as_echo "$aros_kernel_nm" >&6; }
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11079 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
11082 req_avail=yes
11083 if test "$aros_kernel_nm" = ""; then
11084 req_avail=no
11086 if test "$aros_kernel_nm" = "no"; then
11087 req_avail=no
11089 if test "$req_avail" = "no"; then
11090 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11093 if test "$aros_kernel_strip" = ""; then
11094 if test "$cross_compiling" = "yes" ; then
11095 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
11096 set dummy ${kernel_tool_prefix}strip; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 case $aros_kernel_strip in
11103 [\\/]* | ?:[\\/]*)
11104 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11118 done
11119 done
11120 IFS=$as_save_IFS
11123 esac
11125 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11126 if test -n "$aros_kernel_strip"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11128 $as_echo "$aros_kernel_strip" >&6; }
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11135 else
11136 if test "$GCC" = "yes"; then
11137 aros_gcc_strip=`$CC -print-prog-name=strip`
11138 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11139 set dummy `basename $aros_gcc_strip`; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 case $aros_kernel_strip in
11146 [\\/]* | ?:[\\/]*)
11147 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in `dirname $aros_gcc_strip`
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11157 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11161 done
11162 done
11163 IFS=$as_save_IFS
11166 esac
11168 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11169 if test -n "$aros_kernel_strip"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11171 $as_echo "$aros_kernel_strip" >&6; }
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11179 if test "$aros_kernel_strip" = ""; then
11180 # Extract the first word of "strip", so it can be a program name with args.
11181 set dummy strip; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 case $aros_kernel_strip in
11188 [\\/]* | ?:[\\/]*)
11189 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11203 done
11204 done
11205 IFS=$as_save_IFS
11208 esac
11210 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11211 if test -n "$aros_kernel_strip"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11213 $as_echo "$aros_kernel_strip" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11222 else
11223 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11224 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11225 set dummy $aros_kernel_strip; ac_word=$2
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227 $as_echo_n "checking for $ac_word... " >&6; }
11228 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 case $aros_kernel_strip in
11232 [\\/]* | ?:[\\/]*)
11233 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11247 done
11248 done
11249 IFS=$as_save_IFS
11252 esac
11254 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11255 if test -n "$aros_kernel_strip"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11257 $as_echo "$aros_kernel_strip" >&6; }
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11264 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11267 req_avail=yes
11268 if test "$aros_kernel_strip" = ""; then
11269 req_avail=no
11271 if test "$aros_kernel_strip" = "no"; then
11272 req_avail=no
11274 if test "$req_avail" = "no"; then
11275 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11278 # Objcopy and objdump are not required for the kernel
11279 # toolchain on many architectures.
11280 # So we'll look for them, but not make them strictly required.
11282 if test "$aros_kernel_objcopy" = ""; then
11283 if test "$cross_compiling" = "yes" ; then
11284 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11285 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 case $aros_kernel_objcopy in
11292 [\\/]* | ?:[\\/]*)
11293 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11307 done
11308 done
11309 IFS=$as_save_IFS
11312 esac
11314 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11315 if test -n "$aros_kernel_objcopy"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11317 $as_echo "$aros_kernel_objcopy" >&6; }
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11324 else
11325 if test "$GCC" = "yes"; then
11326 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11327 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11328 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11330 $as_echo_n "checking for $ac_word... " >&6; }
11331 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 case $aros_kernel_objcopy in
11335 [\\/]* | ?:[\\/]*)
11336 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in `dirname $aros_gcc_objcopy`
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11350 done
11351 done
11352 IFS=$as_save_IFS
11355 esac
11357 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11358 if test -n "$aros_kernel_objcopy"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11360 $as_echo "$aros_kernel_objcopy" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11368 if test "$aros_kernel_objcopy" = ""; then
11369 # Extract the first word of "objcopy", so it can be a program name with args.
11370 set dummy objcopy; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 case $aros_kernel_objcopy in
11377 [\\/]* | ?:[\\/]*)
11378 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11392 done
11393 done
11394 IFS=$as_save_IFS
11397 esac
11399 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11400 if test -n "$aros_kernel_objcopy"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11402 $as_echo "$aros_kernel_objcopy" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11411 else
11412 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11413 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11414 set dummy $aros_kernel_objcopy; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 case $aros_kernel_objcopy in
11421 [\\/]* | ?:[\\/]*)
11422 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11432 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11436 done
11437 done
11438 IFS=$as_save_IFS
11441 esac
11443 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11444 if test -n "$aros_kernel_objcopy"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11446 $as_echo "$aros_kernel_objcopy" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11453 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11457 if test "$aros_kernel_objdump" = ""; then
11458 if test "$cross_compiling" = "yes" ; then
11459 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11460 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 case $aros_kernel_objdump in
11467 [\\/]* | ?:[\\/]*)
11468 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11478 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11482 done
11483 done
11484 IFS=$as_save_IFS
11487 esac
11489 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11490 if test -n "$aros_kernel_objdump"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11492 $as_echo "$aros_kernel_objdump" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11499 else
11500 if test "$GCC" = "yes"; then
11501 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11502 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11503 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $aros_kernel_objdump in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in `dirname $aros_gcc_objdump`
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11525 done
11526 done
11527 IFS=$as_save_IFS
11530 esac
11532 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11533 if test -n "$aros_kernel_objdump"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11535 $as_echo "$aros_kernel_objdump" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11543 if test "$aros_kernel_objdump" = ""; then
11544 # Extract the first word of "objdump", so it can be a program name with args.
11545 set dummy objdump; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 case $aros_kernel_objdump in
11552 [\\/]* | ?:[\\/]*)
11553 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11567 done
11568 done
11569 IFS=$as_save_IFS
11572 esac
11574 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11575 if test -n "$aros_kernel_objdump"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11577 $as_echo "$aros_kernel_objdump" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11586 else
11587 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11588 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11589 set dummy $aros_kernel_objdump; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 case $aros_kernel_objdump in
11596 [\\/]* | ?:[\\/]*)
11597 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11611 done
11612 done
11613 IFS=$as_save_IFS
11616 esac
11618 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11619 if test -n "$aros_kernel_objdump"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11621 $as_echo "$aros_kernel_objdump" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11628 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11631 if test "x${crosstools}" != "xyes" ; then
11632 req_avail=yes
11633 if test "$aros_kernel_objcopy" = ""; then
11634 req_avail=no
11636 if test "$aros_kernel_objcopy" = "no"; then
11637 req_avail=no
11639 if test "$req_avail" = "no"; then
11640 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11642 req_avail=yes
11643 if test "$aros_kernel_objdump" = ""; then
11644 req_avail=no
11646 if test "$aros_kernel_objdump" = "no"; then
11647 req_avail=no
11649 if test "$req_avail" = "no"; then
11650 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11657 $as_echo_n "checking which target tools to use... " >&6; }
11658 if test "$aros_target_toolchain" = "yes"; then
11659 if test "$aros_toolchain" = "llvm" ; then
11660 msg_result="llvm"
11661 else
11662 msg_result=$target_tool_prefix
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11665 $as_echo "$msg_result" >&6; }
11666 # We are building AROS crosstools
11667 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11668 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11669 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11670 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11671 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11672 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11673 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11674 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11675 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11676 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11677 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11678 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11679 else
11680 # Determine whether AROS or ELF tools should be used
11681 if test "$aros_tool_prefix" = "none"; then
11682 aros_tool_prefix="${elf_tool_prefix}"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11686 $as_echo "$aros_tool_prefix" >&6; }
11687 # We are *not* building AROS crosstools - use the AROS or ELF tools
11689 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11690 if test "$cross_compiling" = "yes" ; then
11691 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11692 set dummy ${target_tool_prefix}cpp; ac_word=$2
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if ${ac_cv_path_orig_target_cpp+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 case $orig_target_cpp in
11699 [\\/]* | ?:[\\/]*)
11700 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11714 done
11715 done
11716 IFS=$as_save_IFS
11719 esac
11721 orig_target_cpp=$ac_cv_path_orig_target_cpp
11722 if test -n "$orig_target_cpp"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11724 $as_echo "$orig_target_cpp" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11731 else
11732 if test "$GCC" = "yes"; then
11733 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11734 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11735 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if ${ac_cv_path_orig_target_cpp+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 case $orig_target_cpp in
11742 [\\/]* | ?:[\\/]*)
11743 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in `dirname $aros_gcc_cpp`
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11757 done
11758 done
11759 IFS=$as_save_IFS
11762 esac
11764 orig_target_cpp=$ac_cv_path_orig_target_cpp
11765 if test -n "$orig_target_cpp"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11767 $as_echo "$orig_target_cpp" >&6; }
11768 else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11775 if test "$orig_target_cpp" = ""; then
11776 # Extract the first word of "cpp", so it can be a program name with args.
11777 set dummy cpp; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_orig_target_cpp+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 case $orig_target_cpp in
11784 [\\/]* | ?:[\\/]*)
11785 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11799 done
11800 done
11801 IFS=$as_save_IFS
11804 esac
11806 orig_target_cpp=$ac_cv_path_orig_target_cpp
11807 if test -n "$orig_target_cpp"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11809 $as_echo "$orig_target_cpp" >&6; }
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11818 else
11819 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11820 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11821 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_path_orig_target_cpp+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 case $orig_target_cpp in
11828 [\\/]* | ?:[\\/]*)
11829 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11843 done
11844 done
11845 IFS=$as_save_IFS
11848 esac
11850 orig_target_cpp=$ac_cv_path_orig_target_cpp
11851 if test -n "$orig_target_cpp"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11853 $as_echo "$orig_target_cpp" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11860 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11863 req_avail=yes
11864 if test "$orig_target_cpp" = ""; then
11865 req_avail=no
11867 if test "$orig_target_cpp" = "no"; then
11868 req_avail=no
11870 if test "$req_avail" = "no"; then
11871 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11874 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11875 if test "$cross_compiling" = "yes" ; then
11876 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11877 set dummy ${target_tool_prefix}gcc; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_path_orig_target_cc+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 case $orig_target_cc in
11884 [\\/]* | ?:[\\/]*)
11885 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 break 2
11899 done
11900 done
11901 IFS=$as_save_IFS
11904 esac
11906 orig_target_cc=$ac_cv_path_orig_target_cc
11907 if test -n "$orig_target_cc"; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11909 $as_echo "$orig_target_cc" >&6; }
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11916 else
11917 if test "$GCC" = "yes"; then
11918 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11919 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11920 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922 $as_echo_n "checking for $ac_word... " >&6; }
11923 if ${ac_cv_path_orig_target_cc+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 case $orig_target_cc in
11927 [\\/]* | ?:[\\/]*)
11928 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in `dirname $aros_gcc_gcc`
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11938 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11942 done
11943 done
11944 IFS=$as_save_IFS
11947 esac
11949 orig_target_cc=$ac_cv_path_orig_target_cc
11950 if test -n "$orig_target_cc"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11952 $as_echo "$orig_target_cc" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11960 if test "$orig_target_cc" = ""; then
11961 # Extract the first word of "gcc", so it can be a program name with args.
11962 set dummy gcc; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_path_orig_target_cc+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 case $orig_target_cc in
11969 [\\/]* | ?:[\\/]*)
11970 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 break 2
11984 done
11985 done
11986 IFS=$as_save_IFS
11989 esac
11991 orig_target_cc=$ac_cv_path_orig_target_cc
11992 if test -n "$orig_target_cc"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11994 $as_echo "$orig_target_cc" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
12003 else
12004 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12005 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
12006 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_path_orig_target_cc+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 case $orig_target_cc in
12013 [\\/]* | ?:[\\/]*)
12014 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12028 done
12029 done
12030 IFS=$as_save_IFS
12033 esac
12035 orig_target_cc=$ac_cv_path_orig_target_cc
12036 if test -n "$orig_target_cc"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
12038 $as_echo "$orig_target_cc" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12045 orig_target_cc="$orig_target_cc $ac_tool_optarg"
12048 req_avail=yes
12049 if test "$orig_target_cc" = ""; then
12050 req_avail=no
12052 if test "$orig_target_cc" = "no"; then
12053 req_avail=no
12055 if test "$req_avail" = "no"; then
12056 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
12059 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
12060 if test "$cross_compiling" = "yes" ; then
12061 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
12062 set dummy ${target_tool_prefix}g++; ac_word=$2
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064 $as_echo_n "checking for $ac_word... " >&6; }
12065 if ${ac_cv_path_orig_target_cxx+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 case $orig_target_cxx in
12069 [\\/]* | ?:[\\/]*)
12070 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12084 done
12085 done
12086 IFS=$as_save_IFS
12089 esac
12091 orig_target_cxx=$ac_cv_path_orig_target_cxx
12092 if test -n "$orig_target_cxx"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12094 $as_echo "$orig_target_cxx" >&6; }
12095 else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12101 else
12102 if test "$GCC" = "yes"; then
12103 aros_gcc_g++=`$CC -print-prog-name=g++`
12104 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
12105 set dummy `basename $aros_gcc_g++`; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if ${ac_cv_path_orig_target_cxx+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 case $orig_target_cxx in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in `dirname $aros_gcc_g++`
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12127 done
12128 done
12129 IFS=$as_save_IFS
12132 esac
12134 orig_target_cxx=$ac_cv_path_orig_target_cxx
12135 if test -n "$orig_target_cxx"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12137 $as_echo "$orig_target_cxx" >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12145 if test "$orig_target_cxx" = ""; then
12146 # Extract the first word of "g++", so it can be a program name with args.
12147 set dummy g++; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_orig_target_cxx+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 case $orig_target_cxx in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12169 done
12170 done
12171 IFS=$as_save_IFS
12174 esac
12176 orig_target_cxx=$ac_cv_path_orig_target_cxx
12177 if test -n "$orig_target_cxx"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12179 $as_echo "$orig_target_cxx" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12188 else
12189 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12190 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12191 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_path_orig_target_cxx+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 case $orig_target_cxx in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12209 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12213 done
12214 done
12215 IFS=$as_save_IFS
12218 esac
12220 orig_target_cxx=$ac_cv_path_orig_target_cxx
12221 if test -n "$orig_target_cxx"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12223 $as_echo "$orig_target_cxx" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12230 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12233 req_avail=yes
12234 if test "$orig_target_cxx" = ""; then
12235 req_avail=no
12237 if test "$orig_target_cxx" = "no"; then
12238 req_avail=no
12240 if test "$req_avail" = "no"; then
12241 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12244 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12245 if test "$cross_compiling" = "yes" ; then
12246 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12247 set dummy ${target_tool_prefix}gcc; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if ${ac_cv_path_orig_target_ld+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 case $orig_target_ld in
12254 [\\/]* | ?:[\\/]*)
12255 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12274 esac
12276 orig_target_ld=$ac_cv_path_orig_target_ld
12277 if test -n "$orig_target_ld"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12279 $as_echo "$orig_target_ld" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12286 else
12287 if test "$GCC" = "yes"; then
12288 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12289 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12290 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_path_orig_target_ld+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 case $orig_target_ld in
12297 [\\/]* | ?:[\\/]*)
12298 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in `dirname $aros_gcc_gcc`
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12312 done
12313 done
12314 IFS=$as_save_IFS
12317 esac
12319 orig_target_ld=$ac_cv_path_orig_target_ld
12320 if test -n "$orig_target_ld"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12322 $as_echo "$orig_target_ld" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12330 if test "$orig_target_ld" = ""; then
12331 # Extract the first word of "gcc", so it can be a program name with args.
12332 set dummy gcc; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 $as_echo_n "checking for $ac_word... " >&6; }
12335 if ${ac_cv_path_orig_target_ld+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 case $orig_target_ld in
12339 [\\/]* | ?:[\\/]*)
12340 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12354 done
12355 done
12356 IFS=$as_save_IFS
12359 esac
12361 orig_target_ld=$ac_cv_path_orig_target_ld
12362 if test -n "$orig_target_ld"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12364 $as_echo "$orig_target_ld" >&6; }
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12373 else
12374 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12375 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12376 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if ${ac_cv_path_orig_target_ld+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 case $orig_target_ld in
12383 [\\/]* | ?:[\\/]*)
12384 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12394 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396 break 2
12398 done
12399 done
12400 IFS=$as_save_IFS
12403 esac
12405 orig_target_ld=$ac_cv_path_orig_target_ld
12406 if test -n "$orig_target_ld"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12408 $as_echo "$orig_target_ld" >&6; }
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12415 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12418 req_avail=yes
12419 if test "$orig_target_ld" = ""; then
12420 req_avail=no
12422 if test "$orig_target_ld" = "no"; then
12423 req_avail=no
12425 if test "$req_avail" = "no"; then
12426 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12429 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12430 if test "$cross_compiling" = "yes" ; then
12431 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12432 set dummy ${target_tool_prefix}as; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_path_orig_target_as+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 case $orig_target_as in
12439 [\\/]* | ?:[\\/]*)
12440 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12454 done
12455 done
12456 IFS=$as_save_IFS
12459 esac
12461 orig_target_as=$ac_cv_path_orig_target_as
12462 if test -n "$orig_target_as"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12464 $as_echo "$orig_target_as" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12471 else
12472 if test "$GCC" = "yes"; then
12473 aros_gcc_as=`$CC -print-prog-name=as`
12474 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12475 set dummy `basename $aros_gcc_as`; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if ${ac_cv_path_orig_target_as+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 case $orig_target_as in
12482 [\\/]* | ?:[\\/]*)
12483 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in `dirname $aros_gcc_as`
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12497 done
12498 done
12499 IFS=$as_save_IFS
12502 esac
12504 orig_target_as=$ac_cv_path_orig_target_as
12505 if test -n "$orig_target_as"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12507 $as_echo "$orig_target_as" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12515 if test "$orig_target_as" = ""; then
12516 # Extract the first word of "as", so it can be a program name with args.
12517 set dummy as; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_path_orig_target_as+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 case $orig_target_as in
12524 [\\/]* | ?:[\\/]*)
12525 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 break 2
12539 done
12540 done
12541 IFS=$as_save_IFS
12544 esac
12546 orig_target_as=$ac_cv_path_orig_target_as
12547 if test -n "$orig_target_as"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12549 $as_echo "$orig_target_as" >&6; }
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12558 else
12559 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12560 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12561 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if ${ac_cv_path_orig_target_as+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 case $orig_target_as in
12568 [\\/]* | ?:[\\/]*)
12569 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12583 done
12584 done
12585 IFS=$as_save_IFS
12588 esac
12590 orig_target_as=$ac_cv_path_orig_target_as
12591 if test -n "$orig_target_as"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12593 $as_echo "$orig_target_as" >&6; }
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12600 orig_target_as="$orig_target_as $ac_tool_optarg"
12603 req_avail=yes
12604 if test "$orig_target_as" = ""; then
12605 req_avail=no
12607 if test "$orig_target_as" = "no"; then
12608 req_avail=no
12610 if test "$req_avail" = "no"; then
12611 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12614 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12615 if test "$cross_compiling" = "yes" ; then
12616 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12617 set dummy ${target_tool_prefix}ar; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_path_orig_target_ar+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 case $orig_target_ar in
12624 [\\/]* | ?:[\\/]*)
12625 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12639 done
12640 done
12641 IFS=$as_save_IFS
12644 esac
12646 orig_target_ar=$ac_cv_path_orig_target_ar
12647 if test -n "$orig_target_ar"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12649 $as_echo "$orig_target_ar" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12656 else
12657 if test "$GCC" = "yes"; then
12658 aros_gcc_ar=`$CC -print-prog-name=ar`
12659 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12660 set dummy `basename $aros_gcc_ar`; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if ${ac_cv_path_orig_target_ar+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 case $orig_target_ar in
12667 [\\/]* | ?:[\\/]*)
12668 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in `dirname $aros_gcc_ar`
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12678 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 break 2
12682 done
12683 done
12684 IFS=$as_save_IFS
12687 esac
12689 orig_target_ar=$ac_cv_path_orig_target_ar
12690 if test -n "$orig_target_ar"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12692 $as_echo "$orig_target_ar" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12700 if test "$orig_target_ar" = ""; then
12701 # Extract the first word of "ar", so it can be a program name with args.
12702 set dummy ar; ac_word=$2
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704 $as_echo_n "checking for $ac_word... " >&6; }
12705 if ${ac_cv_path_orig_target_ar+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 case $orig_target_ar in
12709 [\\/]* | ?:[\\/]*)
12710 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12720 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722 break 2
12724 done
12725 done
12726 IFS=$as_save_IFS
12729 esac
12731 orig_target_ar=$ac_cv_path_orig_target_ar
12732 if test -n "$orig_target_ar"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12734 $as_echo "$orig_target_ar" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12743 else
12744 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12745 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12746 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if ${ac_cv_path_orig_target_ar+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 case $orig_target_ar in
12753 [\\/]* | ?:[\\/]*)
12754 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12764 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12768 done
12769 done
12770 IFS=$as_save_IFS
12773 esac
12775 orig_target_ar=$ac_cv_path_orig_target_ar
12776 if test -n "$orig_target_ar"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12778 $as_echo "$orig_target_ar" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12785 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12788 req_avail=yes
12789 if test "$orig_target_ar" = ""; then
12790 req_avail=no
12792 if test "$orig_target_ar" = "no"; then
12793 req_avail=no
12795 if test "$req_avail" = "no"; then
12796 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12799 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12800 if test "$cross_compiling" = "yes" ; then
12801 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12802 set dummy ${target_tool_prefix}ar; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 case $orig_target_ranlib in
12809 [\\/]* | ?:[\\/]*)
12810 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12824 done
12825 done
12826 IFS=$as_save_IFS
12829 esac
12831 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12832 if test -n "$orig_target_ranlib"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12834 $as_echo "$orig_target_ranlib" >&6; }
12835 else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12841 else
12842 if test "$GCC" = "yes"; then
12843 aros_gcc_ar=`$CC -print-prog-name=ar`
12844 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12845 set dummy `basename $aros_gcc_ar`; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 case $orig_target_ranlib in
12852 [\\/]* | ?:[\\/]*)
12853 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in `dirname $aros_gcc_ar`
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12867 done
12868 done
12869 IFS=$as_save_IFS
12872 esac
12874 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12875 if test -n "$orig_target_ranlib"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12877 $as_echo "$orig_target_ranlib" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12885 if test "$orig_target_ranlib" = ""; then
12886 # Extract the first word of "ar", so it can be a program name with args.
12887 set dummy ar; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 case $orig_target_ranlib in
12894 [\\/]* | ?:[\\/]*)
12895 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12905 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12914 esac
12916 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12917 if test -n "$orig_target_ranlib"; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12919 $as_echo "$orig_target_ranlib" >&6; }
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12928 else
12929 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12930 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12931 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 case $orig_target_ranlib in
12938 [\\/]* | ?:[\\/]*)
12939 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12949 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12953 done
12954 done
12955 IFS=$as_save_IFS
12958 esac
12960 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12961 if test -n "$orig_target_ranlib"; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12963 $as_echo "$orig_target_ranlib" >&6; }
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 $as_echo "no" >&6; }
12970 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12973 req_avail=yes
12974 if test "$orig_target_ranlib" = ""; then
12975 req_avail=no
12977 if test "$orig_target_ranlib" = "no"; then
12978 req_avail=no
12980 if test "$req_avail" = "no"; then
12981 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12984 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12985 if test "$cross_compiling" = "yes" ; then
12986 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12987 set dummy ${target_tool_prefix}nm; ac_word=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12989 $as_echo_n "checking for $ac_word... " >&6; }
12990 if ${ac_cv_path_orig_target_nm+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 case $orig_target_nm in
12994 [\\/]* | ?:[\\/]*)
12995 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13011 IFS=$as_save_IFS
13014 esac
13016 orig_target_nm=$ac_cv_path_orig_target_nm
13017 if test -n "$orig_target_nm"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13019 $as_echo "$orig_target_nm" >&6; }
13020 else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13026 else
13027 if test "$GCC" = "yes"; then
13028 aros_gcc_nm=`$CC -print-prog-name=nm`
13029 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
13030 set dummy `basename $aros_gcc_nm`; ac_word=$2
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032 $as_echo_n "checking for $ac_word... " >&6; }
13033 if ${ac_cv_path_orig_target_nm+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 case $orig_target_nm in
13037 [\\/]* | ?:[\\/]*)
13038 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in `dirname $aros_gcc_nm`
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13052 done
13053 done
13054 IFS=$as_save_IFS
13057 esac
13059 orig_target_nm=$ac_cv_path_orig_target_nm
13060 if test -n "$orig_target_nm"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13062 $as_echo "$orig_target_nm" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13070 if test "$orig_target_nm" = ""; then
13071 # Extract the first word of "nm", so it can be a program name with args.
13072 set dummy nm; ac_word=$2
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13074 $as_echo_n "checking for $ac_word... " >&6; }
13075 if ${ac_cv_path_orig_target_nm+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 case $orig_target_nm in
13079 [\\/]* | ?:[\\/]*)
13080 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13086 IFS=$as_save_IFS
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 break 2
13094 done
13095 done
13096 IFS=$as_save_IFS
13099 esac
13101 orig_target_nm=$ac_cv_path_orig_target_nm
13102 if test -n "$orig_target_nm"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13104 $as_echo "$orig_target_nm" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13113 else
13114 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
13115 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
13116 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if ${ac_cv_path_orig_target_nm+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 case $orig_target_nm in
13123 [\\/]* | ?:[\\/]*)
13124 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13134 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13138 done
13139 done
13140 IFS=$as_save_IFS
13143 esac
13145 orig_target_nm=$ac_cv_path_orig_target_nm
13146 if test -n "$orig_target_nm"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
13148 $as_echo "$orig_target_nm" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13155 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13158 req_avail=yes
13159 if test "$orig_target_nm" = ""; then
13160 req_avail=no
13162 if test "$orig_target_nm" = "no"; then
13163 req_avail=no
13165 if test "$req_avail" = "no"; then
13166 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13169 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13170 if test "$cross_compiling" = "yes" ; then
13171 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13172 set dummy ${target_tool_prefix}strip; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if ${ac_cv_path_orig_target_strip+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 case $orig_target_strip in
13179 [\\/]* | ?:[\\/]*)
13180 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13194 done
13195 done
13196 IFS=$as_save_IFS
13199 esac
13201 orig_target_strip=$ac_cv_path_orig_target_strip
13202 if test -n "$orig_target_strip"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13204 $as_echo "$orig_target_strip" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13211 else
13212 if test "$GCC" = "yes"; then
13213 aros_gcc_strip=`$CC -print-prog-name=strip`
13214 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13215 set dummy `basename $aros_gcc_strip`; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_path_orig_target_strip+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 case $orig_target_strip in
13222 [\\/]* | ?:[\\/]*)
13223 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in `dirname $aros_gcc_strip`
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13233 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13237 done
13238 done
13239 IFS=$as_save_IFS
13242 esac
13244 orig_target_strip=$ac_cv_path_orig_target_strip
13245 if test -n "$orig_target_strip"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13247 $as_echo "$orig_target_strip" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13255 if test "$orig_target_strip" = ""; then
13256 # Extract the first word of "strip", so it can be a program name with args.
13257 set dummy strip; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if ${ac_cv_path_orig_target_strip+:} false; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 case $orig_target_strip in
13264 [\\/]* | ?:[\\/]*)
13265 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13279 done
13280 done
13281 IFS=$as_save_IFS
13284 esac
13286 orig_target_strip=$ac_cv_path_orig_target_strip
13287 if test -n "$orig_target_strip"; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13289 $as_echo "$orig_target_strip" >&6; }
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13298 else
13299 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13300 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13301 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if ${ac_cv_path_orig_target_strip+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 case $orig_target_strip in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13323 done
13324 done
13325 IFS=$as_save_IFS
13328 esac
13330 orig_target_strip=$ac_cv_path_orig_target_strip
13331 if test -n "$orig_target_strip"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13333 $as_echo "$orig_target_strip" >&6; }
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13340 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13343 req_avail=yes
13344 if test "$orig_target_strip" = ""; then
13345 req_avail=no
13347 if test "$orig_target_strip" = "no"; then
13348 req_avail=no
13350 if test "$req_avail" = "no"; then
13351 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13354 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13355 if test "$cross_compiling" = "yes" ; then
13356 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13357 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359 $as_echo_n "checking for $ac_word... " >&6; }
13360 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 case $orig_target_objcopy in
13364 [\\/]* | ?:[\\/]*)
13365 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13371 IFS=$as_save_IFS
13372 test -z "$as_dir" && as_dir=.
13373 for ac_exec_ext in '' $ac_executable_extensions; do
13374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13375 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377 break 2
13379 done
13380 done
13381 IFS=$as_save_IFS
13384 esac
13386 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13387 if test -n "$orig_target_objcopy"; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13389 $as_echo "$orig_target_objcopy" >&6; }
13390 else
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13396 else
13397 if test "$GCC" = "yes"; then
13398 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13399 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13400 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13404 $as_echo_n "(cached) " >&6
13405 else
13406 case $orig_target_objcopy in
13407 [\\/]* | ?:[\\/]*)
13408 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in `dirname $aros_gcc_objcopy`
13414 IFS=$as_save_IFS
13415 test -z "$as_dir" && as_dir=.
13416 for ac_exec_ext in '' $ac_executable_extensions; do
13417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13418 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13420 break 2
13422 done
13423 done
13424 IFS=$as_save_IFS
13427 esac
13429 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13430 if test -n "$orig_target_objcopy"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13432 $as_echo "$orig_target_objcopy" >&6; }
13433 else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13440 if test "$orig_target_objcopy" = ""; then
13441 # Extract the first word of "objcopy", so it can be a program name with args.
13442 set dummy objcopy; ac_word=$2
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444 $as_echo_n "checking for $ac_word... " >&6; }
13445 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13446 $as_echo_n "(cached) " >&6
13447 else
13448 case $orig_target_objcopy in
13449 [\\/]* | ?:[\\/]*)
13450 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $PATH
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13460 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13464 done
13465 done
13466 IFS=$as_save_IFS
13469 esac
13471 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13472 if test -n "$orig_target_objcopy"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13474 $as_echo "$orig_target_objcopy" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13483 else
13484 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13485 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13486 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 case $orig_target_objcopy in
13493 [\\/]* | ?:[\\/]*)
13494 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13504 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13508 done
13509 done
13510 IFS=$as_save_IFS
13513 esac
13515 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13516 if test -n "$orig_target_objcopy"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13518 $as_echo "$orig_target_objcopy" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13525 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13528 req_avail=yes
13529 if test "$orig_target_objcopy" = ""; then
13530 req_avail=no
13532 if test "$orig_target_objcopy" = "no"; then
13533 req_avail=no
13535 if test "$req_avail" = "no"; then
13536 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13539 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13540 if test "$cross_compiling" = "yes" ; then
13541 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13542 set dummy ${target_tool_prefix}objdump; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 $as_echo_n "checking for $ac_word... " >&6; }
13545 if ${ac_cv_path_orig_target_objdump+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 case $orig_target_objdump in
13549 [\\/]* | ?:[\\/]*)
13550 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554 for as_dir in $PATH
13556 IFS=$as_save_IFS
13557 test -z "$as_dir" && as_dir=.
13558 for ac_exec_ext in '' $ac_executable_extensions; do
13559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13560 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13562 break 2
13564 done
13565 done
13566 IFS=$as_save_IFS
13569 esac
13571 orig_target_objdump=$ac_cv_path_orig_target_objdump
13572 if test -n "$orig_target_objdump"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13574 $as_echo "$orig_target_objdump" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13581 else
13582 if test "$GCC" = "yes"; then
13583 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13584 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13585 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587 $as_echo_n "checking for $ac_word... " >&6; }
13588 if ${ac_cv_path_orig_target_objdump+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 case $orig_target_objdump in
13592 [\\/]* | ?:[\\/]*)
13593 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in `dirname $aros_gcc_objdump`
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13607 done
13608 done
13609 IFS=$as_save_IFS
13612 esac
13614 orig_target_objdump=$ac_cv_path_orig_target_objdump
13615 if test -n "$orig_target_objdump"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13617 $as_echo "$orig_target_objdump" >&6; }
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 $as_echo "no" >&6; }
13625 if test "$orig_target_objdump" = ""; then
13626 # Extract the first word of "objdump", so it can be a program name with args.
13627 set dummy objdump; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_path_orig_target_objdump+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 case $orig_target_objdump in
13634 [\\/]* | ?:[\\/]*)
13635 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13641 IFS=$as_save_IFS
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13649 done
13650 done
13651 IFS=$as_save_IFS
13654 esac
13656 orig_target_objdump=$ac_cv_path_orig_target_objdump
13657 if test -n "$orig_target_objdump"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13659 $as_echo "$orig_target_objdump" >&6; }
13660 else
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13668 else
13669 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13670 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13671 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673 $as_echo_n "checking for $ac_word... " >&6; }
13674 if ${ac_cv_path_orig_target_objdump+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 case $orig_target_objdump in
13678 [\\/]* | ?:[\\/]*)
13679 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13683 for as_dir in $PATH
13685 IFS=$as_save_IFS
13686 test -z "$as_dir" && as_dir=.
13687 for ac_exec_ext in '' $ac_executable_extensions; do
13688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13689 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13691 break 2
13693 done
13694 done
13695 IFS=$as_save_IFS
13698 esac
13700 orig_target_objdump=$ac_cv_path_orig_target_objdump
13701 if test -n "$orig_target_objdump"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13703 $as_echo "$orig_target_objdump" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13710 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13713 req_avail=yes
13714 if test "$orig_target_objdump" = ""; then
13715 req_avail=no
13717 if test "$orig_target_objdump" = "no"; then
13718 req_avail=no
13720 if test "$req_avail" = "no"; then
13721 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13725 if test "$kernel_tool_prefix" = "none" ; then
13726 # No kernel tools specified
13727 # Assume target tools == kernel tools with ELF wrapper
13728 aros_kernel_cc=$orig_target_cc
13729 aros_kernel_cxx=$orig_target_cxx
13730 aros_kernel_cpp=$orig_target_cpp
13731 aros_kernel_ld=$orig_target_ld
13732 aros_kernel_as=$orig_target_as
13733 aros_kernel_ar=$orig_target_ar
13734 aros_kernel_ranlib=$orig_target_ranlib
13735 aros_kernel_nm=$orig_target_nm
13736 aros_kernel_strip=$orig_target_strip
13737 aros_kernel_objcopy=$orig_target_objcopy
13738 aros_kernel_objdump=$orig_target_objdump
13739 use_kernel_cc_wrapper=yes
13742 # At this point, all aros_kernel_* and aros_target_*
13743 # tools should be set up correctly
13745 CC="$aros_kernel_cc $kernel_tool_flags"
13746 CPP="$aros_kernel_cpp"
13748 #-----------------------------------------------------------------------------
13750 # Find all the tools we need to compile. This could be cross-compiling
13751 # though! If that is the case we use the GNU form of the target and
13752 # simply add this to the front of the binary name. This is rather simple,
13753 # but it should work under most circumstances.
13755 # The default tools are to use the same as the host, but only if the
13756 # host and target CPU are the same. With GCC this is normally enough.
13759 aros_cc_pre=""
13760 aros_shared_ld="$aros_host_ld"
13762 aros_target_mkdep="$aros_host_mkdep"
13764 # The default tools executables to be linked to.
13765 if test "$rescomp" != ""; then
13766 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13767 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 case $aros_kernel_rescomp in
13774 [\\/]* | ?:[\\/]*)
13775 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13781 IFS=$as_save_IFS
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 break 2
13789 done
13790 done
13791 IFS=$as_save_IFS
13794 esac
13796 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13797 if test -n "$aros_kernel_rescomp"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13799 $as_echo "$aros_kernel_rescomp" >&6; }
13800 else
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13806 req_avail=yes
13807 if test "$aros_kernel_rescomp" = ""; then
13808 req_avail=no
13810 if test "$aros_kernel_rescomp" = "no"; then
13811 req_avail=no
13813 if test "$req_avail" = "no"; then
13814 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13818 # Set up the sources for the symlink farm
13819 if test "$crosstools" = "yes"; then
13820 crosstools_target=tools-crosstools
13823 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13824 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13826 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13827 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13828 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13829 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13830 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13831 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13832 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13834 # aros_cc_pre is a variable that is added to the front of the compiler name
13835 # in the generated aros-gcc shell script. We need this to enable the cache
13836 # to work across cleaned builds. Also, support DISTCC using the correct
13837 # environment variable.
13840 if test "x${DISTCC}" != "x" ; then
13841 if test "x${CCACHE}" != "x" ; then
13842 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13843 else
13844 aros_cc_pre="${DISTCC} "
13846 else
13847 if test "x${CCACHE}" != "x" ; then
13848 aros_cc_pre="${CCACHE} "
13852 aros_target_nostdinc_cflags=-nostdinc
13854 aros_target_nostartup_ldflags=-nostartfiles
13856 aros_target_nix_ldflags=-nix
13858 aros_target_detach_ldflags=-detach
13860 aros_target_nostdlib_ldflags=-nostdlib
13863 aros_target_cc_path=
13865 # Target tools
13867 if test "$aros_target_toolchain" != "yes"; then
13868 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13869 if test "$GCC" = "yes"; then
13870 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13872 else
13873 # We do not know which c compiler version we are going to build and what we need to know
13874 # here is different for different versions so this will be set later during the
13875 # build of crosstools.
13876 if test "$aros_toolchain" = "gnu" ; then
13877 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13878 elif test "$aros_toolchain" = "llvm" ; then
13879 prefix="$AROS_CROSSTOOLSDIR/bin/"
13881 aros_target_cc_path=@aros_target_cc_path@
13883 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13884 aros_target_cc="${prefix}${toolchain_c_compiler}"
13885 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13886 aros_target_as="${prefix}${toolchain_as}"
13887 if test "${use_ld_wrapper}" = "yes"; then
13888 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13889 else
13890 aros_target_ld="${prefix}${toolchain_ld}"
13892 aros_toolchain_ld="${prefix}${toolchain_ld}"
13894 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13895 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13896 aros_target_objdump="${prefix}${toolchain_objdump}"
13897 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13898 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13899 aros_target_strip="${prefix}${toolchain_strip}"
13900 aros_plain_nm="${prefix}${toolchain_nm}"
13901 aros_plain_ar="${prefix}${toolchain_ar}"
13903 # Check whether --enable-includes was given.
13904 if test "${enable_includes+set}" = set; then :
13905 enableval=$enable_includes; aros_target_incl=$enable_includes
13906 else
13907 aros_target_incl=no
13911 if test "x$aros_target_incl" = "xno"; then
13912 if test "x$test_kernel_cc" != "xno"; then
13913 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13914 else
13915 aros_target_incl=
13919 if test "x$aros_kernel_includes" = "x"; then
13920 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13921 if test "x$aros_target_incl" != "x"; then
13922 aros_kernel_includes="-isystem $aros_target_incl"
13927 if test "x$test_kernel_cc" != "xno"; then
13928 if test "$aros_kernel_includes" != "" ; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13930 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13931 if test "$aros_kernel_cc_includes" = "" ; then
13932 # Try to guess where the directory is.
13933 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13934 if test -d $aros_kernel_cc_includes; then
13935 # Check if there is also an include-fixed directory and add it
13936 # to kernel compiler's include path as it may contain some of
13937 # the headers we need.
13938 if test -d "$aros_kernel_cc_includes"-fixed; then
13939 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13941 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13942 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13943 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13945 else
13946 # The directory doesn't exist, we need to do some more work.
13947 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13949 # These are the headers we're looking for.
13950 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13951 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13952 zutil.h stdint.h"
13954 dirs=
13955 for h in $headers; do
13956 # Which other headers are needed by each of the above?
13957 deps=$(echo "#include <$h>" | \
13958 $aros_kernel_cc -E -M - 2>/dev/null | \
13959 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13961 # Copy all the needed headers to a directory beneath gendir.
13962 for d in $deps; do
13963 h=$(basename $d)
13964 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13965 sed -n "s,^.*/include\(/.*\),\1,p")
13966 ! test -d $dir && mkdir -p $dir
13967 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13968 done
13969 done
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13973 $as_echo "$aros_kernel_cc_includes" >&6; }
13974 # Adding -nostdinc to kernel includes as they are always used together.
13975 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13979 if test "$crosstools" != "yes"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13981 $as_echo_n "checking for the target compiler's include path... " >&6; }
13982 if test "$aros_target_cc_includes" = "" ; then
13983 #try to guess where the directory is
13984 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13985 if ! test -d $aros_target_cc_includes; then
13986 #the directory doesn't exist, we need to do some more work
13987 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13989 #these are the headers we're looking for
13990 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13991 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13992 zutil.h"
13994 dirs=
13995 for h in $headers; do
13996 #which other headers each of the above headers needs?
13997 deps=$(echo "#include <$h>" | \
13998 $orig_target_cc -E -M - 2>/dev/null | \
13999 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
14001 #copy all the needed headers to a directory beneath gendir
14002 for d in $deps; do
14003 h=$(basename $d)
14004 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
14005 sed -n "s,^.*/include\(/.*\),\1,p")
14006 ! test -d $dir && mkdir -p $dir
14007 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
14008 done
14009 done
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
14013 $as_echo "$aros_target_cc_includes" >&6; }
14014 else
14015 # We do not know which c compiler version we are going to build and what we need to know
14016 # here is different for different versions so this will be set later during the
14017 # build of crosstools.
14018 aros_target_cc_includes=@aros_target_cc_includes@
14022 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
14023 # On GCC >= 4.0 -iquote should be used
14026 save_cc="$CC"
14027 save_cflags="$CFLAGS"
14028 if test "x$test_kernel_cc" != "xno"; then
14029 CFLAGS="-iquote."
14030 kernel_cflags_iquote=$host_cflags_iquote
14031 kernel_cflags_iquote_end=$host_cflags_iquote_end
14032 if test "x-$cross_compiling" = "x-yes"; then
14033 CC="$aros_kernel_cc"
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
14035 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
14036 if test "x-$crosstools" != "x-yes"; then
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14041 main ()
14045 return 0;
14047 _ACEOF
14048 if ac_fn_c_try_compile "$LINENO"; then :
14049 use_no_stack_protector="yes"
14050 else
14051 use_no_stack_protector="no"
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 else
14055 # we do know it is supported for the smallest version of gcc we are going to build
14056 # we assume it's also supported by later versions
14057 use_no_stack_protector=yes
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
14060 $as_echo "$use_no_stack_protector" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
14062 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
14063 if test "x-$crosstools" != "x-yes"; then
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14068 main ()
14072 return 0;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 has_iquote="yes"
14077 else
14078 has_iquote="no"
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 else
14082 # we do know it is supported for the smallest version of gcc we are going to build
14083 # we assume it's also supported by later versions
14084 has_iquote=yes
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
14087 $as_echo "$has_iquote" >&6; }
14088 if test "x-$has_iquote" = "x-yes" ; then
14089 kernel_cflags_iquote=-iquote
14090 kernel_cflags_iquote_end=
14091 else
14092 kernel_cflags_iquote=-I
14093 kernel_cflags_iquote_end=-I-
14096 if test "x-$use_no_stack_protector" = "x-yes" ; then
14097 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
14100 #-----------------------------------------------------------------------------
14102 # Check if we can explicitly choose older version of symbol hashing
14104 CFLAGS="save_cflags -Wl,--hash-style=sysv"
14105 CC="$aros_kernel_cc"
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
14107 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14112 main ()
14116 return 0;
14118 _ACEOF
14119 if ac_fn_c_try_link "$LINENO"; then :
14120 use_hash_style="yes"
14121 else
14122 use_hash_style="no"
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
14127 $as_echo "$use_hash_style" >&6; }
14128 if test "x-$use_hash_style" = "x-yes" ; then
14129 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
14131 else
14132 kernel_cflags_iquote="$""(CFLAGS_IQUOTE)"
14133 kernel_cflags_iquote_end="$""(CFLAGS_IQUOTE_END)"
14135 CC="$save_cc"
14136 CFLAGS="$save_cflags"
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
14145 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
14147 # Check whether --with-resolution was given.
14148 if test "${with_resolution+set}" = set; then :
14149 withval=$with_resolution; resolution=$withval
14150 else
14151 resolution=none
14154 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
14155 if test "$resolution" = "yes" ; then
14156 resolution="none"
14158 if test "$resolution" = "no" ; then
14159 resolution="none"
14161 if test "$resolution" != "none" ; then
14162 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
14163 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
14164 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
14167 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
14168 aros_cv_nominal_width=$aros_nominal_width
14169 aros_cv_nominal_height=$aros_nominal_height
14170 aros_cv_nominal_depth=$aros_nominal_depth
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
14173 $as_echo_n "checking whether serial debug is enabled... " >&6; }
14175 # Check whether --with-serial-debug was given.
14176 if test "${with_serial_debug+set}" = set; then :
14177 withval=$with_serial_debug; serial_debug=$withval
14178 else
14179 serial_debug=none
14182 if test "$aros_serial_debug" = 0 ; then
14183 serial_debug_forced=""
14184 if test "$serial_debug" = "yes" ; then
14185 serial_debug="1"
14187 if test "$serial_debug" = "no" ; then
14188 serial_debug="none"
14190 else
14191 serial_debug_forced="(forced)"
14192 serial_debug=$aros_serial_debug
14194 if test "$serial_debug" != "none" ; then
14195 aros_serial_debug=$serial_debug
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14197 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14204 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14205 # Check whether --enable-palm_debug_hack was given.
14206 if test "${enable_palm_debug_hack+set}" = set; then :
14207 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14208 else
14209 palm_debug_hack="no"
14212 if test "$palm_debug_hack" = "yes" ; then
14213 aros_palm_debug_hack="1"
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14216 $as_echo "$palm_debug_hack" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14219 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14220 # Check whether --enable-usb30_code was given.
14221 if test "${enable_usb30_code+set}" = set; then :
14222 enableval=$enable_usb30_code; usb30_code="yes"
14223 else
14224 usb30_code="no"
14227 if test "$usb30_code" = "yes" ; then
14228 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14229 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14232 $as_echo "$usb30_code" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14235 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14236 # Check whether --enable-nesting_supervisor was given.
14237 if test "${enable_nesting_supervisor+set}" = set; then :
14238 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14239 else
14240 nesting_supervisor="no"
14243 if test "$nesting_supervisor" = "yes" ; then
14244 aros_nesting_supervisor="1"
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14247 $as_echo "$nesting_supervisor" >&6; }
14249 if test "$aros_enable_mmu" = "" ; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14251 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14252 # Check whether --enable-mmu was given.
14253 if test "${enable_mmu+set}" = set; then :
14254 enableval=$enable_mmu; aros_enable_mmu=$enableval
14255 else
14256 aros_enable_mmu="yes"
14259 if test "$aros_enable_mmu" = "" ; then
14260 aros_enable_mmu="yes"
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14263 $as_echo "$aros_enable_mmu" >&6; }
14265 if test "$aros_enable_mmu" = "no" ; then
14266 aros_enable_mmu="0"
14267 else
14268 aros_enable_mmu="1"
14272 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14274 if test "x-$need_dlopen" != "x-no" ; then
14275 save_libs="$LIBS"
14276 LIBS=""
14277 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14278 if test "x$ac_cv_func_dlopen" = xyes; then :
14279 have_dl="yes"
14280 else
14281 have_dl="no"
14284 if test "x-$have_dl" = "x-no" ; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14286 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14287 if ${ac_cv_lib_dl_dlopen+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 ac_check_lib_save_LIBS=$LIBS
14291 LIBS="-ldl $LIBS"
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298 #ifdef __cplusplus
14299 extern "C"
14300 #endif
14301 char dlopen ();
14303 main ()
14305 return dlopen ();
14307 return 0;
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 ac_cv_lib_dl_dlopen=yes
14312 else
14313 ac_cv_lib_dl_dlopen=no
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14320 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14321 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14322 have_dl="yes"
14323 aros_host_ldflags="$aros_host_ldflags -ldl"
14324 else
14325 have_dl="no"
14329 if test "x-$have_dl" = "x-no" ; then
14330 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14332 LIBS="$save_libs"
14336 # Check whether --enable-x11_hidd was given.
14337 if test "${enable_x11_hidd+set}" = set; then :
14338 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14339 else
14340 x11_hidd="$need_x11"
14343 case "x-$x11_hidd" in
14344 x-yes|x-no|x-auto) ;;
14345 *) x11_hidd="$need_x11" ;;
14346 esac
14348 ENABLE_X11=0
14350 if test "x-$x11_hidd" != "x-no" ; then
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14353 $as_echo_n "checking for X... " >&6; }
14356 # Check whether --with-x was given.
14357 if test "${with_x+set}" = set; then :
14358 withval=$with_x;
14361 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14362 if test "x$with_x" = xno; then
14363 # The user explicitly disabled X.
14364 have_x=disabled
14365 else
14366 case $x_includes,$x_libraries in #(
14367 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14368 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 # One or both of the vars are not set, and there is no cached value.
14372 ac_x_includes=no ac_x_libraries=no
14373 rm -f -r conftest.dir
14374 if mkdir conftest.dir; then
14375 cd conftest.dir
14376 cat >Imakefile <<'_ACEOF'
14377 incroot:
14378 @echo incroot='${INCROOT}'
14379 usrlibdir:
14380 @echo usrlibdir='${USRLIBDIR}'
14381 libdir:
14382 @echo libdir='${LIBDIR}'
14383 _ACEOF
14384 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14385 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14386 for ac_var in incroot usrlibdir libdir; do
14387 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14388 done
14389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14390 for ac_extension in a so sl dylib la dll; do
14391 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14392 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14393 ac_im_usrlibdir=$ac_im_libdir; break
14395 done
14396 # Screen out bogus values from the imake configuration. They are
14397 # bogus both because they are the default anyway, and because
14398 # using them would break gcc on systems where it needs fixed includes.
14399 case $ac_im_incroot in
14400 /usr/include) ac_x_includes= ;;
14401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14402 esac
14403 case $ac_im_usrlibdir in
14404 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14406 esac
14408 cd ..
14409 rm -f -r conftest.dir
14412 # Standard set of common directories for X headers.
14413 # Check X11 before X11Rn because it is often a symlink to the current release.
14414 ac_x_header_dirs='
14415 /usr/X11/include
14416 /usr/X11R7/include
14417 /usr/X11R6/include
14418 /usr/X11R5/include
14419 /usr/X11R4/include
14421 /usr/include/X11
14422 /usr/include/X11R7
14423 /usr/include/X11R6
14424 /usr/include/X11R5
14425 /usr/include/X11R4
14427 /usr/local/X11/include
14428 /usr/local/X11R7/include
14429 /usr/local/X11R6/include
14430 /usr/local/X11R5/include
14431 /usr/local/X11R4/include
14433 /usr/local/include/X11
14434 /usr/local/include/X11R7
14435 /usr/local/include/X11R6
14436 /usr/local/include/X11R5
14437 /usr/local/include/X11R4
14439 /usr/X386/include
14440 /usr/x386/include
14441 /usr/XFree86/include/X11
14443 /usr/include
14444 /usr/local/include
14445 /usr/unsupported/include
14446 /usr/athena/include
14447 /usr/local/x11r5/include
14448 /usr/lpp/Xamples/include
14450 /usr/openwin/include
14451 /usr/openwin/share/include'
14453 if test "$ac_x_includes" = no; then
14454 # Guess where to find include files, by looking for Xlib.h.
14455 # First, try using that file with no special directory specified.
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 #include <X11/Xlib.h>
14459 _ACEOF
14460 if ac_fn_c_try_cpp "$LINENO"; then :
14461 # We can compile using X headers with no special include directory.
14462 ac_x_includes=
14463 else
14464 for ac_dir in $ac_x_header_dirs; do
14465 if test -r "$ac_dir/X11/Xlib.h"; then
14466 ac_x_includes=$ac_dir
14467 break
14469 done
14471 rm -f conftest.err conftest.i conftest.$ac_ext
14472 fi # $ac_x_includes = no
14474 if test "$ac_x_libraries" = no; then
14475 # Check for the libraries.
14476 # See if we find them without any special options.
14477 # Don't add to $LIBS permanently.
14478 ac_save_LIBS=$LIBS
14479 LIBS="-lX11 $LIBS"
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 #include <X11/Xlib.h>
14484 main ()
14486 XrmInitialize ()
14488 return 0;
14490 _ACEOF
14491 if ac_fn_c_try_link "$LINENO"; then :
14492 LIBS=$ac_save_LIBS
14493 # We can link X programs with no special library path.
14494 ac_x_libraries=
14495 else
14496 LIBS=$ac_save_LIBS
14497 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14499 # Don't even attempt the hair of trying to link an X program!
14500 for ac_extension in a so sl dylib la dll; do
14501 if test -r "$ac_dir/libX11.$ac_extension"; then
14502 ac_x_libraries=$ac_dir
14503 break 2
14505 done
14506 done
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 fi # $ac_x_libraries = no
14512 case $ac_x_includes,$ac_x_libraries in #(
14513 no,* | *,no | *\'*)
14514 # Didn't find X, or a directory has "'" in its name.
14515 ac_cv_have_x="have_x=no";; #(
14517 # Record where we found X for the cache.
14518 ac_cv_have_x="have_x=yes\
14519 ac_x_includes='$ac_x_includes'\
14520 ac_x_libraries='$ac_x_libraries'"
14521 esac
14523 ;; #(
14524 *) have_x=yes;;
14525 esac
14526 eval "$ac_cv_have_x"
14527 fi # $with_x != no
14529 if test "$have_x" != yes; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14531 $as_echo "$have_x" >&6; }
14532 no_x=yes
14533 else
14534 # If each of the values was on the command line, it overrides each guess.
14535 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14536 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14537 # Update the cache value to reflect the command line values.
14538 ac_cv_have_x="have_x=yes\
14539 ac_x_includes='$x_includes'\
14540 ac_x_libraries='$x_libraries'"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14542 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14546 if test -n "$x_includes"; then
14547 X_CFLAGS="$X_CFLAGS -I$x_includes"
14550 if test -n "$x_libraries"; then
14551 X_LIBS="$X_LIBS -L$x_libraries"
14554 if test "x-$no_x" = "x-yes" ; then
14556 if test "x-$x11_hidd" != "x-auto" ; then
14557 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14560 else
14561 aros_target_options+="$export_newline""# Enable X11 Gfx Driver$export_newline""OPT_HOST_X11GFX := yes$export_newline"
14562 if test "x-$host_feature_glx" != "x-no" ; then
14563 aros_target_options+="$export_newline""# Enable X11 HostGL 3D Passthrough$export_newline""OPT_HOST_X11_HOSTGL := yes$export_newline"
14565 ENABLE_X11=1
14567 aros_host_x11_cflags="$X_CFLAGS"
14568 aros_host_x11_ldflags="$X_LIBS -lX11"
14570 # Check whether --enable-x11_shm was given.
14571 if test "${enable_x11_shm+set}" = set; then :
14572 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14573 else
14574 x11_hidd_shm="auto"
14577 case "x-$x11_hidd_shm" in
14578 x-yes|x-no|x-auto) ;;
14579 *) x11_hidd_shm="auto" ;;
14580 esac
14582 have_xshm=no
14584 if test "x-$x11_hidd_shm" != "x-no" ; then
14586 for ac_header in sys/ipc.h
14587 do :
14588 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14589 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14590 cat >>confdefs.h <<_ACEOF
14591 #define HAVE_SYS_IPC_H 1
14592 _ACEOF
14596 done
14598 for ac_header in sys/shm.h
14599 do :
14600 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14601 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_SYS_SHM_H 1
14604 _ACEOF
14608 done
14611 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14613 save_cflags="$CFLAGS"
14614 save_ldflags="$LDFLAGS"
14615 CFLAGS="$CFLAGS $X_CFLAGS"
14616 LDFLAGS="$LDFLAGS $X_LIBS"
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14618 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14619 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 ac_check_lib_save_LIBS=$LIBS
14623 LIBS="-lXext $LIBS"
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14627 /* Override any GCC internal prototype to avoid an error.
14628 Use char because int might match the return type of a GCC
14629 builtin and then its argument prototype would still apply. */
14630 #ifdef __cplusplus
14631 extern "C"
14632 #endif
14633 char XShmQueryExtension ();
14635 main ()
14637 return XShmQueryExtension ();
14639 return 0;
14641 _ACEOF
14642 if ac_fn_c_try_link "$LINENO"; then :
14643 ac_cv_lib_Xext_XShmQueryExtension=yes
14644 else
14645 ac_cv_lib_Xext_XShmQueryExtension=no
14647 rm -f core conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
14649 LIBS=$ac_check_lib_save_LIBS
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14652 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14653 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14654 have_xshm=yes
14657 CFLAGS="$save_cflags"
14658 LDFLAGS="$save_ldflags"
14662 if test "x-$have_xshm" = "x-yes" ; then
14663 DO_XSHM_SUPPORT="1"
14664 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14665 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14666 else
14667 DO_XSHM_SUPPORT="0"
14671 # Check whether --enable-x11_vidmode was given.
14672 if test "${enable_x11_vidmode+set}" = set; then :
14673 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14674 else
14675 x11_hidd_vidmode="auto"
14678 case "x-$x11_hidd_vidmode" in
14679 x-yes|x-no|x-auto) ;;
14680 *) x11_hidd_vidmode="auto" ;;
14681 esac
14683 have_vidmode=no
14685 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14687 save_cflags="$CFLAGS"
14688 save_ldflags="$LDFLAGS"
14689 CFLAGS="$CFLAGS $X_CFLAGS"
14690 LDFLAGS="$LDFLAGS $X_LIBS"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14692 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14693 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lXxf86vm $LIBS"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char XF86VidModeQueryExtension ();
14709 main ()
14711 return XF86VidModeQueryExtension ();
14713 return 0;
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14718 else
14719 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14726 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14727 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14728 have_vidmode=yes
14731 CFLAGS="$save_cflags"
14732 LDFLAGS="$save_ldflags"
14735 if test "x-$have_vidmode" = "x-yes" ; then
14736 DO_VIDMODE_SUPPORT="1"
14737 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14738 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14739 else
14740 DO_VIDMODE_SUPPORT="0"
14745 # Check whether --enable-sdl_hidd was given.
14746 if test "${enable_sdl_hidd+set}" = set; then :
14747 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14748 else
14749 sdl_hidd="auto"
14752 case "x-$sdl_hidd" in
14753 x-yes|x-no|x-auto) ;;
14754 *) sdl_hidd="auto" ;;
14755 esac
14757 if test "x-$sdl_hidd" != "x-no" ; then
14759 SDL_VERSION=1.2.5
14761 # Check whether --with-sdl-prefix was given.
14762 if test "${with_sdl_prefix+set}" = set; then :
14763 withval=$with_sdl_prefix; sdl_prefix="$withval"
14764 else
14765 sdl_prefix=""
14769 # Check whether --with-sdl-exec-prefix was given.
14770 if test "${with_sdl_exec_prefix+set}" = set; then :
14771 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14772 else
14773 sdl_exec_prefix=""
14776 # Check whether --enable-sdltest was given.
14777 if test "${enable_sdltest+set}" = set; then :
14778 enableval=$enable_sdltest;
14779 else
14780 enable_sdltest=yes
14784 if test x$sdl_exec_prefix != x ; then
14785 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14786 if test x${SDL_CONFIG+set} != xset ; then
14787 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14790 if test x$sdl_prefix != x ; then
14791 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14792 if test x${SDL_CONFIG+set} != xset ; then
14793 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14797 as_save_PATH="$PATH"
14798 if test "x$prefix" != xNONE; then
14799 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14801 # Extract the first word of "sdl-config", so it can be a program name with args.
14802 set dummy sdl-config; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14804 $as_echo_n "checking for $ac_word... " >&6; }
14805 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 case $SDL_CONFIG in
14809 [\\/]* | ?:[\\/]*)
14810 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14814 for as_dir in $PATH
14816 IFS=$as_save_IFS
14817 test -z "$as_dir" && as_dir=.
14818 for ac_exec_ext in '' $ac_executable_extensions; do
14819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14820 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14822 break 2
14824 done
14825 done
14826 IFS=$as_save_IFS
14828 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14830 esac
14832 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14833 if test -n "$SDL_CONFIG"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14835 $as_echo "$SDL_CONFIG" >&6; }
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 $as_echo "no" >&6; }
14842 PATH="$as_save_PATH"
14843 min_sdl_version=$SDL_VERSION
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14845 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14846 no_sdl=""
14847 if test "$SDL_CONFIG" = "no" ; then
14848 no_sdl=yes
14849 else
14850 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14851 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14853 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14854 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14855 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14856 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14857 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14858 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14859 if test "x$enable_sdltest" = "xyes" ; then
14860 ac_save_CFLAGS="$CFLAGS"
14861 ac_save_CXXFLAGS="$CXXFLAGS"
14862 ac_save_LIBS="$LIBS"
14863 CFLAGS="$CFLAGS $SDL_CFLAGS"
14864 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14865 LIBS="$LIBS $SDL_LIBS"
14866 rm -f conf.sdltest
14867 if test "$cross_compiling" = yes; then :
14868 echo $ac_n "cross compiling; assumed OK... $ac_c"
14869 else
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14873 #include <stdio.h>
14874 #include <stdlib.h>
14875 #include <string.h>
14876 #include "SDL.h"
14878 char*
14879 my_strdup (char *str)
14881 char *new_str;
14883 if (str)
14885 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14886 strcpy (new_str, str);
14888 else
14889 new_str = NULL;
14891 return new_str;
14894 int main (int argc, char *argv[])
14896 int major, minor, micro;
14897 char *tmp_version;
14899 /* This hangs on some systems (?)
14900 system ("touch conf.sdltest");
14902 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14904 /* HP/UX 9 (%@#!) writes to sscanf strings */
14905 tmp_version = my_strdup("$min_sdl_version");
14906 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14907 printf("%s, bad version string\n", "$min_sdl_version");
14908 exit(1);
14911 if (($sdl_major_version > major) ||
14912 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14913 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14915 return 0;
14917 else
14919 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14920 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14921 printf("*** best to upgrade to the required version.\n");
14922 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14923 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14924 printf("*** config.cache before re-running configure\n");
14925 return 1;
14930 _ACEOF
14931 if ac_fn_c_try_run "$LINENO"; then :
14933 else
14934 no_sdl=yes
14936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14937 conftest.$ac_objext conftest.beam conftest.$ac_ext
14940 CFLAGS="$ac_save_CFLAGS"
14941 CXXFLAGS="$ac_save_CXXFLAGS"
14942 LIBS="$ac_save_LIBS"
14945 if test "x$no_sdl" = x ; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14947 $as_echo "yes" >&6; }
14948 have_sdl="yes"
14949 else
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14952 if test "$SDL_CONFIG" = "no" ; then
14953 echo "*** The sdl-config script installed by SDL could not be found"
14954 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14955 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14956 echo "*** full path to sdl-config."
14957 else
14958 if test -f conf.sdltest ; then
14960 else
14961 echo "*** Could not run SDL test program, checking why..."
14962 CFLAGS="$CFLAGS $SDL_CFLAGS"
14963 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14964 LIBS="$LIBS $SDL_LIBS"
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14968 #include <stdio.h>
14969 #include "SDL.h"
14971 int main(int argc, char *argv[])
14972 { return 0; }
14973 #undef main
14974 #define main K_and_R_C_main
14977 main ()
14979 return 0;
14981 return 0;
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 echo "*** The test program compiled, but did not run. This usually means"
14986 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14987 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14988 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14989 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14990 echo "*** is required on your system"
14991 echo "***"
14992 echo "*** If you have an old version installed, it is best to remove it, although"
14993 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14994 else
14995 echo "*** The test program failed to compile or link. See the file config.log for the"
14996 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14997 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14998 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 CFLAGS="$ac_save_CFLAGS"
15003 CXXFLAGS="$ac_save_CXXFLAGS"
15004 LIBS="$ac_save_LIBS"
15007 SDL_CFLAGS=""
15008 SDL_LIBS=""
15009 have_sdl="no"
15013 rm -f conf.sdltest
15016 if test "x-$have_sdl" != "x-yes" ; then
15018 if test "x-$sdl_hidd" != "x-auto" ; then
15019 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15022 else
15023 aros_target_options+="$export_newline""# Enable SDL Gfx Driver$export_newline""OPT_HOST_SDLGFX := yes$export_newline"
15024 aros_host_sdl_cflags=$SDL_CFLAGS
15025 aros_host_sdl_libs=$SDL_LIBS
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15033 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15034 # Check whether --enable-dbus was given.
15035 if test "${enable_dbus+set}" = set; then :
15036 enableval=$enable_dbus; dbus="yes"
15037 else
15038 dbus="no"
15041 if test "$dbus" = "yes" ; then
15042 ENABLE_DBUS=1
15043 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15044 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15045 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15046 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15047 else
15048 ENABLE_DBUS=0
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15051 $as_echo "$dbus" >&6; }
15053 if test "$use_kernel_cc_wrapper" = "yes" ; then
15054 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15057 aros_kernel_cppflags=$aros_config_cppflags
15058 aros_optimization_cflags="$optimization_level"
15059 if test "$optimization" = "default"; then
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default optimization level to use" >&5
15061 $as_echo_n "checking default optimization level to use... " >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization_level" >&5
15063 $as_echo "$optimization_level" >&6; }
15066 if ! test "$gcc_default_cpu" = "" ; then
15067 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"
15070 if test "$use_libatomic" = "yes" ; then
15071 aros_cxx_libs="$aros_cxx_libs -latomic"
15075 # Generic
15089 # Compatability with other Amiga-like operating systems
15092 # Host Related ###########################
15123 # Target Related #########################
15216 # Native version related
15221 # MMU related
15224 # Bootloader related
15227 # Unix/Hosted version related
15230 # ARM default GCC target related
15237 # Palm native version related
15240 # Apple iOS related
15245 # Android related
15251 # Debug related
15257 # Collect-aros stuff: "-ius" to ignore undefined symbols
15260 # C compiler related
15265 #ObjC compiler related
15268 #Java related
15271 # DBUS related
15278 #X11 related
15286 #X11 related
15290 # USB3.0 code
15293 case "$aros_flavour" in
15294 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15295 aros_flavour="emulation" ;;
15296 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15297 aros_flavour="emulation" ;;
15298 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15299 aros_flavour="standalone";;
15300 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15301 aros_flavour="standalone";;
15302 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15303 aros_flavour="native" ;;
15304 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15305 aros_flavour="native" ;;
15306 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15307 aros_flavour="linklib" ;;
15308 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15309 aros_flavour="palmnative" ;;
15310 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15311 aros_flavour="mac68knative" ;;
15312 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15313 aros_flavour="ppcnative" ;;
15314 esac
15316 if test ! -d ${aros_inc_dir} ; then
15317 ${MKDIR} ${aros_inc_dir}
15319 if test ! -d ${aros_geninc_dir} ; then
15320 ${MKDIR} ${aros_geninc_dir}
15322 if test ! -d ${aros_hostcfg_dir} ; then
15323 ${MKDIR} ${aros_hostcfg_dir}
15325 if test ! -d ${aros_targetcfg_dir} ; then
15326 ${MKDIR} ${aros_targetcfg_dir}
15328 if test ! -d ${aros_tools_dir} ; then
15329 ${MKDIR} ${aros_tools_dir}
15331 if test ! -d ${aros_scripts_dir} ; then
15332 ${MKDIR} ${aros_scripts_dir}
15335 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15338 # Generic build tools (metamake, etc)
15339 ac_config_commands="$ac_config_commands genmf-executable-support"
15341 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"
15344 # Binutils
15345 ac_config_commands="$ac_config_commands binutils-support"
15347 if test "${use_ld_wrapper}" = "yes"; then
15348 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"
15351 # Bare Elf support script and spec
15352 if test "${use_kernel_cc_wrapper}" = "yes"; then
15353 ac_config_commands="$ac_config_commands elf-compiler-support"
15355 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"
15359 # Host compiler support scripts and spec
15360 if test "${aros_target_toolchain}" = "no"; then
15361 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15363 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"
15367 # Android support
15368 if test "$aros_target_variant" == "android"; then
15369 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15373 # cmake helper
15374 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15377 cat >confcache <<\_ACEOF
15378 # This file is a shell script that caches the results of configure
15379 # tests run on this system so they can be shared between configure
15380 # scripts and configure runs, see configure's option --config-cache.
15381 # It is not useful on other systems. If it contains results you don't
15382 # want to keep, you may remove or edit it.
15384 # config.status only pays attention to the cache file if you give it
15385 # the --recheck option to rerun configure.
15387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15389 # following values.
15391 _ACEOF
15393 # The following way of writing the cache mishandles newlines in values,
15394 # but we know of no workaround that is simple, portable, and efficient.
15395 # So, we kill variables containing newlines.
15396 # Ultrix sh set writes to stderr and can't be redirected directly,
15397 # and sets the high bit in the cache file unless we assign to the vars.
15399 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15400 eval ac_val=\$$ac_var
15401 case $ac_val in #(
15402 *${as_nl}*)
15403 case $ac_var in #(
15404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15406 esac
15407 case $ac_var in #(
15408 _ | IFS | as_nl) ;; #(
15409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15410 *) { eval $ac_var=; unset $ac_var;} ;;
15411 esac ;;
15412 esac
15413 done
15415 (set) 2>&1 |
15416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15417 *${as_nl}ac_space=\ *)
15418 # `set' does not quote correctly, so add quotes: double-quote
15419 # substitution turns \\\\ into \\, and sed turns \\ into \.
15420 sed -n \
15421 "s/'/'\\\\''/g;
15422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15423 ;; #(
15425 # `set' quotes correctly as required by POSIX, so do not add quotes.
15426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15428 esac |
15429 sort
15431 sed '
15432 /^ac_cv_env_/b end
15433 t clear
15434 :clear
15435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15436 t end
15437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15438 :end' >>confcache
15439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15440 if test -w "$cache_file"; then
15441 if test "x$cache_file" != "x/dev/null"; then
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15443 $as_echo "$as_me: updating cache $cache_file" >&6;}
15444 if test ! -f "$cache_file" || test -h "$cache_file"; then
15445 cat confcache >"$cache_file"
15446 else
15447 case $cache_file in #(
15448 */* | ?:*)
15449 mv -f confcache "$cache_file"$$ &&
15450 mv -f "$cache_file"$$ "$cache_file" ;; #(
15452 mv -f confcache "$cache_file" ;;
15453 esac
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15458 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15461 rm -f confcache
15463 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15464 # Let make expand exec_prefix.
15465 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15467 DEFS=-DHAVE_CONFIG_H
15469 ac_libobjs=
15470 ac_ltlibobjs=
15472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15473 # 1. Remove the extension, and $U if already installed.
15474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15475 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15477 # will be set to the directory where LIBOBJS objects are built.
15478 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15479 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15480 done
15481 LIBOBJS=$ac_libobjs
15483 LTLIBOBJS=$ac_ltlibobjs
15487 : "${CONFIG_STATUS=./config.status}"
15488 ac_write_fail=0
15489 ac_clean_files_save=$ac_clean_files
15490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15493 as_write_fail=0
15494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15495 #! $SHELL
15496 # Generated by $as_me.
15497 # Run this file to recreate the current configuration.
15498 # Compiler output produced by configure, useful for debugging
15499 # configure, is in config.log if it exists.
15501 debug=false
15502 ac_cs_recheck=false
15503 ac_cs_silent=false
15505 SHELL=\${CONFIG_SHELL-$SHELL}
15506 export SHELL
15507 _ASEOF
15508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15509 ## -------------------- ##
15510 ## M4sh Initialization. ##
15511 ## -------------------- ##
15513 # Be more Bourne compatible
15514 DUALCASE=1; export DUALCASE # for MKS sh
15515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15516 emulate sh
15517 NULLCMD=:
15518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15519 # is contrary to our usage. Disable this feature.
15520 alias -g '${1+"$@"}'='"$@"'
15521 setopt NO_GLOB_SUBST
15522 else
15523 case `(set -o) 2>/dev/null` in #(
15524 *posix*) :
15525 set -o posix ;; #(
15526 *) :
15528 esac
15532 as_nl='
15534 export as_nl
15535 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15536 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15539 # Prefer a ksh shell builtin over an external printf program on Solaris,
15540 # but without wasting forks for bash or zsh.
15541 if test -z "$BASH_VERSION$ZSH_VERSION" \
15542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15543 as_echo='print -r --'
15544 as_echo_n='print -rn --'
15545 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15546 as_echo='printf %s\n'
15547 as_echo_n='printf %s'
15548 else
15549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15551 as_echo_n='/usr/ucb/echo -n'
15552 else
15553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15554 as_echo_n_body='eval
15555 arg=$1;
15556 case $arg in #(
15557 *"$as_nl"*)
15558 expr "X$arg" : "X\\(.*\\)$as_nl";
15559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15560 esac;
15561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15563 export as_echo_n_body
15564 as_echo_n='sh -c $as_echo_n_body as_echo'
15566 export as_echo_body
15567 as_echo='sh -c $as_echo_body as_echo'
15570 # The user is always right.
15571 if test "${PATH_SEPARATOR+set}" != set; then
15572 PATH_SEPARATOR=:
15573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15575 PATH_SEPARATOR=';'
15580 # IFS
15581 # We need space, tab and new line, in precisely that order. Quoting is
15582 # there to prevent editors from complaining about space-tab.
15583 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15584 # splitting by setting IFS to empty value.)
15585 IFS=" "" $as_nl"
15587 # Find who we are. Look in the path if we contain no directory separator.
15588 as_myself=
15589 case $0 in #((
15590 *[\\/]* ) as_myself=$0 ;;
15591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15594 IFS=$as_save_IFS
15595 test -z "$as_dir" && as_dir=.
15596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15597 done
15598 IFS=$as_save_IFS
15601 esac
15602 # We did not find ourselves, most probably we were run as `sh COMMAND'
15603 # in which case we are not to be found in the path.
15604 if test "x$as_myself" = x; then
15605 as_myself=$0
15607 if test ! -f "$as_myself"; then
15608 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15609 exit 1
15612 # Unset variables that we do not need and which cause bugs (e.g. in
15613 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15614 # suppresses any "Segmentation fault" message there. '((' could
15615 # trigger a bug in pdksh 5.2.14.
15616 for as_var in BASH_ENV ENV MAIL MAILPATH
15617 do eval test x\${$as_var+set} = xset \
15618 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15619 done
15620 PS1='$ '
15621 PS2='> '
15622 PS4='+ '
15624 # NLS nuisances.
15625 LC_ALL=C
15626 export LC_ALL
15627 LANGUAGE=C
15628 export LANGUAGE
15630 # CDPATH.
15631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15634 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15635 # ----------------------------------------
15636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15638 # script with STATUS, using 1 if that was 0.
15639 as_fn_error ()
15641 as_status=$1; test $as_status -eq 0 && as_status=1
15642 if test "$4"; then
15643 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15644 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15646 $as_echo "$as_me: error: $2" >&2
15647 as_fn_exit $as_status
15648 } # as_fn_error
15651 # as_fn_set_status STATUS
15652 # -----------------------
15653 # Set $? to STATUS, without forking.
15654 as_fn_set_status ()
15656 return $1
15657 } # as_fn_set_status
15659 # as_fn_exit STATUS
15660 # -----------------
15661 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15662 as_fn_exit ()
15664 set +e
15665 as_fn_set_status $1
15666 exit $1
15667 } # as_fn_exit
15669 # as_fn_unset VAR
15670 # ---------------
15671 # Portably unset VAR.
15672 as_fn_unset ()
15674 { eval $1=; unset $1;}
15676 as_unset=as_fn_unset
15677 # as_fn_append VAR VALUE
15678 # ----------------------
15679 # Append the text in VALUE to the end of the definition contained in VAR. Take
15680 # advantage of any shell optimizations that allow amortized linear growth over
15681 # repeated appends, instead of the typical quadratic growth present in naive
15682 # implementations.
15683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15684 eval 'as_fn_append ()
15686 eval $1+=\$2
15688 else
15689 as_fn_append ()
15691 eval $1=\$$1\$2
15693 fi # as_fn_append
15695 # as_fn_arith ARG...
15696 # ------------------
15697 # Perform arithmetic evaluation on the ARGs, and store the result in the
15698 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15699 # must be portable across $(()) and expr.
15700 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15701 eval 'as_fn_arith ()
15703 as_val=$(( $* ))
15705 else
15706 as_fn_arith ()
15708 as_val=`expr "$@" || test $? -eq 1`
15710 fi # as_fn_arith
15713 if expr a : '\(a\)' >/dev/null 2>&1 &&
15714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15715 as_expr=expr
15716 else
15717 as_expr=false
15720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15721 as_basename=basename
15722 else
15723 as_basename=false
15726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15727 as_dirname=dirname
15728 else
15729 as_dirname=false
15732 as_me=`$as_basename -- "$0" ||
15733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15734 X"$0" : 'X\(//\)$' \| \
15735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15736 $as_echo X/"$0" |
15737 sed '/^.*\/\([^/][^/]*\)\/*$/{
15738 s//\1/
15741 /^X\/\(\/\/\)$/{
15742 s//\1/
15745 /^X\/\(\/\).*/{
15746 s//\1/
15749 s/.*/./; q'`
15751 # Avoid depending upon Character Ranges.
15752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15755 as_cr_digits='0123456789'
15756 as_cr_alnum=$as_cr_Letters$as_cr_digits
15758 ECHO_C= ECHO_N= ECHO_T=
15759 case `echo -n x` in #(((((
15760 -n*)
15761 case `echo 'xy\c'` in
15762 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15763 xy) ECHO_C='\c';;
15764 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15765 ECHO_T=' ';;
15766 esac;;
15768 ECHO_N='-n';;
15769 esac
15771 rm -f conf$$ conf$$.exe conf$$.file
15772 if test -d conf$$.dir; then
15773 rm -f conf$$.dir/conf$$.file
15774 else
15775 rm -f conf$$.dir
15776 mkdir conf$$.dir 2>/dev/null
15778 if (echo >conf$$.file) 2>/dev/null; then
15779 if ln -s conf$$.file conf$$ 2>/dev/null; then
15780 as_ln_s='ln -s'
15781 # ... but there are two gotchas:
15782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15784 # In both cases, we have to default to `cp -pR'.
15785 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15786 as_ln_s='cp -pR'
15787 elif ln conf$$.file conf$$ 2>/dev/null; then
15788 as_ln_s=ln
15789 else
15790 as_ln_s='cp -pR'
15792 else
15793 as_ln_s='cp -pR'
15795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15796 rmdir conf$$.dir 2>/dev/null
15799 # as_fn_mkdir_p
15800 # -------------
15801 # Create "$as_dir" as a directory, including parents if necessary.
15802 as_fn_mkdir_p ()
15805 case $as_dir in #(
15806 -*) as_dir=./$as_dir;;
15807 esac
15808 test -d "$as_dir" || eval $as_mkdir_p || {
15809 as_dirs=
15810 while :; do
15811 case $as_dir in #(
15812 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15813 *) as_qdir=$as_dir;;
15814 esac
15815 as_dirs="'$as_qdir' $as_dirs"
15816 as_dir=`$as_dirname -- "$as_dir" ||
15817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15818 X"$as_dir" : 'X\(//\)[^/]' \| \
15819 X"$as_dir" : 'X\(//\)$' \| \
15820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15821 $as_echo X"$as_dir" |
15822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15823 s//\1/
15826 /^X\(\/\/\)[^/].*/{
15827 s//\1/
15830 /^X\(\/\/\)$/{
15831 s//\1/
15834 /^X\(\/\).*/{
15835 s//\1/
15838 s/.*/./; q'`
15839 test -d "$as_dir" && break
15840 done
15841 test -z "$as_dirs" || eval "mkdir $as_dirs"
15842 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15845 } # as_fn_mkdir_p
15846 if mkdir -p . 2>/dev/null; then
15847 as_mkdir_p='mkdir -p "$as_dir"'
15848 else
15849 test -d ./-p && rmdir ./-p
15850 as_mkdir_p=false
15854 # as_fn_executable_p FILE
15855 # -----------------------
15856 # Test if FILE is an executable regular file.
15857 as_fn_executable_p ()
15859 test -f "$1" && test -x "$1"
15860 } # as_fn_executable_p
15861 as_test_x='test -x'
15862 as_executable_p=as_fn_executable_p
15864 # Sed expression to map a string onto a valid CPP name.
15865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15867 # Sed expression to map a string onto a valid variable name.
15868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15871 exec 6>&1
15872 ## ----------------------------------- ##
15873 ## Main body of $CONFIG_STATUS script. ##
15874 ## ----------------------------------- ##
15875 _ASEOF
15876 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879 # Save the log message, to keep $0 and so on meaningful, and to
15880 # report actual input values of CONFIG_FILES etc. instead of their
15881 # values after options handling.
15882 ac_log="
15883 This file was extended by $as_me, which was
15884 generated by GNU Autoconf 2.69. Invocation command line was
15886 CONFIG_FILES = $CONFIG_FILES
15887 CONFIG_HEADERS = $CONFIG_HEADERS
15888 CONFIG_LINKS = $CONFIG_LINKS
15889 CONFIG_COMMANDS = $CONFIG_COMMANDS
15890 $ $0 $@
15892 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15895 _ACEOF
15897 case $ac_config_files in *"
15898 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15899 esac
15901 case $ac_config_headers in *"
15902 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15903 esac
15906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15907 # Files that config.status was made for.
15908 config_files="$ac_config_files"
15909 config_headers="$ac_config_headers"
15910 config_commands="$ac_config_commands"
15912 _ACEOF
15914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915 ac_cs_usage="\
15916 \`$as_me' instantiates files and other configuration actions
15917 from templates according to the current configuration. Unless the files
15918 and actions are specified as TAGs, all are instantiated by default.
15920 Usage: $0 [OPTION]... [TAG]...
15922 -h, --help print this help, then exit
15923 -V, --version print version number and configuration settings, then exit
15924 --config print configuration, then exit
15925 -q, --quiet, --silent
15926 do not print progress messages
15927 -d, --debug don't remove temporary files
15928 --recheck update $as_me by reconfiguring in the same conditions
15929 --file=FILE[:TEMPLATE]
15930 instantiate the configuration file FILE
15931 --header=FILE[:TEMPLATE]
15932 instantiate the configuration header FILE
15934 Configuration files:
15935 $config_files
15937 Configuration headers:
15938 $config_headers
15940 Configuration commands:
15941 $config_commands
15943 Report bugs to the package provider."
15945 _ACEOF
15946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15947 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15948 ac_cs_version="\\
15949 config.status
15950 configured by $0, generated by GNU Autoconf 2.69,
15951 with options \\"\$ac_cs_config\\"
15953 Copyright (C) 2012 Free Software Foundation, Inc.
15954 This config.status script is free software; the Free Software Foundation
15955 gives unlimited permission to copy, distribute and modify it."
15957 ac_pwd='$ac_pwd'
15958 srcdir='$srcdir'
15959 test -n "\$AWK" || AWK=awk
15960 _ACEOF
15962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15963 # The default lists apply if the user does not specify any file.
15964 ac_need_defaults=:
15965 while test $# != 0
15967 case $1 in
15968 --*=?*)
15969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15970 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15971 ac_shift=:
15973 --*=)
15974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15975 ac_optarg=
15976 ac_shift=:
15979 ac_option=$1
15980 ac_optarg=$2
15981 ac_shift=shift
15983 esac
15985 case $ac_option in
15986 # Handling of the options.
15987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15988 ac_cs_recheck=: ;;
15989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15990 $as_echo "$ac_cs_version"; exit ;;
15991 --config | --confi | --conf | --con | --co | --c )
15992 $as_echo "$ac_cs_config"; exit ;;
15993 --debug | --debu | --deb | --de | --d | -d )
15994 debug=: ;;
15995 --file | --fil | --fi | --f )
15996 $ac_shift
15997 case $ac_optarg in
15998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15999 '') as_fn_error $? "missing file argument" ;;
16000 esac
16001 as_fn_append CONFIG_FILES " '$ac_optarg'"
16002 ac_need_defaults=false;;
16003 --header | --heade | --head | --hea )
16004 $ac_shift
16005 case $ac_optarg in
16006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16007 esac
16008 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16009 ac_need_defaults=false;;
16010 --he | --h)
16011 # Conflict between --help and --header
16012 as_fn_error $? "ambiguous option: \`$1'
16013 Try \`$0 --help' for more information.";;
16014 --help | --hel | -h )
16015 $as_echo "$ac_cs_usage"; exit ;;
16016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16017 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16018 ac_cs_silent=: ;;
16020 # This is an error.
16021 -*) as_fn_error $? "unrecognized option: \`$1'
16022 Try \`$0 --help' for more information." ;;
16024 *) as_fn_append ac_config_targets " $1"
16025 ac_need_defaults=false ;;
16027 esac
16028 shift
16029 done
16031 ac_configure_extra_args=
16033 if $ac_cs_silent; then
16034 exec 6>/dev/null
16035 ac_configure_extra_args="$ac_configure_extra_args --silent"
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 if \$ac_cs_recheck; then
16041 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16042 shift
16043 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16044 CONFIG_SHELL='$SHELL'
16045 export CONFIG_SHELL
16046 exec "\$@"
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16051 exec 5>>config.log
16053 echo
16054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16055 ## Running $as_me. ##
16056 _ASBOX
16057 $as_echo "$ac_log"
16058 } >&5
16060 _ACEOF
16061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16063 # INIT-COMMANDS
16066 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
16067 aros_tools_dir=${aros_tools_dir}
16071 aros_host_exe_suffix=${aros_host_exe_suffix}
16072 aros_tools_dir=${aros_tools_dir}
16073 aros_target_cpu=${aros_target_cpu}
16074 aros_target_arch=${aros_target_arch}
16075 aros_target_suffix=${aros_target_suffix}
16076 orig_target_nm=${orig_target_nm}
16077 orig_target_as=${orig_target_as}
16078 orig_target_ar=${orig_target_ar}
16079 orig_target_ranlib=${orig_target_ranlib}
16080 orig_target_objdump=${orig_target_objdump}
16081 orig_target_objcopy=${orig_target_objcopy}
16082 orig_target_strip=${orig_target_strip}
16083 aros_kernel_ld=${aros_kernel_ld}
16087 aros_host_exe_suffix=${aros_host_exe_suffix}
16088 aros_tools_dir=${aros_tools_dir}
16089 aros_target_cpu=${aros_target_cpu}
16090 aros_target_arch=${aros_target_arch}
16091 aros_target_suffix=${aros_target_suffix}
16092 aros_kernel_ld=${aros_kernel_ld}
16096 aros_host_exe_suffix=${aros_host_exe_suffix}
16097 aros_tools_dir=${aros_tools_dir}
16098 aros_target_cpu=${aros_target_cpu}
16099 aros_target_arch=${aros_target_arch}
16100 aros_target_suffix=${aros_target_suffix}
16104 _ACEOF
16106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16108 # Handling of arguments.
16109 for ac_config_target in $ac_config_targets
16111 case $ac_config_target in
16112 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16113 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16114 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16115 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16116 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16117 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16118 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16119 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16120 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16121 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16122 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
16123 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16124 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16125 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
16126 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16127 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16128 "${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" ;;
16129 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16130 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16131 "${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" ;;
16132 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16133 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16134 "${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" ;;
16135 "${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" ;;
16136 "${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" ;;
16137 "${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" ;;
16138 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16140 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16141 esac
16142 done
16145 # If the user did not use the arguments to specify the items to instantiate,
16146 # then the envvar interface is used. Set only those that are not.
16147 # We use the long form for the default assignment because of an extremely
16148 # bizarre bug on SunOS 4.1.3.
16149 if $ac_need_defaults; then
16150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16155 # Have a temporary directory for convenience. Make it in the build tree
16156 # simply because there is no reason against having it here, and in addition,
16157 # creating and moving files from /tmp can sometimes cause problems.
16158 # Hook for its removal unless debugging.
16159 # Note that there is a small window in which the directory will not be cleaned:
16160 # after its creation but before its name has been assigned to `$tmp'.
16161 $debug ||
16163 tmp= ac_tmp=
16164 trap 'exit_status=$?
16165 : "${ac_tmp:=$tmp}"
16166 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16168 trap 'as_fn_exit 1' 1 2 13 15
16170 # Create a (secure) tmp directory for tmp files.
16173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16174 test -d "$tmp"
16175 } ||
16177 tmp=./conf$$-$RANDOM
16178 (umask 077 && mkdir "$tmp")
16179 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16180 ac_tmp=$tmp
16182 # Set up the scripts for CONFIG_FILES section.
16183 # No need to generate them if there are no CONFIG_FILES.
16184 # This happens for instance with `./config.status config.h'.
16185 if test -n "$CONFIG_FILES"; then
16188 ac_cr=`echo X | tr X '\015'`
16189 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16190 # But we know of no other shell where ac_cr would be empty at this
16191 # point, so we can use a bashism as a fallback.
16192 if test "x$ac_cr" = x; then
16193 eval ac_cr=\$\'\\r\'
16195 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16196 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16197 ac_cs_awk_cr='\\r'
16198 else
16199 ac_cs_awk_cr=$ac_cr
16202 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16203 _ACEOF
16207 echo "cat >conf$$subs.awk <<_ACEOF" &&
16208 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16209 echo "_ACEOF"
16210 } >conf$$subs.sh ||
16211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16212 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16213 ac_delim='%!_!# '
16214 for ac_last_try in false false false false false :; do
16215 . ./conf$$subs.sh ||
16216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16218 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16219 if test $ac_delim_n = $ac_delim_num; then
16220 break
16221 elif $ac_last_try; then
16222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16223 else
16224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16226 done
16227 rm -f conf$$subs.sh
16229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16230 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16231 _ACEOF
16232 sed -n '
16234 s/^/S["/; s/!.*/"]=/
16237 s/^[^!]*!//
16238 :repl
16239 t repl
16240 s/'"$ac_delim"'$//
16241 t delim
16244 s/\(.\{148\}\)..*/\1/
16245 t more1
16246 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16249 b repl
16250 :more1
16251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16254 s/.\{148\}//
16255 t nl
16256 :delim
16258 s/\(.\{148\}\)..*/\1/
16259 t more2
16260 s/["\\]/\\&/g; s/^/"/; s/$/"/
16263 :more2
16264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16267 s/.\{148\}//
16268 t delim
16269 ' <conf$$subs.awk | sed '
16270 /^[^""]/{
16272 s/\n//
16274 ' >>$CONFIG_STATUS || ac_write_fail=1
16275 rm -f conf$$subs.awk
16276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277 _ACAWK
16278 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16279 for (key in S) S_is_set[key] = 1
16280 FS = "\a"
16284 line = $ 0
16285 nfields = split(line, field, "@")
16286 substed = 0
16287 len = length(field[1])
16288 for (i = 2; i < nfields; i++) {
16289 key = field[i]
16290 keylen = length(key)
16291 if (S_is_set[key]) {
16292 value = S[key]
16293 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16294 len += length(value) + length(field[++i])
16295 substed = 1
16296 } else
16297 len += 1 + keylen
16300 print line
16303 _ACAWK
16304 _ACEOF
16305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16307 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16308 else
16310 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16311 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16312 _ACEOF
16314 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16315 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16316 # trailing colons and then remove the whole line if VPATH becomes empty
16317 # (actually we leave an empty line to preserve line numbers).
16318 if test "x$srcdir" = x.; then
16319 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16321 s///
16322 s/^/:/
16323 s/[ ]*$/:/
16324 s/:\$(srcdir):/:/g
16325 s/:\${srcdir}:/:/g
16326 s/:@srcdir@:/:/g
16327 s/^:*//
16328 s/:*$//
16330 s/\(=[ ]*\).*/\1/
16332 s/\n//
16333 s/^[^=]*=[ ]*$//
16337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16338 fi # test -n "$CONFIG_FILES"
16340 # Set up the scripts for CONFIG_HEADERS section.
16341 # No need to generate them if there are no CONFIG_HEADERS.
16342 # This happens for instance with `./config.status Makefile'.
16343 if test -n "$CONFIG_HEADERS"; then
16344 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16345 BEGIN {
16346 _ACEOF
16348 # Transform confdefs.h into an awk script `defines.awk', embedded as
16349 # here-document in config.status, that substitutes the proper values into
16350 # config.h.in to produce config.h.
16352 # Create a delimiter string that does not exist in confdefs.h, to ease
16353 # handling of long lines.
16354 ac_delim='%!_!# '
16355 for ac_last_try in false false :; do
16356 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16357 if test -z "$ac_tt"; then
16358 break
16359 elif $ac_last_try; then
16360 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16361 else
16362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16364 done
16366 # For the awk script, D is an array of macro values keyed by name,
16367 # likewise P contains macro parameters if any. Preserve backslash
16368 # newline sequences.
16370 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16371 sed -n '
16372 s/.\{148\}/&'"$ac_delim"'/g
16373 t rset
16374 :rset
16375 s/^[ ]*#[ ]*define[ ][ ]*/ /
16376 t def
16378 :def
16379 s/\\$//
16380 t bsnl
16381 s/["\\]/\\&/g
16382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16383 D["\1"]=" \3"/p
16384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16386 :bsnl
16387 s/["\\]/\\&/g
16388 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16389 D["\1"]=" \3\\\\\\n"\\/p
16390 t cont
16391 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16392 t cont
16394 :cont
16396 s/.\{148\}/&'"$ac_delim"'/g
16397 t clear
16398 :clear
16399 s/\\$//
16400 t bsnlc
16401 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16403 :bsnlc
16404 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16405 b cont
16406 ' <confdefs.h | sed '
16407 s/'"$ac_delim"'/"\\\
16408 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16411 for (key in D) D_is_set[key] = 1
16412 FS = "\a"
16414 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16415 line = \$ 0
16416 split(line, arg, " ")
16417 if (arg[1] == "#") {
16418 defundef = arg[2]
16419 mac1 = arg[3]
16420 } else {
16421 defundef = substr(arg[1], 2)
16422 mac1 = arg[2]
16424 split(mac1, mac2, "(") #)
16425 macro = mac2[1]
16426 prefix = substr(line, 1, index(line, defundef) - 1)
16427 if (D_is_set[macro]) {
16428 # Preserve the white space surrounding the "#".
16429 print prefix "define", macro P[macro] D[macro]
16430 next
16431 } else {
16432 # Replace #undef with comments. This is necessary, for example,
16433 # in the case of _POSIX_SOURCE, which is predefined and required
16434 # on some systems where configure will not decide to define it.
16435 if (defundef == "undef") {
16436 print "/*", prefix defundef, macro, "*/"
16437 next
16441 { print }
16442 _ACAWK
16443 _ACEOF
16444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16445 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16446 fi # test -n "$CONFIG_HEADERS"
16449 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16450 shift
16451 for ac_tag
16453 case $ac_tag in
16454 :[FHLC]) ac_mode=$ac_tag; continue;;
16455 esac
16456 case $ac_mode$ac_tag in
16457 :[FHL]*:*);;
16458 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16459 :[FH]-) ac_tag=-:-;;
16460 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16461 esac
16462 ac_save_IFS=$IFS
16463 IFS=:
16464 set x $ac_tag
16465 IFS=$ac_save_IFS
16466 shift
16467 ac_file=$1
16468 shift
16470 case $ac_mode in
16471 :L) ac_source=$1;;
16472 :[FH])
16473 ac_file_inputs=
16474 for ac_f
16476 case $ac_f in
16477 -) ac_f="$ac_tmp/stdin";;
16478 *) # Look for the file first in the build tree, then in the source tree
16479 # (if the path is not absolute). The absolute path cannot be DOS-style,
16480 # because $ac_f cannot contain `:'.
16481 test -f "$ac_f" ||
16482 case $ac_f in
16483 [\\/$]*) false;;
16484 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16485 esac ||
16486 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16487 esac
16488 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16489 as_fn_append ac_file_inputs " '$ac_f'"
16490 done
16492 # Let's still pretend it is `configure' which instantiates (i.e., don't
16493 # use $as_me), people would be surprised to read:
16494 # /* config.h. Generated by config.status. */
16495 configure_input='Generated from '`
16496 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16497 `' by configure.'
16498 if test x"$ac_file" != x-; then
16499 configure_input="$ac_file. $configure_input"
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16501 $as_echo "$as_me: creating $ac_file" >&6;}
16503 # Neutralize special characters interpreted by sed in replacement strings.
16504 case $configure_input in #(
16505 *\&* | *\|* | *\\* )
16506 ac_sed_conf_input=`$as_echo "$configure_input" |
16507 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16508 *) ac_sed_conf_input=$configure_input;;
16509 esac
16511 case $ac_tag in
16512 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16514 esac
16516 esac
16518 ac_dir=`$as_dirname -- "$ac_file" ||
16519 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16520 X"$ac_file" : 'X\(//\)[^/]' \| \
16521 X"$ac_file" : 'X\(//\)$' \| \
16522 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16523 $as_echo X"$ac_file" |
16524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16525 s//\1/
16528 /^X\(\/\/\)[^/].*/{
16529 s//\1/
16532 /^X\(\/\/\)$/{
16533 s//\1/
16536 /^X\(\/\).*/{
16537 s//\1/
16540 s/.*/./; q'`
16541 as_dir="$ac_dir"; as_fn_mkdir_p
16542 ac_builddir=.
16544 case "$ac_dir" in
16545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16548 # A ".." for each directory in $ac_dir_suffix.
16549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16550 case $ac_top_builddir_sub in
16551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16553 esac ;;
16554 esac
16555 ac_abs_top_builddir=$ac_pwd
16556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16557 # for backward compatibility:
16558 ac_top_builddir=$ac_top_build_prefix
16560 case $srcdir in
16561 .) # We are building in place.
16562 ac_srcdir=.
16563 ac_top_srcdir=$ac_top_builddir_sub
16564 ac_abs_top_srcdir=$ac_pwd ;;
16565 [\\/]* | ?:[\\/]* ) # Absolute name.
16566 ac_srcdir=$srcdir$ac_dir_suffix;
16567 ac_top_srcdir=$srcdir
16568 ac_abs_top_srcdir=$srcdir ;;
16569 *) # Relative name.
16570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16571 ac_top_srcdir=$ac_top_build_prefix$srcdir
16572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16573 esac
16574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16577 case $ac_mode in
16580 # CONFIG_FILE
16583 _ACEOF
16585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16586 # If the template does not know about datarootdir, expand it.
16587 # FIXME: This hack should be removed a few years after 2.60.
16588 ac_datarootdir_hack=; ac_datarootdir_seen=
16589 ac_sed_dataroot='
16590 /datarootdir/ {
16594 /@datadir@/p
16595 /@docdir@/p
16596 /@infodir@/p
16597 /@localedir@/p
16598 /@mandir@/p'
16599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16600 *datarootdir*) ac_datarootdir_seen=yes;;
16601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16603 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16606 ac_datarootdir_hack='
16607 s&@datadir@&$datadir&g
16608 s&@docdir@&$docdir&g
16609 s&@infodir@&$infodir&g
16610 s&@localedir@&$localedir&g
16611 s&@mandir@&$mandir&g
16612 s&\\\${datarootdir}&$datarootdir&g' ;;
16613 esac
16614 _ACEOF
16616 # Neutralize VPATH when `$srcdir' = `.'.
16617 # Shell code in configure.ac might set extrasub.
16618 # FIXME: do we really want to maintain this feature?
16619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16620 ac_sed_extra="$ac_vpsub
16621 $extrasub
16622 _ACEOF
16623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16626 s|@configure_input@|$ac_sed_conf_input|;t t
16627 s&@top_builddir@&$ac_top_builddir_sub&;t t
16628 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16629 s&@srcdir@&$ac_srcdir&;t t
16630 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16631 s&@top_srcdir@&$ac_top_srcdir&;t t
16632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16633 s&@builddir@&$ac_builddir&;t t
16634 s&@abs_builddir@&$ac_abs_builddir&;t t
16635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16636 $ac_datarootdir_hack
16638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16644 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16646 which seems to be undefined. Please make sure it is defined" >&5
16647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16648 which seems to be undefined. Please make sure it is defined" >&2;}
16650 rm -f "$ac_tmp/stdin"
16651 case $ac_file in
16652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16654 esac \
16655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16659 # CONFIG_HEADER
16661 if test x"$ac_file" != x-; then
16663 $as_echo "/* $configure_input */" \
16664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16665 } >"$ac_tmp/config.h" \
16666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16667 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16669 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16670 else
16671 rm -f "$ac_file"
16672 mv "$ac_tmp/config.h" "$ac_file" \
16673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16675 else
16676 $as_echo "/* $configure_input */" \
16677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16678 || as_fn_error $? "could not create -" "$LINENO" 5
16682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16683 $as_echo "$as_me: executing $ac_file commands" >&6;}
16685 esac
16688 case $ac_file$ac_mode in
16689 "genmf-executable-support":C)
16690 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16691 chmod a+x ${aros_tools_dir}/genmf.py
16693 "binutils-support":C)
16694 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16695 mkdir -p $prefix
16696 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16698 chmod a+x ${prefix2}-ld
16700 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16701 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16702 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16703 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16704 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16705 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16706 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16708 "elf-compiler-support":C)
16709 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16710 mkdir -p $prefix
16711 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16713 chmod a+x ${prefix2}-gcc
16715 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16717 "host-compiler-wrapper-support":C)
16718 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16719 mkdir -p $prefix
16720 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16722 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16725 esac
16726 done # for ac_tag
16729 as_fn_exit 0
16730 _ACEOF
16731 ac_clean_files=$ac_clean_files_save
16733 test $ac_write_fail = 0 ||
16734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16737 # configure is writing to config.log, and then calls config.status.
16738 # config.status does its own redirection, appending to config.log.
16739 # Unfortunately, on DOS this fails, as config.log is still kept open
16740 # by configure, so config.status won't be able to write to it; its
16741 # output is simply discarded. So we exec the FD to /dev/null,
16742 # effectively closing config.log, so it can be properly (re)opened and
16743 # appended to by config.status. When coming back to configure, we
16744 # need to make the FD available again.
16745 if test "$no_create" != yes; then
16746 ac_cs_success=:
16747 ac_config_status_args=
16748 test "$silent" = yes &&
16749 ac_config_status_args="$ac_config_status_args --quiet"
16750 exec 5>/dev/null
16751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16752 exec 5>>config.log
16753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16754 # would make configure fail if this is the last instruction.
16755 $ac_cs_success || as_fn_exit 1
16757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16764 #XXX compatability...
16765 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16767 if test -n "$aros_shared_cflags" ; then
16768 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16769 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg