add the gnu/nls/x flag options to other build_with_configure based templates
[AROS.git] / configure
blobe6bea5f6759c9cb102569a681567eeccf6b44123
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_cxxflags
679 aros_debug_cflags
680 aros_debug_cppflags
681 aros_kernel_ldflags
682 aros_kernel_objcflags
683 aros_kernel_includes
684 aros_kernel_cflags
685 aros_kernel_cppflags
686 aros_kernel_sysroot
687 aros_config_ldflags
688 aros_config_aflags
689 aros_config_cxxflags
690 aros_config_cflags
691 aros_config_cppflags
692 aros_nowarn_flags
693 aros_warn_flags
694 aros_config_sysroot
695 aros_shared_ldflags
696 aros_shared_aflags
697 aros_shared_cflags
698 aros_arch_libs
699 aros_compiler_libs
700 spec_obj_format
701 aros_object_format
702 aros_shared_ld
703 aros_shared_default
704 aros_target_nm
705 aros_target_strip
706 aros_target_objcopy
707 aros_target_objdump
708 aros_target_cc_path
709 aros_target_cc_includes
710 aros_target_ld
711 aros_target_as
712 aros_target_cpp
713 aros_target_cxx
714 aros_target_cc
715 aros_plain_ar
716 aros_plain_nm
717 aros_target_ranlib
718 aros_target_ar
719 aros_target_suffix
720 aros_target_variant
721 aros_target_cpu_mode
722 aros_target_cpu
723 aros_target_family
724 aros_target_arch
725 aros_target_bootloader
726 aros_target_iconset
727 aros_target_guitheme
728 aros_tools_dir
729 aros_host_lib_suffix
730 aros_host_exe_suffix
731 aros_host_mkargs
732 aros_host_mkdep
733 aros_host_debug
734 aros_host_ldflags
735 gnu89_inline
736 aros_host_cxxflags
737 aros_host_cflags
738 aros_host_cppflags
739 aros_host_make
740 aros_host_cxx
741 aros_host_cc
742 aros_host_def_cc
743 aros_host_cpp
744 aros_host_cpu
745 aros_host_arch
746 aros_cc_pre
747 aros_amigaos_compliance
748 AROS_PORTSSRCDIR
749 AROS_CROSSTOOLSDIR
750 SRCDIR
751 AROS_BUILDDIR_UNIX
752 AROS_BUILDDIR
753 aros_build_host
754 aros_toolchain_ld
755 aros_target_toolchain
756 aros_flavour_uc
757 aros_flavour
758 aros_cpu
759 aros_arch
760 SDL_LIBS
761 SDL_CFLAGS
762 SDL_CONFIG
763 XMKMF
764 kernel_cflags_iquote_end
765 kernel_cflags_iquote
766 host_cflags_iquote_end
767 host_cflags_iquote
768 aros_toolchain
769 aros_target_nostdlib_ldflags
770 aros_target_detach_ldflags
771 aros_target_nix_ldflags
772 aros_target_nostartup_ldflags
773 aros_target_nostdinc_cflags
774 aros_kernel_rescomp
775 orig_target_objdump
776 orig_target_objcopy
777 orig_target_strip
778 orig_target_nm
779 orig_target_ranlib
780 orig_target_ar
781 orig_target_as
782 orig_target_ld
783 orig_target_cxx
784 orig_target_cc
785 orig_target_cpp
786 aros_kernel_objdump
787 aros_kernel_objcopy
788 aros_kernel_strip
789 aros_kernel_nm
790 aros_kernel_ranlib
791 aros_kernel_ar
792 aros_kernel_as
793 aros_kernel_ld
794 aros_kernel_cxx
795 aros_kernel_cc
796 aros_kernel_cpp
797 target_gcc_version
799 android_tool
800 CCACHE
801 DISTCC
802 LIBOBJS
803 EGREP
804 GREP
806 TEST
809 libpng_incdir
810 libpng_libextra
811 libpng
812 arosconfig_use_libpngconfig
813 pkgpyexecdir
814 pyexecdir
815 pkgpythondir
816 pythondir
817 PYTHON_PLATFORM
818 PYTHON_EXEC_PREFIX
819 PYTHON_PREFIX
820 PYTHON_VERSION
821 PYTHON
822 PATCH
823 CHMOD
825 PPMTOILBM
826 PNGTOPNM
827 FLEX
828 BISON
831 UNIQ
832 SORT
833 TOUCH
834 MKDIR
835 ECHO
839 aros_host_strip
840 aros_host_ranlib
841 aros_host_ar
842 aros_host_automake
843 aros_host_autoheader
844 aros_host_autoconf
845 aros_host_aclocal
846 aros_host_ld
847 MMAKE
850 ac_ct_CC
851 CFLAGS
853 OBJEXT
854 EXEEXT
855 ac_ct_CXX
856 CPPFLAGS
857 LDFLAGS
858 CXXFLAGS
860 host_os
861 host_vendor
862 host_cpu
863 host
864 build_os
865 build_vendor
866 build_cpu
867 build
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_URL
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 with_c_compiler
910 with_cxx_compiler
911 enable_libpng_config
912 with_toolchain
913 enable_lto
914 enable_build_type
915 enable_debug
916 enable_distcc
917 enable_ccache
918 with_kernel_gcc_version
919 with_optimization
920 with_paranoia
921 enable_target_variant
922 with_xcode
923 with_sdk_version
924 with_sdk
925 with_ndk
926 with_ndk_version
927 with_apk_version
928 enable_amigaos_compliance
929 with_kernel_toolchain_prefix
930 with_elf_toolchain_prefix
931 with_aros_toolchain
932 enable_crosstools
933 with_aros_toolchain_install
934 with_binutils_version
935 with_gcc_version
936 enable_objc
937 enable_java
938 with_cpu
939 with_fpu
940 with_float
941 with_portssources
942 with_bootloader
943 with_iconset
944 with_theme
945 enable_includes
946 with_resolution
947 with_serial_debug
948 enable_palm_debug_hack
949 enable_usb30_code
950 enable_nesting_supervisor
951 enable_mmu
952 enable_x11_hidd
953 with_x
954 enable_x11_shm
955 enable_x11_vidmode
956 enable_sdl_hidd
957 with_sdl_prefix
958 with_sdl_exec_prefix
959 enable_sdltest
960 enable_dbus
962 ac_precious_vars='build_alias
963 host_alias
964 target_alias
966 CXXFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
972 CFLAGS
974 PYTHON
975 XMKMF'
978 # Initialize some variables set by options.
979 ac_init_help=
980 ac_init_version=false
981 ac_unrecognized_opts=
982 ac_unrecognized_sep=
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
985 cache_file=/dev/null
986 exec_prefix=NONE
987 no_create=
988 no_recursion=
989 prefix=NONE
990 program_prefix=NONE
991 program_suffix=NONE
992 program_transform_name=s,x,x,
993 silent=
994 site=
995 srcdir=
996 verbose=
997 x_includes=NONE
998 x_libraries=NONE
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir='${exec_prefix}/bin'
1007 sbindir='${exec_prefix}/sbin'
1008 libexecdir='${exec_prefix}/libexec'
1009 datarootdir='${prefix}/share'
1010 datadir='${datarootdir}'
1011 sysconfdir='${prefix}/etc'
1012 sharedstatedir='${prefix}/com'
1013 localstatedir='${prefix}/var'
1014 includedir='${prefix}/include'
1015 oldincludedir='/usr/include'
1016 docdir='${datarootdir}/doc/${PACKAGE}'
1017 infodir='${datarootdir}/info'
1018 htmldir='${docdir}'
1019 dvidir='${docdir}'
1020 pdfdir='${docdir}'
1021 psdir='${docdir}'
1022 libdir='${exec_prefix}/lib'
1023 localedir='${datarootdir}/locale'
1024 mandir='${datarootdir}/man'
1026 ac_prev=
1027 ac_dashdash=
1028 for ac_option
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
1032 eval $ac_prev=\$ac_option
1033 ac_prev=
1034 continue
1037 case $ac_option in
1038 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 *=) ac_optarg= ;;
1040 *) ac_optarg=yes ;;
1041 esac
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1045 case $ac_dashdash$ac_option in
1047 ac_dashdash=yes ;;
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=no ;;
1097 -docdir | --docdir | --docdi | --doc | --do)
1098 ac_prev=docdir ;;
1099 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100 docdir=$ac_optarg ;;
1102 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103 ac_prev=dvidir ;;
1104 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105 dvidir=$ac_optarg ;;
1107 -enable-* | --enable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid feature name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1116 "enable_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval enable_$ac_useropt=\$ac_optarg ;;
1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125 | --exec | --exe | --ex)
1126 ac_prev=exec_prefix ;;
1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129 | --exec=* | --exe=* | --ex=*)
1130 exec_prefix=$ac_optarg ;;
1132 -gas | --gas | --ga | --g)
1133 # Obsolete; use --with-gas.
1134 with_gas=yes ;;
1136 -help | --help | --hel | --he | -h)
1137 ac_init_help=long ;;
1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139 ac_init_help=recursive ;;
1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141 ac_init_help=short ;;
1143 -host | --host | --hos | --ho)
1144 ac_prev=host_alias ;;
1145 -host=* | --host=* | --hos=* | --ho=*)
1146 host_alias=$ac_optarg ;;
1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149 ac_prev=htmldir ;;
1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151 | --ht=*)
1152 htmldir=$ac_optarg ;;
1154 -includedir | --includedir | --includedi | --included | --include \
1155 | --includ | --inclu | --incl | --inc)
1156 ac_prev=includedir ;;
1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158 | --includ=* | --inclu=* | --incl=* | --inc=*)
1159 includedir=$ac_optarg ;;
1161 -infodir | --infodir | --infodi | --infod | --info | --inf)
1162 ac_prev=infodir ;;
1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164 infodir=$ac_optarg ;;
1166 -libdir | --libdir | --libdi | --libd)
1167 ac_prev=libdir ;;
1168 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169 libdir=$ac_optarg ;;
1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172 | --libexe | --libex | --libe)
1173 ac_prev=libexecdir ;;
1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175 | --libexe=* | --libex=* | --libe=*)
1176 libexecdir=$ac_optarg ;;
1178 -localedir | --localedir | --localedi | --localed | --locale)
1179 ac_prev=localedir ;;
1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181 localedir=$ac_optarg ;;
1183 -localstatedir | --localstatedir | --localstatedi | --localstated \
1184 | --localstate | --localstat | --localsta | --localst | --locals)
1185 ac_prev=localstatedir ;;
1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188 localstatedir=$ac_optarg ;;
1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191 ac_prev=mandir ;;
1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193 mandir=$ac_optarg ;;
1195 -nfp | --nfp | --nf)
1196 # Obsolete; use --without-fp.
1197 with_fp=no ;;
1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200 | --no-cr | --no-c | -n)
1201 no_create=yes ;;
1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 no_recursion=yes ;;
1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209 | --oldin | --oldi | --old | --ol | --o)
1210 ac_prev=oldincludedir ;;
1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214 oldincludedir=$ac_optarg ;;
1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217 ac_prev=prefix ;;
1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219 prefix=$ac_optarg ;;
1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222 | --program-pre | --program-pr | --program-p)
1223 ac_prev=program_prefix ;;
1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226 program_prefix=$ac_optarg ;;
1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229 | --program-suf | --program-su | --program-s)
1230 ac_prev=program_suffix ;;
1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233 program_suffix=$ac_optarg ;;
1235 -program-transform-name | --program-transform-name \
1236 | --program-transform-nam | --program-transform-na \
1237 | --program-transform-n | --program-transform- \
1238 | --program-transform | --program-transfor \
1239 | --program-transfo | --program-transf \
1240 | --program-trans | --program-tran \
1241 | --progr-tra | --program-tr | --program-t)
1242 ac_prev=program_transform_name ;;
1243 -program-transform-name=* | --program-transform-name=* \
1244 | --program-transform-nam=* | --program-transform-na=* \
1245 | --program-transform-n=* | --program-transform-=* \
1246 | --program-transform=* | --program-transfor=* \
1247 | --program-transfo=* | --program-transf=* \
1248 | --program-trans=* | --program-tran=* \
1249 | --progr-tra=* | --program-tr=* | --program-t=*)
1250 program_transform_name=$ac_optarg ;;
1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253 ac_prev=pdfdir ;;
1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255 pdfdir=$ac_optarg ;;
1257 -psdir | --psdir | --psdi | --psd | --ps)
1258 ac_prev=psdir ;;
1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 psdir=$ac_optarg ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 silent=yes ;;
1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1267 ac_prev=sbindir ;;
1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1269 | --sbi=* | --sb=*)
1270 sbindir=$ac_optarg ;;
1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274 | --sharedst | --shareds | --shared | --share | --shar \
1275 | --sha | --sh)
1276 ac_prev=sharedstatedir ;;
1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1280 | --sha=* | --sh=*)
1281 sharedstatedir=$ac_optarg ;;
1283 -site | --site | --sit)
1284 ac_prev=site ;;
1285 -site=* | --site=* | --sit=*)
1286 site=$ac_optarg ;;
1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1289 ac_prev=srcdir ;;
1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291 srcdir=$ac_optarg ;;
1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294 | --syscon | --sysco | --sysc | --sys | --sy)
1295 ac_prev=sysconfdir ;;
1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298 sysconfdir=$ac_optarg ;;
1300 -target | --target | --targe | --targ | --tar | --ta | --t)
1301 ac_prev=target_alias ;;
1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303 target_alias=$ac_optarg ;;
1305 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 verbose=yes ;;
1308 -version | --version | --versio | --versi | --vers | -V)
1309 ac_init_version=: ;;
1311 -with-* | --with-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error $? "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=\$ac_optarg ;;
1327 -without-* | --without-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=no ;;
1343 --x)
1344 # Obsolete; use --with-x.
1345 with_x=yes ;;
1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1348 | --x-incl | --x-inc | --x-in | --x-i)
1349 ac_prev=x_includes ;;
1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1352 x_includes=$ac_optarg ;;
1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1356 ac_prev=x_libraries ;;
1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1359 x_libraries=$ac_optarg ;;
1361 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1362 Try \`$0 --help' for more information"
1365 *=*)
1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367 # Reject names that are not valid shell variable names.
1368 case $ac_envvar in #(
1369 '' | [0-9]* | *[!_$as_cr_alnum]* )
1370 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1371 esac
1372 eval $ac_envvar=\$ac_optarg
1373 export $ac_envvar ;;
1376 # FIXME: should be removed in autoconf 3.0.
1377 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1380 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1383 esac
1384 done
1386 if test -n "$ac_prev"; then
1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1388 as_fn_error $? "missing argument to $ac_option"
1391 if test -n "$ac_unrecognized_opts"; then
1392 case $enable_option_checking in
1393 no) ;;
1394 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 esac
1399 # Check all directory arguments for consistency.
1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
1407 case $ac_val in
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
1411 esac
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1418 done
1420 # There might be people who depend on the old broken behavior: `$host'
1421 # used to hold the argument of --host etc.
1422 # FIXME: To remove some day.
1423 build=$build_alias
1424 host=$host_alias
1425 target=$target_alias
1427 # FIXME: To remove some day.
1428 if test "x$host_alias" != x; then
1429 if test "x$build_alias" = x; then
1430 cross_compiling=maybe
1431 elif test "x$build_alias" != "x$host_alias"; then
1432 cross_compiling=yes
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439 test "$silent" = yes && exec 6>/dev/null
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error $? "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error $? "pwd does not report name of working directory"
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$as_myself" : 'X\(//\)[^/]' \| \
1457 X"$as_myself" : 'X\(//\)$' \| \
1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 s//\1/
1464 /^X\(\/\/\)[^/].*/{
1465 s//\1/
1468 /^X\(\/\/\)$/{
1469 s//\1/
1472 /^X\(\/\).*/{
1473 s//\1/
1476 s/.*/./; q'`
1477 srcdir=$ac_confdir
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 srcdir=..
1481 else
1482 ac_srcdir_defaulted=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1489 ac_abs_confdir=`(
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1491 pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 srcdir=.
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_${ac_var}_value=\$${ac_var}
1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1515 cat <<_ACEOF
1516 \`configure' configures this package to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1525 Configuration:
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking ...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 [PREFIX]
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1569 _ACEOF
1571 cat <<\_ACEOF
1573 X features:
1574 --x-includes=DIR X include files are in DIR
1575 --x-libraries=DIR X library files are in DIR
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 _ACEOF
1583 if test -n "$ac_init_help"; then
1585 cat <<\_ACEOF
1587 Optional Features:
1588 --disable-option-checking ignore unrecognized --enable/--with options
1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1591 --disable-libpng-config disable libpng-config test and configuration
1592 --enable-lto=yes|no Enable link time optimizations if the target
1593 compiler supports them (default=no)
1594 --enable-build-type=TYPE
1595 Select the build type. Available types are:
1596 personal, nightly, snapshot, milestone, release. Do
1597 NOT use this option unless you know what you are
1598 doing! (default=personal)
1599 --enable-debug=list Enable different types of debug. Commas or
1600 whitespaces can be used to separate the items in the
1601 list. Available types of debug are: all, none,
1602 messages, stack, mungwall, modules, symbols. If no
1603 list is provided then "all" is assumed.
1604 (default=none)
1605 --enable-distcc Use distcc as a front end to the compiler
1606 (default=no).
1607 --enable-ccache Use ccache as a front end to the compiler
1608 (default=no).
1609 --enable-target-variant=NAME
1610 Enable a specific target variant (default=none)
1611 --enable-amigaos-compliance=VERSION
1612 Enforce userspace AmigaOS compliance to a specific
1613 KickStart version (default=none).
1614 --disable-crosstools Do not build cross-compiler toolchain
1615 --enable-objc Enable Objectve-C support (default=no)
1616 --enable-java Enable Java support (default=no)
1617 --enable-includes=dir Alternative system include directory
1618 --enable-palm-debug-hack
1619 Enable palm debug output hack in palm native
1620 (default=no)
1621 --enable-usb30-code Enable usb3.0 code (default=no)
1622 --enable-nesting-supervisor
1623 Enable nesting supervisor support in unix
1624 (default=no)
1625 --disable-mmu Disable MMU support (default=enabled)
1626 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1627 --enable-x11-shm use X11 shared memory (default=auto)
1628 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1629 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1630 --disable-sdltest Do not try to compile and run a test SDL program
1631 --enable-dbus Enable DBUS support via dbus.library (default=no)
1633 Optional Packages:
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-c-compiler=VERSION
1637 Use specified c compiler for building AROS
1638 --with-cxx-compiler=VERSION
1639 Use specified c++ compiler building AROS
1640 --with-toolchain=family Which toolchain family to crosscompile with
1641 (defaults to gnu)
1642 --with-kernel-gcc-version=VERSION
1643 Use gcc-VERSION for building bootstrap
1644 --with-optimization=FLAGS
1645 Use optimization flags FLAGS (default=-O2).
1646 --with-paranoia=(yes|no|FLAGS)
1647 Specific compiler warning FLAGS to enable for
1648 paranoia builds (default=-Wall -Werror)
1649 --with-xcode=PATH Specify XCode path for iOS targets
1650 (default=/Developer).
1651 --with-sdk-version=VERSION
1652 Use iOS SDK version VERSION (default=4.1).
1653 --with-sdk=PATH Specify Android SDK path
1654 (default=$default_android_sdk).
1655 --with-ndk=PATH Specify Android NDK path (default=none).
1656 --with-sdk-version=LEVEL
1657 Use Android SDK for API LEVEL (default=12).
1658 --with-ndk-version=LEVEL
1659 Use Android NDK for API LEVEL (default=9).
1660 --with-apk-version=(release|debug)
1661 Which version of AROSBootstrap.apk to compile.
1662 Release version needs key for signing, debug version
1663 will only run in emulator. (default=release)
1664 --with-kernel-toolchain-prefix=...
1665 Specify crosscompile toolchain prefix for kernel
1666 objects
1667 --with-elf-toolchain-prefix=...
1668 Specify crosscompile toolchain prefix to wrap for
1669 AROS objects
1670 --with-aros-toolchain=PREFIX
1671 Specify prebuilt AROS toolchain. Use yes for default
1672 name
1673 --with-aros-toolchain-install=DIR
1674 Where to install or search for cross tools binaries
1675 --with-binutils-version=VERSION
1676 Use binutils-VERSION for building AROS
1677 --with-gcc-version=VERSION
1678 Compile gcc-VERSION for AROS
1679 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1680 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1681 --with-float=<spec> Specify floating point ABI
1682 (default=$gcc_default_float_abi).
1683 --with-portssources=DIR Where to download sourcecode for external ports
1684 --with-bootloader=NAME Use a specific bootloader
1685 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1686 --with-theme=NAME Use a specific GUI Theme
1687 --with-resolution=XRESxYRESxDEPTH
1688 Default resolution of the initial WorkbenchScreen
1689 --with-serial-debug Enable serial debug output in native (default=no)
1690 --with-x use the X Window System
1691 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1692 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1694 Some influential environment variables:
1695 CXX C++ compiler command
1696 CXXFLAGS C++ compiler flags
1697 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1698 nonstandard directory <lib dir>
1699 LIBS libraries to pass to the linker, e.g. -l<library>
1700 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1701 you have headers in a nonstandard directory <include dir>
1702 CC C compiler command
1703 CFLAGS C compiler flags
1704 CPP C preprocessor
1705 PYTHON the Python interpreter
1706 XMKMF Path to xmkmf, Makefile generator for X Window System
1708 Use these variables to override the choices made by `configure' or to help
1709 it to find libraries and programs with nonstandard names/locations.
1711 Report bugs to the package provider.
1712 _ACEOF
1713 ac_status=$?
1716 if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 continue
1722 ac_builddir=.
1724 case "$ac_dir" in
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733 esac ;;
1734 esac
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1740 case $srcdir in
1741 .) # We are building in place.
1742 ac_srcdir=.
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1746 ac_srcdir=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1749 *) # Relative name.
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 esac
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for guested configure.
1758 if test -f "$ac_srcdir/configure.gnu"; then
1759 echo &&
1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761 elif test -f "$ac_srcdir/configure"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure" --help=recursive
1764 else
1765 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 fi || ac_status=$?
1767 cd "$ac_pwd" || { ac_status=$?; break; }
1768 done
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1773 cat <<\_ACEOF
1774 configure
1775 generated by GNU Autoconf 2.69
1777 Copyright (C) 2012 Free Software Foundation, Inc.
1778 This configure script is free software; the Free Software Foundation
1779 gives unlimited permission to copy, distribute and modify it.
1780 _ACEOF
1781 exit
1784 ## ------------------------ ##
1785 ## Autoconf initialization. ##
1786 ## ------------------------ ##
1788 # ac_fn_cxx_try_compile LINENO
1789 # ----------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1819 ac_retval=1
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_cxx_try_compile
1826 # ac_fn_c_try_compile LINENO
1827 # --------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=1
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_compile
1864 # ac_fn_c_try_cpp LINENO
1865 # ----------------------
1866 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_c_try_cpp ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { { ac_try="$ac_cpp conftest.$ac_ext"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } > conftest.i && {
1886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_c_try_cpp
1901 # ac_fn_c_try_link LINENO
1902 # -----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_link ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext conftest$ac_exeext
1908 if { { ac_try="$ac_link"
1909 case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest$ac_exeext && {
1927 test "$cross_compiling" = yes ||
1928 test -x conftest$ac_exeext
1929 }; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=1
1937 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939 # interfere with the next link command; also delete a directory that is
1940 # left behind by Apple's compiler. We do this before executing the actions.
1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1945 } # ac_fn_c_try_link
1947 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1948 # -------------------------------------------------------
1949 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1950 # the include files in INCLUDES and setting the cache variable VAR
1951 # accordingly.
1952 ac_fn_c_check_header_mongrel ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if eval \${$3+:} false; then :
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 else
1965 # Is the header compilable?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1967 $as_echo_n "checking $2 usability... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1971 #include <$2>
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_header_compiler=yes
1975 else
1976 ac_header_compiler=no
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1980 $as_echo "$ac_header_compiler" >&6; }
1982 # Is the header present?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1984 $as_echo_n "checking $2 presence... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_cpp "$LINENO"; then :
1990 ac_header_preproc=yes
1991 else
1992 ac_header_preproc=no
1994 rm -f conftest.err conftest.i conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1996 $as_echo "$ac_header_preproc" >&6; }
1998 # So? What about this header?
1999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2000 yes:no: )
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2002 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 no:yes:* )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2008 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2010 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2012 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2014 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2018 esac
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=\$ac_header_compiler"
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2038 ac_fn_c_try_run ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_run
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 eval "$3=yes"
2095 else
2096 eval "$3=no"
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_compile
2107 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2108 # ----------------------------------------------------
2109 # Tries to find if the field MEMBER exists in type AGGR, after including
2110 # INCLUDES, setting cache variable VAR accordingly.
2111 ac_fn_c_check_member ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2115 $as_echo_n "checking for $2.$3... " >&6; }
2116 if eval \${$4+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static $2 ac_aggr;
2126 if (ac_aggr.$3)
2127 return 0;
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 eval "$4=yes"
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 static $2 ac_aggr;
2142 if (sizeof ac_aggr.$3)
2143 return 0;
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 eval "$4=yes"
2150 else
2151 eval "$4=no"
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 eval ac_res=\$$4
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 } # ac_fn_c_check_member
2164 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2165 # ---------------------------------------------
2166 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2167 # accordingly.
2168 ac_fn_c_check_decl ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 as_decl_name=`echo $2|sed 's/ *(.*//'`
2172 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2174 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 main ()
2184 #ifndef $as_decl_name
2185 #ifdef __cplusplus
2186 (void) $as_decl_use;
2187 #else
2188 (void) $as_decl_name;
2189 #endif
2190 #endif
2193 return 0;
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 eval "$3=yes"
2198 else
2199 eval "$3=no"
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 eval ac_res=\$$3
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_c_check_decl
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 eval "$3=no"
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2227 main ()
2229 if (sizeof ($2))
2230 return 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2240 main ()
2242 if (sizeof (($2)))
2243 return 0;
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2250 else
2251 eval "$3=yes"
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_c_check_type
2264 # ac_fn_c_check_func LINENO FUNC VAR
2265 # ----------------------------------
2266 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2267 ac_fn_c_check_func ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2279 #define $2 innocuous_$2
2281 /* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char $2 (); below.
2283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2284 <limits.h> exists even on freestanding compilers. */
2286 #ifdef __STDC__
2287 # include <limits.h>
2288 #else
2289 # include <assert.h>
2290 #endif
2292 #undef $2
2294 /* Override any GCC internal prototype to avoid an error.
2295 Use char because int might match the return type of a GCC
2296 builtin and then its argument prototype would still apply. */
2297 #ifdef __cplusplus
2298 extern "C"
2299 #endif
2300 char $2 ();
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined __stub_$2 || defined __stub___$2
2305 choke me
2306 #endif
2309 main ()
2311 return $2 ();
2313 return 0;
2315 _ACEOF
2316 if ac_fn_c_try_link "$LINENO"; then :
2317 eval "$3=yes"
2318 else
2319 eval "$3=no"
2321 rm -f core conftest.err conftest.$ac_objext \
2322 conftest$ac_exeext conftest.$ac_ext
2324 eval ac_res=\$$3
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329 } # ac_fn_c_check_func
2330 cat >config.log <<_ACEOF
2331 This file contains any messages produced by compilers while
2332 running configure, to aid debugging if configure makes a mistake.
2334 It was created by $as_me, which was
2335 generated by GNU Autoconf 2.69. Invocation command line was
2337 $ $0 $@
2339 _ACEOF
2340 exec 5>>config.log
2342 cat <<_ASUNAME
2343 ## --------- ##
2344 ## Platform. ##
2345 ## --------- ##
2347 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2348 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2349 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2350 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2351 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2353 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2354 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2356 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2357 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2358 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2359 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2360 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2361 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2362 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2364 _ASUNAME
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 $as_echo "PATH: $as_dir"
2372 done
2373 IFS=$as_save_IFS
2375 } >&5
2377 cat >&5 <<_ACEOF
2380 ## ----------- ##
2381 ## Core tests. ##
2382 ## ----------- ##
2384 _ACEOF
2387 # Keep a trace of the command line.
2388 # Strip out --no-create and --no-recursion so they do not pile up.
2389 # Strip out --silent because we don't want to record it for future runs.
2390 # Also quote any args containing shell meta-characters.
2391 # Make two passes to allow for proper duplicate-argument suppression.
2392 ac_configure_args=
2393 ac_configure_args0=
2394 ac_configure_args1=
2395 ac_must_keep_next=false
2396 for ac_pass in 1 2
2398 for ac_arg
2400 case $ac_arg in
2401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2403 | -silent | --silent | --silen | --sile | --sil)
2404 continue ;;
2405 *\'*)
2406 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2407 esac
2408 case $ac_pass in
2409 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2411 as_fn_append ac_configure_args1 " '$ac_arg'"
2412 if test $ac_must_keep_next = true; then
2413 ac_must_keep_next=false # Got value, back to normal.
2414 else
2415 case $ac_arg in
2416 *=* | --config-cache | -C | -disable-* | --disable-* \
2417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2419 | -with-* | --with-* | -without-* | --without-* | --x)
2420 case "$ac_configure_args0 " in
2421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2422 esac
2424 -* ) ac_must_keep_next=true ;;
2425 esac
2427 as_fn_append ac_configure_args " '$ac_arg'"
2429 esac
2430 done
2431 done
2432 { ac_configure_args0=; unset ac_configure_args0;}
2433 { ac_configure_args1=; unset ac_configure_args1;}
2435 # When interrupted or exit'd, cleanup temporary files, and complete
2436 # config.log. We remove comments because anyway the quotes in there
2437 # would cause problems or look ugly.
2438 # WARNING: Use '\'' to represent an apostrophe within the trap.
2439 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2440 trap 'exit_status=$?
2441 # Save into config.log some information that might help in debugging.
2443 echo
2445 $as_echo "## ---------------- ##
2446 ## Cache variables. ##
2447 ## ---------------- ##"
2448 echo
2449 # The following way of writing the cache mishandles newlines in values,
2451 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2452 eval ac_val=\$$ac_var
2453 case $ac_val in #(
2454 *${as_nl}*)
2455 case $ac_var in #(
2456 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2457 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2458 esac
2459 case $ac_var in #(
2460 _ | IFS | as_nl) ;; #(
2461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2462 *) { eval $ac_var=; unset $ac_var;} ;;
2463 esac ;;
2464 esac
2465 done
2466 (set) 2>&1 |
2467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2468 *${as_nl}ac_space=\ *)
2469 sed -n \
2470 "s/'\''/'\''\\\\'\'''\''/g;
2471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2472 ;; #(
2474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2476 esac |
2477 sort
2479 echo
2481 $as_echo "## ----------------- ##
2482 ## Output variables. ##
2483 ## ----------------- ##"
2484 echo
2485 for ac_var in $ac_subst_vars
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2495 if test -n "$ac_subst_files"; then
2496 $as_echo "## ------------------- ##
2497 ## File substitutions. ##
2498 ## ------------------- ##"
2499 echo
2500 for ac_var in $ac_subst_files
2502 eval ac_val=\$$ac_var
2503 case $ac_val in
2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 esac
2506 $as_echo "$ac_var='\''$ac_val'\''"
2507 done | sort
2508 echo
2511 if test -s confdefs.h; then
2512 $as_echo "## ----------- ##
2513 ## confdefs.h. ##
2514 ## ----------- ##"
2515 echo
2516 cat confdefs.h
2517 echo
2519 test "$ac_signal" != 0 &&
2520 $as_echo "$as_me: caught signal $ac_signal"
2521 $as_echo "$as_me: exit $exit_status"
2522 } >&5
2523 rm -f core *.core core.conftest.* &&
2524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2525 exit $exit_status
2527 for ac_signal in 1 2 13 15; do
2528 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2529 done
2530 ac_signal=0
2532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2533 rm -f -r conftest* confdefs.h
2535 $as_echo "/* confdefs.h */" > confdefs.h
2537 # Predefined preprocessor variables.
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_NAME "$PACKAGE_NAME"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2549 _ACEOF
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_STRING "$PACKAGE_STRING"
2553 _ACEOF
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2557 _ACEOF
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_URL "$PACKAGE_URL"
2561 _ACEOF
2564 # Let the site file select an alternate cache file if it wants to.
2565 # Prefer an explicitly selected file to automatically selected ones.
2566 ac_site_file1=NONE
2567 ac_site_file2=NONE
2568 if test -n "$CONFIG_SITE"; then
2569 # We do not want a PATH search for config.site.
2570 case $CONFIG_SITE in #((
2571 -*) ac_site_file1=./$CONFIG_SITE;;
2572 */*) ac_site_file1=$CONFIG_SITE;;
2573 *) ac_site_file1=./$CONFIG_SITE;;
2574 esac
2575 elif test "x$prefix" != xNONE; then
2576 ac_site_file1=$prefix/share/config.site
2577 ac_site_file2=$prefix/etc/config.site
2578 else
2579 ac_site_file1=$ac_default_prefix/share/config.site
2580 ac_site_file2=$ac_default_prefix/etc/config.site
2582 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2584 test "x$ac_site_file" = xNONE && continue
2585 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2587 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2588 sed 's/^/| /' "$ac_site_file" >&5
2589 . "$ac_site_file" \
2590 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $? "failed to load site script $ac_site_file
2593 See \`config.log' for more details" "$LINENO" 5; }
2595 done
2597 if test -r "$cache_file"; then
2598 # Some versions of bash will fail to source /dev/null (special files
2599 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2600 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2602 $as_echo "$as_me: loading cache $cache_file" >&6;}
2603 case $cache_file in
2604 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2605 *) . "./$cache_file";;
2606 esac
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2610 $as_echo "$as_me: creating cache $cache_file" >&6;}
2611 >$cache_file
2614 as_fn_append ac_header_list " stdlib.h"
2615 as_fn_append ac_header_list " unistd.h"
2616 as_fn_append ac_header_list " sys/param.h"
2617 # Check that the precious variables saved in the cache have kept the same
2618 # value.
2619 ac_cache_corrupted=false
2620 for ac_var in $ac_precious_vars; do
2621 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2622 eval ac_new_set=\$ac_env_${ac_var}_set
2623 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2624 eval ac_new_val=\$ac_env_${ac_var}_value
2625 case $ac_old_set,$ac_new_set in
2626 set,)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2628 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,set)
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2632 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2633 ac_cache_corrupted=: ;;
2634 ,);;
2636 if test "x$ac_old_val" != "x$ac_new_val"; then
2637 # differences in whitespace do not lead to failure.
2638 ac_old_val_w=`echo x $ac_old_val`
2639 ac_new_val_w=`echo x $ac_new_val`
2640 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2642 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2643 ac_cache_corrupted=:
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2646 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2647 eval $ac_var=\$ac_old_val
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2650 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2652 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 fi;;
2654 esac
2655 # Pass precious variables to config.status.
2656 if test "$ac_new_set" = set; then
2657 case $ac_new_val in
2658 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2659 *) ac_arg=$ac_var=$ac_new_val ;;
2660 esac
2661 case " $ac_configure_args " in
2662 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2663 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2664 esac
2666 done
2667 if $ac_cache_corrupted; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2671 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2672 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2674 ## -------------------- ##
2675 ## Main body of script. ##
2676 ## -------------------- ##
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 ac_aux_dir=
2687 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2688 if test -f "$ac_dir/install-sh"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/install-sh -c"
2691 break
2692 elif test -f "$ac_dir/install.sh"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/install.sh -c"
2695 break
2696 elif test -f "$ac_dir/shtool"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/shtool install -c"
2699 break
2701 done
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2716 # Check what host we are running on.
2717 # If a target is not suggested, we use this one.
2718 # Note that what we call a target, Autoconf calls a host.
2719 # Make sure we can run config.sub.
2720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2724 $as_echo_n "checking build system type... " >&6; }
2725 if ${ac_cv_build+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 ac_build_alias=$build_alias
2729 test "x$ac_build_alias" = x &&
2730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2731 test "x$ac_build_alias" = x &&
2732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2738 $as_echo "$ac_cv_build" >&6; }
2739 case $ac_cv_build in
2740 *-*-*) ;;
2741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2742 esac
2743 build=$ac_cv_build
2744 ac_save_IFS=$IFS; IFS='-'
2745 set x $ac_cv_build
2746 shift
2747 build_cpu=$1
2748 build_vendor=$2
2749 shift; shift
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2752 build_os=$*
2753 IFS=$ac_save_IFS
2754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2758 $as_echo_n "checking host system type... " >&6; }
2759 if ${ac_cv_host+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test "x$host_alias" = x; then
2763 ac_cv_host=$ac_cv_build
2764 else
2765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2771 $as_echo "$ac_cv_host" >&6; }
2772 case $ac_cv_host in
2773 *-*-*) ;;
2774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2775 esac
2776 host=$ac_cv_host
2777 ac_save_IFS=$IFS; IFS='-'
2778 set x $ac_cv_host
2779 shift
2780 host_cpu=$1
2781 host_vendor=$2
2782 shift; shift
2783 # Remember, the first character of IFS is used to create $*,
2784 # except with old shells:
2785 host_os=$*
2786 IFS=$ac_save_IFS
2787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2791 # Default versions for the gnu tools we build
2792 default_gcc_version="4.6.4"
2793 default_binutils_version="2.23.2"
2795 # The AROS target is slightly different to the normal GNU style
2796 # format. We don't have the middle part, and we reverse the order
2797 # of the $(CPU) and $(OS) bits.
2799 # Don't strip the version of the target yet, it might be
2800 # useful on some systems.
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2803 $as_echo_n "checking for AROS style target... " >&6; }
2805 if test "$target" = "NONE" ; then
2806 target=$host_os-$host_cpu
2807 else
2808 if test "$target" = "" ; then
2809 target=$host_os-$host_cpu
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2813 $as_echo "$target" >&6; }
2815 if test "$host_os" = "mingw32" ; then
2816 PWDCMD="pwd -W"
2819 # Don't know where else to put this...
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2821 $as_echo_n "checking building AROS in... " >&6; }
2822 AROS_BUILDDIR=`${PWDCMD-pwd}`
2823 AROS_BUILDDIR_UNIX=${PWD}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2825 $as_echo "$AROS_BUILDDIR" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2828 $as_echo_n "checking AROS source in... " >&6; }
2829 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2830 SRCDIR=${srcpwd}
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2832 $as_echo "$SRCDIR" >&6; }
2834 # Parse the target field into something useful.
2836 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2837 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2840 # Some debug output, to be removed again.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2842 $as_echo_n "checking for target system (debug output)... " >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2844 $as_echo "$target_os" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2846 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2848 $as_echo "$target_cpu" >&6; }
2850 aros_nominal_width=800
2851 aros_nominal_height=600
2852 aros_nominal_depth=4
2855 default_c_compilers="gcc clang cc"
2857 # Check whether --with-c-compiler was given.
2858 if test "${with_c_compiler+set}" = set; then :
2859 withval=$with_c_compiler; use_c_compiler="$withval"
2860 else
2861 use_c_compiler=""
2864 if test "$use_c_compiler" = ""; then
2865 host_c_compilers="$default_c_compilers"
2866 else
2867 host_c_compilers="$use_c_compiler"
2870 default_cxx_compilers="g++ clang++ c++"
2872 # Check whether --with-cxx-compiler was given.
2873 if test "${with_cxx_compiler+set}" = set; then :
2874 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2875 else
2876 use_cxx_compiler=""
2879 if test "$use_cxx_compiler" = ""; then
2880 host_cxx_compilers="$default_cxx_compilers"
2881 else
2882 host_cxx_compilers="$use_cxx_compiler"
2886 # The first step is to find the host binaries.
2887 # Check for a compiler.
2888 # Due to a bug in autoconf check for c++ compiler first.
2889 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2890 ac_ext=cpp
2891 ac_cpp='$CXXCPP $CPPFLAGS'
2892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2895 if test -z "$CXX"; then
2896 if test -n "$CCC"; then
2897 CXX=$CCC
2898 else
2899 if test -n "$ac_tool_prefix"; then
2900 for ac_prog in ${host_cxx_compilers}
2902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CXX+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$CXX"; then
2910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 CXX=$ac_cv_prog_CXX
2930 if test -n "$CXX"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2932 $as_echo "$CXX" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2939 test -n "$CXX" && break
2940 done
2942 if test -z "$CXX"; then
2943 ac_ct_CXX=$CXX
2944 for ac_prog in ${host_cxx_compilers}
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy $ac_prog; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$ac_ct_CXX"; then
2954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CXX="$ac_prog"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2969 IFS=$as_save_IFS
2973 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2974 if test -n "$ac_ct_CXX"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2976 $as_echo "$ac_ct_CXX" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2983 test -n "$ac_ct_CXX" && break
2984 done
2986 if test "x$ac_ct_CXX" = x; then
2987 CXX="g++"
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995 CXX=$ac_ct_CXX
3001 # Provide some information about the compiler.
3002 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3003 set X $ac_compile
3004 ac_compiler=$2
3005 for ac_option in --version -v -V -qversion; do
3006 { { ac_try="$ac_compiler $ac_option >&5"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3014 ac_status=$?
3015 if test -s conftest.err; then
3016 sed '10a\
3017 ... rest of stderr output deleted ...
3018 10q' conftest.err >conftest.er1
3019 cat conftest.er1 >&5
3021 rm -f conftest.er1 conftest.err
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }
3024 done
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h. */
3030 main ()
3034 return 0;
3036 _ACEOF
3037 ac_clean_files_save=$ac_clean_files
3038 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3039 # Try to create an executable without -o first, disregard a.out.
3040 # It will help us diagnose broken compilers, and finding out an intuition
3041 # of exeext.
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3043 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3044 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046 # The possible output files:
3047 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3049 ac_rmfiles=
3050 for ac_file in $ac_files
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3054 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3055 esac
3056 done
3057 rm -f $ac_rmfiles
3059 if { { ac_try="$ac_link_default"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link_default") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; then :
3070 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3071 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3072 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3073 # so that the user can short-circuit this test for compilers unknown to
3074 # Autoconf.
3075 for ac_file in $ac_files ''
3077 test -f "$ac_file" || continue
3078 case $ac_file in
3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3081 [ab].out )
3082 # We found the default executable, but exeext='' is most
3083 # certainly right.
3084 break;;
3085 *.* )
3086 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3087 then :; else
3088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 # We set ac_cv_exeext here because the later test for it is not
3091 # safe: cross compilers may not add the suffix if given an `-o'
3092 # argument, so we may need to know it at that point already.
3093 # Even if this section looks crufty: it has the advantage of
3094 # actually working.
3095 break;;
3097 break;;
3098 esac
3099 done
3100 test "$ac_cv_exeext" = no && ac_cv_exeext=
3102 else
3103 ac_file=''
3105 if test -z "$ac_file"; then :
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 $as_echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 as_fn_error 77 "C++ compiler cannot create executables
3114 See \`config.log' for more details" "$LINENO" 5; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117 $as_echo "yes" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3120 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3122 $as_echo "$ac_file" >&6; }
3123 ac_exeext=$ac_cv_exeext
3125 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3126 ac_clean_files=$ac_clean_files_save
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3128 $as_echo_n "checking for suffix of executables... " >&6; }
3129 if { { ac_try="$ac_link"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_link") 2>&5
3137 ac_status=$?
3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }; then :
3140 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3141 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3142 # work properly (i.e., refer to `conftest.exe'), while it won't with
3143 # `rm'.
3144 for ac_file in conftest.exe conftest conftest.*; do
3145 test -f "$ac_file" || continue
3146 case $ac_file in
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3148 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 break;;
3150 * ) break;;
3151 esac
3152 done
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3157 See \`config.log' for more details" "$LINENO" 5; }
3159 rm -f conftest conftest$ac_cv_exeext
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3161 $as_echo "$ac_cv_exeext" >&6; }
3163 rm -f conftest.$ac_ext
3164 EXEEXT=$ac_cv_exeext
3165 ac_exeext=$EXEEXT
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3168 #include <stdio.h>
3170 main ()
3172 FILE *f = fopen ("conftest.out", "w");
3173 return ferror (f) || fclose (f) != 0;
3176 return 0;
3178 _ACEOF
3179 ac_clean_files="$ac_clean_files conftest.out"
3180 # Check that the compiler produces executables we can run. If not, either
3181 # the compiler is broken, or we cross compile.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3183 $as_echo_n "checking whether we are cross compiling... " >&6; }
3184 if test "$cross_compiling" != yes; then
3185 { { ac_try="$ac_link"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_link") 2>&5
3193 ac_status=$?
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }
3196 if { ac_try='./conftest$ac_cv_exeext'
3197 { { case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; }; then
3207 cross_compiling=no
3208 else
3209 if test "$cross_compiling" = maybe; then
3210 cross_compiling=yes
3211 else
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot run C++ compiled programs.
3215 If you meant to cross compile, use \`--host'.
3216 See \`config.log' for more details" "$LINENO" 5; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3221 $as_echo "$cross_compiling" >&6; }
3223 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3224 ac_clean_files=$ac_clean_files_save
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3226 $as_echo_n "checking for suffix of object files... " >&6; }
3227 if ${ac_cv_objext+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.o conftest.obj
3242 if { { ac_try="$ac_compile"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_compile") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 for ac_file in conftest.o conftest.obj conftest.*; do
3254 test -f "$ac_file" || continue;
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 break;;
3259 esac
3260 done
3261 else
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details" "$LINENO" 5; }
3270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3273 $as_echo "$ac_cv_objext" >&6; }
3274 OBJEXT=$ac_cv_objext
3275 ac_objext=$OBJEXT
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3277 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3278 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3285 main ()
3287 #ifndef __GNUC__
3288 choke me
3289 #endif
3292 return 0;
3294 _ACEOF
3295 if ac_fn_cxx_try_compile "$LINENO"; then :
3296 ac_compiler_gnu=yes
3297 else
3298 ac_compiler_gnu=no
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3305 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3306 if test $ac_compiler_gnu = yes; then
3307 GXX=yes
3308 else
3309 GXX=
3311 ac_test_CXXFLAGS=${CXXFLAGS+set}
3312 ac_save_CXXFLAGS=$CXXFLAGS
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3314 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3315 if ${ac_cv_prog_cxx_g+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3319 ac_cxx_werror_flag=yes
3320 ac_cv_prog_cxx_g=no
3321 CXXFLAGS="-g"
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3326 main ()
3330 return 0;
3332 _ACEOF
3333 if ac_fn_cxx_try_compile "$LINENO"; then :
3334 ac_cv_prog_cxx_g=yes
3335 else
3336 CXXFLAGS=""
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3341 main ()
3345 return 0;
3347 _ACEOF
3348 if ac_fn_cxx_try_compile "$LINENO"; then :
3350 else
3351 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3352 CXXFLAGS="-g"
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3357 main ()
3361 return 0;
3363 _ACEOF
3364 if ac_fn_cxx_try_compile "$LINENO"; then :
3365 ac_cv_prog_cxx_g=yes
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3375 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3376 if test "$ac_test_CXXFLAGS" = set; then
3377 CXXFLAGS=$ac_save_CXXFLAGS
3378 elif test $ac_cv_prog_cxx_g = yes; then
3379 if test "$GXX" = yes; then
3380 CXXFLAGS="-g -O2"
3381 else
3382 CXXFLAGS="-g"
3384 else
3385 if test "$GXX" = yes; then
3386 CXXFLAGS="-O2"
3387 else
3388 CXXFLAGS=
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
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 if test -n "$ac_tool_prefix"; then
3403 for ac_prog in ${host_c_compilers}
3405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3426 done
3427 done
3428 IFS=$as_save_IFS
3432 CC=$ac_cv_prog_CC
3433 if test -n "$CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435 $as_echo "$CC" >&6; }
3436 else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3442 test -n "$CC" && break
3443 done
3445 if test -z "$CC"; then
3446 ac_ct_CC=$CC
3447 for ac_prog in ${host_c_compilers}
3449 # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy $ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$ac_ct_CC"; then
3457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_ac_ct_CC="$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3470 done
3471 done
3472 IFS=$as_save_IFS
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3479 $as_echo "$ac_ct_CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3486 test -n "$ac_ct_CC" && break
3487 done
3489 if test "x$ac_ct_CC" = x; then
3490 CC=""
3491 else
3492 case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498 CC=$ac_ct_CC
3503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "no acceptable C compiler found in \$PATH
3506 See \`config.log' for more details" "$LINENO" 5; }
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3510 set X $ac_compile
3511 ac_compiler=$2
3512 for ac_option in --version -v -V -qversion; do
3513 { { ac_try="$ac_compiler $ac_option >&5"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521 ac_status=$?
3522 if test -s conftest.err; then
3523 sed '10a\
3524 ... rest of stderr output deleted ...
3525 10q' conftest.err >conftest.er1
3526 cat conftest.er1 >&5
3528 rm -f conftest.er1 conftest.err
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }
3531 done
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3534 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3535 if ${ac_cv_c_compiler_gnu+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3542 main ()
3544 #ifndef __GNUC__
3545 choke me
3546 #endif
3549 return 0;
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_compiler_gnu=yes
3554 else
3555 ac_compiler_gnu=no
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3562 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3563 if test $ac_compiler_gnu = yes; then
3564 GCC=yes
3565 else
3566 GCC=
3568 ac_test_CFLAGS=${CFLAGS+set}
3569 ac_save_CFLAGS=$CFLAGS
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3571 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3572 if ${ac_cv_prog_cc_g+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_save_c_werror_flag=$ac_c_werror_flag
3576 ac_c_werror_flag=yes
3577 ac_cv_prog_cc_g=no
3578 CFLAGS="-g"
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3583 main ()
3587 return 0;
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_g=yes
3592 else
3593 CFLAGS=""
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3598 main ()
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3607 else
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3609 CFLAGS="-g"
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3614 main ()
3618 return 0;
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622 ac_cv_prog_cc_g=yes
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3632 $as_echo "$ac_cv_prog_cc_g" >&6; }
3633 if test "$ac_test_CFLAGS" = set; then
3634 CFLAGS=$ac_save_CFLAGS
3635 elif test $ac_cv_prog_cc_g = yes; then
3636 if test "$GCC" = yes; then
3637 CFLAGS="-g -O2"
3638 else
3639 CFLAGS="-g"
3641 else
3642 if test "$GCC" = yes; then
3643 CFLAGS="-O2"
3644 else
3645 CFLAGS=
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3649 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3650 if ${ac_cv_prog_cc_c89+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 ac_cv_prog_cc_c89=no
3654 ac_save_CC=$CC
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #include <stdarg.h>
3658 #include <stdio.h>
3659 struct stat;
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664 char **p;
3665 int i;
3667 return p[i];
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3690 #define FOO(x) 'x'
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 int argc;
3698 char **argv;
3700 main ()
3702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3704 return 0;
3706 _ACEOF
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c89=$ac_arg
3714 rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c89" != "xno" && break
3716 done
3717 rm -f conftest.$ac_ext
3718 CC=$ac_save_CC
3721 # AC_CACHE_VAL
3722 case "x$ac_cv_prog_cc_c89" in
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3726 xno)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3730 CC="$CC $ac_cv_prog_cc_c89"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3733 esac
3734 if test "x$ac_cv_prog_cc_c89" != xno; then :
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 aros_host_def_cc="$CC"
3745 case $ac_cv_prog_cc_stdc in #(
3746 no) :
3747 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3748 *) :
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3751 if ${ac_cv_prog_cc_c99+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_cv_prog_cc_c99=no
3755 ac_save_CC=$CC
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdbool.h>
3760 #include <stdlib.h>
3761 #include <wchar.h>
3762 #include <stdio.h>
3764 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3765 #define debug(...) fprintf (stderr, __VA_ARGS__)
3766 #define showlist(...) puts (#__VA_ARGS__)
3767 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3768 static void
3769 test_varargs_macros (void)
3771 int x = 1234;
3772 int y = 5678;
3773 debug ("Flag");
3774 debug ("X = %d\n", x);
3775 showlist (The first, second, and third items.);
3776 report (x>y, "x is %d but y is %d", x, y);
3779 // Check long long types.
3780 #define BIG64 18446744073709551615ull
3781 #define BIG32 4294967295ul
3782 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3783 #if !BIG_OK
3784 your preprocessor is broken;
3785 #endif
3786 #if BIG_OK
3787 #else
3788 your preprocessor is broken;
3789 #endif
3790 static long long int bignum = -9223372036854775807LL;
3791 static unsigned long long int ubignum = BIG64;
3793 struct incomplete_array
3795 int datasize;
3796 double data[];
3799 struct named_init {
3800 int number;
3801 const wchar_t *name;
3802 double average;
3805 typedef const char *ccp;
3807 static inline int
3808 test_restrict (ccp restrict text)
3810 // See if C++-style comments work.
3811 // Iterate through items via the restricted pointer.
3812 // Also check for declarations in for loops.
3813 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3814 continue;
3815 return 0;
3818 // Check varargs and va_copy.
3819 static void
3820 test_varargs (const char *format, ...)
3822 va_list args;
3823 va_start (args, format);
3824 va_list args_copy;
3825 va_copy (args_copy, args);
3827 const char *str;
3828 int number;
3829 float fnumber;
3831 while (*format)
3833 switch (*format++)
3835 case 's': // string
3836 str = va_arg (args_copy, const char *);
3837 break;
3838 case 'd': // int
3839 number = va_arg (args_copy, int);
3840 break;
3841 case 'f': // float
3842 fnumber = va_arg (args_copy, double);
3843 break;
3844 default:
3845 break;
3848 va_end (args_copy);
3849 va_end (args);
3853 main ()
3856 // Check bool.
3857 _Bool success = false;
3859 // Check restrict.
3860 if (test_restrict ("String literal") == 0)
3861 success = true;
3862 char *restrict newvar = "Another string";
3864 // Check varargs.
3865 test_varargs ("s, d' f .", "string", 65, 34.234);
3866 test_varargs_macros ();
3868 // Check flexible array members.
3869 struct incomplete_array *ia =
3870 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3871 ia->datasize = 10;
3872 for (int i = 0; i < ia->datasize; ++i)
3873 ia->data[i] = i * 1.234;
3875 // Check named initializers.
3876 struct named_init ni = {
3877 .number = 34,
3878 .name = L"Test wide string",
3879 .average = 543.34343,
3882 ni.number = 58;
3884 int dynamic_array[ni.number];
3885 dynamic_array[ni.number - 1] = 543;
3887 // work around unused variable warnings
3888 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3889 || dynamic_array[ni.number - 1] != 543);
3892 return 0;
3894 _ACEOF
3895 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3897 CC="$ac_save_CC $ac_arg"
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_c99=$ac_arg
3901 rm -f core conftest.err conftest.$ac_objext
3902 test "x$ac_cv_prog_cc_c99" != "xno" && break
3903 done
3904 rm -f conftest.$ac_ext
3905 CC=$ac_save_CC
3908 # AC_CACHE_VAL
3909 case "x$ac_cv_prog_cc_c99" in
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3912 $as_echo "none needed" >&6; } ;;
3913 xno)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3915 $as_echo "unsupported" >&6; } ;;
3917 CC="$CC $ac_cv_prog_cc_c99"
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3919 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3920 esac
3921 if test "x$ac_cv_prog_cc_c99" != xno; then :
3922 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3925 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3926 if ${ac_cv_prog_cc_c89+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 ac_cv_prog_cc_c89=no
3930 ac_save_CC=$CC
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <stdarg.h>
3934 #include <stdio.h>
3935 struct stat;
3936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3937 struct buf { int x; };
3938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3939 static char *e (p, i)
3940 char **p;
3941 int i;
3943 return p[i];
3945 static char *f (char * (*g) (char **, int), char **p, ...)
3947 char *s;
3948 va_list v;
3949 va_start (v,p);
3950 s = g (p, va_arg (v,int));
3951 va_end (v);
3952 return s;
3955 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3956 function prototypes and stuff, but not '\xHH' hex character constants.
3957 These don't provoke an error unfortunately, instead are silently treated
3958 as 'x'. The following induces an error, until -std is added to get
3959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3960 array size at least. It's necessary to write '\x00'==0 to get something
3961 that's true only with -std. */
3962 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3964 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3965 inside strings and character constants. */
3966 #define FOO(x) 'x'
3967 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3969 int test (int i, double x);
3970 struct s1 {int (*f) (int a);};
3971 struct s2 {int (*f) (double a);};
3972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973 int argc;
3974 char **argv;
3976 main ()
3978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3980 return 0;
3982 _ACEOF
3983 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3986 CC="$ac_save_CC $ac_arg"
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_c89=$ac_arg
3990 rm -f core conftest.err conftest.$ac_objext
3991 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 done
3993 rm -f conftest.$ac_ext
3994 CC=$ac_save_CC
3997 # AC_CACHE_VAL
3998 case "x$ac_cv_prog_cc_c89" in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001 $as_echo "none needed" >&6; } ;;
4002 xno)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004 $as_echo "unsupported" >&6; } ;;
4006 CC="$CC $ac_cv_prog_cc_c89"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009 esac
4010 if test "x$ac_cv_prog_cc_c89" != xno; then :
4011 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4012 else
4013 ac_cv_prog_cc_stdc=no
4018 esac
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4020 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4021 if ${ac_cv_prog_cc_stdc+:} false; then :
4022 $as_echo_n "(cached) " >&6
4025 case $ac_cv_prog_cc_stdc in #(
4026 no) :
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028 $as_echo "unsupported" >&6; } ;; #(
4029 '') :
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;; #(
4032 *) :
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4034 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4035 esac
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4043 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4044 # On Suns, sometimes $CPP names a directory.
4045 if test -n "$CPP" && test -d "$CPP"; then
4046 CPP=
4048 if test -z "$CPP"; then
4049 if ${ac_cv_prog_CPP+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 # Double quotes because CPP needs to be expanded
4053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4055 ac_preproc_ok=false
4056 for ac_c_preproc_warn_flag in '' yes
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if ac_fn_c_try_cpp "$LINENO"; then :
4075 else
4076 # Broken: fails on valid input.
4077 continue
4079 rm -f conftest.err conftest.i conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4088 # Broken: success on invalid input.
4089 continue
4090 else
4091 # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4095 rm -f conftest.err conftest.i conftest.$ac_ext
4097 done
4098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4099 rm -f conftest.i conftest.err conftest.$ac_ext
4100 if $ac_preproc_ok; then :
4101 break
4104 done
4105 ac_cv_prog_CPP=$CPP
4108 CPP=$ac_cv_prog_CPP
4109 else
4110 ac_cv_prog_CPP=$CPP
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4113 $as_echo "$CPP" >&6; }
4114 ac_preproc_ok=false
4115 for ac_c_preproc_warn_flag in '' yes
4117 # Use a header file that comes with gcc, so configuring glibc
4118 # with a fresh cross-compiler works.
4119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120 # <limits.h> exists even on freestanding compilers.
4121 # On the NeXT, cc -E runs the code through the compiler's parser,
4122 # not just through cpp. "Syntax error" is here to catch this case.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #ifdef __STDC__
4126 # include <limits.h>
4127 #else
4128 # include <assert.h>
4129 #endif
4130 Syntax error
4131 _ACEOF
4132 if ac_fn_c_try_cpp "$LINENO"; then :
4134 else
4135 # Broken: fails on valid input.
4136 continue
4138 rm -f conftest.err conftest.i conftest.$ac_ext
4140 # OK, works on sane cases. Now check whether nonexistent headers
4141 # can be detected and how.
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4145 _ACEOF
4146 if ac_fn_c_try_cpp "$LINENO"; then :
4147 # Broken: success on invalid input.
4148 continue
4149 else
4150 # Passes both tests.
4151 ac_preproc_ok=:
4152 break
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4156 done
4157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4158 rm -f conftest.i conftest.err conftest.$ac_ext
4159 if $ac_preproc_ok; then :
4161 else
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4165 See \`config.log' for more details" "$LINENO" 5; }
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 # Check for a compatible awk
4176 for ac_prog in gawk nawk
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_AWK+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$AWK"; then
4186 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_AWK="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 AWK=$ac_cv_prog_AWK
4206 if test -n "$AWK"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4208 $as_echo "$AWK" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$AWK" && break
4216 done
4218 req_avail=yes
4219 if test "$AWK" = ""; then
4220 req_avail=no
4222 if test "$AWK" = "no"; then
4223 req_avail=no
4225 if test "$req_avail" = "no"; then
4226 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4228 # Extract the first word of "mmake", so it can be a program name with args.
4229 set dummy mmake; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_MMAKE+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$MMAKE"; then
4236 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_MMAKE="mmake "
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4249 done
4250 done
4251 IFS=$as_save_IFS
4255 MMAKE=$ac_cv_prog_MMAKE
4256 if test -n "$MMAKE"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4258 $as_echo "$MMAKE" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4266 # Perform some default variable assignments. Note all of these will be
4267 # Regenerated from the script, so there is no need to cache them.
4269 aros_build_host=$host
4270 aros_host_cpp="$CPP"
4271 aros_host_cc="$CC"
4272 aros_host_cxx="$CXX"
4273 if test "$GCC" = "yes"; then
4274 aros_gcc_ld=`$CC -print-prog-name=ld`
4275 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4276 set dummy `basename $aros_gcc_ld`; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_path_aros_host_ld+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 case $aros_host_ld in
4283 [\\/]* | ?:[\\/]*)
4284 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in `dirname $aros_gcc_ld`
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4298 done
4299 done
4300 IFS=$as_save_IFS
4303 esac
4305 aros_host_ld=$ac_cv_path_aros_host_ld
4306 if test -n "$aros_host_ld"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4308 $as_echo "$aros_host_ld" >&6; }
4309 else
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test "$aros_host_ld" = ""; then
4317 # Extract the first word of "ld", so it can be a program name with args.
4318 set dummy ld; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_path_aros_host_ld+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 case $aros_host_ld in
4325 [\\/]* | ?:[\\/]*)
4326 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4342 IFS=$as_save_IFS
4345 esac
4347 aros_host_ld=$ac_cv_path_aros_host_ld
4348 if test -n "$aros_host_ld"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4350 $as_echo "$aros_host_ld" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4358 req_avail=yes
4359 if test "$aros_host_ld" = ""; then
4360 req_avail=no
4362 if test "$aros_host_ld" = "no"; then
4363 req_avail=no
4365 if test "$req_avail" = "no"; then
4366 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4368 aros_host_make="make"
4369 aros_host_cflags="$CFLAGS"
4370 aros_host_cxxflags="$CXXFLAGS"
4371 aros_host_cppflags="$CPPFLAGS"
4372 aros_host_ldflags="$LDFLAGS"
4373 aros_host_debug="-g -O0"
4374 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4375 aros_host_mkargs="--no-print-directory"
4376 aros_host_exe_suffix="$EXEEXT"
4377 aros_host_lib_suffix=""
4379 # Ignore all compliance, AROS ROMs = 0
4380 # KickStart v1.0 = 30
4381 # KickStart v1.3 = 34
4382 # KickStart v2.0 = 37
4383 # KickStart v3.0 = 39
4384 # KickStart v3.1 = 40
4385 # AmigaOS v3.5 = 44
4386 aros_amigaos_compliance=0
4388 for ac_prog in aclocal aclocal19 aclocal-1.9
4390 # Extract the first word of "$ac_prog", so it can be a program name with args.
4391 set dummy $ac_prog; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -n "$aros_host_aclocal"; then
4398 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_aros_host_aclocal="$ac_prog"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4417 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4418 if test -n "$aros_host_aclocal"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4420 $as_echo "$aros_host_aclocal" >&6; }
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4427 test -n "$aros_host_aclocal" && break
4428 done
4430 for ac_prog in autoconf autoconf259 autoconf253
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy $ac_prog; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$aros_host_autoconf"; then
4440 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_aros_host_autoconf="$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4460 if test -n "$aros_host_autoconf"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4462 $as_echo "$aros_host_autoconf" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4469 test -n "$aros_host_autoconf" && break
4470 done
4472 for ac_prog in autoheader autoheader259 autoheader253
4474 # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -n "$aros_host_autoheader"; then
4482 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_aros_host_autoheader="$ac_prog"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4502 if test -n "$aros_host_autoheader"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4504 $as_echo "$aros_host_autoheader" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4511 test -n "$aros_host_autoheader" && break
4512 done
4514 for ac_prog in automake automake19 automake-1.9
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_aros_host_automake+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$aros_host_automake"; then
4524 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_aros_host_automake="$ac_prog"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4539 IFS=$as_save_IFS
4543 aros_host_automake=$ac_cv_prog_aros_host_automake
4544 if test -n "$aros_host_automake"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4546 $as_echo "$aros_host_automake" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4553 test -n "$aros_host_automake" && break
4554 done
4557 req_avail=yes
4558 if test "$aros_host_aclocal" = ""; then
4559 req_avail=no
4561 if test "$aros_host_aclocal" = "no"; then
4562 req_avail=no
4564 if test "$req_avail" = "no"; then
4565 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4567 req_avail=yes
4568 if test "$aros_host_automake" = ""; then
4569 req_avail=no
4571 if test "$aros_host_automake" = "no"; then
4572 req_avail=no
4574 if test "$req_avail" = "no"; then
4575 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4578 case "$aros_host_cc" in
4579 *clang*)
4580 aros_host_cc_pipe=""
4582 *gcc*)
4583 aros_host_cc_pipe="-pipe"
4585 icc)
4586 aros_host_cc_pipe=""
4589 aros_host_cc_pipe=""
4591 esac
4593 aros_kernel_cc_includes=""
4594 aros_target_cc_includes=""
4595 host_cc_elf=yes
4597 # ----------------------------------------------------------------------------------------
4598 # Host-specific defaults
4600 # This is the main host configuration section. It is where the host
4601 # can change the values of any variables it needs to change. We do
4602 # not look at anything that compiles to the target yet, we'll get
4603 # to that later.
4605 case "$host_os" in
4606 aros*)
4607 aros_host_arch="aros"
4608 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4609 case "$host_cpu" in
4610 *i?86*)
4611 aros_host_cpu="i386"
4613 *x86_64*)
4614 aros_host_cpu="x86_64"
4616 *powerpc*)
4617 aros_host_cpu="ppc"
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4621 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4622 aros_host_cpu="$host_cpu"
4624 esac
4627 linux*)
4628 aros_host_arch="linux"
4629 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4630 android_build_os="linux-x86"
4631 android_tool="android"
4632 default_android_sdk="/opt/android-sdk-linux_x86"
4633 case "$host_cpu" in
4634 *i?86*)
4635 aros_host_cpu="i386"
4637 *x86_64*)
4638 aros_host_cpu="x86_64"
4640 *m68k*)
4641 aros_host_cpu="m68k"
4643 *powerpc*)
4644 aros_host_cpu="ppc"
4646 *arm*)
4647 aros_host_cpu="arm"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4651 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4652 aros_host_cpu="$host_cpu"
4654 esac
4657 freebsd*)
4658 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4659 aros_host_make="gmake"
4660 aros_host_arch="freebsd"
4661 aros_host_cpu="i386"
4663 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4665 case $host_os in
4666 freebsd[234]*)
4667 aros_object_format="elf_i386"
4671 aros_object_format="elf_i386_fbsd"
4673 esac
4677 darwin*)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4679 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4680 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 test "$cross_compiling" = yes &&
4684 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4685 if test -r "/usr/include/stddef.h"; then
4686 ac_cv_file__usr_include_stddef_h=yes
4687 else
4688 ac_cv_file__usr_include_stddef_h=no
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4692 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4693 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4695 else
4696 as_fn_error $? "XCode incorrectly configured!
4697 please run 'xcode-select --install' before
4698 re-running configure" "$LINENO" 5
4702 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4703 aros_host_arch="darwin"
4704 host_cc_elf=no
4705 if [ -z ${SED+x} ]; then SED="gsed"; fi
4706 android_build_os="darwin-x86"
4707 android_tool="android"
4708 default_android_sdk="/android-sdk-mac_x86"
4709 case "$host_cpu" in
4710 *i?86*)
4711 aros_host_cpu="i386"
4713 *x86_64*)
4714 aros_host_cpu="x86_64"
4716 *powerpc*)
4717 aros_host_cpu="ppc"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4721 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4722 aros_host_cpu="$host_cpu"
4724 esac
4726 aros_host_ldflags="$aros_host_ldflags -liconv"
4730 dragonfly*)
4731 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4732 aros_host_make="gmake"
4733 aros_host_arch="dragonfly"
4734 case $host_cpu in
4735 *i?86*)
4736 aros_host_cpu="i386"
4738 *amd64*)
4739 aros_host_cpu="x86_64"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4749 netbsd*)
4750 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4751 aros_host_make="gmake"
4752 aros_host_arch="netbsd"
4753 case "$host_cpu" in
4754 *i?86*)
4755 aros_host_cpu="i386"
4757 *m68k*)
4758 aros_host_cpu="m68k"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4762 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4763 aros_host_cpu="$host_cpu"
4765 esac
4766 aros_host_lib_suffix=".0.0"
4769 openbsd*)
4770 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4771 aros_host_make="gmake"
4772 aros_host_arch="openbsd"
4773 case "$host_cpu" in
4774 *i?86*)
4775 aros_host_cpu="i386"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4779 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4780 aros_host_cpu="$host_cpu"
4782 esac
4785 solaris*)
4786 aros_host_arch="solaris"
4787 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4788 case "$host_cpu" in
4789 *i?86*)
4790 aros_host_cpu="i386"
4792 *sparc*)
4793 aros_host_cpu="sparc"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4797 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4798 aros_host_cpu="$host_cpu"
4800 esac
4803 morphos*)
4804 aros_host_arch="morphos"
4805 aros_host_cpu="ppc"
4806 host_cc_elf=no
4809 amiga*)
4810 aros_host_arch="amiga"
4811 host_cc_elf=no
4812 SORT="/gg/bin/sort"
4813 TEST="/gg/bin/test"
4814 UNIQ="/gg/bin/uniq"
4815 FOR="for"
4816 TOUCH="/gg/bin/touch"
4817 case "$host_cpu" in
4818 *m68k*)
4819 aros_host_cpu="m68k"
4821 *powerpc*)
4822 aros_host_cpu="ppc"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4826 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4827 aros_host_cpu="$host_cpu"
4829 esac
4832 cygwin*)
4833 aros_host_arch="cygwin"
4834 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4835 host_cc_elf=no
4836 android_build_os="windows"
4837 android_tool="android.bat"
4838 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4840 case "$host_cpu" in
4841 *i?86*)
4842 aros_host_cpu="i386"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu="$host_cpu"
4849 esac
4852 mingw32*)
4853 aros_host_arch="mingw32"
4854 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4855 host_cc_elf=no
4856 android_build_os="windows"
4857 android_tool="android.bat"
4858 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4860 libpng_libextra="-lws2_32"
4862 case "$host_cpu" in
4863 *i?86*)
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4866 $as_echo_n "checking for Windows native gcc target... " >&6; }
4867 host_cpu=`gcc -dumpmachine`
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4869 $as_echo "$host_cpu" >&6; }
4872 esac
4874 case "$host_cpu" in
4875 *i?86*)
4876 aros_host_cpu="i386"
4879 mingw32*)
4880 aros_host_cpu="i386"
4883 *x86_64*)
4884 aros_host_cpu="x86_64"
4885 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4890 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4891 aros_host_cpu="$host_cpu"
4893 esac
4896 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4898 esac
4900 # Extract the first word of "ar", so it can be a program name with args.
4901 set dummy ar; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_prog_aros_host_ar+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$aros_host_ar"; then
4908 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_prog_aros_host_ar="ar cr"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4923 IFS=$as_save_IFS
4927 aros_host_ar=$ac_cv_prog_aros_host_ar
4928 if test -n "$aros_host_ar"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4930 $as_echo "$aros_host_ar" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4937 req_avail=yes
4938 if test "$aros_host_ar" = ""; then
4939 req_avail=no
4941 if test "$aros_host_ar" = "no"; then
4942 req_avail=no
4944 if test "$req_avail" = "no"; then
4945 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4947 # Extract the first word of "ranlib", so it can be a program name with args.
4948 set dummy ranlib; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$aros_host_ranlib"; then
4955 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_aros_host_ranlib="ranlib "
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4975 if test -n "$aros_host_ranlib"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4977 $as_echo "$aros_host_ranlib" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 req_avail=yes
4985 if test "$aros_host_ranlib" = ""; then
4986 req_avail=no
4988 if test "$aros_host_ranlib" = "no"; then
4989 req_avail=no
4991 if test "$req_avail" = "no"; then
4992 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4994 # Extract the first word of "strip", so it can be a program name with args.
4995 set dummy strip; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_aros_host_strip+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$aros_host_strip"; then
5002 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_aros_host_strip="strip "
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5017 IFS=$as_save_IFS
5021 aros_host_strip=$ac_cv_prog_aros_host_strip
5022 if test -n "$aros_host_strip"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5024 $as_echo "$aros_host_strip" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 req_avail=yes
5032 if test "$aros_host_strip" = ""; then
5033 req_avail=no
5035 if test "$aros_host_strip" = "no"; then
5036 req_avail=no
5038 if test "$req_avail" = "no"; then
5039 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5042 # Extract the first word of "rm", so it can be a program name with args.
5043 set dummy rm; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_RM+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$RM"; then
5050 ac_cv_prog_RM="$RM" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_RM="rm -rf"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 RM=$ac_cv_prog_RM
5070 if test -n "$RM"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5072 $as_echo "$RM" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 req_avail=yes
5080 if test "$RM" = ""; then
5081 req_avail=no
5083 if test "$RM" = "no"; then
5084 req_avail=no
5086 if test "$req_avail" = "no"; then
5087 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5089 # Extract the first word of "cp", so it can be a program name with args.
5090 set dummy cp; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_CP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$CP"; then
5097 ac_cv_prog_CP="$CP" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_CP="cp "
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5116 CP=$ac_cv_prog_CP
5117 if test -n "$CP"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5119 $as_echo "$CP" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 req_avail=yes
5127 if test "$CP" = ""; then
5128 req_avail=no
5130 if test "$CP" = "no"; then
5131 req_avail=no
5133 if test "$req_avail" = "no"; then
5134 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5136 # Extract the first word of "mv", so it can be a program name with args.
5137 set dummy mv; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_MV+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$MV"; then
5144 ac_cv_prog_MV="$MV" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_MV="mv "
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5163 MV=$ac_cv_prog_MV
5164 if test -n "$MV"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5166 $as_echo "$MV" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 req_avail=yes
5174 if test "$MV" = ""; then
5175 req_avail=no
5177 if test "$MV" = "no"; then
5178 req_avail=no
5180 if test "$req_avail" = "no"; then
5181 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5183 # Extract the first word of "echo", so it can be a program name with args.
5184 set dummy echo; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ECHO+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ECHO"; then
5191 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ECHO="echo "
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ECHO=$ac_cv_prog_ECHO
5211 if test -n "$ECHO"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5213 $as_echo "$ECHO" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 req_avail=yes
5221 if test "$ECHO" = ""; then
5222 req_avail=no
5224 if test "$ECHO" = "no"; then
5225 req_avail=no
5227 if test "$req_avail" = "no"; then
5228 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5230 # Extract the first word of "mkdir", so it can be a program name with args.
5231 set dummy mkdir; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_MKDIR+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$MKDIR"; then
5238 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_MKDIR="mkdir -p"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5257 MKDIR=$ac_cv_prog_MKDIR
5258 if test -n "$MKDIR"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5260 $as_echo "$MKDIR" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5267 req_avail=yes
5268 if test "$MKDIR" = ""; then
5269 req_avail=no
5271 if test "$MKDIR" = "no"; then
5272 req_avail=no
5274 if test "$req_avail" = "no"; then
5275 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5277 # Extract the first word of "touch", so it can be a program name with args.
5278 set dummy touch; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_TOUCH+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -n "$TOUCH"; then
5285 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_TOUCH="touch "
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5304 TOUCH=$ac_cv_prog_TOUCH
5305 if test -n "$TOUCH"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5307 $as_echo "$TOUCH" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 req_avail=yes
5315 if test "$TOUCH" = ""; then
5316 req_avail=no
5318 if test "$TOUCH" = "no"; then
5319 req_avail=no
5321 if test "$req_avail" = "no"; then
5322 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5324 # Extract the first word of "sort", so it can be a program name with args.
5325 set dummy sort; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_SORT+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$SORT"; then
5332 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_SORT="sort "
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5351 SORT=$ac_cv_prog_SORT
5352 if test -n "$SORT"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5354 $as_echo "$SORT" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5361 req_avail=yes
5362 if test "$SORT" = ""; then
5363 req_avail=no
5365 if test "$SORT" = "no"; then
5366 req_avail=no
5368 if test "$req_avail" = "no"; then
5369 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5371 # Extract the first word of "uniq", so it can be a program name with args.
5372 set dummy uniq; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if ${ac_cv_prog_UNIQ+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$UNIQ"; then
5379 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_prog_UNIQ="uniq "
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5392 done
5393 done
5394 IFS=$as_save_IFS
5398 UNIQ=$ac_cv_prog_UNIQ
5399 if test -n "$UNIQ"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5401 $as_echo "$UNIQ" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5408 req_avail=yes
5409 if test "$UNIQ" = ""; then
5410 req_avail=no
5412 if test "$UNIQ" = "no"; then
5413 req_avail=no
5415 if test "$req_avail" = "no"; then
5416 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5418 # Extract the first word of "true", so it can be a program name with args.
5419 set dummy true; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_NOP+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$NOP"; then
5426 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_NOP="true "
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 NOP=$ac_cv_prog_NOP
5446 if test -n "$NOP"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5448 $as_echo "$NOP" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 req_avail=yes
5456 if test "$NOP" = ""; then
5457 req_avail=no
5459 if test "$NOP" = "no"; then
5460 req_avail=no
5462 if test "$req_avail" = "no"; then
5463 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5465 # Extract the first word of "cat", so it can be a program name with args.
5466 set dummy cat; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_CAT+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$CAT"; then
5473 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_CAT="cat "
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5486 done
5487 done
5488 IFS=$as_save_IFS
5492 CAT=$ac_cv_prog_CAT
5493 if test -n "$CAT"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5495 $as_echo "$CAT" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5502 req_avail=yes
5503 if test "$CAT" = ""; then
5504 req_avail=no
5506 if test "$CAT" = "no"; then
5507 req_avail=no
5509 if test "$req_avail" = "no"; then
5510 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5512 # Extract the first word of "bison", so it can be a program name with args.
5513 set dummy bison; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_BISON+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$BISON"; then
5520 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_BISON="bison "
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5535 IFS=$as_save_IFS
5539 BISON=$ac_cv_prog_BISON
5540 if test -n "$BISON"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5542 $as_echo "$BISON" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5549 req_avail=yes
5550 if test "$BISON" = ""; then
5551 req_avail=no
5553 if test "$BISON" = "no"; then
5554 req_avail=no
5556 if test "$req_avail" = "no"; then
5557 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5559 # Extract the first word of "flex", so it can be a program name with args.
5560 set dummy flex; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_FLEX+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$FLEX"; then
5567 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_FLEX="flex "
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5586 FLEX=$ac_cv_prog_FLEX
5587 if test -n "$FLEX"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5589 $as_echo "$FLEX" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5596 req_avail=yes
5597 if test "$FLEX" = ""; then
5598 req_avail=no
5600 if test "$FLEX" = "no"; then
5601 req_avail=no
5603 if test "$req_avail" = "no"; then
5604 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5606 # Extract the first word of "pngtopnm", so it can be a program name with args.
5607 set dummy pngtopnm; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test -n "$PNGTOPNM"; then
5614 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_PNGTOPNM="pngtopnm "
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5627 done
5628 done
5629 IFS=$as_save_IFS
5633 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5634 if test -n "$PNGTOPNM"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5636 $as_echo "$PNGTOPNM" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 req_avail=yes
5644 if test "$PNGTOPNM" = ""; then
5645 req_avail=no
5647 if test "$PNGTOPNM" = "no"; then
5648 req_avail=no
5650 if test "$req_avail" = "no"; then
5651 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5653 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5654 set dummy ppmtoilbm; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$PPMTOILBM"; then
5661 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5680 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5681 if test -n "$PPMTOILBM"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5683 $as_echo "$PPMTOILBM" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5690 req_avail=yes
5691 if test "$PPMTOILBM" = ""; then
5692 req_avail=no
5694 if test "$PPMTOILBM" = "no"; then
5695 req_avail=no
5697 if test "$req_avail" = "no"; then
5698 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5700 # Extract the first word of "sed", so it can be a program name with args.
5701 set dummy sed; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_SED+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$SED"; then
5708 ac_cv_prog_SED="$SED" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_SED="sed "
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5721 done
5722 done
5723 IFS=$as_save_IFS
5727 SED=$ac_cv_prog_SED
5728 if test -n "$SED"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5730 $as_echo "$SED" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5737 req_avail=yes
5738 if test "$SED" = ""; then
5739 req_avail=no
5741 if test "$SED" = "no"; then
5742 req_avail=no
5744 if test "$req_avail" = "no"; then
5745 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5747 # Extract the first word of "chmod", so it can be a program name with args.
5748 set dummy chmod; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_CHMOD+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$CHMOD"; then
5755 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_CHMOD="chmod "
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5768 done
5769 done
5770 IFS=$as_save_IFS
5774 CHMOD=$ac_cv_prog_CHMOD
5775 if test -n "$CHMOD"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5777 $as_echo "$CHMOD" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5784 req_avail=yes
5785 if test "$CHMOD" = ""; then
5786 req_avail=no
5788 if test "$CHMOD" = "no"; then
5789 req_avail=no
5791 if test "$req_avail" = "no"; then
5792 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5794 # Extract the first word of "patch", so it can be a program name with args.
5795 set dummy patch; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_PATCH+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$PATCH"; then
5802 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_PATCH="patch "
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5815 done
5816 done
5817 IFS=$as_save_IFS
5821 PATCH=$ac_cv_prog_PATCH
5822 if test -n "$PATCH"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5824 $as_echo "$PATCH" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5831 req_avail=yes
5832 if test "$PATCH" = ""; then
5833 req_avail=no
5835 if test "$PATCH" = "no"; then
5836 req_avail=no
5838 if test "$req_avail" = "no"; then
5839 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5848 if test -n "$PYTHON"; then
5849 # If the user set $PYTHON, use it and don't search something else.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5851 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5852 prog="import sys
5853 # split strings by '.' and convert to numeric. Append some zeros
5854 # because we need at least 4 digits for the hex conversion.
5855 # map returns an iterator in Python 3.0 and a list in 2.x
5856 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5857 minverhex = 0
5858 # xrange is not present in Python 3.0 and range returns an iterator
5859 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5860 sys.exit(sys.hexversion < minverhex)"
5861 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5862 ($PYTHON -c "$prog") >&5 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; then :
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5867 $as_echo "yes" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5873 am_display_PYTHON=$PYTHON
5874 else
5875 # Otherwise, try each interpreter until we find one that satisfies
5876 # VERSION.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5878 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5879 if ${am_cv_pathless_PYTHON+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5883 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
5884 test "$am_cv_pathless_PYTHON" = none && break
5885 prog="import sys
5886 # split strings by '.' and convert to numeric. Append some zeros
5887 # because we need at least 4 digits for the hex conversion.
5888 # map returns an iterator in Python 3.0 and a list in 2.x
5889 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5890 minverhex = 0
5891 # xrange is not present in Python 3.0 and range returns an iterator
5892 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5893 sys.exit(sys.hexversion < minverhex)"
5894 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5895 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; then :
5899 break
5901 done
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5904 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5905 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5906 if test "$am_cv_pathless_PYTHON" = none; then
5907 PYTHON=:
5908 else
5909 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5910 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_path_PYTHON+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 case $PYTHON in
5917 [\\/]* | ?:[\\/]*)
5918 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5932 done
5933 done
5934 IFS=$as_save_IFS
5937 esac
5939 PYTHON=$ac_cv_path_PYTHON
5940 if test -n "$PYTHON"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5942 $as_echo "$PYTHON" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5950 am_display_PYTHON=$am_cv_pathless_PYTHON
5954 if test "$PYTHON" = :; then
5955 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5956 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5960 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5961 if ${am_cv_python_version+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5967 $as_echo "$am_cv_python_version" >&6; }
5968 PYTHON_VERSION=$am_cv_python_version
5972 PYTHON_PREFIX='${prefix}'
5974 PYTHON_EXEC_PREFIX='${exec_prefix}'
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5979 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5980 if ${am_cv_python_platform+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5986 $as_echo "$am_cv_python_platform" >&6; }
5987 PYTHON_PLATFORM=$am_cv_python_platform
5990 # Just factor out some code duplication.
5991 am_python_setup_sysconfig="\
5992 import sys
5993 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5994 # with python 3.x. See automake bug#10227.
5995 try:
5996 import sysconfig
5997 except ImportError:
5998 can_use_sysconfig = 0
5999 else:
6000 can_use_sysconfig = 1
6001 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
6002 # <https://github.com/pypa/virtualenv/issues/118>
6003 try:
6004 from platform import python_implementation
6005 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
6006 can_use_sysconfig = 0
6007 except ImportError:
6008 pass"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6012 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6013 if ${am_cv_python_pythondir+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test "x$prefix" = xNONE
6017 then
6018 am_py_prefix=$ac_default_prefix
6019 else
6020 am_py_prefix=$prefix
6022 am_cv_python_pythondir=`$PYTHON -c "
6023 $am_python_setup_sysconfig
6024 if can_use_sysconfig:
6025 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6026 else:
6027 from distutils import sysconfig
6028 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6029 sys.stdout.write(sitedir)"`
6030 case $am_cv_python_pythondir in
6031 $am_py_prefix*)
6032 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6033 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6036 case $am_py_prefix in
6037 /usr|/System*) ;;
6039 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6041 esac
6043 esac
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6047 $as_echo "$am_cv_python_pythondir" >&6; }
6048 pythondir=$am_cv_python_pythondir
6052 pkgpythondir=\${pythondir}/$PACKAGE
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6056 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6057 if ${am_cv_python_pyexecdir+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test "x$exec_prefix" = xNONE
6061 then
6062 am_py_exec_prefix=$am_py_prefix
6063 else
6064 am_py_exec_prefix=$exec_prefix
6066 am_cv_python_pyexecdir=`$PYTHON -c "
6067 $am_python_setup_sysconfig
6068 if can_use_sysconfig:
6069 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6070 else:
6071 from distutils import sysconfig
6072 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6073 sys.stdout.write(sitedir)"`
6074 case $am_cv_python_pyexecdir in
6075 $am_py_exec_prefix*)
6076 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6077 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6080 case $am_py_exec_prefix in
6081 /usr|/System*) ;;
6083 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6085 esac
6087 esac
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6091 $as_echo "$am_cv_python_pyexecdir" >&6; }
6092 pyexecdir=$am_cv_python_pyexecdir
6096 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6104 # Check whether --enable-libpng-config was given.
6105 if test "${enable_libpng_config+set}" = set; then :
6106 enableval=$enable_libpng_config;
6109 if test "$enable_libpng_config" != "no"; then
6110 # Extract the first word of "libpng-config", so it can be a program name with args.
6111 set dummy libpng-config; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$arosconfig_use_libpngconfig"; then
6118 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6131 done
6132 done
6133 IFS=$as_save_IFS
6135 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6138 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6139 if test -n "$arosconfig_use_libpngconfig"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6141 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6149 if test "$arosconfig_use_libpngconfig" = "yes"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6151 $as_echo_n "checking libpng-config library... " >&6; }
6152 libpng_incdir="`libpng-config --cflags`"
6153 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6154 libpng="`libpng-config --libs`"
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6156 $as_echo "$libpng" >&6; }
6157 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6160 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6161 if ${ac_cv_lib_png_png_read_png+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lpng $LIBS"
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6169 /* Override any GCC internal prototype to avoid an error.
6170 Use char because int might match the return type of a GCC
6171 builtin and then its argument prototype would still apply. */
6172 #ifdef __cplusplus
6173 extern "C"
6174 #endif
6175 char png_read_png ();
6177 main ()
6179 return png_read_png ();
6181 return 0;
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 ac_cv_lib_png_png_read_png=yes
6186 else
6187 ac_cv_lib_png_png_read_png=no
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 LIBS=$ac_check_lib_save_LIBS
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6194 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6195 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6196 libpng="-lpng"
6197 else
6198 libpng="no"
6201 if test "$libpng_libextra" != ""; then
6202 if test "$libpng" != "no"; then
6203 libpng_libextra="$libpng_libextra $libpng"
6207 req_avail=yes
6208 if test "$libpng" = ""; then
6209 req_avail=no
6211 if test "$libpng" = "no"; then
6212 req_avail=no
6214 if test "$req_avail" = "no"; then
6215 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6221 FOR=for
6223 IF=if
6225 TEST=test
6227 CMP=cmp
6231 # Check for some includes for the X11 HIDD and the kernel
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6234 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6235 if ${ac_cv_path_GREP+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -z "$GREP"; then
6239 ac_path_GREP_found=false
6240 # Loop through the user's path and test for each of PROGNAME-LIST
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_prog in grep ggrep; do
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6249 as_fn_executable_p "$ac_path_GREP" || continue
6250 # Check for GNU ac_path_GREP and select it if it is found.
6251 # Check for GNU $ac_path_GREP
6252 case `"$ac_path_GREP" --version 2>&1` in
6253 *GNU*)
6254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6256 ac_count=0
6257 $as_echo_n 0123456789 >"conftest.in"
6258 while :
6260 cat "conftest.in" "conftest.in" >"conftest.tmp"
6261 mv "conftest.tmp" "conftest.in"
6262 cp "conftest.in" "conftest.nl"
6263 $as_echo 'GREP' >> "conftest.nl"
6264 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6266 as_fn_arith $ac_count + 1 && ac_count=$as_val
6267 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6268 # Best one so far, save it but keep looking for a better one
6269 ac_cv_path_GREP="$ac_path_GREP"
6270 ac_path_GREP_max=$ac_count
6272 # 10*(2^10) chars as input seems more than enough
6273 test $ac_count -gt 10 && break
6274 done
6275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6276 esac
6278 $ac_path_GREP_found && break 3
6279 done
6280 done
6281 done
6282 IFS=$as_save_IFS
6283 if test -z "$ac_cv_path_GREP"; then
6284 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6286 else
6287 ac_cv_path_GREP=$GREP
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6292 $as_echo "$ac_cv_path_GREP" >&6; }
6293 GREP="$ac_cv_path_GREP"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6297 $as_echo_n "checking for egrep... " >&6; }
6298 if ${ac_cv_path_EGREP+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6302 then ac_cv_path_EGREP="$GREP -E"
6303 else
6304 if test -z "$EGREP"; then
6305 ac_path_EGREP_found=false
6306 # Loop through the user's path and test for each of PROGNAME-LIST
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_prog in egrep; do
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6315 as_fn_executable_p "$ac_path_EGREP" || continue
6316 # Check for GNU ac_path_EGREP and select it if it is found.
6317 # Check for GNU $ac_path_EGREP
6318 case `"$ac_path_EGREP" --version 2>&1` in
6319 *GNU*)
6320 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6322 ac_count=0
6323 $as_echo_n 0123456789 >"conftest.in"
6324 while :
6326 cat "conftest.in" "conftest.in" >"conftest.tmp"
6327 mv "conftest.tmp" "conftest.in"
6328 cp "conftest.in" "conftest.nl"
6329 $as_echo 'EGREP' >> "conftest.nl"
6330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6332 as_fn_arith $ac_count + 1 && ac_count=$as_val
6333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6334 # Best one so far, save it but keep looking for a better one
6335 ac_cv_path_EGREP="$ac_path_EGREP"
6336 ac_path_EGREP_max=$ac_count
6338 # 10*(2^10) chars as input seems more than enough
6339 test $ac_count -gt 10 && break
6340 done
6341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6342 esac
6344 $ac_path_EGREP_found && break 3
6345 done
6346 done
6347 done
6348 IFS=$as_save_IFS
6349 if test -z "$ac_cv_path_EGREP"; then
6350 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6352 else
6353 ac_cv_path_EGREP=$EGREP
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6359 $as_echo "$ac_cv_path_EGREP" >&6; }
6360 EGREP="$ac_cv_path_EGREP"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6364 $as_echo_n "checking for ANSI C header files... " >&6; }
6365 if ${ac_cv_header_stdc+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 #include <stdlib.h>
6371 #include <stdarg.h>
6372 #include <string.h>
6373 #include <float.h>
6376 main ()
6380 return 0;
6382 _ACEOF
6383 if ac_fn_c_try_compile "$LINENO"; then :
6384 ac_cv_header_stdc=yes
6385 else
6386 ac_cv_header_stdc=no
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 if test $ac_cv_header_stdc = yes; then
6391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 #include <string.h>
6396 _ACEOF
6397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6398 $EGREP "memchr" >/dev/null 2>&1; then :
6400 else
6401 ac_cv_header_stdc=no
6403 rm -f conftest*
6407 if test $ac_cv_header_stdc = yes; then
6408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 #include <stdlib.h>
6413 _ACEOF
6414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415 $EGREP "free" >/dev/null 2>&1; then :
6417 else
6418 ac_cv_header_stdc=no
6420 rm -f conftest*
6424 if test $ac_cv_header_stdc = yes; then
6425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6426 if test "$cross_compiling" = yes; then :
6428 else
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 #include <ctype.h>
6432 #include <stdlib.h>
6433 #if ((' ' & 0x0FF) == 0x020)
6434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6436 #else
6437 # define ISLOWER(c) \
6438 (('a' <= (c) && (c) <= 'i') \
6439 || ('j' <= (c) && (c) <= 'r') \
6440 || ('s' <= (c) && (c) <= 'z'))
6441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6442 #endif
6444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6446 main ()
6448 int i;
6449 for (i = 0; i < 256; i++)
6450 if (XOR (islower (i), ISLOWER (i))
6451 || toupper (i) != TOUPPER (i))
6452 return 2;
6453 return 0;
6455 _ACEOF
6456 if ac_fn_c_try_run "$LINENO"; then :
6458 else
6459 ac_cv_header_stdc=no
6461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6462 conftest.$ac_objext conftest.beam conftest.$ac_ext
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6468 $as_echo "$ac_cv_header_stdc" >&6; }
6469 if test $ac_cv_header_stdc = yes; then
6471 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6476 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6477 inttypes.h stdint.h unistd.h
6478 do :
6479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6480 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6483 cat >>confdefs.h <<_ACEOF
6484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485 _ACEOF
6489 done
6492 for ac_header in sys/ipc.h sys/shm.h \
6493 sys/mmap.h sys/mman.h sysexits.h \
6494 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6496 do :
6497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6500 cat >>confdefs.h <<_ACEOF
6501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 _ACEOF
6506 done
6509 for ac_header in sys/mount.h
6510 do :
6511 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6513 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6514 cat >>confdefs.h <<_ACEOF
6515 #define HAVE_SYS_MOUNT_H 1
6516 _ACEOF
6520 done
6523 ac_header_dirent=no
6524 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6525 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6527 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6528 if eval \${$as_ac_Header+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #include <sys/types.h>
6534 #include <$ac_hdr>
6537 main ()
6539 if ((DIR *) 0)
6540 return 0;
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 eval "$as_ac_Header=yes"
6547 else
6548 eval "$as_ac_Header=no"
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 eval ac_res=\$$as_ac_Header
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6556 cat >>confdefs.h <<_ACEOF
6557 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6558 _ACEOF
6560 ac_header_dirent=$ac_hdr; break
6563 done
6564 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6565 if test $ac_header_dirent = dirent.h; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6567 $as_echo_n "checking for library containing opendir... " >&6; }
6568 if ${ac_cv_search_opendir+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 ac_func_search_save_LIBS=$LIBS
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6575 /* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 char opendir ();
6583 main ()
6585 return opendir ();
6587 return 0;
6589 _ACEOF
6590 for ac_lib in '' dir; do
6591 if test -z "$ac_lib"; then
6592 ac_res="none required"
6593 else
6594 ac_res=-l$ac_lib
6595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6597 if ac_fn_c_try_link "$LINENO"; then :
6598 ac_cv_search_opendir=$ac_res
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext
6602 if ${ac_cv_search_opendir+:} false; then :
6603 break
6605 done
6606 if ${ac_cv_search_opendir+:} false; then :
6608 else
6609 ac_cv_search_opendir=no
6611 rm conftest.$ac_ext
6612 LIBS=$ac_func_search_save_LIBS
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6615 $as_echo "$ac_cv_search_opendir" >&6; }
6616 ac_res=$ac_cv_search_opendir
6617 if test "$ac_res" != no; then :
6618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6624 $as_echo_n "checking for library containing opendir... " >&6; }
6625 if ${ac_cv_search_opendir+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 ac_func_search_save_LIBS=$LIBS
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6632 /* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 char opendir ();
6640 main ()
6642 return opendir ();
6644 return 0;
6646 _ACEOF
6647 for ac_lib in '' x; do
6648 if test -z "$ac_lib"; then
6649 ac_res="none required"
6650 else
6651 ac_res=-l$ac_lib
6652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6654 if ac_fn_c_try_link "$LINENO"; then :
6655 ac_cv_search_opendir=$ac_res
6657 rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext
6659 if ${ac_cv_search_opendir+:} false; then :
6660 break
6662 done
6663 if ${ac_cv_search_opendir+:} false; then :
6665 else
6666 ac_cv_search_opendir=no
6668 rm conftest.$ac_ext
6669 LIBS=$ac_func_search_save_LIBS
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6672 $as_echo "$ac_cv_search_opendir" >&6; }
6673 ac_res=$ac_cv_search_opendir
6674 if test "$ac_res" != no; then :
6675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6682 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6683 if ${ac_cv_header_stat_broken+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 #include <sys/types.h>
6689 #include <sys/stat.h>
6691 #if defined S_ISBLK && defined S_IFDIR
6692 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6693 #endif
6695 #if defined S_ISBLK && defined S_IFCHR
6696 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6697 #endif
6699 #if defined S_ISLNK && defined S_IFREG
6700 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6701 #endif
6703 #if defined S_ISSOCK && defined S_IFREG
6704 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6705 #endif
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 ac_cv_header_stat_broken=no
6710 else
6711 ac_cv_header_stat_broken=yes
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6716 $as_echo "$ac_cv_header_stat_broken" >&6; }
6717 if test $ac_cv_header_stat_broken = yes; then
6719 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6724 $as_echo_n "checking for ANSI C header files... " >&6; }
6725 if ${ac_cv_header_stdc+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <stdlib.h>
6731 #include <stdarg.h>
6732 #include <string.h>
6733 #include <float.h>
6736 main ()
6740 return 0;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 ac_cv_header_stdc=yes
6745 else
6746 ac_cv_header_stdc=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 if test $ac_cv_header_stdc = yes; then
6751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 #include <string.h>
6756 _ACEOF
6757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758 $EGREP "memchr" >/dev/null 2>&1; then :
6760 else
6761 ac_cv_header_stdc=no
6763 rm -f conftest*
6767 if test $ac_cv_header_stdc = yes; then
6768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #include <stdlib.h>
6773 _ACEOF
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "free" >/dev/null 2>&1; then :
6777 else
6778 ac_cv_header_stdc=no
6780 rm -f conftest*
6784 if test $ac_cv_header_stdc = yes; then
6785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6786 if test "$cross_compiling" = yes; then :
6788 else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <ctype.h>
6792 #include <stdlib.h>
6793 #if ((' ' & 0x0FF) == 0x020)
6794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6796 #else
6797 # define ISLOWER(c) \
6798 (('a' <= (c) && (c) <= 'i') \
6799 || ('j' <= (c) && (c) <= 'r') \
6800 || ('s' <= (c) && (c) <= 'z'))
6801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6802 #endif
6804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806 main ()
6808 int i;
6809 for (i = 0; i < 256; i++)
6810 if (XOR (islower (i), ISLOWER (i))
6811 || toupper (i) != TOUPPER (i))
6812 return 2;
6813 return 0;
6815 _ACEOF
6816 if ac_fn_c_try_run "$LINENO"; then :
6818 else
6819 ac_cv_header_stdc=no
6821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6822 conftest.$ac_objext conftest.beam conftest.$ac_ext
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6828 $as_echo "$ac_cv_header_stdc" >&6; }
6829 if test $ac_cv_header_stdc = yes; then
6831 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6836 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6837 if ${ac_cv_header_sys_wait_h+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <sys/types.h>
6843 #include <sys/wait.h>
6844 #ifndef WEXITSTATUS
6845 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6846 #endif
6847 #ifndef WIFEXITED
6848 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6849 #endif
6852 main ()
6854 int s;
6855 wait (&s);
6856 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6858 return 0;
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 ac_cv_header_sys_wait_h=yes
6863 else
6864 ac_cv_header_sys_wait_h=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6869 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6870 if test $ac_cv_header_sys_wait_h = yes; then
6872 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6877 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6878 if ${ac_cv_header_time+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <sys/types.h>
6884 #include <sys/time.h>
6885 #include <time.h>
6888 main ()
6890 if ((struct tm *) 0)
6891 return 0;
6893 return 0;
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 ac_cv_header_time=yes
6898 else
6899 ac_cv_header_time=no
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6904 $as_echo "$ac_cv_header_time" >&6; }
6905 if test $ac_cv_header_time = yes; then
6907 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6911 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6912 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6914 cat >>confdefs.h <<_ACEOF
6915 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6916 _ACEOF
6919 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6924 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6925 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6929 _ACEOF
6932 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6934 else
6935 case " $LIBOBJS " in
6936 *" fileblocks.$ac_objext "* ) ;;
6937 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6939 esac
6944 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6945 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_STRUCT_STAT_ST_RDEV 1
6949 _ACEOF
6952 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6958 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6959 if ${ac_cv_struct_tm+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 #include <sys/types.h>
6965 #include <time.h>
6968 main ()
6970 struct tm tm;
6971 int *p = &tm.tm_sec;
6972 return !p;
6974 return 0;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 ac_cv_struct_tm=time.h
6979 else
6980 ac_cv_struct_tm=sys/time.h
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6985 $as_echo "$ac_cv_struct_tm" >&6; }
6986 if test $ac_cv_struct_tm = sys/time.h; then
6988 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6992 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6993 #include <$ac_cv_struct_tm>
6996 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_STRUCT_TM_TM_ZONE 1
7000 _ACEOF
7005 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7007 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7009 else
7010 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7012 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7013 ac_have_decl=1
7014 else
7015 ac_have_decl=0
7018 cat >>confdefs.h <<_ACEOF
7019 #define HAVE_DECL_TZNAME $ac_have_decl
7020 _ACEOF
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7023 $as_echo_n "checking for tzname... " >&6; }
7024 if ${ac_cv_var_tzname+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #include <time.h>
7030 #if !HAVE_DECL_TZNAME
7031 extern char *tzname[];
7032 #endif
7035 main ()
7037 return tzname[0][0];
7039 return 0;
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 ac_cv_var_tzname=yes
7044 else
7045 ac_cv_var_tzname=no
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7051 $as_echo "$ac_cv_var_tzname" >&6; }
7052 if test $ac_cv_var_tzname = yes; then
7054 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7059 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7060 if test "x$ac_cv_type_off_t" = xyes; then :
7062 else
7064 cat >>confdefs.h <<_ACEOF
7065 #define off_t long int
7066 _ACEOF
7070 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7071 if test "x$ac_cv_type_pid_t" = xyes; then :
7073 else
7075 cat >>confdefs.h <<_ACEOF
7076 #define pid_t int
7077 _ACEOF
7081 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7082 if test "x$ac_cv_type_size_t" = xyes; then :
7084 else
7086 cat >>confdefs.h <<_ACEOF
7087 #define size_t unsigned int
7088 _ACEOF
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7093 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7094 if ${ac_cv_type_uid_t+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <sys/types.h>
7101 _ACEOF
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 $EGREP "uid_t" >/dev/null 2>&1; then :
7104 ac_cv_type_uid_t=yes
7105 else
7106 ac_cv_type_uid_t=no
7108 rm -f conftest*
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7112 $as_echo "$ac_cv_type_uid_t" >&6; }
7113 if test $ac_cv_type_uid_t = no; then
7115 $as_echo "#define uid_t int" >>confdefs.h
7118 $as_echo "#define gid_t int" >>confdefs.h
7123 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7124 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7126 cat >>confdefs.h <<_ACEOF
7127 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7128 _ACEOF
7134 # Look for some functions
7135 for ac_func in getpagesize kqueue statfs statvfs \
7136 clone kse_create rfork_thread thr_create sa_register \
7137 getcontext makecontext setcontext sigaltstack swapcontext
7138 do :
7139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7141 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7142 cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7144 _ACEOF
7147 done
7153 for ac_header in $ac_header_list
7154 do :
7155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7159 cat >>confdefs.h <<_ACEOF
7160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161 _ACEOF
7165 done
7174 for ac_func in getpagesize
7175 do :
7176 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7177 if test "x$ac_cv_func_getpagesize" = xyes; then :
7178 cat >>confdefs.h <<_ACEOF
7179 #define HAVE_GETPAGESIZE 1
7180 _ACEOF
7183 done
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7186 $as_echo_n "checking for working mmap... " >&6; }
7187 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 if test "$cross_compiling" = yes; then :
7191 ac_cv_func_mmap_fixed_mapped=no
7192 else
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 $ac_includes_default
7196 /* malloc might have been renamed as rpl_malloc. */
7197 #undef malloc
7199 /* Thanks to Mike Haertel and Jim Avera for this test.
7200 Here is a matrix of mmap possibilities:
7201 mmap private not fixed
7202 mmap private fixed at somewhere currently unmapped
7203 mmap private fixed at somewhere already mapped
7204 mmap shared not fixed
7205 mmap shared fixed at somewhere currently unmapped
7206 mmap shared fixed at somewhere already mapped
7207 For private mappings, we should verify that changes cannot be read()
7208 back from the file, nor mmap's back from the file at a different
7209 address. (There have been systems where private was not correctly
7210 implemented like the infamous i386 svr4.0, and systems where the
7211 VM page cache was not coherent with the file system buffer cache
7212 like early versions of FreeBSD and possibly contemporary NetBSD.)
7213 For shared mappings, we should conversely verify that changes get
7214 propagated back to all the places they're supposed to be.
7216 Grep wants private fixed already mapped.
7217 The main things grep needs to know about mmap are:
7218 * does it exist and is it safe to write into the mmap'd area
7219 * how to use it (BSD variants) */
7221 #include <fcntl.h>
7222 #include <sys/mman.h>
7224 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7225 char *malloc ();
7226 #endif
7228 /* This mess was copied from the GNU getpagesize.h. */
7229 #ifndef HAVE_GETPAGESIZE
7230 # ifdef _SC_PAGESIZE
7231 # define getpagesize() sysconf(_SC_PAGESIZE)
7232 # else /* no _SC_PAGESIZE */
7233 # ifdef HAVE_SYS_PARAM_H
7234 # include <sys/param.h>
7235 # ifdef EXEC_PAGESIZE
7236 # define getpagesize() EXEC_PAGESIZE
7237 # else /* no EXEC_PAGESIZE */
7238 # ifdef NBPG
7239 # define getpagesize() NBPG * CLSIZE
7240 # ifndef CLSIZE
7241 # define CLSIZE 1
7242 # endif /* no CLSIZE */
7243 # else /* no NBPG */
7244 # ifdef NBPC
7245 # define getpagesize() NBPC
7246 # else /* no NBPC */
7247 # ifdef PAGESIZE
7248 # define getpagesize() PAGESIZE
7249 # endif /* PAGESIZE */
7250 # endif /* no NBPC */
7251 # endif /* no NBPG */
7252 # endif /* no EXEC_PAGESIZE */
7253 # else /* no HAVE_SYS_PARAM_H */
7254 # define getpagesize() 8192 /* punt totally */
7255 # endif /* no HAVE_SYS_PARAM_H */
7256 # endif /* no _SC_PAGESIZE */
7258 #endif /* no HAVE_GETPAGESIZE */
7261 main ()
7263 char *data, *data2, *data3;
7264 const char *cdata2;
7265 int i, pagesize;
7266 int fd, fd2;
7268 pagesize = getpagesize ();
7270 /* First, make a file with some known garbage in it. */
7271 data = (char *) malloc (pagesize);
7272 if (!data)
7273 return 1;
7274 for (i = 0; i < pagesize; ++i)
7275 *(data + i) = rand ();
7276 umask (0);
7277 fd = creat ("conftest.mmap", 0600);
7278 if (fd < 0)
7279 return 2;
7280 if (write (fd, data, pagesize) != pagesize)
7281 return 3;
7282 close (fd);
7284 /* Next, check that the tail of a page is zero-filled. File must have
7285 non-zero length, otherwise we risk SIGBUS for entire page. */
7286 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7287 if (fd2 < 0)
7288 return 4;
7289 cdata2 = "";
7290 if (write (fd2, cdata2, 1) != 1)
7291 return 5;
7292 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7293 if (data2 == MAP_FAILED)
7294 return 6;
7295 for (i = 0; i < pagesize; ++i)
7296 if (*(data2 + i))
7297 return 7;
7298 close (fd2);
7299 if (munmap (data2, pagesize))
7300 return 8;
7302 /* Next, try to mmap the file at a fixed address which already has
7303 something else allocated at it. If we can, also make sure that
7304 we see the same garbage. */
7305 fd = open ("conftest.mmap", O_RDWR);
7306 if (fd < 0)
7307 return 9;
7308 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7309 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7310 return 10;
7311 for (i = 0; i < pagesize; ++i)
7312 if (*(data + i) != *(data2 + i))
7313 return 11;
7315 /* Finally, make sure that changes to the mapped area do not
7316 percolate back to the file as seen by read(). (This is a bug on
7317 some variants of i386 svr4.0.) */
7318 for (i = 0; i < pagesize; ++i)
7319 *(data2 + i) = *(data2 + i) + 1;
7320 data3 = (char *) malloc (pagesize);
7321 if (!data3)
7322 return 12;
7323 if (read (fd, data3, pagesize) != pagesize)
7324 return 13;
7325 for (i = 0; i < pagesize; ++i)
7326 if (*(data + i) != *(data3 + i))
7327 return 14;
7328 close (fd);
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_run "$LINENO"; then :
7333 ac_cv_func_mmap_fixed_mapped=yes
7334 else
7335 ac_cv_func_mmap_fixed_mapped=no
7337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7343 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7344 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7346 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7349 rm -f conftest.mmap conftest.txt
7352 #-----------------------------------------------------------------------------
7355 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7356 # it switched on by default, and we use the host compiler, so it compiles AROS
7357 # code with this enabled resulting in link failures as we don't have support
7358 # for it.
7360 # We use two methods to disable it. For the host compiler (used to compile
7361 # some hosted modules), we test to see if the compiler supports stack
7362 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7363 # work on all platforms.
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7367 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7368 save_cflags="$CFLAGS"
7369 CFLAGS="$CFLAGS -fno-stack-protector"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7374 main ()
7378 return 0;
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 use_no_stack_protector="yes"
7383 else
7384 use_no_stack_protector="no"
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7388 $as_echo "$use_no_stack_protector" >&6; }
7389 if test "x-$use_no_stack_protector" = "x-yes" ; then
7390 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7392 CFLAGS="$save_cflags"
7394 #-----------------------------------------------------------------------------
7396 # Disable pointer-signedness warnings if the compiler recognises the option
7397 # (this only works for the host compiler at the moment)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7400 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7401 save_cflags="$CFLAGS"
7402 CFLAGS="$CFLAGS -Wno-pointer-sign"
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7407 main ()
7411 return 0;
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 use_no_sign_warning="yes"
7416 else
7417 use_no_sign_warning="no"
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7421 $as_echo "$use_no_sign_warning" >&6; }
7422 if test "x-$use_no_sign_warning" = "x-yes" ; then
7423 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7425 CFLAGS="$save_cflags"
7427 #-----------------------------------------------------------------------------
7429 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7432 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7433 save_cflags="$CFLAGS"
7434 CFLAGS="$CFLAGS -fgnu89-inline"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 main ()
7443 return 0;
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447 use_gnu89_inline="yes"
7448 else
7449 use_gnu89_inline="no"
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7453 $as_echo "$use_gnu89_inline" >&6; }
7454 if test "x-$use_gnu89_inline" = "x-yes" ; then
7455 gnu89_inline="-fgnu89-inline"
7457 CFLAGS="$save_cflags"
7460 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7461 # On GCC >= 4.0 -iquote should be used
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7464 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7465 CFLAGS="$CFLAGS -iquote."
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7470 main ()
7474 return 0;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 has_iquote="yes"
7479 else
7480 has_iquote="no"
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7484 $as_echo "$has_iquote" >&6; }
7485 if test "x-$has_iquote" = "x-yes" ; then
7486 host_cflags_iquote=-iquote
7487 host_cflags_iquote_end=
7488 else
7489 host_cflags_iquote=-I
7490 host_cflags_iquote_end=-I-
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7494 $as_echo "$as_me: Performing target configuration..." >&6;}
7497 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7499 toolchain_needs_sysroot=no
7501 aros_warn_flags=
7502 aros_isa_flags=
7503 aros_config_cppflags=
7504 aros_config_cflags=
7505 aros_config_cxxflags=
7506 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7507 aros_config_ldflags=""
7509 aros_shared_default=yes
7511 aros_shared_cflags="-fPIC"
7512 aros_shared_aflags=""
7513 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7514 aros_kernel_ldflags="-Wl,-rpath,./lib"
7516 aros_kernel_ar_flags="cr"
7517 aros_target_ar_flags="cr"
7518 aros_target_nm_flags="-C -ul"
7519 aros_target_strip_flags="--strip-unneeded -R.comment"
7521 aros_compiler_libs=
7522 aros_arch_libs=
7524 aros_target_genmap="-Wl,-Map -Xlinker"
7526 # Native flavour stuff
7527 aros_serial_debug="0"
7529 # Palm native flavour stuff
7530 aros_palm_debug_hack="0"
7532 # Unix flavour stuff
7533 aros_nesting_supervisor="0"
7535 # Collect-aros stuff: "-ius" to ignore undefined symbols
7536 ignore_undefined_symbols=""
7538 # Check for X11 by default
7539 need_x11="auto"
7541 host_x_gfx=no
7542 host_sdl_gfx=no
7543 host_android_gfx=no
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7547 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7549 # Check whether --with-toolchain was given.
7550 if test "${with_toolchain+set}" = set; then :
7551 withval=$with_toolchain; aros_toolchain="$withval"
7552 else
7553 aros_toolchain="gnu"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7557 $as_echo "$aros_toolchain" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7561 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7562 # Check whether --enable-lto was given.
7563 if test "${enable_lto+set}" = set; then :
7564 enableval=$enable_lto; aros_config_lto="$enableval"
7565 else
7566 aros_config_lto="no"
7569 if test "$aros_config_lto" != "no"; then
7570 aros_config_lto="yes"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7573 $as_echo "$aros_config_lto" >&6; }
7575 use_ld_wrapper=yes
7577 case "$aros_toolchain" in
7578 *llvm*)
7579 # toolchain_needs_sysroot=yes
7580 toolchain_c_compiler="clang"
7581 toolchain_cxx_compiler="clang++"
7582 toolchain_cpp_preprocessor="clang -E"
7583 toolchain_ld="ld.lld"
7584 aros_ld="ld"
7585 toolchain_as="llvm-as"
7586 toolchain_ar="llvm-ar"
7587 toolchain_ranlib="llvm-ranlib"
7588 toolchain_nm="llvm-nm"
7589 toolchain_strip="true"
7590 toolchain_objcopy="llvm-objcopy"
7591 toolchain_objdump="llvm-objdump"
7593 *gnu*)
7594 toolchain_c_compiler="gcc"
7595 toolchain_cxx_compiler="g++"
7596 toolchain_cpp_preprocessor="gcc -E"
7597 toolchain_as="as"
7598 aros_ld="ld"
7599 if test "$aros_config_lto" != "yes"; then
7600 toolchain_ld="ld"
7601 toolchain_ar="ar"
7602 toolchain_ranlib="ranlib"
7603 toolchain_nm="nm"
7604 else
7605 toolchain_ld="ld.bfd"
7606 toolchain_ar="gcc-ar"
7607 toolchain_ranlib="gcc-ranlib"
7608 toolchain_nm="gcc-nm"
7610 toolchain_strip="strip"
7611 toolchain_objcopy="objcopy"
7612 toolchain_objdump="objdump"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7616 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7617 toolchain_c_compiler="cc"
7618 toolchain_cxx_compiler="c++"
7619 toolchain_cpp_preprocessor="cpp"
7620 toolchain_ld="ld"
7621 aros_ld="ld"
7622 toolchain_as="as"
7623 toolchain_ar="ar"
7624 toolchain_ranlib="ranlib"
7625 toolchain_nm="nm"
7626 toolchain_strip="strip"
7627 toolchain_objcopy="objcopy"
7628 toolchain_objdump="objdump"
7630 esac
7632 #-----------------------------------------------------------------------------
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7635 $as_echo_n "checking which type of build to do... " >&6; }
7636 # Check whether --enable-build_type was given.
7637 if test "${enable_build_type+set}" = set; then :
7638 enableval=$enable_build_type; build_type=$enableval
7639 else
7640 build_type="personal"
7644 if test "$build_type" = "nightly"; then
7645 build_type_string="NIGHTLY"
7646 elif test "$build_type" = "snapshot"; then
7647 build_type_string="SNAPSHOT"
7648 elif test "$build_type" = "milestone"; then
7649 build_type_string="MILESTONE"
7650 elif test "$build_type" = "release"; then
7651 build_type_string="RELEASE"
7652 else
7653 build_type_string="PERSONAL"
7654 build_type="personal"
7657 aros_config_cppflags="$aros_config_cppflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7660 $as_echo "$build_type" >&6; }
7662 #-----------------------------------------------------------------------------
7663 all_debug_types="messages stack modules mungwall symbols"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7666 $as_echo_n "checking which debug types to enable... " >&6; }
7667 # Check whether --enable-debug was given.
7668 if test "${enable_debug+set}" = set; then :
7669 enableval=$enable_debug; debug="$enableval"
7670 else
7671 debug=""
7675 if test "$debug" = "" -o "$debug" = "no"; then
7676 debug="none"
7677 elif test "$debug" = "yes"; then
7678 debug="all"
7681 if test "$debug" = "all" ; then
7682 debug="messages stack modules symbols"
7683 for d in $all_debug_types; do
7684 export aros_${d}_debug="1"
7685 done
7686 else
7687 for d in $all_debug_types; do
7688 export aros_${d}_debug="0"
7689 done
7692 if test "$debug" != "none"; then
7693 debug=`echo $debug | sed s/,/\ /g`
7694 for d in $debug; do
7695 found="0"
7696 for d2 in $all_debug_types; do
7697 if test "$d2" = "$d"; then
7698 found="1"
7699 break
7701 done
7702 if test "$found" = "0"; then
7703 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7705 export aros_${d}_debug="1"
7706 done
7707 aros_debug="yes"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7710 $as_echo "$debug" >&6; }
7712 if test "$aros_messages_debug" = "1"; then
7713 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7714 else
7715 aros_messages_debug=""
7717 if test "$aros_symbols_debug" = "1"; then
7718 aros_symbols_debug="-g"
7719 else
7720 aros_symbols_debug=""
7723 # These are the flags to pass when compiling debugged programs
7724 aros_debug_cppflags="$aros_messages_debug"
7725 aros_debug_cflags="$aros_symbols_debug"
7726 aros_debug_cxxflags=
7727 aros_debug_aflags=""
7728 aros_debug_ldflags="$aros_symbols_debug"
7730 #-----------------------------------------------------------------------------
7731 # Checking for distcc and ccache.
7733 # Always apply the transforms in this particular order. Basically you should
7734 # always run 'ccache distcc compiler' in that order for the best performance.
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7737 $as_echo_n "checking whether to enable distcc... " >&6; }
7738 # Check whether --enable-distcc was given.
7739 if test "${enable_distcc+set}" = set; then :
7740 enableval=$enable_distcc; distcc="$enableval"
7741 else
7742 distcc="no"
7745 if test "$distcc" != "" -a "$distcc" != "no"; then
7746 # AC_CHECK_PROG will print out the result in this case
7747 # Extract the first word of "distcc", so it can be a program name with args.
7748 set dummy distcc; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_path_DISTCC+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 case $DISTCC in
7755 [\\/]* | ?:[\\/]*)
7756 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7774 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7776 esac
7778 DISTCC=$ac_cv_path_DISTCC
7779 if test -n "$DISTCC"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7781 $as_echo "$DISTCC" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7794 $as_echo_n "checking whether to enable ccache... " >&6; }
7795 # Check whether --enable-ccache was given.
7796 if test "${enable_ccache+set}" = set; then :
7797 enableval=$enable_ccache; ccache="$enableval"
7798 else
7799 ccache="no"
7802 if test "$ccache" != "" -a "$ccache" != "no"; then
7803 # AC_CHECK_PROG will print out the result in this case
7804 # Extract the first word of "ccache", so it can be a program name with args.
7805 set dummy ccache; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_CCACHE+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$CCACHE"; then
7812 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_CCACHE="ccache"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7831 CCACHE=$ac_cv_prog_CCACHE
7832 if test -n "$CCACHE"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7834 $as_echo "$CCACHE" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7846 #-----------------------------------------------------------------------------
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7848 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7850 # Check whether --with-kernel-gcc-version was given.
7851 if test "${with_kernel_gcc_version+set}" = set; then :
7852 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7853 else
7854 kernel_tool_version=""
7857 if test "$kernel_tool_version" != "" ; then
7858 msg_result=$kernel_tool_version
7859 else
7860 msg_result="default"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7863 $as_echo "$msg_result" >&6; }
7865 #-----------------------------------------------------------------------------
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7867 $as_echo_n "checking what optimization flags to use... " >&6; }
7869 # Check whether --with-optimization was given.
7870 if test "${with_optimization+set}" = set; then :
7871 withval=$with_optimization; optimization="$withval"
7872 else
7873 optimization="unknown"
7876 if test "$optimization" = "unknown"; then
7877 if test "$debug" != "none"; then
7878 optimization="-O0"
7879 else
7880 optimization="-O2"
7883 aros_optimization_cflags="$optimization"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7885 $as_echo "$optimization" >&6; }
7887 paranoia_default=yes
7888 #-----------------------------------------------------------------------------
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7890 $as_echo_n "checking which paranoia flags to use... " >&6; }
7892 # Check whether --with-paranoia was given.
7893 if test "${with_paranoia+set}" = set; then :
7894 withval=$with_paranoia; paranoia_flags="$withval"
7895 else
7896 paranoia_flags="$paranoia_default"
7899 if test "$paranoia_flags" = "no"; then
7900 paranoia_flags="-Wall -Werror-implicit-function-declaration"
7901 msg_result="none"
7902 else
7903 if test "$paranoia_flags" = "yes"; then
7904 paranoia_flags="-Wall -Werror"
7906 msg_result="$paranoia_flags"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7909 $as_echo "$msg_result" >&6; }
7910 aros_warn_flags="$aros_warn_flags $paranoia_flags"
7912 #-----------------------------------------------------------------------------
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7914 $as_echo_n "checking what target variant to enable... " >&6; }
7915 # Check whether --enable-target_variant was given.
7916 if test "${enable_target_variant+set}" = set; then :
7917 enableval=$enable_target_variant; target_variant=$enableval
7918 else
7919 target_variant=""
7922 if test "$target_variant" = ""; then
7923 aros_target_variant=""
7924 aros_target_suffix=""
7925 enableval="none"
7926 else
7927 aros_target_variant="$target_variant"
7928 aros_target_suffix="-$target_variant"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7931 $as_echo "$enableval" >&6; }
7933 #-----------------------------------------------------------------------------
7934 # Target-specific defaults. You can override then on a per-target basis.
7936 # Bootloader name. Currently used by PC target.
7937 target_bootloader="none"
7938 PLATFORM_EXECSMP=
7939 ENABLE_EXECSMP=
7941 #-----------------------------------------------------------------------------
7942 # Additional options for some specific targets
7944 case "$aros_target_variant" in
7945 ios)
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7947 $as_echo_n "checking XCode path... " >&6; }
7949 # Check whether --with-xcode was given.
7950 if test "${with_xcode+set}" = set; then :
7951 withval=$with_xcode; aros_xcode_path="$withval"
7952 else
7953 aros_xcode_path="/Developer"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7957 $as_echo "$aros_xcode_path" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7960 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7962 # Check whether --with-sdk-version was given.
7963 if test "${with_sdk_version+set}" = set; then :
7964 withval=$with_sdk_version; aros_sdk_version="$withval"
7965 else
7966 aros_sdk_version="4.1"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7970 $as_echo "$aros_sdk_version" >&6; }
7974 "android")
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7976 $as_echo_n "checking Android SDK path... " >&6; }
7978 # Check whether --with-sdk was given.
7979 if test "${with_sdk+set}" = set; then :
7980 withval=$with_sdk; aros_android_sdk="$withval"
7981 else
7982 aros_android_sdk=$default_android_sdk
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7986 $as_echo "$aros_android_sdk" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7989 $as_echo_n "checking Android NDK path... " >&6; }
7991 # Check whether --with-ndk was given.
7992 if test "${with_ndk+set}" = set; then :
7993 withval=$with_ndk; aros_android_ndk="$withval"
7994 else
7995 aros_android_ndk="none"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7999 $as_echo "$aros_android_ndk" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
8002 $as_echo_n "checking what Android SDK version to use... " >&6; }
8004 # Check whether --with-sdk-version was given.
8005 if test "${with_sdk_version+set}" = set; then :
8006 withval=$with_sdk_version; aros_sdk_version="$withval"
8007 else
8008 aros_sdk_version="12"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
8012 $as_echo "$aros_sdk_version" >&6; }
8014 aros_android_level=android-$aros_sdk_version
8015 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8016 echo "Platform $aros_android_level is not installed in your SDK"
8017 echo "Use --with-sdk-version=<API level number> to select another platform version"
8018 echo "You can check what plaform versions are installed in your SDK"
8019 echo "by examining contents of $aros_android_sdk/platforms directory"
8020 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8023 export PATH="$aros_android_sdk/tools:$PATH"
8024 # Extract the first word of "$android_tool", so it can be a program name with args.
8025 set dummy $android_tool; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if ${ac_cv_path_android_tool+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 case $android_tool in
8032 [\\/]* | ?:[\\/]*)
8033 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8052 esac
8054 android_tool=$ac_cv_path_android_tool
8055 if test -n "$android_tool"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8057 $as_echo "$android_tool" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8064 req_avail=yes
8065 if test "$android_tool" = ""; then
8066 req_avail=no
8068 if test "$android_tool" = "no"; then
8069 req_avail=no
8071 if test "$req_avail" = "no"; then
8072 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8075 if test "$aros_android_ndk" != "none"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8077 $as_echo_n "checking what Android NDK version to use... " >&6; }
8079 # Check whether --with-ndk-version was given.
8080 if test "${with_ndk_version+set}" = set; then :
8081 withval=$with_ndk_version; aros_ndk_version="$withval"
8082 else
8083 aros_ndk_version="9"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8087 $as_echo "$aros_ndk_version" >&6; }
8090 # Extract the first word of "ant", so it can be a program name with args.
8091 set dummy ant; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_path_ant+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 case $ant in
8098 [\\/]* | ?:[\\/]*)
8099 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8113 done
8114 done
8115 IFS=$as_save_IFS
8118 esac
8120 ant=$ac_cv_path_ant
8121 if test -n "$ant"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8123 $as_echo "$ant" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8130 if test "$ant" = ""; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8132 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8136 $as_echo_n "checking Build debug or release apk... " >&6; }
8138 # Check whether --with-apk-version was given.
8139 if test "${with_apk_version+set}" = set; then :
8140 withval=$with_apk_version; aros_android_antapk=$withval
8141 else
8142 aros_android_antapk=release
8145 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8146 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8149 $as_echo "$aros_android_antapk" >&6; }
8151 if test "$host_os" = "mingw32"; then
8152 android_tool="cmd //c $android_tool"
8155 need_dlopen="no"
8158 esac
8160 #-----------------------------------------------------------------------------
8161 # External toolchains
8162 kernel_tool_prefix="none"
8163 aros_tool_prefix="none"
8164 elf_tool_prefix="${target_cpu}-elf-"
8166 # This is the target configuration switch.
8167 case "$target_os" in
8168 linux*)
8169 aros_target_arch="linux"
8170 aros_target_family="unix"
8171 case "$target_cpu" in
8172 *m68k*)
8173 aros_target_cpu="m68k"
8174 aros_object_format="m68kelf"
8175 aros_flavour="emulcompat"
8176 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8177 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8178 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8179 gcc_target_cpu="mc68000"
8181 *i?86*)
8182 aros_target_cpu="i386"
8183 aros_object_format="elf_i386"
8184 aros_flavour="emulation"
8185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8186 aros_kernel_ldflags="-Wl,-melf_i386"
8187 aros_nominal_depth=8
8188 gcc_target_cpu="i386"
8189 pci_hidd_target="hidd-pci-linux"
8190 android_tool_dir_prefix="x86"
8191 android_tool_prefix="i686-android-linux"
8192 android_ndk_arch="x86"
8194 *x86_64*)
8195 aros_target_cpu="x86_64"
8196 aros_object_format="elf_x86_64"
8197 aros_flavour="emulation"
8198 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8199 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8200 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8201 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8202 aros_nominal_depth=8
8203 pci_hidd_target="hidd-pci-linux"
8205 *powerpc*)
8206 aros_target_cpu="ppc"
8207 aros_object_format="elf32ppc"
8208 aros_flavour="emulation"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8210 aros_nominal_depth=8
8211 gcc_target_cpu="ppc"
8213 # TODO
8214 # Same as powerpc, but I need this for the nightly build to work again.
8215 # Actually, the nightly should be made working with powerpc target.
8216 # That just was too much work for the moment, another week or two.
8217 *ppc*)
8218 aros_target_cpu="ppc"
8219 aros_object_format="elf32ppc"
8220 aros_flavour="emulation"
8221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8222 aros_nominal_depth=8
8223 gcc_target_cpu="ppc"
8225 *aarch64*)
8226 aros_target_cpu="aarch64"
8227 target_cpu="aarch64"
8228 aros_object_format="aarch64elf_aros"
8229 aros_flavour="emulation"
8230 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8231 gcc_target_cpu="aarch64"
8232 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8233 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8234 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8235 aros_arch_libs="-laeabi"
8236 gcc_default_float_abi="hard"
8237 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8239 *armhf*)
8240 aros_target_cpu="arm"
8241 target_cpu="arm"
8242 aros_object_format="armelf_aros"
8243 aros_flavour="emulation"
8244 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8245 gcc_target_cpu="arm"
8246 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8247 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8248 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8249 aros_arch_libs="-laeabi"
8250 gcc_default_float_abi="hard"
8251 android_tool_dir_prefix="arm-linux-androideabi"
8252 android_tool_prefix="arm-linux-androideabi"
8253 android_ndk_arch="arm"
8254 kernel_tool_prefix="arm-linux-gnueabihf-"
8256 *arm*)
8257 aros_target_cpu="arm"
8258 aros_object_format="armelf_aros"
8259 aros_flavour="emulation"
8260 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8261 gcc_target_cpu="arm"
8262 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8263 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-omit-frame-pointer"
8264 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8265 aros_arch_libs="-laeabi"
8266 android_tool_dir_prefix="arm-linux-androideabi"
8267 android_tool_prefix="arm-linux-androideabi"
8268 android_ndk_arch="arm"
8269 kernel_tool_prefix="arm-linux-gnueabi-"
8272 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8274 esac
8275 case "$aros_target_variant" in
8276 android)
8278 if test "$android_ndk_arch" = ""; then
8279 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8282 aros_nominal_width=320
8283 aros_nominal_height=480
8284 if test "$aros_android_ndk" = "none"; then
8285 aros_kernel_cflags="-mandroid"
8286 aros_kernel_ldflags="-mandroid"
8287 CFLAGS="-mandroid"
8288 else
8289 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8290 kernel_tool_version=""
8291 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8292 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8293 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8294 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8295 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8297 need_x11=no
8298 host_android_gfx=yes
8299 # Disable implicit PIC mode
8300 aros_config_cflags="$aros_config_cflags -fno-pic"
8301 kernel_tool_prefix="$android_tool_prefix-"
8303 esac
8307 aros_target_arch="pc"
8308 aros_shared_default="no"
8309 target_bootloader="grub2"
8310 case "$target_cpu" in
8311 *i?86*)
8312 aros_target_cpu="i386"
8315 if test "$aros_object_format" = "" ; then
8316 aros_object_format="elf_i386"
8318 aros_flavour="standalone"
8319 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8320 aros_kernel_ldflags="-Wl,-melf_i386"
8321 aros_nominal_width=640
8322 aros_nominal_height=480
8323 gcc_target_cpu="i386"
8325 *x86_64*)
8326 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8327 aros_target_cpu="x86_64"
8328 aros_serial_debug=1
8329 if test "$aros_object_format" = "" ; then
8330 aros_object_format="elf_x86_64"
8332 aros_flavour="standalone"
8333 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8334 aros_isa_flags="$aros_isa_flags -mcmodel=large -mno-red-zone"
8335 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8336 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-omit-frame-pointer"
8337 aros_kernel_ldflags=""
8338 aros_nominal_width=640
8339 aros_nominal_height=480
8340 case "$aros_target_variant" in
8341 smp)
8342 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8344 esac
8347 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8349 esac
8352 prep)
8353 aros_target_arch="prep"
8354 aros_shared_default="no"
8355 aros_target_cpu="ppc"
8356 aros_object_format="elf32ppc"
8357 aros_flavour="ppcnative"
8358 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8359 aros_kernel_ldflags=""
8360 aros_nominal_width=640
8361 aros_nominal_height=480
8362 gcc_target_cpu="ppc"
8365 freebsd*)
8366 aros_target_arch="freebsd"
8367 aros_target_family="unix"
8368 aros_target_cpu="i386"
8369 aros_flavour="emulation"
8370 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8371 gcc_target_cpu="i386"
8373 aros_target_strip_flags="-x"
8376 darwin*)
8377 aros_target_arch="darwin"
8378 aros_target_family="unix"
8379 aros_flavour="emulation"
8380 case "$target_cpu" in
8381 *i?86*)
8382 aros_ios_platform="iPhoneSimulator"
8383 aros_target_cpu="i386"
8384 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8385 aros_kernel_ldflags=""
8386 aros_macosx_version="10.4"
8387 aros_nominal_depth=8
8388 gcc_target_cpu="i386"
8389 aros_object_format="elf_i386"
8390 aros_kernel_ar_flags="-cr"
8391 aros_target_strip_flags="-x"
8392 kernel_tool_flags="-m32"
8394 *x86_64*)
8395 aros_target_cpu="x86_64"
8396 aros_object_format="elf_x86_64"
8397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8398 aros_macosx_version="10.6"
8399 aros_isa_flags="$aros_isa_flags -mcmodel=large"
8400 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8401 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8402 aros_kernel_cflags="-m64"
8403 aros_kernel_ldflags="-m64"
8404 aros_nominal_depth=8
8405 aros_kernel_ar="ar"
8406 aros_kernel_ar_flags="-cr"
8407 aros_kernel_ld="ld"
8408 aros_kernel_as="as"
8409 aros_kernel_ranlib="ranlib"
8410 aros_kernel_nm="nm"
8411 aros_kernel_strip="strip"
8412 kernel_tool_prefix="i686-apple-darwin10-"
8414 *ppc*)
8415 aros_target_cpu="ppc"
8416 aros_object_format="elf32ppc"
8417 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8418 aros_kernel_ldflags=""
8419 aros_macosx_version="10.0"
8420 aros_nominal_depth=8
8421 gcc_target_cpu="ppc"
8422 aros_kernel_ar="ar"
8423 aros_kernel_ar_flags="-cr"
8424 aros_kernel_ld="ld -arch ppc"
8425 aros_kernel_as="as -arch ppc"
8426 aros_kernel_ranlib="ranlib -arch ppc"
8427 aros_kernel_nm="nm -arch ppc"
8428 aros_kernel_strip="strip -arch ppc"
8429 kernel_tool_prefix="powerpc-apple-darwin10-"
8431 *arm*)
8432 aros_ios_platform="iPhoneOS"
8433 aros_target_cpu="arm"
8434 aros_object_format="armelf_aros"
8435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8436 aros_arch_libs="-laeabi"
8437 aros_nominal_depth=8
8438 gcc_target_cpu="arm"
8439 aros_kernel_ar="ar"
8440 aros_kernel_ar_flags="-cr"
8441 aros_kernel_ld="ld -arch arm"
8442 aros_kernel_ranlib="ranlib -arch arm"
8443 kernel_tool_prefix="arm-apple-darwin10-"
8444 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8447 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8449 esac
8450 case "$aros_target_variant" in
8451 ios)
8452 aros_ios_version="3.0"
8453 aros_nominal_width=320
8454 aros_nominal_height=480
8455 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8456 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8457 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8458 need_x11=no
8459 # This is here because it may depend on iOS or SDK version
8460 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8461 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8462 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8465 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8466 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8468 esac
8471 dragonfly*)
8472 aros_target_arch="dragonfly"
8473 aros_target_family="unix"
8474 aros_flavour="emulation"
8475 case "$target_cpu" in
8476 *i?86*)
8477 aros_target_cpu="i386"
8478 aros_object_format="elf_i386"
8479 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8481 *x86_64*)
8482 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8483 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8484 aros_target_cpu="x86_64"
8485 aros_object_format="elf_x86_64"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8489 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8491 esac
8494 netbsd*)
8495 aros_target_arch="netbsd"
8496 aros_target_family="unix"
8497 case "$target_cpu" in
8498 *m68k*)
8499 aros_target_cpu="m68k"
8500 aros_object_format="m68kelf"
8501 aros_flavour="emulcompat"
8502 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8503 gcc_target_cpu="mc68000"
8505 *i?86*)
8506 aros_target_cpu="i386"
8507 aros_object_format="elf_i386"
8508 aros_flavour="emulation"
8509 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8510 aros_nominal_depth=8
8511 gcc_target_cpu="i386"
8514 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8516 esac
8517 aros_target_genmap="-Wl,-M -Xlinker >"
8518 aros_flavour="emulation"
8519 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8522 openbsd*)
8523 aros_target_arch="openbsd"
8524 aros_target_family="unix"
8525 case "$target_cpu" in
8526 *i?86*)
8527 aros_target_cpu="i386"
8528 aros_object_format="elf_i386"
8529 aros_flavour="emulation"
8530 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8531 gcc_target_cpu="i386"
8534 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8536 esac
8537 aros_target_genmap="-Wl,-M -Xlinker >"
8538 aros_target_nm_flags="-u"
8539 aros_flavour="emulation"
8542 solaris*)
8543 aros_target_arch="solaris"
8544 aros_target_family="unix"
8545 case "$target_cpu" in
8546 *i?86*)
8547 aros_target_cpu="i386"
8548 aros_object_format="elf_i386"
8549 aros_flavour="emulation"
8550 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8551 aros_nominal_depth=8
8552 gcc_target_cpu="i386"
8554 *sparc*)
8555 aros_target_cpu="sparc"
8556 aros_object_format="elf_sparc"
8557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8558 gcc_target_cpu="sparc"
8561 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8563 esac
8564 aros_config_cppflags="$aros_config_cppflags -D$aros_target_cpu"
8565 aros_flavour="emulation"
8568 morphos*)
8569 aros_target_arch="morphos"
8570 aros_shared_default="no"
8571 aros_target_cpu="ppc"
8572 aros_object_format="elf_ppc"
8573 aros_flavour="nativecompat"
8574 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8575 gcc_target_cpu="ppc"
8578 sam440)
8579 aros_target_arch="sam440"
8580 aros_shared_default="no"
8581 aros_target_cpu="ppc"
8582 aros_object_format="elf32ppc"
8583 aros_flavour="ppcnative"
8584 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8585 aros_kernel_ldflags=""
8586 aros_nominal_width=1024
8587 aros_nominal_height=768
8588 aros_nominal_depth=24
8589 aros_isa_flags="$aros_isa_flags -mcpu=440fp -mno-toc"
8590 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8591 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8592 gcc_target_cpu="powerpc"
8595 efika)
8596 aros_target_arch="efika"
8597 aros_shared_default="no"
8598 aros_target_cpu="arm"
8599 aros_object_format="armelf_aros"
8600 aros_flavour="standalone"
8601 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8602 aros_kernel_ldflags=""
8603 aros_nominal_width=1024
8604 aros_nominal_height=600
8605 aros_arch_libs="-laeabi"
8606 gcc_default_cpu="armv7-a"
8607 gcc_default_fpu="vfpv3"
8608 aros_isa_flags="$aros_isa_flags -mtune=cortex-a8"
8609 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8610 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8611 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8612 aros_optimization_cflags="$aros_optimization_cflags -Os"
8613 case "$target_cpu" in
8614 *armhf*)
8615 gcc_default_float_abi="hard"
8616 target_cpu=arm
8617 aros_target_cpu=arm
8619 *arm*)
8620 gcc_default_float_abi="softfp"
8623 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8625 esac
8628 chrp)
8629 aros_target_arch="chrp"
8630 aros_shared_default="no"
8631 aros_target_cpu="ppc"
8632 aros_object_format="elf32ppc"
8633 aros_flavour="ppcnative"
8634 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8635 aros_kernel_ldflags=""
8636 aros_nominal_width=640
8637 aros_nominal_height=480
8638 aros_isa_flags="$aros_isa_flags -mno-toc"
8639 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8640 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables"
8641 gcc_target_cpu="powerpc"
8642 case "$aros_target_variant" in
8643 efika)
8644 aros_isa_flags="$aros_isa_flags -mcpu=603e"
8645 aros_config_cppflags="$aros_config_cppflags -DBIG_ENDIAN_OHCI=1"
8647 esac
8650 r*pi)
8651 PLATFORM_EXECSMP="#define __AROSPLATFORM_SMP__"
8652 aros_flavour="standalone"
8653 aros_target_arch="raspi"
8655 aros_shared_default="no"
8657 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8659 case "$target_cpu" in
8660 *aarch64*)
8661 aros_target_cpu="aarch64"
8662 gcc_default_cpu="aarch64"
8663 aros_object_format="aarch64elf_aros"
8665 *armhf*)
8666 aros_target_cpu="arm"
8667 gcc_default_cpu="armv6zk"
8668 gcc_default_cpu_tune="arm1176jzf-s"
8669 aros_object_format="armelf_aros"
8670 aros_isa_flags="$aros_isa_flags -marm"
8671 aros_config_cflags="$aros_config_cflags"
8672 aros_config_cxxflags="$aros_config_cxxflags"
8673 aros_config_aflags="$aros_config_aflags -marm"
8674 aros_kernel_cflags="$aros_kernel_cflags -marm"
8675 aros_target_mkdep="$aros_target_mkdep -Darm"
8676 aros_arch_libs="-laeabi"
8678 *arm*)
8679 aros_target_cpu="arm"
8680 gcc_default_cpu="armv6zk"
8681 gcc_default_cpu_tune="arm1176jzf-s"
8682 aros_object_format="armelf_aros"
8683 aros_isa_flags="$aros_isa_flags -marm"
8684 aros_config_cflags="$aros_config_cflags"
8685 aros_config_cxxflags="$aros_config_cxxflags"
8686 aros_config_aflags="$aros_config_aflags -marm"
8687 aros_kernel_cflags="$aros_kernel_cflags -marm"
8688 aros_target_mkdep="$aros_target_mkdep -Darm"
8689 aros_arch_libs="-laeabi"
8692 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8694 esac
8696 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8697 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
8698 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8699 aros_kernel_cflags="$aros_kernel_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8701 case "$aros_target_variant" in
8702 smp)
8703 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8705 esac
8708 stm32f7_discovery)
8709 aros_flavour="standalone"
8710 aros_target_arch="stm32f7_discovery"
8711 aros_target_cpu="arm"
8712 aros_target_cpu_mode="thumb2"
8713 aros_object_format="armelf_aros"
8714 aros_shared_default="no"
8716 gcc_default_cpu="armv7e-m"
8717 gcc_default_cpu_tune="cortex-m7"
8718 gcc_default_fpu="fpv5-sp-d16"
8719 gcc_default_float_abi="hard"
8721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8724 amiga*)
8725 aros_target_arch="amiga"
8726 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8727 aros_shared_default="no"
8729 case "$target_cpu" in
8730 *m68k*)
8731 # Check whether --enable-amigaos_compliance was given.
8732 if test "${enable_amigaos_compliance+set}" = set; then :
8733 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8736 aros_enable_mmu=no
8737 aros_target_cpu="m68k"
8738 aros_object_format="m68kelf"
8739 aros_flavour="standcompat"
8740 gcc_target_cpu="m68000"
8741 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8742 aros_config_cppflags="$aros_config_cppflags -DNOLIBINLINE"
8743 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8744 aros_config_cxxflags="$aros_config_cxxflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin"
8745 aros_optimization_cflags="$aros_optimization_cflags -Os"
8746 aros_config_aflags="$aros_config_aflags"
8747 aros_target_strip_flags="-R.comment --strip-debug"
8748 aros_nominal_width=640
8749 aros_nominal_height=256
8750 aros_nominal_depth=2
8752 *ppc*)
8753 aros_cpu="ppc"
8754 aros_flavour="native"
8755 gcc_target_cpu="ppc"
8758 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8760 esac
8763 mingw*)
8764 aros_target_arch="mingw32"
8765 aros_shared_default="no"
8766 aros_flavour="emulation"
8767 aros_shared_cflags=""
8768 need_crosstools="yes"
8769 need_dlopen="no"
8770 rescomp="windres"
8771 case "$target_cpu" in
8772 *i?86*)
8773 aros_target_cpu="i386"
8774 aros_object_format="elf_i386"
8775 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8776 aros_nominal_depth=8
8777 gcc_target_cpu="i386"
8779 kernel_tool_prefix="i386-mingw32-"
8781 *x86_64*)
8782 aros_target_cpu="x86_64"
8783 aros_object_format="elf_x86_64"
8784 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8785 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8786 aros_config_cxxflags="$aros_config_cxxflags -fno-omit-frame-pointer"
8787 aros_nominal_depth=8
8788 kernel_tool_prefix="x86_64-w64-mingw32-"
8790 *arm*)
8791 aros_target_cpu="arm"
8792 aros_object_format="armelf_aros"
8793 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8794 aros_arch_libs="-laeabi"
8795 aros_nominal_depth=8
8796 gcc_target_cpu="arm"
8797 gcc_default_float_abi="soft"
8798 kernel_tool_prefix="arm-mingw32ce-"
8799 aros_nominal_width=160
8800 aros_nominal_height=160
8803 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8805 esac
8806 if test $host_os = "cygwin"; then
8807 aros_kernel_cflags="-mno-cygwin"
8810 pp*)
8811 aros_target_arch="pp"
8812 aros_shared_default="no"
8813 case "$target_cpu" in
8814 *m68k*)
8815 aros_target_cpu="m68k"
8816 aros_object_format="m68kelf"
8817 aros_flavour="palmnative"
8818 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8819 aros_nominal_width=160
8820 aros_nominal_height=160
8821 aros_nominal_depth=1
8822 aros_target_ar_flags="cru"
8823 aros_compiler_libs="-lgcc1"
8824 aros_shared_default=no
8825 aros_shared_cflags="-fpic"
8826 aros_shared_aflags=""
8827 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8828 aros_kernel_ldflags="-Wl,-rpath,./lib"
8829 aros_debug_cppflags="$aros_messages_debug"
8830 aros_debug_cflags="$aros_symbols_debug"
8831 aros_debug_aflags=""
8832 aros_debug_ldflags="$aros_symbols_debug"
8833 aros_mungwall_debug="0"
8834 aros_modules_debug="0"
8835 gcc_target_cpu="mc68000"
8836 ignore_undefined_symbols="-ius"
8839 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8841 esac
8844 mac*)
8845 aros_target_arch="mac"
8846 aros_shared_default="no"
8847 case "$target_cpu" in
8848 *m68k*)
8849 aros_target_cpu="m68k"
8850 aros_object_format="m68kelf"
8851 aros_flavour="mac68knative"
8852 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8853 aros_nominal_width=512
8854 aros_nominal_height=384
8855 aros_nominal_depth=8
8856 aros_target_ar_flags="cru"
8857 aros_compiler_libs="-lgcc1"
8858 aros_shared_default=no
8859 aros_shared_cflags="-fpic"
8860 aros_shared_aflags=""
8861 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8862 aros_kernel_ldflags="-Wl,-rpath,./lib"
8863 aros_debug_cppflags="$aros_messages_debug"
8864 aros_debug_cflags="$aros_symbols_debug"
8865 aros_debug_aflags=""
8866 aros_debug_ldflags="$aros_symbols_debug"
8867 aros_mungwall_debug="0"
8868 aros_modules_debug="0"
8869 gcc_target_cpu="mc68000"
8870 ignore_undefined_symbols="-ius"
8873 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8875 esac
8879 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8881 esac
8883 #-----------------------------------------------------------------------------
8884 crosstools_guess="yes"
8885 aros_target_toolchain="no"
8886 aros_config_sysroot=""
8887 aros_kernel_sysroot=""
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8890 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8892 # Check whether --with-kernel-toolchain-prefix was given.
8893 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8894 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8898 $as_echo "$kernel_tool_prefix" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8901 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8903 # Check whether --with-elf-toolchain-prefix was given.
8904 if test "${with_elf_toolchain_prefix+set}" = set; then :
8905 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8906 crosstools_guess="no"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8910 $as_echo "$elf_tool_prefix" >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8913 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8915 # Check whether --with-aros-toolchain was given.
8916 if test "${with_aros_toolchain+set}" = set; then :
8917 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8918 crosstools_guess="no"
8921 if test "$aros_tool_prefix" = "yes" ; then
8922 aros_tool_prefix=$aros_target_cpu-aros-
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8925 $as_echo "$aros_tool_prefix" >&6; }
8927 #-----------------------------------------------------------------------------
8928 # Checking if we should build crosstools..
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8930 $as_echo_n "checking whether to build crosstools... " >&6; }
8931 # Check whether --enable-crosstools was given.
8932 if test "${enable_crosstools+set}" = set; then :
8933 enableval=$enable_crosstools; crosstools="$enableval"
8934 else
8935 crosstools="$crosstools_guess"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8939 $as_echo "$crosstools" >&6; }
8941 if test "${crosstools}" = "yes"; then
8942 if test "${crosstools_guess}" = "no"; then
8943 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8947 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8948 aros_target_toolchain="yes"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8952 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8954 # Check whether --with-aros-toolchain-install was given.
8955 if test "${with_aros_toolchain_install+set}" = set; then :
8956 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8959 if test "x$aros_toolchain_install" = "x"; then
8960 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8961 else
8962 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8963 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8964 if test "$crosstools_guess" = "no" ; then
8965 toolchain_needs_sysroot=yes
8967 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8968 aros_kernel_sysroot = $aros_config_sysroot
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8973 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8976 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8977 if test "$toolchain_needs_sysroot" = "yes" ; then
8978 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8981 $as_echo "$toolchain_needs_sysroot" >&6; }
8983 #-----------------------------------------------------------------------------
8984 if test "$aros_toolchain" = "gnu" ; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8986 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8989 # Check whether --with-binutils-version was given.
8990 if test "${with_binutils_version+set}" = set; then :
8991 withval=$with_binutils_version; use_binutils_version="$withval"
8992 else
8993 use_binutils_version=""
8996 if test "$use_binutils_version" = ""; then
8997 target_binutils_version="$default_binutils_version"
8998 else
8999 target_binutils_version="$use_binutils_version"
9001 if test "$aros_toolchain" = "gnu" ; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
9003 $as_echo "$target_binutils_version" >&6; }
9007 # Helper to identify gcc version
9010 #-----------------------------------------------------------------------------
9011 if test "$aros_toolchain" = "gnu" ; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
9013 $as_echo_n "checking what specific target gcc version to use... " >&6; }
9016 # Check whether --with-gcc-version was given.
9017 if test "${with_gcc_version+set}" = set; then :
9018 withval=$with_gcc_version; use_gcc_version="$withval"
9019 else
9020 use_gcc_version=""
9023 if test "$use_gcc_version" = ""; then
9024 if test "${crosstools}" = "no"; then
9025 if test "x$aros_toolchain_install" != "x"; then
9027 target_gcc_version=""
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
9029 $as_echo_n "checking gcc version... " >&6; }
9030 if ${ax_cv_gcc_version+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9034 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
9035 if test "x$ax_cv_gcc_version" = "x"; then :
9037 ax_cv_gcc_version=""
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9043 $as_echo "$ax_cv_gcc_version" >&6; }
9044 target_gcc_version=$ax_cv_gcc_version
9049 if test "$use_gcc_version" = ""; then
9050 target_gcc_version="$default_gcc_version"
9052 else
9053 target_gcc_version="$use_gcc_version"
9055 if test "$aros_toolchain" = "gnu" ; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9057 $as_echo "$target_gcc_version" >&6; }
9059 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9060 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9061 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9063 gcc_fix_bitfields="false"
9064 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9065 gcc_fix_bitfields="true"
9066 else
9067 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9068 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9069 gcc_fix_bitfields="true"
9074 if test "$gcc_fix_bitfields" = "true" ; then
9075 case "$aros_target_cpu" in
9076 *x86_64*)
9077 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9078 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9080 i386)
9081 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9082 aros_isa_flags="$aros_isa_flags -mno-ms-bitfields"
9084 esac
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9089 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9090 # Check whether --enable-objc was given.
9091 if test "${enable_objc+set}" = set; then :
9092 enableval=$enable_objc; objc="$enableval"
9093 else
9094 objc="no"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9098 $as_echo "$objc" >&6; }
9099 if test "x$objc" = "xyes"; then
9100 objc_target="$objc"
9101 else
9102 objc_target="no-objc"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9106 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9107 # Check whether --enable-java was given.
9108 if test "${enable_java+set}" = set; then :
9109 enableval=$enable_java; java="$enableval"
9110 else
9111 java="no"
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9115 $as_echo "$java" >&6; }
9116 if test "x$java" != "xno"; then
9117 java_target="$java"
9118 else
9119 java_target="no-java"
9122 spec_obj_format="-m $aros_object_format"
9123 # Now process extra architecture-specific options.
9124 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9125 # as well as floating-point ABI.
9126 case "$aros_target_cpu" in
9127 *x86_64*)
9128 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9130 arm*)
9131 if test "$gcc_default_cpu" = ""; then
9132 gcc_default_cpu="armv6"
9134 if test "$gcc_default_fpu" = ""; then
9135 gcc_default_fpu="vfp"
9137 if test "$gcc_default_float_abi" = ""; then
9138 if test "$target_cpu" = "armhf"; then
9139 gcc_default_float_abi="hard"
9140 else
9141 gcc_default_float_abi="softfp"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9146 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9148 # Check whether --with-cpu was given.
9149 if test "${with_cpu+set}" = set; then :
9150 withval=$with_cpu; aros_gcc_cpu="$withval"
9151 else
9152 aros_gcc_cpu=$gcc_default_cpu
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9156 $as_echo "$aros_gcc_cpu" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9159 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9161 # Check whether --with-fpu was given.
9162 if test "${with_fpu+set}" = set; then :
9163 withval=$with_fpu; aros_gcc_fpu="$withval"
9164 else
9165 aros_gcc_fpu=$gcc_default_fpu
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9169 $as_echo "$aros_gcc_fpu" >&6; }
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9172 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9174 # Check whether --with-float was given.
9175 if test "${with_float+set}" = set; then :
9176 withval=$with_float; aros_gcc_float_abi="$withval"
9177 else
9178 aros_gcc_float_abi=$gcc_default_float_abi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9182 $as_echo "$aros_gcc_float_abi" >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9185 $as_echo_n "checking Which ARM mode to use... " >&6; }
9186 if test "$aros_target_cpu_mode" = ""; then
9187 aros_target_cpu_mode="arm32"
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9189 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9192 $as_echo "$aros_target_cpu_mode" >&6; }
9195 case "$aros_target_cpu_mode" in
9196 arm32)
9197 gcc_default_mode="arm"
9198 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9200 arm64)
9201 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9203 thumb)
9204 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9206 thumb1)
9207 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9209 thumb2)
9210 gcc_default_mode="thumb"
9211 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9212 aros_isa_flags="$aros_isa_flags -m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9215 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9217 esac
9219 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9220 aros_config_cxxflags="$aros_config_cxxflags -fno-asynchronous-unwind-tables -fno-exceptions"
9221 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9223 i386)
9224 aros_isa_flags="$aros_isa_flags -m32 -march=i486"
9225 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9226 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9228 esac
9230 # Some architectures may need custom ELF specs.
9231 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9232 elf_specs_in=config/${aros_object_format}-specs.in
9233 else
9234 elf_specs_in=config/elf-specs.in
9237 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9238 # Since we override specs, we may need to put these defines there
9239 if test "$gcc_target_cpu" != ""; then
9240 gcc_target_cpu="-D__${gcc_target_cpu}__"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9244 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9246 # Check whether --with-portssources was given.
9247 if test "${with_portssources+set}" = set; then :
9248 withval=$with_portssources; with_portssrcdir=$withval
9249 else
9250 with_portssrcdir="default"
9253 if test "$with_portssrcdir" = "default"; then
9254 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9255 else
9256 AROS_PORTSSRCDIR="$with_portssrcdir"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9259 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9262 $as_echo_n "checking which bootloader to use... " >&6; }
9264 # Check whether --with-bootloader was given.
9265 if test "${with_bootloader+set}" = set; then :
9266 withval=$with_bootloader; target_bootloader=$withval
9267 else
9268 target_bootloader=$target_bootloader
9271 if test "$target_bootloader" = "none"; then
9272 aros_target_bootloader=""
9273 else
9274 aros_target_bootloader="$target_bootloader"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9277 $as_echo "$target_bootloader" >&6; }
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9280 $as_echo_n "checking which icon-set to use... " >&6; }
9282 # Check whether --with-iconset was given.
9283 if test "${with_iconset+set}" = set; then :
9284 withval=$with_iconset; target_iconset=$withval
9285 else
9286 target_iconset="default"
9289 if test "$target_iconset" = "default"; then
9290 aros_target_iconset="Gorilla"
9291 target_iconset="default (Gorilla)"
9292 else
9293 aros_target_iconset="$target_iconset"
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9296 $as_echo "$target_iconset" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9299 $as_echo_n "checking which GUI Theme to use... " >&6; }
9301 # Check whether --with-theme was given.
9302 if test "${with_theme+set}" = set; then :
9303 withval=$with_theme; target_guitheme=$withval
9304 else
9305 target_guitheme="default"
9308 if test "$target_guitheme" = "default"; then
9309 aros_target_guitheme="Ice"
9310 else
9311 aros_target_guitheme="$target_guitheme"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9314 $as_echo "$aros_target_guitheme" >&6; }
9316 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9317 # for target code)
9318 cross_compiling=no
9320 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9321 cross_compiling=yes
9324 if test "$aros_host_cpu" == "x86_64" ; then
9325 if test "$aros_target_cpu" == "i386" ; then
9326 cross_compiling=no
9330 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9331 if test "$aros_host_arch" != "$aros_target_arch" ; then
9332 cross_compiling=yes
9334 else
9335 if test "$host_cc_elf" = "no" ; then
9336 cross_compiling=yes
9340 if test "$cross_compiling" = "no" ; then
9341 kernel_tool_prefix=""
9342 if test "$host_cc_elf" = "yes" ; then
9343 elf_tool_prefix=""
9347 if test "$kernel_tool_version" != ""; then
9348 kernel_tool_version="-$kernel_tool_version"
9351 #######################################################################
9352 ## Compute what toolchains to use, and their paths ##
9353 #######################################################################
9355 # This takes, as input:
9356 # crosstools {yes,no}
9357 # kernel_tool_version {"",[version]}
9358 # target_tool_version {"",[version]}
9359 # kernel_tool_prefix {none,[some-arch-os-]}
9360 # gnu-toolchain -:
9361 # target_tool_prefix ${aros_target_cpu}-aros-
9362 # aros_tool_prefix ${aros_target_cpu}-aros-
9364 # The output is
9365 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9366 # Where the 'kernel' binaries are located
9367 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9368 # Where the 'target' binaries are located
9369 # (not the symlink farm - that is aros_target_*!)
9371 # The rules are:
9372 # if crosstools then
9373 # if kernel_tools_prefix = "no-kernel-prefix-"
9374 # aros_kernel_* = crosstools cc paths
9375 # aros_kernel_cc = elf cc wrapper around crosstools cc
9376 # else
9377 # VALIDATE(${kernel_tools_prefix}*)
9378 # aros_kernel_* = ${kernel_tools_prefix}*
9379 # if ${kernel_tools_prefix}cc is an AROS gcc
9380 # aros_kernel_cc = ${kernel_tools_prefix}cc
9381 # else
9382 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9383 # fi
9384 # fi
9386 # orig_target_* = aros built crosstools
9387 # orig_target_cc = elf cc wrapper around crosstools cc
9388 # else
9389 # VALIDATE(${kernel_tools_prefix}*)
9391 # orig_target_* = aros_kernel_*
9392 # if aros_kernel_cc is an AROS gcc
9393 # orig_target_cc = aros_kernel_cc
9394 # else
9395 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9396 # fi
9397 # fi
9399 if test "$aros_toolchain" = "gnu" ; then
9400 target_tool_prefix="${aros_target_cpu}-aros-"
9401 elif test "$aros_toolchain" = "llvm" ; then
9402 target_tool_prefix="bin/"
9405 if test "$kernel_tool_prefix" != "" ; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9407 $as_echo_n "checking which kernel tools... " >&6; }
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9409 $as_echo "$kernel_tool_prefix" >&6; };
9412 if test "$kernel_tool_prefix" = "none" ; then
9413 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9414 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9416 else
9417 # Kernel tools required - find them
9418 # Note that 'normally', aros_kernel_* overrides will be
9419 # empty, unless specified in the per-arch sections above.
9420 if test "x$aros_kernel_cpp" = "x"; then
9421 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9423 if test "${kernel_tool_version}" != ""; then
9424 if test "$aros_kernel_cpp" != ""; then
9425 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9426 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9427 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9431 if test "$aros_kernel_cpp" = ""; then
9432 if test "$cross_compiling" = "yes" ; then
9433 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9434 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436 $as_echo_n "checking for $ac_word... " >&6; }
9437 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 case $aros_kernel_cpp in
9441 [\\/]* | ?:[\\/]*)
9442 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 for as_dir in $PATH
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9456 done
9457 done
9458 IFS=$as_save_IFS
9461 esac
9463 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9464 if test -n "$aros_kernel_cpp"; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9466 $as_echo "$aros_kernel_cpp" >&6; }
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9473 else
9474 if test "$GCC" = "yes"; then
9475 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9476 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9477 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9479 $as_echo_n "checking for $ac_word... " >&6; }
9480 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 case $aros_kernel_cpp in
9484 [\\/]* | ?:[\\/]*)
9485 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 for as_dir in `dirname $aros_gcc_cpp`
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
9493 for ac_exec_ext in '' $ac_executable_extensions; do
9494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9495 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 break 2
9499 done
9500 done
9501 IFS=$as_save_IFS
9504 esac
9506 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9507 if test -n "$aros_kernel_cpp"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9509 $as_echo "$aros_kernel_cpp" >&6; }
9510 else
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512 $as_echo "no" >&6; }
9517 if test "$aros_kernel_cpp" = ""; then
9518 # Extract the first word of "cpp", so it can be a program name with args.
9519 set dummy cpp; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 case $aros_kernel_cpp in
9526 [\\/]* | ?:[\\/]*)
9527 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9541 done
9542 done
9543 IFS=$as_save_IFS
9546 esac
9548 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9549 if test -n "$aros_kernel_cpp"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9551 $as_echo "$aros_kernel_cpp" >&6; }
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9560 else
9561 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9562 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9563 set dummy $aros_kernel_cpp; ac_word=$2
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 case $aros_kernel_cpp in
9570 [\\/]* | ?:[\\/]*)
9571 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9577 IFS=$as_save_IFS
9578 test -z "$as_dir" && as_dir=.
9579 for ac_exec_ext in '' $ac_executable_extensions; do
9580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 break 2
9585 done
9586 done
9587 IFS=$as_save_IFS
9590 esac
9592 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9593 if test -n "$aros_kernel_cpp"; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9595 $as_echo "$aros_kernel_cpp" >&6; }
9596 else
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9602 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9605 req_avail=yes
9606 if test "$aros_kernel_cpp" = ""; then
9607 req_avail=no
9609 if test "$aros_kernel_cpp" = "no"; then
9610 req_avail=no
9612 if test "$req_avail" = "no"; then
9613 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9616 if test "x$aros_kernel_cc" = "x"; then
9617 aros_kernel_cc=${kernel_tool_prefix}${CC}
9619 if test "${kernel_tool_version}" != ""; then
9620 if test "$aros_kernel_cc" != ""; then
9621 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9622 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9623 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9627 if test "$aros_kernel_cc" = ""; then
9628 if test "$cross_compiling" = "yes" ; then
9629 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9630 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 case $aros_kernel_cc in
9637 [\\/]* | ?:[\\/]*)
9638 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9652 done
9653 done
9654 IFS=$as_save_IFS
9657 esac
9659 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9660 if test -n "$aros_kernel_cc"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9662 $as_echo "$aros_kernel_cc" >&6; }
9663 else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9669 else
9670 if test "$GCC" = "yes"; then
9671 aros_gcc_cc=`$CC -print-prog-name=cc`
9672 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9673 set dummy `basename $aros_gcc_cc`; ac_word=$2
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 $as_echo_n "checking for $ac_word... " >&6; }
9676 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 case $aros_kernel_cc in
9680 [\\/]* | ?:[\\/]*)
9681 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 for as_dir in `dirname $aros_gcc_cc`
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 break 2
9695 done
9696 done
9697 IFS=$as_save_IFS
9700 esac
9702 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9703 if test -n "$aros_kernel_cc"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9705 $as_echo "$aros_kernel_cc" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 if test "$aros_kernel_cc" = ""; then
9714 # Extract the first word of "cc", so it can be a program name with args.
9715 set dummy cc; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 case $aros_kernel_cc in
9722 [\\/]* | ?:[\\/]*)
9723 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9737 done
9738 done
9739 IFS=$as_save_IFS
9742 esac
9744 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9745 if test -n "$aros_kernel_cc"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9747 $as_echo "$aros_kernel_cc" >&6; }
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9756 else
9757 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9758 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9759 set dummy $aros_kernel_cc; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 case $aros_kernel_cc in
9766 [\\/]* | ?:[\\/]*)
9767 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in $PATH
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9777 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9781 done
9782 done
9783 IFS=$as_save_IFS
9786 esac
9788 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9789 if test -n "$aros_kernel_cc"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9791 $as_echo "$aros_kernel_cc" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9798 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9801 req_avail=yes
9802 if test "$aros_kernel_cc" = ""; then
9803 req_avail=no
9805 if test "$aros_kernel_cc" = "no"; then
9806 req_avail=no
9808 if test "$req_avail" = "no"; then
9809 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9812 if test "x$aros_kernel_cxx" = "x"; then
9813 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9815 if test "${kernel_tool_version}" != ""; then
9816 if test "$aros_kernel_cxx" != ""; then
9817 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9818 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9819 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9823 if test "$aros_kernel_cxx" = ""; then
9824 if test "$cross_compiling" = "yes" ; then
9825 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9826 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 case $aros_kernel_cxx in
9833 [\\/]* | ?:[\\/]*)
9834 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9848 done
9849 done
9850 IFS=$as_save_IFS
9853 esac
9855 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9856 if test -n "$aros_kernel_cxx"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9858 $as_echo "$aros_kernel_cxx" >&6; }
9859 else
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9865 else
9866 if test "$GCC" = "yes"; then
9867 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9868 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9869 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 case $aros_kernel_cxx in
9876 [\\/]* | ?:[\\/]*)
9877 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in `dirname $aros_gcc_cxx`
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9891 done
9892 done
9893 IFS=$as_save_IFS
9896 esac
9898 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9899 if test -n "$aros_kernel_cxx"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9901 $as_echo "$aros_kernel_cxx" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9909 if test "$aros_kernel_cxx" = ""; then
9910 # Extract the first word of "cxx", so it can be a program name with args.
9911 set dummy cxx; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 case $aros_kernel_cxx in
9918 [\\/]* | ?:[\\/]*)
9919 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9933 done
9934 done
9935 IFS=$as_save_IFS
9938 esac
9940 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9941 if test -n "$aros_kernel_cxx"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9943 $as_echo "$aros_kernel_cxx" >&6; }
9944 else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9952 else
9953 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9954 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9955 set dummy $aros_kernel_cxx; ac_word=$2
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 $as_echo_n "checking for $ac_word... " >&6; }
9958 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 case $aros_kernel_cxx in
9962 [\\/]* | ?:[\\/]*)
9963 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $PATH
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9977 done
9978 done
9979 IFS=$as_save_IFS
9982 esac
9984 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9985 if test -n "$aros_kernel_cxx"; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9987 $as_echo "$aros_kernel_cxx" >&6; }
9988 else
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9994 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
9997 # If it's set, make sure it's really there
9998 if test "x$aros_kernel_cxx" != "x" ; then
9999 req_avail=yes
10000 if test "$aros_kernel_cxx" = ""; then
10001 req_avail=no
10003 if test "$aros_kernel_cxx" = "no"; then
10004 req_avail=no
10006 if test "$req_avail" = "no"; then
10007 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10011 if test "$aros_kernel_ld" = ""; then
10012 if test "$cross_compiling" = "yes" ; then
10013 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
10014 set dummy ${kernel_tool_prefix}ld; ac_word=$2
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016 $as_echo_n "checking for $ac_word... " >&6; }
10017 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 case $aros_kernel_ld in
10021 [\\/]* | ?:[\\/]*)
10022 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10032 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10036 done
10037 done
10038 IFS=$as_save_IFS
10041 esac
10043 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10044 if test -n "$aros_kernel_ld"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10046 $as_echo "$aros_kernel_ld" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10053 else
10054 if test "$GCC" = "yes"; then
10055 aros_gcc_ld=`$CC -print-prog-name=ld`
10056 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10057 set dummy `basename $aros_gcc_ld`; ac_word=$2
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 $as_echo_n "checking for $ac_word... " >&6; }
10060 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 case $aros_kernel_ld in
10064 [\\/]* | ?:[\\/]*)
10065 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in `dirname $aros_gcc_ld`
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 break 2
10079 done
10080 done
10081 IFS=$as_save_IFS
10084 esac
10086 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10087 if test -n "$aros_kernel_ld"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10089 $as_echo "$aros_kernel_ld" >&6; }
10090 else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10097 if test "$aros_kernel_ld" = ""; then
10098 # Extract the first word of "ld", so it can be a program name with args.
10099 set dummy ld; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 case $aros_kernel_ld in
10106 [\\/]* | ?:[\\/]*)
10107 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10117 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 break 2
10121 done
10122 done
10123 IFS=$as_save_IFS
10126 esac
10128 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10129 if test -n "$aros_kernel_ld"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10131 $as_echo "$aros_kernel_ld" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10140 else
10141 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10142 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10143 set dummy $aros_kernel_ld; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 case $aros_kernel_ld in
10150 [\\/]* | ?:[\\/]*)
10151 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10165 done
10166 done
10167 IFS=$as_save_IFS
10170 esac
10172 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10173 if test -n "$aros_kernel_ld"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10175 $as_echo "$aros_kernel_ld" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10182 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10185 req_avail=yes
10186 if test "$aros_kernel_ld" = ""; then
10187 req_avail=no
10189 if test "$aros_kernel_ld" = "no"; then
10190 req_avail=no
10192 if test "$req_avail" = "no"; then
10193 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10196 if test "$aros_kernel_as" = ""; then
10197 if test "$cross_compiling" = "yes" ; then
10198 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10199 set dummy ${kernel_tool_prefix}as; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if ${ac_cv_path_aros_kernel_as+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 case $aros_kernel_as in
10206 [\\/]* | ?:[\\/]*)
10207 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10213 IFS=$as_save_IFS
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 break 2
10221 done
10222 done
10223 IFS=$as_save_IFS
10226 esac
10228 aros_kernel_as=$ac_cv_path_aros_kernel_as
10229 if test -n "$aros_kernel_as"; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10231 $as_echo "$aros_kernel_as" >&6; }
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10238 else
10239 if test "$GCC" = "yes"; then
10240 aros_gcc_as=`$CC -print-prog-name=as`
10241 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10242 set dummy `basename $aros_gcc_as`; ac_word=$2
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 $as_echo_n "checking for $ac_word... " >&6; }
10245 if ${ac_cv_path_aros_kernel_as+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 case $aros_kernel_as in
10249 [\\/]* | ?:[\\/]*)
10250 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in `dirname $aros_gcc_as`
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 break 2
10264 done
10265 done
10266 IFS=$as_save_IFS
10269 esac
10271 aros_kernel_as=$ac_cv_path_aros_kernel_as
10272 if test -n "$aros_kernel_as"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10274 $as_echo "$aros_kernel_as" >&6; }
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10282 if test "$aros_kernel_as" = ""; then
10283 # Extract the first word of "as", so it can be a program name with args.
10284 set dummy as; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_path_aros_kernel_as+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 case $aros_kernel_as in
10291 [\\/]* | ?:[\\/]*)
10292 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10306 done
10307 done
10308 IFS=$as_save_IFS
10311 esac
10313 aros_kernel_as=$ac_cv_path_aros_kernel_as
10314 if test -n "$aros_kernel_as"; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10316 $as_echo "$aros_kernel_as" >&6; }
10317 else
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }
10325 else
10326 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10327 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10328 set dummy $aros_kernel_as; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_path_aros_kernel_as+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 case $aros_kernel_as in
10335 [\\/]* | ?:[\\/]*)
10336 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10350 done
10351 done
10352 IFS=$as_save_IFS
10355 esac
10357 aros_kernel_as=$ac_cv_path_aros_kernel_as
10358 if test -n "$aros_kernel_as"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10360 $as_echo "$aros_kernel_as" >&6; }
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10367 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10370 req_avail=yes
10371 if test "$aros_kernel_as" = ""; then
10372 req_avail=no
10374 if test "$aros_kernel_as" = "no"; then
10375 req_avail=no
10377 if test "$req_avail" = "no"; then
10378 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10381 if test "$aros_kernel_ar" = ""; then
10382 if test "$cross_compiling" = "yes" ; then
10383 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10384 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 case $aros_kernel_ar in
10391 [\\/]* | ?:[\\/]*)
10392 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10406 done
10407 done
10408 IFS=$as_save_IFS
10411 esac
10413 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10414 if test -n "$aros_kernel_ar"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10416 $as_echo "$aros_kernel_ar" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10423 else
10424 if test "$GCC" = "yes"; then
10425 aros_gcc_ar=`$CC -print-prog-name=ar`
10426 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10427 set dummy `basename $aros_gcc_ar`; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $aros_kernel_ar in
10434 [\\/]* | ?:[\\/]*)
10435 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in `dirname $aros_gcc_ar`
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10445 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10449 done
10450 done
10451 IFS=$as_save_IFS
10454 esac
10456 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10457 if test -n "$aros_kernel_ar"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10459 $as_echo "$aros_kernel_ar" >&6; }
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10467 if test "$aros_kernel_ar" = ""; then
10468 # Extract the first word of "ar", so it can be a program name with args.
10469 set dummy ar; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 case $aros_kernel_ar in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10496 esac
10498 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10499 if test -n "$aros_kernel_ar"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10501 $as_echo "$aros_kernel_ar" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10510 else
10511 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10512 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10513 set dummy $aros_kernel_ar; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $aros_kernel_ar in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10543 if test -n "$aros_kernel_ar"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10545 $as_echo "$aros_kernel_ar" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10552 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10555 req_avail=yes
10556 if test "$aros_kernel_ar" = ""; then
10557 req_avail=no
10559 if test "$aros_kernel_ar" = "no"; then
10560 req_avail=no
10562 if test "$req_avail" = "no"; then
10563 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 if test "$aros_kernel_ranlib" = ""; then
10567 if test "$cross_compiling" = "yes" ; then
10568 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10569 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 case $aros_kernel_ranlib in
10576 [\\/]* | ?:[\\/]*)
10577 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10587 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10593 IFS=$as_save_IFS
10596 esac
10598 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10599 if test -n "$aros_kernel_ranlib"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10601 $as_echo "$aros_kernel_ranlib" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10608 else
10609 if test "$GCC" = "yes"; then
10610 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10611 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10612 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 case $aros_kernel_ranlib in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in `dirname $aros_gcc_ranlib`
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10634 done
10635 done
10636 IFS=$as_save_IFS
10639 esac
10641 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10642 if test -n "$aros_kernel_ranlib"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10644 $as_echo "$aros_kernel_ranlib" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10652 if test "$aros_kernel_ranlib" = ""; then
10653 # Extract the first word of "ranlib", so it can be a program name with args.
10654 set dummy ranlib; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 case $aros_kernel_ranlib in
10661 [\\/]* | ?:[\\/]*)
10662 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10676 done
10677 done
10678 IFS=$as_save_IFS
10681 esac
10683 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10684 if test -n "$aros_kernel_ranlib"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10686 $as_echo "$aros_kernel_ranlib" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10695 else
10696 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10697 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10698 set dummy $aros_kernel_ranlib; ac_word=$2
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703 else
10704 case $aros_kernel_ranlib in
10705 [\\/]* | ?:[\\/]*)
10706 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710 for as_dir in $PATH
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10720 done
10721 done
10722 IFS=$as_save_IFS
10725 esac
10727 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10728 if test -n "$aros_kernel_ranlib"; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10730 $as_echo "$aros_kernel_ranlib" >&6; }
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10737 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10740 req_avail=yes
10741 if test "$aros_kernel_ranlib" = ""; then
10742 req_avail=no
10744 if test "$aros_kernel_ranlib" = "no"; then
10745 req_avail=no
10747 if test "$req_avail" = "no"; then
10748 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10751 if test "$aros_kernel_nm" = ""; then
10752 if test "$cross_compiling" = "yes" ; then
10753 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10754 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 case $aros_kernel_nm in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10781 esac
10783 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10784 if test -n "$aros_kernel_nm"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10786 $as_echo "$aros_kernel_nm" >&6; }
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10793 else
10794 if test "$GCC" = "yes"; then
10795 aros_gcc_nm=`$CC -print-prog-name=nm`
10796 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10797 set dummy `basename $aros_gcc_nm`; ac_word=$2
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 case $aros_kernel_nm in
10804 [\\/]* | ?:[\\/]*)
10805 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in `dirname $aros_gcc_nm`
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10819 done
10820 done
10821 IFS=$as_save_IFS
10824 esac
10826 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10827 if test -n "$aros_kernel_nm"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10829 $as_echo "$aros_kernel_nm" >&6; }
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10837 if test "$aros_kernel_nm" = ""; then
10838 # Extract the first word of "nm", so it can be a program name with args.
10839 set dummy nm; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 case $aros_kernel_nm in
10846 [\\/]* | ?:[\\/]*)
10847 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10857 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10861 done
10862 done
10863 IFS=$as_save_IFS
10866 esac
10868 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10869 if test -n "$aros_kernel_nm"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10871 $as_echo "$aros_kernel_nm" >&6; }
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10880 else
10881 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10882 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10883 set dummy $aros_kernel_nm; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 case $aros_kernel_nm in
10890 [\\/]* | ?:[\\/]*)
10891 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10905 done
10906 done
10907 IFS=$as_save_IFS
10910 esac
10912 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10913 if test -n "$aros_kernel_nm"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10915 $as_echo "$aros_kernel_nm" >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10922 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10925 req_avail=yes
10926 if test "$aros_kernel_nm" = ""; then
10927 req_avail=no
10929 if test "$aros_kernel_nm" = "no"; then
10930 req_avail=no
10932 if test "$req_avail" = "no"; then
10933 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10936 if test "$aros_kernel_strip" = ""; then
10937 if test "$cross_compiling" = "yes" ; then
10938 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10939 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 case $aros_kernel_strip in
10946 [\\/]* | ?:[\\/]*)
10947 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10961 done
10962 done
10963 IFS=$as_save_IFS
10966 esac
10968 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10969 if test -n "$aros_kernel_strip"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10971 $as_echo "$aros_kernel_strip" >&6; }
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10978 else
10979 if test "$GCC" = "yes"; then
10980 aros_gcc_strip=`$CC -print-prog-name=strip`
10981 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10982 set dummy `basename $aros_gcc_strip`; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 case $aros_kernel_strip in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in `dirname $aros_gcc_strip`
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11004 done
11005 done
11006 IFS=$as_save_IFS
11009 esac
11011 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11012 if test -n "$aros_kernel_strip"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11014 $as_echo "$aros_kernel_strip" >&6; }
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11022 if test "$aros_kernel_strip" = ""; then
11023 # Extract the first word of "strip", so it can be a program name with args.
11024 set dummy strip; ac_word=$2
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026 $as_echo_n "checking for $ac_word... " >&6; }
11027 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 case $aros_kernel_strip in
11031 [\\/]* | ?:[\\/]*)
11032 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11042 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11046 done
11047 done
11048 IFS=$as_save_IFS
11051 esac
11053 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11054 if test -n "$aros_kernel_strip"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11056 $as_echo "$aros_kernel_strip" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11065 else
11066 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11067 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11068 set dummy $aros_kernel_strip; ac_word=$2
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11070 $as_echo_n "checking for $ac_word... " >&6; }
11071 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 case $aros_kernel_strip in
11075 [\\/]* | ?:[\\/]*)
11076 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11090 done
11091 done
11092 IFS=$as_save_IFS
11095 esac
11097 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11098 if test -n "$aros_kernel_strip"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11100 $as_echo "$aros_kernel_strip" >&6; }
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11107 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11110 req_avail=yes
11111 if test "$aros_kernel_strip" = ""; then
11112 req_avail=no
11114 if test "$aros_kernel_strip" = "no"; then
11115 req_avail=no
11117 if test "$req_avail" = "no"; then
11118 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11121 # Objcopy and objdump are not required for the kernel
11122 # toolchain on many architectures.
11123 # So we'll look for them, but not make them strictly required.
11125 if test "$aros_kernel_objcopy" = ""; then
11126 if test "$cross_compiling" = "yes" ; then
11127 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11128 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 case $aros_kernel_objcopy in
11135 [\\/]* | ?:[\\/]*)
11136 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11150 done
11151 done
11152 IFS=$as_save_IFS
11155 esac
11157 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11158 if test -n "$aros_kernel_objcopy"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11160 $as_echo "$aros_kernel_objcopy" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11167 else
11168 if test "$GCC" = "yes"; then
11169 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11170 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11171 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 case $aros_kernel_objcopy in
11178 [\\/]* | ?:[\\/]*)
11179 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in `dirname $aros_gcc_objcopy`
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11193 done
11194 done
11195 IFS=$as_save_IFS
11198 esac
11200 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11201 if test -n "$aros_kernel_objcopy"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11203 $as_echo "$aros_kernel_objcopy" >&6; }
11204 else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11211 if test "$aros_kernel_objcopy" = ""; then
11212 # Extract the first word of "objcopy", so it can be a program name with args.
11213 set dummy objcopy; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215 $as_echo_n "checking for $ac_word... " >&6; }
11216 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 case $aros_kernel_objcopy in
11220 [\\/]* | ?:[\\/]*)
11221 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11235 done
11236 done
11237 IFS=$as_save_IFS
11240 esac
11242 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11243 if test -n "$aros_kernel_objcopy"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11245 $as_echo "$aros_kernel_objcopy" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11254 else
11255 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11256 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11257 set dummy $aros_kernel_objcopy; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259 $as_echo_n "checking for $ac_word... " >&6; }
11260 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 case $aros_kernel_objcopy in
11264 [\\/]* | ?:[\\/]*)
11265 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11275 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 break 2
11279 done
11280 done
11281 IFS=$as_save_IFS
11284 esac
11286 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11287 if test -n "$aros_kernel_objcopy"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11289 $as_echo "$aros_kernel_objcopy" >&6; }
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11296 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11300 if test "$aros_kernel_objdump" = ""; then
11301 if test "$cross_compiling" = "yes" ; then
11302 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11303 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 case $aros_kernel_objdump in
11310 [\\/]* | ?:[\\/]*)
11311 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11321 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11325 done
11326 done
11327 IFS=$as_save_IFS
11330 esac
11332 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11333 if test -n "$aros_kernel_objdump"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11335 $as_echo "$aros_kernel_objdump" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11342 else
11343 if test "$GCC" = "yes"; then
11344 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11345 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11346 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 case $aros_kernel_objdump in
11353 [\\/]* | ?:[\\/]*)
11354 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in `dirname $aros_gcc_objdump`
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11368 done
11369 done
11370 IFS=$as_save_IFS
11373 esac
11375 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11376 if test -n "$aros_kernel_objdump"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11378 $as_echo "$aros_kernel_objdump" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11386 if test "$aros_kernel_objdump" = ""; then
11387 # Extract the first word of "objdump", so it can be a program name with args.
11388 set dummy objdump; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 case $aros_kernel_objdump in
11395 [\\/]* | ?:[\\/]*)
11396 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11410 done
11411 done
11412 IFS=$as_save_IFS
11415 esac
11417 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11418 if test -n "$aros_kernel_objdump"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11420 $as_echo "$aros_kernel_objdump" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11429 else
11430 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11431 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11432 set dummy $aros_kernel_objdump; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 case $aros_kernel_objdump in
11439 [\\/]* | ?:[\\/]*)
11440 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11450 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11454 done
11455 done
11456 IFS=$as_save_IFS
11459 esac
11461 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11462 if test -n "$aros_kernel_objdump"; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11464 $as_echo "$aros_kernel_objdump" >&6; }
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11471 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11474 if test "x${crosstools}" != "xyes" ; then
11475 req_avail=yes
11476 if test "$aros_kernel_objcopy" = ""; then
11477 req_avail=no
11479 if test "$aros_kernel_objcopy" = "no"; then
11480 req_avail=no
11482 if test "$req_avail" = "no"; then
11483 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11485 req_avail=yes
11486 if test "$aros_kernel_objdump" = ""; then
11487 req_avail=no
11489 if test "$aros_kernel_objdump" = "no"; then
11490 req_avail=no
11492 if test "$req_avail" = "no"; then
11493 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11499 $as_echo_n "checking which target tools to use... " >&6; }
11500 if test "$aros_target_toolchain" = "yes"; then
11501 if test "$aros_toolchain" = "llvm" ; then
11502 msg_result="llvm"
11503 else
11504 msg_result=$target_tool_prefix
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11507 $as_echo "$msg_result" >&6; }
11508 # We are building AROS crosstools
11509 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11510 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11511 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11512 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11513 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11514 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11515 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11516 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11517 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11518 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11519 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11520 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11521 else
11522 # Determine whether AROS or ELF tools should be used
11523 if test "$aros_tool_prefix" = "none"; then
11524 aros_tool_prefix="${elf_tool_prefix}"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11528 $as_echo "$aros_tool_prefix" >&6; }
11529 # We are *not* building AROS crosstools - use the AROS or ELF tools
11531 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11532 if test "$cross_compiling" = "yes" ; then
11533 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11534 set dummy ${target_tool_prefix}cpp; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if ${ac_cv_path_orig_target_cpp+:} false; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 case $orig_target_cpp in
11541 [\\/]* | ?:[\\/]*)
11542 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11556 done
11557 done
11558 IFS=$as_save_IFS
11561 esac
11563 orig_target_cpp=$ac_cv_path_orig_target_cpp
11564 if test -n "$orig_target_cpp"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11566 $as_echo "$orig_target_cpp" >&6; }
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11573 else
11574 if test "$GCC" = "yes"; then
11575 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11576 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11577 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_path_orig_target_cpp+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 case $orig_target_cpp in
11584 [\\/]* | ?:[\\/]*)
11585 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in `dirname $aros_gcc_cpp`
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 break 2
11599 done
11600 done
11601 IFS=$as_save_IFS
11604 esac
11606 orig_target_cpp=$ac_cv_path_orig_target_cpp
11607 if test -n "$orig_target_cpp"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11609 $as_echo "$orig_target_cpp" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 if test "$orig_target_cpp" = ""; then
11618 # Extract the first word of "cpp", so it can be a program name with args.
11619 set dummy cpp; ac_word=$2
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621 $as_echo_n "checking for $ac_word... " >&6; }
11622 if ${ac_cv_path_orig_target_cpp+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 case $orig_target_cpp in
11626 [\\/]* | ?:[\\/]*)
11627 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11641 done
11642 done
11643 IFS=$as_save_IFS
11646 esac
11648 orig_target_cpp=$ac_cv_path_orig_target_cpp
11649 if test -n "$orig_target_cpp"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11651 $as_echo "$orig_target_cpp" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11660 else
11661 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11662 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11663 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if ${ac_cv_path_orig_target_cpp+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 case $orig_target_cpp in
11670 [\\/]* | ?:[\\/]*)
11671 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11685 done
11686 done
11687 IFS=$as_save_IFS
11690 esac
11692 orig_target_cpp=$ac_cv_path_orig_target_cpp
11693 if test -n "$orig_target_cpp"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11695 $as_echo "$orig_target_cpp" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11702 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11705 req_avail=yes
11706 if test "$orig_target_cpp" = ""; then
11707 req_avail=no
11709 if test "$orig_target_cpp" = "no"; then
11710 req_avail=no
11712 if test "$req_avail" = "no"; then
11713 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11716 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11717 if test "$cross_compiling" = "yes" ; then
11718 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11719 set dummy ${target_tool_prefix}gcc; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_orig_target_cc+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 case $orig_target_cc in
11726 [\\/]* | ?:[\\/]*)
11727 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11746 esac
11748 orig_target_cc=$ac_cv_path_orig_target_cc
11749 if test -n "$orig_target_cc"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11751 $as_echo "$orig_target_cc" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11758 else
11759 if test "$GCC" = "yes"; then
11760 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11761 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11762 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_path_orig_target_cc+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 case $orig_target_cc in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in `dirname $aros_gcc_gcc`
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11789 esac
11791 orig_target_cc=$ac_cv_path_orig_target_cc
11792 if test -n "$orig_target_cc"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11794 $as_echo "$orig_target_cc" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11802 if test "$orig_target_cc" = ""; then
11803 # Extract the first word of "gcc", so it can be a program name with args.
11804 set dummy gcc; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if ${ac_cv_path_orig_target_cc+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 case $orig_target_cc in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11826 done
11827 done
11828 IFS=$as_save_IFS
11831 esac
11833 orig_target_cc=$ac_cv_path_orig_target_cc
11834 if test -n "$orig_target_cc"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11836 $as_echo "$orig_target_cc" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11845 else
11846 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11847 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11848 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_path_orig_target_cc+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 case $orig_target_cc in
11855 [\\/]* | ?:[\\/]*)
11856 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11866 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11870 done
11871 done
11872 IFS=$as_save_IFS
11875 esac
11877 orig_target_cc=$ac_cv_path_orig_target_cc
11878 if test -n "$orig_target_cc"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11880 $as_echo "$orig_target_cc" >&6; }
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11887 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11890 req_avail=yes
11891 if test "$orig_target_cc" = ""; then
11892 req_avail=no
11894 if test "$orig_target_cc" = "no"; then
11895 req_avail=no
11897 if test "$req_avail" = "no"; then
11898 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11901 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11902 if test "$cross_compiling" = "yes" ; then
11903 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11904 set dummy ${target_tool_prefix}g++; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if ${ac_cv_path_orig_target_cxx+:} false; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 case $orig_target_cxx in
11911 [\\/]* | ?:[\\/]*)
11912 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11926 done
11927 done
11928 IFS=$as_save_IFS
11931 esac
11933 orig_target_cxx=$ac_cv_path_orig_target_cxx
11934 if test -n "$orig_target_cxx"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11936 $as_echo "$orig_target_cxx" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11943 else
11944 if test "$GCC" = "yes"; then
11945 aros_gcc_g++=`$CC -print-prog-name=g++`
11946 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11947 set dummy `basename $aros_gcc_g++`; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_orig_target_cxx+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $orig_target_cxx in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in `dirname $aros_gcc_g++`
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11974 esac
11976 orig_target_cxx=$ac_cv_path_orig_target_cxx
11977 if test -n "$orig_target_cxx"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11979 $as_echo "$orig_target_cxx" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11987 if test "$orig_target_cxx" = ""; then
11988 # Extract the first word of "g++", so it can be a program name with args.
11989 set dummy g++; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_path_orig_target_cxx+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 case $orig_target_cxx in
11996 [\\/]* | ?:[\\/]*)
11997 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12011 done
12012 done
12013 IFS=$as_save_IFS
12016 esac
12018 orig_target_cxx=$ac_cv_path_orig_target_cxx
12019 if test -n "$orig_target_cxx"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12021 $as_echo "$orig_target_cxx" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12030 else
12031 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
12032 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
12033 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_path_orig_target_cxx+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 case $orig_target_cxx in
12040 [\\/]* | ?:[\\/]*)
12041 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12055 done
12056 done
12057 IFS=$as_save_IFS
12060 esac
12062 orig_target_cxx=$ac_cv_path_orig_target_cxx
12063 if test -n "$orig_target_cxx"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12065 $as_echo "$orig_target_cxx" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12072 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12075 req_avail=yes
12076 if test "$orig_target_cxx" = ""; then
12077 req_avail=no
12079 if test "$orig_target_cxx" = "no"; then
12080 req_avail=no
12082 if test "$req_avail" = "no"; then
12083 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12086 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12087 if test "$cross_compiling" = "yes" ; then
12088 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12089 set dummy ${target_tool_prefix}gcc; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_path_orig_target_ld+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 case $orig_target_ld in
12096 [\\/]* | ?:[\\/]*)
12097 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 break 2
12111 done
12112 done
12113 IFS=$as_save_IFS
12116 esac
12118 orig_target_ld=$ac_cv_path_orig_target_ld
12119 if test -n "$orig_target_ld"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12121 $as_echo "$orig_target_ld" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12128 else
12129 if test "$GCC" = "yes"; then
12130 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12131 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12132 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if ${ac_cv_path_orig_target_ld+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 case $orig_target_ld in
12139 [\\/]* | ?:[\\/]*)
12140 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in `dirname $aros_gcc_gcc`
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12154 done
12155 done
12156 IFS=$as_save_IFS
12159 esac
12161 orig_target_ld=$ac_cv_path_orig_target_ld
12162 if test -n "$orig_target_ld"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12164 $as_echo "$orig_target_ld" >&6; }
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12172 if test "$orig_target_ld" = ""; then
12173 # Extract the first word of "gcc", so it can be a program name with args.
12174 set dummy gcc; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_path_orig_target_ld+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 case $orig_target_ld in
12181 [\\/]* | ?:[\\/]*)
12182 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12192 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12196 done
12197 done
12198 IFS=$as_save_IFS
12201 esac
12203 orig_target_ld=$ac_cv_path_orig_target_ld
12204 if test -n "$orig_target_ld"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12206 $as_echo "$orig_target_ld" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12215 else
12216 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12217 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12218 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220 $as_echo_n "checking for $ac_word... " >&6; }
12221 if ${ac_cv_path_orig_target_ld+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 case $orig_target_ld in
12225 [\\/]* | ?:[\\/]*)
12226 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12236 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12240 done
12241 done
12242 IFS=$as_save_IFS
12245 esac
12247 orig_target_ld=$ac_cv_path_orig_target_ld
12248 if test -n "$orig_target_ld"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12250 $as_echo "$orig_target_ld" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12257 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12260 req_avail=yes
12261 if test "$orig_target_ld" = ""; then
12262 req_avail=no
12264 if test "$orig_target_ld" = "no"; then
12265 req_avail=no
12267 if test "$req_avail" = "no"; then
12268 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12271 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12272 if test "$cross_compiling" = "yes" ; then
12273 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12274 set dummy ${target_tool_prefix}as; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if ${ac_cv_path_orig_target_as+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 case $orig_target_as in
12281 [\\/]* | ?:[\\/]*)
12282 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12296 done
12297 done
12298 IFS=$as_save_IFS
12301 esac
12303 orig_target_as=$ac_cv_path_orig_target_as
12304 if test -n "$orig_target_as"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12306 $as_echo "$orig_target_as" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12313 else
12314 if test "$GCC" = "yes"; then
12315 aros_gcc_as=`$CC -print-prog-name=as`
12316 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12317 set dummy `basename $aros_gcc_as`; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_path_orig_target_as+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 case $orig_target_as in
12324 [\\/]* | ?:[\\/]*)
12325 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in `dirname $aros_gcc_as`
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12339 done
12340 done
12341 IFS=$as_save_IFS
12344 esac
12346 orig_target_as=$ac_cv_path_orig_target_as
12347 if test -n "$orig_target_as"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12349 $as_echo "$orig_target_as" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12357 if test "$orig_target_as" = ""; then
12358 # Extract the first word of "as", so it can be a program name with args.
12359 set dummy as; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_path_orig_target_as+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 case $orig_target_as in
12366 [\\/]* | ?:[\\/]*)
12367 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12377 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 break 2
12381 done
12382 done
12383 IFS=$as_save_IFS
12386 esac
12388 orig_target_as=$ac_cv_path_orig_target_as
12389 if test -n "$orig_target_as"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12391 $as_echo "$orig_target_as" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12400 else
12401 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12402 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12403 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_path_orig_target_as+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 case $orig_target_as in
12410 [\\/]* | ?:[\\/]*)
12411 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12421 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12425 done
12426 done
12427 IFS=$as_save_IFS
12430 esac
12432 orig_target_as=$ac_cv_path_orig_target_as
12433 if test -n "$orig_target_as"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12435 $as_echo "$orig_target_as" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12442 orig_target_as="$orig_target_as $ac_tool_optarg"
12445 req_avail=yes
12446 if test "$orig_target_as" = ""; then
12447 req_avail=no
12449 if test "$orig_target_as" = "no"; then
12450 req_avail=no
12452 if test "$req_avail" = "no"; then
12453 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12456 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12457 if test "$cross_compiling" = "yes" ; then
12458 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12459 set dummy ${target_tool_prefix}ar; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_path_orig_target_ar+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 case $orig_target_ar in
12466 [\\/]* | ?:[\\/]*)
12467 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12481 done
12482 done
12483 IFS=$as_save_IFS
12486 esac
12488 orig_target_ar=$ac_cv_path_orig_target_ar
12489 if test -n "$orig_target_ar"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12491 $as_echo "$orig_target_ar" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12498 else
12499 if test "$GCC" = "yes"; then
12500 aros_gcc_ar=`$CC -print-prog-name=ar`
12501 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12502 set dummy `basename $aros_gcc_ar`; ac_word=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if ${ac_cv_path_orig_target_ar+:} false; then :
12506 $as_echo_n "(cached) " >&6
12507 else
12508 case $orig_target_ar in
12509 [\\/]* | ?:[\\/]*)
12510 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in `dirname $aros_gcc_ar`
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12520 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12522 break 2
12524 done
12525 done
12526 IFS=$as_save_IFS
12529 esac
12531 orig_target_ar=$ac_cv_path_orig_target_ar
12532 if test -n "$orig_target_ar"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12534 $as_echo "$orig_target_ar" >&6; }
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12542 if test "$orig_target_ar" = ""; then
12543 # Extract the first word of "ar", so it can be a program name with args.
12544 set dummy ar; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_path_orig_target_ar+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 case $orig_target_ar in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12566 done
12567 done
12568 IFS=$as_save_IFS
12571 esac
12573 orig_target_ar=$ac_cv_path_orig_target_ar
12574 if test -n "$orig_target_ar"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12576 $as_echo "$orig_target_ar" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12585 else
12586 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12587 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12588 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if ${ac_cv_path_orig_target_ar+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 case $orig_target_ar in
12595 [\\/]* | ?:[\\/]*)
12596 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600 for as_dir in $PATH
12602 IFS=$as_save_IFS
12603 test -z "$as_dir" && as_dir=.
12604 for ac_exec_ext in '' $ac_executable_extensions; do
12605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12606 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 break 2
12610 done
12611 done
12612 IFS=$as_save_IFS
12615 esac
12617 orig_target_ar=$ac_cv_path_orig_target_ar
12618 if test -n "$orig_target_ar"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12620 $as_echo "$orig_target_ar" >&6; }
12621 else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12627 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12630 req_avail=yes
12631 if test "$orig_target_ar" = ""; then
12632 req_avail=no
12634 if test "$orig_target_ar" = "no"; then
12635 req_avail=no
12637 if test "$req_avail" = "no"; then
12638 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12641 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12642 if test "$cross_compiling" = "yes" ; then
12643 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12644 set dummy ${target_tool_prefix}ar; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $orig_target_ranlib in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12671 esac
12673 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12674 if test -n "$orig_target_ranlib"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12676 $as_echo "$orig_target_ranlib" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12683 else
12684 if test "$GCC" = "yes"; then
12685 aros_gcc_ar=`$CC -print-prog-name=ar`
12686 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12687 set dummy `basename $aros_gcc_ar`; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 case $orig_target_ranlib in
12694 [\\/]* | ?:[\\/]*)
12695 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in `dirname $aros_gcc_ar`
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
12704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 break 2
12709 done
12710 done
12711 IFS=$as_save_IFS
12714 esac
12716 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12717 if test -n "$orig_target_ranlib"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12719 $as_echo "$orig_target_ranlib" >&6; }
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12727 if test "$orig_target_ranlib" = ""; then
12728 # Extract the first word of "ar", so it can be a program name with args.
12729 set dummy ar; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 case $orig_target_ranlib in
12736 [\\/]* | ?:[\\/]*)
12737 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12751 done
12752 done
12753 IFS=$as_save_IFS
12756 esac
12758 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12759 if test -n "$orig_target_ranlib"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12761 $as_echo "$orig_target_ranlib" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12770 else
12771 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12772 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12773 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 case $orig_target_ranlib in
12780 [\\/]* | ?:[\\/]*)
12781 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12795 done
12796 done
12797 IFS=$as_save_IFS
12800 esac
12802 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12803 if test -n "$orig_target_ranlib"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12805 $as_echo "$orig_target_ranlib" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12812 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12815 req_avail=yes
12816 if test "$orig_target_ranlib" = ""; then
12817 req_avail=no
12819 if test "$orig_target_ranlib" = "no"; then
12820 req_avail=no
12822 if test "$req_avail" = "no"; then
12823 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12826 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12827 if test "$cross_compiling" = "yes" ; then
12828 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12829 set dummy ${target_tool_prefix}nm; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_path_orig_target_nm+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 case $orig_target_nm in
12836 [\\/]* | ?:[\\/]*)
12837 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12856 esac
12858 orig_target_nm=$ac_cv_path_orig_target_nm
12859 if test -n "$orig_target_nm"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12861 $as_echo "$orig_target_nm" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12868 else
12869 if test "$GCC" = "yes"; then
12870 aros_gcc_nm=`$CC -print-prog-name=nm`
12871 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12872 set dummy `basename $aros_gcc_nm`; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if ${ac_cv_path_orig_target_nm+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 case $orig_target_nm in
12879 [\\/]* | ?:[\\/]*)
12880 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in `dirname $aros_gcc_nm`
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12894 done
12895 done
12896 IFS=$as_save_IFS
12899 esac
12901 orig_target_nm=$ac_cv_path_orig_target_nm
12902 if test -n "$orig_target_nm"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12904 $as_echo "$orig_target_nm" >&6; }
12905 else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12912 if test "$orig_target_nm" = ""; then
12913 # Extract the first word of "nm", so it can be a program name with args.
12914 set dummy nm; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if ${ac_cv_path_orig_target_nm+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 case $orig_target_nm in
12921 [\\/]* | ?:[\\/]*)
12922 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12936 done
12937 done
12938 IFS=$as_save_IFS
12941 esac
12943 orig_target_nm=$ac_cv_path_orig_target_nm
12944 if test -n "$orig_target_nm"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12946 $as_echo "$orig_target_nm" >&6; }
12947 else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12955 else
12956 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12957 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12958 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_path_orig_target_nm+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 case $orig_target_nm in
12965 [\\/]* | ?:[\\/]*)
12966 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12976 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12980 done
12981 done
12982 IFS=$as_save_IFS
12985 esac
12987 orig_target_nm=$ac_cv_path_orig_target_nm
12988 if test -n "$orig_target_nm"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12990 $as_echo "$orig_target_nm" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12997 orig_target_nm="$orig_target_nm $ac_tool_optarg"
13000 req_avail=yes
13001 if test "$orig_target_nm" = ""; then
13002 req_avail=no
13004 if test "$orig_target_nm" = "no"; then
13005 req_avail=no
13007 if test "$req_avail" = "no"; then
13008 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
13011 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
13012 if test "$cross_compiling" = "yes" ; then
13013 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
13014 set dummy ${target_tool_prefix}strip; ac_word=$2
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016 $as_echo_n "checking for $ac_word... " >&6; }
13017 if ${ac_cv_path_orig_target_strip+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 case $orig_target_strip in
13021 [\\/]* | ?:[\\/]*)
13022 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13032 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13036 done
13037 done
13038 IFS=$as_save_IFS
13041 esac
13043 orig_target_strip=$ac_cv_path_orig_target_strip
13044 if test -n "$orig_target_strip"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13046 $as_echo "$orig_target_strip" >&6; }
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }
13053 else
13054 if test "$GCC" = "yes"; then
13055 aros_gcc_strip=`$CC -print-prog-name=strip`
13056 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13057 set dummy `basename $aros_gcc_strip`; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if ${ac_cv_path_orig_target_strip+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 case $orig_target_strip in
13064 [\\/]* | ?:[\\/]*)
13065 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in `dirname $aros_gcc_strip`
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13075 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13079 done
13080 done
13081 IFS=$as_save_IFS
13084 esac
13086 orig_target_strip=$ac_cv_path_orig_target_strip
13087 if test -n "$orig_target_strip"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13089 $as_echo "$orig_target_strip" >&6; }
13090 else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13097 if test "$orig_target_strip" = ""; then
13098 # Extract the first word of "strip", so it can be a program name with args.
13099 set dummy strip; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if ${ac_cv_path_orig_target_strip+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 case $orig_target_strip in
13106 [\\/]* | ?:[\\/]*)
13107 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13126 esac
13128 orig_target_strip=$ac_cv_path_orig_target_strip
13129 if test -n "$orig_target_strip"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13131 $as_echo "$orig_target_strip" >&6; }
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13140 else
13141 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13142 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13143 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if ${ac_cv_path_orig_target_strip+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 case $orig_target_strip in
13150 [\\/]* | ?:[\\/]*)
13151 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13157 IFS=$as_save_IFS
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 break 2
13165 done
13166 done
13167 IFS=$as_save_IFS
13170 esac
13172 orig_target_strip=$ac_cv_path_orig_target_strip
13173 if test -n "$orig_target_strip"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13175 $as_echo "$orig_target_strip" >&6; }
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13182 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13185 req_avail=yes
13186 if test "$orig_target_strip" = ""; then
13187 req_avail=no
13189 if test "$orig_target_strip" = "no"; then
13190 req_avail=no
13192 if test "$req_avail" = "no"; then
13193 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13196 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13197 if test "$cross_compiling" = "yes" ; then
13198 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13199 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 case $orig_target_objcopy in
13206 [\\/]* | ?:[\\/]*)
13207 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13221 done
13222 done
13223 IFS=$as_save_IFS
13226 esac
13228 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13229 if test -n "$orig_target_objcopy"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13231 $as_echo "$orig_target_objcopy" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13238 else
13239 if test "$GCC" = "yes"; then
13240 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13241 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13242 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13244 $as_echo_n "checking for $ac_word... " >&6; }
13245 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 case $orig_target_objcopy in
13249 [\\/]* | ?:[\\/]*)
13250 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in `dirname $aros_gcc_objcopy`
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13264 done
13265 done
13266 IFS=$as_save_IFS
13269 esac
13271 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13272 if test -n "$orig_target_objcopy"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13274 $as_echo "$orig_target_objcopy" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13282 if test "$orig_target_objcopy" = ""; then
13283 # Extract the first word of "objcopy", so it can be a program name with args.
13284 set dummy objcopy; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 case $orig_target_objcopy in
13291 [\\/]* | ?:[\\/]*)
13292 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13306 done
13307 done
13308 IFS=$as_save_IFS
13311 esac
13313 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13314 if test -n "$orig_target_objcopy"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13316 $as_echo "$orig_target_objcopy" >&6; }
13317 else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13325 else
13326 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13327 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13328 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 case $orig_target_objcopy in
13335 [\\/]* | ?:[\\/]*)
13336 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in $PATH
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
13345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13346 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13350 done
13351 done
13352 IFS=$as_save_IFS
13355 esac
13357 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13358 if test -n "$orig_target_objcopy"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13360 $as_echo "$orig_target_objcopy" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13367 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13370 req_avail=yes
13371 if test "$orig_target_objcopy" = ""; then
13372 req_avail=no
13374 if test "$orig_target_objcopy" = "no"; then
13375 req_avail=no
13377 if test "$req_avail" = "no"; then
13378 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13381 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13382 if test "$cross_compiling" = "yes" ; then
13383 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13384 set dummy ${target_tool_prefix}objdump; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_path_orig_target_objdump+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 case $orig_target_objdump in
13391 [\\/]* | ?:[\\/]*)
13392 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 break 2
13406 done
13407 done
13408 IFS=$as_save_IFS
13411 esac
13413 orig_target_objdump=$ac_cv_path_orig_target_objdump
13414 if test -n "$orig_target_objdump"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13416 $as_echo "$orig_target_objdump" >&6; }
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13423 else
13424 if test "$GCC" = "yes"; then
13425 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13426 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13427 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if ${ac_cv_path_orig_target_objdump+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 case $orig_target_objdump in
13434 [\\/]* | ?:[\\/]*)
13435 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439 for as_dir in `dirname $aros_gcc_objdump`
13441 IFS=$as_save_IFS
13442 test -z "$as_dir" && as_dir=.
13443 for ac_exec_ext in '' $ac_executable_extensions; do
13444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13445 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447 break 2
13449 done
13450 done
13451 IFS=$as_save_IFS
13454 esac
13456 orig_target_objdump=$ac_cv_path_orig_target_objdump
13457 if test -n "$orig_target_objdump"; then
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13459 $as_echo "$orig_target_objdump" >&6; }
13460 else
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13467 if test "$orig_target_objdump" = ""; then
13468 # Extract the first word of "objdump", so it can be a program name with args.
13469 set dummy objdump; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if ${ac_cv_path_orig_target_objdump+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 case $orig_target_objdump in
13476 [\\/]* | ?:[\\/]*)
13477 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13487 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489 break 2
13491 done
13492 done
13493 IFS=$as_save_IFS
13496 esac
13498 orig_target_objdump=$ac_cv_path_orig_target_objdump
13499 if test -n "$orig_target_objdump"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13501 $as_echo "$orig_target_objdump" >&6; }
13502 else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13510 else
13511 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13512 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13513 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_path_orig_target_objdump+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 case $orig_target_objdump in
13520 [\\/]* | ?:[\\/]*)
13521 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525 for as_dir in $PATH
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13531 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13535 done
13536 done
13537 IFS=$as_save_IFS
13540 esac
13542 orig_target_objdump=$ac_cv_path_orig_target_objdump
13543 if test -n "$orig_target_objdump"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13545 $as_echo "$orig_target_objdump" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13552 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13555 req_avail=yes
13556 if test "$orig_target_objdump" = ""; then
13557 req_avail=no
13559 if test "$orig_target_objdump" = "no"; then
13560 req_avail=no
13562 if test "$req_avail" = "no"; then
13563 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13567 if test "$kernel_tool_prefix" = "none" ; then
13568 # No kernel tools specified
13569 # Assume target tools == kernel tools with ELF wrapper
13570 aros_kernel_cc=$orig_target_cc
13571 aros_kernel_cxx=$orig_target_cxx
13572 aros_kernel_cpp=$orig_target_cpp
13573 aros_kernel_ld=$orig_target_ld
13574 aros_kernel_as=$orig_target_as
13575 aros_kernel_ar=$orig_target_ar
13576 aros_kernel_ranlib=$orig_target_ranlib
13577 aros_kernel_nm=$orig_target_nm
13578 aros_kernel_strip=$orig_target_strip
13579 aros_kernel_objcopy=$orig_target_objcopy
13580 aros_kernel_objdump=$orig_target_objdump
13581 use_kernel_cc_wrapper=yes
13584 # At this point, all aros_kernel_* and aros_target_*
13585 # tools should be set up correctly
13587 CC="$aros_kernel_cc $kernel_tool_flags"
13588 CPP="$aros_kernel_cpp"
13590 #-----------------------------------------------------------------------------
13592 # Find all the tools we need to compile. This could be cross-compiling
13593 # though! If that is the case we use the GNU form of the target and
13594 # simply add this to the front of the binary name. This is rather simple,
13595 # but it should work under most circumstances.
13597 # The default tools are to use the same as the host, but only if the
13598 # host and target CPU are the same. With GCC this is normally enough.
13601 aros_cc_pre=""
13602 aros_shared_ld="$aros_host_ld"
13604 aros_target_mkdep="$aros_host_mkdep"
13606 # The default tools executables to be linked to.
13607 if test "$rescomp" != ""; then
13608 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13609 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 case $aros_kernel_rescomp in
13616 [\\/]* | ?:[\\/]*)
13617 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13623 IFS=$as_save_IFS
13624 test -z "$as_dir" && as_dir=.
13625 for ac_exec_ext in '' $ac_executable_extensions; do
13626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13627 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13629 break 2
13631 done
13632 done
13633 IFS=$as_save_IFS
13636 esac
13638 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13639 if test -n "$aros_kernel_rescomp"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13641 $as_echo "$aros_kernel_rescomp" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13648 req_avail=yes
13649 if test "$aros_kernel_rescomp" = ""; then
13650 req_avail=no
13652 if test "$aros_kernel_rescomp" = "no"; then
13653 req_avail=no
13655 if test "$req_avail" = "no"; then
13656 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13660 # Set up the sources for the symlink farm
13661 if test "$crosstools" = "yes"; then
13662 crosstools_target=tools-crosstools
13665 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13666 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13668 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13669 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13670 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Developer/include/aros"
13671 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13672 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13673 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13674 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13676 # aros_cc_pre is a variable that is added to the front of the compiler name
13677 # in the generated aros-gcc shell script. We need this to enable the cache
13678 # to work across cleaned builds. Also, support DISTCC using the correct
13679 # environment variable.
13682 if test "x${DISTCC}" != "x" ; then
13683 if test "x${CCACHE}" != "x" ; then
13684 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13685 else
13686 aros_cc_pre="${DISTCC} "
13688 else
13689 if test "x${CCACHE}" != "x" ; then
13690 aros_cc_pre="${CCACHE} "
13694 aros_target_nostdinc_cflags=-nostdinc
13696 aros_target_nostartup_ldflags=-nostartfiles
13698 aros_target_nix_ldflags=-nix
13700 aros_target_detach_ldflags=-detach
13702 aros_target_nostdlib_ldflags=-nostdlib
13705 # Target tools
13707 if test "$aros_target_toolchain" != "yes"; then
13708 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13709 if test "$GCC" = "yes"; then
13710 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13712 else
13713 # We do not know which c compiler version we are going to build and what we need to know
13714 # here is different for different versions so this will be set later during the
13715 # build of crosstools.
13716 if test "$aros_toolchain" = "gnu" ; then
13717 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13718 elif test "$aros_toolchain" = "llvm" ; then
13719 prefix="$AROS_CROSSTOOLSDIR/bin/"
13721 aros_target_cc_path=@aros_target_cc_path@
13723 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13724 aros_target_cc="${prefix}${toolchain_c_compiler}"
13725 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13726 aros_target_as="${prefix}${toolchain_as}"
13727 if test "${use_ld_wrapper}" = "yes"; then
13728 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13729 else
13730 aros_target_ld="${prefix}${toolchain_ld}"
13732 aros_toolchain_ld="${prefix}${toolchain_ld}"
13734 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13735 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13736 aros_target_objdump="${prefix}${toolchain_objdump}"
13737 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13738 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13739 aros_target_strip="${prefix}${toolchain_strip}"
13740 aros_plain_nm="${prefix}${toolchain_nm}"
13741 aros_plain_ar="${prefix}${toolchain_ar}"
13743 # Check whether --enable-includes was given.
13744 if test "${enable_includes+set}" = set; then :
13745 enableval=$enable_includes; aros_target_incl=$enable_includes
13746 else
13747 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13751 if test "$aros_kernel_includes" = ""; then
13752 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13753 aros_kernel_includes="-isystem $aros_target_incl"
13757 if test "$aros_kernel_includes" != "" ; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13759 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13760 if test "$aros_kernel_cc_includes" = "" ; then
13761 # Try to guess where the directory is.
13762 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13763 if test -d $aros_kernel_cc_includes; then
13764 # Check if there is also an include-fixed directory and add it
13765 # to kernel compiler's include path as it may contain some of
13766 # the headers we need.
13767 if test -d "$aros_kernel_cc_includes"-fixed; then
13768 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13770 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13771 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13772 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13774 else
13775 # The directory doesn't exist, we need to do some more work.
13776 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13778 # These are the headers we're looking for.
13779 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13780 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13781 zutil.h stdint.h"
13783 dirs=
13784 for h in $headers; do
13785 # Which other headers are needed by each of the above?
13786 deps=$(echo "#include <$h>" | \
13787 $aros_kernel_cc -E -M - 2>/dev/null | \
13788 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13790 # Copy all the needed headers to a directory beneath gendir.
13791 for d in $deps; do
13792 h=$(basename $d)
13793 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13794 sed -n "s,^.*/include\(/.*\),\1,p")
13795 ! test -d $dir && mkdir -p $dir
13796 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13797 done
13798 done
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13802 $as_echo "$aros_kernel_cc_includes" >&6; }
13803 # Adding -nostdinc to kernel includes as they are always used together.
13804 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13807 if test "$crosstools" != "yes"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13809 $as_echo_n "checking for the target compiler's include path... " >&6; }
13810 if test "$aros_target_cc_includes" = "" ; then
13811 #try to guess where the directory is
13812 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13813 if ! test -d $aros_target_cc_includes; then
13814 #the directory doesn't exist, we need to do some more work
13815 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13817 #these are the headers we're looking for
13818 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13819 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13820 zutil.h"
13822 dirs=
13823 for h in $headers; do
13824 #which other headers each of the above headers needs?
13825 deps=$(echo "#include <$h>" | \
13826 $orig_target_cc -E -M - 2>/dev/null | \
13827 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13829 #copy all the needed headers to a directory beneath gendir
13830 for d in $deps; do
13831 h=$(basename $d)
13832 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13833 sed -n "s,^.*/include\(/.*\),\1,p")
13834 ! test -d $dir && mkdir -p $dir
13835 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13836 done
13837 done
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13841 $as_echo "$aros_target_cc_includes" >&6; }
13842 else
13843 # We do not know which c compiler version we are going to build and what we need to know
13844 # here is different for different versions so this will be set later during the
13845 # build of crosstools.
13846 aros_target_cc_includes=@aros_target_cc_includes@
13850 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13851 # On GCC >= 4.0 -iquote should be used
13854 save_cc="$CC"
13855 save_cflags="$CFLAGS"
13856 CFLAGS="-iquote."
13857 kernel_cflags_iquote=$host_cflags_iquote
13858 kernel_cflags_iquote_end=$host_cflags_iquote_end
13859 if test "x-$cross_compiling" = "x-yes"; then
13860 CC="$aros_kernel_cc"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13862 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13863 if test "x-$crosstools" != "x-yes"; then
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13868 main ()
13872 return 0;
13874 _ACEOF
13875 if ac_fn_c_try_compile "$LINENO"; then :
13876 use_no_stack_protector="yes"
13877 else
13878 use_no_stack_protector="no"
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 else
13882 # we do know it is supported for the smallest version of gcc we are going to build
13883 # we assume it's also supported by later versions
13884 use_no_stack_protector=yes
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13887 $as_echo "$use_no_stack_protector" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13889 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13890 if test "x-$crosstools" != "x-yes"; then
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13895 main ()
13899 return 0;
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 has_iquote="yes"
13904 else
13905 has_iquote="no"
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 else
13909 # we do know it is supported for the smallest version of gcc we are going to build
13910 # we assume it's also supported by later versions
13911 has_iquote=yes
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13914 $as_echo "$has_iquote" >&6; }
13915 if test "x-$has_iquote" = "x-yes" ; then
13916 kernel_cflags_iquote=-iquote
13917 kernel_cflags_iquote_end=
13918 else
13919 kernel_cflags_iquote=-I
13920 kernel_cflags_iquote_end=-I-
13923 if test "x-$use_no_stack_protector" = "x-yes" ; then
13924 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13927 #-----------------------------------------------------------------------------
13929 # Check if we can explicitly choose older version of symbol hashing
13931 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13932 CC="$aros_kernel_cc"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13934 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13939 main ()
13943 return 0;
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 use_hash_style="yes"
13948 else
13949 use_hash_style="no"
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13954 $as_echo "$use_hash_style" >&6; }
13955 if test "x-$use_hash_style" = "x-yes" ; then
13956 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13958 CC="$save_cc"
13959 CFLAGS="$save_cflags"
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13968 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13970 # Check whether --with-resolution was given.
13971 if test "${with_resolution+set}" = set; then :
13972 withval=$with_resolution; resolution=$withval
13973 else
13974 resolution=none
13977 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13978 if test "$resolution" = "yes" ; then
13979 resolution="none"
13981 if test "$resolution" = "no" ; then
13982 resolution="none"
13984 if test "$resolution" != "none" ; then
13985 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13986 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13987 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13990 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13991 aros_cv_nominal_width=$aros_nominal_width
13992 aros_cv_nominal_height=$aros_nominal_height
13993 aros_cv_nominal_depth=$aros_nominal_depth
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13996 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13998 # Check whether --with-serial-debug was given.
13999 if test "${with_serial_debug+set}" = set; then :
14000 withval=$with_serial_debug; serial_debug=$withval
14001 else
14002 serial_debug=none
14005 if test "$aros_serial_debug" = 0 ; then
14006 serial_debug_forced=""
14007 if test "$serial_debug" = "yes" ; then
14008 serial_debug="1"
14010 if test "$serial_debug" = "no" ; then
14011 serial_debug="none"
14013 else
14014 serial_debug_forced="(forced)"
14015 serial_debug=$aros_serial_debug
14017 if test "$serial_debug" != "none" ; then
14018 aros_serial_debug=$serial_debug
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
14020 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
14027 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
14028 # Check whether --enable-palm_debug_hack was given.
14029 if test "${enable_palm_debug_hack+set}" = set; then :
14030 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
14031 else
14032 palm_debug_hack="no"
14035 if test "$palm_debug_hack" = "yes" ; then
14036 aros_palm_debug_hack="1"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14039 $as_echo "$palm_debug_hack" >&6; }
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14042 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14043 # Check whether --enable-usb30_code was given.
14044 if test "${enable_usb30_code+set}" = set; then :
14045 enableval=$enable_usb30_code; usb30_code="yes"
14046 else
14047 usb30_code="no"
14050 if test "$usb30_code" = "yes" ; then
14051 aros_config_cppflags="$aros_config_cppflags -DAROS_USB30_CODE"
14052 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14055 $as_echo "$usb30_code" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14058 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14059 # Check whether --enable-nesting_supervisor was given.
14060 if test "${enable_nesting_supervisor+set}" = set; then :
14061 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14062 else
14063 nesting_supervisor="no"
14066 if test "$nesting_supervisor" = "yes" ; then
14067 aros_nesting_supervisor="1"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14070 $as_echo "$nesting_supervisor" >&6; }
14072 if test "$aros_enable_mmu" = "" ; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14074 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14075 # Check whether --enable-mmu was given.
14076 if test "${enable_mmu+set}" = set; then :
14077 enableval=$enable_mmu; aros_enable_mmu=$enableval
14078 else
14079 aros_enable_mmu="yes"
14082 if test "$aros_enable_mmu" = "" ; then
14083 aros_enable_mmu="yes"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14086 $as_echo "$aros_enable_mmu" >&6; }
14088 if test "$aros_enable_mmu" = "no" ; then
14089 aros_enable_mmu="0"
14090 else
14091 aros_enable_mmu="1"
14095 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14097 if test "x-$need_dlopen" != "x-no" ; then
14098 save_libs="$LIBS"
14099 LIBS=""
14100 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14101 if test "x$ac_cv_func_dlopen" = xyes; then :
14102 have_dl="yes"
14103 else
14104 have_dl="no"
14107 if test "x-$have_dl" = "x-no" ; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14110 if ${ac_cv_lib_dl_dlopen+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 ac_check_lib_save_LIBS=$LIBS
14114 LIBS="-ldl $LIBS"
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14118 /* Override any GCC internal prototype to avoid an error.
14119 Use char because int might match the return type of a GCC
14120 builtin and then its argument prototype would still apply. */
14121 #ifdef __cplusplus
14122 extern "C"
14123 #endif
14124 char dlopen ();
14126 main ()
14128 return dlopen ();
14130 return 0;
14132 _ACEOF
14133 if ac_fn_c_try_link "$LINENO"; then :
14134 ac_cv_lib_dl_dlopen=yes
14135 else
14136 ac_cv_lib_dl_dlopen=no
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14144 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14145 have_dl="yes"
14146 aros_host_ldflags="$aros_host_ldflags -ldl"
14147 else
14148 have_dl="no"
14152 if test "x-$have_dl" = "x-no" ; then
14153 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14155 LIBS="$save_libs"
14159 # Check whether --enable-x11_hidd was given.
14160 if test "${enable_x11_hidd+set}" = set; then :
14161 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14162 else
14163 x11_hidd="$need_x11"
14166 case "x-$x11_hidd" in
14167 x-yes|x-no|x-auto) ;;
14168 *) x11_hidd="$need_x11" ;;
14169 esac
14171 ENABLE_X11=0
14173 if test "x-$x11_hidd" != "x-no" ; then
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14176 $as_echo_n "checking for X... " >&6; }
14179 # Check whether --with-x was given.
14180 if test "${with_x+set}" = set; then :
14181 withval=$with_x;
14184 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14185 if test "x$with_x" = xno; then
14186 # The user explicitly disabled X.
14187 have_x=disabled
14188 else
14189 case $x_includes,$x_libraries in #(
14190 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14191 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 # One or both of the vars are not set, and there is no cached value.
14195 ac_x_includes=no ac_x_libraries=no
14196 rm -f -r conftest.dir
14197 if mkdir conftest.dir; then
14198 cd conftest.dir
14199 cat >Imakefile <<'_ACEOF'
14200 incroot:
14201 @echo incroot='${INCROOT}'
14202 usrlibdir:
14203 @echo usrlibdir='${USRLIBDIR}'
14204 libdir:
14205 @echo libdir='${LIBDIR}'
14206 _ACEOF
14207 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14208 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14209 for ac_var in incroot usrlibdir libdir; do
14210 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14211 done
14212 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14213 for ac_extension in a so sl dylib la dll; do
14214 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14215 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14216 ac_im_usrlibdir=$ac_im_libdir; break
14218 done
14219 # Screen out bogus values from the imake configuration. They are
14220 # bogus both because they are the default anyway, and because
14221 # using them would break gcc on systems where it needs fixed includes.
14222 case $ac_im_incroot in
14223 /usr/include) ac_x_includes= ;;
14224 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14225 esac
14226 case $ac_im_usrlibdir in
14227 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14228 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14229 esac
14231 cd ..
14232 rm -f -r conftest.dir
14235 # Standard set of common directories for X headers.
14236 # Check X11 before X11Rn because it is often a symlink to the current release.
14237 ac_x_header_dirs='
14238 /usr/X11/include
14239 /usr/X11R7/include
14240 /usr/X11R6/include
14241 /usr/X11R5/include
14242 /usr/X11R4/include
14244 /usr/include/X11
14245 /usr/include/X11R7
14246 /usr/include/X11R6
14247 /usr/include/X11R5
14248 /usr/include/X11R4
14250 /usr/local/X11/include
14251 /usr/local/X11R7/include
14252 /usr/local/X11R6/include
14253 /usr/local/X11R5/include
14254 /usr/local/X11R4/include
14256 /usr/local/include/X11
14257 /usr/local/include/X11R7
14258 /usr/local/include/X11R6
14259 /usr/local/include/X11R5
14260 /usr/local/include/X11R4
14262 /usr/X386/include
14263 /usr/x386/include
14264 /usr/XFree86/include/X11
14266 /usr/include
14267 /usr/local/include
14268 /usr/unsupported/include
14269 /usr/athena/include
14270 /usr/local/x11r5/include
14271 /usr/lpp/Xamples/include
14273 /usr/openwin/include
14274 /usr/openwin/share/include'
14276 if test "$ac_x_includes" = no; then
14277 # Guess where to find include files, by looking for Xlib.h.
14278 # First, try using that file with no special directory specified.
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 #include <X11/Xlib.h>
14282 _ACEOF
14283 if ac_fn_c_try_cpp "$LINENO"; then :
14284 # We can compile using X headers with no special include directory.
14285 ac_x_includes=
14286 else
14287 for ac_dir in $ac_x_header_dirs; do
14288 if test -r "$ac_dir/X11/Xlib.h"; then
14289 ac_x_includes=$ac_dir
14290 break
14292 done
14294 rm -f conftest.err conftest.i conftest.$ac_ext
14295 fi # $ac_x_includes = no
14297 if test "$ac_x_libraries" = no; then
14298 # Check for the libraries.
14299 # See if we find them without any special options.
14300 # Don't add to $LIBS permanently.
14301 ac_save_LIBS=$LIBS
14302 LIBS="-lX11 $LIBS"
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 #include <X11/Xlib.h>
14307 main ()
14309 XrmInitialize ()
14311 return 0;
14313 _ACEOF
14314 if ac_fn_c_try_link "$LINENO"; then :
14315 LIBS=$ac_save_LIBS
14316 # We can link X programs with no special library path.
14317 ac_x_libraries=
14318 else
14319 LIBS=$ac_save_LIBS
14320 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14322 # Don't even attempt the hair of trying to link an X program!
14323 for ac_extension in a so sl dylib la dll; do
14324 if test -r "$ac_dir/libX11.$ac_extension"; then
14325 ac_x_libraries=$ac_dir
14326 break 2
14328 done
14329 done
14331 rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14333 fi # $ac_x_libraries = no
14335 case $ac_x_includes,$ac_x_libraries in #(
14336 no,* | *,no | *\'*)
14337 # Didn't find X, or a directory has "'" in its name.
14338 ac_cv_have_x="have_x=no";; #(
14340 # Record where we found X for the cache.
14341 ac_cv_have_x="have_x=yes\
14342 ac_x_includes='$ac_x_includes'\
14343 ac_x_libraries='$ac_x_libraries'"
14344 esac
14346 ;; #(
14347 *) have_x=yes;;
14348 esac
14349 eval "$ac_cv_have_x"
14350 fi # $with_x != no
14352 if test "$have_x" != yes; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14354 $as_echo "$have_x" >&6; }
14355 no_x=yes
14356 else
14357 # If each of the values was on the command line, it overrides each guess.
14358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14360 # Update the cache value to reflect the command line values.
14361 ac_cv_have_x="have_x=yes\
14362 ac_x_includes='$x_includes'\
14363 ac_x_libraries='$x_libraries'"
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14365 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14369 if test -n "$x_includes"; then
14370 X_CFLAGS="$X_CFLAGS -I$x_includes"
14373 if test -n "$x_libraries"; then
14374 X_LIBS="$X_LIBS -L$x_libraries"
14377 if test "x-$no_x" = "x-yes" ; then
14379 if test "x-$x11_hidd" != "x-auto" ; then
14380 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14383 else
14384 host_x_gfx=yes
14385 ENABLE_X11=1
14387 aros_host_x11_cflags="$X_CFLAGS"
14388 aros_host_x11_ldflags="$X_LIBS -lX11"
14390 # Check whether --enable-x11_shm was given.
14391 if test "${enable_x11_shm+set}" = set; then :
14392 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14393 else
14394 x11_hidd_shm="auto"
14397 case "x-$x11_hidd_shm" in
14398 x-yes|x-no|x-auto) ;;
14399 *) x11_hidd_shm="auto" ;;
14400 esac
14402 have_xshm=no
14404 if test "x-$x11_hidd_shm" != "x-no" ; then
14406 for ac_header in sys/ipc.h
14407 do :
14408 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14409 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14410 cat >>confdefs.h <<_ACEOF
14411 #define HAVE_SYS_IPC_H 1
14412 _ACEOF
14416 done
14418 for ac_header in sys/shm.h
14419 do :
14420 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14421 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14422 cat >>confdefs.h <<_ACEOF
14423 #define HAVE_SYS_SHM_H 1
14424 _ACEOF
14428 done
14431 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14433 save_cflags="$CFLAGS"
14434 save_ldflags="$LDFLAGS"
14435 CFLAGS="$CFLAGS $X_CFLAGS"
14436 LDFLAGS="$LDFLAGS $X_LIBS"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14438 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14439 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-lXext $LIBS"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 /* Override any GCC internal prototype to avoid an error.
14448 Use char because int might match the return type of a GCC
14449 builtin and then its argument prototype would still apply. */
14450 #ifdef __cplusplus
14451 extern "C"
14452 #endif
14453 char XShmQueryExtension ();
14455 main ()
14457 return XShmQueryExtension ();
14459 return 0;
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 ac_cv_lib_Xext_XShmQueryExtension=yes
14464 else
14465 ac_cv_lib_Xext_XShmQueryExtension=no
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14472 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14473 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14474 have_xshm=yes
14477 CFLAGS="$save_cflags"
14478 LDFLAGS="$save_ldflags"
14482 if test "x-$have_xshm" = "x-yes" ; then
14483 DO_XSHM_SUPPORT="1"
14484 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14485 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14486 else
14487 DO_XSHM_SUPPORT="0"
14491 # Check whether --enable-x11_vidmode was given.
14492 if test "${enable_x11_vidmode+set}" = set; then :
14493 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14494 else
14495 x11_hidd_vidmode="auto"
14498 case "x-$x11_hidd_vidmode" in
14499 x-yes|x-no|x-auto) ;;
14500 *) x11_hidd_vidmode="auto" ;;
14501 esac
14503 have_vidmode=no
14505 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14507 save_cflags="$CFLAGS"
14508 save_ldflags="$LDFLAGS"
14509 CFLAGS="$CFLAGS $X_CFLAGS"
14510 LDFLAGS="$LDFLAGS $X_LIBS"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14512 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14513 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 ac_check_lib_save_LIBS=$LIBS
14517 LIBS="-lXxf86vm $LIBS"
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14524 #ifdef __cplusplus
14525 extern "C"
14526 #endif
14527 char XF86VidModeQueryExtension ();
14529 main ()
14531 return XF86VidModeQueryExtension ();
14533 return 0;
14535 _ACEOF
14536 if ac_fn_c_try_link "$LINENO"; then :
14537 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14538 else
14539 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14541 rm -f core conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14543 LIBS=$ac_check_lib_save_LIBS
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14546 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14547 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14548 have_vidmode=yes
14551 CFLAGS="$save_cflags"
14552 LDFLAGS="$save_ldflags"
14555 if test "x-$have_vidmode" = "x-yes" ; then
14556 DO_VIDMODE_SUPPORT="1"
14557 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14558 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14559 else
14560 DO_VIDMODE_SUPPORT="0"
14565 # Check whether --enable-sdl_hidd was given.
14566 if test "${enable_sdl_hidd+set}" = set; then :
14567 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14568 else
14569 sdl_hidd="auto"
14572 case "x-$sdl_hidd" in
14573 x-yes|x-no|x-auto) ;;
14574 *) sdl_hidd="auto" ;;
14575 esac
14577 if test "x-$sdl_hidd" != "x-no" ; then
14579 SDL_VERSION=1.2.5
14581 # Check whether --with-sdl-prefix was given.
14582 if test "${with_sdl_prefix+set}" = set; then :
14583 withval=$with_sdl_prefix; sdl_prefix="$withval"
14584 else
14585 sdl_prefix=""
14589 # Check whether --with-sdl-exec-prefix was given.
14590 if test "${with_sdl_exec_prefix+set}" = set; then :
14591 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14592 else
14593 sdl_exec_prefix=""
14596 # Check whether --enable-sdltest was given.
14597 if test "${enable_sdltest+set}" = set; then :
14598 enableval=$enable_sdltest;
14599 else
14600 enable_sdltest=yes
14604 if test x$sdl_exec_prefix != x ; then
14605 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14606 if test x${SDL_CONFIG+set} != xset ; then
14607 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14610 if test x$sdl_prefix != x ; then
14611 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14612 if test x${SDL_CONFIG+set} != xset ; then
14613 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14617 as_save_PATH="$PATH"
14618 if test "x$prefix" != xNONE; then
14619 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14621 # Extract the first word of "sdl-config", so it can be a program name with args.
14622 set dummy sdl-config; ac_word=$2
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624 $as_echo_n "checking for $ac_word... " >&6; }
14625 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 case $SDL_CONFIG in
14629 [\\/]* | ?:[\\/]*)
14630 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14636 IFS=$as_save_IFS
14637 test -z "$as_dir" && as_dir=.
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14642 break 2
14644 done
14645 done
14646 IFS=$as_save_IFS
14648 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14650 esac
14652 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14653 if test -n "$SDL_CONFIG"; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14655 $as_echo "$SDL_CONFIG" >&6; }
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 $as_echo "no" >&6; }
14662 PATH="$as_save_PATH"
14663 min_sdl_version=$SDL_VERSION
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14665 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14666 no_sdl=""
14667 if test "$SDL_CONFIG" = "no" ; then
14668 no_sdl=yes
14669 else
14670 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14671 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14673 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14674 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14675 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14677 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14678 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14679 if test "x$enable_sdltest" = "xyes" ; then
14680 ac_save_CFLAGS="$CFLAGS"
14681 ac_save_CXXFLAGS="$CXXFLAGS"
14682 ac_save_LIBS="$LIBS"
14683 CFLAGS="$CFLAGS $SDL_CFLAGS"
14684 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14685 LIBS="$LIBS $SDL_LIBS"
14686 rm -f conf.sdltest
14687 if test "$cross_compiling" = yes; then :
14688 echo $ac_n "cross compiling; assumed OK... $ac_c"
14689 else
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14693 #include <stdio.h>
14694 #include <stdlib.h>
14695 #include <string.h>
14696 #include "SDL.h"
14698 char*
14699 my_strdup (char *str)
14701 char *new_str;
14703 if (str)
14705 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14706 strcpy (new_str, str);
14708 else
14709 new_str = NULL;
14711 return new_str;
14714 int main (int argc, char *argv[])
14716 int major, minor, micro;
14717 char *tmp_version;
14719 /* This hangs on some systems (?)
14720 system ("touch conf.sdltest");
14722 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14724 /* HP/UX 9 (%@#!) writes to sscanf strings */
14725 tmp_version = my_strdup("$min_sdl_version");
14726 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14727 printf("%s, bad version string\n", "$min_sdl_version");
14728 exit(1);
14731 if (($sdl_major_version > major) ||
14732 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14733 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14735 return 0;
14737 else
14739 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14740 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14741 printf("*** best to upgrade to the required version.\n");
14742 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14743 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14744 printf("*** config.cache before re-running configure\n");
14745 return 1;
14750 _ACEOF
14751 if ac_fn_c_try_run "$LINENO"; then :
14753 else
14754 no_sdl=yes
14756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14757 conftest.$ac_objext conftest.beam conftest.$ac_ext
14760 CFLAGS="$ac_save_CFLAGS"
14761 CXXFLAGS="$ac_save_CXXFLAGS"
14762 LIBS="$ac_save_LIBS"
14765 if test "x$no_sdl" = x ; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14767 $as_echo "yes" >&6; }
14768 have_sdl="yes"
14769 else
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771 $as_echo "no" >&6; }
14772 if test "$SDL_CONFIG" = "no" ; then
14773 echo "*** The sdl-config script installed by SDL could not be found"
14774 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14775 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14776 echo "*** full path to sdl-config."
14777 else
14778 if test -f conf.sdltest ; then
14780 else
14781 echo "*** Could not run SDL test program, checking why..."
14782 CFLAGS="$CFLAGS $SDL_CFLAGS"
14783 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14784 LIBS="$LIBS $SDL_LIBS"
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14788 #include <stdio.h>
14789 #include "SDL.h"
14791 int main(int argc, char *argv[])
14792 { return 0; }
14793 #undef main
14794 #define main K_and_R_C_main
14797 main ()
14799 return 0;
14801 return 0;
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 echo "*** The test program compiled, but did not run. This usually means"
14806 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14807 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14810 echo "*** is required on your system"
14811 echo "***"
14812 echo "*** If you have an old version installed, it is best to remove it, although"
14813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14814 else
14815 echo "*** The test program failed to compile or link. See the file config.log for the"
14816 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14817 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14818 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14822 CFLAGS="$ac_save_CFLAGS"
14823 CXXFLAGS="$ac_save_CXXFLAGS"
14824 LIBS="$ac_save_LIBS"
14827 SDL_CFLAGS=""
14828 SDL_LIBS=""
14829 have_sdl="no"
14833 rm -f conf.sdltest
14836 if test "x-$have_sdl" != "x-yes" ; then
14838 if test "x-$sdl_hidd" != "x-auto" ; then
14839 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14842 else
14843 host_sdl_gfx=yes
14844 aros_host_sdl_cflags=$SDL_CFLAGS
14845 aros_host_sdl_libs=$SDL_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14853 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14854 # Check whether --enable-dbus was given.
14855 if test "${enable_dbus+set}" = set; then :
14856 enableval=$enable_dbus; dbus="yes"
14857 else
14858 dbus="no"
14861 if test "$dbus" = "yes" ; then
14862 ENABLE_DBUS=1
14863 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14864 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14865 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14866 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14867 else
14868 ENABLE_DBUS=0
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14871 $as_echo "$dbus" >&6; }
14873 if test "$use_kernel_cc_wrapper" = "yes" ; then
14874 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14877 aros_kernel_cppflags=$aros_config_cppflags
14880 # Generic
14894 # Compatability with other Amiga-like operation systems
14897 # Host related
14927 # Target Related
15005 # Hosted Graphics Related
15023 # Native version related
15028 # Palm native version related
15031 # Unix/Hosted version related
15034 # MMU related
15037 # Apple iOS related
15042 # ARM default GCC target related
15049 # Android related
15054 # DBUS related
15061 #X11 related
15064 # Debug related
15070 # Collect-aros stuff: "-ius" to ignore undefined symbols
15073 # C compiler related
15078 #ObjC compiler related
15081 #Java related
15084 # USB3.0 code
15087 case "$aros_flavour" in
15088 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15089 aros_flavour="emulation" ;;
15090 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15091 aros_flavour="emulation" ;;
15092 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15093 aros_flavour="standalone";;
15094 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15095 aros_flavour="standalone";;
15096 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15097 aros_flavour="native" ;;
15098 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15099 aros_flavour="native" ;;
15100 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15101 aros_flavour="linklib" ;;
15102 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15103 aros_flavour="palmnative" ;;
15104 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15105 aros_flavour="mac68knative" ;;
15106 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15107 aros_flavour="ppcnative" ;;
15108 esac
15110 if test ! -d ${aros_inc_dir} ; then
15111 ${MKDIR} ${aros_inc_dir}
15113 if test ! -d ${aros_geninc_dir} ; then
15114 ${MKDIR} ${aros_geninc_dir}
15116 if test ! -d ${aros_hostcfg_dir} ; then
15117 ${MKDIR} ${aros_hostcfg_dir}
15119 if test ! -d ${aros_targetcfg_dir} ; then
15120 ${MKDIR} ${aros_targetcfg_dir}
15122 if test ! -d ${aros_tools_dir} ; then
15123 ${MKDIR} ${aros_tools_dir}
15125 if test ! -d ${aros_scripts_dir} ; then
15126 ${MKDIR} ${aros_scripts_dir}
15129 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15132 # Generic build tools (metamake, etc)
15133 ac_config_commands="$ac_config_commands genmf-executable-support"
15135 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/geninc.cfg:compiler/include/geninc.cfg.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in tools/collect-aros/env.h"
15138 # Binutils
15139 ac_config_commands="$ac_config_commands binutils-support"
15141 if test "${use_ld_wrapper}" = "yes"; then
15142 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"
15145 # Bare Elf support script and spec
15146 if test "${use_kernel_cc_wrapper}" = "yes"; then
15147 ac_config_commands="$ac_config_commands elf-compiler-support"
15149 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"
15153 # Host compiler support scripts and spec
15154 if test "${aros_target_toolchain}" = "no"; then
15155 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15157 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"
15161 # Android support
15162 if test "$aros_target_variant" == "android"; then
15163 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15167 # cmake helper
15168 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15171 cat >confcache <<\_ACEOF
15172 # This file is a shell script that caches the results of configure
15173 # tests run on this system so they can be shared between configure
15174 # scripts and configure runs, see configure's option --config-cache.
15175 # It is not useful on other systems. If it contains results you don't
15176 # want to keep, you may remove or edit it.
15178 # config.status only pays attention to the cache file if you give it
15179 # the --recheck option to rerun configure.
15181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15183 # following values.
15185 _ACEOF
15187 # The following way of writing the cache mishandles newlines in values,
15188 # but we know of no workaround that is simple, portable, and efficient.
15189 # So, we kill variables containing newlines.
15190 # Ultrix sh set writes to stderr and can't be redirected directly,
15191 # and sets the high bit in the cache file unless we assign to the vars.
15193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15194 eval ac_val=\$$ac_var
15195 case $ac_val in #(
15196 *${as_nl}*)
15197 case $ac_var in #(
15198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15200 esac
15201 case $ac_var in #(
15202 _ | IFS | as_nl) ;; #(
15203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15204 *) { eval $ac_var=; unset $ac_var;} ;;
15205 esac ;;
15206 esac
15207 done
15209 (set) 2>&1 |
15210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15211 *${as_nl}ac_space=\ *)
15212 # `set' does not quote correctly, so add quotes: double-quote
15213 # substitution turns \\\\ into \\, and sed turns \\ into \.
15214 sed -n \
15215 "s/'/'\\\\''/g;
15216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15217 ;; #(
15219 # `set' quotes correctly as required by POSIX, so do not add quotes.
15220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15222 esac |
15223 sort
15225 sed '
15226 /^ac_cv_env_/b end
15227 t clear
15228 :clear
15229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15230 t end
15231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15232 :end' >>confcache
15233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15234 if test -w "$cache_file"; then
15235 if test "x$cache_file" != "x/dev/null"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15237 $as_echo "$as_me: updating cache $cache_file" >&6;}
15238 if test ! -f "$cache_file" || test -h "$cache_file"; then
15239 cat confcache >"$cache_file"
15240 else
15241 case $cache_file in #(
15242 */* | ?:*)
15243 mv -f confcache "$cache_file"$$ &&
15244 mv -f "$cache_file"$$ "$cache_file" ;; #(
15246 mv -f confcache "$cache_file" ;;
15247 esac
15250 else
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15252 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15255 rm -f confcache
15257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15258 # Let make expand exec_prefix.
15259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15261 DEFS=-DHAVE_CONFIG_H
15263 ac_libobjs=
15264 ac_ltlibobjs=
15266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15267 # 1. Remove the extension, and $U if already installed.
15268 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15269 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15270 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15271 # will be set to the directory where LIBOBJS objects are built.
15272 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15273 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15274 done
15275 LIBOBJS=$ac_libobjs
15277 LTLIBOBJS=$ac_ltlibobjs
15281 : "${CONFIG_STATUS=./config.status}"
15282 ac_write_fail=0
15283 ac_clean_files_save=$ac_clean_files
15284 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15286 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15287 as_write_fail=0
15288 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15289 #! $SHELL
15290 # Generated by $as_me.
15291 # Run this file to recreate the current configuration.
15292 # Compiler output produced by configure, useful for debugging
15293 # configure, is in config.log if it exists.
15295 debug=false
15296 ac_cs_recheck=false
15297 ac_cs_silent=false
15299 SHELL=\${CONFIG_SHELL-$SHELL}
15300 export SHELL
15301 _ASEOF
15302 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15303 ## -------------------- ##
15304 ## M4sh Initialization. ##
15305 ## -------------------- ##
15307 # Be more Bourne compatible
15308 DUALCASE=1; export DUALCASE # for MKS sh
15309 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15310 emulate sh
15311 NULLCMD=:
15312 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15313 # is contrary to our usage. Disable this feature.
15314 alias -g '${1+"$@"}'='"$@"'
15315 setopt NO_GLOB_SUBST
15316 else
15317 case `(set -o) 2>/dev/null` in #(
15318 *posix*) :
15319 set -o posix ;; #(
15320 *) :
15322 esac
15326 as_nl='
15328 export as_nl
15329 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15330 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15331 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15332 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15333 # Prefer a ksh shell builtin over an external printf program on Solaris,
15334 # but without wasting forks for bash or zsh.
15335 if test -z "$BASH_VERSION$ZSH_VERSION" \
15336 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15337 as_echo='print -r --'
15338 as_echo_n='print -rn --'
15339 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15340 as_echo='printf %s\n'
15341 as_echo_n='printf %s'
15342 else
15343 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15344 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15345 as_echo_n='/usr/ucb/echo -n'
15346 else
15347 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15348 as_echo_n_body='eval
15349 arg=$1;
15350 case $arg in #(
15351 *"$as_nl"*)
15352 expr "X$arg" : "X\\(.*\\)$as_nl";
15353 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15354 esac;
15355 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15357 export as_echo_n_body
15358 as_echo_n='sh -c $as_echo_n_body as_echo'
15360 export as_echo_body
15361 as_echo='sh -c $as_echo_body as_echo'
15364 # The user is always right.
15365 if test "${PATH_SEPARATOR+set}" != set; then
15366 PATH_SEPARATOR=:
15367 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15368 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15369 PATH_SEPARATOR=';'
15374 # IFS
15375 # We need space, tab and new line, in precisely that order. Quoting is
15376 # there to prevent editors from complaining about space-tab.
15377 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15378 # splitting by setting IFS to empty value.)
15379 IFS=" "" $as_nl"
15381 # Find who we are. Look in the path if we contain no directory separator.
15382 as_myself=
15383 case $0 in #((
15384 *[\\/]* ) as_myself=$0 ;;
15385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15388 IFS=$as_save_IFS
15389 test -z "$as_dir" && as_dir=.
15390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15391 done
15392 IFS=$as_save_IFS
15395 esac
15396 # We did not find ourselves, most probably we were run as `sh COMMAND'
15397 # in which case we are not to be found in the path.
15398 if test "x$as_myself" = x; then
15399 as_myself=$0
15401 if test ! -f "$as_myself"; then
15402 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15403 exit 1
15406 # Unset variables that we do not need and which cause bugs (e.g. in
15407 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15408 # suppresses any "Segmentation fault" message there. '((' could
15409 # trigger a bug in pdksh 5.2.14.
15410 for as_var in BASH_ENV ENV MAIL MAILPATH
15411 do eval test x\${$as_var+set} = xset \
15412 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15413 done
15414 PS1='$ '
15415 PS2='> '
15416 PS4='+ '
15418 # NLS nuisances.
15419 LC_ALL=C
15420 export LC_ALL
15421 LANGUAGE=C
15422 export LANGUAGE
15424 # CDPATH.
15425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15428 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15429 # ----------------------------------------
15430 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15431 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15432 # script with STATUS, using 1 if that was 0.
15433 as_fn_error ()
15435 as_status=$1; test $as_status -eq 0 && as_status=1
15436 if test "$4"; then
15437 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15438 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15440 $as_echo "$as_me: error: $2" >&2
15441 as_fn_exit $as_status
15442 } # as_fn_error
15445 # as_fn_set_status STATUS
15446 # -----------------------
15447 # Set $? to STATUS, without forking.
15448 as_fn_set_status ()
15450 return $1
15451 } # as_fn_set_status
15453 # as_fn_exit STATUS
15454 # -----------------
15455 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15456 as_fn_exit ()
15458 set +e
15459 as_fn_set_status $1
15460 exit $1
15461 } # as_fn_exit
15463 # as_fn_unset VAR
15464 # ---------------
15465 # Portably unset VAR.
15466 as_fn_unset ()
15468 { eval $1=; unset $1;}
15470 as_unset=as_fn_unset
15471 # as_fn_append VAR VALUE
15472 # ----------------------
15473 # Append the text in VALUE to the end of the definition contained in VAR. Take
15474 # advantage of any shell optimizations that allow amortized linear growth over
15475 # repeated appends, instead of the typical quadratic growth present in naive
15476 # implementations.
15477 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15478 eval 'as_fn_append ()
15480 eval $1+=\$2
15482 else
15483 as_fn_append ()
15485 eval $1=\$$1\$2
15487 fi # as_fn_append
15489 # as_fn_arith ARG...
15490 # ------------------
15491 # Perform arithmetic evaluation on the ARGs, and store the result in the
15492 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15493 # must be portable across $(()) and expr.
15494 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15495 eval 'as_fn_arith ()
15497 as_val=$(( $* ))
15499 else
15500 as_fn_arith ()
15502 as_val=`expr "$@" || test $? -eq 1`
15504 fi # as_fn_arith
15507 if expr a : '\(a\)' >/dev/null 2>&1 &&
15508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15509 as_expr=expr
15510 else
15511 as_expr=false
15514 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15515 as_basename=basename
15516 else
15517 as_basename=false
15520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15521 as_dirname=dirname
15522 else
15523 as_dirname=false
15526 as_me=`$as_basename -- "$0" ||
15527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15528 X"$0" : 'X\(//\)$' \| \
15529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15530 $as_echo X/"$0" |
15531 sed '/^.*\/\([^/][^/]*\)\/*$/{
15532 s//\1/
15535 /^X\/\(\/\/\)$/{
15536 s//\1/
15539 /^X\/\(\/\).*/{
15540 s//\1/
15543 s/.*/./; q'`
15545 # Avoid depending upon Character Ranges.
15546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15549 as_cr_digits='0123456789'
15550 as_cr_alnum=$as_cr_Letters$as_cr_digits
15552 ECHO_C= ECHO_N= ECHO_T=
15553 case `echo -n x` in #(((((
15554 -n*)
15555 case `echo 'xy\c'` in
15556 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15557 xy) ECHO_C='\c';;
15558 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15559 ECHO_T=' ';;
15560 esac;;
15562 ECHO_N='-n';;
15563 esac
15565 rm -f conf$$ conf$$.exe conf$$.file
15566 if test -d conf$$.dir; then
15567 rm -f conf$$.dir/conf$$.file
15568 else
15569 rm -f conf$$.dir
15570 mkdir conf$$.dir 2>/dev/null
15572 if (echo >conf$$.file) 2>/dev/null; then
15573 if ln -s conf$$.file conf$$ 2>/dev/null; then
15574 as_ln_s='ln -s'
15575 # ... but there are two gotchas:
15576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15578 # In both cases, we have to default to `cp -pR'.
15579 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15580 as_ln_s='cp -pR'
15581 elif ln conf$$.file conf$$ 2>/dev/null; then
15582 as_ln_s=ln
15583 else
15584 as_ln_s='cp -pR'
15586 else
15587 as_ln_s='cp -pR'
15589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15590 rmdir conf$$.dir 2>/dev/null
15593 # as_fn_mkdir_p
15594 # -------------
15595 # Create "$as_dir" as a directory, including parents if necessary.
15596 as_fn_mkdir_p ()
15599 case $as_dir in #(
15600 -*) as_dir=./$as_dir;;
15601 esac
15602 test -d "$as_dir" || eval $as_mkdir_p || {
15603 as_dirs=
15604 while :; do
15605 case $as_dir in #(
15606 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15607 *) as_qdir=$as_dir;;
15608 esac
15609 as_dirs="'$as_qdir' $as_dirs"
15610 as_dir=`$as_dirname -- "$as_dir" ||
15611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15612 X"$as_dir" : 'X\(//\)[^/]' \| \
15613 X"$as_dir" : 'X\(//\)$' \| \
15614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15615 $as_echo X"$as_dir" |
15616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15617 s//\1/
15620 /^X\(\/\/\)[^/].*/{
15621 s//\1/
15624 /^X\(\/\/\)$/{
15625 s//\1/
15628 /^X\(\/\).*/{
15629 s//\1/
15632 s/.*/./; q'`
15633 test -d "$as_dir" && break
15634 done
15635 test -z "$as_dirs" || eval "mkdir $as_dirs"
15636 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15639 } # as_fn_mkdir_p
15640 if mkdir -p . 2>/dev/null; then
15641 as_mkdir_p='mkdir -p "$as_dir"'
15642 else
15643 test -d ./-p && rmdir ./-p
15644 as_mkdir_p=false
15648 # as_fn_executable_p FILE
15649 # -----------------------
15650 # Test if FILE is an executable regular file.
15651 as_fn_executable_p ()
15653 test -f "$1" && test -x "$1"
15654 } # as_fn_executable_p
15655 as_test_x='test -x'
15656 as_executable_p=as_fn_executable_p
15658 # Sed expression to map a string onto a valid CPP name.
15659 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15661 # Sed expression to map a string onto a valid variable name.
15662 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15665 exec 6>&1
15666 ## ----------------------------------- ##
15667 ## Main body of $CONFIG_STATUS script. ##
15668 ## ----------------------------------- ##
15669 _ASEOF
15670 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15673 # Save the log message, to keep $0 and so on meaningful, and to
15674 # report actual input values of CONFIG_FILES etc. instead of their
15675 # values after options handling.
15676 ac_log="
15677 This file was extended by $as_me, which was
15678 generated by GNU Autoconf 2.69. Invocation command line was
15680 CONFIG_FILES = $CONFIG_FILES
15681 CONFIG_HEADERS = $CONFIG_HEADERS
15682 CONFIG_LINKS = $CONFIG_LINKS
15683 CONFIG_COMMANDS = $CONFIG_COMMANDS
15684 $ $0 $@
15686 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15689 _ACEOF
15691 case $ac_config_files in *"
15692 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15693 esac
15695 case $ac_config_headers in *"
15696 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15697 esac
15700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15701 # Files that config.status was made for.
15702 config_files="$ac_config_files"
15703 config_headers="$ac_config_headers"
15704 config_commands="$ac_config_commands"
15706 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 ac_cs_usage="\
15710 \`$as_me' instantiates files and other configuration actions
15711 from templates according to the current configuration. Unless the files
15712 and actions are specified as TAGs, all are instantiated by default.
15714 Usage: $0 [OPTION]... [TAG]...
15716 -h, --help print this help, then exit
15717 -V, --version print version number and configuration settings, then exit
15718 --config print configuration, then exit
15719 -q, --quiet, --silent
15720 do not print progress messages
15721 -d, --debug don't remove temporary files
15722 --recheck update $as_me by reconfiguring in the same conditions
15723 --file=FILE[:TEMPLATE]
15724 instantiate the configuration file FILE
15725 --header=FILE[:TEMPLATE]
15726 instantiate the configuration header FILE
15728 Configuration files:
15729 $config_files
15731 Configuration headers:
15732 $config_headers
15734 Configuration commands:
15735 $config_commands
15737 Report bugs to the package provider."
15739 _ACEOF
15740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15741 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15742 ac_cs_version="\\
15743 config.status
15744 configured by $0, generated by GNU Autoconf 2.69,
15745 with options \\"\$ac_cs_config\\"
15747 Copyright (C) 2012 Free Software Foundation, Inc.
15748 This config.status script is free software; the Free Software Foundation
15749 gives unlimited permission to copy, distribute and modify it."
15751 ac_pwd='$ac_pwd'
15752 srcdir='$srcdir'
15753 test -n "\$AWK" || AWK=awk
15754 _ACEOF
15756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757 # The default lists apply if the user does not specify any file.
15758 ac_need_defaults=:
15759 while test $# != 0
15761 case $1 in
15762 --*=?*)
15763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15765 ac_shift=:
15767 --*=)
15768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15769 ac_optarg=
15770 ac_shift=:
15773 ac_option=$1
15774 ac_optarg=$2
15775 ac_shift=shift
15777 esac
15779 case $ac_option in
15780 # Handling of the options.
15781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15782 ac_cs_recheck=: ;;
15783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15784 $as_echo "$ac_cs_version"; exit ;;
15785 --config | --confi | --conf | --con | --co | --c )
15786 $as_echo "$ac_cs_config"; exit ;;
15787 --debug | --debu | --deb | --de | --d | -d )
15788 debug=: ;;
15789 --file | --fil | --fi | --f )
15790 $ac_shift
15791 case $ac_optarg in
15792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15793 '') as_fn_error $? "missing file argument" ;;
15794 esac
15795 as_fn_append CONFIG_FILES " '$ac_optarg'"
15796 ac_need_defaults=false;;
15797 --header | --heade | --head | --hea )
15798 $ac_shift
15799 case $ac_optarg in
15800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15801 esac
15802 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15803 ac_need_defaults=false;;
15804 --he | --h)
15805 # Conflict between --help and --header
15806 as_fn_error $? "ambiguous option: \`$1'
15807 Try \`$0 --help' for more information.";;
15808 --help | --hel | -h )
15809 $as_echo "$ac_cs_usage"; exit ;;
15810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15812 ac_cs_silent=: ;;
15814 # This is an error.
15815 -*) as_fn_error $? "unrecognized option: \`$1'
15816 Try \`$0 --help' for more information." ;;
15818 *) as_fn_append ac_config_targets " $1"
15819 ac_need_defaults=false ;;
15821 esac
15822 shift
15823 done
15825 ac_configure_extra_args=
15827 if $ac_cs_silent; then
15828 exec 6>/dev/null
15829 ac_configure_extra_args="$ac_configure_extra_args --silent"
15832 _ACEOF
15833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15834 if \$ac_cs_recheck; then
15835 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15836 shift
15837 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15838 CONFIG_SHELL='$SHELL'
15839 export CONFIG_SHELL
15840 exec "\$@"
15843 _ACEOF
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 exec 5>>config.log
15847 echo
15848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15849 ## Running $as_me. ##
15850 _ASBOX
15851 $as_echo "$ac_log"
15852 } >&5
15854 _ACEOF
15855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15857 # INIT-COMMANDS
15860 AROS_CROSSTOOLSDIR=${AROS_CROSSTOOLSDIR}
15861 aros_tools_dir=${aros_tools_dir}
15865 aros_host_exe_suffix=${aros_host_exe_suffix}
15866 aros_tools_dir=${aros_tools_dir}
15867 aros_target_cpu=${aros_target_cpu}
15868 aros_target_arch=${aros_target_arch}
15869 aros_target_suffix=${aros_target_suffix}
15870 orig_target_nm=${orig_target_nm}
15871 orig_target_as=${orig_target_as}
15872 orig_target_ar=${orig_target_ar}
15873 orig_target_ranlib=${orig_target_ranlib}
15874 orig_target_objdump=${orig_target_objdump}
15875 orig_target_objcopy=${orig_target_objcopy}
15876 orig_target_strip=${orig_target_strip}
15877 aros_kernel_ld=${aros_kernel_ld}
15881 aros_host_exe_suffix=${aros_host_exe_suffix}
15882 aros_tools_dir=${aros_tools_dir}
15883 aros_target_cpu=${aros_target_cpu}
15884 aros_target_arch=${aros_target_arch}
15885 aros_target_suffix=${aros_target_suffix}
15886 aros_kernel_ld=${aros_kernel_ld}
15890 aros_host_exe_suffix=${aros_host_exe_suffix}
15891 aros_tools_dir=${aros_tools_dir}
15892 aros_target_cpu=${aros_target_cpu}
15893 aros_target_arch=${aros_target_arch}
15894 aros_target_suffix=${aros_target_suffix}
15898 _ACEOF
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 # Handling of arguments.
15903 for ac_config_target in $ac_config_targets
15905 case $ac_config_target in
15906 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15907 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15909 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15910 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15911 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15912 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15913 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15914 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15915 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15916 "compiler/include/geninc.cfg") CONFIG_FILES="$CONFIG_FILES compiler/include/geninc.cfg:compiler/include/geninc.cfg.in" ;;
15917 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15918 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15919 "${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname") CONFIG_FILES="$CONFIG_FILES ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname:scripts/uname.in" ;;
15920 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15921 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15922 "${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" ;;
15923 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15924 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15925 "${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" ;;
15926 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15927 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15928 "${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" ;;
15929 "${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" ;;
15930 "${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" ;;
15931 "${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" ;;
15932 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15935 esac
15936 done
15939 # If the user did not use the arguments to specify the items to instantiate,
15940 # then the envvar interface is used. Set only those that are not.
15941 # We use the long form for the default assignment because of an extremely
15942 # bizarre bug on SunOS 4.1.3.
15943 if $ac_need_defaults; then
15944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15949 # Have a temporary directory for convenience. Make it in the build tree
15950 # simply because there is no reason against having it here, and in addition,
15951 # creating and moving files from /tmp can sometimes cause problems.
15952 # Hook for its removal unless debugging.
15953 # Note that there is a small window in which the directory will not be cleaned:
15954 # after its creation but before its name has been assigned to `$tmp'.
15955 $debug ||
15957 tmp= ac_tmp=
15958 trap 'exit_status=$?
15959 : "${ac_tmp:=$tmp}"
15960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15962 trap 'as_fn_exit 1' 1 2 13 15
15964 # Create a (secure) tmp directory for tmp files.
15967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15968 test -d "$tmp"
15969 } ||
15971 tmp=./conf$$-$RANDOM
15972 (umask 077 && mkdir "$tmp")
15973 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15974 ac_tmp=$tmp
15976 # Set up the scripts for CONFIG_FILES section.
15977 # No need to generate them if there are no CONFIG_FILES.
15978 # This happens for instance with `./config.status config.h'.
15979 if test -n "$CONFIG_FILES"; then
15982 ac_cr=`echo X | tr X '\015'`
15983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15984 # But we know of no other shell where ac_cr would be empty at this
15985 # point, so we can use a bashism as a fallback.
15986 if test "x$ac_cr" = x; then
15987 eval ac_cr=\$\'\\r\'
15989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15991 ac_cs_awk_cr='\\r'
15992 else
15993 ac_cs_awk_cr=$ac_cr
15996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15997 _ACEOF
16001 echo "cat >conf$$subs.awk <<_ACEOF" &&
16002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16003 echo "_ACEOF"
16004 } >conf$$subs.sh ||
16005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16007 ac_delim='%!_!# '
16008 for ac_last_try in false false false false false :; do
16009 . ./conf$$subs.sh ||
16010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16013 if test $ac_delim_n = $ac_delim_num; then
16014 break
16015 elif $ac_last_try; then
16016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16017 else
16018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16020 done
16021 rm -f conf$$subs.sh
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16025 _ACEOF
16026 sed -n '
16028 s/^/S["/; s/!.*/"]=/
16031 s/^[^!]*!//
16032 :repl
16033 t repl
16034 s/'"$ac_delim"'$//
16035 t delim
16038 s/\(.\{148\}\)..*/\1/
16039 t more1
16040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16043 b repl
16044 :more1
16045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16048 s/.\{148\}//
16049 t nl
16050 :delim
16052 s/\(.\{148\}\)..*/\1/
16053 t more2
16054 s/["\\]/\\&/g; s/^/"/; s/$/"/
16057 :more2
16058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16061 s/.\{148\}//
16062 t delim
16063 ' <conf$$subs.awk | sed '
16064 /^[^""]/{
16066 s/\n//
16068 ' >>$CONFIG_STATUS || ac_write_fail=1
16069 rm -f conf$$subs.awk
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 _ACAWK
16072 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16073 for (key in S) S_is_set[key] = 1
16074 FS = "\a"
16078 line = $ 0
16079 nfields = split(line, field, "@")
16080 substed = 0
16081 len = length(field[1])
16082 for (i = 2; i < nfields; i++) {
16083 key = field[i]
16084 keylen = length(key)
16085 if (S_is_set[key]) {
16086 value = S[key]
16087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16088 len += length(value) + length(field[++i])
16089 substed = 1
16090 } else
16091 len += 1 + keylen
16094 print line
16097 _ACAWK
16098 _ACEOF
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16102 else
16104 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16106 _ACEOF
16108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16110 # trailing colons and then remove the whole line if VPATH becomes empty
16111 # (actually we leave an empty line to preserve line numbers).
16112 if test "x$srcdir" = x.; then
16113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16115 s///
16116 s/^/:/
16117 s/[ ]*$/:/
16118 s/:\$(srcdir):/:/g
16119 s/:\${srcdir}:/:/g
16120 s/:@srcdir@:/:/g
16121 s/^:*//
16122 s/:*$//
16124 s/\(=[ ]*\).*/\1/
16126 s/\n//
16127 s/^[^=]*=[ ]*$//
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 fi # test -n "$CONFIG_FILES"
16134 # Set up the scripts for CONFIG_HEADERS section.
16135 # No need to generate them if there are no CONFIG_HEADERS.
16136 # This happens for instance with `./config.status Makefile'.
16137 if test -n "$CONFIG_HEADERS"; then
16138 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16139 BEGIN {
16140 _ACEOF
16142 # Transform confdefs.h into an awk script `defines.awk', embedded as
16143 # here-document in config.status, that substitutes the proper values into
16144 # config.h.in to produce config.h.
16146 # Create a delimiter string that does not exist in confdefs.h, to ease
16147 # handling of long lines.
16148 ac_delim='%!_!# '
16149 for ac_last_try in false false :; do
16150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16151 if test -z "$ac_tt"; then
16152 break
16153 elif $ac_last_try; then
16154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16155 else
16156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16158 done
16160 # For the awk script, D is an array of macro values keyed by name,
16161 # likewise P contains macro parameters if any. Preserve backslash
16162 # newline sequences.
16164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16165 sed -n '
16166 s/.\{148\}/&'"$ac_delim"'/g
16167 t rset
16168 :rset
16169 s/^[ ]*#[ ]*define[ ][ ]*/ /
16170 t def
16172 :def
16173 s/\\$//
16174 t bsnl
16175 s/["\\]/\\&/g
16176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16177 D["\1"]=" \3"/p
16178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16180 :bsnl
16181 s/["\\]/\\&/g
16182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16183 D["\1"]=" \3\\\\\\n"\\/p
16184 t cont
16185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16186 t cont
16188 :cont
16190 s/.\{148\}/&'"$ac_delim"'/g
16191 t clear
16192 :clear
16193 s/\\$//
16194 t bsnlc
16195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16197 :bsnlc
16198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16199 b cont
16200 ' <confdefs.h | sed '
16201 s/'"$ac_delim"'/"\\\
16202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 for (key in D) D_is_set[key] = 1
16206 FS = "\a"
16208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16209 line = \$ 0
16210 split(line, arg, " ")
16211 if (arg[1] == "#") {
16212 defundef = arg[2]
16213 mac1 = arg[3]
16214 } else {
16215 defundef = substr(arg[1], 2)
16216 mac1 = arg[2]
16218 split(mac1, mac2, "(") #)
16219 macro = mac2[1]
16220 prefix = substr(line, 1, index(line, defundef) - 1)
16221 if (D_is_set[macro]) {
16222 # Preserve the white space surrounding the "#".
16223 print prefix "define", macro P[macro] D[macro]
16224 next
16225 } else {
16226 # Replace #undef with comments. This is necessary, for example,
16227 # in the case of _POSIX_SOURCE, which is predefined and required
16228 # on some systems where configure will not decide to define it.
16229 if (defundef == "undef") {
16230 print "/*", prefix defundef, macro, "*/"
16231 next
16235 { print }
16236 _ACAWK
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16240 fi # test -n "$CONFIG_HEADERS"
16243 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16244 shift
16245 for ac_tag
16247 case $ac_tag in
16248 :[FHLC]) ac_mode=$ac_tag; continue;;
16249 esac
16250 case $ac_mode$ac_tag in
16251 :[FHL]*:*);;
16252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16253 :[FH]-) ac_tag=-:-;;
16254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16255 esac
16256 ac_save_IFS=$IFS
16257 IFS=:
16258 set x $ac_tag
16259 IFS=$ac_save_IFS
16260 shift
16261 ac_file=$1
16262 shift
16264 case $ac_mode in
16265 :L) ac_source=$1;;
16266 :[FH])
16267 ac_file_inputs=
16268 for ac_f
16270 case $ac_f in
16271 -) ac_f="$ac_tmp/stdin";;
16272 *) # Look for the file first in the build tree, then in the source tree
16273 # (if the path is not absolute). The absolute path cannot be DOS-style,
16274 # because $ac_f cannot contain `:'.
16275 test -f "$ac_f" ||
16276 case $ac_f in
16277 [\\/$]*) false;;
16278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16279 esac ||
16280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16281 esac
16282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16283 as_fn_append ac_file_inputs " '$ac_f'"
16284 done
16286 # Let's still pretend it is `configure' which instantiates (i.e., don't
16287 # use $as_me), people would be surprised to read:
16288 # /* config.h. Generated by config.status. */
16289 configure_input='Generated from '`
16290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16291 `' by configure.'
16292 if test x"$ac_file" != x-; then
16293 configure_input="$ac_file. $configure_input"
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16295 $as_echo "$as_me: creating $ac_file" >&6;}
16297 # Neutralize special characters interpreted by sed in replacement strings.
16298 case $configure_input in #(
16299 *\&* | *\|* | *\\* )
16300 ac_sed_conf_input=`$as_echo "$configure_input" |
16301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16302 *) ac_sed_conf_input=$configure_input;;
16303 esac
16305 case $ac_tag in
16306 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16308 esac
16310 esac
16312 ac_dir=`$as_dirname -- "$ac_file" ||
16313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16314 X"$ac_file" : 'X\(//\)[^/]' \| \
16315 X"$ac_file" : 'X\(//\)$' \| \
16316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16317 $as_echo X"$ac_file" |
16318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16319 s//\1/
16322 /^X\(\/\/\)[^/].*/{
16323 s//\1/
16326 /^X\(\/\/\)$/{
16327 s//\1/
16330 /^X\(\/\).*/{
16331 s//\1/
16334 s/.*/./; q'`
16335 as_dir="$ac_dir"; as_fn_mkdir_p
16336 ac_builddir=.
16338 case "$ac_dir" in
16339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16342 # A ".." for each directory in $ac_dir_suffix.
16343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16344 case $ac_top_builddir_sub in
16345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16347 esac ;;
16348 esac
16349 ac_abs_top_builddir=$ac_pwd
16350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16351 # for backward compatibility:
16352 ac_top_builddir=$ac_top_build_prefix
16354 case $srcdir in
16355 .) # We are building in place.
16356 ac_srcdir=.
16357 ac_top_srcdir=$ac_top_builddir_sub
16358 ac_abs_top_srcdir=$ac_pwd ;;
16359 [\\/]* | ?:[\\/]* ) # Absolute name.
16360 ac_srcdir=$srcdir$ac_dir_suffix;
16361 ac_top_srcdir=$srcdir
16362 ac_abs_top_srcdir=$srcdir ;;
16363 *) # Relative name.
16364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16365 ac_top_srcdir=$ac_top_build_prefix$srcdir
16366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16367 esac
16368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16371 case $ac_mode in
16374 # CONFIG_FILE
16377 _ACEOF
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 # If the template does not know about datarootdir, expand it.
16381 # FIXME: This hack should be removed a few years after 2.60.
16382 ac_datarootdir_hack=; ac_datarootdir_seen=
16383 ac_sed_dataroot='
16384 /datarootdir/ {
16388 /@datadir@/p
16389 /@docdir@/p
16390 /@infodir@/p
16391 /@localedir@/p
16392 /@mandir@/p'
16393 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16394 *datarootdir*) ac_datarootdir_seen=yes;;
16395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16397 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16398 _ACEOF
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 ac_datarootdir_hack='
16401 s&@datadir@&$datadir&g
16402 s&@docdir@&$docdir&g
16403 s&@infodir@&$infodir&g
16404 s&@localedir@&$localedir&g
16405 s&@mandir@&$mandir&g
16406 s&\\\${datarootdir}&$datarootdir&g' ;;
16407 esac
16408 _ACEOF
16410 # Neutralize VPATH when `$srcdir' = `.'.
16411 # Shell code in configure.ac might set extrasub.
16412 # FIXME: do we really want to maintain this feature?
16413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414 ac_sed_extra="$ac_vpsub
16415 $extrasub
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16420 s|@configure_input@|$ac_sed_conf_input|;t t
16421 s&@top_builddir@&$ac_top_builddir_sub&;t t
16422 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16423 s&@srcdir@&$ac_srcdir&;t t
16424 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16425 s&@top_srcdir@&$ac_top_srcdir&;t t
16426 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16427 s&@builddir@&$ac_builddir&;t t
16428 s&@abs_builddir@&$ac_abs_builddir&;t t
16429 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16430 $ac_datarootdir_hack
16432 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16433 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16436 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16438 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16440 which seems to be undefined. Please make sure it is defined" >&5
16441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16442 which seems to be undefined. Please make sure it is defined" >&2;}
16444 rm -f "$ac_tmp/stdin"
16445 case $ac_file in
16446 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16447 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16448 esac \
16449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16453 # CONFIG_HEADER
16455 if test x"$ac_file" != x-; then
16457 $as_echo "/* $configure_input */" \
16458 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16459 } >"$ac_tmp/config.h" \
16460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16461 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16464 else
16465 rm -f "$ac_file"
16466 mv "$ac_tmp/config.h" "$ac_file" \
16467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16469 else
16470 $as_echo "/* $configure_input */" \
16471 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16472 || as_fn_error $? "could not create -" "$LINENO" 5
16476 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16477 $as_echo "$as_me: executing $ac_file commands" >&6;}
16479 esac
16482 case $ac_file$ac_mode in
16483 "genmf-executable-support":C)
16484 chmod a+x ${AROS_CROSSTOOLSDIR}/${aros_target_cpu}-aros-uname
16485 chmod a+x ${aros_tools_dir}/genmf.py
16487 "binutils-support":C)
16488 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16489 mkdir -p $prefix
16490 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16492 chmod a+x ${prefix2}-ld
16494 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16495 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16496 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16497 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16498 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16499 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16500 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16502 "elf-compiler-support":C)
16503 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16504 mkdir -p $prefix
16505 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16507 chmod a+x ${prefix2}-gcc
16509 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16511 "host-compiler-wrapper-support":C)
16512 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16513 mkdir -p $prefix
16514 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16516 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16519 esac
16520 done # for ac_tag
16523 as_fn_exit 0
16524 _ACEOF
16525 ac_clean_files=$ac_clean_files_save
16527 test $ac_write_fail = 0 ||
16528 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16531 # configure is writing to config.log, and then calls config.status.
16532 # config.status does its own redirection, appending to config.log.
16533 # Unfortunately, on DOS this fails, as config.log is still kept open
16534 # by configure, so config.status won't be able to write to it; its
16535 # output is simply discarded. So we exec the FD to /dev/null,
16536 # effectively closing config.log, so it can be properly (re)opened and
16537 # appended to by config.status. When coming back to configure, we
16538 # need to make the FD available again.
16539 if test "$no_create" != yes; then
16540 ac_cs_success=:
16541 ac_config_status_args=
16542 test "$silent" = yes &&
16543 ac_config_status_args="$ac_config_status_args --quiet"
16544 exec 5>/dev/null
16545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16546 exec 5>>config.log
16547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16548 # would make configure fail if this is the last instruction.
16549 $ac_cs_success || as_fn_exit 1
16551 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16553 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16558 #XXX compatability...
16559 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16561 if test -n "$aros_shared_cflags" ; then
16562 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16563 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg