use consistent base access in the define macros.
[AROS.git] / configure
blob31ad8c4d4e506832ad4bae2c6096e3dedb0143de
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 PLATFORM_EXECSMP
655 aros_serial_debug
656 aros_host_sdl_libs
657 aros_host_sdl_cflags
658 aros_host_x11_ldflags
659 aros_host_x11_cflags
660 DO_VIDMODE_SUPPORT
661 DO_XSHM_SUPPORT
662 aros_nominal_depth
663 aros_nominal_height
664 aros_nominal_width
665 pci_hidd_target
666 host_android_gfx
667 host_sdl_gfx
668 host_x_gfx
669 crosstools_cxx_target
670 crosstools_target
671 aros_isa_flags
672 aros_optimization_cflags
673 aros_config_lto
674 aros_target_strip_flags
675 aros_target_genmap
676 aros_debug_ldflags
677 aros_debug_aflags
678 aros_debug_cflags
679 aros_target_cflags
680 aros_kernel_ldflags
681 aros_kernel_objcflags
682 aros_kernel_includes
683 aros_kernel_cflags
684 aros_kernel_sysroot
685 aros_config_ldflags
686 aros_config_aflags
687 aros_config_cflags
688 aros_nowarn_flags
689 aros_config_sysroot
690 aros_shared_ldflags
691 aros_shared_aflags
692 aros_shared_cflags
693 aros_arch_libs
694 aros_compiler_libs
695 spec_obj_format
696 aros_object_format
697 aros_shared_ld
698 aros_shared_default
699 aros_target_nm
700 aros_target_strip
701 aros_target_objcopy
702 aros_target_objdump
703 aros_target_cc_path
704 aros_target_cc_includes
705 aros_target_ld
706 aros_target_as
707 aros_target_cpp
708 aros_target_cxx
709 aros_target_cc
710 aros_plain_ar
711 aros_plain_nm
712 aros_target_ranlib
713 aros_target_ar
714 aros_target_suffix
715 aros_target_variant
716 aros_target_cpu_mode
717 aros_target_cpu
718 aros_target_family
719 aros_target_arch
720 aros_target_bootloader
721 aros_target_iconset
722 aros_target_guitheme
723 aros_tools_dir
724 aros_host_lib_suffix
725 aros_host_exe_suffix
726 aros_host_mkargs
727 aros_host_mkdep
728 aros_host_debug
729 aros_host_ldflags
730 gnu89_inline
731 aros_host_cxxflags
732 aros_host_cflags
733 aros_host_make
734 aros_host_cxx
735 aros_host_cc
736 aros_host_def_cc
737 aros_host_cpp
738 aros_host_cpu
739 aros_host_arch
740 aros_cc_pre
741 aros_amigaos_compliance
742 AROS_PORTSSRCDIR
743 AROS_CROSSTOOLSDIR
744 SRCDIR
745 AROS_BUILDDIR_UNIX
746 AROS_BUILDDIR
747 aros_build_host
748 aros_toolchain_ld
749 aros_target_toolchain
750 aros_flavour_uc
751 aros_flavour
752 aros_cpu
753 aros_arch
754 SDL_LIBS
755 SDL_CFLAGS
756 SDL_CONFIG
757 XMKMF
758 kernel_cflags_iquote_end
759 kernel_cflags_iquote
760 host_cflags_iquote_end
761 host_cflags_iquote
762 aros_toolchain
763 aros_target_nostdlib_ldflags
764 aros_target_detach_ldflags
765 aros_target_nix_ldflags
766 aros_target_nostartup_ldflags
767 aros_target_nostdinc_cflags
768 aros_kernel_rescomp
769 orig_target_objdump
770 orig_target_objcopy
771 orig_target_strip
772 orig_target_nm
773 orig_target_ranlib
774 orig_target_ar
775 orig_target_as
776 orig_target_ld
777 orig_target_cxx
778 orig_target_cc
779 orig_target_cpp
780 aros_kernel_objdump
781 aros_kernel_objcopy
782 aros_kernel_strip
783 aros_kernel_nm
784 aros_kernel_ranlib
785 aros_kernel_ar
786 aros_kernel_as
787 aros_kernel_ld
788 aros_kernel_cxx
789 aros_kernel_cc
790 aros_kernel_cpp
791 target_gcc_version
793 android_tool
794 CCACHE
795 DISTCC
796 LIBOBJS
797 EGREP
798 GREP
800 TEST
803 libpng_incdir
804 libpng_libextra
805 libpng
806 arosconfig_use_libpngconfig
807 pkgpyexecdir
808 pyexecdir
809 pkgpythondir
810 pythondir
811 PYTHON_PLATFORM
812 PYTHON_EXEC_PREFIX
813 PYTHON_PREFIX
814 PYTHON_VERSION
815 PYTHON
816 PATCH
817 CHMOD
819 PPMTOILBM
820 PNGTOPNM
821 FLEX
822 BISON
825 UNIQ
826 SORT
827 TOUCH
828 MKDIR
829 ECHO
833 aros_host_strip
834 aros_host_ranlib
835 aros_host_ar
836 aros_host_automake
837 aros_host_autoheader
838 aros_host_autoconf
839 aros_host_aclocal
840 aros_host_ld
841 MMAKE
844 ac_ct_CC
845 CFLAGS
847 OBJEXT
848 EXEEXT
849 ac_ct_CXX
850 CPPFLAGS
851 LDFLAGS
852 CXXFLAGS
854 host_os
855 host_vendor
856 host_cpu
857 host
858 build_os
859 build_vendor
860 build_cpu
861 build
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_URL
893 PACKAGE_BUGREPORT
894 PACKAGE_STRING
895 PACKAGE_VERSION
896 PACKAGE_TARNAME
897 PACKAGE_NAME
898 PATH_SEPARATOR
899 SHELL'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 with_c_compiler
904 with_cxx_compiler
905 enable_libpng_config
906 with_toolchain
907 enable_lto
908 enable_build_type
909 enable_debug
910 enable_distcc
911 enable_ccache
912 with_kernel_gcc_version
913 with_optimization
914 with_paranoia
915 enable_target_variant
916 with_xcode
917 with_sdk_version
918 with_sdk
919 with_ndk
920 with_ndk_version
921 with_apk_version
922 enable_amigaos_compliance
923 with_kernel_toolchain_prefix
924 with_elf_toolchain_prefix
925 with_aros_toolchain
926 enable_crosstools
927 with_aros_toolchain_install
928 with_binutils_version
929 with_gcc_version
930 enable_objc
931 enable_java
932 with_cpu
933 with_fpu
934 with_float
935 with_portssources
936 with_bootloader
937 with_iconset
938 with_theme
939 enable_includes
940 with_resolution
941 with_serial_debug
942 enable_palm_debug_hack
943 enable_usb30_code
944 enable_nesting_supervisor
945 enable_mmu
946 enable_x11_hidd
947 with_x
948 enable_x11_shm
949 enable_x11_vidmode
950 enable_sdl_hidd
951 with_sdl_prefix
952 with_sdl_exec_prefix
953 enable_sdltest
954 enable_dbus
956 ac_precious_vars='build_alias
957 host_alias
958 target_alias
960 CXXFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
966 CFLAGS
968 PYTHON
969 XMKMF'
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 ac_unrecognized_opts=
976 ac_unrecognized_sep=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\$ac_option
1027 ac_prev=
1028 continue
1031 case $ac_option in
1032 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 *=) ac_optarg= ;;
1034 *) ac_optarg=yes ;;
1035 esac
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1041 ac_dashdash=yes ;;
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error $? "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377 esac
1378 done
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error $? "missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error $? "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error $? "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking ...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 X features:
1568 --x-includes=DIR X include files are in DIR
1569 --x-libraries=DIR X library files are in DIR
1571 System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1577 if test -n "$ac_init_help"; then
1579 cat <<\_ACEOF
1581 Optional Features:
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --disable-libpng-config disable libpng-config test and configuration
1586 --enable-lto=yes|no Enable link time optimizations if the target
1587 compiler supports them (default=no)
1588 --enable-build-type=TYPE
1589 Select the build type. Available types are:
1590 personal, nightly, snapshot, milestone, release. Do
1591 NOT use this option unless you know what you are
1592 doing! (default=personal)
1593 --enable-debug=list Enable different types of debug. Commas or
1594 whitespaces can be used to separate the items in the
1595 list. Available types of debug are: all, none,
1596 messages, stack, mungwall, modules, symbols. If no
1597 list is provided then "all" is assumed.
1598 (default=none)
1599 --enable-distcc Use distcc as a front end to the compiler
1600 (default=no).
1601 --enable-ccache Use ccache as a front end to the compiler
1602 (default=no).
1603 --enable-target-variant=NAME
1604 Enable a specific target variant (default=none)
1605 --enable-amigaos-compliance=VERSION
1606 Enforce userspace AmigaOS compliance to a specific
1607 KickStart version (default=none).
1608 --disable-crosstools Do not build cross-compiler toolchain
1609 --enable-objc Enable Objectve-C support (default=no)
1610 --enable-java Enable Java support (default=no)
1611 --enable-includes=dir Alternative system include directory
1612 --enable-palm-debug-hack
1613 Enable palm debug output hack in palm native
1614 (default=no)
1615 --enable-usb30-code Enable usb3.0 code (default=no)
1616 --enable-nesting-supervisor
1617 Enable nesting supervisor support in unix
1618 (default=no)
1619 --disable-mmu Disable MMU support (default=enabled)
1620 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1621 --enable-x11-shm use X11 shared memory (default=auto)
1622 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1623 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1624 --disable-sdltest Do not try to compile and run a test SDL program
1625 --enable-dbus Enable DBUS support via dbus.library (default=no)
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-c-compiler=VERSION
1631 Use specified c compiler for building AROS
1632 --with-cxx-compiler=VERSION
1633 Use specified c++ compiler building AROS
1634 --with-toolchain=family Which toolchain family to crosscompile with
1635 (defaults to gnu)
1636 --with-kernel-gcc-version=VERSION
1637 Use gcc-VERSION for building bootstrap
1638 --with-optimization=FLAGS
1639 Use optimization flags FLAGS (default=-O2).
1640 --with-paranoia=(yes|no|FLAGS)
1641 Specific compiler warning FLAGS to enable for
1642 paranoia builds (default=-Wall -Werror)
1643 --with-xcode=PATH Specify XCode path for iOS targets
1644 (default=/Developer).
1645 --with-sdk-version=VERSION
1646 Use iOS SDK version VERSION (default=4.1).
1647 --with-sdk=PATH Specify Android SDK path
1648 (default=$default_android_sdk).
1649 --with-ndk=PATH Specify Android NDK path (default=none).
1650 --with-sdk-version=LEVEL
1651 Use Android SDK for API LEVEL (default=12).
1652 --with-ndk-version=LEVEL
1653 Use Android NDK for API LEVEL (default=9).
1654 --with-apk-version=(release|debug)
1655 Which version of AROSBootstrap.apk to compile.
1656 Release version needs key for signing, debug version
1657 will only run in emulator. (default=release)
1658 --with-kernel-toolchain-prefix=...
1659 Specify crosscompile toolchain prefix for kernel
1660 objects
1661 --with-elf-toolchain-prefix=...
1662 Specify crosscompile toolchain prefix to wrap for
1663 AROS objects
1664 --with-aros-toolchain=PREFIX
1665 Specify prebuilt AROS toolchain. Use yes for default
1666 name
1667 --with-aros-toolchain-install=DIR
1668 Where to install or search for cross tools binaries
1669 --with-binutils-version=VERSION
1670 Use binutils-VERSION for building AROS
1671 --with-gcc-version=VERSION
1672 Compile gcc-VERSION for AROS
1673 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1674 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1675 --with-float=<spec> Specify floating point ABI
1676 (default=$gcc_default_float_abi).
1677 --with-portssources=DIR Where to download sourcecode for external ports
1678 --with-bootloader=NAME Use a specific bootloader
1679 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1680 --with-theme=NAME Use a specific GUI Theme
1681 --with-resolution=XRESxYRESxDEPTH
1682 Default resolution of the initial WorkbenchScreen
1683 --with-serial-debug Enable serial debug output in native (default=no)
1684 --with-x use the X Window System
1685 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1686 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1688 Some influential environment variables:
1689 CXX C++ compiler command
1690 CXXFLAGS C++ compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1696 CC C compiler command
1697 CFLAGS C compiler flags
1698 CPP C preprocessor
1699 PYTHON the Python interpreter
1700 XMKMF Path to xmkmf, Makefile generator for X Window System
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
1716 ac_builddir=.
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1734 case $srcdir in
1735 .) # We are building in place.
1736 ac_srcdir=.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1758 else
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1762 done
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767 cat <<\_ACEOF
1768 configure
1769 generated by GNU Autoconf 2.69
1771 Copyright (C) 2012 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775 exit
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_cxx_try_compile LINENO
1783 # ----------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_cxx_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_cxx_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1818 } # ac_fn_cxx_try_compile
1820 # ac_fn_c_try_compile LINENO
1821 # --------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_compile
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_cpp ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } > conftest.i && {
1880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_c_try_cpp
1895 # ac_fn_c_try_link LINENO
1896 # -----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_c_try_link ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_c_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_c_try_link
1941 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1945 # accordingly.
1946 ac_fn_c_check_header_mongrel ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if eval \${$3+:} false; then :
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 else
1959 # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_header_compiler=yes
1969 else
1970 ac_header_compiler=no
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984 ac_header_preproc=yes
1985 else
1986 ac_header_preproc=no
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1992 # So? What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 yes:no: )
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 no:yes:* )
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 esac
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=\$ac_header_compiler"
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 } # ac_fn_c_check_header_mongrel
2028 # ac_fn_c_try_run LINENO
2029 # ----------------------
2030 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2031 # that executables *can* be run.
2032 ac_fn_c_try_run ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_link"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_link") 2>&5
2043 ac_status=$?
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2046 { { case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_try") 2>&5
2053 ac_status=$?
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; }; }; then :
2056 ac_retval=0
2057 else
2058 $as_echo "$as_me: program exited with status $ac_status" >&5
2059 $as_echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 ac_retval=$ac_status
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2068 } # ac_fn_c_try_run
2070 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2071 # -------------------------------------------------------
2072 # Tests whether HEADER exists and can be compiled using the include files in
2073 # INCLUDES, setting the cache variable VAR accordingly.
2074 ac_fn_c_check_header_compile ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 eval "$3=yes"
2089 else
2090 eval "$3=no"
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 } # ac_fn_c_check_header_compile
2101 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2102 # ----------------------------------------------------
2103 # Tries to find if the field MEMBER exists in type AGGR, after including
2104 # INCLUDES, setting cache variable VAR accordingly.
2105 ac_fn_c_check_member ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2109 $as_echo_n "checking for $2.$3... " >&6; }
2110 if eval \${$4+:} false; then :
2111 $as_echo_n "(cached) " >&6
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2117 main ()
2119 static $2 ac_aggr;
2120 if (ac_aggr.$3)
2121 return 0;
2123 return 0;
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 eval "$4=yes"
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2133 main ()
2135 static $2 ac_aggr;
2136 if (sizeof ac_aggr.$3)
2137 return 0;
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 eval "$4=yes"
2144 else
2145 eval "$4=no"
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 eval ac_res=\$$4
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_member
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2161 # accordingly.
2162 ac_fn_c_check_decl ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval \${$3+:} false; then :
2170 $as_echo_n "(cached) " >&6
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2176 main ()
2178 #ifndef $as_decl_name
2179 #ifdef __cplusplus
2180 (void) $as_decl_use;
2181 #else
2182 (void) $as_decl_name;
2183 #endif
2184 #endif
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 eval "$3=yes"
2192 else
2193 eval "$3=no"
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 } # ac_fn_c_check_decl
2204 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2205 # -------------------------------------------
2206 # Tests whether TYPE exists after having included INCLUDES, setting cache
2207 # variable VAR accordingly.
2208 ac_fn_c_check_type ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 eval "$3=no"
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2221 main ()
2223 if (sizeof ($2))
2224 return 0;
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2234 main ()
2236 if (sizeof (($2)))
2237 return 0;
2239 return 0;
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2244 else
2245 eval "$3=yes"
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 } # ac_fn_c_check_type
2258 # ac_fn_c_check_func LINENO FUNC VAR
2259 # ----------------------------------
2260 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2261 ac_fn_c_check_func ()
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval \${$3+:} false; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2273 #define $2 innocuous_$2
2275 /* System header to define __stub macros and hopefully few prototypes,
2276 which can conflict with char $2 (); below.
2277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2278 <limits.h> exists even on freestanding compilers. */
2280 #ifdef __STDC__
2281 # include <limits.h>
2282 #else
2283 # include <assert.h>
2284 #endif
2286 #undef $2
2288 /* Override any GCC internal prototype to avoid an error.
2289 Use char because int might match the return type of a GCC
2290 builtin and then its argument prototype would still apply. */
2291 #ifdef __cplusplus
2292 extern "C"
2293 #endif
2294 char $2 ();
2295 /* The GNU C library defines this for functions which it implements
2296 to always fail with ENOSYS. Some functions are actually named
2297 something starting with __ and the normal name is an alias. */
2298 #if defined __stub_$2 || defined __stub___$2
2299 choke me
2300 #endif
2303 main ()
2305 return $2 ();
2307 return 0;
2309 _ACEOF
2310 if ac_fn_c_try_link "$LINENO"; then :
2311 eval "$3=yes"
2312 else
2313 eval "$3=no"
2315 rm -f core conftest.err conftest.$ac_objext \
2316 conftest$ac_exeext conftest.$ac_ext
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 } # ac_fn_c_check_func
2324 cat >config.log <<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2328 It was created by $as_me, which was
2329 generated by GNU Autoconf 2.69. Invocation command line was
2331 $ $0 $@
2333 _ACEOF
2334 exec 5>>config.log
2336 cat <<_ASUNAME
2337 ## --------- ##
2338 ## Platform. ##
2339 ## --------- ##
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2358 _ASUNAME
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 $as_echo "PATH: $as_dir"
2366 done
2367 IFS=$as_save_IFS
2369 } >&5
2371 cat >&5 <<_ACEOF
2374 ## ----------- ##
2375 ## Core tests. ##
2376 ## ----------- ##
2378 _ACEOF
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2386 ac_configure_args=
2387 ac_configure_args0=
2388 ac_configure_args1=
2389 ac_must_keep_next=false
2390 for ac_pass in 1 2
2392 for ac_arg
2394 case $ac_arg in
2395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397 | -silent | --silent | --silen | --sile | --sil)
2398 continue ;;
2399 *\'*)
2400 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 esac
2402 case $ac_pass in
2403 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2405 as_fn_append ac_configure_args1 " '$ac_arg'"
2406 if test $ac_must_keep_next = true; then
2407 ac_must_keep_next=false # Got value, back to normal.
2408 else
2409 case $ac_arg in
2410 *=* | --config-cache | -C | -disable-* | --disable-* \
2411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413 | -with-* | --with-* | -without-* | --without-* | --x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 esac
2418 -* ) ac_must_keep_next=true ;;
2419 esac
2421 as_fn_append ac_configure_args " '$ac_arg'"
2423 esac
2424 done
2425 done
2426 { ac_configure_args0=; unset ac_configure_args0;}
2427 { ac_configure_args1=; unset ac_configure_args1;}
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log. We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2437 echo
2439 $as_echo "## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##"
2442 echo
2443 # The following way of writing the cache mishandles newlines in values,
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in #(
2448 *${as_nl}*)
2449 case $ac_var in #(
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2452 esac
2453 case $ac_var in #(
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2457 esac ;;
2458 esac
2459 done
2460 (set) 2>&1 |
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2463 sed -n \
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2466 ;; #(
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2470 esac |
2471 sort
2473 echo
2475 $as_echo "## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##"
2478 echo
2479 for ac_var in $ac_subst_vars
2481 eval ac_val=\$$ac_var
2482 case $ac_val in
2483 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 esac
2485 $as_echo "$ac_var='\''$ac_val'\''"
2486 done | sort
2487 echo
2489 if test -n "$ac_subst_files"; then
2490 $as_echo "## ------------------- ##
2491 ## File substitutions. ##
2492 ## ------------------- ##"
2493 echo
2494 for ac_var in $ac_subst_files
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2505 if test -s confdefs.h; then
2506 $as_echo "## ----------- ##
2507 ## confdefs.h. ##
2508 ## ----------- ##"
2509 echo
2510 cat confdefs.h
2511 echo
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2516 } >&5
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2519 exit $exit_status
2521 for ac_signal in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2523 done
2524 ac_signal=0
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest* confdefs.h
2529 $as_echo "/* confdefs.h */" > confdefs.h
2531 # Predefined preprocessor variables.
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2535 _ACEOF
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2539 _ACEOF
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2543 _ACEOF
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2555 _ACEOF
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2560 ac_site_file1=NONE
2561 ac_site_file2=NONE
2562 if test -n "$CONFIG_SITE"; then
2563 # We do not want a PATH search for config.site.
2564 case $CONFIG_SITE in #((
2565 -*) ac_site_file1=./$CONFIG_SITE;;
2566 */*) ac_site_file1=$CONFIG_SITE;;
2567 *) ac_site_file1=./$CONFIG_SITE;;
2568 esac
2569 elif test "x$prefix" != xNONE; then
2570 ac_site_file1=$prefix/share/config.site
2571 ac_site_file2=$prefix/etc/config.site
2572 else
2573 ac_site_file1=$ac_default_prefix/share/config.site
2574 ac_site_file2=$ac_default_prefix/etc/config.site
2576 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2578 test "x$ac_site_file" = xNONE && continue
2579 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2583 . "$ac_site_file" \
2584 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $? "failed to load site script $ac_site_file
2587 See \`config.log' for more details" "$LINENO" 5; }
2589 done
2591 if test -r "$cache_file"; then
2592 # Some versions of bash will fail to source /dev/null (special files
2593 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2594 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2596 $as_echo "$as_me: loading cache $cache_file" >&6;}
2597 case $cache_file in
2598 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2599 *) . "./$cache_file";;
2600 esac
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2604 $as_echo "$as_me: creating cache $cache_file" >&6;}
2605 >$cache_file
2608 as_fn_append ac_header_list " stdlib.h"
2609 as_fn_append ac_header_list " unistd.h"
2610 as_fn_append ac_header_list " sys/param.h"
2611 # Check that the precious variables saved in the cache have kept the same
2612 # value.
2613 ac_cache_corrupted=false
2614 for ac_var in $ac_precious_vars; do
2615 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2616 eval ac_new_set=\$ac_env_${ac_var}_set
2617 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2618 eval ac_new_val=\$ac_env_${ac_var}_value
2619 case $ac_old_set,$ac_new_set in
2620 set,)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,set)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2628 ,);;
2630 if test "x$ac_old_val" != "x$ac_new_val"; then
2631 # differences in whitespace do not lead to failure.
2632 ac_old_val_w=`echo x $ac_old_val`
2633 ac_new_val_w=`echo x $ac_new_val`
2634 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2636 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2637 ac_cache_corrupted=:
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2640 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2641 eval $ac_var=\$ac_old_val
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2644 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2646 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2647 fi;;
2648 esac
2649 # Pass precious variables to config.status.
2650 if test "$ac_new_set" = set; then
2651 case $ac_new_val in
2652 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 *) ac_arg=$ac_var=$ac_new_val ;;
2654 esac
2655 case " $ac_configure_args " in
2656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2657 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2658 esac
2660 done
2661 if $ac_cache_corrupted; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2665 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2666 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2668 ## -------------------- ##
2669 ## Main body of script. ##
2670 ## -------------------- ##
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 ac_aux_dir=
2681 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2682 if test -f "$ac_dir/install-sh"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/install-sh -c"
2685 break
2686 elif test -f "$ac_dir/install.sh"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/install.sh -c"
2689 break
2690 elif test -f "$ac_dir/shtool"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/shtool install -c"
2693 break
2695 done
2696 if test -z "$ac_aux_dir"; then
2697 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2700 # These three variables are undocumented and unsupported,
2701 # and are intended to be withdrawn in a future Autoconf release.
2702 # They can cause serious problems if a builder's source tree is in a directory
2703 # whose full name contains unusual characters.
2704 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2705 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2706 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2710 # Check what host we are running on.
2711 # If a target is not suggested, we use this one.
2712 # Note that what we call a target, Autoconf calls a host.
2713 # Make sure we can run config.sub.
2714 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2715 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2718 $as_echo_n "checking build system type... " >&6; }
2719 if ${ac_cv_build+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 ac_build_alias=$build_alias
2723 test "x$ac_build_alias" = x &&
2724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2725 test "x$ac_build_alias" = x &&
2726 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2728 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2732 $as_echo "$ac_cv_build" >&6; }
2733 case $ac_cv_build in
2734 *-*-*) ;;
2735 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2736 esac
2737 build=$ac_cv_build
2738 ac_save_IFS=$IFS; IFS='-'
2739 set x $ac_cv_build
2740 shift
2741 build_cpu=$1
2742 build_vendor=$2
2743 shift; shift
2744 # Remember, the first character of IFS is used to create $*,
2745 # except with old shells:
2746 build_os=$*
2747 IFS=$ac_save_IFS
2748 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2752 $as_echo_n "checking host system type... " >&6; }
2753 if ${ac_cv_host+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test "x$host_alias" = x; then
2757 ac_cv_host=$ac_cv_build
2758 else
2759 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2765 $as_echo "$ac_cv_host" >&6; }
2766 case $ac_cv_host in
2767 *-*-*) ;;
2768 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2769 esac
2770 host=$ac_cv_host
2771 ac_save_IFS=$IFS; IFS='-'
2772 set x $ac_cv_host
2773 shift
2774 host_cpu=$1
2775 host_vendor=$2
2776 shift; shift
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2779 host_os=$*
2780 IFS=$ac_save_IFS
2781 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2785 # Default versions for the gnu tools we build
2786 default_gcc_version="4.6.4"
2787 default_binutils_version="2.23.2"
2789 # The AROS target is slightly different to the normal GNU style
2790 # format. We don't have the middle part, and we reverse the order
2791 # of the $(CPU) and $(OS) bits.
2793 # Don't strip the version of the target yet, it might be
2794 # useful on some systems.
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2797 $as_echo_n "checking for AROS style target... " >&6; }
2799 if test "$target" = "NONE" ; then
2800 target=$host_os-$host_cpu
2801 else
2802 if test "$target" = "" ; then
2803 target=$host_os-$host_cpu
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2807 $as_echo "$target" >&6; }
2809 if test "$host_os" = "mingw32" ; then
2810 PWDCMD="pwd -W"
2813 # Don't know where else to put this...
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2815 $as_echo_n "checking building AROS in... " >&6; }
2816 AROS_BUILDDIR=`${PWDCMD-pwd}`
2817 AROS_BUILDDIR_UNIX=${PWD}
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2819 $as_echo "$AROS_BUILDDIR" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2822 $as_echo_n "checking AROS source in... " >&6; }
2823 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2824 SRCDIR=${srcpwd}
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2826 $as_echo "$SRCDIR" >&6; }
2828 # Parse the target field into something useful.
2830 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2831 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2834 # Some debug output, to be removed again.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2836 $as_echo_n "checking for target system (debug output)... " >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2838 $as_echo "$target_os" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2840 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2842 $as_echo "$target_cpu" >&6; }
2844 aros_nominal_width=800
2845 aros_nominal_height=600
2846 aros_nominal_depth=4
2849 default_c_compilers="gcc clang cc"
2851 # Check whether --with-c-compiler was given.
2852 if test "${with_c_compiler+set}" = set; then :
2853 withval=$with_c_compiler; use_c_compiler="$withval"
2854 else
2855 use_c_compiler=""
2858 if test "$use_c_compiler" = ""; then
2859 host_c_compilers="$default_c_compilers"
2860 else
2861 host_c_compilers="$use_c_compiler"
2864 default_cxx_compilers="g++ clang++ c++"
2866 # Check whether --with-cxx-compiler was given.
2867 if test "${with_cxx_compiler+set}" = set; then :
2868 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2869 else
2870 use_cxx_compiler=""
2873 if test "$use_cxx_compiler" = ""; then
2874 host_cxx_compilers="$default_cxx_compilers"
2875 else
2876 host_cxx_compilers="$use_cxx_compiler"
2880 # The first step is to find the host binaries.
2881 # Check for a compiler.
2882 # Due to a bug in autoconf check for c++ compiler first.
2883 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2884 ac_ext=cpp
2885 ac_cpp='$CXXCPP $CPPFLAGS'
2886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2889 if test -z "$CXX"; then
2890 if test -n "$CCC"; then
2891 CXX=$CCC
2892 else
2893 if test -n "$ac_tool_prefix"; then
2894 for ac_prog in ${host_cxx_compilers}
2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_CXX+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$CXX"; then
2904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 CXX=$ac_cv_prog_CXX
2924 if test -n "$CXX"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2926 $as_echo "$CXX" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$CXX" && break
2934 done
2936 if test -z "$CXX"; then
2937 ac_ct_CXX=$CXX
2938 for ac_prog in ${host_cxx_compilers}
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if test -n "$ac_ct_CXX"; then
2948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_ac_ct_CXX="$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2963 IFS=$as_save_IFS
2967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2968 if test -n "$ac_ct_CXX"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2970 $as_echo "$ac_ct_CXX" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$ac_ct_CXX" && break
2978 done
2980 if test "x$ac_ct_CXX" = x; then
2981 CXX="g++"
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 CXX=$ac_ct_CXX
2995 # Provide some information about the compiler.
2996 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2997 set X $ac_compile
2998 ac_compiler=$2
2999 for ac_option in --version -v -V -qversion; do
3000 { { ac_try="$ac_compiler $ac_option >&5"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3008 ac_status=$?
3009 if test -s conftest.err; then
3010 sed '10a\
3011 ... rest of stderr output deleted ...
3012 10q' conftest.err >conftest.er1
3013 cat conftest.er1 >&5
3015 rm -f conftest.er1 conftest.err
3016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017 test $ac_status = 0; }
3018 done
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3024 main ()
3028 return 0;
3030 _ACEOF
3031 ac_clean_files_save=$ac_clean_files
3032 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3033 # Try to create an executable without -o first, disregard a.out.
3034 # It will help us diagnose broken compilers, and finding out an intuition
3035 # of exeext.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3037 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3038 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040 # The possible output files:
3041 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043 ac_rmfiles=
3044 for ac_file in $ac_files
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3048 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3049 esac
3050 done
3051 rm -f $ac_rmfiles
3053 if { { ac_try="$ac_link_default"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link_default") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; then :
3064 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3065 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3066 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3067 # so that the user can short-circuit this test for compilers unknown to
3068 # Autoconf.
3069 for ac_file in $ac_files ''
3071 test -f "$ac_file" || continue
3072 case $ac_file in
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3075 [ab].out )
3076 # We found the default executable, but exeext='' is most
3077 # certainly right.
3078 break;;
3079 *.* )
3080 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3081 then :; else
3082 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 # We set ac_cv_exeext here because the later test for it is not
3085 # safe: cross compilers may not add the suffix if given an `-o'
3086 # argument, so we may need to know it at that point already.
3087 # Even if this section looks crufty: it has the advantage of
3088 # actually working.
3089 break;;
3091 break;;
3092 esac
3093 done
3094 test "$ac_cv_exeext" = no && ac_cv_exeext=
3096 else
3097 ac_file=''
3099 if test -z "$ac_file"; then :
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error 77 "C++ compiler cannot create executables
3108 See \`config.log' for more details" "$LINENO" 5; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111 $as_echo "yes" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3114 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3116 $as_echo "$ac_file" >&6; }
3117 ac_exeext=$ac_cv_exeext
3119 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3120 ac_clean_files=$ac_clean_files_save
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3122 $as_echo_n "checking for suffix of executables... " >&6; }
3123 if { { ac_try="$ac_link"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3135 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3136 # work properly (i.e., refer to `conftest.exe'), while it won't with
3137 # `rm'.
3138 for ac_file in conftest.exe conftest conftest.*; do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3142 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 break;;
3144 * ) break;;
3145 esac
3146 done
3147 else
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3151 See \`config.log' for more details" "$LINENO" 5; }
3153 rm -f conftest conftest$ac_cv_exeext
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3155 $as_echo "$ac_cv_exeext" >&6; }
3157 rm -f conftest.$ac_ext
3158 EXEEXT=$ac_cv_exeext
3159 ac_exeext=$EXEEXT
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3162 #include <stdio.h>
3164 main ()
3166 FILE *f = fopen ("conftest.out", "w");
3167 return ferror (f) || fclose (f) != 0;
3170 return 0;
3172 _ACEOF
3173 ac_clean_files="$ac_clean_files conftest.out"
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3177 $as_echo_n "checking whether we are cross compiling... " >&6; }
3178 if test "$cross_compiling" != yes; then
3179 { { ac_try="$ac_link"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_link") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }
3190 if { ac_try='./conftest$ac_cv_exeext'
3191 { { case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; }; then
3201 cross_compiling=no
3202 else
3203 if test "$cross_compiling" = maybe; then
3204 cross_compiling=yes
3205 else
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot run C++ compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details" "$LINENO" 5; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3215 $as_echo "$cross_compiling" >&6; }
3217 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3218 ac_clean_files=$ac_clean_files_save
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3220 $as_echo_n "checking for suffix of object files... " >&6; }
3221 if ${ac_cv_objext+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3228 main ()
3232 return 0;
3234 _ACEOF
3235 rm -f conftest.o conftest.obj
3236 if { { ac_try="$ac_compile"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_compile") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 for ac_file in conftest.o conftest.obj conftest.*; do
3248 test -f "$ac_file" || continue;
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3252 break;;
3253 esac
3254 done
3255 else
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "cannot compute suffix of object files: cannot compile
3262 See \`config.log' for more details" "$LINENO" 5; }
3264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3267 $as_echo "$ac_cv_objext" >&6; }
3268 OBJEXT=$ac_cv_objext
3269 ac_objext=$OBJEXT
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3271 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3272 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3279 main ()
3281 #ifndef __GNUC__
3282 choke me
3283 #endif
3286 return 0;
3288 _ACEOF
3289 if ac_fn_cxx_try_compile "$LINENO"; then :
3290 ac_compiler_gnu=yes
3291 else
3292 ac_compiler_gnu=no
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3299 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3300 if test $ac_compiler_gnu = yes; then
3301 GXX=yes
3302 else
3303 GXX=
3305 ac_test_CXXFLAGS=${CXXFLAGS+set}
3306 ac_save_CXXFLAGS=$CXXFLAGS
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3308 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3309 if ${ac_cv_prog_cxx_g+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3313 ac_cxx_werror_flag=yes
3314 ac_cv_prog_cxx_g=no
3315 CXXFLAGS="-g"
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3320 main ()
3324 return 0;
3326 _ACEOF
3327 if ac_fn_cxx_try_compile "$LINENO"; then :
3328 ac_cv_prog_cxx_g=yes
3329 else
3330 CXXFLAGS=""
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3335 main ()
3339 return 0;
3341 _ACEOF
3342 if ac_fn_cxx_try_compile "$LINENO"; then :
3344 else
3345 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3346 CXXFLAGS="-g"
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 if ac_fn_cxx_try_compile "$LINENO"; then :
3359 ac_cv_prog_cxx_g=yes
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3369 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3370 if test "$ac_test_CXXFLAGS" = set; then
3371 CXXFLAGS=$ac_save_CXXFLAGS
3372 elif test $ac_cv_prog_cxx_g = yes; then
3373 if test "$GXX" = yes; then
3374 CXXFLAGS="-g -O2"
3375 else
3376 CXXFLAGS="-g"
3378 else
3379 if test "$GXX" = yes; then
3380 CXXFLAGS="-O2"
3381 else
3382 CXXFLAGS=
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 if test -n "$ac_tool_prefix"; then
3397 for ac_prog in ${host_c_compilers}
3399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3420 done
3421 done
3422 IFS=$as_save_IFS
3426 CC=$ac_cv_prog_CC
3427 if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429 $as_echo "$CC" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3436 test -n "$CC" && break
3437 done
3439 if test -z "$CC"; then
3440 ac_ct_CC=$CC
3441 for ac_prog in ${host_c_compilers}
3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
3444 set dummy $ac_prog; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -n "$ac_ct_CC"; then
3451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_ac_ct_CC="$ac_prog"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3466 IFS=$as_save_IFS
3470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471 if test -n "$ac_ct_CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3473 $as_echo "$ac_ct_CC" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3480 test -n "$ac_ct_CC" && break
3481 done
3483 if test "x$ac_ct_CC" = x; then
3484 CC=""
3485 else
3486 case $cross_compiling:$ac_tool_warned in
3487 yes:)
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490 ac_tool_warned=yes ;;
3491 esac
3492 CC=$ac_ct_CC
3497 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error $? "no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details" "$LINENO" 5; }
3502 # Provide some information about the compiler.
3503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3504 set X $ac_compile
3505 ac_compiler=$2
3506 for ac_option in --version -v -V -qversion; do
3507 { { ac_try="$ac_compiler $ac_option >&5"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3515 ac_status=$?
3516 if test -s conftest.err; then
3517 sed '10a\
3518 ... rest of stderr output deleted ...
3519 10q' conftest.err >conftest.er1
3520 cat conftest.er1 >&5
3522 rm -f conftest.er1 conftest.err
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 done
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if ${ac_cv_c_compiler_gnu+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3536 main ()
3538 #ifndef __GNUC__
3539 choke me
3540 #endif
3543 return 0;
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_compiler_gnu=yes
3548 else
3549 ac_compiler_gnu=no
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557 if test $ac_compiler_gnu = yes; then
3558 GCC=yes
3559 else
3560 GCC=
3562 ac_test_CFLAGS=${CFLAGS+set}
3563 ac_save_CFLAGS=$CFLAGS
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3566 if ${ac_cv_prog_cc_g+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 ac_save_c_werror_flag=$ac_c_werror_flag
3570 ac_c_werror_flag=yes
3571 ac_cv_prog_cc_g=no
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3577 main ()
3581 return 0;
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3586 else
3587 CFLAGS=""
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3592 main ()
3596 return 0;
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3601 else
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3603 CFLAGS="-g"
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3608 main ()
3612 return 0;
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_prog_cc_g=yes
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_c_werror_flag=$ac_save_c_werror_flag
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3626 $as_echo "$ac_cv_prog_cc_g" >&6; }
3627 if test "$ac_test_CFLAGS" = set; then
3628 CFLAGS=$ac_save_CFLAGS
3629 elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3631 CFLAGS="-g -O2"
3632 else
3633 CFLAGS="-g"
3635 else
3636 if test "$GCC" = yes; then
3637 CFLAGS="-O2"
3638 else
3639 CFLAGS=
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3644 if ${ac_cv_prog_cc_c89+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 ac_cv_prog_cc_c89=no
3648 ac_save_CC=$CC
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651 #include <stdarg.h>
3652 #include <stdio.h>
3653 struct stat;
3654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3655 struct buf { int x; };
3656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3657 static char *e (p, i)
3658 char **p;
3659 int i;
3661 return p[i];
3663 static char *f (char * (*g) (char **, int), char **p, ...)
3665 char *s;
3666 va_list v;
3667 va_start (v,p);
3668 s = g (p, va_arg (v,int));
3669 va_end (v);
3670 return s;
3673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3674 function prototypes and stuff, but not '\xHH' hex character constants.
3675 These don't provoke an error unfortunately, instead are silently treated
3676 as 'x'. The following induces an error, until -std is added to get
3677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3678 array size at least. It's necessary to write '\x00'==0 to get something
3679 that's true only with -std. */
3680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3683 inside strings and character constants. */
3684 #define FOO(x) 'x'
3685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687 int test (int i, double x);
3688 struct s1 {int (*f) (int a);};
3689 struct s2 {int (*f) (double a);};
3690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691 int argc;
3692 char **argv;
3694 main ()
3696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 return 0;
3700 _ACEOF
3701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704 CC="$ac_save_CC $ac_arg"
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_c89=$ac_arg
3708 rm -f core conftest.err conftest.$ac_objext
3709 test "x$ac_cv_prog_cc_c89" != "xno" && break
3710 done
3711 rm -f conftest.$ac_ext
3712 CC=$ac_save_CC
3715 # AC_CACHE_VAL
3716 case "x$ac_cv_prog_cc_c89" in
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3719 $as_echo "none needed" >&6; } ;;
3720 xno)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3722 $as_echo "unsupported" >&6; } ;;
3724 CC="$CC $ac_cv_prog_cc_c89"
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3726 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3727 esac
3728 if test "x$ac_cv_prog_cc_c89" != xno; then :
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 aros_host_def_cc="$CC"
3739 case $ac_cv_prog_cc_stdc in #(
3740 no) :
3741 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3742 *) :
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3745 if ${ac_cv_prog_cc_c99+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 ac_cv_prog_cc_c99=no
3749 ac_save_CC=$CC
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752 #include <stdarg.h>
3753 #include <stdbool.h>
3754 #include <stdlib.h>
3755 #include <wchar.h>
3756 #include <stdio.h>
3758 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3759 #define debug(...) fprintf (stderr, __VA_ARGS__)
3760 #define showlist(...) puts (#__VA_ARGS__)
3761 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3762 static void
3763 test_varargs_macros (void)
3765 int x = 1234;
3766 int y = 5678;
3767 debug ("Flag");
3768 debug ("X = %d\n", x);
3769 showlist (The first, second, and third items.);
3770 report (x>y, "x is %d but y is %d", x, y);
3773 // Check long long types.
3774 #define BIG64 18446744073709551615ull
3775 #define BIG32 4294967295ul
3776 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3777 #if !BIG_OK
3778 your preprocessor is broken;
3779 #endif
3780 #if BIG_OK
3781 #else
3782 your preprocessor is broken;
3783 #endif
3784 static long long int bignum = -9223372036854775807LL;
3785 static unsigned long long int ubignum = BIG64;
3787 struct incomplete_array
3789 int datasize;
3790 double data[];
3793 struct named_init {
3794 int number;
3795 const wchar_t *name;
3796 double average;
3799 typedef const char *ccp;
3801 static inline int
3802 test_restrict (ccp restrict text)
3804 // See if C++-style comments work.
3805 // Iterate through items via the restricted pointer.
3806 // Also check for declarations in for loops.
3807 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3808 continue;
3809 return 0;
3812 // Check varargs and va_copy.
3813 static void
3814 test_varargs (const char *format, ...)
3816 va_list args;
3817 va_start (args, format);
3818 va_list args_copy;
3819 va_copy (args_copy, args);
3821 const char *str;
3822 int number;
3823 float fnumber;
3825 while (*format)
3827 switch (*format++)
3829 case 's': // string
3830 str = va_arg (args_copy, const char *);
3831 break;
3832 case 'd': // int
3833 number = va_arg (args_copy, int);
3834 break;
3835 case 'f': // float
3836 fnumber = va_arg (args_copy, double);
3837 break;
3838 default:
3839 break;
3842 va_end (args_copy);
3843 va_end (args);
3847 main ()
3850 // Check bool.
3851 _Bool success = false;
3853 // Check restrict.
3854 if (test_restrict ("String literal") == 0)
3855 success = true;
3856 char *restrict newvar = "Another string";
3858 // Check varargs.
3859 test_varargs ("s, d' f .", "string", 65, 34.234);
3860 test_varargs_macros ();
3862 // Check flexible array members.
3863 struct incomplete_array *ia =
3864 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3865 ia->datasize = 10;
3866 for (int i = 0; i < ia->datasize; ++i)
3867 ia->data[i] = i * 1.234;
3869 // Check named initializers.
3870 struct named_init ni = {
3871 .number = 34,
3872 .name = L"Test wide string",
3873 .average = 543.34343,
3876 ni.number = 58;
3878 int dynamic_array[ni.number];
3879 dynamic_array[ni.number - 1] = 543;
3881 // work around unused variable warnings
3882 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3883 || dynamic_array[ni.number - 1] != 543);
3886 return 0;
3888 _ACEOF
3889 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3891 CC="$ac_save_CC $ac_arg"
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_prog_cc_c99=$ac_arg
3895 rm -f core conftest.err conftest.$ac_objext
3896 test "x$ac_cv_prog_cc_c99" != "xno" && break
3897 done
3898 rm -f conftest.$ac_ext
3899 CC=$ac_save_CC
3902 # AC_CACHE_VAL
3903 case "x$ac_cv_prog_cc_c99" in
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3906 $as_echo "none needed" >&6; } ;;
3907 xno)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3909 $as_echo "unsupported" >&6; } ;;
3911 CC="$CC $ac_cv_prog_cc_c99"
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3913 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3914 esac
3915 if test "x$ac_cv_prog_cc_c99" != xno; then :
3916 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3920 if ${ac_cv_prog_cc_c89+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 ac_cv_prog_cc_c89=no
3924 ac_save_CC=$CC
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <stdarg.h>
3928 #include <stdio.h>
3929 struct stat;
3930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3931 struct buf { int x; };
3932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3933 static char *e (p, i)
3934 char **p;
3935 int i;
3937 return p[i];
3939 static char *f (char * (*g) (char **, int), char **p, ...)
3941 char *s;
3942 va_list v;
3943 va_start (v,p);
3944 s = g (p, va_arg (v,int));
3945 va_end (v);
3946 return s;
3949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3950 function prototypes and stuff, but not '\xHH' hex character constants.
3951 These don't provoke an error unfortunately, instead are silently treated
3952 as 'x'. The following induces an error, until -std is added to get
3953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3954 array size at least. It's necessary to write '\x00'==0 to get something
3955 that's true only with -std. */
3956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3959 inside strings and character constants. */
3960 #define FOO(x) 'x'
3961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3963 int test (int i, double x);
3964 struct s1 {int (*f) (int a);};
3965 struct s2 {int (*f) (double a);};
3966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3967 int argc;
3968 char **argv;
3970 main ()
3972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3974 return 0;
3976 _ACEOF
3977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3980 CC="$ac_save_CC $ac_arg"
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_cv_prog_cc_c89=$ac_arg
3984 rm -f core conftest.err conftest.$ac_objext
3985 test "x$ac_cv_prog_cc_c89" != "xno" && break
3986 done
3987 rm -f conftest.$ac_ext
3988 CC=$ac_save_CC
3991 # AC_CACHE_VAL
3992 case "x$ac_cv_prog_cc_c89" in
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3996 xno)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
4000 CC="$CC $ac_cv_prog_cc_c89"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4003 esac
4004 if test "x$ac_cv_prog_cc_c89" != xno; then :
4005 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4006 else
4007 ac_cv_prog_cc_stdc=no
4012 esac
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4014 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4015 if ${ac_cv_prog_cc_stdc+:} false; then :
4016 $as_echo_n "(cached) " >&6
4019 case $ac_cv_prog_cc_stdc in #(
4020 no) :
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4022 $as_echo "unsupported" >&6; } ;; #(
4023 '') :
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025 $as_echo "none needed" >&6; } ;; #(
4026 *) :
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4028 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4029 esac
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4038 # On Suns, sometimes $CPP names a directory.
4039 if test -n "$CPP" && test -d "$CPP"; then
4040 CPP=
4042 if test -z "$CPP"; then
4043 if ${ac_cv_prog_CPP+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 # Double quotes because CPP needs to be expanded
4047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049 ac_preproc_ok=false
4050 for ac_c_preproc_warn_flag in '' yes
4052 # Use a header file that comes with gcc, so configuring glibc
4053 # with a fresh cross-compiler works.
4054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055 # <limits.h> exists even on freestanding compilers.
4056 # On the NeXT, cc -E runs the code through the compiler's parser,
4057 # not just through cpp. "Syntax error" is here to catch this case.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #ifdef __STDC__
4061 # include <limits.h>
4062 #else
4063 # include <assert.h>
4064 #endif
4065 Syntax error
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4069 else
4070 # Broken: fails on valid input.
4071 continue
4073 rm -f conftest.err conftest.i conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #include <ac_nonexistent.h>
4080 _ACEOF
4081 if ac_fn_c_try_cpp "$LINENO"; then :
4082 # Broken: success on invalid input.
4083 continue
4084 else
4085 # Passes both tests.
4086 ac_preproc_ok=:
4087 break
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4091 done
4092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093 rm -f conftest.i conftest.err conftest.$ac_ext
4094 if $ac_preproc_ok; then :
4095 break
4098 done
4099 ac_cv_prog_CPP=$CPP
4102 CPP=$ac_cv_prog_CPP
4103 else
4104 ac_cv_prog_CPP=$CPP
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4107 $as_echo "$CPP" >&6; }
4108 ac_preproc_ok=false
4109 for ac_c_preproc_warn_flag in '' yes
4111 # Use a header file that comes with gcc, so configuring glibc
4112 # with a fresh cross-compiler works.
4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4114 # <limits.h> exists even on freestanding compilers.
4115 # On the NeXT, cc -E runs the code through the compiler's parser,
4116 # not just through cpp. "Syntax error" is here to catch this case.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #ifdef __STDC__
4120 # include <limits.h>
4121 #else
4122 # include <assert.h>
4123 #endif
4124 Syntax error
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4128 else
4129 # Broken: fails on valid input.
4130 continue
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4139 _ACEOF
4140 if ac_fn_c_try_cpp "$LINENO"; then :
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 # Passes both tests.
4145 ac_preproc_ok=:
4146 break
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4150 done
4151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152 rm -f conftest.i conftest.err conftest.$ac_ext
4153 if $ac_preproc_ok; then :
4155 else
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4159 See \`config.log' for more details" "$LINENO" 5; }
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 # Check for a compatible awk
4170 for ac_prog in gawk nawk
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_AWK+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$AWK"; then
4180 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_AWK="$ac_prog"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4195 IFS=$as_save_IFS
4199 AWK=$ac_cv_prog_AWK
4200 if test -n "$AWK"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4202 $as_echo "$AWK" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4209 test -n "$AWK" && break
4210 done
4212 req_avail=yes
4213 if test "$AWK" = ""; then
4214 req_avail=no
4216 if test "$AWK" = "no"; then
4217 req_avail=no
4219 if test "$req_avail" = "no"; then
4220 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4222 # Extract the first word of "mmake", so it can be a program name with args.
4223 set dummy mmake; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_MMAKE+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$MMAKE"; then
4230 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_MMAKE="mmake "
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4243 done
4244 done
4245 IFS=$as_save_IFS
4249 MMAKE=$ac_cv_prog_MMAKE
4250 if test -n "$MMAKE"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4252 $as_echo "$MMAKE" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4260 # Perform some default variable assignments. Note all of these will be
4261 # Regenerated from the script, so there is no need to cache them.
4263 aros_build_host=$host
4264 aros_host_cpp="$CPP"
4265 aros_host_cc="$CC"
4266 aros_host_cxx="$CXX"
4267 if test "$GCC" = "yes"; then
4268 aros_gcc_ld=`$CC -print-prog-name=ld`
4269 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4270 set dummy `basename $aros_gcc_ld`; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if ${ac_cv_path_aros_host_ld+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 case $aros_host_ld in
4277 [\\/]* | ?:[\\/]*)
4278 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in `dirname $aros_gcc_ld`
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4294 IFS=$as_save_IFS
4297 esac
4299 aros_host_ld=$ac_cv_path_aros_host_ld
4300 if test -n "$aros_host_ld"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4302 $as_echo "$aros_host_ld" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4310 if test "$aros_host_ld" = ""; then
4311 # Extract the first word of "ld", so it can be a program name with args.
4312 set dummy ld; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_path_aros_host_ld+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 case $aros_host_ld in
4319 [\\/]* | ?:[\\/]*)
4320 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4334 done
4335 done
4336 IFS=$as_save_IFS
4339 esac
4341 aros_host_ld=$ac_cv_path_aros_host_ld
4342 if test -n "$aros_host_ld"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4344 $as_echo "$aros_host_ld" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4352 req_avail=yes
4353 if test "$aros_host_ld" = ""; then
4354 req_avail=no
4356 if test "$aros_host_ld" = "no"; then
4357 req_avail=no
4359 if test "$req_avail" = "no"; then
4360 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4362 aros_host_make="make"
4363 aros_host_cflags="$CFLAGS"
4364 aros_host_cxxflags="$CXXFLAGS"
4365 aros_host_ldflags="$LDFLAGS"
4366 aros_host_debug="-g -O0"
4367 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4368 aros_host_mkargs="--no-print-directory"
4369 aros_host_exe_suffix="$EXEEXT"
4370 aros_host_lib_suffix=""
4372 # Ignore all compliance, AROS ROMs = 0
4373 # KickStart v1.0 = 30
4374 # KickStart v1.3 = 34
4375 # KickStart v2.0 = 37
4376 # KickStart v3.0 = 39
4377 # KickStart v3.1 = 40
4378 # AmigaOS v3.5 = 44
4379 aros_amigaos_compliance=0
4381 for ac_prog in aclocal aclocal19 aclocal-1.9
4383 # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$aros_host_aclocal"; then
4391 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_aros_host_aclocal="$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4411 if test -n "$aros_host_aclocal"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4413 $as_echo "$aros_host_aclocal" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 test -n "$aros_host_aclocal" && break
4421 done
4423 for ac_prog in autoconf autoconf259 autoconf253
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$aros_host_autoconf"; then
4433 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_aros_host_autoconf="$ac_prog"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4448 IFS=$as_save_IFS
4452 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4453 if test -n "$aros_host_autoconf"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4455 $as_echo "$aros_host_autoconf" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4462 test -n "$aros_host_autoconf" && break
4463 done
4465 for ac_prog in autoheader autoheader259 autoheader253
4467 # Extract the first word of "$ac_prog", so it can be a program name with args.
4468 set dummy $ac_prog; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 if test -n "$aros_host_autoheader"; then
4475 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_aros_host_autoheader="$ac_prog"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4488 done
4489 done
4490 IFS=$as_save_IFS
4494 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4495 if test -n "$aros_host_autoheader"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4497 $as_echo "$aros_host_autoheader" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4504 test -n "$aros_host_autoheader" && break
4505 done
4507 for ac_prog in automake automake19 automake-1.9
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_aros_host_automake+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$aros_host_automake"; then
4517 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_aros_host_automake="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 aros_host_automake=$ac_cv_prog_aros_host_automake
4537 if test -n "$aros_host_automake"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4539 $as_echo "$aros_host_automake" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$aros_host_automake" && break
4547 done
4550 req_avail=yes
4551 if test "$aros_host_aclocal" = ""; then
4552 req_avail=no
4554 if test "$aros_host_aclocal" = "no"; then
4555 req_avail=no
4557 if test "$req_avail" = "no"; then
4558 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4560 req_avail=yes
4561 if test "$aros_host_automake" = ""; then
4562 req_avail=no
4564 if test "$aros_host_automake" = "no"; then
4565 req_avail=no
4567 if test "$req_avail" = "no"; then
4568 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4571 case "$aros_host_cc" in
4572 *clang*)
4573 aros_host_cc_pipe=""
4575 *gcc*)
4576 aros_host_cc_pipe="-pipe"
4578 icc)
4579 aros_host_cc_pipe=""
4582 aros_host_cc_pipe=""
4584 esac
4586 aros_kernel_cc_includes=""
4587 aros_target_cc_includes=""
4588 host_cc_elf=yes
4590 # ----------------------------------------------------------------------------------------
4591 # Host-specific defaults
4593 # This is the main host configuration section. It is where the host
4594 # can change the values of any variables it needs to change. We do
4595 # not look at anything that compiles to the target yet, we'll get
4596 # to that later.
4598 case "$host_os" in
4599 aros*)
4600 aros_host_arch="aros"
4601 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4602 case "$host_cpu" in
4603 *i?86*)
4604 aros_host_cpu="i386"
4606 *x86_64*)
4607 aros_host_cpu="x86_64"
4609 *powerpc*)
4610 aros_host_cpu="ppc"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4614 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4615 aros_host_cpu="$host_cpu"
4617 esac
4620 linux*)
4621 aros_host_arch="linux"
4622 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4623 android_build_os="linux-x86"
4624 android_tool="android"
4625 default_android_sdk="/opt/android-sdk-linux_x86"
4626 case "$host_cpu" in
4627 *i?86*)
4628 aros_host_cpu="i386"
4630 *x86_64*)
4631 aros_host_cpu="x86_64"
4633 *m68k*)
4634 aros_host_cpu="m68k"
4636 *powerpc*)
4637 aros_host_cpu="ppc"
4639 *arm*)
4640 aros_host_cpu="arm"
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4644 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4645 aros_host_cpu="$host_cpu"
4647 esac
4650 freebsd*)
4651 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4652 aros_host_make="gmake"
4653 aros_host_arch="freebsd"
4654 aros_host_cpu="i386"
4656 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4658 case $host_os in
4659 freebsd[234]*)
4660 aros_object_format="elf_i386"
4664 aros_object_format="elf_i386_fbsd"
4666 esac
4670 darwin*)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4672 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4673 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 test "$cross_compiling" = yes &&
4677 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4678 if test -r "/usr/include/stddef.h"; then
4679 ac_cv_file__usr_include_stddef_h=yes
4680 else
4681 ac_cv_file__usr_include_stddef_h=no
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4685 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4686 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4688 else
4689 as_fn_error $? "XCode incorrectly configured!
4690 please run 'xcode-select --install' before
4691 re-running configure" "$LINENO" 5
4695 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4696 aros_host_arch="darwin"
4697 host_cc_elf=no
4698 if [ -z ${SED+x} ]; then SED="gsed"; fi
4699 android_build_os="darwin-x86"
4700 android_tool="android"
4701 default_android_sdk="/android-sdk-mac_x86"
4702 case "$host_cpu" in
4703 *i?86*)
4704 aros_host_cpu="i386"
4706 *x86_64*)
4707 aros_host_cpu="x86_64"
4709 *powerpc*)
4710 aros_host_cpu="ppc"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4714 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4715 aros_host_cpu="$host_cpu"
4717 esac
4719 aros_host_ldflags="$aros_host_ldflags -liconv"
4723 dragonfly*)
4724 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4725 aros_host_make="gmake"
4726 aros_host_arch="dragonfly"
4727 case $host_cpu in
4728 *i?86*)
4729 aros_host_cpu="i386"
4731 *amd64*)
4732 aros_host_cpu="x86_64"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4736 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4737 aros_host_cpu="$host_cpu"
4739 esac
4742 netbsd*)
4743 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4744 aros_host_make="gmake"
4745 aros_host_arch="netbsd"
4746 case "$host_cpu" in
4747 *i?86*)
4748 aros_host_cpu="i386"
4750 *m68k*)
4751 aros_host_cpu="m68k"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4755 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4756 aros_host_cpu="$host_cpu"
4758 esac
4759 aros_host_lib_suffix=".0.0"
4762 openbsd*)
4763 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4764 aros_host_make="gmake"
4765 aros_host_arch="openbsd"
4766 case "$host_cpu" in
4767 *i?86*)
4768 aros_host_cpu="i386"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4772 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4773 aros_host_cpu="$host_cpu"
4775 esac
4778 solaris*)
4779 aros_host_arch="solaris"
4780 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4781 case "$host_cpu" in
4782 *i?86*)
4783 aros_host_cpu="i386"
4785 *sparc*)
4786 aros_host_cpu="sparc"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4790 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4791 aros_host_cpu="$host_cpu"
4793 esac
4796 morphos*)
4797 aros_host_arch="morphos"
4798 aros_host_cpu="ppc"
4799 host_cc_elf=no
4802 amiga*)
4803 aros_host_arch="amiga"
4804 host_cc_elf=no
4805 SORT="/gg/bin/sort"
4806 TEST="/gg/bin/test"
4807 UNIQ="/gg/bin/uniq"
4808 FOR="for"
4809 TOUCH="/gg/bin/touch"
4810 case "$host_cpu" in
4811 *m68k*)
4812 aros_host_cpu="m68k"
4814 *powerpc*)
4815 aros_host_cpu="ppc"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 cygwin*)
4826 aros_host_arch="cygwin"
4827 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4828 host_cc_elf=no
4829 android_build_os="windows"
4830 android_tool="android.bat"
4831 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4833 case "$host_cpu" in
4834 *i?86*)
4835 aros_host_cpu="i386"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4839 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4840 aros_host_cpu="$host_cpu"
4842 esac
4845 mingw32*)
4846 aros_host_arch="mingw32"
4847 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4848 host_cc_elf=no
4849 android_build_os="windows"
4850 android_tool="android.bat"
4851 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4853 libpng_libextra="-lws2_32"
4855 case "$host_cpu" in
4856 *i?86*)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4859 $as_echo_n "checking for Windows native gcc target... " >&6; }
4860 host_cpu=`gcc -dumpmachine`
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4862 $as_echo "$host_cpu" >&6; }
4865 esac
4867 case "$host_cpu" in
4868 *i?86*)
4869 aros_host_cpu="i386"
4872 mingw32*)
4873 aros_host_cpu="i386"
4876 *x86_64*)
4877 aros_host_cpu="x86_64"
4878 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4883 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4884 aros_host_cpu="$host_cpu"
4886 esac
4889 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4891 esac
4893 # Extract the first word of "ar", so it can be a program name with args.
4894 set dummy ar; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_aros_host_ar+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$aros_host_ar"; then
4901 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_aros_host_ar="ar cr"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 aros_host_ar=$ac_cv_prog_aros_host_ar
4921 if test -n "$aros_host_ar"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4923 $as_echo "$aros_host_ar" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4930 req_avail=yes
4931 if test "$aros_host_ar" = ""; then
4932 req_avail=no
4934 if test "$aros_host_ar" = "no"; then
4935 req_avail=no
4937 if test "$req_avail" = "no"; then
4938 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4940 # Extract the first word of "ranlib", so it can be a program name with args.
4941 set dummy ranlib; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$aros_host_ranlib"; then
4948 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_aros_host_ranlib="ranlib "
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4968 if test -n "$aros_host_ranlib"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4970 $as_echo "$aros_host_ranlib" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4977 req_avail=yes
4978 if test "$aros_host_ranlib" = ""; then
4979 req_avail=no
4981 if test "$aros_host_ranlib" = "no"; then
4982 req_avail=no
4984 if test "$req_avail" = "no"; then
4985 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4987 # Extract the first word of "strip", so it can be a program name with args.
4988 set dummy strip; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_aros_host_strip+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$aros_host_strip"; then
4995 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_aros_host_strip="strip "
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 aros_host_strip=$ac_cv_prog_aros_host_strip
5015 if test -n "$aros_host_strip"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5017 $as_echo "$aros_host_strip" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 req_avail=yes
5025 if test "$aros_host_strip" = ""; then
5026 req_avail=no
5028 if test "$aros_host_strip" = "no"; then
5029 req_avail=no
5031 if test "$req_avail" = "no"; then
5032 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5035 # Extract the first word of "rm", so it can be a program name with args.
5036 set dummy rm; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_RM+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 if test -n "$RM"; then
5043 ac_cv_prog_RM="$RM" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_RM="rm -rf"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5056 done
5057 done
5058 IFS=$as_save_IFS
5062 RM=$ac_cv_prog_RM
5063 if test -n "$RM"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5065 $as_echo "$RM" >&6; }
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5072 req_avail=yes
5073 if test "$RM" = ""; then
5074 req_avail=no
5076 if test "$RM" = "no"; then
5077 req_avail=no
5079 if test "$req_avail" = "no"; then
5080 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5082 # Extract the first word of "cp", so it can be a program name with args.
5083 set dummy cp; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_CP+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$CP"; then
5090 ac_cv_prog_CP="$CP" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_CP="cp "
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 CP=$ac_cv_prog_CP
5110 if test -n "$CP"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5112 $as_echo "$CP" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5119 req_avail=yes
5120 if test "$CP" = ""; then
5121 req_avail=no
5123 if test "$CP" = "no"; then
5124 req_avail=no
5126 if test "$req_avail" = "no"; then
5127 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5129 # Extract the first word of "mv", so it can be a program name with args.
5130 set dummy mv; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_MV+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$MV"; then
5137 ac_cv_prog_MV="$MV" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_MV="mv "
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 MV=$ac_cv_prog_MV
5157 if test -n "$MV"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5159 $as_echo "$MV" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5166 req_avail=yes
5167 if test "$MV" = ""; then
5168 req_avail=no
5170 if test "$MV" = "no"; then
5171 req_avail=no
5173 if test "$req_avail" = "no"; then
5174 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5176 # Extract the first word of "echo", so it can be a program name with args.
5177 set dummy echo; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_ECHO+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$ECHO"; then
5184 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_ECHO="echo "
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5203 ECHO=$ac_cv_prog_ECHO
5204 if test -n "$ECHO"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5206 $as_echo "$ECHO" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 req_avail=yes
5214 if test "$ECHO" = ""; then
5215 req_avail=no
5217 if test "$ECHO" = "no"; then
5218 req_avail=no
5220 if test "$req_avail" = "no"; then
5221 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5223 # Extract the first word of "mkdir", so it can be a program name with args.
5224 set dummy mkdir; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_MKDIR+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$MKDIR"; then
5231 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_MKDIR="mkdir -p"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 MKDIR=$ac_cv_prog_MKDIR
5251 if test -n "$MKDIR"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5253 $as_echo "$MKDIR" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 req_avail=yes
5261 if test "$MKDIR" = ""; then
5262 req_avail=no
5264 if test "$MKDIR" = "no"; then
5265 req_avail=no
5267 if test "$req_avail" = "no"; then
5268 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5270 # Extract the first word of "touch", so it can be a program name with args.
5271 set dummy touch; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_TOUCH+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$TOUCH"; then
5278 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_TOUCH="touch "
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5291 done
5292 done
5293 IFS=$as_save_IFS
5297 TOUCH=$ac_cv_prog_TOUCH
5298 if test -n "$TOUCH"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5300 $as_echo "$TOUCH" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5307 req_avail=yes
5308 if test "$TOUCH" = ""; then
5309 req_avail=no
5311 if test "$TOUCH" = "no"; then
5312 req_avail=no
5314 if test "$req_avail" = "no"; then
5315 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5317 # Extract the first word of "sort", so it can be a program name with args.
5318 set dummy sort; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_prog_SORT+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if test -n "$SORT"; then
5325 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_SORT="sort "
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5340 IFS=$as_save_IFS
5344 SORT=$ac_cv_prog_SORT
5345 if test -n "$SORT"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5347 $as_echo "$SORT" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5354 req_avail=yes
5355 if test "$SORT" = ""; then
5356 req_avail=no
5358 if test "$SORT" = "no"; then
5359 req_avail=no
5361 if test "$req_avail" = "no"; then
5362 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5364 # Extract the first word of "uniq", so it can be a program name with args.
5365 set dummy uniq; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_UNIQ+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$UNIQ"; then
5372 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_UNIQ="uniq "
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5391 UNIQ=$ac_cv_prog_UNIQ
5392 if test -n "$UNIQ"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5394 $as_echo "$UNIQ" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5401 req_avail=yes
5402 if test "$UNIQ" = ""; then
5403 req_avail=no
5405 if test "$UNIQ" = "no"; then
5406 req_avail=no
5408 if test "$req_avail" = "no"; then
5409 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5411 # Extract the first word of "true", so it can be a program name with args.
5412 set dummy true; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_NOP+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$NOP"; then
5419 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_prog_NOP="true "
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5432 done
5433 done
5434 IFS=$as_save_IFS
5438 NOP=$ac_cv_prog_NOP
5439 if test -n "$NOP"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5441 $as_echo "$NOP" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5448 req_avail=yes
5449 if test "$NOP" = ""; then
5450 req_avail=no
5452 if test "$NOP" = "no"; then
5453 req_avail=no
5455 if test "$req_avail" = "no"; then
5456 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5458 # Extract the first word of "cat", so it can be a program name with args.
5459 set dummy cat; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_prog_CAT+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if test -n "$CAT"; then
5466 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_CAT="cat "
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5479 done
5480 done
5481 IFS=$as_save_IFS
5485 CAT=$ac_cv_prog_CAT
5486 if test -n "$CAT"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5488 $as_echo "$CAT" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5495 req_avail=yes
5496 if test "$CAT" = ""; then
5497 req_avail=no
5499 if test "$CAT" = "no"; then
5500 req_avail=no
5502 if test "$req_avail" = "no"; then
5503 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5505 # Extract the first word of "bison", so it can be a program name with args.
5506 set dummy bison; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_BISON+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$BISON"; then
5513 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_BISON="bison "
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5528 IFS=$as_save_IFS
5532 BISON=$ac_cv_prog_BISON
5533 if test -n "$BISON"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5535 $as_echo "$BISON" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5542 req_avail=yes
5543 if test "$BISON" = ""; then
5544 req_avail=no
5546 if test "$BISON" = "no"; then
5547 req_avail=no
5549 if test "$req_avail" = "no"; then
5550 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5552 # Extract the first word of "flex", so it can be a program name with args.
5553 set dummy flex; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_FLEX+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$FLEX"; then
5560 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_FLEX="flex "
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5573 done
5574 done
5575 IFS=$as_save_IFS
5579 FLEX=$ac_cv_prog_FLEX
5580 if test -n "$FLEX"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5582 $as_echo "$FLEX" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5589 req_avail=yes
5590 if test "$FLEX" = ""; then
5591 req_avail=no
5593 if test "$FLEX" = "no"; then
5594 req_avail=no
5596 if test "$req_avail" = "no"; then
5597 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5599 # Extract the first word of "pngtopnm", so it can be a program name with args.
5600 set dummy pngtopnm; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$PNGTOPNM"; then
5607 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_PNGTOPNM="pngtopnm "
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5622 IFS=$as_save_IFS
5626 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5627 if test -n "$PNGTOPNM"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5629 $as_echo "$PNGTOPNM" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5636 req_avail=yes
5637 if test "$PNGTOPNM" = ""; then
5638 req_avail=no
5640 if test "$PNGTOPNM" = "no"; then
5641 req_avail=no
5643 if test "$req_avail" = "no"; then
5644 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5646 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5647 set dummy ppmtoilbm; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$PPMTOILBM"; then
5654 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5667 done
5668 done
5669 IFS=$as_save_IFS
5673 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5674 if test -n "$PPMTOILBM"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5676 $as_echo "$PPMTOILBM" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 req_avail=yes
5684 if test "$PPMTOILBM" = ""; then
5685 req_avail=no
5687 if test "$PPMTOILBM" = "no"; then
5688 req_avail=no
5690 if test "$req_avail" = "no"; then
5691 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5693 # Extract the first word of "sed", so it can be a program name with args.
5694 set dummy sed; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_SED+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$SED"; then
5701 ac_cv_prog_SED="$SED" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_SED="sed "
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5716 IFS=$as_save_IFS
5720 SED=$ac_cv_prog_SED
5721 if test -n "$SED"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5723 $as_echo "$SED" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5730 req_avail=yes
5731 if test "$SED" = ""; then
5732 req_avail=no
5734 if test "$SED" = "no"; then
5735 req_avail=no
5737 if test "$req_avail" = "no"; then
5738 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5740 # Extract the first word of "chmod", so it can be a program name with args.
5741 set dummy chmod; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_CHMOD+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$CHMOD"; then
5748 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_CHMOD="chmod "
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5761 done
5762 done
5763 IFS=$as_save_IFS
5767 CHMOD=$ac_cv_prog_CHMOD
5768 if test -n "$CHMOD"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5770 $as_echo "$CHMOD" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5777 req_avail=yes
5778 if test "$CHMOD" = ""; then
5779 req_avail=no
5781 if test "$CHMOD" = "no"; then
5782 req_avail=no
5784 if test "$req_avail" = "no"; then
5785 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5787 # Extract the first word of "patch", so it can be a program name with args.
5788 set dummy patch; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_PATCH+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$PATCH"; then
5795 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_PATCH="patch "
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5808 done
5809 done
5810 IFS=$as_save_IFS
5814 PATCH=$ac_cv_prog_PATCH
5815 if test -n "$PATCH"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5817 $as_echo "$PATCH" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5824 req_avail=yes
5825 if test "$PATCH" = ""; then
5826 req_avail=no
5828 if test "$PATCH" = "no"; then
5829 req_avail=no
5831 if test "$req_avail" = "no"; then
5832 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5841 if test -n "$PYTHON"; then
5842 # If the user set $PYTHON, use it and don't search something else.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5844 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5845 prog="import sys
5846 # split strings by '.' and convert to numeric. Append some zeros
5847 # because we need at least 4 digits for the hex conversion.
5848 # map returns an iterator in Python 3.0 and a list in 2.x
5849 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5850 minverhex = 0
5851 # xrange is not present in Python 3.0 and range returns an iterator
5852 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5853 sys.exit(sys.hexversion < minverhex)"
5854 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5855 ($PYTHON -c "$prog") >&5 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; then :
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5860 $as_echo "yes" >&6; }
5861 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5866 am_display_PYTHON=$PYTHON
5867 else
5868 # Otherwise, try each interpreter until we find one that satisfies
5869 # VERSION.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5871 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5872 if ${am_cv_pathless_PYTHON+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5876 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
5877 test "$am_cv_pathless_PYTHON" = none && break
5878 prog="import sys
5879 # split strings by '.' and convert to numeric. Append some zeros
5880 # because we need at least 4 digits for the hex conversion.
5881 # map returns an iterator in Python 3.0 and a list in 2.x
5882 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5883 minverhex = 0
5884 # xrange is not present in Python 3.0 and range returns an iterator
5885 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5886 sys.exit(sys.hexversion < minverhex)"
5887 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5888 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; then :
5892 break
5894 done
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5897 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5898 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5899 if test "$am_cv_pathless_PYTHON" = none; then
5900 PYTHON=:
5901 else
5902 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5903 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_path_PYTHON+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 case $PYTHON in
5910 [\\/]* | ?:[\\/]*)
5911 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5925 done
5926 done
5927 IFS=$as_save_IFS
5930 esac
5932 PYTHON=$ac_cv_path_PYTHON
5933 if test -n "$PYTHON"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5935 $as_echo "$PYTHON" >&6; }
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5943 am_display_PYTHON=$am_cv_pathless_PYTHON
5947 if test "$PYTHON" = :; then
5948 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5949 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5953 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5954 if ${am_cv_python_version+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5960 $as_echo "$am_cv_python_version" >&6; }
5961 PYTHON_VERSION=$am_cv_python_version
5965 PYTHON_PREFIX='${prefix}'
5967 PYTHON_EXEC_PREFIX='${exec_prefix}'
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5972 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5973 if ${am_cv_python_platform+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5979 $as_echo "$am_cv_python_platform" >&6; }
5980 PYTHON_PLATFORM=$am_cv_python_platform
5983 # Just factor out some code duplication.
5984 am_python_setup_sysconfig="\
5985 import sys
5986 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5987 # with python 3.x. See automake bug#10227.
5988 try:
5989 import sysconfig
5990 except ImportError:
5991 can_use_sysconfig = 0
5992 else:
5993 can_use_sysconfig = 1
5994 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5995 # <https://github.com/pypa/virtualenv/issues/118>
5996 try:
5997 from platform import python_implementation
5998 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5999 can_use_sysconfig = 0
6000 except ImportError:
6001 pass"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6005 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6006 if ${am_cv_python_pythondir+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test "x$prefix" = xNONE
6010 then
6011 am_py_prefix=$ac_default_prefix
6012 else
6013 am_py_prefix=$prefix
6015 am_cv_python_pythondir=`$PYTHON -c "
6016 $am_python_setup_sysconfig
6017 if can_use_sysconfig:
6018 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6019 else:
6020 from distutils import sysconfig
6021 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6022 sys.stdout.write(sitedir)"`
6023 case $am_cv_python_pythondir in
6024 $am_py_prefix*)
6025 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6026 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6029 case $am_py_prefix in
6030 /usr|/System*) ;;
6032 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6034 esac
6036 esac
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6040 $as_echo "$am_cv_python_pythondir" >&6; }
6041 pythondir=$am_cv_python_pythondir
6045 pkgpythondir=\${pythondir}/$PACKAGE
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6049 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6050 if ${am_cv_python_pyexecdir+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test "x$exec_prefix" = xNONE
6054 then
6055 am_py_exec_prefix=$am_py_prefix
6056 else
6057 am_py_exec_prefix=$exec_prefix
6059 am_cv_python_pyexecdir=`$PYTHON -c "
6060 $am_python_setup_sysconfig
6061 if can_use_sysconfig:
6062 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6063 else:
6064 from distutils import sysconfig
6065 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6066 sys.stdout.write(sitedir)"`
6067 case $am_cv_python_pyexecdir in
6068 $am_py_exec_prefix*)
6069 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6070 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6073 case $am_py_exec_prefix in
6074 /usr|/System*) ;;
6076 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6078 esac
6080 esac
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6084 $as_echo "$am_cv_python_pyexecdir" >&6; }
6085 pyexecdir=$am_cv_python_pyexecdir
6089 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6097 # Check whether --enable-libpng-config was given.
6098 if test "${enable_libpng_config+set}" = set; then :
6099 enableval=$enable_libpng_config;
6102 if test "$enable_libpng_config" != "no"; then
6103 # Extract the first word of "libpng-config", so it can be a program name with args.
6104 set dummy libpng-config; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$arosconfig_use_libpngconfig"; then
6111 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6128 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6131 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6132 if test -n "$arosconfig_use_libpngconfig"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6134 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6142 if test "$arosconfig_use_libpngconfig" = "yes"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6144 $as_echo_n "checking libpng-config library... " >&6; }
6145 libpng_incdir="`libpng-config --cflags`"
6146 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6147 libpng="`libpng-config --libs`"
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6149 $as_echo "$libpng" >&6; }
6150 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6153 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6154 if ${ac_cv_lib_png_png_read_png+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 ac_check_lib_save_LIBS=$LIBS
6158 LIBS="-lpng $LIBS"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6162 /* Override any GCC internal prototype to avoid an error.
6163 Use char because int might match the return type of a GCC
6164 builtin and then its argument prototype would still apply. */
6165 #ifdef __cplusplus
6166 extern "C"
6167 #endif
6168 char png_read_png ();
6170 main ()
6172 return png_read_png ();
6174 return 0;
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"; then :
6178 ac_cv_lib_png_png_read_png=yes
6179 else
6180 ac_cv_lib_png_png_read_png=no
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 LIBS=$ac_check_lib_save_LIBS
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6187 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6188 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6189 libpng="-lpng"
6190 else
6191 libpng="no"
6194 if test "$libpng_libextra" != ""; then
6195 if test "$libpng" != "no"; then
6196 libpng_libextra="$libpng_libextra $libpng"
6200 req_avail=yes
6201 if test "$libpng" = ""; then
6202 req_avail=no
6204 if test "$libpng" = "no"; then
6205 req_avail=no
6207 if test "$req_avail" = "no"; then
6208 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6214 FOR=for
6216 IF=if
6218 TEST=test
6220 CMP=cmp
6224 # Check for some includes for the X11 HIDD and the kernel
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6227 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6228 if ${ac_cv_path_GREP+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -z "$GREP"; then
6232 ac_path_GREP_found=false
6233 # Loop through the user's path and test for each of PROGNAME-LIST
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_prog in grep ggrep; do
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6242 as_fn_executable_p "$ac_path_GREP" || continue
6243 # Check for GNU ac_path_GREP and select it if it is found.
6244 # Check for GNU $ac_path_GREP
6245 case `"$ac_path_GREP" --version 2>&1` in
6246 *GNU*)
6247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6249 ac_count=0
6250 $as_echo_n 0123456789 >"conftest.in"
6251 while :
6253 cat "conftest.in" "conftest.in" >"conftest.tmp"
6254 mv "conftest.tmp" "conftest.in"
6255 cp "conftest.in" "conftest.nl"
6256 $as_echo 'GREP' >> "conftest.nl"
6257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6259 as_fn_arith $ac_count + 1 && ac_count=$as_val
6260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6261 # Best one so far, save it but keep looking for a better one
6262 ac_cv_path_GREP="$ac_path_GREP"
6263 ac_path_GREP_max=$ac_count
6265 # 10*(2^10) chars as input seems more than enough
6266 test $ac_count -gt 10 && break
6267 done
6268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6269 esac
6271 $ac_path_GREP_found && break 3
6272 done
6273 done
6274 done
6275 IFS=$as_save_IFS
6276 if test -z "$ac_cv_path_GREP"; then
6277 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6279 else
6280 ac_cv_path_GREP=$GREP
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6285 $as_echo "$ac_cv_path_GREP" >&6; }
6286 GREP="$ac_cv_path_GREP"
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6290 $as_echo_n "checking for egrep... " >&6; }
6291 if ${ac_cv_path_EGREP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6295 then ac_cv_path_EGREP="$GREP -E"
6296 else
6297 if test -z "$EGREP"; then
6298 ac_path_EGREP_found=false
6299 # Loop through the user's path and test for each of PROGNAME-LIST
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_prog in egrep; do
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6308 as_fn_executable_p "$ac_path_EGREP" || continue
6309 # Check for GNU ac_path_EGREP and select it if it is found.
6310 # Check for GNU $ac_path_EGREP
6311 case `"$ac_path_EGREP" --version 2>&1` in
6312 *GNU*)
6313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6315 ac_count=0
6316 $as_echo_n 0123456789 >"conftest.in"
6317 while :
6319 cat "conftest.in" "conftest.in" >"conftest.tmp"
6320 mv "conftest.tmp" "conftest.in"
6321 cp "conftest.in" "conftest.nl"
6322 $as_echo 'EGREP' >> "conftest.nl"
6323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6325 as_fn_arith $ac_count + 1 && ac_count=$as_val
6326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6327 # Best one so far, save it but keep looking for a better one
6328 ac_cv_path_EGREP="$ac_path_EGREP"
6329 ac_path_EGREP_max=$ac_count
6331 # 10*(2^10) chars as input seems more than enough
6332 test $ac_count -gt 10 && break
6333 done
6334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6335 esac
6337 $ac_path_EGREP_found && break 3
6338 done
6339 done
6340 done
6341 IFS=$as_save_IFS
6342 if test -z "$ac_cv_path_EGREP"; then
6343 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6345 else
6346 ac_cv_path_EGREP=$EGREP
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6352 $as_echo "$ac_cv_path_EGREP" >&6; }
6353 EGREP="$ac_cv_path_EGREP"
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6357 $as_echo_n "checking for ANSI C header files... " >&6; }
6358 if ${ac_cv_header_stdc+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <stdlib.h>
6364 #include <stdarg.h>
6365 #include <string.h>
6366 #include <float.h>
6369 main ()
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 ac_cv_header_stdc=yes
6378 else
6379 ac_cv_header_stdc=no
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 if test $ac_cv_header_stdc = yes; then
6384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <string.h>
6389 _ACEOF
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 $EGREP "memchr" >/dev/null 2>&1; then :
6393 else
6394 ac_cv_header_stdc=no
6396 rm -f conftest*
6400 if test $ac_cv_header_stdc = yes; then
6401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 #include <stdlib.h>
6406 _ACEOF
6407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408 $EGREP "free" >/dev/null 2>&1; then :
6410 else
6411 ac_cv_header_stdc=no
6413 rm -f conftest*
6417 if test $ac_cv_header_stdc = yes; then
6418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6419 if test "$cross_compiling" = yes; then :
6421 else
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 #include <ctype.h>
6425 #include <stdlib.h>
6426 #if ((' ' & 0x0FF) == 0x020)
6427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6429 #else
6430 # define ISLOWER(c) \
6431 (('a' <= (c) && (c) <= 'i') \
6432 || ('j' <= (c) && (c) <= 'r') \
6433 || ('s' <= (c) && (c) <= 'z'))
6434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6435 #endif
6437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6439 main ()
6441 int i;
6442 for (i = 0; i < 256; i++)
6443 if (XOR (islower (i), ISLOWER (i))
6444 || toupper (i) != TOUPPER (i))
6445 return 2;
6446 return 0;
6448 _ACEOF
6449 if ac_fn_c_try_run "$LINENO"; then :
6451 else
6452 ac_cv_header_stdc=no
6454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6455 conftest.$ac_objext conftest.beam conftest.$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6461 $as_echo "$ac_cv_header_stdc" >&6; }
6462 if test $ac_cv_header_stdc = yes; then
6464 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6470 inttypes.h stdint.h unistd.h
6471 do :
6472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6473 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6475 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6476 cat >>confdefs.h <<_ACEOF
6477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6478 _ACEOF
6482 done
6485 for ac_header in sys/ipc.h sys/shm.h \
6486 sys/mmap.h sys/mman.h sysexits.h \
6487 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6489 do :
6490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6493 cat >>confdefs.h <<_ACEOF
6494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6495 _ACEOF
6499 done
6502 for ac_header in sys/mount.h
6503 do :
6504 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6506 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6507 cat >>confdefs.h <<_ACEOF
6508 #define HAVE_SYS_MOUNT_H 1
6509 _ACEOF
6513 done
6516 ac_header_dirent=no
6517 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6518 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6520 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6521 if eval \${$as_ac_Header+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 #include <sys/types.h>
6527 #include <$ac_hdr>
6530 main ()
6532 if ((DIR *) 0)
6533 return 0;
6535 return 0;
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 eval "$as_ac_Header=yes"
6540 else
6541 eval "$as_ac_Header=no"
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 eval ac_res=\$$as_ac_Header
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6547 $as_echo "$ac_res" >&6; }
6548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6551 _ACEOF
6553 ac_header_dirent=$ac_hdr; break
6556 done
6557 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6558 if test $ac_header_dirent = dirent.h; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6560 $as_echo_n "checking for library containing opendir... " >&6; }
6561 if ${ac_cv_search_opendir+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 ac_func_search_save_LIBS=$LIBS
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6568 /* Override any GCC internal prototype to avoid an error.
6569 Use char because int might match the return type of a GCC
6570 builtin and then its argument prototype would still apply. */
6571 #ifdef __cplusplus
6572 extern "C"
6573 #endif
6574 char opendir ();
6576 main ()
6578 return opendir ();
6580 return 0;
6582 _ACEOF
6583 for ac_lib in '' dir; do
6584 if test -z "$ac_lib"; then
6585 ac_res="none required"
6586 else
6587 ac_res=-l$ac_lib
6588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6590 if ac_fn_c_try_link "$LINENO"; then :
6591 ac_cv_search_opendir=$ac_res
6593 rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext
6595 if ${ac_cv_search_opendir+:} false; then :
6596 break
6598 done
6599 if ${ac_cv_search_opendir+:} false; then :
6601 else
6602 ac_cv_search_opendir=no
6604 rm conftest.$ac_ext
6605 LIBS=$ac_func_search_save_LIBS
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6608 $as_echo "$ac_cv_search_opendir" >&6; }
6609 ac_res=$ac_cv_search_opendir
6610 if test "$ac_res" != no; then :
6611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6617 $as_echo_n "checking for library containing opendir... " >&6; }
6618 if ${ac_cv_search_opendir+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 ac_func_search_save_LIBS=$LIBS
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6625 /* Override any GCC internal prototype to avoid an error.
6626 Use char because int might match the return type of a GCC
6627 builtin and then its argument prototype would still apply. */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 char opendir ();
6633 main ()
6635 return opendir ();
6637 return 0;
6639 _ACEOF
6640 for ac_lib in '' x; do
6641 if test -z "$ac_lib"; then
6642 ac_res="none required"
6643 else
6644 ac_res=-l$ac_lib
6645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6647 if ac_fn_c_try_link "$LINENO"; then :
6648 ac_cv_search_opendir=$ac_res
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext
6652 if ${ac_cv_search_opendir+:} false; then :
6653 break
6655 done
6656 if ${ac_cv_search_opendir+:} false; then :
6658 else
6659 ac_cv_search_opendir=no
6661 rm conftest.$ac_ext
6662 LIBS=$ac_func_search_save_LIBS
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6665 $as_echo "$ac_cv_search_opendir" >&6; }
6666 ac_res=$ac_cv_search_opendir
6667 if test "$ac_res" != no; then :
6668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6675 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6676 if ${ac_cv_header_stat_broken+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <sys/types.h>
6682 #include <sys/stat.h>
6684 #if defined S_ISBLK && defined S_IFDIR
6685 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6686 #endif
6688 #if defined S_ISBLK && defined S_IFCHR
6689 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6690 #endif
6692 #if defined S_ISLNK && defined S_IFREG
6693 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6694 #endif
6696 #if defined S_ISSOCK && defined S_IFREG
6697 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6698 #endif
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 ac_cv_header_stat_broken=no
6703 else
6704 ac_cv_header_stat_broken=yes
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6709 $as_echo "$ac_cv_header_stat_broken" >&6; }
6710 if test $ac_cv_header_stat_broken = yes; then
6712 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6717 $as_echo_n "checking for ANSI C header files... " >&6; }
6718 if ${ac_cv_header_stdc+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 #include <stdlib.h>
6724 #include <stdarg.h>
6725 #include <string.h>
6726 #include <float.h>
6729 main ()
6733 return 0;
6735 _ACEOF
6736 if ac_fn_c_try_compile "$LINENO"; then :
6737 ac_cv_header_stdc=yes
6738 else
6739 ac_cv_header_stdc=no
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 if test $ac_cv_header_stdc = yes; then
6744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <string.h>
6749 _ACEOF
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "memchr" >/dev/null 2>&1; then :
6753 else
6754 ac_cv_header_stdc=no
6756 rm -f conftest*
6760 if test $ac_cv_header_stdc = yes; then
6761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 #include <stdlib.h>
6766 _ACEOF
6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6768 $EGREP "free" >/dev/null 2>&1; then :
6770 else
6771 ac_cv_header_stdc=no
6773 rm -f conftest*
6777 if test $ac_cv_header_stdc = yes; then
6778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6779 if test "$cross_compiling" = yes; then :
6781 else
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <ctype.h>
6785 #include <stdlib.h>
6786 #if ((' ' & 0x0FF) == 0x020)
6787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6789 #else
6790 # define ISLOWER(c) \
6791 (('a' <= (c) && (c) <= 'i') \
6792 || ('j' <= (c) && (c) <= 'r') \
6793 || ('s' <= (c) && (c) <= 'z'))
6794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6795 #endif
6797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6799 main ()
6801 int i;
6802 for (i = 0; i < 256; i++)
6803 if (XOR (islower (i), ISLOWER (i))
6804 || toupper (i) != TOUPPER (i))
6805 return 2;
6806 return 0;
6808 _ACEOF
6809 if ac_fn_c_try_run "$LINENO"; then :
6811 else
6812 ac_cv_header_stdc=no
6814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6815 conftest.$ac_objext conftest.beam conftest.$ac_ext
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6821 $as_echo "$ac_cv_header_stdc" >&6; }
6822 if test $ac_cv_header_stdc = yes; then
6824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6829 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6830 if ${ac_cv_header_sys_wait_h+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <sys/types.h>
6836 #include <sys/wait.h>
6837 #ifndef WEXITSTATUS
6838 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6839 #endif
6840 #ifndef WIFEXITED
6841 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6842 #endif
6845 main ()
6847 int s;
6848 wait (&s);
6849 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6851 return 0;
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855 ac_cv_header_sys_wait_h=yes
6856 else
6857 ac_cv_header_sys_wait_h=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6862 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6863 if test $ac_cv_header_sys_wait_h = yes; then
6865 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6870 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6871 if ${ac_cv_header_time+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #include <sys/types.h>
6877 #include <sys/time.h>
6878 #include <time.h>
6881 main ()
6883 if ((struct tm *) 0)
6884 return 0;
6886 return 0;
6888 _ACEOF
6889 if ac_fn_c_try_compile "$LINENO"; then :
6890 ac_cv_header_time=yes
6891 else
6892 ac_cv_header_time=no
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6897 $as_echo "$ac_cv_header_time" >&6; }
6898 if test $ac_cv_header_time = yes; then
6900 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6904 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6905 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6909 _ACEOF
6912 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6917 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6918 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6922 _ACEOF
6925 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6927 else
6928 case " $LIBOBJS " in
6929 *" fileblocks.$ac_objext "* ) ;;
6930 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6932 esac
6937 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6938 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6940 cat >>confdefs.h <<_ACEOF
6941 #define HAVE_STRUCT_STAT_ST_RDEV 1
6942 _ACEOF
6945 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6952 if ${ac_cv_struct_tm+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <sys/types.h>
6958 #include <time.h>
6961 main ()
6963 struct tm tm;
6964 int *p = &tm.tm_sec;
6965 return !p;
6967 return 0;
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"; then :
6971 ac_cv_struct_tm=time.h
6972 else
6973 ac_cv_struct_tm=sys/time.h
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6978 $as_echo "$ac_cv_struct_tm" >&6; }
6979 if test $ac_cv_struct_tm = sys/time.h; then
6981 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6985 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6986 #include <$ac_cv_struct_tm>
6989 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6991 cat >>confdefs.h <<_ACEOF
6992 #define HAVE_STRUCT_TM_TM_ZONE 1
6993 _ACEOF
6998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7000 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7002 else
7003 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7005 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7006 ac_have_decl=1
7007 else
7008 ac_have_decl=0
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_DECL_TZNAME $ac_have_decl
7013 _ACEOF
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7016 $as_echo_n "checking for tzname... " >&6; }
7017 if ${ac_cv_var_tzname+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 #include <time.h>
7023 #if !HAVE_DECL_TZNAME
7024 extern char *tzname[];
7025 #endif
7028 main ()
7030 return tzname[0][0];
7032 return 0;
7034 _ACEOF
7035 if ac_fn_c_try_link "$LINENO"; then :
7036 ac_cv_var_tzname=yes
7037 else
7038 ac_cv_var_tzname=no
7040 rm -f core conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7044 $as_echo "$ac_cv_var_tzname" >&6; }
7045 if test $ac_cv_var_tzname = yes; then
7047 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7052 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7053 if test "x$ac_cv_type_off_t" = xyes; then :
7055 else
7057 cat >>confdefs.h <<_ACEOF
7058 #define off_t long int
7059 _ACEOF
7063 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7064 if test "x$ac_cv_type_pid_t" = xyes; then :
7066 else
7068 cat >>confdefs.h <<_ACEOF
7069 #define pid_t int
7070 _ACEOF
7074 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7075 if test "x$ac_cv_type_size_t" = xyes; then :
7077 else
7079 cat >>confdefs.h <<_ACEOF
7080 #define size_t unsigned int
7081 _ACEOF
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7086 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7087 if ${ac_cv_type_uid_t+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #include <sys/types.h>
7094 _ACEOF
7095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7096 $EGREP "uid_t" >/dev/null 2>&1; then :
7097 ac_cv_type_uid_t=yes
7098 else
7099 ac_cv_type_uid_t=no
7101 rm -f conftest*
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7105 $as_echo "$ac_cv_type_uid_t" >&6; }
7106 if test $ac_cv_type_uid_t = no; then
7108 $as_echo "#define uid_t int" >>confdefs.h
7111 $as_echo "#define gid_t int" >>confdefs.h
7116 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7117 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7119 cat >>confdefs.h <<_ACEOF
7120 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7121 _ACEOF
7127 # Look for some functions
7128 for ac_func in getpagesize kqueue statfs statvfs \
7129 clone kse_create rfork_thread thr_create sa_register \
7130 getcontext makecontext setcontext sigaltstack swapcontext
7131 do :
7132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7134 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7135 cat >>confdefs.h <<_ACEOF
7136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7137 _ACEOF
7140 done
7146 for ac_header in $ac_header_list
7147 do :
7148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7149 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7152 cat >>confdefs.h <<_ACEOF
7153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7154 _ACEOF
7158 done
7167 for ac_func in getpagesize
7168 do :
7169 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7170 if test "x$ac_cv_func_getpagesize" = xyes; then :
7171 cat >>confdefs.h <<_ACEOF
7172 #define HAVE_GETPAGESIZE 1
7173 _ACEOF
7176 done
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7179 $as_echo_n "checking for working mmap... " >&6; }
7180 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test "$cross_compiling" = yes; then :
7184 ac_cv_func_mmap_fixed_mapped=no
7185 else
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 $ac_includes_default
7189 /* malloc might have been renamed as rpl_malloc. */
7190 #undef malloc
7192 /* Thanks to Mike Haertel and Jim Avera for this test.
7193 Here is a matrix of mmap possibilities:
7194 mmap private not fixed
7195 mmap private fixed at somewhere currently unmapped
7196 mmap private fixed at somewhere already mapped
7197 mmap shared not fixed
7198 mmap shared fixed at somewhere currently unmapped
7199 mmap shared fixed at somewhere already mapped
7200 For private mappings, we should verify that changes cannot be read()
7201 back from the file, nor mmap's back from the file at a different
7202 address. (There have been systems where private was not correctly
7203 implemented like the infamous i386 svr4.0, and systems where the
7204 VM page cache was not coherent with the file system buffer cache
7205 like early versions of FreeBSD and possibly contemporary NetBSD.)
7206 For shared mappings, we should conversely verify that changes get
7207 propagated back to all the places they're supposed to be.
7209 Grep wants private fixed already mapped.
7210 The main things grep needs to know about mmap are:
7211 * does it exist and is it safe to write into the mmap'd area
7212 * how to use it (BSD variants) */
7214 #include <fcntl.h>
7215 #include <sys/mman.h>
7217 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7218 char *malloc ();
7219 #endif
7221 /* This mess was copied from the GNU getpagesize.h. */
7222 #ifndef HAVE_GETPAGESIZE
7223 # ifdef _SC_PAGESIZE
7224 # define getpagesize() sysconf(_SC_PAGESIZE)
7225 # else /* no _SC_PAGESIZE */
7226 # ifdef HAVE_SYS_PARAM_H
7227 # include <sys/param.h>
7228 # ifdef EXEC_PAGESIZE
7229 # define getpagesize() EXEC_PAGESIZE
7230 # else /* no EXEC_PAGESIZE */
7231 # ifdef NBPG
7232 # define getpagesize() NBPG * CLSIZE
7233 # ifndef CLSIZE
7234 # define CLSIZE 1
7235 # endif /* no CLSIZE */
7236 # else /* no NBPG */
7237 # ifdef NBPC
7238 # define getpagesize() NBPC
7239 # else /* no NBPC */
7240 # ifdef PAGESIZE
7241 # define getpagesize() PAGESIZE
7242 # endif /* PAGESIZE */
7243 # endif /* no NBPC */
7244 # endif /* no NBPG */
7245 # endif /* no EXEC_PAGESIZE */
7246 # else /* no HAVE_SYS_PARAM_H */
7247 # define getpagesize() 8192 /* punt totally */
7248 # endif /* no HAVE_SYS_PARAM_H */
7249 # endif /* no _SC_PAGESIZE */
7251 #endif /* no HAVE_GETPAGESIZE */
7254 main ()
7256 char *data, *data2, *data3;
7257 const char *cdata2;
7258 int i, pagesize;
7259 int fd, fd2;
7261 pagesize = getpagesize ();
7263 /* First, make a file with some known garbage in it. */
7264 data = (char *) malloc (pagesize);
7265 if (!data)
7266 return 1;
7267 for (i = 0; i < pagesize; ++i)
7268 *(data + i) = rand ();
7269 umask (0);
7270 fd = creat ("conftest.mmap", 0600);
7271 if (fd < 0)
7272 return 2;
7273 if (write (fd, data, pagesize) != pagesize)
7274 return 3;
7275 close (fd);
7277 /* Next, check that the tail of a page is zero-filled. File must have
7278 non-zero length, otherwise we risk SIGBUS for entire page. */
7279 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7280 if (fd2 < 0)
7281 return 4;
7282 cdata2 = "";
7283 if (write (fd2, cdata2, 1) != 1)
7284 return 5;
7285 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7286 if (data2 == MAP_FAILED)
7287 return 6;
7288 for (i = 0; i < pagesize; ++i)
7289 if (*(data2 + i))
7290 return 7;
7291 close (fd2);
7292 if (munmap (data2, pagesize))
7293 return 8;
7295 /* Next, try to mmap the file at a fixed address which already has
7296 something else allocated at it. If we can, also make sure that
7297 we see the same garbage. */
7298 fd = open ("conftest.mmap", O_RDWR);
7299 if (fd < 0)
7300 return 9;
7301 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7302 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7303 return 10;
7304 for (i = 0; i < pagesize; ++i)
7305 if (*(data + i) != *(data2 + i))
7306 return 11;
7308 /* Finally, make sure that changes to the mapped area do not
7309 percolate back to the file as seen by read(). (This is a bug on
7310 some variants of i386 svr4.0.) */
7311 for (i = 0; i < pagesize; ++i)
7312 *(data2 + i) = *(data2 + i) + 1;
7313 data3 = (char *) malloc (pagesize);
7314 if (!data3)
7315 return 12;
7316 if (read (fd, data3, pagesize) != pagesize)
7317 return 13;
7318 for (i = 0; i < pagesize; ++i)
7319 if (*(data + i) != *(data3 + i))
7320 return 14;
7321 close (fd);
7322 return 0;
7324 _ACEOF
7325 if ac_fn_c_try_run "$LINENO"; then :
7326 ac_cv_func_mmap_fixed_mapped=yes
7327 else
7328 ac_cv_func_mmap_fixed_mapped=no
7330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7331 conftest.$ac_objext conftest.beam conftest.$ac_ext
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7336 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7337 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7339 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7342 rm -f conftest.mmap conftest.txt
7345 #-----------------------------------------------------------------------------
7348 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7349 # it switched on by default, and we use the host compiler, so it compiles AROS
7350 # code with this enabled resulting in link failures as we don't have support
7351 # for it.
7353 # We use two methods to disable it. For the host compiler (used to compile
7354 # some hosted modules), we test to see if the compiler supports stack
7355 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7356 # work on all platforms.
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7360 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7361 save_cflags="$CFLAGS"
7362 CFLAGS="$CFLAGS -fno-stack-protector"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7367 main ()
7371 return 0;
7373 _ACEOF
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375 use_no_stack_protector="yes"
7376 else
7377 use_no_stack_protector="no"
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7381 $as_echo "$use_no_stack_protector" >&6; }
7382 if test "x-$use_no_stack_protector" = "x-yes" ; then
7383 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7385 CFLAGS="$save_cflags"
7387 #-----------------------------------------------------------------------------
7389 # Disable pointer-signedness warnings if the compiler recognises the option
7390 # (this only works for the host compiler at the moment)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7393 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7394 save_cflags="$CFLAGS"
7395 CFLAGS="$CFLAGS -Wno-pointer-sign"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7400 main ()
7404 return 0;
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408 use_no_sign_warning="yes"
7409 else
7410 use_no_sign_warning="no"
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7414 $as_echo "$use_no_sign_warning" >&6; }
7415 if test "x-$use_no_sign_warning" = "x-yes" ; then
7416 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7418 CFLAGS="$save_cflags"
7420 #-----------------------------------------------------------------------------
7422 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7425 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7426 save_cflags="$CFLAGS"
7427 CFLAGS="$CFLAGS -fgnu89-inline"
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7432 main ()
7436 return 0;
7438 _ACEOF
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 use_gnu89_inline="yes"
7441 else
7442 use_gnu89_inline="no"
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7446 $as_echo "$use_gnu89_inline" >&6; }
7447 if test "x-$use_gnu89_inline" = "x-yes" ; then
7448 gnu89_inline="-fgnu89-inline"
7450 CFLAGS="$save_cflags"
7453 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7454 # On GCC >= 4.0 -iquote should be used
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7457 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7458 CFLAGS="$CFLAGS -iquote."
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 has_iquote="yes"
7472 else
7473 has_iquote="no"
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7477 $as_echo "$has_iquote" >&6; }
7478 if test "x-$has_iquote" = "x-yes" ; then
7479 host_cflags_iquote=-iquote
7480 host_cflags_iquote_end=
7481 else
7482 host_cflags_iquote=-I
7483 host_cflags_iquote_end=-I-
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7487 $as_echo "$as_me: Performing target configuration..." >&6;}
7490 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7492 toolchain_needs_sysroot=no
7494 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7495 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7496 aros_config_ldflags=""
7498 aros_shared_default=yes
7500 aros_shared_cflags="-fPIC"
7501 aros_shared_aflags=""
7502 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7503 aros_kernel_ldflags="-Wl,-rpath,./lib"
7505 aros_kernel_ar_flags="cr"
7506 aros_target_ar_flags="cr"
7507 aros_target_nm_flags="-C -ul"
7508 aros_target_strip_flags="--strip-unneeded -R.comment"
7510 aros_compiler_libs=
7511 aros_arch_libs=
7513 aros_target_genmap="-Wl,-Map -Xlinker"
7515 # Native flavour stuff
7516 aros_serial_debug="0"
7518 # Palm native flavour stuff
7519 aros_palm_debug_hack="0"
7521 # Unix flavour stuff
7522 aros_nesting_supervisor="0"
7524 # Collect-aros stuff: "-ius" to ignore undefined symbols
7525 ignore_undefined_symbols=""
7527 # Check for X11 by default
7528 need_x11="auto"
7530 host_x_gfx=no
7531 host_sdl_gfx=no
7532 host_android_gfx=no
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7536 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7538 # Check whether --with-toolchain was given.
7539 if test "${with_toolchain+set}" = set; then :
7540 withval=$with_toolchain; aros_toolchain="$withval"
7541 else
7542 aros_toolchain="gnu"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7546 $as_echo "$aros_toolchain" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7550 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7551 # Check whether --enable-lto was given.
7552 if test "${enable_lto+set}" = set; then :
7553 enableval=$enable_lto; aros_config_lto="$enableval"
7554 else
7555 aros_config_lto="no"
7558 if test "$aros_config_lto" != "no"; then
7559 aros_config_lto="yes"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7562 $as_echo "$aros_config_lto" >&6; }
7564 use_ld_wrapper=yes
7566 case "$aros_toolchain" in
7567 *llvm*)
7568 # toolchain_needs_sysroot=yes
7569 toolchain_c_compiler="clang"
7570 toolchain_cxx_compiler="clang++"
7571 toolchain_cpp_preprocessor="clang -E"
7572 toolchain_ld="ld.lld"
7573 aros_ld="ld"
7574 toolchain_as="llvm-as"
7575 toolchain_ar="llvm-ar"
7576 toolchain_ranlib="llvm-ranlib"
7577 toolchain_nm="llvm-nm"
7578 toolchain_strip="true"
7579 toolchain_objcopy="llvm-objcopy"
7580 toolchain_objdump="llvm-objdump"
7582 *gnu*)
7583 toolchain_c_compiler="gcc"
7584 toolchain_cxx_compiler="g++"
7585 toolchain_cpp_preprocessor="gcc -E"
7586 toolchain_as="as"
7587 aros_ld="ld"
7588 if test "$aros_config_lto" != "yes"; then
7589 toolchain_ld="ld"
7590 toolchain_ar="ar"
7591 toolchain_ranlib="ranlib"
7592 toolchain_nm="nm"
7593 else
7594 toolchain_ld="ld.bfd"
7595 toolchain_ar="gcc-ar"
7596 toolchain_ranlib="gcc-ranlib"
7597 toolchain_nm="gcc-nm"
7599 toolchain_strip="strip"
7600 toolchain_objcopy="objcopy"
7601 toolchain_objdump="objdump"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7605 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7606 toolchain_c_compiler="cc"
7607 toolchain_cxx_compiler="c++"
7608 toolchain_cpp_preprocessor="cpp"
7609 toolchain_ld="ld"
7610 aros_ld="ld"
7611 toolchain_as="as"
7612 toolchain_ar="ar"
7613 toolchain_ranlib="ranlib"
7614 toolchain_nm="nm"
7615 toolchain_strip="strip"
7616 toolchain_objcopy="objcopy"
7617 toolchain_objdump="objdump"
7619 esac
7621 #-----------------------------------------------------------------------------
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7624 $as_echo_n "checking which type of build to do... " >&6; }
7625 # Check whether --enable-build_type was given.
7626 if test "${enable_build_type+set}" = set; then :
7627 enableval=$enable_build_type; build_type=$enableval
7628 else
7629 build_type="personal"
7633 if test "$build_type" = "nightly"; then
7634 build_type_string="NIGHTLY"
7635 elif test "$build_type" = "snapshot"; then
7636 build_type_string="SNAPSHOT"
7637 elif test "$build_type" = "milestone"; then
7638 build_type_string="MILESTONE"
7639 elif test "$build_type" = "release"; then
7640 build_type_string="RELEASE"
7641 else
7642 build_type_string="PERSONAL"
7643 build_type="personal"
7646 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7649 $as_echo "$build_type" >&6; }
7651 #-----------------------------------------------------------------------------
7652 all_debug_types="messages stack modules mungwall symbols"
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7655 $as_echo_n "checking which debug types to enable... " >&6; }
7656 # Check whether --enable-debug was given.
7657 if test "${enable_debug+set}" = set; then :
7658 enableval=$enable_debug; debug="$enableval"
7659 else
7660 debug=""
7664 if test "$debug" = "" -o "$debug" = "no"; then
7665 debug="none"
7666 elif test "$debug" = "yes"; then
7667 debug="all"
7670 if test "$debug" = "all" ; then
7671 debug="messages stack modules symbols"
7672 for d in $all_debug_types; do
7673 export aros_${d}_debug="1"
7674 done
7675 else
7676 for d in $all_debug_types; do
7677 export aros_${d}_debug="0"
7678 done
7681 if test "$debug" != "none"; then
7682 debug=`echo $debug | sed s/,/\ /g`
7683 for d in $debug; do
7684 found="0"
7685 for d2 in $all_debug_types; do
7686 if test "$d2" = "$d"; then
7687 found="1"
7688 break
7690 done
7691 if test "$found" = "0"; then
7692 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7694 export aros_${d}_debug="1"
7695 done
7696 aros_debug="yes"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7699 $as_echo "$debug" >&6; }
7701 if test "$aros_messages_debug" = "1"; then
7702 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7703 else
7704 aros_messages_debug=""
7706 if test "$aros_symbols_debug" = "1"; then
7707 aros_symbols_debug="-g"
7708 else
7709 aros_symbols_debug=""
7712 # These are the flags to pass when compiling debugged programs
7713 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7714 aros_debug_aflags=""
7715 aros_debug_ldflags="$aros_symbols_debug"
7717 #-----------------------------------------------------------------------------
7718 # Checking for distcc and ccache.
7720 # Always apply the transforms in this particular order. Basically you should
7721 # always run 'ccache distcc compiler' in that order for the best performance.
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7724 $as_echo_n "checking whether to enable distcc... " >&6; }
7725 # Check whether --enable-distcc was given.
7726 if test "${enable_distcc+set}" = set; then :
7727 enableval=$enable_distcc; distcc="$enableval"
7728 else
7729 distcc="no"
7732 if test "$distcc" != "" -a "$distcc" != "no"; then
7733 # AC_CHECK_PROG will print out the result in this case
7734 # Extract the first word of "distcc", so it can be a program name with args.
7735 set dummy distcc; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_path_DISTCC+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 case $DISTCC in
7742 [\\/]* | ?:[\\/]*)
7743 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7757 done
7758 done
7759 IFS=$as_save_IFS
7761 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7763 esac
7765 DISTCC=$ac_cv_path_DISTCC
7766 if test -n "$DISTCC"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7768 $as_echo "$DISTCC" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7781 $as_echo_n "checking whether to enable ccache... " >&6; }
7782 # Check whether --enable-ccache was given.
7783 if test "${enable_ccache+set}" = set; then :
7784 enableval=$enable_ccache; ccache="$enableval"
7785 else
7786 ccache="no"
7789 if test "$ccache" != "" -a "$ccache" != "no"; then
7790 # AC_CHECK_PROG will print out the result in this case
7791 # Extract the first word of "ccache", so it can be a program name with args.
7792 set dummy ccache; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_CCACHE+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$CCACHE"; then
7799 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_CCACHE="ccache"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 CCACHE=$ac_cv_prog_CCACHE
7819 if test -n "$CCACHE"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7821 $as_echo "$CCACHE" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7833 #-----------------------------------------------------------------------------
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7835 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7837 # Check whether --with-kernel-gcc-version was given.
7838 if test "${with_kernel_gcc_version+set}" = set; then :
7839 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7840 else
7841 kernel_tool_version=""
7844 if test "$kernel_tool_version" != "" ; then
7845 msg_result=$kernel_tool_version
7846 else
7847 msg_result="default"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7850 $as_echo "$msg_result" >&6; }
7852 #-----------------------------------------------------------------------------
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7854 $as_echo_n "checking what optimization flags to use... " >&6; }
7856 # Check whether --with-optimization was given.
7857 if test "${with_optimization+set}" = set; then :
7858 withval=$with_optimization; optimization="$withval"
7859 else
7860 optimization="unknown"
7863 if test "$optimization" = "unknown"; then
7864 if test "$debug" != "none"; then
7865 optimization="-O0"
7866 else
7867 optimization="-O2"
7870 aros_optimization_cflags="$optimization"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7872 $as_echo "$optimization" >&6; }
7874 paranoia_default=yes
7875 #-----------------------------------------------------------------------------
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7877 $as_echo_n "checking which paranoia flags to use... " >&6; }
7879 # Check whether --with-paranoia was given.
7880 if test "${with_paranoia+set}" = set; then :
7881 withval=$with_paranoia; paranoia_flags="$withval"
7882 else
7883 paranoia_flags="$paranoia_default"
7886 if test "$paranoia_flags" = "no"; then
7887 paranoia_flags=""
7888 msg_result="none"
7889 else
7890 if test "$paranoia_flags" = "yes"; then
7891 paranoia_flags="-Wall -Werror"
7893 msg_result="$paranoia_flags"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7896 $as_echo "$msg_result" >&6; }
7897 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7899 #-----------------------------------------------------------------------------
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7901 $as_echo_n "checking what target variant to enable... " >&6; }
7902 # Check whether --enable-target_variant was given.
7903 if test "${enable_target_variant+set}" = set; then :
7904 enableval=$enable_target_variant; target_variant=$enableval
7905 else
7906 target_variant=""
7909 if test "$target_variant" = ""; then
7910 aros_target_variant=""
7911 aros_target_suffix=""
7912 enableval="none"
7913 else
7914 aros_target_variant="$target_variant"
7915 aros_target_suffix="-$target_variant"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7918 $as_echo "$enableval" >&6; }
7920 #-----------------------------------------------------------------------------
7921 # Target-specific defaults. You can override then on a per-target basis.
7923 # Bootloader name. Currently used by PC target.
7924 target_bootloader="none"
7925 PLATFORM_EXECSMP=
7926 ENABLE_EXECSMP=
7928 #-----------------------------------------------------------------------------
7929 # Additional options for some specific targets
7931 case "$aros_target_variant" in
7932 ios)
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7934 $as_echo_n "checking XCode path... " >&6; }
7936 # Check whether --with-xcode was given.
7937 if test "${with_xcode+set}" = set; then :
7938 withval=$with_xcode; aros_xcode_path="$withval"
7939 else
7940 aros_xcode_path="/Developer"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7944 $as_echo "$aros_xcode_path" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7947 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7949 # Check whether --with-sdk-version was given.
7950 if test "${with_sdk_version+set}" = set; then :
7951 withval=$with_sdk_version; aros_sdk_version="$withval"
7952 else
7953 aros_sdk_version="4.1"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7957 $as_echo "$aros_sdk_version" >&6; }
7961 "android")
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7963 $as_echo_n "checking Android SDK path... " >&6; }
7965 # Check whether --with-sdk was given.
7966 if test "${with_sdk+set}" = set; then :
7967 withval=$with_sdk; aros_android_sdk="$withval"
7968 else
7969 aros_android_sdk=$default_android_sdk
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7973 $as_echo "$aros_android_sdk" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7976 $as_echo_n "checking Android NDK path... " >&6; }
7978 # Check whether --with-ndk was given.
7979 if test "${with_ndk+set}" = set; then :
7980 withval=$with_ndk; aros_android_ndk="$withval"
7981 else
7982 aros_android_ndk="none"
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7986 $as_echo "$aros_android_ndk" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7989 $as_echo_n "checking what Android SDK version to use... " >&6; }
7991 # Check whether --with-sdk-version was given.
7992 if test "${with_sdk_version+set}" = set; then :
7993 withval=$with_sdk_version; aros_sdk_version="$withval"
7994 else
7995 aros_sdk_version="12"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7999 $as_echo "$aros_sdk_version" >&6; }
8001 aros_android_level=android-$aros_sdk_version
8002 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8003 echo "Platform $aros_android_level is not installed in your SDK"
8004 echo "Use --with-sdk-version=<API level number> to select another platform version"
8005 echo "You can check what plaform versions are installed in your SDK"
8006 echo "by examining contents of $aros_android_sdk/platforms directory"
8007 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8010 export PATH="$aros_android_sdk/tools:$PATH"
8011 # Extract the first word of "$android_tool", so it can be a program name with args.
8012 set dummy $android_tool; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_path_android_tool+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 case $android_tool in
8019 [\\/]* | ?:[\\/]*)
8020 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8034 done
8035 done
8036 IFS=$as_save_IFS
8039 esac
8041 android_tool=$ac_cv_path_android_tool
8042 if test -n "$android_tool"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8044 $as_echo "$android_tool" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8051 req_avail=yes
8052 if test "$android_tool" = ""; then
8053 req_avail=no
8055 if test "$android_tool" = "no"; then
8056 req_avail=no
8058 if test "$req_avail" = "no"; then
8059 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8062 if test "$aros_android_ndk" != "none"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8064 $as_echo_n "checking what Android NDK version to use... " >&6; }
8066 # Check whether --with-ndk-version was given.
8067 if test "${with_ndk_version+set}" = set; then :
8068 withval=$with_ndk_version; aros_ndk_version="$withval"
8069 else
8070 aros_ndk_version="9"
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8074 $as_echo "$aros_ndk_version" >&6; }
8077 # Extract the first word of "ant", so it can be a program name with args.
8078 set dummy ant; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_path_ant+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 case $ant in
8085 [\\/]* | ?:[\\/]*)
8086 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8102 IFS=$as_save_IFS
8105 esac
8107 ant=$ac_cv_path_ant
8108 if test -n "$ant"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8110 $as_echo "$ant" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8117 if test "$ant" = ""; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8119 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8123 $as_echo_n "checking Build debug or release apk... " >&6; }
8125 # Check whether --with-apk-version was given.
8126 if test "${with_apk_version+set}" = set; then :
8127 withval=$with_apk_version; aros_android_antapk=$withval
8128 else
8129 aros_android_antapk=release
8132 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8133 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8136 $as_echo "$aros_android_antapk" >&6; }
8138 if test "$host_os" = "mingw32"; then
8139 android_tool="cmd //c $android_tool"
8142 need_dlopen="no"
8145 esac
8147 #-----------------------------------------------------------------------------
8148 # External toolchains
8149 kernel_tool_prefix="none"
8150 aros_tool_prefix="none"
8151 elf_tool_prefix="${target_cpu}-elf-"
8153 # This is the target configuration switch.
8154 case "$target_os" in
8155 linux*)
8156 aros_target_arch="linux"
8157 aros_target_family="unix"
8158 case "$target_cpu" in
8159 *m68k*)
8160 aros_target_cpu="m68k"
8161 aros_object_format="m68kelf"
8162 aros_flavour="emulcompat"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8164 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8165 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8166 gcc_target_cpu="mc68000"
8168 *i?86*)
8169 aros_target_cpu="i386"
8170 aros_object_format="elf_i386"
8171 aros_flavour="emulation"
8172 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8173 aros_kernel_ldflags="-Wl,-melf_i386"
8174 aros_nominal_depth=8
8175 gcc_target_cpu="i386"
8176 pci_hidd_target="hidd-pci-linux"
8177 android_tool_dir_prefix="x86"
8178 android_tool_prefix="i686-android-linux"
8179 android_ndk_arch="x86"
8181 *x86_64*)
8182 aros_target_cpu="x86_64"
8183 aros_object_format="elf_x86_64"
8184 aros_flavour="emulation"
8185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8186 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8187 aros_nominal_depth=8
8188 pci_hidd_target="hidd-pci-linux"
8190 *powerpc*)
8191 aros_target_cpu="ppc"
8192 aros_object_format="elf32ppc"
8193 aros_flavour="emulation"
8194 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8195 aros_nominal_depth=8
8196 gcc_target_cpu="ppc"
8198 # TODO
8199 # Same as powerpc, but I need this for the nightly build to work again.
8200 # Actually, the nightly should be made working with powerpc target.
8201 # That just was too much work for the moment, another week or two.
8202 *ppc*)
8203 aros_target_cpu="ppc"
8204 aros_object_format="elf32ppc"
8205 aros_flavour="emulation"
8206 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8207 aros_nominal_depth=8
8208 gcc_target_cpu="ppc"
8210 *aarch64*)
8211 aros_target_cpu="aarch64"
8212 target_cpu="aarch64"
8213 aros_object_format="aarch64elf_aros"
8214 aros_flavour="emulation"
8215 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8216 gcc_target_cpu="aarch64"
8217 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8218 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8219 aros_arch_libs="-laeabi"
8220 gcc_default_float_abi="hard"
8221 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8223 *armhf*)
8224 aros_target_cpu="arm"
8225 target_cpu="arm"
8226 aros_object_format="armelf_aros"
8227 aros_flavour="emulation"
8228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8229 gcc_target_cpu="arm"
8230 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8231 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8232 aros_arch_libs="-laeabi"
8233 gcc_default_float_abi="hard"
8234 android_tool_dir_prefix="arm-linux-androideabi"
8235 android_tool_prefix="arm-linux-androideabi"
8236 android_ndk_arch="arm"
8237 kernel_tool_prefix="arm-linux-gnueabihf-"
8239 *arm*)
8240 aros_target_cpu="arm"
8241 aros_object_format="armelf_aros"
8242 aros_flavour="emulation"
8243 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8244 gcc_target_cpu="arm"
8245 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8246 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8247 aros_arch_libs="-laeabi"
8248 android_tool_dir_prefix="arm-linux-androideabi"
8249 android_tool_prefix="arm-linux-androideabi"
8250 android_ndk_arch="arm"
8251 kernel_tool_prefix="arm-linux-gnueabi-"
8254 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8256 esac
8257 case "$aros_target_variant" in
8258 android)
8260 if test "$android_ndk_arch" = ""; then
8261 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8264 aros_nominal_width=320
8265 aros_nominal_height=480
8266 if test "$aros_android_ndk" = "none"; then
8267 aros_kernel_cflags="-mandroid"
8268 aros_kernel_ldflags="-mandroid"
8269 CFLAGS="-mandroid"
8270 else
8271 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8272 kernel_tool_version=""
8273 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8274 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8275 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8276 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8277 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8279 need_x11=no
8280 host_android_gfx=yes
8281 # Disable implicit PIC mode
8282 aros_target_cflags="$aros_target_cflags -fno-pic"
8283 kernel_tool_prefix="$android_tool_prefix-"
8285 esac
8289 aros_target_arch="pc"
8290 aros_shared_default="no"
8291 target_bootloader="grub2"
8292 case "$target_cpu" in
8293 *i?86*)
8294 aros_target_cpu="i386"
8297 if test "$aros_object_format" = "" ; then
8298 aros_object_format="elf_i386"
8300 aros_flavour="standalone"
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8302 aros_kernel_ldflags="-Wl,-melf_i386"
8303 aros_nominal_width=640
8304 aros_nominal_height=480
8305 gcc_target_cpu="i386"
8307 *x86_64*)
8308 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8309 aros_target_cpu="x86_64"
8310 aros_serial_debug=1
8311 if test "$aros_object_format" = "" ; then
8312 aros_object_format="elf_x86_64"
8314 aros_flavour="standalone"
8315 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8316 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8317 aros_kernel_ldflags=""
8318 aros_nominal_width=640
8319 aros_nominal_height=480
8320 case "$aros_target_variant" in
8321 smp)
8322 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8324 esac
8327 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8329 esac
8332 prep)
8333 aros_target_arch="prep"
8334 aros_shared_default="no"
8335 aros_target_cpu="ppc"
8336 aros_object_format="elf32ppc"
8337 aros_flavour="ppcnative"
8338 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8339 aros_kernel_ldflags=""
8340 aros_nominal_width=640
8341 aros_nominal_height=480
8342 gcc_target_cpu="ppc"
8345 freebsd*)
8346 aros_target_arch="freebsd"
8347 aros_target_family="unix"
8348 aros_target_cpu="i386"
8349 aros_flavour="emulation"
8350 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8351 gcc_target_cpu="i386"
8353 aros_target_strip_flags="-x"
8356 darwin*)
8357 aros_target_arch="darwin"
8358 aros_target_family="unix"
8359 aros_flavour="emulation"
8360 case "$target_cpu" in
8361 *i?86*)
8362 aros_ios_platform="iPhoneSimulator"
8363 aros_target_cpu="i386"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8365 aros_kernel_ldflags=""
8366 aros_macosx_version="10.4"
8367 aros_nominal_depth=8
8368 gcc_target_cpu="i386"
8369 aros_object_format="elf_i386"
8370 aros_kernel_ar_flags="-cr"
8371 aros_target_strip_flags="-x"
8372 kernel_tool_flags="-m32"
8374 *x86_64*)
8375 aros_target_cpu="x86_64"
8376 aros_object_format="elf_x86_64"
8377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8378 aros_macosx_version="10.6"
8379 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8380 aros_kernel_cflags="-m64"
8381 aros_kernel_ldflags="-m64"
8382 aros_target_cflags="-mcmodel=large"
8383 aros_nominal_depth=8
8384 aros_kernel_ar="ar"
8385 aros_kernel_ar_flags="-cr"
8386 aros_kernel_ld="ld"
8387 aros_kernel_as="as"
8388 aros_kernel_ranlib="ranlib"
8389 aros_kernel_nm="nm"
8390 aros_kernel_strip="strip"
8391 kernel_tool_prefix="i686-apple-darwin10-"
8393 *ppc*)
8394 aros_target_cpu="ppc"
8395 aros_object_format="elf32ppc"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8397 aros_kernel_ldflags=""
8398 aros_macosx_version="10.0"
8399 aros_nominal_depth=8
8400 gcc_target_cpu="ppc"
8401 aros_kernel_ar="ar"
8402 aros_kernel_ar_flags="-cr"
8403 aros_kernel_ld="ld -arch ppc"
8404 aros_kernel_as="as -arch ppc"
8405 aros_kernel_ranlib="ranlib -arch ppc"
8406 aros_kernel_nm="nm -arch ppc"
8407 aros_kernel_strip="strip -arch ppc"
8408 kernel_tool_prefix="powerpc-apple-darwin10-"
8410 *arm*)
8411 aros_ios_platform="iPhoneOS"
8412 aros_target_cpu="arm"
8413 aros_object_format="armelf_aros"
8414 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8415 aros_arch_libs="-laeabi"
8416 aros_nominal_depth=8
8417 gcc_target_cpu="arm"
8418 aros_kernel_ar="ar"
8419 aros_kernel_ar_flags="-cr"
8420 aros_kernel_ld="ld -arch arm"
8421 aros_kernel_ranlib="ranlib -arch arm"
8422 kernel_tool_prefix="arm-apple-darwin10-"
8423 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8426 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8428 esac
8429 case "$aros_target_variant" in
8430 ios)
8431 aros_ios_version="3.0"
8432 aros_nominal_width=320
8433 aros_nominal_height=480
8434 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8435 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8436 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8437 need_x11=no
8438 # This is here because it may depend on iOS or SDK version
8439 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8440 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8441 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8444 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8445 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8447 esac
8450 dragonfly*)
8451 aros_target_arch="dragonfly"
8452 aros_target_family="unix"
8453 aros_flavour="emulation"
8454 case "$target_cpu" in
8455 *i?86*)
8456 aros_target_cpu="i386"
8457 aros_object_format="elf_i386"
8458 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8460 *x86_64*)
8461 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8462 aros_target_cpu="x86_64"
8463 aros_object_format="elf_x86_64"
8464 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8467 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8469 esac
8472 netbsd*)
8473 aros_target_arch="netbsd"
8474 aros_target_family="unix"
8475 case "$target_cpu" in
8476 *m68k*)
8477 aros_target_cpu="m68k"
8478 aros_object_format="m68kelf"
8479 aros_flavour="emulcompat"
8480 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8481 gcc_target_cpu="mc68000"
8483 *i?86*)
8484 aros_target_cpu="i386"
8485 aros_object_format="elf_i386"
8486 aros_flavour="emulation"
8487 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8488 aros_nominal_depth=8
8489 gcc_target_cpu="i386"
8492 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8494 esac
8495 aros_target_genmap="-Wl,-M -Xlinker >"
8496 aros_flavour="emulation"
8497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8500 openbsd*)
8501 aros_target_arch="openbsd"
8502 aros_target_family="unix"
8503 case "$target_cpu" in
8504 *i?86*)
8505 aros_target_cpu="i386"
8506 aros_object_format="elf_i386"
8507 aros_flavour="emulation"
8508 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8509 gcc_target_cpu="i386"
8512 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8514 esac
8515 aros_target_genmap="-Wl,-M -Xlinker >"
8516 aros_target_nm_flags="-u"
8517 aros_flavour="emulation"
8520 solaris*)
8521 aros_target_arch="solaris"
8522 aros_target_family="unix"
8523 case "$target_cpu" in
8524 *i?86*)
8525 aros_target_cpu="i386"
8526 aros_object_format="elf_i386"
8527 aros_flavour="emulation"
8528 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8529 aros_nominal_depth=8
8530 gcc_target_cpu="i386"
8532 *sparc*)
8533 aros_target_cpu="sparc"
8534 aros_object_format="elf_sparc"
8535 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8536 gcc_target_cpu="sparc"
8539 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8541 esac
8542 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8543 aros_flavour="emulation"
8546 morphos*)
8547 aros_target_arch="morphos"
8548 aros_shared_default="no"
8549 aros_target_cpu="ppc"
8550 aros_object_format="elf_ppc"
8551 aros_flavour="nativecompat"
8552 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8553 gcc_target_cpu="ppc"
8556 sam440)
8557 aros_target_arch="sam440"
8558 aros_shared_default="no"
8559 aros_target_cpu="ppc"
8560 aros_object_format="elf32ppc"
8561 aros_flavour="ppcnative"
8562 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8563 aros_kernel_ldflags=""
8564 aros_nominal_width=1024
8565 aros_nominal_height=768
8566 aros_nominal_depth=24
8567 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8568 gcc_target_cpu="powerpc"
8571 efika)
8572 aros_target_arch="efika"
8573 aros_shared_default="no"
8574 aros_target_cpu="arm"
8575 aros_object_format="armelf_aros"
8576 aros_flavour="standalone"
8577 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8578 aros_kernel_ldflags=""
8579 aros_nominal_width=1024
8580 aros_nominal_height=600
8581 aros_arch_libs="-laeabi"
8582 gcc_default_cpu="armv7-a"
8583 gcc_default_fpu="vfpv3"
8584 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8585 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8586 aros_optimization_cflags="$aros_optimization_cflags -Os"
8587 case "$target_cpu" in
8588 *armhf*)
8589 gcc_default_float_abi="hard"
8590 target_cpu=arm
8591 aros_target_cpu=arm
8593 *arm*)
8594 gcc_default_float_abi="softfp"
8597 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8599 esac
8602 chrp)
8603 aros_target_arch="chrp"
8604 aros_shared_default="no"
8605 aros_target_cpu="ppc"
8606 aros_object_format="elf32ppc"
8607 aros_flavour="ppcnative"
8608 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8609 aros_kernel_ldflags=""
8610 aros_nominal_width=640
8611 aros_nominal_height=480
8612 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8613 gcc_target_cpu="powerpc"
8614 case "$aros_target_variant" in
8615 efika)
8616 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8618 esac
8621 r*pi)
8622 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8623 aros_flavour="standalone"
8624 aros_target_arch="raspi"
8626 aros_shared_default="no"
8628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8630 case "$target_cpu" in
8631 *aarch64*)
8632 aros_target_cpu="aarch64"
8633 gcc_default_cpu="aarch64"
8634 aros_object_format="aarch64elf_aros"
8636 *armhf*)
8637 aros_target_cpu="arm"
8638 gcc_default_cpu="armv6zk"
8639 gcc_default_cpu_tune="arm1176jzf-s"
8640 aros_object_format="armelf_aros"
8641 aros_config_cflags="$aros_config_cflags -marm"
8642 aros_config_aflags="$aros_config_aflags -marm"
8643 aros_kernel_cflags="$aros_kernel_cflags -marm"
8644 aros_target_cflags="$aros_kernel_cflags -marm"
8645 aros_target_mkdep="$aros_target_mkdep -Darm"
8646 aros_arch_libs="-laeabi"
8648 *arm*)
8649 aros_target_cpu="arm"
8650 gcc_default_cpu="armv6zk"
8651 gcc_default_cpu_tune="arm1176jzf-s"
8652 aros_object_format="armelf_aros"
8653 aros_config_cflags="$aros_config_cflags -marm"
8654 aros_config_aflags="$aros_config_aflags -marm"
8655 aros_kernel_cflags="$aros_kernel_cflags -marm"
8656 aros_target_cflags="$aros_kernel_cflags -marm"
8657 aros_target_mkdep="$aros_target_mkdep -Darm"
8658 aros_arch_libs="-laeabi"
8661 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8663 esac
8665 aros_config_cflags="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8666 aros_config_aflags="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8667 aros_kernel_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8668 aros_target_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8670 case "$aros_target_variant" in
8671 smp)
8672 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8674 esac
8677 stm32f7_discovery)
8678 aros_flavour="standalone"
8679 aros_target_arch="stm32f7_discovery"
8680 aros_target_cpu="arm"
8681 aros_target_cpu_mode="thumb2"
8682 aros_object_format="armelf_aros"
8683 aros_shared_default="no"
8685 # stm32f7 has DSP opcode support
8686 gcc_default_cpu="armv7e-m"
8687 # gcc_default_cpu="armv7-m"
8688 gcc_default_cpu_tune="cortex-m7"
8689 gcc_default_fpu="fpv4-sp-d16"
8690 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8691 # gcc_default_fpu="fpv5-sp-d16"
8692 gcc_default_float_abi="hard"
8694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8697 amiga*)
8698 aros_target_arch="amiga"
8699 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8700 aros_shared_default="no"
8702 case "$target_cpu" in
8703 *m68k*)
8704 # Check whether --enable-amigaos_compliance was given.
8705 if test "${enable_amigaos_compliance+set}" = set; then :
8706 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8709 aros_enable_mmu=no
8710 aros_target_cpu="m68k"
8711 aros_object_format="m68kelf"
8712 aros_flavour="standcompat"
8713 gcc_target_cpu="m68000"
8714 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8715 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8716 aros_optimization_cflags="$aros_optimization_cflags -Os"
8717 aros_config_aflags="$aros_config_aflags"
8718 aros_target_strip_flags="-R.comment --strip-debug"
8719 aros_nominal_width=640
8720 aros_nominal_height=256
8721 aros_nominal_depth=2
8723 *ppc*)
8724 aros_cpu="ppc"
8725 aros_flavour="native"
8726 gcc_target_cpu="ppc"
8729 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8731 esac
8734 mingw*)
8735 aros_target_arch="mingw32"
8736 aros_shared_default="no"
8737 aros_flavour="emulation"
8738 aros_shared_cflags=""
8739 need_crosstools="yes"
8740 need_dlopen="no"
8741 rescomp="windres"
8742 case "$target_cpu" in
8743 *i?86*)
8744 aros_target_cpu="i386"
8745 aros_object_format="elf_i386"
8746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8747 aros_nominal_depth=8
8748 gcc_target_cpu="i386"
8750 kernel_tool_prefix="i386-mingw32-"
8752 *x86_64*)
8753 aros_target_cpu="x86_64"
8754 aros_object_format="elf_x86_64"
8755 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8756 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8757 aros_nominal_depth=8
8758 kernel_tool_prefix="x86_64-w64-mingw32-"
8760 *arm*)
8761 aros_target_cpu="arm"
8762 aros_object_format="armelf_aros"
8763 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8764 aros_arch_libs="-laeabi"
8765 aros_nominal_depth=8
8766 gcc_target_cpu="arm"
8767 gcc_default_float_abi="soft"
8768 kernel_tool_prefix="arm-mingw32ce-"
8769 aros_nominal_width=160
8770 aros_nominal_height=160
8773 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8775 esac
8776 if test $host_os = "cygwin"; then
8777 aros_kernel_cflags="-mno-cygwin"
8780 pp*)
8781 aros_target_arch="pp"
8782 aros_shared_default="no"
8783 case "$target_cpu" in
8784 *m68k*)
8785 aros_target_cpu="m68k"
8786 aros_object_format="m68kelf"
8787 aros_flavour="palmnative"
8788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8789 aros_nominal_width=160
8790 aros_nominal_height=160
8791 aros_nominal_depth=1
8792 aros_target_ar_flags="cru"
8793 aros_compiler_libs="-lgcc1"
8794 aros_shared_default=no
8795 aros_shared_cflags="-fpic"
8796 aros_shared_aflags=""
8797 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8798 aros_kernel_ldflags="-Wl,-rpath,./lib"
8799 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8800 aros_debug_aflags=""
8801 aros_debug_ldflags="$aros_symbols_debug"
8802 aros_mungwall_debug="0"
8803 aros_modules_debug="0"
8804 gcc_target_cpu="mc68000"
8805 ignore_undefined_symbols="-ius"
8808 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8810 esac
8813 mac*)
8814 aros_target_arch="mac"
8815 aros_shared_default="no"
8816 case "$target_cpu" in
8817 *m68k*)
8818 aros_target_cpu="m68k"
8819 aros_object_format="m68kelf"
8820 aros_flavour="mac68knative"
8821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8822 aros_nominal_width=512
8823 aros_nominal_height=384
8824 aros_nominal_depth=8
8825 aros_target_ar_flags="cru"
8826 aros_compiler_libs="-lgcc1"
8827 aros_shared_default=no
8828 aros_shared_cflags="-fpic"
8829 aros_shared_aflags=""
8830 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8831 aros_kernel_ldflags="-Wl,-rpath,./lib"
8832 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8833 aros_debug_aflags=""
8834 aros_debug_ldflags="$aros_symbols_debug"
8835 aros_mungwall_debug="0"
8836 aros_modules_debug="0"
8837 gcc_target_cpu="mc68000"
8838 ignore_undefined_symbols="-ius"
8841 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8843 esac
8847 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8849 esac
8851 #-----------------------------------------------------------------------------
8852 crosstools_guess="yes"
8853 aros_target_toolchain="no"
8854 aros_config_sysroot=""
8855 aros_kernel_sysroot=""
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8858 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8860 # Check whether --with-kernel-toolchain-prefix was given.
8861 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8862 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8866 $as_echo "$kernel_tool_prefix" >&6; }
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8869 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8871 # Check whether --with-elf-toolchain-prefix was given.
8872 if test "${with_elf_toolchain_prefix+set}" = set; then :
8873 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8874 crosstools_guess="no"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8878 $as_echo "$elf_tool_prefix" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8881 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8883 # Check whether --with-aros-toolchain was given.
8884 if test "${with_aros_toolchain+set}" = set; then :
8885 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8886 crosstools_guess="no"
8889 if test "$aros_tool_prefix" = "yes" ; then
8890 aros_tool_prefix=$aros_target_cpu-aros-
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8893 $as_echo "$aros_tool_prefix" >&6; }
8895 #-----------------------------------------------------------------------------
8896 # Checking if we should build crosstools..
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8898 $as_echo_n "checking whether to build crosstools... " >&6; }
8899 # Check whether --enable-crosstools was given.
8900 if test "${enable_crosstools+set}" = set; then :
8901 enableval=$enable_crosstools; crosstools="$enableval"
8902 else
8903 crosstools="$crosstools_guess"
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8907 $as_echo "$crosstools" >&6; }
8909 if test "${crosstools}" = "yes"; then
8910 if test "${crosstools_guess}" = "no"; then
8911 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8915 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8916 aros_target_toolchain="yes"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8920 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8922 # Check whether --with-aros-toolchain-install was given.
8923 if test "${with_aros_toolchain_install+set}" = set; then :
8924 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8927 if test "x$aros_toolchain_install" = "x"; then
8928 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8929 else
8930 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8931 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8932 if test "$crosstools_guess" = "no" ; then
8933 toolchain_needs_sysroot=yes
8935 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8936 aros_kernel_sysroot = $aros_config_sysroot
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8941 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8944 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8945 if test "$toolchain_needs_sysroot" = "yes" ; then
8946 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8949 $as_echo "$toolchain_needs_sysroot" >&6; }
8951 #-----------------------------------------------------------------------------
8952 if test "$aros_toolchain" = "gnu" ; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8954 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8957 # Check whether --with-binutils-version was given.
8958 if test "${with_binutils_version+set}" = set; then :
8959 withval=$with_binutils_version; use_binutils_version="$withval"
8960 else
8961 use_binutils_version=""
8964 if test "$use_binutils_version" = ""; then
8965 target_binutils_version="$default_binutils_version"
8966 else
8967 target_binutils_version="$use_binutils_version"
8969 if test "$aros_toolchain" = "gnu" ; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8971 $as_echo "$target_binutils_version" >&6; }
8975 # Helper to identify gcc version
8978 #-----------------------------------------------------------------------------
8979 if test "$aros_toolchain" = "gnu" ; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8981 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8984 # Check whether --with-gcc-version was given.
8985 if test "${with_gcc_version+set}" = set; then :
8986 withval=$with_gcc_version; use_gcc_version="$withval"
8987 else
8988 use_gcc_version=""
8991 if test "$use_gcc_version" = ""; then
8992 if test "${crosstools}" = "no"; then
8993 if test "x$aros_toolchain_install" != "x"; then
8995 target_gcc_version=""
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8997 $as_echo_n "checking gcc version... " >&6; }
8998 if ${ax_cv_gcc_version+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9002 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9003 if test "x$ax_cv_gcc_version" = "x"; then :
9005 ax_cv_gcc_version=""
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9011 $as_echo "$ax_cv_gcc_version" >&6; }
9012 target_gcc_version=$ax_cv_gcc_version
9017 if test "$use_gcc_version" = ""; then
9018 target_gcc_version="$default_gcc_version"
9020 else
9021 target_gcc_version="$use_gcc_version"
9023 if test "$aros_toolchain" = "gnu" ; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9025 $as_echo "$target_gcc_version" >&6; }
9027 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9028 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9029 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9031 gcc_fix_bitfields="false"
9032 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9033 gcc_fix_bitfields="true"
9034 else
9035 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9036 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9037 gcc_fix_bitfields="true"
9042 if test "$gcc_fix_bitfields" = "true" ; then
9043 case "$aros_target_cpu" in
9044 *x86_64*)
9045 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9046 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9048 i386)
9049 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9050 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9052 esac
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9057 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9058 # Check whether --enable-objc was given.
9059 if test "${enable_objc+set}" = set; then :
9060 enableval=$enable_objc; objc="$enableval"
9061 else
9062 objc="no"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9066 $as_echo "$objc" >&6; }
9067 if test "x$objc" = "xyes"; then
9068 objc_target="$objc"
9069 else
9070 objc_target="no-objc"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9074 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9075 # Check whether --enable-java was given.
9076 if test "${enable_java+set}" = set; then :
9077 enableval=$enable_java; java="$enableval"
9078 else
9079 java="no"
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9083 $as_echo "$java" >&6; }
9084 if test "x$java" != "xno"; then
9085 java_target="$java"
9086 else
9087 java_target="no-java"
9090 spec_obj_format="-m $aros_object_format"
9091 # Now process extra architecture-specific options.
9092 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9093 # as well as floating-point ABI.
9094 case "$aros_target_cpu" in
9095 *x86_64*)
9096 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9098 arm*)
9099 if test "$gcc_default_cpu" = ""; then
9100 gcc_default_cpu="armv6"
9102 if test "$gcc_default_fpu" = ""; then
9103 gcc_default_fpu="vfp"
9105 if test "$gcc_default_float_abi" = ""; then
9106 if test "$target_cpu" = "armhf"; then
9107 gcc_default_float_abi="hard"
9108 else
9109 gcc_default_float_abi="softfp"
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9114 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9116 # Check whether --with-cpu was given.
9117 if test "${with_cpu+set}" = set; then :
9118 withval=$with_cpu; aros_gcc_cpu="$withval"
9119 else
9120 aros_gcc_cpu=$gcc_default_cpu
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9124 $as_echo "$aros_gcc_cpu" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9127 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9129 # Check whether --with-fpu was given.
9130 if test "${with_fpu+set}" = set; then :
9131 withval=$with_fpu; aros_gcc_fpu="$withval"
9132 else
9133 aros_gcc_fpu=$gcc_default_fpu
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9137 $as_echo "$aros_gcc_fpu" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9140 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9142 # Check whether --with-float was given.
9143 if test "${with_float+set}" = set; then :
9144 withval=$with_float; aros_gcc_float_abi="$withval"
9145 else
9146 aros_gcc_float_abi=$gcc_default_float_abi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9150 $as_echo "$aros_gcc_float_abi" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9153 $as_echo_n "checking Which ARM mode to use... " >&6; }
9154 if test "$aros_target_cpu_mode" = ""; then
9155 aros_target_cpu_mode="arm32"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9157 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9160 $as_echo "$aros_target_cpu_mode" >&6; }
9163 case "$aros_target_cpu_mode" in
9164 arm32)
9165 gcc_default_mode="arm"
9166 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9168 arm64)
9169 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9171 thumb)
9172 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9174 thumb1)
9175 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9177 thumb2)
9178 gcc_default_mode="thumb"
9179 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9180 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9183 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9185 esac
9187 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9188 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9190 i386)
9191 aros_isa_flags="-m32 -march=i486"
9192 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9193 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9195 esac
9197 # Some architectures may need custom ELF specs.
9198 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9199 elf_specs_in=config/${aros_object_format}-specs.in
9200 else
9201 elf_specs_in=config/elf-specs.in
9204 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9205 # Since we override specs, we may need to put these defines there
9206 if test "$gcc_target_cpu" != ""; then
9207 gcc_target_cpu="-D__${gcc_target_cpu}__"
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9211 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9213 # Check whether --with-portssources was given.
9214 if test "${with_portssources+set}" = set; then :
9215 withval=$with_portssources; with_portssrcdir=$withval
9216 else
9217 with_portssrcdir="default"
9220 if test "$with_portssrcdir" = "default"; then
9221 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9222 else
9223 AROS_PORTSSRCDIR="$with_portssrcdir"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9226 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9229 $as_echo_n "checking which bootloader to use... " >&6; }
9231 # Check whether --with-bootloader was given.
9232 if test "${with_bootloader+set}" = set; then :
9233 withval=$with_bootloader; target_bootloader=$withval
9234 else
9235 target_bootloader=$target_bootloader
9238 if test "$target_bootloader" = "none"; then
9239 aros_target_bootloader=""
9240 else
9241 aros_target_bootloader="$target_bootloader"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9244 $as_echo "$target_bootloader" >&6; }
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9247 $as_echo_n "checking which icon-set to use... " >&6; }
9249 # Check whether --with-iconset was given.
9250 if test "${with_iconset+set}" = set; then :
9251 withval=$with_iconset; target_iconset=$withval
9252 else
9253 target_iconset="default"
9256 if test "$target_iconset" = "default"; then
9257 aros_target_iconset="Gorilla"
9258 target_iconset="default (Gorilla)"
9259 else
9260 aros_target_iconset="$target_iconset"
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9263 $as_echo "$target_iconset" >&6; }
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9266 $as_echo_n "checking which GUI Theme to use... " >&6; }
9268 # Check whether --with-theme was given.
9269 if test "${with_theme+set}" = set; then :
9270 withval=$with_theme; target_guitheme=$withval
9271 else
9272 target_guitheme="default"
9275 if test "$target_guitheme" = "default"; then
9276 aros_target_guitheme="Ice"
9277 else
9278 aros_target_guitheme="$target_guitheme"
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9281 $as_echo "$aros_target_guitheme" >&6; }
9283 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9284 # for target code)
9285 cross_compiling=no
9287 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9288 cross_compiling=yes
9291 if test "$aros_host_cpu" == "x86_64" ; then
9292 if test "$aros_target_cpu" == "i386" ; then
9293 cross_compiling=no
9297 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9298 if test "$aros_host_arch" != "$aros_target_arch" ; then
9299 cross_compiling=yes
9301 else
9302 if test "$host_cc_elf" = "no" ; then
9303 cross_compiling=yes
9307 if test "$cross_compiling" = "no" ; then
9308 kernel_tool_prefix=""
9309 if test "$host_cc_elf" = "yes" ; then
9310 elf_tool_prefix=""
9314 if test "$kernel_tool_version" != ""; then
9315 kernel_tool_version="-$kernel_tool_version"
9318 #######################################################################
9319 ## Compute what toolchains to use, and their paths ##
9320 #######################################################################
9322 # This takes, as input:
9323 # crosstools {yes,no}
9324 # kernel_tool_version {"",[version]}
9325 # target_tool_version {"",[version]}
9326 # kernel_tool_prefix {none,[some-arch-os-]}
9327 # gnu-toolchain -:
9328 # target_tool_prefix ${aros_target_cpu}-aros-
9329 # aros_tool_prefix ${aros_target_cpu}-aros-
9331 # The output is
9332 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9333 # Where the 'kernel' binaries are located
9334 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9335 # Where the 'target' binaries are located
9336 # (not the symlink farm - that is aros_target_*!)
9338 # The rules are:
9339 # if crosstools then
9340 # if kernel_tools_prefix = "no-kernel-prefix-"
9341 # aros_kernel_* = crosstools cc paths
9342 # aros_kernel_cc = elf cc wrapper around crosstools cc
9343 # else
9344 # VALIDATE(${kernel_tools_prefix}*)
9345 # aros_kernel_* = ${kernel_tools_prefix}*
9346 # if ${kernel_tools_prefix}cc is an AROS gcc
9347 # aros_kernel_cc = ${kernel_tools_prefix}cc
9348 # else
9349 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9350 # fi
9351 # fi
9353 # orig_target_* = aros built crosstools
9354 # orig_target_cc = elf cc wrapper around crosstools cc
9355 # else
9356 # VALIDATE(${kernel_tools_prefix}*)
9358 # orig_target_* = aros_kernel_*
9359 # if aros_kernel_cc is an AROS gcc
9360 # orig_target_cc = aros_kernel_cc
9361 # else
9362 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9363 # fi
9364 # fi
9366 if test "$aros_toolchain" = "gnu" ; then
9367 target_tool_prefix="${aros_target_cpu}-aros-"
9368 elif test "$aros_toolchain" = "llvm" ; then
9369 target_tool_prefix="bin/"
9372 if test "$kernel_tool_prefix" != "" ; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9374 $as_echo_n "checking which kernel tools... " >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9376 $as_echo "$kernel_tool_prefix" >&6; };
9379 if test "$kernel_tool_prefix" = "none" ; then
9380 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9381 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9383 else
9384 # Kernel tools required - find them
9385 # Note that 'normally', aros_kernel_* overrides will be
9386 # empty, unless specified in the per-arch sections above.
9387 if test "x$aros_kernel_cpp" = "x"; then
9388 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9390 if test "${kernel_tool_version}" != ""; then
9391 if test "$aros_kernel_cpp" != ""; then
9392 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9393 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9394 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9398 if test "$aros_kernel_cpp" = ""; then
9399 if test "$cross_compiling" = "yes" ; then
9400 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9401 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 $as_echo_n "checking for $ac_word... " >&6; }
9404 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 case $aros_kernel_cpp in
9408 [\\/]* | ?:[\\/]*)
9409 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 for as_dir in $PATH
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 break 2
9423 done
9424 done
9425 IFS=$as_save_IFS
9428 esac
9430 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9431 if test -n "$aros_kernel_cpp"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9433 $as_echo "$aros_kernel_cpp" >&6; }
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9440 else
9441 if test "$GCC" = "yes"; then
9442 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9443 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9444 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 case $aros_kernel_cpp in
9451 [\\/]* | ?:[\\/]*)
9452 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in `dirname $aros_gcc_cpp`
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9462 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9464 break 2
9466 done
9467 done
9468 IFS=$as_save_IFS
9471 esac
9473 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9474 if test -n "$aros_kernel_cpp"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9476 $as_echo "$aros_kernel_cpp" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 if test "$aros_kernel_cpp" = ""; then
9485 # Extract the first word of "cpp", so it can be a program name with args.
9486 set dummy cpp; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 case $aros_kernel_cpp in
9493 [\\/]* | ?:[\\/]*)
9494 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9504 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9508 done
9509 done
9510 IFS=$as_save_IFS
9513 esac
9515 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9516 if test -n "$aros_kernel_cpp"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9518 $as_echo "$aros_kernel_cpp" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9527 else
9528 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9529 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9530 set dummy $aros_kernel_cpp; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 case $aros_kernel_cpp in
9537 [\\/]* | ?:[\\/]*)
9538 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9552 done
9553 done
9554 IFS=$as_save_IFS
9557 esac
9559 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9560 if test -n "$aros_kernel_cpp"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9562 $as_echo "$aros_kernel_cpp" >&6; }
9563 else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9569 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9572 req_avail=yes
9573 if test "$aros_kernel_cpp" = ""; then
9574 req_avail=no
9576 if test "$aros_kernel_cpp" = "no"; then
9577 req_avail=no
9579 if test "$req_avail" = "no"; then
9580 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9583 if test "x$aros_kernel_cc" = "x"; then
9584 aros_kernel_cc=${kernel_tool_prefix}${CC}
9586 if test "${kernel_tool_version}" != ""; then
9587 if test "$aros_kernel_cc" != ""; then
9588 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9589 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9590 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9594 if test "$aros_kernel_cc" = ""; then
9595 if test "$cross_compiling" = "yes" ; then
9596 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9597 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 case $aros_kernel_cc in
9604 [\\/]* | ?:[\\/]*)
9605 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9619 done
9620 done
9621 IFS=$as_save_IFS
9624 esac
9626 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9627 if test -n "$aros_kernel_cc"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9629 $as_echo "$aros_kernel_cc" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9636 else
9637 if test "$GCC" = "yes"; then
9638 aros_gcc_cc=`$CC -print-prog-name=cc`
9639 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9640 set dummy `basename $aros_gcc_cc`; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 case $aros_kernel_cc in
9647 [\\/]* | ?:[\\/]*)
9648 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in `dirname $aros_gcc_cc`
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9662 done
9663 done
9664 IFS=$as_save_IFS
9667 esac
9669 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9670 if test -n "$aros_kernel_cc"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9672 $as_echo "$aros_kernel_cc" >&6; }
9673 else
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9680 if test "$aros_kernel_cc" = ""; then
9681 # Extract the first word of "cc", so it can be a program name with args.
9682 set dummy cc; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 case $aros_kernel_cc in
9689 [\\/]* | ?:[\\/]*)
9690 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9704 done
9705 done
9706 IFS=$as_save_IFS
9709 esac
9711 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9712 if test -n "$aros_kernel_cc"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9714 $as_echo "$aros_kernel_cc" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9723 else
9724 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9725 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9726 set dummy $aros_kernel_cc; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 case $aros_kernel_cc in
9733 [\\/]* | ?:[\\/]*)
9734 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9753 esac
9755 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9756 if test -n "$aros_kernel_cc"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9758 $as_echo "$aros_kernel_cc" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9765 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9768 req_avail=yes
9769 if test "$aros_kernel_cc" = ""; then
9770 req_avail=no
9772 if test "$aros_kernel_cc" = "no"; then
9773 req_avail=no
9775 if test "$req_avail" = "no"; then
9776 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9779 if test "x$aros_kernel_cxx" = "x"; then
9780 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9782 if test "${kernel_tool_version}" != ""; then
9783 if test "$aros_kernel_cxx" != ""; then
9784 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9785 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9786 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9790 if test "$aros_kernel_cxx" = ""; then
9791 if test "$cross_compiling" = "yes" ; then
9792 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9793 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 case $aros_kernel_cxx in
9800 [\\/]* | ?:[\\/]*)
9801 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9820 esac
9822 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9823 if test -n "$aros_kernel_cxx"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9825 $as_echo "$aros_kernel_cxx" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9832 else
9833 if test "$GCC" = "yes"; then
9834 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9835 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9836 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 case $aros_kernel_cxx in
9843 [\\/]* | ?:[\\/]*)
9844 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in `dirname $aros_gcc_cxx`
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9858 done
9859 done
9860 IFS=$as_save_IFS
9863 esac
9865 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9866 if test -n "$aros_kernel_cxx"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9868 $as_echo "$aros_kernel_cxx" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9876 if test "$aros_kernel_cxx" = ""; then
9877 # Extract the first word of "cxx", so it can be a program name with args.
9878 set dummy cxx; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $aros_kernel_cxx in
9885 [\\/]* | ?:[\\/]*)
9886 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9896 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9905 esac
9907 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9908 if test -n "$aros_kernel_cxx"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9910 $as_echo "$aros_kernel_cxx" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9919 else
9920 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9921 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9922 set dummy $aros_kernel_cxx; ac_word=$2
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9924 $as_echo_n "checking for $ac_word... " >&6; }
9925 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 case $aros_kernel_cxx in
9929 [\\/]* | ?:[\\/]*)
9930 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 break 2
9944 done
9945 done
9946 IFS=$as_save_IFS
9949 esac
9951 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9952 if test -n "$aros_kernel_cxx"; then
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9954 $as_echo "$aros_kernel_cxx" >&6; }
9955 else
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957 $as_echo "no" >&6; }
9961 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
9964 # If it's set, make sure it's really there
9965 if test "x$aros_kernel_cxx" != "x" ; then
9966 req_avail=yes
9967 if test "$aros_kernel_cxx" = ""; then
9968 req_avail=no
9970 if test "$aros_kernel_cxx" = "no"; then
9971 req_avail=no
9973 if test "$req_avail" = "no"; then
9974 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9978 if test "$aros_kernel_ld" = ""; then
9979 if test "$cross_compiling" = "yes" ; then
9980 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9981 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 case $aros_kernel_ld in
9988 [\\/]* | ?:[\\/]*)
9989 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9999 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10003 done
10004 done
10005 IFS=$as_save_IFS
10008 esac
10010 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10011 if test -n "$aros_kernel_ld"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10013 $as_echo "$aros_kernel_ld" >&6; }
10014 else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10020 else
10021 if test "$GCC" = "yes"; then
10022 aros_gcc_ld=`$CC -print-prog-name=ld`
10023 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10024 set dummy `basename $aros_gcc_ld`; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 case $aros_kernel_ld in
10031 [\\/]* | ?:[\\/]*)
10032 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in `dirname $aros_gcc_ld`
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10046 done
10047 done
10048 IFS=$as_save_IFS
10051 esac
10053 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10054 if test -n "$aros_kernel_ld"; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10056 $as_echo "$aros_kernel_ld" >&6; }
10057 else
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10059 $as_echo "no" >&6; }
10064 if test "$aros_kernel_ld" = ""; then
10065 # Extract the first word of "ld", so it can be a program name with args.
10066 set dummy ld; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 case $aros_kernel_ld in
10073 [\\/]* | ?:[\\/]*)
10074 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10088 done
10089 done
10090 IFS=$as_save_IFS
10093 esac
10095 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10096 if test -n "$aros_kernel_ld"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10098 $as_echo "$aros_kernel_ld" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10107 else
10108 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10109 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10110 set dummy $aros_kernel_ld; ac_word=$2
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10112 $as_echo_n "checking for $ac_word... " >&6; }
10113 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 case $aros_kernel_ld in
10117 [\\/]* | ?:[\\/]*)
10118 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in $PATH
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10128 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130 break 2
10132 done
10133 done
10134 IFS=$as_save_IFS
10137 esac
10139 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10140 if test -n "$aros_kernel_ld"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10142 $as_echo "$aros_kernel_ld" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10149 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10152 req_avail=yes
10153 if test "$aros_kernel_ld" = ""; then
10154 req_avail=no
10156 if test "$aros_kernel_ld" = "no"; then
10157 req_avail=no
10159 if test "$req_avail" = "no"; then
10160 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10163 if test "$aros_kernel_as" = ""; then
10164 if test "$cross_compiling" = "yes" ; then
10165 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10166 set dummy ${kernel_tool_prefix}as; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_path_aros_kernel_as+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 case $aros_kernel_as in
10173 [\\/]* | ?:[\\/]*)
10174 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10184 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10188 done
10189 done
10190 IFS=$as_save_IFS
10193 esac
10195 aros_kernel_as=$ac_cv_path_aros_kernel_as
10196 if test -n "$aros_kernel_as"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10198 $as_echo "$aros_kernel_as" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10205 else
10206 if test "$GCC" = "yes"; then
10207 aros_gcc_as=`$CC -print-prog-name=as`
10208 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10209 set dummy `basename $aros_gcc_as`; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_path_aros_kernel_as+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 case $aros_kernel_as in
10216 [\\/]* | ?:[\\/]*)
10217 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in `dirname $aros_gcc_as`
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10227 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10231 done
10232 done
10233 IFS=$as_save_IFS
10236 esac
10238 aros_kernel_as=$ac_cv_path_aros_kernel_as
10239 if test -n "$aros_kernel_as"; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10241 $as_echo "$aros_kernel_as" >&6; }
10242 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10249 if test "$aros_kernel_as" = ""; then
10250 # Extract the first word of "as", so it can be a program name with args.
10251 set dummy as; ac_word=$2
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253 $as_echo_n "checking for $ac_word... " >&6; }
10254 if ${ac_cv_path_aros_kernel_as+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 case $aros_kernel_as in
10258 [\\/]* | ?:[\\/]*)
10259 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10269 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 break 2
10273 done
10274 done
10275 IFS=$as_save_IFS
10278 esac
10280 aros_kernel_as=$ac_cv_path_aros_kernel_as
10281 if test -n "$aros_kernel_as"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10283 $as_echo "$aros_kernel_as" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10292 else
10293 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10294 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10295 set dummy $aros_kernel_as; ac_word=$2
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 $as_echo_n "checking for $ac_word... " >&6; }
10298 if ${ac_cv_path_aros_kernel_as+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 case $aros_kernel_as in
10302 [\\/]* | ?:[\\/]*)
10303 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10322 esac
10324 aros_kernel_as=$ac_cv_path_aros_kernel_as
10325 if test -n "$aros_kernel_as"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10327 $as_echo "$aros_kernel_as" >&6; }
10328 else
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10334 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10337 req_avail=yes
10338 if test "$aros_kernel_as" = ""; then
10339 req_avail=no
10341 if test "$aros_kernel_as" = "no"; then
10342 req_avail=no
10344 if test "$req_avail" = "no"; then
10345 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10348 if test "$aros_kernel_ar" = ""; then
10349 if test "$cross_compiling" = "yes" ; then
10350 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10351 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 case $aros_kernel_ar in
10358 [\\/]* | ?:[\\/]*)
10359 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10378 esac
10380 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10381 if test -n "$aros_kernel_ar"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10383 $as_echo "$aros_kernel_ar" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10390 else
10391 if test "$GCC" = "yes"; then
10392 aros_gcc_ar=`$CC -print-prog-name=ar`
10393 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10394 set dummy `basename $aros_gcc_ar`; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 case $aros_kernel_ar in
10401 [\\/]* | ?:[\\/]*)
10402 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in `dirname $aros_gcc_ar`
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10421 esac
10423 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10424 if test -n "$aros_kernel_ar"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10426 $as_echo "$aros_kernel_ar" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10434 if test "$aros_kernel_ar" = ""; then
10435 # Extract the first word of "ar", so it can be a program name with args.
10436 set dummy ar; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 case $aros_kernel_ar in
10443 [\\/]* | ?:[\\/]*)
10444 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10463 esac
10465 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10466 if test -n "$aros_kernel_ar"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10468 $as_echo "$aros_kernel_ar" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10477 else
10478 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10479 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10480 set dummy $aros_kernel_ar; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 case $aros_kernel_ar in
10487 [\\/]* | ?:[\\/]*)
10488 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10502 done
10503 done
10504 IFS=$as_save_IFS
10507 esac
10509 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10510 if test -n "$aros_kernel_ar"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10512 $as_echo "$aros_kernel_ar" >&6; }
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10519 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10522 req_avail=yes
10523 if test "$aros_kernel_ar" = ""; then
10524 req_avail=no
10526 if test "$aros_kernel_ar" = "no"; then
10527 req_avail=no
10529 if test "$req_avail" = "no"; then
10530 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10533 if test "$aros_kernel_ranlib" = ""; then
10534 if test "$cross_compiling" = "yes" ; then
10535 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10536 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 case $aros_kernel_ranlib in
10543 [\\/]* | ?:[\\/]*)
10544 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10558 done
10559 done
10560 IFS=$as_save_IFS
10563 esac
10565 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10566 if test -n "$aros_kernel_ranlib"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10568 $as_echo "$aros_kernel_ranlib" >&6; }
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10575 else
10576 if test "$GCC" = "yes"; then
10577 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10578 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10579 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 case $aros_kernel_ranlib in
10586 [\\/]* | ?:[\\/]*)
10587 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in `dirname $aros_gcc_ranlib`
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10601 done
10602 done
10603 IFS=$as_save_IFS
10606 esac
10608 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10609 if test -n "$aros_kernel_ranlib"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10611 $as_echo "$aros_kernel_ranlib" >&6; }
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10619 if test "$aros_kernel_ranlib" = ""; then
10620 # Extract the first word of "ranlib", so it can be a program name with args.
10621 set dummy ranlib; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 case $aros_kernel_ranlib in
10628 [\\/]* | ?:[\\/]*)
10629 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10643 done
10644 done
10645 IFS=$as_save_IFS
10648 esac
10650 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10651 if test -n "$aros_kernel_ranlib"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10653 $as_echo "$aros_kernel_ranlib" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10662 else
10663 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10664 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10665 set dummy $aros_kernel_ranlib; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 case $aros_kernel_ranlib in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10692 esac
10694 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10695 if test -n "$aros_kernel_ranlib"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10697 $as_echo "$aros_kernel_ranlib" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10704 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10707 req_avail=yes
10708 if test "$aros_kernel_ranlib" = ""; then
10709 req_avail=no
10711 if test "$aros_kernel_ranlib" = "no"; then
10712 req_avail=no
10714 if test "$req_avail" = "no"; then
10715 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10718 if test "$aros_kernel_nm" = ""; then
10719 if test "$cross_compiling" = "yes" ; then
10720 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10721 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 case $aros_kernel_nm in
10728 [\\/]* | ?:[\\/]*)
10729 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10743 done
10744 done
10745 IFS=$as_save_IFS
10748 esac
10750 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10751 if test -n "$aros_kernel_nm"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10753 $as_echo "$aros_kernel_nm" >&6; }
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10760 else
10761 if test "$GCC" = "yes"; then
10762 aros_gcc_nm=`$CC -print-prog-name=nm`
10763 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10764 set dummy `basename $aros_gcc_nm`; ac_word=$2
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10766 $as_echo_n "checking for $ac_word... " >&6; }
10767 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 case $aros_kernel_nm in
10771 [\\/]* | ?:[\\/]*)
10772 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in `dirname $aros_gcc_nm`
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10782 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10786 done
10787 done
10788 IFS=$as_save_IFS
10791 esac
10793 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10794 if test -n "$aros_kernel_nm"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10796 $as_echo "$aros_kernel_nm" >&6; }
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10804 if test "$aros_kernel_nm" = ""; then
10805 # Extract the first word of "nm", so it can be a program name with args.
10806 set dummy nm; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 case $aros_kernel_nm in
10813 [\\/]* | ?:[\\/]*)
10814 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10824 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10828 done
10829 done
10830 IFS=$as_save_IFS
10833 esac
10835 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10836 if test -n "$aros_kernel_nm"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10838 $as_echo "$aros_kernel_nm" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10847 else
10848 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10849 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10850 set dummy $aros_kernel_nm; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 case $aros_kernel_nm in
10857 [\\/]* | ?:[\\/]*)
10858 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10868 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10870 break 2
10872 done
10873 done
10874 IFS=$as_save_IFS
10877 esac
10879 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10880 if test -n "$aros_kernel_nm"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10882 $as_echo "$aros_kernel_nm" >&6; }
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10889 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10892 req_avail=yes
10893 if test "$aros_kernel_nm" = ""; then
10894 req_avail=no
10896 if test "$aros_kernel_nm" = "no"; then
10897 req_avail=no
10899 if test "$req_avail" = "no"; then
10900 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10903 if test "$aros_kernel_strip" = ""; then
10904 if test "$cross_compiling" = "yes" ; then
10905 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10906 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908 $as_echo_n "checking for $ac_word... " >&6; }
10909 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 case $aros_kernel_strip in
10913 [\\/]* | ?:[\\/]*)
10914 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918 for as_dir in $PATH
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10924 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10928 done
10929 done
10930 IFS=$as_save_IFS
10933 esac
10935 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10936 if test -n "$aros_kernel_strip"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10938 $as_echo "$aros_kernel_strip" >&6; }
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10945 else
10946 if test "$GCC" = "yes"; then
10947 aros_gcc_strip=`$CC -print-prog-name=strip`
10948 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10949 set dummy `basename $aros_gcc_strip`; ac_word=$2
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951 $as_echo_n "checking for $ac_word... " >&6; }
10952 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 case $aros_kernel_strip in
10956 [\\/]* | ?:[\\/]*)
10957 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in `dirname $aros_gcc_strip`
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10967 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10976 esac
10978 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10979 if test -n "$aros_kernel_strip"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10981 $as_echo "$aros_kernel_strip" >&6; }
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10989 if test "$aros_kernel_strip" = ""; then
10990 # Extract the first word of "strip", so it can be a program name with args.
10991 set dummy strip; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 case $aros_kernel_strip in
10998 [\\/]* | ?:[\\/]*)
10999 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11013 done
11014 done
11015 IFS=$as_save_IFS
11018 esac
11020 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11021 if test -n "$aros_kernel_strip"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11023 $as_echo "$aros_kernel_strip" >&6; }
11024 else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026 $as_echo "no" >&6; }
11032 else
11033 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11034 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11035 set dummy $aros_kernel_strip; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 case $aros_kernel_strip in
11042 [\\/]* | ?:[\\/]*)
11043 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11057 done
11058 done
11059 IFS=$as_save_IFS
11062 esac
11064 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11065 if test -n "$aros_kernel_strip"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11067 $as_echo "$aros_kernel_strip" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11074 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11077 req_avail=yes
11078 if test "$aros_kernel_strip" = ""; then
11079 req_avail=no
11081 if test "$aros_kernel_strip" = "no"; then
11082 req_avail=no
11084 if test "$req_avail" = "no"; then
11085 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11088 # Objcopy and objdump are not required for the kernel
11089 # toolchain on many architectures.
11090 # So we'll look for them, but not make them strictly required.
11092 if test "$aros_kernel_objcopy" = ""; then
11093 if test "$cross_compiling" = "yes" ; then
11094 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11095 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 case $aros_kernel_objcopy in
11102 [\\/]* | ?:[\\/]*)
11103 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11117 done
11118 done
11119 IFS=$as_save_IFS
11122 esac
11124 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11125 if test -n "$aros_kernel_objcopy"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11127 $as_echo "$aros_kernel_objcopy" >&6; }
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11134 else
11135 if test "$GCC" = "yes"; then
11136 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11137 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11138 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140 $as_echo_n "checking for $ac_word... " >&6; }
11141 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 case $aros_kernel_objcopy in
11145 [\\/]* | ?:[\\/]*)
11146 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150 for as_dir in `dirname $aros_gcc_objcopy`
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11156 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11160 done
11161 done
11162 IFS=$as_save_IFS
11165 esac
11167 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11168 if test -n "$aros_kernel_objcopy"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11170 $as_echo "$aros_kernel_objcopy" >&6; }
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11178 if test "$aros_kernel_objcopy" = ""; then
11179 # Extract the first word of "objcopy", so it can be a program name with args.
11180 set dummy objcopy; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 case $aros_kernel_objcopy in
11187 [\\/]* | ?:[\\/]*)
11188 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11202 done
11203 done
11204 IFS=$as_save_IFS
11207 esac
11209 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11210 if test -n "$aros_kernel_objcopy"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11212 $as_echo "$aros_kernel_objcopy" >&6; }
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11221 else
11222 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11223 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11224 set dummy $aros_kernel_objcopy; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 case $aros_kernel_objcopy in
11231 [\\/]* | ?:[\\/]*)
11232 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11248 IFS=$as_save_IFS
11251 esac
11253 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11254 if test -n "$aros_kernel_objcopy"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11256 $as_echo "$aros_kernel_objcopy" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11263 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11267 if test "$aros_kernel_objdump" = ""; then
11268 if test "$cross_compiling" = "yes" ; then
11269 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11270 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11272 $as_echo_n "checking for $ac_word... " >&6; }
11273 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 case $aros_kernel_objdump in
11277 [\\/]* | ?:[\\/]*)
11278 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 break 2
11292 done
11293 done
11294 IFS=$as_save_IFS
11297 esac
11299 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11300 if test -n "$aros_kernel_objdump"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11302 $as_echo "$aros_kernel_objdump" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11309 else
11310 if test "$GCC" = "yes"; then
11311 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11312 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11313 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11315 $as_echo_n "checking for $ac_word... " >&6; }
11316 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 case $aros_kernel_objdump in
11320 [\\/]* | ?:[\\/]*)
11321 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in `dirname $aros_gcc_objdump`
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11335 done
11336 done
11337 IFS=$as_save_IFS
11340 esac
11342 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11343 if test -n "$aros_kernel_objdump"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11345 $as_echo "$aros_kernel_objdump" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11353 if test "$aros_kernel_objdump" = ""; then
11354 # Extract the first word of "objdump", so it can be a program name with args.
11355 set dummy objdump; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 case $aros_kernel_objdump in
11362 [\\/]* | ?:[\\/]*)
11363 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 break 2
11377 done
11378 done
11379 IFS=$as_save_IFS
11382 esac
11384 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11385 if test -n "$aros_kernel_objdump"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11387 $as_echo "$aros_kernel_objdump" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11396 else
11397 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11398 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11399 set dummy $aros_kernel_objdump; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 case $aros_kernel_objdump in
11406 [\\/]* | ?:[\\/]*)
11407 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11421 done
11422 done
11423 IFS=$as_save_IFS
11426 esac
11428 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11429 if test -n "$aros_kernel_objdump"; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11431 $as_echo "$aros_kernel_objdump" >&6; }
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11438 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11441 if test "x${crosstools}" != "xyes" ; then
11442 req_avail=yes
11443 if test "$aros_kernel_objcopy" = ""; then
11444 req_avail=no
11446 if test "$aros_kernel_objcopy" = "no"; then
11447 req_avail=no
11449 if test "$req_avail" = "no"; then
11450 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11452 req_avail=yes
11453 if test "$aros_kernel_objdump" = ""; then
11454 req_avail=no
11456 if test "$aros_kernel_objdump" = "no"; then
11457 req_avail=no
11459 if test "$req_avail" = "no"; then
11460 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11466 $as_echo_n "checking which target tools to use... " >&6; }
11467 if test "$aros_target_toolchain" = "yes"; then
11468 if test "$aros_toolchain" = "llvm" ; then
11469 msg_result="llvm"
11470 else
11471 msg_result=$target_tool_prefix
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11474 $as_echo "$msg_result" >&6; }
11475 # We are building AROS crosstools
11476 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11477 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11478 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11479 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11480 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11481 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11482 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11483 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11484 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11485 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11486 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11487 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11488 else
11489 # Determine whether AROS or ELF tools should be used
11490 if test "$aros_tool_prefix" = "none"; then
11491 aros_tool_prefix="${elf_tool_prefix}"
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11495 $as_echo "$aros_tool_prefix" >&6; }
11496 # We are *not* building AROS crosstools - use the AROS or ELF tools
11498 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11499 if test "$cross_compiling" = "yes" ; then
11500 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11501 set dummy ${target_tool_prefix}cpp; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_path_orig_target_cpp+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 case $orig_target_cpp in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 break 2
11523 done
11524 done
11525 IFS=$as_save_IFS
11528 esac
11530 orig_target_cpp=$ac_cv_path_orig_target_cpp
11531 if test -n "$orig_target_cpp"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11533 $as_echo "$orig_target_cpp" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11540 else
11541 if test "$GCC" = "yes"; then
11542 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11543 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11544 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if ${ac_cv_path_orig_target_cpp+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 case $orig_target_cpp in
11551 [\\/]* | ?:[\\/]*)
11552 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in `dirname $aros_gcc_cpp`
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11566 done
11567 done
11568 IFS=$as_save_IFS
11571 esac
11573 orig_target_cpp=$ac_cv_path_orig_target_cpp
11574 if test -n "$orig_target_cpp"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11576 $as_echo "$orig_target_cpp" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11584 if test "$orig_target_cpp" = ""; then
11585 # Extract the first word of "cpp", so it can be a program name with args.
11586 set dummy cpp; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_path_orig_target_cpp+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 case $orig_target_cpp in
11593 [\\/]* | ?:[\\/]*)
11594 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11613 esac
11615 orig_target_cpp=$ac_cv_path_orig_target_cpp
11616 if test -n "$orig_target_cpp"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11618 $as_echo "$orig_target_cpp" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11627 else
11628 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11629 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11630 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if ${ac_cv_path_orig_target_cpp+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 case $orig_target_cpp in
11637 [\\/]* | ?:[\\/]*)
11638 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11648 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 break 2
11652 done
11653 done
11654 IFS=$as_save_IFS
11657 esac
11659 orig_target_cpp=$ac_cv_path_orig_target_cpp
11660 if test -n "$orig_target_cpp"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11662 $as_echo "$orig_target_cpp" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11669 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11672 req_avail=yes
11673 if test "$orig_target_cpp" = ""; then
11674 req_avail=no
11676 if test "$orig_target_cpp" = "no"; then
11677 req_avail=no
11679 if test "$req_avail" = "no"; then
11680 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11683 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11684 if test "$cross_compiling" = "yes" ; then
11685 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11686 set dummy ${target_tool_prefix}gcc; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_cc+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $orig_target_cc in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11713 esac
11715 orig_target_cc=$ac_cv_path_orig_target_cc
11716 if test -n "$orig_target_cc"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11718 $as_echo "$orig_target_cc" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11725 else
11726 if test "$GCC" = "yes"; then
11727 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11728 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11729 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_path_orig_target_cc+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $orig_target_cc in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in `dirname $aros_gcc_gcc`
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11756 esac
11758 orig_target_cc=$ac_cv_path_orig_target_cc
11759 if test -n "$orig_target_cc"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11761 $as_echo "$orig_target_cc" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11769 if test "$orig_target_cc" = ""; then
11770 # Extract the first word of "gcc", so it can be a program name with args.
11771 set dummy gcc; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_path_orig_target_cc+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $orig_target_cc in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11798 esac
11800 orig_target_cc=$ac_cv_path_orig_target_cc
11801 if test -n "$orig_target_cc"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11803 $as_echo "$orig_target_cc" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11812 else
11813 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11814 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11815 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_path_orig_target_cc+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 case $orig_target_cc in
11822 [\\/]* | ?:[\\/]*)
11823 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11837 done
11838 done
11839 IFS=$as_save_IFS
11842 esac
11844 orig_target_cc=$ac_cv_path_orig_target_cc
11845 if test -n "$orig_target_cc"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11847 $as_echo "$orig_target_cc" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11854 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11857 req_avail=yes
11858 if test "$orig_target_cc" = ""; then
11859 req_avail=no
11861 if test "$orig_target_cc" = "no"; then
11862 req_avail=no
11864 if test "$req_avail" = "no"; then
11865 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11868 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11869 if test "$cross_compiling" = "yes" ; then
11870 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11871 set dummy ${target_tool_prefix}g++; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if ${ac_cv_path_orig_target_cxx+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 case $orig_target_cxx in
11878 [\\/]* | ?:[\\/]*)
11879 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11893 done
11894 done
11895 IFS=$as_save_IFS
11898 esac
11900 orig_target_cxx=$ac_cv_path_orig_target_cxx
11901 if test -n "$orig_target_cxx"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11903 $as_echo "$orig_target_cxx" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11910 else
11911 if test "$GCC" = "yes"; then
11912 aros_gcc_g++=`$CC -print-prog-name=g++`
11913 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11914 set dummy `basename $aros_gcc_g++`; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_path_orig_target_cxx+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 case $orig_target_cxx in
11921 [\\/]* | ?:[\\/]*)
11922 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in `dirname $aros_gcc_g++`
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11936 done
11937 done
11938 IFS=$as_save_IFS
11941 esac
11943 orig_target_cxx=$ac_cv_path_orig_target_cxx
11944 if test -n "$orig_target_cxx"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11946 $as_echo "$orig_target_cxx" >&6; }
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11954 if test "$orig_target_cxx" = ""; then
11955 # Extract the first word of "g++", so it can be a program name with args.
11956 set dummy g++; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if ${ac_cv_path_orig_target_cxx+:} false; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 case $orig_target_cxx in
11963 [\\/]* | ?:[\\/]*)
11964 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11970 IFS=$as_save_IFS
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976 break 2
11978 done
11979 done
11980 IFS=$as_save_IFS
11983 esac
11985 orig_target_cxx=$ac_cv_path_orig_target_cxx
11986 if test -n "$orig_target_cxx"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11988 $as_echo "$orig_target_cxx" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11997 else
11998 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11999 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12000 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_orig_target_cxx+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 case $orig_target_cxx in
12007 [\\/]* | ?:[\\/]*)
12008 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12022 done
12023 done
12024 IFS=$as_save_IFS
12027 esac
12029 orig_target_cxx=$ac_cv_path_orig_target_cxx
12030 if test -n "$orig_target_cxx"; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12032 $as_echo "$orig_target_cxx" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12039 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12042 req_avail=yes
12043 if test "$orig_target_cxx" = ""; then
12044 req_avail=no
12046 if test "$orig_target_cxx" = "no"; then
12047 req_avail=no
12049 if test "$req_avail" = "no"; then
12050 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12053 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12054 if test "$cross_compiling" = "yes" ; then
12055 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12056 set dummy ${target_tool_prefix}gcc; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_orig_target_ld+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 case $orig_target_ld in
12063 [\\/]* | ?:[\\/]*)
12064 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12078 done
12079 done
12080 IFS=$as_save_IFS
12083 esac
12085 orig_target_ld=$ac_cv_path_orig_target_ld
12086 if test -n "$orig_target_ld"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12088 $as_echo "$orig_target_ld" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12095 else
12096 if test "$GCC" = "yes"; then
12097 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12098 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12099 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_path_orig_target_ld+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 case $orig_target_ld in
12106 [\\/]* | ?:[\\/]*)
12107 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in `dirname $aros_gcc_gcc`
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12126 esac
12128 orig_target_ld=$ac_cv_path_orig_target_ld
12129 if test -n "$orig_target_ld"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12131 $as_echo "$orig_target_ld" >&6; }
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12139 if test "$orig_target_ld" = ""; then
12140 # Extract the first word of "gcc", so it can be a program name with args.
12141 set dummy gcc; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_path_orig_target_ld+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 case $orig_target_ld in
12148 [\\/]* | ?:[\\/]*)
12149 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12163 done
12164 done
12165 IFS=$as_save_IFS
12168 esac
12170 orig_target_ld=$ac_cv_path_orig_target_ld
12171 if test -n "$orig_target_ld"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12173 $as_echo "$orig_target_ld" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12182 else
12183 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12184 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12185 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_path_orig_target_ld+:} false; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 case $orig_target_ld in
12192 [\\/]* | ?:[\\/]*)
12193 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 break 2
12207 done
12208 done
12209 IFS=$as_save_IFS
12212 esac
12214 orig_target_ld=$ac_cv_path_orig_target_ld
12215 if test -n "$orig_target_ld"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12217 $as_echo "$orig_target_ld" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12224 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12227 req_avail=yes
12228 if test "$orig_target_ld" = ""; then
12229 req_avail=no
12231 if test "$orig_target_ld" = "no"; then
12232 req_avail=no
12234 if test "$req_avail" = "no"; then
12235 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12238 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12239 if test "$cross_compiling" = "yes" ; then
12240 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12241 set dummy ${target_tool_prefix}as; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if ${ac_cv_path_orig_target_as+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 case $orig_target_as in
12248 [\\/]* | ?:[\\/]*)
12249 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12259 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12263 done
12264 done
12265 IFS=$as_save_IFS
12268 esac
12270 orig_target_as=$ac_cv_path_orig_target_as
12271 if test -n "$orig_target_as"; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12273 $as_echo "$orig_target_as" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12280 else
12281 if test "$GCC" = "yes"; then
12282 aros_gcc_as=`$CC -print-prog-name=as`
12283 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12284 set dummy `basename $aros_gcc_as`; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if ${ac_cv_path_orig_target_as+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 case $orig_target_as in
12291 [\\/]* | ?:[\\/]*)
12292 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in `dirname $aros_gcc_as`
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12306 done
12307 done
12308 IFS=$as_save_IFS
12311 esac
12313 orig_target_as=$ac_cv_path_orig_target_as
12314 if test -n "$orig_target_as"; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12316 $as_echo "$orig_target_as" >&6; }
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12324 if test "$orig_target_as" = ""; then
12325 # Extract the first word of "as", so it can be a program name with args.
12326 set dummy as; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_path_orig_target_as+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 case $orig_target_as in
12333 [\\/]* | ?:[\\/]*)
12334 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 break 2
12348 done
12349 done
12350 IFS=$as_save_IFS
12353 esac
12355 orig_target_as=$ac_cv_path_orig_target_as
12356 if test -n "$orig_target_as"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12358 $as_echo "$orig_target_as" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12367 else
12368 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12369 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12370 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if ${ac_cv_path_orig_target_as+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 case $orig_target_as in
12377 [\\/]* | ?:[\\/]*)
12378 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12392 done
12393 done
12394 IFS=$as_save_IFS
12397 esac
12399 orig_target_as=$ac_cv_path_orig_target_as
12400 if test -n "$orig_target_as"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12402 $as_echo "$orig_target_as" >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12409 orig_target_as="$orig_target_as $ac_tool_optarg"
12412 req_avail=yes
12413 if test "$orig_target_as" = ""; then
12414 req_avail=no
12416 if test "$orig_target_as" = "no"; then
12417 req_avail=no
12419 if test "$req_avail" = "no"; then
12420 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12423 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12424 if test "$cross_compiling" = "yes" ; then
12425 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12426 set dummy ${target_tool_prefix}ar; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_path_orig_target_ar+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 case $orig_target_ar in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12444 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2
12448 done
12449 done
12450 IFS=$as_save_IFS
12453 esac
12455 orig_target_ar=$ac_cv_path_orig_target_ar
12456 if test -n "$orig_target_ar"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12458 $as_echo "$orig_target_ar" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12465 else
12466 if test "$GCC" = "yes"; then
12467 aros_gcc_ar=`$CC -print-prog-name=ar`
12468 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12469 set dummy `basename $aros_gcc_ar`; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_path_orig_target_ar+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 case $orig_target_ar in
12476 [\\/]* | ?:[\\/]*)
12477 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in `dirname $aros_gcc_ar`
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12496 esac
12498 orig_target_ar=$ac_cv_path_orig_target_ar
12499 if test -n "$orig_target_ar"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12501 $as_echo "$orig_target_ar" >&6; }
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12509 if test "$orig_target_ar" = ""; then
12510 # Extract the first word of "ar", so it can be a program name with args.
12511 set dummy ar; ac_word=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if ${ac_cv_path_orig_target_ar+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 case $orig_target_ar in
12518 [\\/]* | ?:[\\/]*)
12519 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12533 done
12534 done
12535 IFS=$as_save_IFS
12538 esac
12540 orig_target_ar=$ac_cv_path_orig_target_ar
12541 if test -n "$orig_target_ar"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12543 $as_echo "$orig_target_ar" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12552 else
12553 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12554 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12555 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_path_orig_target_ar+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 case $orig_target_ar in
12562 [\\/]* | ?:[\\/]*)
12563 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12577 done
12578 done
12579 IFS=$as_save_IFS
12582 esac
12584 orig_target_ar=$ac_cv_path_orig_target_ar
12585 if test -n "$orig_target_ar"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12587 $as_echo "$orig_target_ar" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12594 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12597 req_avail=yes
12598 if test "$orig_target_ar" = ""; then
12599 req_avail=no
12601 if test "$orig_target_ar" = "no"; then
12602 req_avail=no
12604 if test "$req_avail" = "no"; then
12605 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12608 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12609 if test "$cross_compiling" = "yes" ; then
12610 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12611 set dummy ${target_tool_prefix}ar; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 case $orig_target_ranlib in
12618 [\\/]* | ?:[\\/]*)
12619 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12633 done
12634 done
12635 IFS=$as_save_IFS
12638 esac
12640 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12641 if test -n "$orig_target_ranlib"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12643 $as_echo "$orig_target_ranlib" >&6; }
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12650 else
12651 if test "$GCC" = "yes"; then
12652 aros_gcc_ar=`$CC -print-prog-name=ar`
12653 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12654 set dummy `basename $aros_gcc_ar`; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 case $orig_target_ranlib in
12661 [\\/]* | ?:[\\/]*)
12662 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in `dirname $aros_gcc_ar`
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12676 done
12677 done
12678 IFS=$as_save_IFS
12681 esac
12683 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12684 if test -n "$orig_target_ranlib"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12686 $as_echo "$orig_target_ranlib" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12694 if test "$orig_target_ranlib" = ""; then
12695 # Extract the first word of "ar", so it can be a program name with args.
12696 set dummy ar; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 case $orig_target_ranlib in
12703 [\\/]* | ?:[\\/]*)
12704 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12718 done
12719 done
12720 IFS=$as_save_IFS
12723 esac
12725 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12726 if test -n "$orig_target_ranlib"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12728 $as_echo "$orig_target_ranlib" >&6; }
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731 $as_echo "no" >&6; }
12737 else
12738 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12739 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12740 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12742 $as_echo_n "checking for $ac_word... " >&6; }
12743 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 case $orig_target_ranlib in
12747 [\\/]* | ?:[\\/]*)
12748 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752 for as_dir in $PATH
12754 IFS=$as_save_IFS
12755 test -z "$as_dir" && as_dir=.
12756 for ac_exec_ext in '' $ac_executable_extensions; do
12757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12758 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12760 break 2
12762 done
12763 done
12764 IFS=$as_save_IFS
12767 esac
12769 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12770 if test -n "$orig_target_ranlib"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12772 $as_echo "$orig_target_ranlib" >&6; }
12773 else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12779 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12782 req_avail=yes
12783 if test "$orig_target_ranlib" = ""; then
12784 req_avail=no
12786 if test "$orig_target_ranlib" = "no"; then
12787 req_avail=no
12789 if test "$req_avail" = "no"; then
12790 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12793 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12794 if test "$cross_compiling" = "yes" ; then
12795 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12796 set dummy ${target_tool_prefix}nm; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if ${ac_cv_path_orig_target_nm+:} false; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 case $orig_target_nm in
12803 [\\/]* | ?:[\\/]*)
12804 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12818 done
12819 done
12820 IFS=$as_save_IFS
12823 esac
12825 orig_target_nm=$ac_cv_path_orig_target_nm
12826 if test -n "$orig_target_nm"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12828 $as_echo "$orig_target_nm" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12835 else
12836 if test "$GCC" = "yes"; then
12837 aros_gcc_nm=`$CC -print-prog-name=nm`
12838 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12839 set dummy `basename $aros_gcc_nm`; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_path_orig_target_nm+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 case $orig_target_nm in
12846 [\\/]* | ?:[\\/]*)
12847 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in `dirname $aros_gcc_nm`
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12861 done
12862 done
12863 IFS=$as_save_IFS
12866 esac
12868 orig_target_nm=$ac_cv_path_orig_target_nm
12869 if test -n "$orig_target_nm"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12871 $as_echo "$orig_target_nm" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12879 if test "$orig_target_nm" = ""; then
12880 # Extract the first word of "nm", so it can be a program name with args.
12881 set dummy nm; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if ${ac_cv_path_orig_target_nm+:} false; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 case $orig_target_nm in
12888 [\\/]* | ?:[\\/]*)
12889 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 break 2
12903 done
12904 done
12905 IFS=$as_save_IFS
12908 esac
12910 orig_target_nm=$ac_cv_path_orig_target_nm
12911 if test -n "$orig_target_nm"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12913 $as_echo "$orig_target_nm" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12922 else
12923 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12924 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12925 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_orig_target_nm+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 case $orig_target_nm in
12932 [\\/]* | ?:[\\/]*)
12933 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12947 done
12948 done
12949 IFS=$as_save_IFS
12952 esac
12954 orig_target_nm=$ac_cv_path_orig_target_nm
12955 if test -n "$orig_target_nm"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12957 $as_echo "$orig_target_nm" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12964 orig_target_nm="$orig_target_nm $ac_tool_optarg"
12967 req_avail=yes
12968 if test "$orig_target_nm" = ""; then
12969 req_avail=no
12971 if test "$orig_target_nm" = "no"; then
12972 req_avail=no
12974 if test "$req_avail" = "no"; then
12975 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12978 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12979 if test "$cross_compiling" = "yes" ; then
12980 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12981 set dummy ${target_tool_prefix}strip; ac_word=$2
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983 $as_echo_n "checking for $ac_word... " >&6; }
12984 if ${ac_cv_path_orig_target_strip+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 case $orig_target_strip in
12988 [\\/]* | ?:[\\/]*)
12989 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12999 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13003 done
13004 done
13005 IFS=$as_save_IFS
13008 esac
13010 orig_target_strip=$ac_cv_path_orig_target_strip
13011 if test -n "$orig_target_strip"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13013 $as_echo "$orig_target_strip" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13020 else
13021 if test "$GCC" = "yes"; then
13022 aros_gcc_strip=`$CC -print-prog-name=strip`
13023 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13024 set dummy `basename $aros_gcc_strip`; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 $as_echo_n "checking for $ac_word... " >&6; }
13027 if ${ac_cv_path_orig_target_strip+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 case $orig_target_strip in
13031 [\\/]* | ?:[\\/]*)
13032 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in `dirname $aros_gcc_strip`
13038 IFS=$as_save_IFS
13039 test -z "$as_dir" && as_dir=.
13040 for ac_exec_ext in '' $ac_executable_extensions; do
13041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13042 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 break 2
13046 done
13047 done
13048 IFS=$as_save_IFS
13051 esac
13053 orig_target_strip=$ac_cv_path_orig_target_strip
13054 if test -n "$orig_target_strip"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13056 $as_echo "$orig_target_strip" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13064 if test "$orig_target_strip" = ""; then
13065 # Extract the first word of "strip", so it can be a program name with args.
13066 set dummy strip; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if ${ac_cv_path_orig_target_strip+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 case $orig_target_strip in
13073 [\\/]* | ?:[\\/]*)
13074 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13080 IFS=$as_save_IFS
13081 test -z "$as_dir" && as_dir=.
13082 for ac_exec_ext in '' $ac_executable_extensions; do
13083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086 break 2
13088 done
13089 done
13090 IFS=$as_save_IFS
13093 esac
13095 orig_target_strip=$ac_cv_path_orig_target_strip
13096 if test -n "$orig_target_strip"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13098 $as_echo "$orig_target_strip" >&6; }
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13107 else
13108 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13109 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13110 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112 $as_echo_n "checking for $ac_word... " >&6; }
13113 if ${ac_cv_path_orig_target_strip+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 case $orig_target_strip in
13117 [\\/]* | ?:[\\/]*)
13118 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13128 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130 break 2
13132 done
13133 done
13134 IFS=$as_save_IFS
13137 esac
13139 orig_target_strip=$ac_cv_path_orig_target_strip
13140 if test -n "$orig_target_strip"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13142 $as_echo "$orig_target_strip" >&6; }
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13149 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13152 req_avail=yes
13153 if test "$orig_target_strip" = ""; then
13154 req_avail=no
13156 if test "$orig_target_strip" = "no"; then
13157 req_avail=no
13159 if test "$req_avail" = "no"; then
13160 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13163 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13164 if test "$cross_compiling" = "yes" ; then
13165 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13166 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168 $as_echo_n "checking for $ac_word... " >&6; }
13169 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 case $orig_target_objcopy in
13173 [\\/]* | ?:[\\/]*)
13174 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186 break 2
13188 done
13189 done
13190 IFS=$as_save_IFS
13193 esac
13195 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13196 if test -n "$orig_target_objcopy"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13198 $as_echo "$orig_target_objcopy" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13205 else
13206 if test "$GCC" = "yes"; then
13207 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13208 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13209 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 case $orig_target_objcopy in
13216 [\\/]* | ?:[\\/]*)
13217 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in `dirname $aros_gcc_objcopy`
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13231 done
13232 done
13233 IFS=$as_save_IFS
13236 esac
13238 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13239 if test -n "$orig_target_objcopy"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13241 $as_echo "$orig_target_objcopy" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13249 if test "$orig_target_objcopy" = ""; then
13250 # Extract the first word of "objcopy", so it can be a program name with args.
13251 set dummy objcopy; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 case $orig_target_objcopy in
13258 [\\/]* | ?:[\\/]*)
13259 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13269 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13273 done
13274 done
13275 IFS=$as_save_IFS
13278 esac
13280 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13281 if test -n "$orig_target_objcopy"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13283 $as_echo "$orig_target_objcopy" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13292 else
13293 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13294 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13295 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 case $orig_target_objcopy in
13302 [\\/]* | ?:[\\/]*)
13303 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in $PATH
13309 IFS=$as_save_IFS
13310 test -z "$as_dir" && as_dir=.
13311 for ac_exec_ext in '' $ac_executable_extensions; do
13312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13313 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 break 2
13317 done
13318 done
13319 IFS=$as_save_IFS
13322 esac
13324 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13325 if test -n "$orig_target_objcopy"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13327 $as_echo "$orig_target_objcopy" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13334 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13337 req_avail=yes
13338 if test "$orig_target_objcopy" = ""; then
13339 req_avail=no
13341 if test "$orig_target_objcopy" = "no"; then
13342 req_avail=no
13344 if test "$req_avail" = "no"; then
13345 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13348 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13349 if test "$cross_compiling" = "yes" ; then
13350 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13351 set dummy ${target_tool_prefix}objdump; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_path_orig_target_objdump+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 case $orig_target_objdump in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13369 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13373 done
13374 done
13375 IFS=$as_save_IFS
13378 esac
13380 orig_target_objdump=$ac_cv_path_orig_target_objdump
13381 if test -n "$orig_target_objdump"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13383 $as_echo "$orig_target_objdump" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13390 else
13391 if test "$GCC" = "yes"; then
13392 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13393 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13394 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_path_orig_target_objdump+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 case $orig_target_objdump in
13401 [\\/]* | ?:[\\/]*)
13402 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in `dirname $aros_gcc_objdump`
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13416 done
13417 done
13418 IFS=$as_save_IFS
13421 esac
13423 orig_target_objdump=$ac_cv_path_orig_target_objdump
13424 if test -n "$orig_target_objdump"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13426 $as_echo "$orig_target_objdump" >&6; }
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13434 if test "$orig_target_objdump" = ""; then
13435 # Extract the first word of "objdump", so it can be a program name with args.
13436 set dummy objdump; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if ${ac_cv_path_orig_target_objdump+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 case $orig_target_objdump in
13443 [\\/]* | ?:[\\/]*)
13444 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13450 IFS=$as_save_IFS
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 break 2
13458 done
13459 done
13460 IFS=$as_save_IFS
13463 esac
13465 orig_target_objdump=$ac_cv_path_orig_target_objdump
13466 if test -n "$orig_target_objdump"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13468 $as_echo "$orig_target_objdump" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13477 else
13478 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13479 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13480 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482 $as_echo_n "checking for $ac_word... " >&6; }
13483 if ${ac_cv_path_orig_target_objdump+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 case $orig_target_objdump in
13487 [\\/]* | ?:[\\/]*)
13488 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13494 IFS=$as_save_IFS
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13502 done
13503 done
13504 IFS=$as_save_IFS
13507 esac
13509 orig_target_objdump=$ac_cv_path_orig_target_objdump
13510 if test -n "$orig_target_objdump"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13512 $as_echo "$orig_target_objdump" >&6; }
13513 else
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13519 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13522 req_avail=yes
13523 if test "$orig_target_objdump" = ""; then
13524 req_avail=no
13526 if test "$orig_target_objdump" = "no"; then
13527 req_avail=no
13529 if test "$req_avail" = "no"; then
13530 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13534 if test "$kernel_tool_prefix" = "none" ; then
13535 # No kernel tools specified
13536 # Assume target tools == kernel tools with ELF wrapper
13537 aros_kernel_cc=$orig_target_cc
13538 aros_kernel_cxx=$orig_target_cxx
13539 aros_kernel_cpp=$orig_target_cpp
13540 aros_kernel_ld=$orig_target_ld
13541 aros_kernel_as=$orig_target_as
13542 aros_kernel_ar=$orig_target_ar
13543 aros_kernel_ranlib=$orig_target_ranlib
13544 aros_kernel_nm=$orig_target_nm
13545 aros_kernel_strip=$orig_target_strip
13546 aros_kernel_objcopy=$orig_target_objcopy
13547 aros_kernel_objdump=$orig_target_objdump
13548 use_kernel_cc_wrapper=yes
13551 # At this point, all aros_kernel_* and aros_target_*
13552 # tools should be set up correctly
13554 CC="$aros_kernel_cc $kernel_tool_flags"
13555 CPP="$aros_kernel_cpp"
13557 #-----------------------------------------------------------------------------
13559 # Find all the tools we need to compile. This could be cross-compiling
13560 # though! If that is the case we use the GNU form of the target and
13561 # simply add this to the front of the binary name. This is rather simple,
13562 # but it should work under most circumstances.
13564 # The default tools are to use the same as the host, but only if the
13565 # host and target CPU are the same. With GCC this is normally enough.
13568 aros_cc_pre=""
13569 aros_shared_ld="$aros_host_ld"
13571 aros_target_mkdep="$aros_host_mkdep"
13573 # The default tools executables to be linked to.
13574 if test "$rescomp" != ""; then
13575 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13576 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 case $aros_kernel_rescomp in
13583 [\\/]* | ?:[\\/]*)
13584 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13594 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13598 done
13599 done
13600 IFS=$as_save_IFS
13603 esac
13605 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13606 if test -n "$aros_kernel_rescomp"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13608 $as_echo "$aros_kernel_rescomp" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13615 req_avail=yes
13616 if test "$aros_kernel_rescomp" = ""; then
13617 req_avail=no
13619 if test "$aros_kernel_rescomp" = "no"; then
13620 req_avail=no
13622 if test "$req_avail" = "no"; then
13623 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13627 # Set up the sources for the symlink farm
13628 if test "$crosstools" = "yes"; then
13629 crosstools_target=tools-crosstools
13632 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13633 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13635 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13636 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13637 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13638 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13639 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13640 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13641 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13643 # aros_cc_pre is a variable that is added to the front of the compiler name
13644 # in the generated aros-gcc shell script. We need this to enable the cache
13645 # to work across cleaned builds. Also, support DISTCC using the correct
13646 # environment variable.
13649 if test "x${DISTCC}" != "x" ; then
13650 if test "x${CCACHE}" != "x" ; then
13651 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13652 else
13653 aros_cc_pre="${DISTCC} "
13655 else
13656 if test "x${CCACHE}" != "x" ; then
13657 aros_cc_pre="${CCACHE} "
13661 aros_target_nostdinc_cflags=-nostdinc
13663 aros_target_nostartup_ldflags=-nostartfiles
13665 aros_target_nix_ldflags=-nix
13667 aros_target_detach_ldflags=-detach
13669 aros_target_nostdlib_ldflags=-nostdlib
13672 # Target tools
13674 if test "$aros_target_toolchain" != "yes"; then
13675 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13676 if test "$GCC" = "yes"; then
13677 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13679 else
13680 # We do not know which c compiler version we are going to build and what we need to know
13681 # here is different for different versions so this will be set later during the
13682 # build of crosstools.
13683 if test "$aros_toolchain" = "gnu" ; then
13684 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13685 elif test "$aros_toolchain" = "llvm" ; then
13686 prefix="$AROS_CROSSTOOLSDIR/bin/"
13688 aros_target_cc_path=@aros_target_cc_path@
13690 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13691 aros_target_cc="${prefix}${toolchain_c_compiler}"
13692 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13693 aros_target_as="${prefix}${toolchain_as}"
13694 if test "${use_ld_wrapper}" = "yes"; then
13695 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13696 else
13697 aros_target_ld="${prefix}${toolchain_ld}"
13699 aros_toolchain_ld="${prefix}${toolchain_ld}"
13701 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13702 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13703 aros_target_objdump="${prefix}${toolchain_objdump}"
13704 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13705 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13706 aros_target_strip="${prefix}${toolchain_strip}"
13707 aros_plain_nm="${prefix}${toolchain_nm}"
13708 aros_plain_ar="${prefix}${toolchain_ar}"
13710 # Check whether --enable-includes was given.
13711 if test "${enable_includes+set}" = set; then :
13712 enableval=$enable_includes; aros_target_incl=$enable_includes
13713 else
13714 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13718 if test "$aros_kernel_includes" = ""; then
13719 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13720 aros_kernel_includes="-isystem $aros_target_incl"
13724 if test "$aros_kernel_includes" != "" ; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13726 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13727 if test "$aros_kernel_cc_includes" = "" ; then
13728 # Try to guess where the directory is.
13729 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13730 if test -d $aros_kernel_cc_includes; then
13731 # Check if there is also an include-fixed directory and add it
13732 # to kernel compiler's include path as it may contain some of
13733 # the headers we need.
13734 if test -d "$aros_kernel_cc_includes"-fixed; then
13735 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13737 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13738 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13739 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13741 else
13742 # The directory doesn't exist, we need to do some more work.
13743 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13745 # These are the headers we're looking for.
13746 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13747 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13748 zutil.h stdint.h"
13750 dirs=
13751 for h in $headers; do
13752 # Which other headers are needed by each of the above?
13753 deps=$(echo "#include <$h>" | \
13754 $aros_kernel_cc -E -M - 2>/dev/null | \
13755 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13757 # Copy all the needed headers to a directory beneath gendir.
13758 for d in $deps; do
13759 h=$(basename $d)
13760 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13761 sed -n "s,^.*/include\(/.*\),\1,p")
13762 ! test -d $dir && mkdir -p $dir
13763 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13764 done
13765 done
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13769 $as_echo "$aros_kernel_cc_includes" >&6; }
13770 # Adding -nostdinc to kernel includes as they are always used together.
13771 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13774 if test "$crosstools" != "yes"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13776 $as_echo_n "checking for the target compiler's include path... " >&6; }
13777 if test "$aros_target_cc_includes" = "" ; then
13778 #try to guess where the directory is
13779 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13780 if ! test -d $aros_target_cc_includes; then
13781 #the directory doesn't exist, we need to do some more work
13782 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13784 #these are the headers we're looking for
13785 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13786 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13787 zutil.h"
13789 dirs=
13790 for h in $headers; do
13791 #which other headers each of the above headers needs?
13792 deps=$(echo "#include <$h>" | \
13793 $orig_target_cc -E -M - 2>/dev/null | \
13794 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13796 #copy all the needed headers to a directory beneath gendir
13797 for d in $deps; do
13798 h=$(basename $d)
13799 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13800 sed -n "s,^.*/include\(/.*\),\1,p")
13801 ! test -d $dir && mkdir -p $dir
13802 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13803 done
13804 done
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13808 $as_echo "$aros_target_cc_includes" >&6; }
13809 else
13810 # We do not know which c compiler version we are going to build and what we need to know
13811 # here is different for different versions so this will be set later during the
13812 # build of crosstools.
13813 aros_target_cc_includes=@aros_target_cc_includes@
13817 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13818 # On GCC >= 4.0 -iquote should be used
13821 save_cc="$CC"
13822 save_cflags="$CFLAGS"
13823 CFLAGS="-iquote."
13824 kernel_cflags_iquote=$host_cflags_iquote
13825 kernel_cflags_iquote_end=$host_cflags_iquote_end
13826 if test "x-$cross_compiling" = "x-yes"; then
13827 CC="$aros_kernel_cc"
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13829 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13830 if test "x-$crosstools" != "x-yes"; then
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13835 main ()
13839 return 0;
13841 _ACEOF
13842 if ac_fn_c_try_compile "$LINENO"; then :
13843 use_no_stack_protector="yes"
13844 else
13845 use_no_stack_protector="no"
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 else
13849 # we do know it is supported for the smallest version of gcc we are going to build
13850 # we assume it's also supported by later versions
13851 use_no_stack_protector=yes
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13854 $as_echo "$use_no_stack_protector" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13856 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13857 if test "x-$crosstools" != "x-yes"; then
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13862 main ()
13866 return 0;
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870 has_iquote="yes"
13871 else
13872 has_iquote="no"
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 else
13876 # we do know it is supported for the smallest version of gcc we are going to build
13877 # we assume it's also supported by later versions
13878 has_iquote=yes
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13881 $as_echo "$has_iquote" >&6; }
13882 if test "x-$has_iquote" = "x-yes" ; then
13883 kernel_cflags_iquote=-iquote
13884 kernel_cflags_iquote_end=
13885 else
13886 kernel_cflags_iquote=-I
13887 kernel_cflags_iquote_end=-I-
13890 if test "x-$use_no_stack_protector" = "x-yes" ; then
13891 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13894 #-----------------------------------------------------------------------------
13896 # Check if we can explicitly choose older version of symbol hashing
13898 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13899 CC="$aros_kernel_cc"
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13901 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13906 main ()
13910 return 0;
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"; then :
13914 use_hash_style="yes"
13915 else
13916 use_hash_style="no"
13918 rm -f core conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13921 $as_echo "$use_hash_style" >&6; }
13922 if test "x-$use_hash_style" = "x-yes" ; then
13923 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13925 CC="$save_cc"
13926 CFLAGS="$save_cflags"
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13935 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13937 # Check whether --with-resolution was given.
13938 if test "${with_resolution+set}" = set; then :
13939 withval=$with_resolution; resolution=$withval
13940 else
13941 resolution=none
13944 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13945 if test "$resolution" = "yes" ; then
13946 resolution="none"
13948 if test "$resolution" = "no" ; then
13949 resolution="none"
13951 if test "$resolution" != "none" ; then
13952 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13953 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13954 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13957 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13958 aros_cv_nominal_width=$aros_nominal_width
13959 aros_cv_nominal_height=$aros_nominal_height
13960 aros_cv_nominal_depth=$aros_nominal_depth
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13963 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13965 # Check whether --with-serial-debug was given.
13966 if test "${with_serial_debug+set}" = set; then :
13967 withval=$with_serial_debug; serial_debug=$withval
13968 else
13969 serial_debug=none
13972 if test "$aros_serial_debug" = 0 ; then
13973 serial_debug_forced=""
13974 if test "$serial_debug" = "yes" ; then
13975 serial_debug="1"
13977 if test "$serial_debug" = "no" ; then
13978 serial_debug="none"
13980 else
13981 serial_debug_forced="(forced)"
13982 serial_debug=$aros_serial_debug
13984 if test "$serial_debug" != "none" ; then
13985 aros_serial_debug=$serial_debug
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13987 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13994 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13995 # Check whether --enable-palm_debug_hack was given.
13996 if test "${enable_palm_debug_hack+set}" = set; then :
13997 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13998 else
13999 palm_debug_hack="no"
14002 if test "$palm_debug_hack" = "yes" ; then
14003 aros_palm_debug_hack="1"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14006 $as_echo "$palm_debug_hack" >&6; }
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14009 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14010 # Check whether --enable-usb30_code was given.
14011 if test "${enable_usb30_code+set}" = set; then :
14012 enableval=$enable_usb30_code; usb30_code="yes"
14013 else
14014 usb30_code="no"
14017 if test "$usb30_code" = "yes" ; then
14018 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
14019 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14022 $as_echo "$usb30_code" >&6; }
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14025 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14026 # Check whether --enable-nesting_supervisor was given.
14027 if test "${enable_nesting_supervisor+set}" = set; then :
14028 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14029 else
14030 nesting_supervisor="no"
14033 if test "$nesting_supervisor" = "yes" ; then
14034 aros_nesting_supervisor="1"
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14037 $as_echo "$nesting_supervisor" >&6; }
14039 if test "$aros_enable_mmu" = "" ; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14041 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14042 # Check whether --enable-mmu was given.
14043 if test "${enable_mmu+set}" = set; then :
14044 enableval=$enable_mmu; aros_enable_mmu=$enableval
14045 else
14046 aros_enable_mmu="yes"
14049 if test "$aros_enable_mmu" = "" ; then
14050 aros_enable_mmu="yes"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14053 $as_echo "$aros_enable_mmu" >&6; }
14055 if test "$aros_enable_mmu" = "no" ; then
14056 aros_enable_mmu="0"
14057 else
14058 aros_enable_mmu="1"
14062 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14064 if test "x-$need_dlopen" != "x-no" ; then
14065 save_libs="$LIBS"
14066 LIBS=""
14067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14068 if test "x$ac_cv_func_dlopen" = xyes; then :
14069 have_dl="yes"
14070 else
14071 have_dl="no"
14074 if test "x-$have_dl" = "x-no" ; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14077 if ${ac_cv_lib_dl_dlopen+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-ldl $LIBS"
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14088 #ifdef __cplusplus
14089 extern "C"
14090 #endif
14091 char dlopen ();
14093 main ()
14095 return dlopen ();
14097 return 0;
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"; then :
14101 ac_cv_lib_dl_dlopen=yes
14102 else
14103 ac_cv_lib_dl_dlopen=no
14105 rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14111 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14112 have_dl="yes"
14113 aros_host_ldflags="$aros_host_ldflags -ldl"
14114 else
14115 have_dl="no"
14119 if test "x-$have_dl" = "x-no" ; then
14120 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14122 LIBS="$save_libs"
14126 # Check whether --enable-x11_hidd was given.
14127 if test "${enable_x11_hidd+set}" = set; then :
14128 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14129 else
14130 x11_hidd="$need_x11"
14133 case "x-$x11_hidd" in
14134 x-yes|x-no|x-auto) ;;
14135 *) x11_hidd="$need_x11" ;;
14136 esac
14138 ENABLE_X11=0
14140 if test "x-$x11_hidd" != "x-no" ; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14143 $as_echo_n "checking for X... " >&6; }
14146 # Check whether --with-x was given.
14147 if test "${with_x+set}" = set; then :
14148 withval=$with_x;
14151 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14152 if test "x$with_x" = xno; then
14153 # The user explicitly disabled X.
14154 have_x=disabled
14155 else
14156 case $x_includes,$x_libraries in #(
14157 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14158 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 # One or both of the vars are not set, and there is no cached value.
14162 ac_x_includes=no ac_x_libraries=no
14163 rm -f -r conftest.dir
14164 if mkdir conftest.dir; then
14165 cd conftest.dir
14166 cat >Imakefile <<'_ACEOF'
14167 incroot:
14168 @echo incroot='${INCROOT}'
14169 usrlibdir:
14170 @echo usrlibdir='${USRLIBDIR}'
14171 libdir:
14172 @echo libdir='${LIBDIR}'
14173 _ACEOF
14174 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14175 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14176 for ac_var in incroot usrlibdir libdir; do
14177 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14178 done
14179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14180 for ac_extension in a so sl dylib la dll; do
14181 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14182 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14183 ac_im_usrlibdir=$ac_im_libdir; break
14185 done
14186 # Screen out bogus values from the imake configuration. They are
14187 # bogus both because they are the default anyway, and because
14188 # using them would break gcc on systems where it needs fixed includes.
14189 case $ac_im_incroot in
14190 /usr/include) ac_x_includes= ;;
14191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14192 esac
14193 case $ac_im_usrlibdir in
14194 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14196 esac
14198 cd ..
14199 rm -f -r conftest.dir
14202 # Standard set of common directories for X headers.
14203 # Check X11 before X11Rn because it is often a symlink to the current release.
14204 ac_x_header_dirs='
14205 /usr/X11/include
14206 /usr/X11R7/include
14207 /usr/X11R6/include
14208 /usr/X11R5/include
14209 /usr/X11R4/include
14211 /usr/include/X11
14212 /usr/include/X11R7
14213 /usr/include/X11R6
14214 /usr/include/X11R5
14215 /usr/include/X11R4
14217 /usr/local/X11/include
14218 /usr/local/X11R7/include
14219 /usr/local/X11R6/include
14220 /usr/local/X11R5/include
14221 /usr/local/X11R4/include
14223 /usr/local/include/X11
14224 /usr/local/include/X11R7
14225 /usr/local/include/X11R6
14226 /usr/local/include/X11R5
14227 /usr/local/include/X11R4
14229 /usr/X386/include
14230 /usr/x386/include
14231 /usr/XFree86/include/X11
14233 /usr/include
14234 /usr/local/include
14235 /usr/unsupported/include
14236 /usr/athena/include
14237 /usr/local/x11r5/include
14238 /usr/lpp/Xamples/include
14240 /usr/openwin/include
14241 /usr/openwin/share/include'
14243 if test "$ac_x_includes" = no; then
14244 # Guess where to find include files, by looking for Xlib.h.
14245 # First, try using that file with no special directory specified.
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248 #include <X11/Xlib.h>
14249 _ACEOF
14250 if ac_fn_c_try_cpp "$LINENO"; then :
14251 # We can compile using X headers with no special include directory.
14252 ac_x_includes=
14253 else
14254 for ac_dir in $ac_x_header_dirs; do
14255 if test -r "$ac_dir/X11/Xlib.h"; then
14256 ac_x_includes=$ac_dir
14257 break
14259 done
14261 rm -f conftest.err conftest.i conftest.$ac_ext
14262 fi # $ac_x_includes = no
14264 if test "$ac_x_libraries" = no; then
14265 # Check for the libraries.
14266 # See if we find them without any special options.
14267 # Don't add to $LIBS permanently.
14268 ac_save_LIBS=$LIBS
14269 LIBS="-lX11 $LIBS"
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 #include <X11/Xlib.h>
14274 main ()
14276 XrmInitialize ()
14278 return 0;
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 LIBS=$ac_save_LIBS
14283 # We can link X programs with no special library path.
14284 ac_x_libraries=
14285 else
14286 LIBS=$ac_save_LIBS
14287 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14289 # Don't even attempt the hair of trying to link an X program!
14290 for ac_extension in a so sl dylib la dll; do
14291 if test -r "$ac_dir/libX11.$ac_extension"; then
14292 ac_x_libraries=$ac_dir
14293 break 2
14295 done
14296 done
14298 rm -f core conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14300 fi # $ac_x_libraries = no
14302 case $ac_x_includes,$ac_x_libraries in #(
14303 no,* | *,no | *\'*)
14304 # Didn't find X, or a directory has "'" in its name.
14305 ac_cv_have_x="have_x=no";; #(
14307 # Record where we found X for the cache.
14308 ac_cv_have_x="have_x=yes\
14309 ac_x_includes='$ac_x_includes'\
14310 ac_x_libraries='$ac_x_libraries'"
14311 esac
14313 ;; #(
14314 *) have_x=yes;;
14315 esac
14316 eval "$ac_cv_have_x"
14317 fi # $with_x != no
14319 if test "$have_x" != yes; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14321 $as_echo "$have_x" >&6; }
14322 no_x=yes
14323 else
14324 # If each of the values was on the command line, it overrides each guess.
14325 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14326 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14327 # Update the cache value to reflect the command line values.
14328 ac_cv_have_x="have_x=yes\
14329 ac_x_includes='$x_includes'\
14330 ac_x_libraries='$x_libraries'"
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14332 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14336 if test -n "$x_includes"; then
14337 X_CFLAGS="$X_CFLAGS -I$x_includes"
14340 if test -n "$x_libraries"; then
14341 X_LIBS="$X_LIBS -L$x_libraries"
14344 if test "x-$no_x" = "x-yes" ; then
14346 if test "x-$x11_hidd" != "x-auto" ; then
14347 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14350 else
14351 host_x_gfx=yes
14352 ENABLE_X11=1
14354 aros_host_x11_cflags="$X_CFLAGS"
14355 aros_host_x11_ldflags="$X_LIBS -lX11"
14357 # Check whether --enable-x11_shm was given.
14358 if test "${enable_x11_shm+set}" = set; then :
14359 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14360 else
14361 x11_hidd_shm="auto"
14364 case "x-$x11_hidd_shm" in
14365 x-yes|x-no|x-auto) ;;
14366 *) x11_hidd_shm="auto" ;;
14367 esac
14369 have_xshm=no
14371 if test "x-$x11_hidd_shm" != "x-no" ; then
14373 for ac_header in sys/ipc.h
14374 do :
14375 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14376 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14377 cat >>confdefs.h <<_ACEOF
14378 #define HAVE_SYS_IPC_H 1
14379 _ACEOF
14383 done
14385 for ac_header in sys/shm.h
14386 do :
14387 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14388 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_SYS_SHM_H 1
14391 _ACEOF
14395 done
14398 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14400 save_cflags="$CFLAGS"
14401 save_ldflags="$LDFLAGS"
14402 CFLAGS="$CFLAGS $X_CFLAGS"
14403 LDFLAGS="$LDFLAGS $X_LIBS"
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14405 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14406 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 ac_check_lib_save_LIBS=$LIBS
14410 LIBS="-lXext $LIBS"
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14414 /* Override any GCC internal prototype to avoid an error.
14415 Use char because int might match the return type of a GCC
14416 builtin and then its argument prototype would still apply. */
14417 #ifdef __cplusplus
14418 extern "C"
14419 #endif
14420 char XShmQueryExtension ();
14422 main ()
14424 return XShmQueryExtension ();
14426 return 0;
14428 _ACEOF
14429 if ac_fn_c_try_link "$LINENO"; then :
14430 ac_cv_lib_Xext_XShmQueryExtension=yes
14431 else
14432 ac_cv_lib_Xext_XShmQueryExtension=no
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14436 LIBS=$ac_check_lib_save_LIBS
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14439 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14440 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14441 have_xshm=yes
14444 CFLAGS="$save_cflags"
14445 LDFLAGS="$save_ldflags"
14449 if test "x-$have_xshm" = "x-yes" ; then
14450 DO_XSHM_SUPPORT="1"
14451 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14452 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14453 else
14454 DO_XSHM_SUPPORT="0"
14458 # Check whether --enable-x11_vidmode was given.
14459 if test "${enable_x11_vidmode+set}" = set; then :
14460 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14461 else
14462 x11_hidd_vidmode="auto"
14465 case "x-$x11_hidd_vidmode" in
14466 x-yes|x-no|x-auto) ;;
14467 *) x11_hidd_vidmode="auto" ;;
14468 esac
14470 have_vidmode=no
14472 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14474 save_cflags="$CFLAGS"
14475 save_ldflags="$LDFLAGS"
14476 CFLAGS="$CFLAGS $X_CFLAGS"
14477 LDFLAGS="$LDFLAGS $X_LIBS"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14479 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14480 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lXxf86vm $LIBS"
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14488 /* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 char XF86VidModeQueryExtension ();
14496 main ()
14498 return XF86VidModeQueryExtension ();
14500 return 0;
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14505 else
14506 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14513 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14514 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14515 have_vidmode=yes
14518 CFLAGS="$save_cflags"
14519 LDFLAGS="$save_ldflags"
14522 if test "x-$have_vidmode" = "x-yes" ; then
14523 DO_VIDMODE_SUPPORT="1"
14524 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14525 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14526 else
14527 DO_VIDMODE_SUPPORT="0"
14532 # Check whether --enable-sdl_hidd was given.
14533 if test "${enable_sdl_hidd+set}" = set; then :
14534 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14535 else
14536 sdl_hidd="auto"
14539 case "x-$sdl_hidd" in
14540 x-yes|x-no|x-auto) ;;
14541 *) sdl_hidd="auto" ;;
14542 esac
14544 if test "x-$sdl_hidd" != "x-no" ; then
14546 SDL_VERSION=1.2.5
14548 # Check whether --with-sdl-prefix was given.
14549 if test "${with_sdl_prefix+set}" = set; then :
14550 withval=$with_sdl_prefix; sdl_prefix="$withval"
14551 else
14552 sdl_prefix=""
14556 # Check whether --with-sdl-exec-prefix was given.
14557 if test "${with_sdl_exec_prefix+set}" = set; then :
14558 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14559 else
14560 sdl_exec_prefix=""
14563 # Check whether --enable-sdltest was given.
14564 if test "${enable_sdltest+set}" = set; then :
14565 enableval=$enable_sdltest;
14566 else
14567 enable_sdltest=yes
14571 if test x$sdl_exec_prefix != x ; then
14572 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14573 if test x${SDL_CONFIG+set} != xset ; then
14574 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14577 if test x$sdl_prefix != x ; then
14578 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14579 if test x${SDL_CONFIG+set} != xset ; then
14580 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14584 as_save_PATH="$PATH"
14585 if test "x$prefix" != xNONE; then
14586 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14588 # Extract the first word of "sdl-config", so it can be a program name with args.
14589 set dummy sdl-config; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 $as_echo_n "checking for $ac_word... " >&6; }
14592 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 case $SDL_CONFIG in
14596 [\\/]* | ?:[\\/]*)
14597 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601 for as_dir in $PATH
14603 IFS=$as_save_IFS
14604 test -z "$as_dir" && as_dir=.
14605 for ac_exec_ext in '' $ac_executable_extensions; do
14606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14607 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14609 break 2
14611 done
14612 done
14613 IFS=$as_save_IFS
14615 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14617 esac
14619 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14620 if test -n "$SDL_CONFIG"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14622 $as_echo "$SDL_CONFIG" >&6; }
14623 else
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625 $as_echo "no" >&6; }
14629 PATH="$as_save_PATH"
14630 min_sdl_version=$SDL_VERSION
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14632 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14633 no_sdl=""
14634 if test "$SDL_CONFIG" = "no" ; then
14635 no_sdl=yes
14636 else
14637 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14638 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14640 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14642 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14644 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14645 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14646 if test "x$enable_sdltest" = "xyes" ; then
14647 ac_save_CFLAGS="$CFLAGS"
14648 ac_save_CXXFLAGS="$CXXFLAGS"
14649 ac_save_LIBS="$LIBS"
14650 CFLAGS="$CFLAGS $SDL_CFLAGS"
14651 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14652 LIBS="$LIBS $SDL_LIBS"
14653 rm -f conf.sdltest
14654 if test "$cross_compiling" = yes; then :
14655 echo $ac_n "cross compiling; assumed OK... $ac_c"
14656 else
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14660 #include <stdio.h>
14661 #include <stdlib.h>
14662 #include <string.h>
14663 #include "SDL.h"
14665 char*
14666 my_strdup (char *str)
14668 char *new_str;
14670 if (str)
14672 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14673 strcpy (new_str, str);
14675 else
14676 new_str = NULL;
14678 return new_str;
14681 int main (int argc, char *argv[])
14683 int major, minor, micro;
14684 char *tmp_version;
14686 /* This hangs on some systems (?)
14687 system ("touch conf.sdltest");
14689 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14691 /* HP/UX 9 (%@#!) writes to sscanf strings */
14692 tmp_version = my_strdup("$min_sdl_version");
14693 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14694 printf("%s, bad version string\n", "$min_sdl_version");
14695 exit(1);
14698 if (($sdl_major_version > major) ||
14699 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14700 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14702 return 0;
14704 else
14706 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14707 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14708 printf("*** best to upgrade to the required version.\n");
14709 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14710 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14711 printf("*** config.cache before re-running configure\n");
14712 return 1;
14717 _ACEOF
14718 if ac_fn_c_try_run "$LINENO"; then :
14720 else
14721 no_sdl=yes
14723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14724 conftest.$ac_objext conftest.beam conftest.$ac_ext
14727 CFLAGS="$ac_save_CFLAGS"
14728 CXXFLAGS="$ac_save_CXXFLAGS"
14729 LIBS="$ac_save_LIBS"
14732 if test "x$no_sdl" = x ; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14734 $as_echo "yes" >&6; }
14735 have_sdl="yes"
14736 else
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 $as_echo "no" >&6; }
14739 if test "$SDL_CONFIG" = "no" ; then
14740 echo "*** The sdl-config script installed by SDL could not be found"
14741 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14742 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14743 echo "*** full path to sdl-config."
14744 else
14745 if test -f conf.sdltest ; then
14747 else
14748 echo "*** Could not run SDL test program, checking why..."
14749 CFLAGS="$CFLAGS $SDL_CFLAGS"
14750 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14751 LIBS="$LIBS $SDL_LIBS"
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14755 #include <stdio.h>
14756 #include "SDL.h"
14758 int main(int argc, char *argv[])
14759 { return 0; }
14760 #undef main
14761 #define main K_and_R_C_main
14764 main ()
14766 return 0;
14768 return 0;
14770 _ACEOF
14771 if ac_fn_c_try_link "$LINENO"; then :
14772 echo "*** The test program compiled, but did not run. This usually means"
14773 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14774 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14775 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14776 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14777 echo "*** is required on your system"
14778 echo "***"
14779 echo "*** If you have an old version installed, it is best to remove it, although"
14780 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14781 else
14782 echo "*** The test program failed to compile or link. See the file config.log for the"
14783 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14784 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14785 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14787 rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14789 CFLAGS="$ac_save_CFLAGS"
14790 CXXFLAGS="$ac_save_CXXFLAGS"
14791 LIBS="$ac_save_LIBS"
14794 SDL_CFLAGS=""
14795 SDL_LIBS=""
14796 have_sdl="no"
14800 rm -f conf.sdltest
14803 if test "x-$have_sdl" != "x-yes" ; then
14805 if test "x-$sdl_hidd" != "x-auto" ; then
14806 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14809 else
14810 host_sdl_gfx=yes
14811 aros_host_sdl_cflags=$SDL_CFLAGS
14812 aros_host_sdl_libs=$SDL_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14820 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14821 # Check whether --enable-dbus was given.
14822 if test "${enable_dbus+set}" = set; then :
14823 enableval=$enable_dbus; dbus="yes"
14824 else
14825 dbus="no"
14828 if test "$dbus" = "yes" ; then
14829 ENABLE_DBUS=1
14830 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14831 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14832 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14833 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14834 else
14835 ENABLE_DBUS=0
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14838 $as_echo "$dbus" >&6; }
14840 if test "$use_kernel_cc_wrapper" = "yes" ; then
14841 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14845 # Generic
14859 # Compatability with other Amiga-like operation systems
14862 # Host related
14891 # Target Related
14964 # Hosted Graphics Related
14982 # Native version related
14987 # Palm native version related
14990 # Unix/Hosted version related
14993 # MMU related
14996 # Apple iOS related
15001 # ARM default GCC target related
15008 # Android related
15013 # DBUS related
15020 #X11 related
15023 # Debug related
15029 # Collect-aros stuff: "-ius" to ignore undefined symbols
15032 # C compiler related
15037 #ObjC compiler related
15040 #Java related
15043 # USB3.0 code
15046 case "$aros_flavour" in
15047 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15048 aros_flavour="emulation" ;;
15049 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15050 aros_flavour="emulation" ;;
15051 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15052 aros_flavour="standalone";;
15053 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15054 aros_flavour="standalone";;
15055 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15056 aros_flavour="native" ;;
15057 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15058 aros_flavour="native" ;;
15059 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15060 aros_flavour="linklib" ;;
15061 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15062 aros_flavour="palmnative" ;;
15063 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15064 aros_flavour="mac68knative" ;;
15065 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15066 aros_flavour="ppcnative" ;;
15067 esac
15069 if test ! -d ${aros_inc_dir} ; then
15070 ${MKDIR} ${aros_inc_dir}
15072 if test ! -d ${aros_geninc_dir} ; then
15073 ${MKDIR} ${aros_geninc_dir}
15075 if test ! -d ${aros_hostcfg_dir} ; then
15076 ${MKDIR} ${aros_hostcfg_dir}
15078 if test ! -d ${aros_targetcfg_dir} ; then
15079 ${MKDIR} ${aros_targetcfg_dir}
15081 if test ! -d ${aros_tools_dir} ; then
15082 ${MKDIR} ${aros_tools_dir}
15084 if test ! -d ${aros_scripts_dir} ; then
15085 ${MKDIR} ${aros_scripts_dir}
15088 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15091 # Generic build tools (metamake, etc)
15092 ac_config_commands="$ac_config_commands genmf-executable-support"
15094 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/mmakefile:compiler/include/mmakefile.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15097 # Binutils
15098 ac_config_commands="$ac_config_commands binutils-support"
15100 if test "${use_ld_wrapper}" = "yes"; then
15101 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"
15104 # Bare Elf support script and spec
15105 if test "${use_kernel_cc_wrapper}" = "yes"; then
15106 ac_config_commands="$ac_config_commands elf-compiler-support"
15108 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"
15112 # Host compiler support scripts and spec
15113 if test "${aros_target_toolchain}" = "no"; then
15114 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15116 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"
15120 # Android support
15121 if test "$aros_target_variant" == "android"; then
15122 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15126 # cmake helper
15127 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15130 cat >confcache <<\_ACEOF
15131 # This file is a shell script that caches the results of configure
15132 # tests run on this system so they can be shared between configure
15133 # scripts and configure runs, see configure's option --config-cache.
15134 # It is not useful on other systems. If it contains results you don't
15135 # want to keep, you may remove or edit it.
15137 # config.status only pays attention to the cache file if you give it
15138 # the --recheck option to rerun configure.
15140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15142 # following values.
15144 _ACEOF
15146 # The following way of writing the cache mishandles newlines in values,
15147 # but we know of no workaround that is simple, portable, and efficient.
15148 # So, we kill variables containing newlines.
15149 # Ultrix sh set writes to stderr and can't be redirected directly,
15150 # and sets the high bit in the cache file unless we assign to the vars.
15152 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15153 eval ac_val=\$$ac_var
15154 case $ac_val in #(
15155 *${as_nl}*)
15156 case $ac_var in #(
15157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15159 esac
15160 case $ac_var in #(
15161 _ | IFS | as_nl) ;; #(
15162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15163 *) { eval $ac_var=; unset $ac_var;} ;;
15164 esac ;;
15165 esac
15166 done
15168 (set) 2>&1 |
15169 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15170 *${as_nl}ac_space=\ *)
15171 # `set' does not quote correctly, so add quotes: double-quote
15172 # substitution turns \\\\ into \\, and sed turns \\ into \.
15173 sed -n \
15174 "s/'/'\\\\''/g;
15175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15176 ;; #(
15178 # `set' quotes correctly as required by POSIX, so do not add quotes.
15179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15181 esac |
15182 sort
15184 sed '
15185 /^ac_cv_env_/b end
15186 t clear
15187 :clear
15188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15189 t end
15190 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15191 :end' >>confcache
15192 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15193 if test -w "$cache_file"; then
15194 if test "x$cache_file" != "x/dev/null"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15196 $as_echo "$as_me: updating cache $cache_file" >&6;}
15197 if test ! -f "$cache_file" || test -h "$cache_file"; then
15198 cat confcache >"$cache_file"
15199 else
15200 case $cache_file in #(
15201 */* | ?:*)
15202 mv -f confcache "$cache_file"$$ &&
15203 mv -f "$cache_file"$$ "$cache_file" ;; #(
15205 mv -f confcache "$cache_file" ;;
15206 esac
15209 else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15211 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15214 rm -f confcache
15216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15217 # Let make expand exec_prefix.
15218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15220 DEFS=-DHAVE_CONFIG_H
15222 ac_libobjs=
15223 ac_ltlibobjs=
15225 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15226 # 1. Remove the extension, and $U if already installed.
15227 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15228 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15229 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15230 # will be set to the directory where LIBOBJS objects are built.
15231 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15232 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15233 done
15234 LIBOBJS=$ac_libobjs
15236 LTLIBOBJS=$ac_ltlibobjs
15240 : "${CONFIG_STATUS=./config.status}"
15241 ac_write_fail=0
15242 ac_clean_files_save=$ac_clean_files
15243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15245 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15246 as_write_fail=0
15247 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15248 #! $SHELL
15249 # Generated by $as_me.
15250 # Run this file to recreate the current configuration.
15251 # Compiler output produced by configure, useful for debugging
15252 # configure, is in config.log if it exists.
15254 debug=false
15255 ac_cs_recheck=false
15256 ac_cs_silent=false
15258 SHELL=\${CONFIG_SHELL-$SHELL}
15259 export SHELL
15260 _ASEOF
15261 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15262 ## -------------------- ##
15263 ## M4sh Initialization. ##
15264 ## -------------------- ##
15266 # Be more Bourne compatible
15267 DUALCASE=1; export DUALCASE # for MKS sh
15268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15269 emulate sh
15270 NULLCMD=:
15271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15272 # is contrary to our usage. Disable this feature.
15273 alias -g '${1+"$@"}'='"$@"'
15274 setopt NO_GLOB_SUBST
15275 else
15276 case `(set -o) 2>/dev/null` in #(
15277 *posix*) :
15278 set -o posix ;; #(
15279 *) :
15281 esac
15285 as_nl='
15287 export as_nl
15288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15292 # Prefer a ksh shell builtin over an external printf program on Solaris,
15293 # but without wasting forks for bash or zsh.
15294 if test -z "$BASH_VERSION$ZSH_VERSION" \
15295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15296 as_echo='print -r --'
15297 as_echo_n='print -rn --'
15298 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15299 as_echo='printf %s\n'
15300 as_echo_n='printf %s'
15301 else
15302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15304 as_echo_n='/usr/ucb/echo -n'
15305 else
15306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15307 as_echo_n_body='eval
15308 arg=$1;
15309 case $arg in #(
15310 *"$as_nl"*)
15311 expr "X$arg" : "X\\(.*\\)$as_nl";
15312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15313 esac;
15314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15316 export as_echo_n_body
15317 as_echo_n='sh -c $as_echo_n_body as_echo'
15319 export as_echo_body
15320 as_echo='sh -c $as_echo_body as_echo'
15323 # The user is always right.
15324 if test "${PATH_SEPARATOR+set}" != set; then
15325 PATH_SEPARATOR=:
15326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15328 PATH_SEPARATOR=';'
15333 # IFS
15334 # We need space, tab and new line, in precisely that order. Quoting is
15335 # there to prevent editors from complaining about space-tab.
15336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15337 # splitting by setting IFS to empty value.)
15338 IFS=" "" $as_nl"
15340 # Find who we are. Look in the path if we contain no directory separator.
15341 as_myself=
15342 case $0 in #((
15343 *[\\/]* ) as_myself=$0 ;;
15344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 for as_dir in $PATH
15347 IFS=$as_save_IFS
15348 test -z "$as_dir" && as_dir=.
15349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15350 done
15351 IFS=$as_save_IFS
15354 esac
15355 # We did not find ourselves, most probably we were run as `sh COMMAND'
15356 # in which case we are not to be found in the path.
15357 if test "x$as_myself" = x; then
15358 as_myself=$0
15360 if test ! -f "$as_myself"; then
15361 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15362 exit 1
15365 # Unset variables that we do not need and which cause bugs (e.g. in
15366 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15367 # suppresses any "Segmentation fault" message there. '((' could
15368 # trigger a bug in pdksh 5.2.14.
15369 for as_var in BASH_ENV ENV MAIL MAILPATH
15370 do eval test x\${$as_var+set} = xset \
15371 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15372 done
15373 PS1='$ '
15374 PS2='> '
15375 PS4='+ '
15377 # NLS nuisances.
15378 LC_ALL=C
15379 export LC_ALL
15380 LANGUAGE=C
15381 export LANGUAGE
15383 # CDPATH.
15384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15387 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15388 # ----------------------------------------
15389 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15390 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15391 # script with STATUS, using 1 if that was 0.
15392 as_fn_error ()
15394 as_status=$1; test $as_status -eq 0 && as_status=1
15395 if test "$4"; then
15396 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15397 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15399 $as_echo "$as_me: error: $2" >&2
15400 as_fn_exit $as_status
15401 } # as_fn_error
15404 # as_fn_set_status STATUS
15405 # -----------------------
15406 # Set $? to STATUS, without forking.
15407 as_fn_set_status ()
15409 return $1
15410 } # as_fn_set_status
15412 # as_fn_exit STATUS
15413 # -----------------
15414 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15415 as_fn_exit ()
15417 set +e
15418 as_fn_set_status $1
15419 exit $1
15420 } # as_fn_exit
15422 # as_fn_unset VAR
15423 # ---------------
15424 # Portably unset VAR.
15425 as_fn_unset ()
15427 { eval $1=; unset $1;}
15429 as_unset=as_fn_unset
15430 # as_fn_append VAR VALUE
15431 # ----------------------
15432 # Append the text in VALUE to the end of the definition contained in VAR. Take
15433 # advantage of any shell optimizations that allow amortized linear growth over
15434 # repeated appends, instead of the typical quadratic growth present in naive
15435 # implementations.
15436 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15437 eval 'as_fn_append ()
15439 eval $1+=\$2
15441 else
15442 as_fn_append ()
15444 eval $1=\$$1\$2
15446 fi # as_fn_append
15448 # as_fn_arith ARG...
15449 # ------------------
15450 # Perform arithmetic evaluation on the ARGs, and store the result in the
15451 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15452 # must be portable across $(()) and expr.
15453 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15454 eval 'as_fn_arith ()
15456 as_val=$(( $* ))
15458 else
15459 as_fn_arith ()
15461 as_val=`expr "$@" || test $? -eq 1`
15463 fi # as_fn_arith
15466 if expr a : '\(a\)' >/dev/null 2>&1 &&
15467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15468 as_expr=expr
15469 else
15470 as_expr=false
15473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15474 as_basename=basename
15475 else
15476 as_basename=false
15479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15480 as_dirname=dirname
15481 else
15482 as_dirname=false
15485 as_me=`$as_basename -- "$0" ||
15486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15487 X"$0" : 'X\(//\)$' \| \
15488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15489 $as_echo X/"$0" |
15490 sed '/^.*\/\([^/][^/]*\)\/*$/{
15491 s//\1/
15494 /^X\/\(\/\/\)$/{
15495 s//\1/
15498 /^X\/\(\/\).*/{
15499 s//\1/
15502 s/.*/./; q'`
15504 # Avoid depending upon Character Ranges.
15505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15508 as_cr_digits='0123456789'
15509 as_cr_alnum=$as_cr_Letters$as_cr_digits
15511 ECHO_C= ECHO_N= ECHO_T=
15512 case `echo -n x` in #(((((
15513 -n*)
15514 case `echo 'xy\c'` in
15515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15516 xy) ECHO_C='\c';;
15517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15518 ECHO_T=' ';;
15519 esac;;
15521 ECHO_N='-n';;
15522 esac
15524 rm -f conf$$ conf$$.exe conf$$.file
15525 if test -d conf$$.dir; then
15526 rm -f conf$$.dir/conf$$.file
15527 else
15528 rm -f conf$$.dir
15529 mkdir conf$$.dir 2>/dev/null
15531 if (echo >conf$$.file) 2>/dev/null; then
15532 if ln -s conf$$.file conf$$ 2>/dev/null; then
15533 as_ln_s='ln -s'
15534 # ... but there are two gotchas:
15535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15537 # In both cases, we have to default to `cp -pR'.
15538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15539 as_ln_s='cp -pR'
15540 elif ln conf$$.file conf$$ 2>/dev/null; then
15541 as_ln_s=ln
15542 else
15543 as_ln_s='cp -pR'
15545 else
15546 as_ln_s='cp -pR'
15548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15549 rmdir conf$$.dir 2>/dev/null
15552 # as_fn_mkdir_p
15553 # -------------
15554 # Create "$as_dir" as a directory, including parents if necessary.
15555 as_fn_mkdir_p ()
15558 case $as_dir in #(
15559 -*) as_dir=./$as_dir;;
15560 esac
15561 test -d "$as_dir" || eval $as_mkdir_p || {
15562 as_dirs=
15563 while :; do
15564 case $as_dir in #(
15565 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15566 *) as_qdir=$as_dir;;
15567 esac
15568 as_dirs="'$as_qdir' $as_dirs"
15569 as_dir=`$as_dirname -- "$as_dir" ||
15570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15571 X"$as_dir" : 'X\(//\)[^/]' \| \
15572 X"$as_dir" : 'X\(//\)$' \| \
15573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15574 $as_echo X"$as_dir" |
15575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15576 s//\1/
15579 /^X\(\/\/\)[^/].*/{
15580 s//\1/
15583 /^X\(\/\/\)$/{
15584 s//\1/
15587 /^X\(\/\).*/{
15588 s//\1/
15591 s/.*/./; q'`
15592 test -d "$as_dir" && break
15593 done
15594 test -z "$as_dirs" || eval "mkdir $as_dirs"
15595 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15598 } # as_fn_mkdir_p
15599 if mkdir -p . 2>/dev/null; then
15600 as_mkdir_p='mkdir -p "$as_dir"'
15601 else
15602 test -d ./-p && rmdir ./-p
15603 as_mkdir_p=false
15607 # as_fn_executable_p FILE
15608 # -----------------------
15609 # Test if FILE is an executable regular file.
15610 as_fn_executable_p ()
15612 test -f "$1" && test -x "$1"
15613 } # as_fn_executable_p
15614 as_test_x='test -x'
15615 as_executable_p=as_fn_executable_p
15617 # Sed expression to map a string onto a valid CPP name.
15618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15620 # Sed expression to map a string onto a valid variable name.
15621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15624 exec 6>&1
15625 ## ----------------------------------- ##
15626 ## Main body of $CONFIG_STATUS script. ##
15627 ## ----------------------------------- ##
15628 _ASEOF
15629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15632 # Save the log message, to keep $0 and so on meaningful, and to
15633 # report actual input values of CONFIG_FILES etc. instead of their
15634 # values after options handling.
15635 ac_log="
15636 This file was extended by $as_me, which was
15637 generated by GNU Autoconf 2.69. Invocation command line was
15639 CONFIG_FILES = $CONFIG_FILES
15640 CONFIG_HEADERS = $CONFIG_HEADERS
15641 CONFIG_LINKS = $CONFIG_LINKS
15642 CONFIG_COMMANDS = $CONFIG_COMMANDS
15643 $ $0 $@
15645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15648 _ACEOF
15650 case $ac_config_files in *"
15651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15652 esac
15654 case $ac_config_headers in *"
15655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15656 esac
15659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15660 # Files that config.status was made for.
15661 config_files="$ac_config_files"
15662 config_headers="$ac_config_headers"
15663 config_commands="$ac_config_commands"
15665 _ACEOF
15667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 ac_cs_usage="\
15669 \`$as_me' instantiates files and other configuration actions
15670 from templates according to the current configuration. Unless the files
15671 and actions are specified as TAGs, all are instantiated by default.
15673 Usage: $0 [OPTION]... [TAG]...
15675 -h, --help print this help, then exit
15676 -V, --version print version number and configuration settings, then exit
15677 --config print configuration, then exit
15678 -q, --quiet, --silent
15679 do not print progress messages
15680 -d, --debug don't remove temporary files
15681 --recheck update $as_me by reconfiguring in the same conditions
15682 --file=FILE[:TEMPLATE]
15683 instantiate the configuration file FILE
15684 --header=FILE[:TEMPLATE]
15685 instantiate the configuration header FILE
15687 Configuration files:
15688 $config_files
15690 Configuration headers:
15691 $config_headers
15693 Configuration commands:
15694 $config_commands
15696 Report bugs to the package provider."
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15701 ac_cs_version="\\
15702 config.status
15703 configured by $0, generated by GNU Autoconf 2.69,
15704 with options \\"\$ac_cs_config\\"
15706 Copyright (C) 2012 Free Software Foundation, Inc.
15707 This config.status script is free software; the Free Software Foundation
15708 gives unlimited permission to copy, distribute and modify it."
15710 ac_pwd='$ac_pwd'
15711 srcdir='$srcdir'
15712 test -n "\$AWK" || AWK=awk
15713 _ACEOF
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716 # The default lists apply if the user does not specify any file.
15717 ac_need_defaults=:
15718 while test $# != 0
15720 case $1 in
15721 --*=?*)
15722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15724 ac_shift=:
15726 --*=)
15727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15728 ac_optarg=
15729 ac_shift=:
15732 ac_option=$1
15733 ac_optarg=$2
15734 ac_shift=shift
15736 esac
15738 case $ac_option in
15739 # Handling of the options.
15740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15741 ac_cs_recheck=: ;;
15742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15743 $as_echo "$ac_cs_version"; exit ;;
15744 --config | --confi | --conf | --con | --co | --c )
15745 $as_echo "$ac_cs_config"; exit ;;
15746 --debug | --debu | --deb | --de | --d | -d )
15747 debug=: ;;
15748 --file | --fil | --fi | --f )
15749 $ac_shift
15750 case $ac_optarg in
15751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15752 '') as_fn_error $? "missing file argument" ;;
15753 esac
15754 as_fn_append CONFIG_FILES " '$ac_optarg'"
15755 ac_need_defaults=false;;
15756 --header | --heade | --head | --hea )
15757 $ac_shift
15758 case $ac_optarg in
15759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15760 esac
15761 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15762 ac_need_defaults=false;;
15763 --he | --h)
15764 # Conflict between --help and --header
15765 as_fn_error $? "ambiguous option: \`$1'
15766 Try \`$0 --help' for more information.";;
15767 --help | --hel | -h )
15768 $as_echo "$ac_cs_usage"; exit ;;
15769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15770 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15771 ac_cs_silent=: ;;
15773 # This is an error.
15774 -*) as_fn_error $? "unrecognized option: \`$1'
15775 Try \`$0 --help' for more information." ;;
15777 *) as_fn_append ac_config_targets " $1"
15778 ac_need_defaults=false ;;
15780 esac
15781 shift
15782 done
15784 ac_configure_extra_args=
15786 if $ac_cs_silent; then
15787 exec 6>/dev/null
15788 ac_configure_extra_args="$ac_configure_extra_args --silent"
15791 _ACEOF
15792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15793 if \$ac_cs_recheck; then
15794 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15795 shift
15796 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15797 CONFIG_SHELL='$SHELL'
15798 export CONFIG_SHELL
15799 exec "\$@"
15802 _ACEOF
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804 exec 5>>config.log
15806 echo
15807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15808 ## Running $as_me. ##
15809 _ASBOX
15810 $as_echo "$ac_log"
15811 } >&5
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816 # INIT-COMMANDS
15818 aros_tools_dir=${aros_tools_dir}
15821 aros_host_exe_suffix=${aros_host_exe_suffix}
15822 aros_tools_dir=${aros_tools_dir}
15823 aros_target_cpu=${aros_target_cpu}
15824 aros_target_arch=${aros_target_arch}
15825 aros_target_suffix=${aros_target_suffix}
15826 orig_target_nm=${orig_target_nm}
15827 orig_target_as=${orig_target_as}
15828 orig_target_ar=${orig_target_ar}
15829 orig_target_ranlib=${orig_target_ranlib}
15830 orig_target_objdump=${orig_target_objdump}
15831 orig_target_objcopy=${orig_target_objcopy}
15832 orig_target_strip=${orig_target_strip}
15833 aros_kernel_ld=${aros_kernel_ld}
15837 aros_host_exe_suffix=${aros_host_exe_suffix}
15838 aros_tools_dir=${aros_tools_dir}
15839 aros_target_cpu=${aros_target_cpu}
15840 aros_target_arch=${aros_target_arch}
15841 aros_target_suffix=${aros_target_suffix}
15842 aros_kernel_ld=${aros_kernel_ld}
15846 aros_host_exe_suffix=${aros_host_exe_suffix}
15847 aros_tools_dir=${aros_tools_dir}
15848 aros_target_cpu=${aros_target_cpu}
15849 aros_target_arch=${aros_target_arch}
15850 aros_target_suffix=${aros_target_suffix}
15854 _ACEOF
15856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858 # Handling of arguments.
15859 for ac_config_target in $ac_config_targets
15861 case $ac_config_target in
15862 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15863 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15864 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15865 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15866 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15867 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15868 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15869 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15870 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15871 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15872 "compiler/include/mmakefile") CONFIG_FILES="$CONFIG_FILES compiler/include/mmakefile:compiler/include/mmakefile.in" ;;
15873 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15874 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15875 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15876 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15877 "${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" ;;
15878 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15879 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15880 "${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" ;;
15881 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15882 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15883 "${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" ;;
15884 "${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" ;;
15885 "${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" ;;
15886 "${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" ;;
15887 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15889 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15890 esac
15891 done
15894 # If the user did not use the arguments to specify the items to instantiate,
15895 # then the envvar interface is used. Set only those that are not.
15896 # We use the long form for the default assignment because of an extremely
15897 # bizarre bug on SunOS 4.1.3.
15898 if $ac_need_defaults; then
15899 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15900 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15901 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15904 # Have a temporary directory for convenience. Make it in the build tree
15905 # simply because there is no reason against having it here, and in addition,
15906 # creating and moving files from /tmp can sometimes cause problems.
15907 # Hook for its removal unless debugging.
15908 # Note that there is a small window in which the directory will not be cleaned:
15909 # after its creation but before its name has been assigned to `$tmp'.
15910 $debug ||
15912 tmp= ac_tmp=
15913 trap 'exit_status=$?
15914 : "${ac_tmp:=$tmp}"
15915 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15917 trap 'as_fn_exit 1' 1 2 13 15
15919 # Create a (secure) tmp directory for tmp files.
15922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15923 test -d "$tmp"
15924 } ||
15926 tmp=./conf$$-$RANDOM
15927 (umask 077 && mkdir "$tmp")
15928 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15929 ac_tmp=$tmp
15931 # Set up the scripts for CONFIG_FILES section.
15932 # No need to generate them if there are no CONFIG_FILES.
15933 # This happens for instance with `./config.status config.h'.
15934 if test -n "$CONFIG_FILES"; then
15937 ac_cr=`echo X | tr X '\015'`
15938 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15939 # But we know of no other shell where ac_cr would be empty at this
15940 # point, so we can use a bashism as a fallback.
15941 if test "x$ac_cr" = x; then
15942 eval ac_cr=\$\'\\r\'
15944 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15945 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15946 ac_cs_awk_cr='\\r'
15947 else
15948 ac_cs_awk_cr=$ac_cr
15951 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15952 _ACEOF
15956 echo "cat >conf$$subs.awk <<_ACEOF" &&
15957 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15958 echo "_ACEOF"
15959 } >conf$$subs.sh ||
15960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15961 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15962 ac_delim='%!_!# '
15963 for ac_last_try in false false false false false :; do
15964 . ./conf$$subs.sh ||
15965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15967 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15968 if test $ac_delim_n = $ac_delim_num; then
15969 break
15970 elif $ac_last_try; then
15971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15972 else
15973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15975 done
15976 rm -f conf$$subs.sh
15978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15979 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15980 _ACEOF
15981 sed -n '
15983 s/^/S["/; s/!.*/"]=/
15986 s/^[^!]*!//
15987 :repl
15988 t repl
15989 s/'"$ac_delim"'$//
15990 t delim
15993 s/\(.\{148\}\)..*/\1/
15994 t more1
15995 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15998 b repl
15999 :more1
16000 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16003 s/.\{148\}//
16004 t nl
16005 :delim
16007 s/\(.\{148\}\)..*/\1/
16008 t more2
16009 s/["\\]/\\&/g; s/^/"/; s/$/"/
16012 :more2
16013 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16016 s/.\{148\}//
16017 t delim
16018 ' <conf$$subs.awk | sed '
16019 /^[^""]/{
16021 s/\n//
16023 ' >>$CONFIG_STATUS || ac_write_fail=1
16024 rm -f conf$$subs.awk
16025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 _ACAWK
16027 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16028 for (key in S) S_is_set[key] = 1
16029 FS = "\a"
16033 line = $ 0
16034 nfields = split(line, field, "@")
16035 substed = 0
16036 len = length(field[1])
16037 for (i = 2; i < nfields; i++) {
16038 key = field[i]
16039 keylen = length(key)
16040 if (S_is_set[key]) {
16041 value = S[key]
16042 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16043 len += length(value) + length(field[++i])
16044 substed = 1
16045 } else
16046 len += 1 + keylen
16049 print line
16052 _ACAWK
16053 _ACEOF
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16056 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16057 else
16059 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16060 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16061 _ACEOF
16063 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16064 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16065 # trailing colons and then remove the whole line if VPATH becomes empty
16066 # (actually we leave an empty line to preserve line numbers).
16067 if test "x$srcdir" = x.; then
16068 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16070 s///
16071 s/^/:/
16072 s/[ ]*$/:/
16073 s/:\$(srcdir):/:/g
16074 s/:\${srcdir}:/:/g
16075 s/:@srcdir@:/:/g
16076 s/^:*//
16077 s/:*$//
16079 s/\(=[ ]*\).*/\1/
16081 s/\n//
16082 s/^[^=]*=[ ]*$//
16086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087 fi # test -n "$CONFIG_FILES"
16089 # Set up the scripts for CONFIG_HEADERS section.
16090 # No need to generate them if there are no CONFIG_HEADERS.
16091 # This happens for instance with `./config.status Makefile'.
16092 if test -n "$CONFIG_HEADERS"; then
16093 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16094 BEGIN {
16095 _ACEOF
16097 # Transform confdefs.h into an awk script `defines.awk', embedded as
16098 # here-document in config.status, that substitutes the proper values into
16099 # config.h.in to produce config.h.
16101 # Create a delimiter string that does not exist in confdefs.h, to ease
16102 # handling of long lines.
16103 ac_delim='%!_!# '
16104 for ac_last_try in false false :; do
16105 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16106 if test -z "$ac_tt"; then
16107 break
16108 elif $ac_last_try; then
16109 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16110 else
16111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16113 done
16115 # For the awk script, D is an array of macro values keyed by name,
16116 # likewise P contains macro parameters if any. Preserve backslash
16117 # newline sequences.
16119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16120 sed -n '
16121 s/.\{148\}/&'"$ac_delim"'/g
16122 t rset
16123 :rset
16124 s/^[ ]*#[ ]*define[ ][ ]*/ /
16125 t def
16127 :def
16128 s/\\$//
16129 t bsnl
16130 s/["\\]/\\&/g
16131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16132 D["\1"]=" \3"/p
16133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16135 :bsnl
16136 s/["\\]/\\&/g
16137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16138 D["\1"]=" \3\\\\\\n"\\/p
16139 t cont
16140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16141 t cont
16143 :cont
16145 s/.\{148\}/&'"$ac_delim"'/g
16146 t clear
16147 :clear
16148 s/\\$//
16149 t bsnlc
16150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16152 :bsnlc
16153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16154 b cont
16155 ' <confdefs.h | sed '
16156 s/'"$ac_delim"'/"\\\
16157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 for (key in D) D_is_set[key] = 1
16161 FS = "\a"
16163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16164 line = \$ 0
16165 split(line, arg, " ")
16166 if (arg[1] == "#") {
16167 defundef = arg[2]
16168 mac1 = arg[3]
16169 } else {
16170 defundef = substr(arg[1], 2)
16171 mac1 = arg[2]
16173 split(mac1, mac2, "(") #)
16174 macro = mac2[1]
16175 prefix = substr(line, 1, index(line, defundef) - 1)
16176 if (D_is_set[macro]) {
16177 # Preserve the white space surrounding the "#".
16178 print prefix "define", macro P[macro] D[macro]
16179 next
16180 } else {
16181 # Replace #undef with comments. This is necessary, for example,
16182 # in the case of _POSIX_SOURCE, which is predefined and required
16183 # on some systems where configure will not decide to define it.
16184 if (defundef == "undef") {
16185 print "/*", prefix defundef, macro, "*/"
16186 next
16190 { print }
16191 _ACAWK
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16195 fi # test -n "$CONFIG_HEADERS"
16198 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16199 shift
16200 for ac_tag
16202 case $ac_tag in
16203 :[FHLC]) ac_mode=$ac_tag; continue;;
16204 esac
16205 case $ac_mode$ac_tag in
16206 :[FHL]*:*);;
16207 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16208 :[FH]-) ac_tag=-:-;;
16209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16210 esac
16211 ac_save_IFS=$IFS
16212 IFS=:
16213 set x $ac_tag
16214 IFS=$ac_save_IFS
16215 shift
16216 ac_file=$1
16217 shift
16219 case $ac_mode in
16220 :L) ac_source=$1;;
16221 :[FH])
16222 ac_file_inputs=
16223 for ac_f
16225 case $ac_f in
16226 -) ac_f="$ac_tmp/stdin";;
16227 *) # Look for the file first in the build tree, then in the source tree
16228 # (if the path is not absolute). The absolute path cannot be DOS-style,
16229 # because $ac_f cannot contain `:'.
16230 test -f "$ac_f" ||
16231 case $ac_f in
16232 [\\/$]*) false;;
16233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16234 esac ||
16235 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16236 esac
16237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16238 as_fn_append ac_file_inputs " '$ac_f'"
16239 done
16241 # Let's still pretend it is `configure' which instantiates (i.e., don't
16242 # use $as_me), people would be surprised to read:
16243 # /* config.h. Generated by config.status. */
16244 configure_input='Generated from '`
16245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16246 `' by configure.'
16247 if test x"$ac_file" != x-; then
16248 configure_input="$ac_file. $configure_input"
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16250 $as_echo "$as_me: creating $ac_file" >&6;}
16252 # Neutralize special characters interpreted by sed in replacement strings.
16253 case $configure_input in #(
16254 *\&* | *\|* | *\\* )
16255 ac_sed_conf_input=`$as_echo "$configure_input" |
16256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16257 *) ac_sed_conf_input=$configure_input;;
16258 esac
16260 case $ac_tag in
16261 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16263 esac
16265 esac
16267 ac_dir=`$as_dirname -- "$ac_file" ||
16268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16269 X"$ac_file" : 'X\(//\)[^/]' \| \
16270 X"$ac_file" : 'X\(//\)$' \| \
16271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16272 $as_echo X"$ac_file" |
16273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16274 s//\1/
16277 /^X\(\/\/\)[^/].*/{
16278 s//\1/
16281 /^X\(\/\/\)$/{
16282 s//\1/
16285 /^X\(\/\).*/{
16286 s//\1/
16289 s/.*/./; q'`
16290 as_dir="$ac_dir"; as_fn_mkdir_p
16291 ac_builddir=.
16293 case "$ac_dir" in
16294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16297 # A ".." for each directory in $ac_dir_suffix.
16298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16299 case $ac_top_builddir_sub in
16300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16302 esac ;;
16303 esac
16304 ac_abs_top_builddir=$ac_pwd
16305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16306 # for backward compatibility:
16307 ac_top_builddir=$ac_top_build_prefix
16309 case $srcdir in
16310 .) # We are building in place.
16311 ac_srcdir=.
16312 ac_top_srcdir=$ac_top_builddir_sub
16313 ac_abs_top_srcdir=$ac_pwd ;;
16314 [\\/]* | ?:[\\/]* ) # Absolute name.
16315 ac_srcdir=$srcdir$ac_dir_suffix;
16316 ac_top_srcdir=$srcdir
16317 ac_abs_top_srcdir=$srcdir ;;
16318 *) # Relative name.
16319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16320 ac_top_srcdir=$ac_top_build_prefix$srcdir
16321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16322 esac
16323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16326 case $ac_mode in
16329 # CONFIG_FILE
16332 _ACEOF
16334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16335 # If the template does not know about datarootdir, expand it.
16336 # FIXME: This hack should be removed a few years after 2.60.
16337 ac_datarootdir_hack=; ac_datarootdir_seen=
16338 ac_sed_dataroot='
16339 /datarootdir/ {
16343 /@datadir@/p
16344 /@docdir@/p
16345 /@infodir@/p
16346 /@localedir@/p
16347 /@mandir@/p'
16348 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16349 *datarootdir*) ac_datarootdir_seen=yes;;
16350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16353 _ACEOF
16354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355 ac_datarootdir_hack='
16356 s&@datadir@&$datadir&g
16357 s&@docdir@&$docdir&g
16358 s&@infodir@&$infodir&g
16359 s&@localedir@&$localedir&g
16360 s&@mandir@&$mandir&g
16361 s&\\\${datarootdir}&$datarootdir&g' ;;
16362 esac
16363 _ACEOF
16365 # Neutralize VPATH when `$srcdir' = `.'.
16366 # Shell code in configure.ac might set extrasub.
16367 # FIXME: do we really want to maintain this feature?
16368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16369 ac_sed_extra="$ac_vpsub
16370 $extrasub
16371 _ACEOF
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16375 s|@configure_input@|$ac_sed_conf_input|;t t
16376 s&@top_builddir@&$ac_top_builddir_sub&;t t
16377 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16378 s&@srcdir@&$ac_srcdir&;t t
16379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16380 s&@top_srcdir@&$ac_top_srcdir&;t t
16381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16382 s&@builddir@&$ac_builddir&;t t
16383 s&@abs_builddir@&$ac_abs_builddir&;t t
16384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16385 $ac_datarootdir_hack
16387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16390 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16395 which seems to be undefined. Please make sure it is defined" >&5
16396 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16397 which seems to be undefined. Please make sure it is defined" >&2;}
16399 rm -f "$ac_tmp/stdin"
16400 case $ac_file in
16401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16403 esac \
16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16408 # CONFIG_HEADER
16410 if test x"$ac_file" != x-; then
16412 $as_echo "/* $configure_input */" \
16413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16414 } >"$ac_tmp/config.h" \
16415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16416 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16419 else
16420 rm -f "$ac_file"
16421 mv "$ac_tmp/config.h" "$ac_file" \
16422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16424 else
16425 $as_echo "/* $configure_input */" \
16426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16427 || as_fn_error $? "could not create -" "$LINENO" 5
16431 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16432 $as_echo "$as_me: executing $ac_file commands" >&6;}
16434 esac
16437 case $ac_file$ac_mode in
16438 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16439 "binutils-support":C)
16440 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16441 mkdir -p $prefix
16442 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16444 chmod a+x ${prefix2}-ld
16446 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16447 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16448 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16449 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16450 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16451 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16452 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16454 "elf-compiler-support":C)
16455 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16456 mkdir -p $prefix
16457 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16459 chmod a+x ${prefix2}-gcc
16461 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16463 "host-compiler-wrapper-support":C)
16464 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16465 mkdir -p $prefix
16466 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16468 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16471 esac
16472 done # for ac_tag
16475 as_fn_exit 0
16476 _ACEOF
16477 ac_clean_files=$ac_clean_files_save
16479 test $ac_write_fail = 0 ||
16480 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16483 # configure is writing to config.log, and then calls config.status.
16484 # config.status does its own redirection, appending to config.log.
16485 # Unfortunately, on DOS this fails, as config.log is still kept open
16486 # by configure, so config.status won't be able to write to it; its
16487 # output is simply discarded. So we exec the FD to /dev/null,
16488 # effectively closing config.log, so it can be properly (re)opened and
16489 # appended to by config.status. When coming back to configure, we
16490 # need to make the FD available again.
16491 if test "$no_create" != yes; then
16492 ac_cs_success=:
16493 ac_config_status_args=
16494 test "$silent" = yes &&
16495 ac_config_status_args="$ac_config_status_args --quiet"
16496 exec 5>/dev/null
16497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16498 exec 5>>config.log
16499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16500 # would make configure fail if this is the last instruction.
16501 $ac_cs_success || as_fn_exit 1
16503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16510 #XXX compatability...
16511 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16513 if test -n "$aros_shared_cflags" ; then
16514 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16515 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg