Update tc_SPReg (as well as the stack pointer register) before and after
[AROS.git] / configure
blob87310b371036fb5f0cee8726da3f90ecd7e304f3
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 objc_target
626 gcc_target_cpu
627 ignore_undefined_symbols
628 aros_modules_debug
629 aros_stack_debug
630 aros_mungwall_debug
631 aros_debug
632 ENABLE_X11
633 KERNEL_DBUS_INCLUDES
634 KERNEL_DBUS_KOBJ
635 DBUS_LIBFLAGS
636 DBUS_CFLAGS
637 ENABLE_DBUS
638 aros_android_antapk
639 aros_android_level
640 gcc_default_float_abi
641 gcc_default_fpu
642 gcc_default_cpu_tune
643 gcc_default_cpu
644 aros_ios_sdk
645 aros_ios_version
646 aros_ios_platform
647 aros_enable_mmu
648 aros_nesting_supervisor
649 aros_palm_debug_hack
650 aros_serial_debug
651 aros_host_sdl_libs
652 aros_host_sdl_cflags
653 aros_host_x11_libdirs
654 aros_host_x11_includes
655 DO_VIDMODE_SUPPORT
656 DO_XSHM_SUPPORT
657 aros_default_wbdepth
658 aros_default_wbheight
659 aros_default_wbwidth
660 oss_library_target
661 pci_hidd_target
662 sdl_hidd_target
663 unixgfx_hidd_target
664 aros_cflags_format_security
665 aros_cflags_strict_overflow
666 aros_cflags_enum_compare
667 aros_cflags_array_bounds
668 aros_cflags_unused_but_set_variable
669 crosstools_cxx_target
670 crosstools_target
671 aros_isa_flags
672 aros_optimization_cflags
673 aros_target_strip_flags
674 aros_target_genmap
675 aros_debug_ldflags
676 aros_debug_aflags
677 aros_debug_cflags
678 aros_target_cflags
679 aros_kernel_ldflags
680 aros_kernel_objcflags
681 aros_kernel_includes
682 aros_kernel_cflags
683 aros_shared_ldflags
684 aros_shared_aflags
685 aros_shared_cflags
686 aros_config_ldflags
687 aros_config_aflags
688 aros_config_cflags
689 aros_arch_libs
690 aros_compiler_libs
691 spec_obj_format
692 aros_object_format
693 aros_shared_ld
694 aros_shared_default
695 aros_target_nm
696 aros_target_strip
697 aros_target_objcopy
698 aros_target_objdump
699 aros_target_cc_path
700 aros_target_cc_includes
701 aros_target_ld
702 aros_target_as
703 aros_target_cpp
704 aros_target_cxx
705 aros_target_cc
706 aros_plain_ar
707 aros_plain_nm
708 aros_target_ranlib
709 aros_target_ar
710 aros_target_suffix
711 aros_target_variant
712 aros_target_cpu
713 aros_target_family
714 aros_target_arch
715 aros_target_bootloader
716 aros_target_iconset
717 aros_target_guitheme
718 aros_tools_dir
719 aros_host_lib_suffix
720 aros_host_exe_suffix
721 aros_host_mkargs
722 aros_host_mkdep
723 aros_host_debug
724 aros_host_ldflags
725 gnu89_inline
726 aros_host_cxxflags
727 aros_host_cflags
728 aros_host_make
729 aros_host_cxx
730 aros_host_cc
731 aros_host_cpp
732 aros_host_cpu
733 aros_host_arch
734 aros_cc_pre
735 aros_amigaos_compliance
736 AROS_PORTSSRCDIR
737 AROS_CROSSTOOLSDIR
738 SRCDIR
739 AROS_BUILDDIR_UNIX
740 AROS_BUILDDIR
741 aros_target_toolchain
742 aros_flavour_uc
743 aros_flavour
744 aros_cpu
745 aros_arch
746 SDL_LIBS
747 SDL_CFLAGS
748 SDL_CONFIG
749 XMKMF
750 aros_cflags_iquote_end
751 aros_cflags_iquote
752 kernel_cflags_iquote_end
753 kernel_cflags_iquote
754 host_cflags_iquote_end
755 host_cflags_iquote
756 aros_target_nostdlib_ldflags
757 aros_target_detach_ldflags
758 aros_target_nix_ldflags
759 aros_target_nostartup_ldflags
760 aros_target_nostdinc_cflags
761 aros_kernel_rescomp
762 orig_target_objdump
763 orig_target_objcopy
764 orig_target_strip
765 orig_target_nm
766 orig_target_ranlib
767 orig_target_ar
768 orig_target_as
769 orig_target_ld
770 orig_target_cxx
771 orig_target_cc
772 orig_target_cpp
773 aros_kernel_objdump
774 aros_kernel_objcopy
775 aros_kernel_strip
776 aros_kernel_nm
777 aros_kernel_ranlib
778 aros_kernel_ar
779 aros_kernel_as
780 aros_kernel_ld
781 aros_kernel_cxx
782 aros_kernel_cc
783 aros_kernel_cpp
784 target_gcc_version
786 android_tool
787 CCACHE
788 DISTCC
789 LIBOBJS
790 EGREP
791 GREP
793 TEST
796 pkgpyexecdir
797 pyexecdir
798 pkgpythondir
799 pythondir
800 PYTHON_PLATFORM
801 PYTHON_EXEC_PREFIX
802 PYTHON_PREFIX
803 PYTHON_VERSION
804 PYTHON
805 PATCH
806 CHMOD
808 PPMTOILBM
809 PNGTOPNM
810 FLEX
811 BISON
814 UNIQ
815 SORT
816 TOUCH
817 MKDIR
818 ECHO
822 aros_host_strip
823 aros_host_ranlib
824 aros_host_ar
825 aros_host_automake
826 aros_host_autoheader
827 aros_host_autoconf
828 aros_host_aclocal
829 aros_host_ld
830 MMAKE
833 ac_ct_CC
834 CFLAGS
836 OBJEXT
837 EXEEXT
838 ac_ct_CXX
839 CPPFLAGS
840 LDFLAGS
841 CXXFLAGS
843 host_os
844 host_vendor
845 host_cpu
846 host
847 build_os
848 build_vendor
849 build_cpu
850 build
851 target_alias
852 host_alias
853 build_alias
854 LIBS
855 ECHO_T
856 ECHO_N
857 ECHO_C
858 DEFS
859 mandir
860 localedir
861 libdir
862 psdir
863 pdfdir
864 dvidir
865 htmldir
866 infodir
867 docdir
868 oldincludedir
869 includedir
870 localstatedir
871 sharedstatedir
872 sysconfdir
873 datadir
874 datarootdir
875 libexecdir
876 sbindir
877 bindir
878 program_transform_name
879 prefix
880 exec_prefix
881 PACKAGE_URL
882 PACKAGE_BUGREPORT
883 PACKAGE_STRING
884 PACKAGE_VERSION
885 PACKAGE_TARNAME
886 PACKAGE_NAME
887 PATH_SEPARATOR
888 SHELL'
889 ac_subst_files=''
890 ac_user_opts='
891 enable_option_checking
892 enable_build_type
893 enable_debug
894 enable_distcc
895 enable_ccache
896 with_kernel_gcc_version
897 with_optimization
898 with_paranoia
899 enable_target_variant
900 with_xcode
901 with_sdk_version
902 with_sdk
903 with_ndk
904 with_ndk_version
905 with_apk_version
906 enable_amigaos_compliance
907 with_kernel_toolchain_prefix
908 with_elf_toolchain_prefix
909 with_aros_toolchain
910 enable_crosstools
911 with_aros_toolchain_install
912 with_gcc_version
913 enable_objc
914 with_cpu
915 with_fpu
916 with_float
917 with_portssources
918 with_bootloader
919 with_iconset
920 with_theme
921 enable_includes
922 with_resolution
923 with_serial_debug
924 enable_palm_debug_hack
925 enable_usb30_code
926 enable_nesting_supervisor
927 enable_mmu
928 enable_x11_hidd
929 with_x
930 enable_x11_shm
931 enable_x11_vidmode
932 enable_sdl_hidd
933 with_sdl_prefix
934 with_sdl_exec_prefix
935 enable_sdltest
936 enable_dbus
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
942 CXXFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
948 CFLAGS
950 PYTHON
951 XMKMF'
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 ac_unrecognized_opts=
958 ac_unrecognized_sep=
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1013 case $ac_option in
1014 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *=) ac_optarg= ;;
1016 *) ac_optarg=yes ;;
1017 esac
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1021 case $ac_dashdash$ac_option in
1023 ac_dashdash=yes ;;
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1057 -disable-* | --disable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error $? "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=no ;;
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1083 -enable-* | --enable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=\$ac_optarg ;;
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1110 with_gas=yes ;;
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 ac_prev=htmldir ;;
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 | --ht=*)
1128 htmldir=$ac_optarg ;;
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 ac_prev=infodir ;;
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1142 -libdir | --libdir | --libdi | --libd)
1143 ac_prev=libdir ;;
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 ac_prev=mandir ;;
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1173 with_fp=no ;;
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1177 no_create=yes ;;
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 no_recursion=yes ;;
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 ac_prev=prefix ;;
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 ac_prev=pdfdir ;;
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1233 -psdir | --psdir | --psdi | --psd | --ps)
1234 ac_prev=psdir ;;
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 psdir=$ac_optarg ;;
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 silent=yes ;;
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 ac_prev=sbindir ;;
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 | --sbi=* | --sb=*)
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1251 | --sha | --sh)
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 | --sha=* | --sh=*)
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1260 ac_prev=site ;;
1261 -site=* | --site=* | --sit=*)
1262 site=$ac_optarg ;;
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 ac_prev=srcdir ;;
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 verbose=yes ;;
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1287 -with-* | --with-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error $? "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=\$ac_optarg ;;
1303 -without-* | --without-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error $? "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=no ;;
1319 --x)
1320 # Obsolete; use --with-x.
1321 with_x=yes ;;
1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324 | --x-incl | --x-inc | --x-in | --x-i)
1325 ac_prev=x_includes ;;
1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328 x_includes=$ac_optarg ;;
1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332 ac_prev=x_libraries ;;
1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335 x_libraries=$ac_optarg ;;
1337 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information"
1341 *=*)
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 case $ac_envvar in #(
1345 '' | [0-9]* | *[!_$as_cr_alnum]* )
1346 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1347 esac
1348 eval $ac_envvar=\$ac_optarg
1349 export $ac_envvar ;;
1352 # FIXME: should be removed in autoconf 3.0.
1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 esac
1360 done
1362 if test -n "$ac_prev"; then
1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364 as_fn_error $? "missing argument to $ac_option"
1367 if test -n "$ac_unrecognized_opts"; then
1368 case $enable_option_checking in
1369 no) ;;
1370 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
1389 case $ac_val in
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 esac
1393 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405 if test "x$build_alias" = x; then
1406 cross_compiling=maybe
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error $? "pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1444 /^X\(\/\/\)$/{
1445 s//\1/
1448 /^X\(\/\).*/{
1449 s//\1/
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1457 else
1458 ac_srcdir_defaulted=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures this package to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking ...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1547 cat <<\_ACEOF
1549 X features:
1550 --x-includes=DIR X include files are in DIR
1551 --x-libraries=DIR X library files are in DIR
1553 System types:
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 _ACEOF
1559 if test -n "$ac_init_help"; then
1561 cat <<\_ACEOF
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-build-type=TYPE
1568 Select the build type. Available types are:
1569 personal, nightly, snapshot, milestone, release. Do
1570 NOT use this option unless you know what you are
1571 doing! (default=personal)
1572 --enable-debug=list Enable different types of debug. Commas or
1573 whitespaces can be used to separate the items in the
1574 list. Available types of debug are: all, none,
1575 messages, stack, mungwall, modules, symbols. If no
1576 list is provided then "all" is assumed.
1577 (default=none)
1578 --enable-distcc Use distcc as a front end to the compiler
1579 (default=no).
1580 --enable-ccache Use ccache as a front end to the compiler
1581 (default=no).
1582 --enable-target-variant=NAME
1583 Enable a specific target variant(default=none)
1584 --enable-amigaos-compliance=VERSION
1585 Enforce userspace AmigaOS compliance to a specific
1586 KickStart version (default=none).
1587 --disable-crosstools Do not build cross-compiler toolchain
1588 --disable-objc Build without Objectve-C support
1589 --enable-includes=dir Alternative system include directory
1590 --enable-palm-debug-hack
1591 Enable palm debug output hack in palm native
1592 (default=no)
1593 --enable-usb30-code Enable usb3.0 code (default=no)
1594 --enable-nesting-supervisor
1595 Enable nesting supervisor support in unix
1596 (default=no)
1597 --disable-mmu Disable MMU support (default=enabled)
1598 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1599 --enable-x11-shm use X11 shared memory (default=auto)
1600 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1601 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1602 --disable-sdltest Do not try to compile and run a test SDL program
1603 --enable-dbus Enable DBUS support via dbus.library (default=no)
1605 Optional Packages:
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-kernel-gcc-version=VERSION
1609 Use gcc-VERSION for building bootstrap
1610 --with-optimization=FLAGS
1611 Use optimization flags FLAGS (default=-O2).
1612 --with-paranoia=FLAGS CC flags to enable paranoia
1613 --with-xcode=PATH Specify XCode path for iOS targets
1614 (default=/Developer).
1615 --with-sdk-version=VERSION
1616 Use iOS SDK version VERSION (default=4.1).
1617 --with-sdk=PATH Specify Android SDK path
1618 (default=$default_android_sdk).
1619 --with-ndk=PATH Specify Android NDK path (default=none).
1620 --with-sdk-version=LEVEL
1621 Use Android SDK for API LEVEL (default=12).
1622 --with-ndk-version=LEVEL
1623 Use Android NDK for API LEVEL (default=9).
1624 --with-apk-version=(release|debug)
1625 Which version of AROSBootstrap.apk to compile.
1626 Release version needs key for signing, debug version
1627 will only run in emulator. (default=release)
1628 --with-kernel-toolchain-prefix=...
1629 Specify crosscompile toolchain prefix for kernel
1630 objects
1631 --with-elf-toolchain-prefix=...
1632 Specify crosscompile toolchain prefix to wrap for
1633 AROS objects
1634 --with-aros-toolchain=PREFIX
1635 Specify prebuilt AROS toolchain. Use yes for default
1636 name
1637 --with-aros-toolchain-install=DIR
1638 Where to install or search for cross tools binaries
1639 --with-gcc-version=VERSION
1640 Use gcc-VERSION for building AROS
1641 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1642 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1643 --with-float=<spec> Specify floating point ABI
1644 (default=$gcc_default_float_abi).
1645 --with-portssources=DIR Where to download sourcecode for external ports
1646 --with-bootloader=NAME Use a specific bootloader
1647 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1648 --with-theme=NAME Use a specific GUI Theme
1649 --with-resolution=XRESxYRESxDEPTH
1650 Default resolution of the initial WorkbenchScreen
1651 --with-serial-debug Enable serial debug output in native (default=no)
1652 --with-x use the X Window System
1653 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1654 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1656 Some influential environment variables:
1657 CXX C++ compiler command
1658 CXXFLAGS C++ compiler flags
1659 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1660 nonstandard directory <lib dir>
1661 LIBS libraries to pass to the linker, e.g. -l<library>
1662 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1663 you have headers in a nonstandard directory <include dir>
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 CPP C preprocessor
1667 PYTHON the Python interpreter
1668 XMKMF Path to xmkmf, Makefile generator for X Window System
1670 Use these variables to override the choices made by `configure' or to help
1671 it to find libraries and programs with nonstandard names/locations.
1673 Report bugs to the package provider.
1674 _ACEOF
1675 ac_status=$?
1678 if test "$ac_init_help" = "recursive"; then
1679 # If there are subdirs, report their specific --help.
1680 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1681 test -d "$ac_dir" ||
1682 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1683 continue
1684 ac_builddir=.
1686 case "$ac_dir" in
1687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1690 # A ".." for each directory in $ac_dir_suffix.
1691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1692 case $ac_top_builddir_sub in
1693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1695 esac ;;
1696 esac
1697 ac_abs_top_builddir=$ac_pwd
1698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1699 # for backward compatibility:
1700 ac_top_builddir=$ac_top_build_prefix
1702 case $srcdir in
1703 .) # We are building in place.
1704 ac_srcdir=.
1705 ac_top_srcdir=$ac_top_builddir_sub
1706 ac_abs_top_srcdir=$ac_pwd ;;
1707 [\\/]* | ?:[\\/]* ) # Absolute name.
1708 ac_srcdir=$srcdir$ac_dir_suffix;
1709 ac_top_srcdir=$srcdir
1710 ac_abs_top_srcdir=$srcdir ;;
1711 *) # Relative name.
1712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1713 ac_top_srcdir=$ac_top_build_prefix$srcdir
1714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1715 esac
1716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718 cd "$ac_dir" || { ac_status=$?; continue; }
1719 # Check for guested configure.
1720 if test -f "$ac_srcdir/configure.gnu"; then
1721 echo &&
1722 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1723 elif test -f "$ac_srcdir/configure"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure" --help=recursive
1726 else
1727 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1728 fi || ac_status=$?
1729 cd "$ac_pwd" || { ac_status=$?; break; }
1730 done
1733 test -n "$ac_init_help" && exit $ac_status
1734 if $ac_init_version; then
1735 cat <<\_ACEOF
1736 configure
1737 generated by GNU Autoconf 2.69
1739 Copyright (C) 2012 Free Software Foundation, Inc.
1740 This configure script is free software; the Free Software Foundation
1741 gives unlimited permission to copy, distribute and modify it.
1742 _ACEOF
1743 exit
1746 ## ------------------------ ##
1747 ## Autoconf initialization. ##
1748 ## ------------------------ ##
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_c_try_compile LINENO
1789 # --------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_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_c_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_c_try_compile
1826 # ac_fn_c_try_cpp LINENO
1827 # ----------------------
1828 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_cpp ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if { { ac_try="$ac_cpp conftest.$ac_ext"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } > conftest.i && {
1848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_cpp
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_link ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
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_link") 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; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 test -x conftest$ac_exeext
1891 }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=1
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_link
1909 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912 # the include files in INCLUDES and setting the cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_header_mongrel ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if eval \${$3+:} false; then :
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 else
1927 # Is the header compilable?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929 $as_echo_n "checking $2 usability... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_header_compiler=yes
1937 else
1938 ac_header_compiler=no
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942 $as_echo "$ac_header_compiler" >&6; }
1944 # Is the header present?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946 $as_echo_n "checking $2 presence... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_cpp "$LINENO"; then :
1952 ac_header_preproc=yes
1953 else
1954 ac_header_preproc=no
1956 rm -f conftest.err conftest.i conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958 $as_echo "$ac_header_preproc" >&6; }
1960 # So? What about this header?
1961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 yes:no: )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 no:yes:* )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1972 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1976 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 esac
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 eval "$3=\$ac_header_compiler"
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_header_mongrel
1996 # ac_fn_c_try_run LINENO
1997 # ----------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1999 # that executables *can* be run.
2000 ac_fn_c_try_run ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_link"
2004 case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>&5
2011 ac_status=$?
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2014 { { case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_try") 2>&5
2021 ac_status=$?
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; }; }; then :
2024 ac_retval=0
2025 else
2026 $as_echo "$as_me: program exited with status $ac_status" >&5
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2030 ac_retval=$ac_status
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2036 } # ac_fn_c_try_run
2038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists and can be compiled using the include files in
2041 # INCLUDES, setting the cache variable VAR accordingly.
2042 ac_fn_c_check_header_compile ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_compile
2069 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2070 # ----------------------------------------------------
2071 # Tries to find if the field MEMBER exists in type AGGR, after including
2072 # INCLUDES, setting cache variable VAR accordingly.
2073 ac_fn_c_check_member ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2077 $as_echo_n "checking for $2.$3... " >&6; }
2078 if eval \${$4+:} false; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static $2 ac_aggr;
2088 if (ac_aggr.$3)
2089 return 0;
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$4=yes"
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2101 main ()
2103 static $2 ac_aggr;
2104 if (sizeof ac_aggr.$3)
2105 return 0;
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 eval "$4=yes"
2112 else
2113 eval "$4=no"
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 eval ac_res=\$$4
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 } # ac_fn_c_check_member
2126 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2127 # ---------------------------------------------
2128 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2129 # accordingly.
2130 ac_fn_c_check_decl ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 as_decl_name=`echo $2|sed 's/ *(.*//'`
2134 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2136 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 #ifndef $as_decl_name
2147 #ifdef __cplusplus
2148 (void) $as_decl_use;
2149 #else
2150 (void) $as_decl_name;
2151 #endif
2152 #endif
2155 return 0;
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 eval "$3=yes"
2160 else
2161 eval "$3=no"
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_decl
2172 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2173 # -------------------------------------------
2174 # Tests whether TYPE exists after having included INCLUDES, setting cache
2175 # variable VAR accordingly.
2176 ac_fn_c_check_type ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 eval "$3=no"
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2189 main ()
2191 if (sizeof ($2))
2192 return 0;
2194 return 0;
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 main ()
2204 if (sizeof (($2)))
2205 return 0;
2207 return 0;
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2212 else
2213 eval "$3=yes"
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 } # ac_fn_c_check_type
2226 # ac_fn_c_check_func LINENO FUNC VAR
2227 # ----------------------------------
2228 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2229 ac_fn_c_check_func ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \${$3+:} false; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2241 #define $2 innocuous_$2
2243 /* System header to define __stub macros and hopefully few prototypes,
2244 which can conflict with char $2 (); below.
2245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2246 <limits.h> exists even on freestanding compilers. */
2248 #ifdef __STDC__
2249 # include <limits.h>
2250 #else
2251 # include <assert.h>
2252 #endif
2254 #undef $2
2256 /* Override any GCC internal prototype to avoid an error.
2257 Use char because int might match the return type of a GCC
2258 builtin and then its argument prototype would still apply. */
2259 #ifdef __cplusplus
2260 extern "C"
2261 #endif
2262 char $2 ();
2263 /* The GNU C library defines this for functions which it implements
2264 to always fail with ENOSYS. Some functions are actually named
2265 something starting with __ and the normal name is an alias. */
2266 #if defined __stub_$2 || defined __stub___$2
2267 choke me
2268 #endif
2271 main ()
2273 return $2 ();
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_link "$LINENO"; then :
2279 eval "$3=yes"
2280 else
2281 eval "$3=no"
2283 rm -f core conftest.err conftest.$ac_objext \
2284 conftest$ac_exeext conftest.$ac_ext
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_func
2292 cat >config.log <<_ACEOF
2293 This file contains any messages produced by compilers while
2294 running configure, to aid debugging if configure makes a mistake.
2296 It was created by $as_me, which was
2297 generated by GNU Autoconf 2.69. Invocation command line was
2299 $ $0 $@
2301 _ACEOF
2302 exec 5>>config.log
2304 cat <<_ASUNAME
2305 ## --------- ##
2306 ## Platform. ##
2307 ## --------- ##
2309 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2318 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2319 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2320 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2322 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2323 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2324 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2326 _ASUNAME
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 $as_echo "PATH: $as_dir"
2334 done
2335 IFS=$as_save_IFS
2337 } >&5
2339 cat >&5 <<_ACEOF
2342 ## ----------- ##
2343 ## Core tests. ##
2344 ## ----------- ##
2346 _ACEOF
2349 # Keep a trace of the command line.
2350 # Strip out --no-create and --no-recursion so they do not pile up.
2351 # Strip out --silent because we don't want to record it for future runs.
2352 # Also quote any args containing shell meta-characters.
2353 # Make two passes to allow for proper duplicate-argument suppression.
2354 ac_configure_args=
2355 ac_configure_args0=
2356 ac_configure_args1=
2357 ac_must_keep_next=false
2358 for ac_pass in 1 2
2360 for ac_arg
2362 case $ac_arg in
2363 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2365 | -silent | --silent | --silen | --sile | --sil)
2366 continue ;;
2367 *\'*)
2368 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 esac
2370 case $ac_pass in
2371 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373 as_fn_append ac_configure_args1 " '$ac_arg'"
2374 if test $ac_must_keep_next = true; then
2375 ac_must_keep_next=false # Got value, back to normal.
2376 else
2377 case $ac_arg in
2378 *=* | --config-cache | -C | -disable-* | --disable-* \
2379 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2380 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2381 | -with-* | --with-* | -without-* | --without-* | --x)
2382 case "$ac_configure_args0 " in
2383 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384 esac
2386 -* ) ac_must_keep_next=true ;;
2387 esac
2389 as_fn_append ac_configure_args " '$ac_arg'"
2391 esac
2392 done
2393 done
2394 { ac_configure_args0=; unset ac_configure_args0;}
2395 { ac_configure_args1=; unset ac_configure_args1;}
2397 # When interrupted or exit'd, cleanup temporary files, and complete
2398 # config.log. We remove comments because anyway the quotes in there
2399 # would cause problems or look ugly.
2400 # WARNING: Use '\'' to represent an apostrophe within the trap.
2401 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402 trap 'exit_status=$?
2403 # Save into config.log some information that might help in debugging.
2405 echo
2407 $as_echo "## ---------------- ##
2408 ## Cache variables. ##
2409 ## ---------------- ##"
2410 echo
2411 # The following way of writing the cache mishandles newlines in values,
2413 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in #(
2416 *${as_nl}*)
2417 case $ac_var in #(
2418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2420 esac
2421 case $ac_var in #(
2422 _ | IFS | as_nl) ;; #(
2423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2424 *) { eval $ac_var=; unset $ac_var;} ;;
2425 esac ;;
2426 esac
2427 done
2428 (set) 2>&1 |
2429 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2430 *${as_nl}ac_space=\ *)
2431 sed -n \
2432 "s/'\''/'\''\\\\'\'''\''/g;
2433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2434 ;; #(
2436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438 esac |
2439 sort
2441 echo
2443 $as_echo "## ----------------- ##
2444 ## Output variables. ##
2445 ## ----------------- ##"
2446 echo
2447 for ac_var in $ac_subst_vars
2449 eval ac_val=\$$ac_var
2450 case $ac_val in
2451 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452 esac
2453 $as_echo "$ac_var='\''$ac_val'\''"
2454 done | sort
2455 echo
2457 if test -n "$ac_subst_files"; then
2458 $as_echo "## ------------------- ##
2459 ## File substitutions. ##
2460 ## ------------------- ##"
2461 echo
2462 for ac_var in $ac_subst_files
2464 eval ac_val=\$$ac_var
2465 case $ac_val in
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 esac
2468 $as_echo "$ac_var='\''$ac_val'\''"
2469 done | sort
2470 echo
2473 if test -s confdefs.h; then
2474 $as_echo "## ----------- ##
2475 ## confdefs.h. ##
2476 ## ----------- ##"
2477 echo
2478 cat confdefs.h
2479 echo
2481 test "$ac_signal" != 0 &&
2482 $as_echo "$as_me: caught signal $ac_signal"
2483 $as_echo "$as_me: exit $exit_status"
2484 } >&5
2485 rm -f core *.core core.conftest.* &&
2486 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 exit $exit_status
2489 for ac_signal in 1 2 13 15; do
2490 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491 done
2492 ac_signal=0
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest* confdefs.h
2497 $as_echo "/* confdefs.h */" > confdefs.h
2499 # Predefined preprocessor variables.
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 _ACEOF
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2523 _ACEOF
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2528 ac_site_file1=NONE
2529 ac_site_file2=NONE
2530 if test -n "$CONFIG_SITE"; then
2531 # We do not want a PATH search for config.site.
2532 case $CONFIG_SITE in #((
2533 -*) ac_site_file1=./$CONFIG_SITE;;
2534 */*) ac_site_file1=$CONFIG_SITE;;
2535 *) ac_site_file1=./$CONFIG_SITE;;
2536 esac
2537 elif test "x$prefix" != xNONE; then
2538 ac_site_file1=$prefix/share/config.site
2539 ac_site_file2=$prefix/etc/config.site
2540 else
2541 ac_site_file1=$ac_default_prefix/share/config.site
2542 ac_site_file2=$ac_default_prefix/etc/config.site
2544 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546 test "x$ac_site_file" = xNONE && continue
2547 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550 sed 's/^/| /' "$ac_site_file" >&5
2551 . "$ac_site_file" \
2552 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $? "failed to load site script $ac_site_file
2555 See \`config.log' for more details" "$LINENO" 5; }
2557 done
2559 if test -r "$cache_file"; then
2560 # Some versions of bash will fail to source /dev/null (special files
2561 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2562 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2564 $as_echo "$as_me: loading cache $cache_file" >&6;}
2565 case $cache_file in
2566 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2567 *) . "./$cache_file";;
2568 esac
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2572 $as_echo "$as_me: creating cache $cache_file" >&6;}
2573 >$cache_file
2576 as_fn_append ac_header_list " stdlib.h"
2577 as_fn_append ac_header_list " unistd.h"
2578 as_fn_append ac_header_list " sys/param.h"
2579 # Check that the precious variables saved in the cache have kept the same
2580 # value.
2581 ac_cache_corrupted=false
2582 for ac_var in $ac_precious_vars; do
2583 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584 eval ac_new_set=\$ac_env_${ac_var}_set
2585 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586 eval ac_new_val=\$ac_env_${ac_var}_value
2587 case $ac_old_set,$ac_new_set in
2588 set,)
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2590 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2591 ac_cache_corrupted=: ;;
2592 ,set)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,);;
2598 if test "x$ac_old_val" != "x$ac_new_val"; then
2599 # differences in whitespace do not lead to failure.
2600 ac_old_val_w=`echo x $ac_old_val`
2601 ac_new_val_w=`echo x $ac_new_val`
2602 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2604 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2605 ac_cache_corrupted=:
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2608 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2609 eval $ac_var=\$ac_old_val
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2612 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2614 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615 fi;;
2616 esac
2617 # Pass precious variables to config.status.
2618 if test "$ac_new_set" = set; then
2619 case $ac_new_val in
2620 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621 *) ac_arg=$ac_var=$ac_new_val ;;
2622 esac
2623 case " $ac_configure_args " in
2624 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2625 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626 esac
2628 done
2629 if $ac_cache_corrupted; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2634 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2636 ## -------------------- ##
2637 ## Main body of script. ##
2638 ## -------------------- ##
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 ac_aux_dir=
2649 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2650 if test -f "$ac_dir/install-sh"; then
2651 ac_aux_dir=$ac_dir
2652 ac_install_sh="$ac_aux_dir/install-sh -c"
2653 break
2654 elif test -f "$ac_dir/install.sh"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/install.sh -c"
2657 break
2658 elif test -f "$ac_dir/shtool"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/shtool install -c"
2661 break
2663 done
2664 if test -z "$ac_aux_dir"; then
2665 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2668 # These three variables are undocumented and unsupported,
2669 # and are intended to be withdrawn in a future Autoconf release.
2670 # They can cause serious problems if a builder's source tree is in a directory
2671 # whose full name contains unusual characters.
2672 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2673 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2674 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2678 # Check what host we are running on.
2679 # If a target is not suggested, we use this one.
2680 # Note that what we call a target, Autoconf calls a host.
2681 # Make sure we can run config.sub.
2682 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2683 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2686 $as_echo_n "checking build system type... " >&6; }
2687 if ${ac_cv_build+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 ac_build_alias=$build_alias
2691 test "x$ac_build_alias" = x &&
2692 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2693 test "x$ac_build_alias" = x &&
2694 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2695 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2700 $as_echo "$ac_cv_build" >&6; }
2701 case $ac_cv_build in
2702 *-*-*) ;;
2703 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2704 esac
2705 build=$ac_cv_build
2706 ac_save_IFS=$IFS; IFS='-'
2707 set x $ac_cv_build
2708 shift
2709 build_cpu=$1
2710 build_vendor=$2
2711 shift; shift
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2714 build_os=$*
2715 IFS=$ac_save_IFS
2716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2720 $as_echo_n "checking host system type... " >&6; }
2721 if ${ac_cv_host+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test "x$host_alias" = x; then
2725 ac_cv_host=$ac_cv_build
2726 else
2727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2728 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2733 $as_echo "$ac_cv_host" >&6; }
2734 case $ac_cv_host in
2735 *-*-*) ;;
2736 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2737 esac
2738 host=$ac_cv_host
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_host
2741 shift
2742 host_cpu=$1
2743 host_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 host_os=$*
2748 IFS=$ac_save_IFS
2749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2753 # The AROS target is slightly different to the normal GNU style
2754 # format. We don't have the middle part, and we reverse the order
2755 # of the $(CPU) and $(OS) bits.
2757 # Don't strip the version of the target yet, it might be
2758 # useful on some systems.
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2761 $as_echo_n "checking for AROS style target... " >&6; }
2763 if test "$target" = "NONE" ; then
2764 target=$host_os-$host_cpu
2765 else
2766 if test "$target" = "" ; then
2767 target=$host_os-$host_cpu
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2771 $as_echo "$target" >&6; }
2773 if test "$host_os" = "mingw32" ; then
2774 PWDCMD="pwd -W"
2777 # Don't know where else to put this...
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2779 $as_echo_n "checking building AROS in... " >&6; }
2780 AROS_BUILDDIR=`${PWDCMD-pwd}`
2781 AROS_BUILDDIR_UNIX=${PWD}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2783 $as_echo "$AROS_BUILDDIR" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2786 $as_echo_n "checking AROS source in... " >&6; }
2787 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2788 SRCDIR=${srcpwd}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2790 $as_echo "$SRCDIR" >&6; }
2792 # Parse the target field into something useful.
2794 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2795 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2798 # Some debug output, to be removed again.
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2800 $as_echo_n "checking for target system (debug output)... " >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2802 $as_echo "$target_os" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2804 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2806 $as_echo "$target_cpu" >&6; }
2808 aros_default_wbwidth=800
2809 aros_default_wbheight=600
2810 aros_default_wbdepth=4
2813 # The first step is to find the host binaries.
2814 # Check for a compiler.
2815 # Due to a bug in autoconf check for c++ compiler first.
2816 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2817 ac_ext=cpp
2818 ac_cpp='$CXXCPP $CPPFLAGS'
2819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2822 if test -z "$CXX"; then
2823 if test -n "$CCC"; then
2824 CXX=$CCC
2825 else
2826 if test -n "$ac_tool_prefix"; then
2827 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_CXX+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$CXX"; then
2837 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2852 IFS=$as_save_IFS
2856 CXX=$ac_cv_prog_CXX
2857 if test -n "$CXX"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2859 $as_echo "$CXX" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2866 test -n "$CXX" && break
2867 done
2869 if test -z "$CXX"; then
2870 ac_ct_CXX=$CXX
2871 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$ac_ct_CXX"; then
2881 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CXX="$ac_prog"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2894 done
2895 done
2896 IFS=$as_save_IFS
2900 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2901 if test -n "$ac_ct_CXX"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2903 $as_echo "$ac_ct_CXX" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2910 test -n "$ac_ct_CXX" && break
2911 done
2913 if test "x$ac_ct_CXX" = x; then
2914 CXX="g++"
2915 else
2916 case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922 CXX=$ac_ct_CXX
2928 # Provide some information about the compiler.
2929 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2930 set X $ac_compile
2931 ac_compiler=$2
2932 for ac_option in --version -v -V -qversion; do
2933 { { ac_try="$ac_compiler $ac_option >&5"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2941 ac_status=$?
2942 if test -s conftest.err; then
2943 sed '10a\
2944 ... rest of stderr output deleted ...
2945 10q' conftest.err >conftest.er1
2946 cat conftest.er1 >&5
2948 rm -f conftest.er1 conftest.err
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951 done
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2957 main ()
2961 return 0;
2963 _ACEOF
2964 ac_clean_files_save=$ac_clean_files
2965 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2966 # Try to create an executable without -o first, disregard a.out.
2967 # It will help us diagnose broken compilers, and finding out an intuition
2968 # of exeext.
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2970 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2971 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2973 # The possible output files:
2974 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2976 ac_rmfiles=
2977 for ac_file in $ac_files
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2982 esac
2983 done
2984 rm -f $ac_rmfiles
2986 if { { ac_try="$ac_link_default"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992 $as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_link_default") 2>&5
2994 ac_status=$?
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
2997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2998 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2999 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3000 # so that the user can short-circuit this test for compilers unknown to
3001 # Autoconf.
3002 for ac_file in $ac_files ''
3004 test -f "$ac_file" || continue
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3008 [ab].out )
3009 # We found the default executable, but exeext='' is most
3010 # certainly right.
3011 break;;
3012 *.* )
3013 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3014 then :; else
3015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 # We set ac_cv_exeext here because the later test for it is not
3018 # safe: cross compilers may not add the suffix if given an `-o'
3019 # argument, so we may need to know it at that point already.
3020 # Even if this section looks crufty: it has the advantage of
3021 # actually working.
3022 break;;
3024 break;;
3025 esac
3026 done
3027 test "$ac_cv_exeext" = no && ac_cv_exeext=
3029 else
3030 ac_file=''
3032 if test -z "$ac_file"; then :
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 $as_echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error 77 "C++ compiler cannot create executables
3041 See \`config.log' for more details" "$LINENO" 5; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044 $as_echo "yes" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3047 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3049 $as_echo "$ac_file" >&6; }
3050 ac_exeext=$ac_cv_exeext
3052 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3053 ac_clean_files=$ac_clean_files_save
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3055 $as_echo_n "checking for suffix of executables... " >&6; }
3056 if { { ac_try="$ac_link"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3067 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3068 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3069 # work properly (i.e., refer to `conftest.exe'), while it won't with
3070 # `rm'.
3071 for ac_file in conftest.exe conftest conftest.*; do
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 break;;
3077 * ) break;;
3078 esac
3079 done
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details" "$LINENO" 5; }
3086 rm -f conftest conftest$ac_cv_exeext
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3088 $as_echo "$ac_cv_exeext" >&6; }
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3095 #include <stdio.h>
3097 main ()
3099 FILE *f = fopen ("conftest.out", "w");
3100 return ferror (f) || fclose (f) != 0;
3103 return 0;
3105 _ACEOF
3106 ac_clean_files="$ac_clean_files conftest.out"
3107 # Check that the compiler produces executables we can run. If not, either
3108 # the compiler is broken, or we cross compile.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3110 $as_echo_n "checking whether we are cross compiling... " >&6; }
3111 if test "$cross_compiling" != yes; then
3112 { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }
3123 if { ac_try='./conftest$ac_cv_exeext'
3124 { { case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_try") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; }; then
3134 cross_compiling=no
3135 else
3136 if test "$cross_compiling" = maybe; then
3137 cross_compiling=yes
3138 else
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error $? "cannot run C++ compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details" "$LINENO" 5; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3148 $as_echo "$cross_compiling" >&6; }
3150 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3151 ac_clean_files=$ac_clean_files_save
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3153 $as_echo_n "checking for suffix of object files... " >&6; }
3154 if ${ac_cv_objext+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.o conftest.obj
3169 if { { ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_compile") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 for ac_file in conftest.o conftest.obj conftest.*; do
3181 test -f "$ac_file" || continue;
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3185 break;;
3186 esac
3187 done
3188 else
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error $? "cannot compute suffix of object files: cannot compile
3195 See \`config.log' for more details" "$LINENO" 5; }
3197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3200 $as_echo "$ac_cv_objext" >&6; }
3201 OBJEXT=$ac_cv_objext
3202 ac_objext=$OBJEXT
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3204 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3205 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3212 main ()
3214 #ifndef __GNUC__
3215 choke me
3216 #endif
3219 return 0;
3221 _ACEOF
3222 if ac_fn_cxx_try_compile "$LINENO"; then :
3223 ac_compiler_gnu=yes
3224 else
3225 ac_compiler_gnu=no
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3232 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3233 if test $ac_compiler_gnu = yes; then
3234 GXX=yes
3235 else
3236 GXX=
3238 ac_test_CXXFLAGS=${CXXFLAGS+set}
3239 ac_save_CXXFLAGS=$CXXFLAGS
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3241 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3242 if ${ac_cv_prog_cxx_g+:} false; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3246 ac_cxx_werror_flag=yes
3247 ac_cv_prog_cxx_g=no
3248 CXXFLAGS="-g"
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3253 main ()
3257 return 0;
3259 _ACEOF
3260 if ac_fn_cxx_try_compile "$LINENO"; then :
3261 ac_cv_prog_cxx_g=yes
3262 else
3263 CXXFLAGS=""
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 if ac_fn_cxx_try_compile "$LINENO"; then :
3277 else
3278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3279 CXXFLAGS="-g"
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3288 return 0;
3290 _ACEOF
3291 if ac_fn_cxx_try_compile "$LINENO"; then :
3292 ac_cv_prog_cxx_g=yes
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3302 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3303 if test "$ac_test_CXXFLAGS" = set; then
3304 CXXFLAGS=$ac_save_CXXFLAGS
3305 elif test $ac_cv_prog_cxx_g = yes; then
3306 if test "$GXX" = yes; then
3307 CXXFLAGS="-g -O2"
3308 else
3309 CXXFLAGS="-g"
3311 else
3312 if test "$GXX" = yes; then
3313 CXXFLAGS="-O2"
3314 else
3315 CXXFLAGS=
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3351 done
3352 done
3353 IFS=$as_save_IFS
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3368 if test -z "$ac_cv_prog_CC"; then
3369 ac_ct_CC=$CC
3370 # Extract the first word of "gcc", so it can be a program name with args.
3371 set dummy gcc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$ac_ct_CC"; then
3378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_ac_ct_CC="gcc"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3391 done
3392 done
3393 IFS=$as_save_IFS
3397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3398 if test -n "$ac_ct_CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3400 $as_echo "$ac_ct_CC" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3406 if test "x$ac_ct_CC" = x; then
3407 CC=""
3408 else
3409 case $cross_compiling:$ac_tool_warned in
3410 yes:)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3413 ac_tool_warned=yes ;;
3414 esac
3415 CC=$ac_ct_CC
3417 else
3418 CC="$ac_cv_prog_CC"
3421 if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
3423 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3424 set dummy ${ac_tool_prefix}cc; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440 ac_cv_prog_CC="${ac_tool_prefix}cc"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3444 done
3445 done
3446 IFS=$as_save_IFS
3450 CC=$ac_cv_prog_CC
3451 if test -n "$CC"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453 $as_echo "$CC" >&6; }
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3462 if test -z "$CC"; then
3463 # Extract the first word of "cc", so it can be a program name with args.
3464 set dummy cc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 ac_prog_rejected=no
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3482 ac_prog_rejected=yes
3483 continue
3485 ac_cv_prog_CC="cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3489 done
3490 done
3491 IFS=$as_save_IFS
3493 if test $ac_prog_rejected = yes; then
3494 # We found a bogon in the path, so make sure we never use it.
3495 set dummy $ac_cv_prog_CC
3496 shift
3497 if test $# != 0; then
3498 # We chose a different compiler from the bogus one.
3499 # However, it has the same basename, so the bogon will be chosen
3500 # first if we set CC to just the basename; use the full file name.
3501 shift
3502 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3507 CC=$ac_cv_prog_CC
3508 if test -n "$CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 $as_echo "$CC" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3518 if test -z "$CC"; then
3519 if test -n "$ac_tool_prefix"; then
3520 for ac_prog in cl.exe
3522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 CC=$ac_cv_prog_CC
3550 if test -n "$CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552 $as_echo "$CC" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3559 test -n "$CC" && break
3560 done
3562 if test -z "$CC"; then
3563 ac_ct_CC=$CC
3564 for ac_prog in cl.exe
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$ac_ct_CC"; then
3574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_ac_ct_CC="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3589 IFS=$as_save_IFS
3593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594 if test -n "$ac_ct_CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3596 $as_echo "$ac_ct_CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$ac_ct_CC" && break
3604 done
3606 if test "x$ac_ct_CC" = x; then
3607 CC=""
3608 else
3609 case $cross_compiling:$ac_tool_warned in
3610 yes:)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613 ac_tool_warned=yes ;;
3614 esac
3615 CC=$ac_ct_CC
3622 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "no acceptable C compiler found in \$PATH
3625 See \`config.log' for more details" "$LINENO" 5; }
3627 # Provide some information about the compiler.
3628 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3629 set X $ac_compile
3630 ac_compiler=$2
3631 for ac_option in --version -v -V -qversion; do
3632 { { ac_try="$ac_compiler $ac_option >&5"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3640 ac_status=$?
3641 if test -s conftest.err; then
3642 sed '10a\
3643 ... rest of stderr output deleted ...
3644 10q' conftest.err >conftest.er1
3645 cat conftest.er1 >&5
3647 rm -f conftest.er1 conftest.err
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }
3650 done
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3653 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3654 if ${ac_cv_c_compiler_gnu+:} false; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3661 main ()
3663 #ifndef __GNUC__
3664 choke me
3665 #endif
3668 return 0;
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_compiler_gnu=yes
3673 else
3674 ac_compiler_gnu=no
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3683 GCC=yes
3684 else
3685 GCC=
3687 ac_test_CFLAGS=${CFLAGS+set}
3688 ac_save_CFLAGS=$CFLAGS
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3691 if ${ac_cv_prog_cc_g+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 ac_save_c_werror_flag=$ac_c_werror_flag
3695 ac_c_werror_flag=yes
3696 ac_cv_prog_cc_g=no
3697 CFLAGS="-g"
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 main ()
3706 return 0;
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_g=yes
3711 else
3712 CFLAGS=""
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3717 main ()
3721 return 0;
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3726 else
3727 ac_c_werror_flag=$ac_save_c_werror_flag
3728 CFLAGS="-g"
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3733 main ()
3737 return 0;
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_g=yes
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3751 $as_echo "$ac_cv_prog_cc_g" >&6; }
3752 if test "$ac_test_CFLAGS" = set; then
3753 CFLAGS=$ac_save_CFLAGS
3754 elif test $ac_cv_prog_cc_g = yes; then
3755 if test "$GCC" = yes; then
3756 CFLAGS="-g -O2"
3757 else
3758 CFLAGS="-g"
3760 else
3761 if test "$GCC" = yes; then
3762 CFLAGS="-O2"
3763 else
3764 CFLAGS=
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3769 if ${ac_cv_prog_cc_c89+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 ac_cv_prog_cc_c89=no
3773 ac_save_CC=$CC
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #include <stdarg.h>
3777 #include <stdio.h>
3778 struct stat;
3779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3780 struct buf { int x; };
3781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3782 static char *e (p, i)
3783 char **p;
3784 int i;
3786 return p[i];
3788 static char *f (char * (*g) (char **, int), char **p, ...)
3790 char *s;
3791 va_list v;
3792 va_start (v,p);
3793 s = g (p, va_arg (v,int));
3794 va_end (v);
3795 return s;
3798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3799 function prototypes and stuff, but not '\xHH' hex character constants.
3800 These don't provoke an error unfortunately, instead are silently treated
3801 as 'x'. The following induces an error, until -std is added to get
3802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3803 array size at least. It's necessary to write '\x00'==0 to get something
3804 that's true only with -std. */
3805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3808 inside strings and character constants. */
3809 #define FOO(x) 'x'
3810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812 int test (int i, double x);
3813 struct s1 {int (*f) (int a);};
3814 struct s2 {int (*f) (double a);};
3815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816 int argc;
3817 char **argv;
3819 main ()
3821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 return 0;
3825 _ACEOF
3826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829 CC="$ac_save_CC $ac_arg"
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_c89=$ac_arg
3833 rm -f core conftest.err conftest.$ac_objext
3834 test "x$ac_cv_prog_cc_c89" != "xno" && break
3835 done
3836 rm -f conftest.$ac_ext
3837 CC=$ac_save_CC
3840 # AC_CACHE_VAL
3841 case "x$ac_cv_prog_cc_c89" in
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3844 $as_echo "none needed" >&6; } ;;
3845 xno)
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847 $as_echo "unsupported" >&6; } ;;
3849 CC="$CC $ac_cv_prog_cc_c89"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3851 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852 esac
3853 if test "x$ac_cv_prog_cc_c89" != xno; then :
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 case $ac_cv_prog_cc_stdc in #(
3864 no) :
3865 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3866 *) :
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3868 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3869 if ${ac_cv_prog_cc_c99+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_cv_prog_cc_c99=no
3873 ac_save_CC=$CC
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <stdarg.h>
3877 #include <stdbool.h>
3878 #include <stdlib.h>
3879 #include <wchar.h>
3880 #include <stdio.h>
3882 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3883 #define debug(...) fprintf (stderr, __VA_ARGS__)
3884 #define showlist(...) puts (#__VA_ARGS__)
3885 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3886 static void
3887 test_varargs_macros (void)
3889 int x = 1234;
3890 int y = 5678;
3891 debug ("Flag");
3892 debug ("X = %d\n", x);
3893 showlist (The first, second, and third items.);
3894 report (x>y, "x is %d but y is %d", x, y);
3897 // Check long long types.
3898 #define BIG64 18446744073709551615ull
3899 #define BIG32 4294967295ul
3900 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3901 #if !BIG_OK
3902 your preprocessor is broken;
3903 #endif
3904 #if BIG_OK
3905 #else
3906 your preprocessor is broken;
3907 #endif
3908 static long long int bignum = -9223372036854775807LL;
3909 static unsigned long long int ubignum = BIG64;
3911 struct incomplete_array
3913 int datasize;
3914 double data[];
3917 struct named_init {
3918 int number;
3919 const wchar_t *name;
3920 double average;
3923 typedef const char *ccp;
3925 static inline int
3926 test_restrict (ccp restrict text)
3928 // See if C++-style comments work.
3929 // Iterate through items via the restricted pointer.
3930 // Also check for declarations in for loops.
3931 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3932 continue;
3933 return 0;
3936 // Check varargs and va_copy.
3937 static void
3938 test_varargs (const char *format, ...)
3940 va_list args;
3941 va_start (args, format);
3942 va_list args_copy;
3943 va_copy (args_copy, args);
3945 const char *str;
3946 int number;
3947 float fnumber;
3949 while (*format)
3951 switch (*format++)
3953 case 's': // string
3954 str = va_arg (args_copy, const char *);
3955 break;
3956 case 'd': // int
3957 number = va_arg (args_copy, int);
3958 break;
3959 case 'f': // float
3960 fnumber = va_arg (args_copy, double);
3961 break;
3962 default:
3963 break;
3966 va_end (args_copy);
3967 va_end (args);
3971 main ()
3974 // Check bool.
3975 _Bool success = false;
3977 // Check restrict.
3978 if (test_restrict ("String literal") == 0)
3979 success = true;
3980 char *restrict newvar = "Another string";
3982 // Check varargs.
3983 test_varargs ("s, d' f .", "string", 65, 34.234);
3984 test_varargs_macros ();
3986 // Check flexible array members.
3987 struct incomplete_array *ia =
3988 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3989 ia->datasize = 10;
3990 for (int i = 0; i < ia->datasize; ++i)
3991 ia->data[i] = i * 1.234;
3993 // Check named initializers.
3994 struct named_init ni = {
3995 .number = 34,
3996 .name = L"Test wide string",
3997 .average = 543.34343,
4000 ni.number = 58;
4002 int dynamic_array[ni.number];
4003 dynamic_array[ni.number - 1] = 543;
4005 // work around unused variable warnings
4006 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4007 || dynamic_array[ni.number - 1] != 543);
4010 return 0;
4012 _ACEOF
4013 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4015 CC="$ac_save_CC $ac_arg"
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_c99=$ac_arg
4019 rm -f core conftest.err conftest.$ac_objext
4020 test "x$ac_cv_prog_cc_c99" != "xno" && break
4021 done
4022 rm -f conftest.$ac_ext
4023 CC=$ac_save_CC
4026 # AC_CACHE_VAL
4027 case "x$ac_cv_prog_cc_c99" in
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;;
4031 xno)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 $as_echo "unsupported" >&6; } ;;
4035 CC="$CC $ac_cv_prog_cc_c99"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4037 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4038 esac
4039 if test "x$ac_cv_prog_cc_c99" != xno; then :
4040 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4044 if ${ac_cv_prog_cc_c89+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <stdarg.h>
4052 #include <stdio.h>
4053 struct stat;
4054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4055 struct buf { int x; };
4056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4057 static char *e (p, i)
4058 char **p;
4059 int i;
4061 return p[i];
4063 static char *f (char * (*g) (char **, int), char **p, ...)
4065 char *s;
4066 va_list v;
4067 va_start (v,p);
4068 s = g (p, va_arg (v,int));
4069 va_end (v);
4070 return s;
4073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4074 function prototypes and stuff, but not '\xHH' hex character constants.
4075 These don't provoke an error unfortunately, instead are silently treated
4076 as 'x'. The following induces an error, until -std is added to get
4077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4078 array size at least. It's necessary to write '\x00'==0 to get something
4079 that's true only with -std. */
4080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4083 inside strings and character constants. */
4084 #define FOO(x) 'x'
4085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4087 int test (int i, double x);
4088 struct s1 {int (*f) (int a);};
4089 struct s2 {int (*f) (double a);};
4090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091 int argc;
4092 char **argv;
4094 main ()
4096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4098 return 0;
4100 _ACEOF
4101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_c89=$ac_arg
4108 rm -f core conftest.err conftest.$ac_objext
4109 test "x$ac_cv_prog_cc_c89" != "xno" && break
4110 done
4111 rm -f conftest.$ac_ext
4112 CC=$ac_save_CC
4115 # AC_CACHE_VAL
4116 case "x$ac_cv_prog_cc_c89" in
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119 $as_echo "none needed" >&6; } ;;
4120 xno)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122 $as_echo "unsupported" >&6; } ;;
4124 CC="$CC $ac_cv_prog_cc_c89"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4127 esac
4128 if test "x$ac_cv_prog_cc_c89" != xno; then :
4129 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4130 else
4131 ac_cv_prog_cc_stdc=no
4136 esac
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4138 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4139 if ${ac_cv_prog_cc_stdc+:} false; then :
4140 $as_echo_n "(cached) " >&6
4143 case $ac_cv_prog_cc_stdc in #(
4144 no) :
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;; #(
4147 '') :
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 $as_echo "none needed" >&6; } ;; #(
4150 *) :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4152 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4153 esac
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4161 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4164 CPP=
4166 if test -z "$CPP"; then
4167 if ${ac_cv_prog_CPP+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 # Double quotes because CPP needs to be expanded
4171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4173 ac_preproc_ok=false
4174 for ac_c_preproc_warn_flag in '' yes
4176 # Use a header file that comes with gcc, so configuring glibc
4177 # with a fresh cross-compiler works.
4178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 # <limits.h> exists even on freestanding compilers.
4180 # On the NeXT, cc -E runs the code through the compiler's parser,
4181 # not just through cpp. "Syntax error" is here to catch this case.
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #ifdef __STDC__
4185 # include <limits.h>
4186 #else
4187 # include <assert.h>
4188 #endif
4189 Syntax error
4190 _ACEOF
4191 if ac_fn_c_try_cpp "$LINENO"; then :
4193 else
4194 # Broken: fails on valid input.
4195 continue
4197 rm -f conftest.err conftest.i conftest.$ac_ext
4199 # OK, works on sane cases. Now check whether nonexistent headers
4200 # can be detected and how.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <ac_nonexistent.h>
4204 _ACEOF
4205 if ac_fn_c_try_cpp "$LINENO"; then :
4206 # Broken: success on invalid input.
4207 continue
4208 else
4209 # Passes both tests.
4210 ac_preproc_ok=:
4211 break
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4215 done
4216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4217 rm -f conftest.i conftest.err conftest.$ac_ext
4218 if $ac_preproc_ok; then :
4219 break
4222 done
4223 ac_cv_prog_CPP=$CPP
4226 CPP=$ac_cv_prog_CPP
4227 else
4228 ac_cv_prog_CPP=$CPP
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4231 $as_echo "$CPP" >&6; }
4232 ac_preproc_ok=false
4233 for ac_c_preproc_warn_flag in '' yes
4235 # Use a header file that comes with gcc, so configuring glibc
4236 # with a fresh cross-compiler works.
4237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4238 # <limits.h> exists even on freestanding compilers.
4239 # On the NeXT, cc -E runs the code through the compiler's parser,
4240 # not just through cpp. "Syntax error" is here to catch this case.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #ifdef __STDC__
4244 # include <limits.h>
4245 #else
4246 # include <assert.h>
4247 #endif
4248 Syntax error
4249 _ACEOF
4250 if ac_fn_c_try_cpp "$LINENO"; then :
4252 else
4253 # Broken: fails on valid input.
4254 continue
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <ac_nonexistent.h>
4263 _ACEOF
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4265 # Broken: success on invalid input.
4266 continue
4267 else
4268 # Passes both tests.
4269 ac_preproc_ok=:
4270 break
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4274 done
4275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4276 rm -f conftest.i conftest.err conftest.$ac_ext
4277 if $ac_preproc_ok; then :
4279 else
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4283 See \`config.log' for more details" "$LINENO" 5; }
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 # Check for a compatible awk
4294 for ac_prog in gawk nawk
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if ${ac_cv_prog_AWK+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -n "$AWK"; then
4304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_AWK="$ac_prog"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 AWK=$ac_cv_prog_AWK
4324 if test -n "$AWK"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4326 $as_echo "$AWK" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4333 test -n "$AWK" && break
4334 done
4336 if test "$AWK" = ""; then
4337 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4339 # Extract the first word of "mmake", so it can be a program name with args.
4340 set dummy mmake; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_MMAKE+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$MMAKE"; then
4347 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_MMAKE="mmake "
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4360 done
4361 done
4362 IFS=$as_save_IFS
4366 MMAKE=$ac_cv_prog_MMAKE
4367 if test -n "$MMAKE"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4369 $as_echo "$MMAKE" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4377 # Perform some default variable assignments. Note all of these will be
4378 # Regenerated from the script, so there is no need to cache them.
4380 aros_host_cpp="$CPP"
4381 aros_host_cc="$CC"
4382 aros_host_cxx="$CXX"
4383 if test "$GCC" = "yes"; then
4384 aros_gcc_ld=`$CC -print-prog-name=ld`
4385 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4386 set dummy `basename $aros_gcc_ld`; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_path_aros_host_ld+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 case $aros_host_ld in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in `dirname $aros_gcc_ld`
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4413 esac
4415 aros_host_ld=$ac_cv_path_aros_host_ld
4416 if test -n "$aros_host_ld"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4418 $as_echo "$aros_host_ld" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test "$aros_host_ld" = ""; then
4427 # Extract the first word of "ld", so it can be a program name with args.
4428 set dummy ld; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if ${ac_cv_path_aros_host_ld+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 case $aros_host_ld in
4435 [\\/]* | ?:[\\/]*)
4436 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4450 done
4451 done
4452 IFS=$as_save_IFS
4455 esac
4457 aros_host_ld=$ac_cv_path_aros_host_ld
4458 if test -n "$aros_host_ld"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4460 $as_echo "$aros_host_ld" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4468 if test "$aros_host_ld" = ""; then
4469 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4471 aros_host_make="make"
4472 aros_host_cflags="$CFLAGS"
4473 aros_host_cxxflags="$CXXFLAGS"
4474 aros_host_ldflags="$LDFLAGS"
4475 aros_host_debug="-g -O0"
4476 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4477 aros_host_mkargs="--no-print-directory"
4478 aros_host_exe_suffix="$EXEEXT"
4479 aros_host_lib_suffix=""
4481 # Ignore all compliance, AROS ROMs = 0
4482 # KickStart v1.0 = 30
4483 # KickStart v1.3 = 34
4484 # KickStart v2.0 = 37
4485 # KickStart v3.0 = 39
4486 # KickStart v3.1 = 40
4487 # AmigaOS v3.5 = 44
4488 aros_amigaos_compliance=0
4490 for ac_prog in aclocal aclocal19 aclocal-1.9
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$aros_host_aclocal"; then
4500 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_aros_host_aclocal="$ac_prog"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4520 if test -n "$aros_host_aclocal"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4522 $as_echo "$aros_host_aclocal" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4529 test -n "$aros_host_aclocal" && break
4530 done
4532 for ac_prog in autoconf autoconf259 autoconf253
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$aros_host_autoconf"; then
4542 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_aros_host_autoconf="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4562 if test -n "$aros_host_autoconf"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4564 $as_echo "$aros_host_autoconf" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 test -n "$aros_host_autoconf" && break
4572 done
4574 for ac_prog in autoheader autoheader259 autoheader253
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$aros_host_autoheader"; then
4584 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_aros_host_autoheader="$ac_prog"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4604 if test -n "$aros_host_autoheader"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4606 $as_echo "$aros_host_autoheader" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 test -n "$aros_host_autoheader" && break
4614 done
4616 for ac_prog in automake automake19 automake-1.9
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_prog_aros_host_automake+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$aros_host_automake"; then
4626 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_aros_host_automake="$ac_prog"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 aros_host_automake=$ac_cv_prog_aros_host_automake
4646 if test -n "$aros_host_automake"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4648 $as_echo "$aros_host_automake" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4655 test -n "$aros_host_automake" && break
4656 done
4659 if test "$aros_host_aclocal" = ""; then
4660 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4662 if test "$aros_host_automake" = ""; then
4663 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4666 case "$aros_host_cc" in
4667 *gcc*)
4668 aros_host_cc_pipe="-pipe"
4670 icc)
4671 aros_host_cc_pipe=""
4674 aros_host_cc_pipe=""
4676 esac
4678 aros_kernel_cc_includes=""
4679 aros_target_cc_includes=""
4680 host_cc_elf=yes
4682 # ----------------------------------------------------------------------------------------
4683 # Host-specific defaults
4685 # This is the main host configuration section. It is where the host
4686 # can change the values of any variables it needs to change. We do
4687 # not look at anything that compiles to the target yet, we'll get
4688 # to that later.
4690 case "$host_os" in
4691 aros*)
4692 aros_host_arch="aros"
4693 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4694 case "$host_cpu" in
4695 *i?86*)
4696 aros_host_cpu="i386"
4698 *x86_64*)
4699 aros_host_cpu="x86_64"
4701 *powerpc*)
4702 aros_host_cpu="ppc"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4706 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4707 aros_host_cpu="$host_cpu"
4709 esac
4712 linux*)
4713 aros_host_arch="linux"
4714 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4715 android_build_os="linux-x86"
4716 android_tool="android"
4717 default_android_sdk="/opt/android-sdk-linux_x86"
4718 case "$host_cpu" in
4719 *i?86*)
4720 aros_host_cpu="i386"
4722 *x86_64*)
4723 aros_host_cpu="x86_64"
4725 *m68k*)
4726 aros_host_cpu="m68k"
4728 *powerpc*)
4729 aros_host_cpu="ppc"
4731 *arm*)
4732 aros_host_cpu="arm"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4736 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4737 aros_host_cpu="$host_cpu"
4739 esac
4742 freebsd*)
4743 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4744 aros_host_make="gmake"
4745 aros_host_arch="freebsd"
4746 aros_host_cpu="i386"
4748 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4750 case $host_os in
4751 freebsd[234]*)
4752 aros_object_format="elf_i386"
4756 aros_object_format="elf_i386_fbsd"
4758 esac
4762 darwin*)
4763 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4764 aros_host_arch="darwin"
4765 host_cc_elf=no
4766 SED="gsed"
4767 android_build_os="darwin-x86"
4768 android_tool="android"
4769 default_android_sdk="/android-sdk-mac_x86"
4770 case "$host_cpu" in
4771 *i?86*)
4772 aros_host_cpu="i386"
4774 *x86_64*)
4775 aros_host_cpu="x86_64"
4777 *powerpc*)
4778 aros_host_cpu="ppc"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4782 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4783 aros_host_cpu="$host_cpu"
4785 esac
4787 aros_host_ldflags="$aros_host_ldflags -liconv"
4791 dragonfly*)
4792 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4793 aros_host_make="gmake"
4794 aros_host_arch="dragonfly"
4795 case $host_cpu in
4796 *i?86*)
4797 aros_host_cpu="i386"
4799 *amd64*)
4800 aros_host_cpu="x86_64"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4804 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4805 aros_host_cpu="$host_cpu"
4807 esac
4810 netbsd*)
4811 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4812 aros_host_make="gmake"
4813 aros_host_arch="netbsd"
4814 case "$host_cpu" in
4815 *i?86*)
4816 aros_host_cpu="i386"
4818 *m68k*)
4819 aros_host_cpu="m68k"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4823 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4824 aros_host_cpu="$host_cpu"
4826 esac
4827 aros_host_lib_suffix=".0.0"
4830 openbsd*)
4831 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4832 aros_host_make="gmake"
4833 aros_host_arch="openbsd"
4834 case "$host_cpu" in
4835 *i?86*)
4836 aros_host_cpu="i386"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4840 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4841 aros_host_cpu="$host_cpu"
4843 esac
4846 solaris*)
4847 aros_host_arch="solaris"
4848 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4849 case "$host_cpu" in
4850 *i?86*)
4851 aros_host_cpu="i386"
4853 *sparc*)
4854 aros_host_cpu="sparc"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4858 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4859 aros_host_cpu="$host_cpu"
4861 esac
4864 morphos*)
4865 aros_host_arch="morphos"
4866 aros_host_cpu="ppc"
4867 host_cc_elf=no
4870 amiga*)
4871 aros_host_arch="amiga"
4872 host_cc_elf=no
4873 SORT="/gg/bin/sort"
4874 TEST="/gg/bin/test"
4875 UNIQ="/gg/bin/uniq"
4876 FOR="for"
4877 TOUCH="/gg/bin/touch"
4878 case "$host_cpu" in
4879 *m68k*)
4880 aros_host_cpu="m68k"
4882 *powerpc*)
4883 aros_host_cpu="ppc"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4887 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4888 aros_host_cpu="$host_cpu"
4890 esac
4893 cygwin*)
4894 aros_host_arch="cygwin"
4895 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4896 host_cc_elf=no
4897 android_build_os="windows"
4898 android_tool="android.bat"
4899 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4901 case "$host_cpu" in
4902 *i?86*)
4903 aros_host_cpu="i386"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4907 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4908 aros_host_cpu="$host_cpu"
4910 esac
4913 mingw32*)
4914 aros_host_arch="mingw32"
4915 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4916 host_cc_elf=no
4917 android_build_os="windows"
4918 android_tool="android.bat"
4919 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4921 case "$host_cpu" in
4922 *i?86*)
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4925 $as_echo_n "checking for Windows native gcc target... " >&6; }
4926 host_cpu=`gcc -dumpmachine`
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4928 $as_echo "$host_cpu" >&6; }
4931 esac
4933 case "$host_cpu" in
4934 *i?86*)
4935 aros_host_cpu="i386"
4938 mingw32*)
4939 aros_host_cpu="i386"
4942 *x86_64*)
4943 aros_host_cpu="x86_64"
4944 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4949 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4950 aros_host_cpu="$host_cpu"
4952 esac
4955 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4957 esac
4959 # Extract the first word of "ar", so it can be a program name with args.
4960 set dummy ar; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_aros_host_ar+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$aros_host_ar"; then
4967 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_aros_host_ar="ar cr"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 aros_host_ar=$ac_cv_prog_aros_host_ar
4987 if test -n "$aros_host_ar"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4989 $as_echo "$aros_host_ar" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 if test "$aros_host_ar" = ""; then
4997 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4999 # Extract the first word of "ranlib", so it can be a program name with args.
5000 set dummy ranlib; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$aros_host_ranlib"; then
5007 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_aros_host_ranlib="ranlib "
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5027 if test -n "$aros_host_ranlib"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5029 $as_echo "$aros_host_ranlib" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5036 if test "$aros_host_ranlib" = ""; then
5037 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5039 # Extract the first word of "strip", so it can be a program name with args.
5040 set dummy strip; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_aros_host_strip+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$aros_host_strip"; then
5047 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_aros_host_strip="strip "
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 aros_host_strip=$ac_cv_prog_aros_host_strip
5067 if test -n "$aros_host_strip"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5069 $as_echo "$aros_host_strip" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5076 if test "$aros_host_strip" = ""; then
5077 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5080 # Extract the first word of "rm", so it can be a program name with args.
5081 set dummy rm; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_RM+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$RM"; then
5088 ac_cv_prog_RM="$RM" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_RM="rm -rf"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 RM=$ac_cv_prog_RM
5108 if test -n "$RM"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5110 $as_echo "$RM" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5117 if test "$RM" = ""; then
5118 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5120 # Extract the first word of "cp", so it can be a program name with args.
5121 set dummy cp; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_CP+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$CP"; then
5128 ac_cv_prog_CP="$CP" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_CP="cp "
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 CP=$ac_cv_prog_CP
5148 if test -n "$CP"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5150 $as_echo "$CP" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5157 if test "$CP" = ""; then
5158 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5160 # Extract the first word of "mv", so it can be a program name with args.
5161 set dummy mv; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_MV+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$MV"; then
5168 ac_cv_prog_MV="$MV" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_MV="mv "
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5187 MV=$ac_cv_prog_MV
5188 if test -n "$MV"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5190 $as_echo "$MV" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5197 if test "$MV" = ""; then
5198 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5200 # Extract the first word of "echo", so it can be a program name with args.
5201 set dummy echo; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ECHO+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ECHO"; then
5208 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ECHO="echo "
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5227 ECHO=$ac_cv_prog_ECHO
5228 if test -n "$ECHO"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5230 $as_echo "$ECHO" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5237 if test "$ECHO" = ""; then
5238 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5240 # Extract the first word of "mkdir", so it can be a program name with args.
5241 set dummy mkdir; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_MKDIR+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$MKDIR"; then
5248 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_MKDIR="mkdir -p"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 MKDIR=$ac_cv_prog_MKDIR
5268 if test -n "$MKDIR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5270 $as_echo "$MKDIR" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 if test "$MKDIR" = ""; then
5278 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5280 # Extract the first word of "touch", so it can be a program name with args.
5281 set dummy touch; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_TOUCH+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$TOUCH"; then
5288 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_TOUCH="touch "
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5307 TOUCH=$ac_cv_prog_TOUCH
5308 if test -n "$TOUCH"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5310 $as_echo "$TOUCH" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 if test "$TOUCH" = ""; then
5318 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5320 # Extract the first word of "sort", so it can be a program name with args.
5321 set dummy sort; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_SORT+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$SORT"; then
5328 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_SORT="sort "
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5341 done
5342 done
5343 IFS=$as_save_IFS
5347 SORT=$ac_cv_prog_SORT
5348 if test -n "$SORT"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5350 $as_echo "$SORT" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 if test "$SORT" = ""; then
5358 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5360 # Extract the first word of "uniq", so it can be a program name with args.
5361 set dummy uniq; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_UNIQ+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$UNIQ"; then
5368 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_UNIQ="uniq "
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 UNIQ=$ac_cv_prog_UNIQ
5388 if test -n "$UNIQ"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5390 $as_echo "$UNIQ" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5397 if test "$UNIQ" = ""; then
5398 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5400 # Extract the first word of "true", so it can be a program name with args.
5401 set dummy true; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_NOP+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$NOP"; then
5408 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_NOP="true "
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5423 IFS=$as_save_IFS
5427 NOP=$ac_cv_prog_NOP
5428 if test -n "$NOP"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5430 $as_echo "$NOP" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5437 if test "$NOP" = ""; then
5438 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5440 # Extract the first word of "cat", so it can be a program name with args.
5441 set dummy cat; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_CAT+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -n "$CAT"; then
5448 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_prog_CAT="cat "
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5467 CAT=$ac_cv_prog_CAT
5468 if test -n "$CAT"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5470 $as_echo "$CAT" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5477 if test "$CAT" = ""; then
5478 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5480 # Extract the first word of "bison", so it can be a program name with args.
5481 set dummy bison; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_BISON+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$BISON"; then
5488 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_BISON="bison "
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5507 BISON=$ac_cv_prog_BISON
5508 if test -n "$BISON"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5510 $as_echo "$BISON" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 if test "$BISON" = ""; then
5518 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5520 # Extract the first word of "flex", so it can be a program name with args.
5521 set dummy flex; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_FLEX+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if test -n "$FLEX"; then
5528 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_prog_FLEX="flex "
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
5541 done
5542 done
5543 IFS=$as_save_IFS
5547 FLEX=$ac_cv_prog_FLEX
5548 if test -n "$FLEX"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5550 $as_echo "$FLEX" >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5557 if test "$FLEX" = ""; then
5558 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5560 # Extract the first word of "pngtopnm", so it can be a program name with args.
5561 set dummy pngtopnm; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$PNGTOPNM"; then
5568 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_PNGTOPNM="pngtopnm "
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5581 done
5582 done
5583 IFS=$as_save_IFS
5587 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5588 if test -n "$PNGTOPNM"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5590 $as_echo "$PNGTOPNM" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5597 if test "$PNGTOPNM" = ""; then
5598 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5600 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5601 set dummy ppmtoilbm; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$PPMTOILBM"; then
5608 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5621 done
5622 done
5623 IFS=$as_save_IFS
5627 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5628 if test -n "$PPMTOILBM"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5630 $as_echo "$PPMTOILBM" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5637 if test "$PPMTOILBM" = ""; then
5638 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5640 # Extract the first word of "sed", so it can be a program name with args.
5641 set dummy sed; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_SED+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$SED"; then
5648 ac_cv_prog_SED="$SED" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_SED="sed "
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5661 done
5662 done
5663 IFS=$as_save_IFS
5667 SED=$ac_cv_prog_SED
5668 if test -n "$SED"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5670 $as_echo "$SED" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5677 if test "$SED" = ""; then
5678 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5680 # Extract the first word of "chmod", so it can be a program name with args.
5681 set dummy chmod; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_CHMOD+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$CHMOD"; then
5688 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_CHMOD="chmod "
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 CHMOD=$ac_cv_prog_CHMOD
5708 if test -n "$CHMOD"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5710 $as_echo "$CHMOD" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5717 if test "$CHMOD" = ""; then
5718 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5720 # Extract the first word of "patch", so it can be a program name with args.
5721 set dummy patch; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_PATCH+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$PATCH"; then
5728 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_PATCH="patch "
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5747 PATCH=$ac_cv_prog_PATCH
5748 if test -n "$PATCH"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5750 $as_echo "$PATCH" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5757 if test "$PATCH" = ""; then
5758 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5767 if test -n "$PYTHON"; then
5768 # If the user set $PYTHON, use it and don't search something else.
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5770 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5771 prog="import sys
5772 # split strings by '.' and convert to numeric. Append some zeros
5773 # because we need at least 4 digits for the hex conversion.
5774 # map returns an iterator in Python 3.0 and a list in 2.x
5775 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5776 minverhex = 0
5777 # xrange is not present in Python 3.0 and range returns an iterator
5778 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5779 sys.exit(sys.hexversion < minverhex)"
5780 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5781 ($PYTHON -c "$prog") >&5 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; then :
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5786 $as_echo "yes" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5792 am_display_PYTHON=$PYTHON
5793 else
5794 # Otherwise, try each interpreter until we find one that satisfies
5795 # VERSION.
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5797 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5798 if ${am_cv_pathless_PYTHON+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5802 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
5803 test "$am_cv_pathless_PYTHON" = none && break
5804 prog="import sys
5805 # split strings by '.' and convert to numeric. Append some zeros
5806 # because we need at least 4 digits for the hex conversion.
5807 # map returns an iterator in Python 3.0 and a list in 2.x
5808 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5809 minverhex = 0
5810 # xrange is not present in Python 3.0 and range returns an iterator
5811 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5812 sys.exit(sys.hexversion < minverhex)"
5813 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5814 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; then :
5818 break
5820 done
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5823 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5824 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5825 if test "$am_cv_pathless_PYTHON" = none; then
5826 PYTHON=:
5827 else
5828 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5829 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if ${ac_cv_path_PYTHON+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 case $PYTHON in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5851 done
5852 done
5853 IFS=$as_save_IFS
5856 esac
5858 PYTHON=$ac_cv_path_PYTHON
5859 if test -n "$PYTHON"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5861 $as_echo "$PYTHON" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5869 am_display_PYTHON=$am_cv_pathless_PYTHON
5873 if test "$PYTHON" = :; then
5874 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5875 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5879 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5880 if ${am_cv_python_version+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5886 $as_echo "$am_cv_python_version" >&6; }
5887 PYTHON_VERSION=$am_cv_python_version
5891 PYTHON_PREFIX='${prefix}'
5893 PYTHON_EXEC_PREFIX='${exec_prefix}'
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5898 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5899 if ${am_cv_python_platform+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5905 $as_echo "$am_cv_python_platform" >&6; }
5906 PYTHON_PLATFORM=$am_cv_python_platform
5909 # Just factor out some code duplication.
5910 am_python_setup_sysconfig="\
5911 import sys
5912 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5913 # with python 3.x. See automake bug#10227.
5914 try:
5915 import sysconfig
5916 except ImportError:
5917 can_use_sysconfig = 0
5918 else:
5919 can_use_sysconfig = 1
5920 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5921 # <https://github.com/pypa/virtualenv/issues/118>
5922 try:
5923 from platform import python_implementation
5924 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5925 can_use_sysconfig = 0
5926 except ImportError:
5927 pass"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5931 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5932 if ${am_cv_python_pythondir+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test "x$prefix" = xNONE
5936 then
5937 am_py_prefix=$ac_default_prefix
5938 else
5939 am_py_prefix=$prefix
5941 am_cv_python_pythondir=`$PYTHON -c "
5942 $am_python_setup_sysconfig
5943 if can_use_sysconfig:
5944 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5945 else:
5946 from distutils import sysconfig
5947 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5948 sys.stdout.write(sitedir)"`
5949 case $am_cv_python_pythondir in
5950 $am_py_prefix*)
5951 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5952 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5955 case $am_py_prefix in
5956 /usr|/System*) ;;
5958 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5960 esac
5962 esac
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5966 $as_echo "$am_cv_python_pythondir" >&6; }
5967 pythondir=$am_cv_python_pythondir
5971 pkgpythondir=\${pythondir}/$PACKAGE
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5975 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5976 if ${am_cv_python_pyexecdir+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if test "x$exec_prefix" = xNONE
5980 then
5981 am_py_exec_prefix=$am_py_prefix
5982 else
5983 am_py_exec_prefix=$exec_prefix
5985 am_cv_python_pyexecdir=`$PYTHON -c "
5986 $am_python_setup_sysconfig
5987 if can_use_sysconfig:
5988 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5989 else:
5990 from distutils import sysconfig
5991 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5992 sys.stdout.write(sitedir)"`
5993 case $am_cv_python_pyexecdir in
5994 $am_py_exec_prefix*)
5995 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5996 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5999 case $am_py_exec_prefix in
6000 /usr|/System*) ;;
6002 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6004 esac
6006 esac
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6010 $as_echo "$am_cv_python_pyexecdir" >&6; }
6011 pyexecdir=$am_cv_python_pyexecdir
6015 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6025 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6026 if ${ac_cv_lib_png_png_read_png+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 ac_check_lib_save_LIBS=$LIBS
6030 LIBS="-lpng $LIBS"
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6034 /* Override any GCC internal prototype to avoid an error.
6035 Use char because int might match the return type of a GCC
6036 builtin and then its argument prototype would still apply. */
6037 #ifdef __cplusplus
6038 extern "C"
6039 #endif
6040 char png_read_png ();
6042 main ()
6044 return png_read_png ();
6046 return 0;
6048 _ACEOF
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 ac_cv_lib_png_png_read_png=yes
6051 else
6052 ac_cv_lib_png_png_read_png=no
6054 rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6059 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6060 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_LIBPNG 1
6063 _ACEOF
6065 LIBS="-lpng $LIBS"
6069 if test "$ac_cv_lib_png_png_read_png" = ""; then
6070 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6073 FOR=for
6075 IF=if
6077 TEST=test
6079 CMP=cmp
6083 # Check for some includes for the X11 HIDD and the kernel
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6086 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6087 if ${ac_cv_path_GREP+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -z "$GREP"; then
6091 ac_path_GREP_found=false
6092 # Loop through the user's path and test for each of PROGNAME-LIST
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_prog in grep ggrep; do
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6101 as_fn_executable_p "$ac_path_GREP" || continue
6102 # Check for GNU ac_path_GREP and select it if it is found.
6103 # Check for GNU $ac_path_GREP
6104 case `"$ac_path_GREP" --version 2>&1` in
6105 *GNU*)
6106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6108 ac_count=0
6109 $as_echo_n 0123456789 >"conftest.in"
6110 while :
6112 cat "conftest.in" "conftest.in" >"conftest.tmp"
6113 mv "conftest.tmp" "conftest.in"
6114 cp "conftest.in" "conftest.nl"
6115 $as_echo 'GREP' >> "conftest.nl"
6116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6118 as_fn_arith $ac_count + 1 && ac_count=$as_val
6119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6120 # Best one so far, save it but keep looking for a better one
6121 ac_cv_path_GREP="$ac_path_GREP"
6122 ac_path_GREP_max=$ac_count
6124 # 10*(2^10) chars as input seems more than enough
6125 test $ac_count -gt 10 && break
6126 done
6127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6128 esac
6130 $ac_path_GREP_found && break 3
6131 done
6132 done
6133 done
6134 IFS=$as_save_IFS
6135 if test -z "$ac_cv_path_GREP"; then
6136 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6138 else
6139 ac_cv_path_GREP=$GREP
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6144 $as_echo "$ac_cv_path_GREP" >&6; }
6145 GREP="$ac_cv_path_GREP"
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6149 $as_echo_n "checking for egrep... " >&6; }
6150 if ${ac_cv_path_EGREP+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6154 then ac_cv_path_EGREP="$GREP -E"
6155 else
6156 if test -z "$EGREP"; then
6157 ac_path_EGREP_found=false
6158 # Loop through the user's path and test for each of PROGNAME-LIST
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_prog in egrep; do
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6167 as_fn_executable_p "$ac_path_EGREP" || continue
6168 # Check for GNU ac_path_EGREP and select it if it is found.
6169 # Check for GNU $ac_path_EGREP
6170 case `"$ac_path_EGREP" --version 2>&1` in
6171 *GNU*)
6172 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6174 ac_count=0
6175 $as_echo_n 0123456789 >"conftest.in"
6176 while :
6178 cat "conftest.in" "conftest.in" >"conftest.tmp"
6179 mv "conftest.tmp" "conftest.in"
6180 cp "conftest.in" "conftest.nl"
6181 $as_echo 'EGREP' >> "conftest.nl"
6182 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6184 as_fn_arith $ac_count + 1 && ac_count=$as_val
6185 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6186 # Best one so far, save it but keep looking for a better one
6187 ac_cv_path_EGREP="$ac_path_EGREP"
6188 ac_path_EGREP_max=$ac_count
6190 # 10*(2^10) chars as input seems more than enough
6191 test $ac_count -gt 10 && break
6192 done
6193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6194 esac
6196 $ac_path_EGREP_found && break 3
6197 done
6198 done
6199 done
6200 IFS=$as_save_IFS
6201 if test -z "$ac_cv_path_EGREP"; then
6202 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6204 else
6205 ac_cv_path_EGREP=$EGREP
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6211 $as_echo "$ac_cv_path_EGREP" >&6; }
6212 EGREP="$ac_cv_path_EGREP"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6216 $as_echo_n "checking for ANSI C header files... " >&6; }
6217 if ${ac_cv_header_stdc+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <stdlib.h>
6223 #include <stdarg.h>
6224 #include <string.h>
6225 #include <float.h>
6228 main ()
6232 return 0;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 ac_cv_header_stdc=yes
6237 else
6238 ac_cv_header_stdc=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 if test $ac_cv_header_stdc = yes; then
6243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <string.h>
6248 _ACEOF
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "memchr" >/dev/null 2>&1; then :
6252 else
6253 ac_cv_header_stdc=no
6255 rm -f conftest*
6259 if test $ac_cv_header_stdc = yes; then
6260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #include <stdlib.h>
6265 _ACEOF
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267 $EGREP "free" >/dev/null 2>&1; then :
6269 else
6270 ac_cv_header_stdc=no
6272 rm -f conftest*
6276 if test $ac_cv_header_stdc = yes; then
6277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6278 if test "$cross_compiling" = yes; then :
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <ctype.h>
6284 #include <stdlib.h>
6285 #if ((' ' & 0x0FF) == 0x020)
6286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6288 #else
6289 # define ISLOWER(c) \
6290 (('a' <= (c) && (c) <= 'i') \
6291 || ('j' <= (c) && (c) <= 'r') \
6292 || ('s' <= (c) && (c) <= 'z'))
6293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6294 #endif
6296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6298 main ()
6300 int i;
6301 for (i = 0; i < 256; i++)
6302 if (XOR (islower (i), ISLOWER (i))
6303 || toupper (i) != TOUPPER (i))
6304 return 2;
6305 return 0;
6307 _ACEOF
6308 if ac_fn_c_try_run "$LINENO"; then :
6310 else
6311 ac_cv_header_stdc=no
6313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6314 conftest.$ac_objext conftest.beam conftest.$ac_ext
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6320 $as_echo "$ac_cv_header_stdc" >&6; }
6321 if test $ac_cv_header_stdc = yes; then
6323 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6328 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6329 inttypes.h stdint.h unistd.h
6330 do :
6331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6332 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6334 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6335 cat >>confdefs.h <<_ACEOF
6336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6337 _ACEOF
6341 done
6344 for ac_header in sys/ipc.h sys/shm.h \
6345 sys/mmap.h sys/mman.h sysexits.h \
6346 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6348 do :
6349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6352 cat >>confdefs.h <<_ACEOF
6353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354 _ACEOF
6358 done
6361 for ac_header in sys/mount.h
6362 do :
6363 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6365 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6366 cat >>confdefs.h <<_ACEOF
6367 #define HAVE_SYS_MOUNT_H 1
6368 _ACEOF
6372 done
6375 ac_header_dirent=no
6376 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6377 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6379 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6380 if eval \${$as_ac_Header+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <sys/types.h>
6386 #include <$ac_hdr>
6389 main ()
6391 if ((DIR *) 0)
6392 return 0;
6394 return 0;
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 eval "$as_ac_Header=yes"
6399 else
6400 eval "$as_ac_Header=no"
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 eval ac_res=\$$as_ac_Header
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6406 $as_echo "$ac_res" >&6; }
6407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6408 cat >>confdefs.h <<_ACEOF
6409 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6410 _ACEOF
6412 ac_header_dirent=$ac_hdr; break
6415 done
6416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6417 if test $ac_header_dirent = dirent.h; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6419 $as_echo_n "checking for library containing opendir... " >&6; }
6420 if ${ac_cv_search_opendir+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 ac_func_search_save_LIBS=$LIBS
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6427 /* Override any GCC internal prototype to avoid an error.
6428 Use char because int might match the return type of a GCC
6429 builtin and then its argument prototype would still apply. */
6430 #ifdef __cplusplus
6431 extern "C"
6432 #endif
6433 char opendir ();
6435 main ()
6437 return opendir ();
6439 return 0;
6441 _ACEOF
6442 for ac_lib in '' dir; do
6443 if test -z "$ac_lib"; then
6444 ac_res="none required"
6445 else
6446 ac_res=-l$ac_lib
6447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6449 if ac_fn_c_try_link "$LINENO"; then :
6450 ac_cv_search_opendir=$ac_res
6452 rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext
6454 if ${ac_cv_search_opendir+:} false; then :
6455 break
6457 done
6458 if ${ac_cv_search_opendir+:} false; then :
6460 else
6461 ac_cv_search_opendir=no
6463 rm conftest.$ac_ext
6464 LIBS=$ac_func_search_save_LIBS
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6467 $as_echo "$ac_cv_search_opendir" >&6; }
6468 ac_res=$ac_cv_search_opendir
6469 if test "$ac_res" != no; then :
6470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6476 $as_echo_n "checking for library containing opendir... " >&6; }
6477 if ${ac_cv_search_opendir+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 ac_func_search_save_LIBS=$LIBS
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6484 /* Override any GCC internal prototype to avoid an error.
6485 Use char because int might match the return type of a GCC
6486 builtin and then its argument prototype would still apply. */
6487 #ifdef __cplusplus
6488 extern "C"
6489 #endif
6490 char opendir ();
6492 main ()
6494 return opendir ();
6496 return 0;
6498 _ACEOF
6499 for ac_lib in '' x; do
6500 if test -z "$ac_lib"; then
6501 ac_res="none required"
6502 else
6503 ac_res=-l$ac_lib
6504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6506 if ac_fn_c_try_link "$LINENO"; then :
6507 ac_cv_search_opendir=$ac_res
6509 rm -f core conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext
6511 if ${ac_cv_search_opendir+:} false; then :
6512 break
6514 done
6515 if ${ac_cv_search_opendir+:} false; then :
6517 else
6518 ac_cv_search_opendir=no
6520 rm conftest.$ac_ext
6521 LIBS=$ac_func_search_save_LIBS
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6524 $as_echo "$ac_cv_search_opendir" >&6; }
6525 ac_res=$ac_cv_search_opendir
6526 if test "$ac_res" != no; then :
6527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6534 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6535 if ${ac_cv_header_stat_broken+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6541 #include <sys/stat.h>
6543 #if defined S_ISBLK && defined S_IFDIR
6544 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6545 #endif
6547 #if defined S_ISBLK && defined S_IFCHR
6548 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6549 #endif
6551 #if defined S_ISLNK && defined S_IFREG
6552 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6553 #endif
6555 #if defined S_ISSOCK && defined S_IFREG
6556 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6557 #endif
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561 ac_cv_header_stat_broken=no
6562 else
6563 ac_cv_header_stat_broken=yes
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6568 $as_echo "$ac_cv_header_stat_broken" >&6; }
6569 if test $ac_cv_header_stat_broken = yes; then
6571 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6576 $as_echo_n "checking for ANSI C header files... " >&6; }
6577 if ${ac_cv_header_stdc+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <stdlib.h>
6583 #include <stdarg.h>
6584 #include <string.h>
6585 #include <float.h>
6588 main ()
6592 return 0;
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_cv_header_stdc=yes
6597 else
6598 ac_cv_header_stdc=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 if test $ac_cv_header_stdc = yes; then
6603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 #include <string.h>
6608 _ACEOF
6609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6610 $EGREP "memchr" >/dev/null 2>&1; then :
6612 else
6613 ac_cv_header_stdc=no
6615 rm -f conftest*
6619 if test $ac_cv_header_stdc = yes; then
6620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <stdlib.h>
6625 _ACEOF
6626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6627 $EGREP "free" >/dev/null 2>&1; then :
6629 else
6630 ac_cv_header_stdc=no
6632 rm -f conftest*
6636 if test $ac_cv_header_stdc = yes; then
6637 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6638 if test "$cross_compiling" = yes; then :
6640 else
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <ctype.h>
6644 #include <stdlib.h>
6645 #if ((' ' & 0x0FF) == 0x020)
6646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6648 #else
6649 # define ISLOWER(c) \
6650 (('a' <= (c) && (c) <= 'i') \
6651 || ('j' <= (c) && (c) <= 'r') \
6652 || ('s' <= (c) && (c) <= 'z'))
6653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6654 #endif
6656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6658 main ()
6660 int i;
6661 for (i = 0; i < 256; i++)
6662 if (XOR (islower (i), ISLOWER (i))
6663 || toupper (i) != TOUPPER (i))
6664 return 2;
6665 return 0;
6667 _ACEOF
6668 if ac_fn_c_try_run "$LINENO"; then :
6670 else
6671 ac_cv_header_stdc=no
6673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6674 conftest.$ac_objext conftest.beam conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6680 $as_echo "$ac_cv_header_stdc" >&6; }
6681 if test $ac_cv_header_stdc = yes; then
6683 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6688 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6689 if ${ac_cv_header_sys_wait_h+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <sys/wait.h>
6696 #ifndef WEXITSTATUS
6697 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6698 #endif
6699 #ifndef WIFEXITED
6700 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6701 #endif
6704 main ()
6706 int s;
6707 wait (&s);
6708 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6710 return 0;
6712 _ACEOF
6713 if ac_fn_c_try_compile "$LINENO"; then :
6714 ac_cv_header_sys_wait_h=yes
6715 else
6716 ac_cv_header_sys_wait_h=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6721 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6722 if test $ac_cv_header_sys_wait_h = yes; then
6724 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6729 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6730 if ${ac_cv_header_time+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <sys/types.h>
6736 #include <sys/time.h>
6737 #include <time.h>
6740 main ()
6742 if ((struct tm *) 0)
6743 return 0;
6745 return 0;
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749 ac_cv_header_time=yes
6750 else
6751 ac_cv_header_time=no
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6756 $as_echo "$ac_cv_header_time" >&6; }
6757 if test $ac_cv_header_time = yes; then
6759 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6763 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6764 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6766 cat >>confdefs.h <<_ACEOF
6767 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6768 _ACEOF
6771 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6776 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6777 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6781 _ACEOF
6784 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6786 else
6787 case " $LIBOBJS " in
6788 *" fileblocks.$ac_objext "* ) ;;
6789 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6791 esac
6796 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6797 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_STRUCT_STAT_ST_RDEV 1
6801 _ACEOF
6804 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6810 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6811 if ${ac_cv_struct_tm+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 #include <sys/types.h>
6817 #include <time.h>
6820 main ()
6822 struct tm tm;
6823 int *p = &tm.tm_sec;
6824 return !p;
6826 return 0;
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 ac_cv_struct_tm=time.h
6831 else
6832 ac_cv_struct_tm=sys/time.h
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6837 $as_echo "$ac_cv_struct_tm" >&6; }
6838 if test $ac_cv_struct_tm = sys/time.h; then
6840 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6844 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6845 #include <$ac_cv_struct_tm>
6848 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6850 cat >>confdefs.h <<_ACEOF
6851 #define HAVE_STRUCT_TM_TM_ZONE 1
6852 _ACEOF
6857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6859 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6861 else
6862 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6864 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6865 ac_have_decl=1
6866 else
6867 ac_have_decl=0
6870 cat >>confdefs.h <<_ACEOF
6871 #define HAVE_DECL_TZNAME $ac_have_decl
6872 _ACEOF
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6875 $as_echo_n "checking for tzname... " >&6; }
6876 if ${ac_cv_var_tzname+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 #include <time.h>
6882 #if !HAVE_DECL_TZNAME
6883 extern char *tzname[];
6884 #endif
6887 main ()
6889 return tzname[0][0];
6891 return 0;
6893 _ACEOF
6894 if ac_fn_c_try_link "$LINENO"; then :
6895 ac_cv_var_tzname=yes
6896 else
6897 ac_cv_var_tzname=no
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6903 $as_echo "$ac_cv_var_tzname" >&6; }
6904 if test $ac_cv_var_tzname = yes; then
6906 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6911 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6912 if test "x$ac_cv_type_off_t" = xyes; then :
6914 else
6916 cat >>confdefs.h <<_ACEOF
6917 #define off_t long int
6918 _ACEOF
6922 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6923 if test "x$ac_cv_type_pid_t" = xyes; then :
6925 else
6927 cat >>confdefs.h <<_ACEOF
6928 #define pid_t int
6929 _ACEOF
6933 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6934 if test "x$ac_cv_type_size_t" = xyes; then :
6936 else
6938 cat >>confdefs.h <<_ACEOF
6939 #define size_t unsigned int
6940 _ACEOF
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6945 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6946 if ${ac_cv_type_uid_t+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <sys/types.h>
6953 _ACEOF
6954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6955 $EGREP "uid_t" >/dev/null 2>&1; then :
6956 ac_cv_type_uid_t=yes
6957 else
6958 ac_cv_type_uid_t=no
6960 rm -f conftest*
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6964 $as_echo "$ac_cv_type_uid_t" >&6; }
6965 if test $ac_cv_type_uid_t = no; then
6967 $as_echo "#define uid_t int" >>confdefs.h
6970 $as_echo "#define gid_t int" >>confdefs.h
6975 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6976 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6978 cat >>confdefs.h <<_ACEOF
6979 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6980 _ACEOF
6986 # Look for some functions
6987 for ac_func in getpagesize kqueue statfs statvfs \
6988 clone kse_create rfork_thread thr_create sa_register \
6989 getcontext makecontext setcontext sigaltstack swapcontext
6990 do :
6991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6993 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6994 cat >>confdefs.h <<_ACEOF
6995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6996 _ACEOF
6999 done
7005 for ac_header in $ac_header_list
7006 do :
7007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7008 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7010 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7011 cat >>confdefs.h <<_ACEOF
7012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013 _ACEOF
7017 done
7026 for ac_func in getpagesize
7027 do :
7028 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7029 if test "x$ac_cv_func_getpagesize" = xyes; then :
7030 cat >>confdefs.h <<_ACEOF
7031 #define HAVE_GETPAGESIZE 1
7032 _ACEOF
7035 done
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7038 $as_echo_n "checking for working mmap... " >&6; }
7039 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test "$cross_compiling" = yes; then :
7043 ac_cv_func_mmap_fixed_mapped=no
7044 else
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 /* malloc might have been renamed as rpl_malloc. */
7049 #undef malloc
7051 /* Thanks to Mike Haertel and Jim Avera for this test.
7052 Here is a matrix of mmap possibilities:
7053 mmap private not fixed
7054 mmap private fixed at somewhere currently unmapped
7055 mmap private fixed at somewhere already mapped
7056 mmap shared not fixed
7057 mmap shared fixed at somewhere currently unmapped
7058 mmap shared fixed at somewhere already mapped
7059 For private mappings, we should verify that changes cannot be read()
7060 back from the file, nor mmap's back from the file at a different
7061 address. (There have been systems where private was not correctly
7062 implemented like the infamous i386 svr4.0, and systems where the
7063 VM page cache was not coherent with the file system buffer cache
7064 like early versions of FreeBSD and possibly contemporary NetBSD.)
7065 For shared mappings, we should conversely verify that changes get
7066 propagated back to all the places they're supposed to be.
7068 Grep wants private fixed already mapped.
7069 The main things grep needs to know about mmap are:
7070 * does it exist and is it safe to write into the mmap'd area
7071 * how to use it (BSD variants) */
7073 #include <fcntl.h>
7074 #include <sys/mman.h>
7076 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7077 char *malloc ();
7078 #endif
7080 /* This mess was copied from the GNU getpagesize.h. */
7081 #ifndef HAVE_GETPAGESIZE
7082 # ifdef _SC_PAGESIZE
7083 # define getpagesize() sysconf(_SC_PAGESIZE)
7084 # else /* no _SC_PAGESIZE */
7085 # ifdef HAVE_SYS_PARAM_H
7086 # include <sys/param.h>
7087 # ifdef EXEC_PAGESIZE
7088 # define getpagesize() EXEC_PAGESIZE
7089 # else /* no EXEC_PAGESIZE */
7090 # ifdef NBPG
7091 # define getpagesize() NBPG * CLSIZE
7092 # ifndef CLSIZE
7093 # define CLSIZE 1
7094 # endif /* no CLSIZE */
7095 # else /* no NBPG */
7096 # ifdef NBPC
7097 # define getpagesize() NBPC
7098 # else /* no NBPC */
7099 # ifdef PAGESIZE
7100 # define getpagesize() PAGESIZE
7101 # endif /* PAGESIZE */
7102 # endif /* no NBPC */
7103 # endif /* no NBPG */
7104 # endif /* no EXEC_PAGESIZE */
7105 # else /* no HAVE_SYS_PARAM_H */
7106 # define getpagesize() 8192 /* punt totally */
7107 # endif /* no HAVE_SYS_PARAM_H */
7108 # endif /* no _SC_PAGESIZE */
7110 #endif /* no HAVE_GETPAGESIZE */
7113 main ()
7115 char *data, *data2, *data3;
7116 const char *cdata2;
7117 int i, pagesize;
7118 int fd, fd2;
7120 pagesize = getpagesize ();
7122 /* First, make a file with some known garbage in it. */
7123 data = (char *) malloc (pagesize);
7124 if (!data)
7125 return 1;
7126 for (i = 0; i < pagesize; ++i)
7127 *(data + i) = rand ();
7128 umask (0);
7129 fd = creat ("conftest.mmap", 0600);
7130 if (fd < 0)
7131 return 2;
7132 if (write (fd, data, pagesize) != pagesize)
7133 return 3;
7134 close (fd);
7136 /* Next, check that the tail of a page is zero-filled. File must have
7137 non-zero length, otherwise we risk SIGBUS for entire page. */
7138 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7139 if (fd2 < 0)
7140 return 4;
7141 cdata2 = "";
7142 if (write (fd2, cdata2, 1) != 1)
7143 return 5;
7144 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7145 if (data2 == MAP_FAILED)
7146 return 6;
7147 for (i = 0; i < pagesize; ++i)
7148 if (*(data2 + i))
7149 return 7;
7150 close (fd2);
7151 if (munmap (data2, pagesize))
7152 return 8;
7154 /* Next, try to mmap the file at a fixed address which already has
7155 something else allocated at it. If we can, also make sure that
7156 we see the same garbage. */
7157 fd = open ("conftest.mmap", O_RDWR);
7158 if (fd < 0)
7159 return 9;
7160 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7162 return 10;
7163 for (i = 0; i < pagesize; ++i)
7164 if (*(data + i) != *(data2 + i))
7165 return 11;
7167 /* Finally, make sure that changes to the mapped area do not
7168 percolate back to the file as seen by read(). (This is a bug on
7169 some variants of i386 svr4.0.) */
7170 for (i = 0; i < pagesize; ++i)
7171 *(data2 + i) = *(data2 + i) + 1;
7172 data3 = (char *) malloc (pagesize);
7173 if (!data3)
7174 return 12;
7175 if (read (fd, data3, pagesize) != pagesize)
7176 return 13;
7177 for (i = 0; i < pagesize; ++i)
7178 if (*(data + i) != *(data3 + i))
7179 return 14;
7180 close (fd);
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_run "$LINENO"; then :
7185 ac_cv_func_mmap_fixed_mapped=yes
7186 else
7187 ac_cv_func_mmap_fixed_mapped=no
7189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7190 conftest.$ac_objext conftest.beam conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7195 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7196 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7198 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7201 rm -f conftest.mmap conftest.txt
7206 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7207 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7208 aros_config_ldflags=""
7210 aros_shared_default=yes
7212 aros_shared_cflags="-fPIC"
7213 aros_shared_aflags=""
7214 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7215 aros_kernel_ldflags="-Wl,-rpath,./lib"
7217 aros_kernel_ar_flags="cr"
7218 aros_target_ar_flags="cr"
7219 aros_target_nm_flags="-C -ul"
7220 aros_target_strip_flags="--strip-unneeded -R.comment"
7222 aros_compiler_libs=
7223 aros_arch_libs=
7225 aros_target_genmap="-Wl,-Map -Xlinker"
7227 # Native flavour stuff
7228 aros_serial_debug="0"
7230 # Palm native flavour stuff
7231 aros_palm_debug_hack="0"
7233 # Unix flavour stuff
7234 aros_nesting_supervisor="0"
7236 # Collect-aros stuff: "-ius" to ignore undefined symbols
7237 ignore_undefined_symbols=""
7239 # Check for X11 by default
7240 need_x11="auto"
7242 #-----------------------------------------------------------------------------
7245 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7246 # it switched on by default, and we use the host compiler, so it compiles AROS
7247 # code with this enabled resulting in link failures as we don't have support
7248 # for it.
7250 # We use two methods to disable it. For the host compiler (used to compile
7251 # some hosted modules), we test to see if the compiler supports stack
7252 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7253 # work on all platforms.
7255 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7256 # (this is done unconditionally, as it should have no effect on compilers
7257 # without the stack protection feature). This may be specific to the way that
7258 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7259 # strong enough to disable it in a generic way though, so we'll live with it
7260 # until another vendor ships GCC with it enabled in a different way, and deal
7261 # with it then.
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7265 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7266 save_cflags="$CFLAGS"
7267 CFLAGS="$CFLAGS -fno-stack-protector"
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7272 main ()
7276 return 0;
7278 _ACEOF
7279 if ac_fn_c_try_compile "$LINENO"; then :
7280 use_no_stack_protector="yes"
7281 else
7282 use_no_stack_protector="no"
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7286 $as_echo "$use_no_stack_protector" >&6; }
7287 if test "x-$use_no_stack_protector" = "x-yes" ; then
7288 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7290 CFLAGS="$save_cflags"
7292 #-----------------------------------------------------------------------------
7294 # Disable pointer-signedness warnings if the compiler recognises the option
7295 # (this only works for the host compiler at the moment)
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7298 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7299 save_cflags="$CFLAGS"
7300 CFLAGS="$CFLAGS -Wno-pointer-sign"
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7305 main ()
7309 return 0;
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 use_no_sign_warning="yes"
7314 else
7315 use_no_sign_warning="no"
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7319 $as_echo "$use_no_sign_warning" >&6; }
7320 if test "x-$use_no_sign_warning" = "x-yes" ; then
7321 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7323 CFLAGS="$save_cflags"
7325 #-----------------------------------------------------------------------------
7327 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7330 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7331 save_cflags="$CFLAGS"
7332 CFLAGS="$CFLAGS -fgnu89-inline"
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7337 main ()
7341 return 0;
7343 _ACEOF
7344 if ac_fn_c_try_compile "$LINENO"; then :
7345 use_gnu89_inline="yes"
7346 else
7347 use_gnu89_inline="no"
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7351 $as_echo "$use_gnu89_inline" >&6; }
7352 if test "x-$use_gnu89_inline" = "x-yes" ; then
7353 gnu89_inline="-fgnu89-inline"
7355 CFLAGS="$save_cflags"
7357 #-----------------------------------------------------------------------------
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7360 $as_echo_n "checking for type of build... " >&6; }
7361 # Check whether --enable-build_type was given.
7362 if test "${enable_build_type+set}" = set; then :
7363 enableval=$enable_build_type; build_type=$enableval
7364 else
7365 build_type="personal"
7369 if test "$build_type" = "nightly"; then
7370 build_type_string="NIGHTLY"
7371 elif test "$build_type" = "snapshot"; then
7372 build_type_string="SNAPSHOT"
7373 elif test "$build_type" = "milestone"; then
7374 build_type_string="MILESTONE"
7375 elif test "$build_type" = "release"; then
7376 build_type_string="RELEASE"
7377 else
7378 build_type_string="PERSONAL"
7379 build_type="personal"
7382 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7385 $as_echo "$build_type" >&6; }
7387 #-----------------------------------------------------------------------------
7388 all_debug_types="messages stack modules mungwall symbols"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7391 $as_echo_n "checking which debug types to enable... " >&6; }
7392 # Check whether --enable-debug was given.
7393 if test "${enable_debug+set}" = set; then :
7394 enableval=$enable_debug; debug="$enableval"
7395 else
7396 debug=""
7400 if test "$debug" = "" -o "$debug" = "no"; then
7401 debug="none"
7402 elif test "$debug" = "yes"; then
7403 debug="all"
7406 if test "$debug" = "all" ; then
7407 debug="messages stack modules symbols"
7408 for d in $all_debug_types; do
7409 export aros_${d}_debug="1"
7410 done
7411 else
7412 for d in $all_debug_types; do
7413 export aros_${d}_debug="0"
7414 done
7417 if test "$debug" != "none"; then
7418 debug=`echo $debug | sed s/,/\ /g`
7419 for d in $debug; do
7420 found="0"
7421 for d2 in $all_debug_types; do
7422 if test "$d2" = "$d"; then
7423 found="1"
7424 break
7426 done
7427 if test "$found" = "0"; then
7428 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7430 export aros_${d}_debug="1"
7431 done
7432 aros_debug="yes"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7435 $as_echo "$debug" >&6; }
7437 if test "$aros_messages_debug" = "1"; then
7438 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7439 else
7440 aros_messages_debug=""
7442 if test "$aros_symbols_debug" = "1"; then
7443 aros_symbols_debug="-g"
7444 else
7445 aros_symbols_debug=""
7448 # These are the flags to pass when compiling debugged programs
7449 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7450 aros_debug_aflags=""
7451 aros_debug_ldflags="$aros_symbols_debug"
7453 #-----------------------------------------------------------------------------
7454 # Checking for distcc and ccache.
7456 # Always apply the transforms in this particular order. Basically you should
7457 # always run 'ccache distcc compiler' in that order for the best performance.
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7460 $as_echo_n "checking whether to enable distcc... " >&6; }
7461 # Check whether --enable-distcc was given.
7462 if test "${enable_distcc+set}" = set; then :
7463 enableval=$enable_distcc; distcc="$enableval"
7464 else
7465 distcc="no"
7468 if test "$distcc" != "" -a "$distcc" != "no"; then
7469 # AC_CHECK_PROG will print out the result in this case
7470 # Extract the first word of "distcc", so it can be a program name with args.
7471 set dummy distcc; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_path_DISTCC+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 case $DISTCC in
7478 [\\/]* | ?:[\\/]*)
7479 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 break 2
7493 done
7494 done
7495 IFS=$as_save_IFS
7497 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7499 esac
7501 DISTCC=$ac_cv_path_DISTCC
7502 if test -n "$DISTCC"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7504 $as_echo "$DISTCC" >&6; }
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7517 $as_echo_n "checking whether to enable ccache... " >&6; }
7518 # Check whether --enable-ccache was given.
7519 if test "${enable_ccache+set}" = set; then :
7520 enableval=$enable_ccache; ccache="$enableval"
7521 else
7522 ccache="no"
7525 if test "$ccache" != "" -a "$ccache" != "no"; then
7526 # AC_CHECK_PROG will print out the result in this case
7527 # Extract the first word of "ccache", so it can be a program name with args.
7528 set dummy ccache; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_CCACHE+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$CCACHE"; then
7535 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_CCACHE="ccache"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7548 done
7549 done
7550 IFS=$as_save_IFS
7554 CCACHE=$ac_cv_prog_CCACHE
7555 if test -n "$CCACHE"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7557 $as_echo "$CCACHE" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7569 #-----------------------------------------------------------------------------
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7571 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7573 # Check whether --with-kernel-gcc-version was given.
7574 if test "${with_kernel_gcc_version+set}" = set; then :
7575 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7576 else
7577 kernel_tool_version=""
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7581 $as_echo "$kernel_tool_version" >&6; }
7583 #-----------------------------------------------------------------------------
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7585 $as_echo_n "checking what optimization flags to use... " >&6; }
7587 # Check whether --with-optimization was given.
7588 if test "${with_optimization+set}" = set; then :
7589 withval=$with_optimization; optimization="$withval"
7590 else
7591 optimization="unknown"
7594 if test "$optimization" = "unknown"; then
7595 if test "$debug" != "none"; then
7596 optimization="-O0"
7597 else
7598 optimization="-O2"
7601 aros_optimization_cflags="$optimization"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7603 $as_echo "$optimization" >&6; }
7605 #-----------------------------------------------------------------------------
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7607 $as_echo_n "checking what paranoia flags to use... " >&6; }
7609 # Check whether --with-paranoia was given.
7610 if test "${with_paranoia+set}" = set; then :
7611 withval=$with_paranoia; paranoia_flags="$withval"
7612 else
7613 paranoia_flags="default"
7616 if test "$paranoia_flags" = "default"; then
7617 paranoia_flags=""
7618 else if test "$paranoia_flags" = "yes"; then
7619 paranoia_flags="-Wall -Werror"
7620 fi fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7622 $as_echo "$paranoia_flags" >&6; }
7623 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7625 #-----------------------------------------------------------------------------
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7627 $as_echo_n "checking what target variant to enable... " >&6; }
7628 # Check whether --enable-target_variant was given.
7629 if test "${enable_target_variant+set}" = set; then :
7630 enableval=$enable_target_variant; target_variant=$enableval
7631 else
7632 target_variant=""
7635 if test "$target_variant" = ""; then
7636 aros_target_variant=""
7637 aros_target_suffix=""
7638 enableval="none"
7639 else
7640 aros_target_variant="$target_variant"
7641 aros_target_suffix="-$target_variant"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7644 $as_echo "$enableval" >&6; }
7646 #-----------------------------------------------------------------------------
7647 # Target-specific defaults. You can override then on a per-target basis.
7649 # Bootloader name. Currently used by PC target.
7650 target_bootloader="none"
7652 #-----------------------------------------------------------------------------
7653 # Additional options for some specific targets
7655 case "$aros_target_variant" in
7656 ios)
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7658 $as_echo_n "checking XCode path... " >&6; }
7660 # Check whether --with-xcode was given.
7661 if test "${with_xcode+set}" = set; then :
7662 withval=$with_xcode; aros_xcode_path="$withval"
7663 else
7664 aros_xcode_path="/Developer"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7668 $as_echo "$aros_xcode_path" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7671 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7673 # Check whether --with-sdk-version was given.
7674 if test "${with_sdk_version+set}" = set; then :
7675 withval=$with_sdk_version; aros_sdk_version="$withval"
7676 else
7677 aros_sdk_version="4.1"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7681 $as_echo "$aros_sdk_version" >&6; }
7685 "android")
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7687 $as_echo_n "checking Android SDK path... " >&6; }
7689 # Check whether --with-sdk was given.
7690 if test "${with_sdk+set}" = set; then :
7691 withval=$with_sdk; aros_android_sdk="$withval"
7692 else
7693 aros_android_sdk=$default_android_sdk
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7697 $as_echo "$aros_android_sdk" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7700 $as_echo_n "checking Android NDK path... " >&6; }
7702 # Check whether --with-ndk was given.
7703 if test "${with_ndk+set}" = set; then :
7704 withval=$with_ndk; aros_android_ndk="$withval"
7705 else
7706 aros_android_ndk="none"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7710 $as_echo "$aros_android_ndk" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7713 $as_echo_n "checking what Android SDK version to use... " >&6; }
7715 # Check whether --with-sdk-version was given.
7716 if test "${with_sdk_version+set}" = set; then :
7717 withval=$with_sdk_version; aros_sdk_version="$withval"
7718 else
7719 aros_sdk_version="12"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7723 $as_echo "$aros_sdk_version" >&6; }
7725 if test "$aros_android_ndk" != "none"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7727 $as_echo_n "checking what Android NDK version to use... " >&6; }
7729 # Check whether --with-ndk-version was given.
7730 if test "${with_ndk_version+set}" = set; then :
7731 withval=$with_ndk_version; aros_ndk_version="$withval"
7732 else
7733 aros_ndk_version="9"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7737 $as_echo "$aros_ndk_version" >&6; }
7740 export PATH="$aros_android_sdk/tools:$PATH"
7741 # Extract the first word of "$android_tool", so it can be a program name with args.
7742 set dummy $android_tool; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_path_android_tool+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 case $android_tool in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7769 esac
7771 android_tool=$ac_cv_path_android_tool
7772 if test -n "$android_tool"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7774 $as_echo "$android_tool" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7781 if test "$android_tool" = ""; then
7782 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7785 aros_android_level=android-$aros_sdk_version
7786 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7787 echo "Platform $aros_android_level is not installed in your SDK"
7788 echo "Use --with-sdk-version=<API level number> to select another platform version"
7789 echo "You can check what plaform versions are installed in your SDK"
7790 echo "by examining contents of $aros_android_sdk/platforms directory"
7791 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7794 # Extract the first word of "ant", so it can be a program name with args.
7795 set dummy ant; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_path_ant+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 case $ant in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7817 done
7818 done
7819 IFS=$as_save_IFS
7822 esac
7824 ant=$ac_cv_path_ant
7825 if test -n "$ant"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7827 $as_echo "$ant" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7834 if test "$ant" = ""; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7836 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7840 $as_echo_n "checking Build debug or release apk... " >&6; }
7842 # Check whether --with-apk-version was given.
7843 if test "${with_apk_version+set}" = set; then :
7844 withval=$with_apk_version; aros_android_antapk=$withval
7845 else
7846 aros_android_antapk=release
7849 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7850 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7853 $as_echo "$aros_android_antapk" >&6; }
7855 if test "$host_os" = "mingw32"; then
7856 android_tool="cmd //c $android_tool"
7860 esac
7862 #-----------------------------------------------------------------------------
7863 # External toolchains
7864 kernel_tool_prefix="none"
7865 aros_tool_prefix="none"
7866 elf_tool_prefix="${target_cpu}-elf-"
7868 # This is the target configuration switch.
7869 case "$target_os" in
7870 linux*)
7871 aros_target_arch="linux"
7872 aros_target_family="unix"
7873 case "$target_cpu" in
7874 *m68k*)
7875 aros_target_cpu="m68k"
7876 aros_object_format="m68kelf"
7877 aros_flavour="emulcompat"
7878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7879 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7880 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7881 gcc_target_cpu="mc68000"
7883 *i?86*)
7884 aros_target_cpu="i386"
7885 aros_object_format="elf_i386"
7886 aros_flavour="emulation"
7887 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7888 aros_kernel_ldflags="-Wl,-melf_i386"
7889 aros_default_wbdepth=8
7890 gcc_target_cpu="i386"
7891 pci_hidd_target="hidd-pci-linux"
7892 android_tool_dir_prefix="x86"
7893 android_tool_prefix="i686-android-linux"
7894 android_ndk_arch="x86"
7896 *x86_64*)
7897 aros_target_cpu="x86_64"
7898 aros_object_format="elf_x86_64"
7899 aros_flavour="emulation"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7901 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7902 aros_default_wbdepth=8
7903 pci_hidd_target="hidd-pci-linux"
7905 *powerpc*)
7906 aros_target_cpu="ppc"
7907 aros_object_format="elf32ppc"
7908 aros_flavour="emulation"
7909 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7910 aros_default_wbdepth=8
7911 gcc_target_cpu="ppc"
7913 # TODO
7914 # Same as powerpc, but I need this for the nightly build to work again.
7915 # Actually, the nightly should be made working with powerpc target.
7916 # That just was too much work for the moment, another week or two.
7917 *ppc*)
7918 aros_target_cpu="ppc"
7919 aros_object_format="elf32ppc"
7920 aros_flavour="emulation"
7921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7922 aros_default_wbdepth=8
7923 gcc_target_cpu="ppc"
7925 *armhf*)
7926 aros_target_cpu="arm"
7927 target_cpu="arm"
7928 aros_object_format="armelf_aros"
7929 aros_flavour="emulation"
7930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7931 gcc_target_cpu="arm"
7932 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7933 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7934 aros_arch_libs="-laeabi"
7935 gcc_default_float_abi="hard"
7936 android_tool_dir_prefix="arm-linux-androideabi"
7937 android_tool_prefix="arm-linux-androideabi"
7938 android_ndk_arch="arm"
7939 kernel_tool_prefix="arm-linux-gnueabihf-"
7941 *arm*)
7942 aros_target_cpu="arm"
7943 aros_object_format="armelf_aros"
7944 aros_flavour="emulation"
7945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7946 gcc_target_cpu="arm"
7947 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7948 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7949 aros_arch_libs="-laeabi"
7950 android_tool_dir_prefix="arm-linux-androideabi"
7951 android_tool_prefix="arm-linux-androideabi"
7952 android_ndk_arch="arm"
7953 kernel_tool_prefix="arm-linux-gnueabi-"
7956 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7958 esac
7959 case "$aros_target_variant" in
7960 android)
7962 if test "$android_ndk_arch" = ""; then
7963 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7966 aros_default_wbwidth=320
7967 aros_default_wbheight=480
7968 if test "$aros_android_ndk" = "none"; then
7969 aros_kernel_cflags="-mandroid"
7970 aros_kernel_ldflags="-mandroid"
7971 CFLAGS="-mandroid"
7972 else
7973 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7974 kernel_tool_version=""
7975 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7976 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7977 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7978 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7979 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7981 need_x11=no
7982 unixgfx_hidd_target=kernel-hidd-androidgfx
7983 # Disable implicit PIC mode
7984 aros_target_cflags="$aros_target_cflags -fno-pic"
7985 kernel_tool_prefix="$android_tool_prefix-"
7987 esac
7991 aros_target_arch="pc"
7992 aros_shared_default="no"
7993 target_bootloader="grub2"
7994 case "$target_cpu" in
7995 *i?86*)
7996 aros_target_cpu="i386"
7999 if test "$aros_object_format" = "" ; then
8000 aros_object_format="elf_i386"
8002 aros_flavour="standalone"
8003 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8004 aros_kernel_ldflags="-Wl,-melf_i386"
8005 aros_default_wbwidth=640
8006 aros_default_wbheight=480
8007 gcc_target_cpu="i386"
8009 *x86_64*)
8010 aros_target_cpu="x86_64"
8011 aros_serial_debug=1
8012 if test "$aros_object_format" = "" ; then
8013 aros_object_format="elf_x86_64"
8015 aros_flavour="standalone"
8016 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8017 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8018 aros_kernel_ldflags=""
8019 aros_default_wbwidth=640
8020 aros_default_wbheight=480
8023 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8025 esac
8028 prep)
8029 aros_target_arch="prep"
8030 aros_shared_default="no"
8031 aros_target_cpu="ppc"
8032 aros_object_format="elf32ppc"
8033 aros_flavour="ppcnative"
8034 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8035 aros_kernel_ldflags=""
8036 aros_default_wbwidth=640
8037 aros_default_wbheight=480
8038 gcc_target_cpu="ppc"
8041 freebsd*)
8042 aros_target_arch="freebsd"
8043 aros_target_family="unix"
8044 aros_target_cpu="i386"
8045 aros_flavour="emulation"
8046 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8047 gcc_target_cpu="i386"
8049 aros_target_strip_flags="-x"
8052 darwin*)
8053 aros_target_arch="darwin"
8054 aros_target_family="unix"
8055 aros_flavour="emulation"
8056 case "$target_cpu" in
8057 *i?86*)
8058 aros_ios_platform="iPhoneSimulator"
8059 aros_target_cpu="i386"
8060 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8061 aros_kernel_ldflags=""
8062 aros_macosx_version="10.4"
8063 aros_default_wbdepth=8
8064 gcc_target_cpu="i386"
8065 aros_object_format="elf_i386"
8066 aros_kernel_ar_flags="-cr"
8067 aros_target_strip_flags="-x"
8068 kernel_tool_flags="-m32"
8070 *x86_64*)
8071 aros_target_cpu="x86_64"
8072 aros_object_format="elf_x86_64"
8073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8074 aros_macosx_version="10.6"
8075 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8076 aros_kernel_cflags="-m64"
8077 aros_kernel_ldflags="-m64"
8078 aros_target_cflags="-mcmodel=large"
8079 aros_default_wbdepth=8
8080 aros_kernel_ar="ar"
8081 aros_kernel_ar_flags="-cr"
8082 aros_kernel_ld="ld"
8083 aros_kernel_as="as"
8084 aros_kernel_ranlib="ranlib"
8085 aros_kernel_nm="nm"
8086 aros_kernel_strip="strip"
8087 kernel_tool_prefix="i686-apple-darwin10-"
8089 *ppc*)
8090 aros_target_cpu="ppc"
8091 aros_object_format="elf32ppc"
8092 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8093 aros_kernel_ldflags=""
8094 aros_macosx_version="10.0"
8095 aros_default_wbdepth=8
8096 gcc_target_cpu="ppc"
8097 aros_kernel_ar="ar"
8098 aros_kernel_ar_flags="-cr"
8099 aros_kernel_ld="ld -arch ppc"
8100 aros_kernel_as="as -arch ppc"
8101 aros_kernel_ranlib="ranlib -arch ppc"
8102 aros_kernel_nm="nm -arch ppc"
8103 aros_kernel_strip="strip -arch ppc"
8104 kernel_tool_prefix="powerpc-apple-darwin10-"
8106 *arm*)
8107 aros_ios_platform="iPhoneOS"
8108 aros_target_cpu="arm"
8109 aros_object_format="armelf_aros"
8110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8111 aros_arch_libs="-laeabi"
8112 aros_default_wbdepth=8
8113 gcc_target_cpu="arm"
8114 aros_kernel_ar="ar"
8115 aros_kernel_ar_flags="-cr"
8116 aros_kernel_ld="ld -arch arm"
8117 aros_kernel_ranlib="ranlib -arch arm"
8118 kernel_tool_prefix="arm-apple-darwin10-"
8119 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8122 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8124 esac
8125 case "$aros_target_variant" in
8126 ios)
8127 aros_ios_version="3.0"
8128 aros_default_wbwidth=320
8129 aros_default_wbheight=480
8130 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8131 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8132 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8133 need_x11=no
8134 # This is here because it may depend on iOS or SDK version
8135 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8136 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8137 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8140 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8141 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8143 esac
8146 dragonfly*)
8147 aros_target_arch="dragonfly"
8148 aros_target_family="unix"
8149 aros_flavour="emulation"
8150 case "$target_cpu" in
8151 *i?86*)
8152 aros_target_cpu="i386"
8153 aros_object_format="elf_i386"
8154 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8156 *x86_64*)
8157 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8158 aros_target_cpu="x86_64"
8159 aros_object_format="elf_x86_64"
8160 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8163 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8165 esac
8168 netbsd*)
8169 aros_target_arch="netbsd"
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__NetBSD__"
8177 gcc_target_cpu="mc68000"
8179 *i?86*)
8180 aros_target_cpu="i386"
8181 aros_object_format="elf_i386"
8182 aros_flavour="emulation"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8184 aros_default_wbdepth=8
8185 gcc_target_cpu="i386"
8188 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8190 esac
8191 aros_target_genmap="-Wl,-M -Xlinker >"
8192 aros_flavour="emulation"
8193 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8196 openbsd*)
8197 aros_target_arch="openbsd"
8198 aros_target_family="unix"
8199 case "$target_cpu" in
8200 *i?86*)
8201 aros_target_cpu="i386"
8202 aros_object_format="elf_i386"
8203 aros_flavour="emulation"
8204 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8205 gcc_target_cpu="i386"
8208 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8210 esac
8211 aros_target_genmap="-Wl,-M -Xlinker >"
8212 aros_target_nm_flags="-u"
8213 aros_flavour="emulation"
8216 solaris*)
8217 aros_target_arch="solaris"
8218 aros_target_family="unix"
8219 case "$target_cpu" in
8220 *i?86*)
8221 aros_target_cpu="i386"
8222 aros_object_format="elf_i386"
8223 aros_flavour="emulation"
8224 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8225 aros_default_wbdepth=8
8226 gcc_target_cpu="i386"
8228 *sparc*)
8229 aros_target_cpu="sparc"
8230 aros_object_format="elf_sparc"
8231 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8232 gcc_target_cpu="sparc"
8235 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8237 esac
8238 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8239 aros_flavour="emulation"
8242 morphos*)
8243 aros_target_arch="morphos"
8244 aros_shared_default="no"
8245 aros_target_cpu="ppc"
8246 aros_object_format="elf_ppc"
8247 aros_flavour="nativecompat"
8248 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8249 gcc_target_cpu="ppc"
8252 sam440)
8253 aros_target_arch="sam440"
8254 aros_shared_default="no"
8255 aros_target_cpu="ppc"
8256 aros_object_format="elf32ppc"
8257 aros_flavour="ppcnative"
8258 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8259 aros_kernel_ldflags=""
8260 aros_default_wbwidth=1024
8261 aros_default_wbheight=768
8262 aros_default_wbdepth=24
8263 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8264 gcc_target_cpu="powerpc"
8267 efika)
8268 aros_target_arch="efika"
8269 aros_shared_default="no"
8270 aros_target_cpu="arm"
8271 aros_object_format="armelf_aros"
8272 aros_flavour="standalone"
8273 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8274 aros_kernel_ldflags=""
8275 aros_default_wbwidth=1024
8276 aros_default_wbheight=600
8277 aros_arch_libs="-laeabi"
8278 gcc_default_cpu="armv7-a"
8279 gcc_default_fpu="vfpv3"
8280 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8281 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8282 aros_optimization_cflags="$aros_optimization_cflags -Os"
8283 case "$target_cpu" in
8284 *armhf*)
8285 gcc_default_float_abi="hard"
8286 target_cpu=arm
8287 aros_target_cpu=arm
8289 *arm*)
8290 gcc_default_float_abi="softfp"
8293 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8295 esac
8298 chrp)
8299 aros_target_arch="chrp"
8300 aros_shared_default="no"
8301 aros_target_cpu="ppc"
8302 aros_object_format="elf32ppc"
8303 aros_flavour="ppcnative"
8304 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8305 aros_kernel_ldflags=""
8306 aros_default_wbwidth=640
8307 aros_default_wbheight=480
8308 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8309 gcc_target_cpu="powerpc"
8310 case "$aros_target_variant" in
8311 efika)
8312 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8314 esac
8317 r*pi)
8318 aros_flavour="standalone"
8319 aros_target_arch="raspi"
8320 aros_target_cpu="arm"
8321 aros_object_format="armelf_aros"
8322 aros_shared_default="no"
8323 aros_arch_libs="-laeabi"
8325 gcc_default_cpu="armv6"
8326 gcc_default_cpu_tune="arm1176jzf-s"
8327 case "$target_cpu" in
8328 *armhf*)
8329 gcc_default_float_abi="hard"
8331 *arm*)
8332 gcc_default_float_abi="softfp"
8335 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8337 esac
8339 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8340 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8341 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8342 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8343 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8346 sun4i)
8347 aros_flavour="standalone"
8348 aros_target_arch="sun4i"
8349 aros_target_cpu="arm"
8350 aros_object_format="armelf_aros"
8351 aros_shared_default="no"
8352 aros_arch_libs="-laeabi"
8354 gcc_default_cpu="armv7-a"
8355 gcc_default_fpu="neon"
8356 gcc_default_cpu_tune="cortex-a8"
8357 gcc_default_float_abi="hard"
8359 if test "$target_variant" = ""; then
8360 as_fn_error $? "\"Please provide the target platform for sun4i with--enable-target-variant={platform}\"" "$LINENO" 5
8363 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8364 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8365 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8366 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8367 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8370 amiga*)
8371 aros_target_arch="amiga"
8372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8373 aros_shared_default="no"
8375 case "$target_cpu" in
8376 *m68k*)
8377 # Check whether --enable-amigaos_compliance was given.
8378 if test "${enable_amigaos_compliance+set}" = set; then :
8379 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8382 aros_enable_mmu=no
8383 aros_target_cpu="m68k"
8384 aros_object_format="m68kelf"
8385 aros_flavour="standcompat"
8386 gcc_target_cpu="m68000"
8387 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8388 aros_optimization_cflags="$aros_optimization_cflags -Os"
8389 aros_config_aflags="$aros_config_aflags"
8390 aros_target_strip_flags="-R.comment --strip-debug"
8391 aros_default_wbwidth=640
8392 aros_default_wbheight=256
8393 aros_default_wbdepth=2
8395 *ppc*)
8396 aros_cpu="ppc"
8397 aros_flavour="native"
8398 gcc_target_cpu="ppc"
8401 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8403 esac
8406 mingw*)
8407 aros_target_arch="mingw32"
8408 aros_shared_default="no"
8409 aros_flavour="emulation"
8410 aros_shared_cflags=""
8411 need_crosstools="yes"
8412 need_dlopen="no"
8413 rescomp="windres"
8414 case "$target_cpu" in
8415 *i?86*)
8416 aros_target_cpu="i386"
8417 aros_object_format="elf_i386"
8418 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8419 aros_default_wbdepth=8
8420 gcc_target_cpu="i386"
8422 kernel_tool_prefix="i386-mingw32-"
8424 *x86_64*)
8425 aros_target_cpu="x86_64"
8426 aros_object_format="elf_x86_64"
8427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8428 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8429 aros_default_wbdepth=8
8430 kernel_tool_prefix="x86_64-w64-mingw32-"
8432 *arm*)
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_default_wbdepth=8
8438 gcc_target_cpu="arm"
8439 gcc_default_float_abi="soft"
8440 kernel_tool_prefix="arm-mingw32ce-"
8441 aros_default_wbwidth=160
8442 aros_default_wbheight=160
8445 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8447 esac
8448 if test $host_os = "cygwin"; then
8449 aros_kernel_cflags="-mno-cygwin"
8452 pp*)
8453 aros_target_arch="pp"
8454 aros_shared_default="no"
8455 case "$target_cpu" in
8456 *m68k*)
8457 aros_target_cpu="m68k"
8458 aros_object_format="m68kelf"
8459 aros_flavour="palmnative"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8461 aros_default_wbwidth=160
8462 aros_default_wbheight=160
8463 aros_default_wbdepth=1
8464 aros_target_ar_flags="cru"
8465 aros_compiler_libs="-lgcc1"
8466 aros_shared_default=no
8467 aros_shared_cflags="-fpic"
8468 aros_shared_aflags=""
8469 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8470 aros_kernel_ldflags="-Wl,-rpath,./lib"
8471 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8472 aros_debug_aflags=""
8473 aros_debug_ldflags="$aros_symbols_debug"
8474 aros_mungwall_debug="0"
8475 aros_modules_debug="0"
8476 gcc_target_cpu="mc68000"
8477 ignore_undefined_symbols="-ius"
8480 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8482 esac
8485 mac*)
8486 aros_target_arch="mac"
8487 aros_shared_default="no"
8488 case "$target_cpu" in
8489 *m68k*)
8490 aros_target_cpu="m68k"
8491 aros_object_format="m68kelf"
8492 aros_flavour="mac68knative"
8493 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8494 aros_default_wbwidth=512
8495 aros_default_wbheight=384
8496 aros_default_wbdepth=8
8497 aros_target_ar_flags="cru"
8498 aros_compiler_libs="-lgcc1"
8499 aros_shared_default=no
8500 aros_shared_cflags="-fpic"
8501 aros_shared_aflags=""
8502 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8503 aros_kernel_ldflags="-Wl,-rpath,./lib"
8504 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8505 aros_debug_aflags=""
8506 aros_debug_ldflags="$aros_symbols_debug"
8507 aros_mungwall_debug="0"
8508 aros_modules_debug="0"
8509 gcc_target_cpu="mc68000"
8510 ignore_undefined_symbols="-ius"
8513 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8515 esac
8519 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8521 esac
8523 #-----------------------------------------------------------------------------
8524 crosstools_guess=yes
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8527 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8529 # Check whether --with-kernel-toolchain-prefix was given.
8530 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8531 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8535 $as_echo "$kernel_tool_prefix" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8538 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8540 # Check whether --with-elf-toolchain-prefix was given.
8541 if test "${with_elf_toolchain_prefix+set}" = set; then :
8542 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8543 crosstools_guess=no
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8547 $as_echo "$elf_tool_prefix" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8550 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8552 # Check whether --with-aros-toolchain was given.
8553 if test "${with_aros_toolchain+set}" = set; then :
8554 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8555 crosstools_guess=no
8558 if test "$aros_tool_prefix" = "yes" ; then
8559 aros_tool_prefix=$aros_target_cpu-aros-
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8562 $as_echo "$aros_tool_prefix" >&6; }
8564 #-----------------------------------------------------------------------------
8565 # Checking if we should build crosstools..
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8567 $as_echo_n "checking whether to build crosstools... " >&6; }
8568 # Check whether --enable-crosstools was given.
8569 if test "${enable_crosstools+set}" = set; then :
8570 enableval=$enable_crosstools; crosstools="$enableval"
8571 else
8572 crosstools="$crosstools_guess"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8576 $as_echo "$crosstools" >&6; }
8578 if test "${crosstools}" = "yes"; then
8579 if test "${crosstools_guess}" = "no"; then
8580 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8585 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8587 # Check whether --with-aros-toolchain-install was given.
8588 if test "${with_aros_toolchain_install+set}" = set; then :
8589 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8592 if test "x$aros_toolchain_install" = "x"; then
8593 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8594 else
8595 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8596 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8599 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8601 # Helper to identify gcc version
8604 #-----------------------------------------------------------------------------
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8606 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8608 # Check whether --with-gcc-version was given.
8609 if test "${with_gcc_version+set}" = set; then :
8610 withval=$with_gcc_version; use_gcc_version="$withval"
8611 else
8612 use_gcc_version=""
8615 if test "$use_gcc_version" = ""; then
8616 if test "${crosstools}" = "no"; then
8617 if test "x$aros_toolchain_install" != "x"; then
8619 target_gcc_version=""
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8621 $as_echo_n "checking gcc version... " >&6; }
8622 if ${ax_cv_gcc_version+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8626 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8627 if test "x$ax_cv_gcc_version" = "x"; then :
8629 ax_cv_gcc_version=""
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8635 $as_echo "$ax_cv_gcc_version" >&6; }
8636 target_gcc_version=$ax_cv_gcc_version
8641 if test "$use_gcc_version" = ""; then
8642 target_gcc_version="4.6.4"
8644 else
8645 target_gcc_version="$use_gcc_version"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8648 $as_echo "$target_gcc_version" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8651 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8652 # Check whether --enable-objc was given.
8653 if test "${enable_objc+set}" = set; then :
8654 enableval=$enable_objc; objc="$enableval"
8655 else
8656 objc="yes"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8660 $as_echo "$objc" >&6; }
8661 if test "x$objc" = "xyes"; then
8662 objc_target="objc"
8663 else
8664 objc_target="no-objc"
8667 spec_obj_format="-m $aros_object_format"
8668 # Now process extra architecture-specific options.
8669 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8670 # as well as floating-point ABI.
8671 case "$aros_target_cpu" in
8672 *x86_64*)
8673 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8675 arm)
8676 if test "$gcc_default_cpu" = ""; then
8677 gcc_default_cpu="armv6"
8679 if test "$gcc_default_fpu" = ""; then
8680 gcc_default_fpu="vfp"
8682 if test "$gcc_default_float_abi" = ""; then
8683 gcc_default_float_abi="softfp"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8687 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8689 # Check whether --with-cpu was given.
8690 if test "${with_cpu+set}" = set; then :
8691 withval=$with_cpu; aros_gcc_cpu="$withval"
8692 else
8693 aros_gcc_cpu=$gcc_default_cpu
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8697 $as_echo "$aros_gcc_cpu" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8700 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8702 # Check whether --with-fpu was given.
8703 if test "${with_fpu+set}" = set; then :
8704 withval=$with_fpu; aros_gcc_fpu="$withval"
8705 else
8706 aros_gcc_fpu=$gcc_default_fpu
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8710 $as_echo "$aros_gcc_fpu" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8713 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8715 # Check whether --with-float was given.
8716 if test "${with_float+set}" = set; then :
8717 withval=$with_float; aros_gcc_float_abi="$withval"
8718 else
8719 aros_gcc_float_abi=$gcc_default_float_abi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8723 $as_echo "$aros_gcc_float_abi" >&6; }
8725 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8726 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8727 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8729 i386)
8730 aros_isa_flags="-m32 -march=i486"
8731 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8732 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8734 esac
8736 # Some architectures may need custom ELF specs.
8737 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8738 elf_specs_in=config/${aros_object_format}-specs.in
8739 else
8740 elf_specs_in=config/elf-specs.in
8743 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8744 # Since we override specs, we may need to put these defines there
8745 if test "$gcc_target_cpu" != ""; then
8746 gcc_target_cpu="-D__${gcc_target_cpu}__"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8750 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8752 # Check whether --with-portssources was given.
8753 if test "${with_portssources+set}" = set; then :
8754 withval=$with_portssources; with_portssrcdir=$withval
8755 else
8756 with_portssrcdir="default"
8759 if test "$with_portssrcdir" = "default"; then
8760 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8761 else
8762 AROS_PORTSSRCDIR="$with_portssrcdir"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8765 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8768 $as_echo_n "checking which bootloader to use... " >&6; }
8770 # Check whether --with-bootloader was given.
8771 if test "${with_bootloader+set}" = set; then :
8772 withval=$with_bootloader; target_bootloader=$withval
8773 else
8774 target_bootloader=$target_bootloader
8777 if test "$target_bootloader" = "none"; then
8778 aros_target_bootloader=""
8779 else
8780 aros_target_bootloader="$target_bootloader"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8783 $as_echo "$target_bootloader" >&6; }
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8786 $as_echo_n "checking which icon-set to use... " >&6; }
8788 # Check whether --with-iconset was given.
8789 if test "${with_iconset+set}" = set; then :
8790 withval=$with_iconset; target_iconset=$withval
8791 else
8792 target_iconset="default"
8795 if test "$target_iconset" = "default"; then
8796 aros_target_iconset="Gorilla"
8797 target_iconset="default (Gorilla)"
8798 else
8799 aros_target_iconset="$target_iconset"
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8802 $as_echo "$target_iconset" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8805 $as_echo_n "checking which GUI Theme to use... " >&6; }
8807 # Check whether --with-theme was given.
8808 if test "${with_theme+set}" = set; then :
8809 withval=$with_theme; target_guitheme=$withval
8810 else
8811 target_guitheme="default"
8814 if test "$target_guitheme" = "default"; then
8815 aros_target_guitheme="Ice"
8816 else
8817 aros_target_guitheme="$target_guitheme"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8820 $as_echo "$aros_target_guitheme" >&6; }
8822 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8823 # for target code)
8824 cross_compiling=no
8826 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8827 cross_compiling=yes
8830 if test "$aros_host_cpu" == "x86_64" ; then
8831 if test "$aros_target_cpu" == "i386" ; then
8832 cross_compiling=no
8836 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8837 if test "$aros_host_arch" != "$aros_target_arch" ; then
8838 cross_compiling=yes
8840 else
8841 if test "$host_cc_elf" = "no" ; then
8842 cross_compiling=yes
8846 if test "$cross_compiling" = "no" ; then
8847 kernel_tool_prefix=""
8848 if test "$host_cc_elf" = "yes" ; then
8849 elf_tool_prefix=""
8853 if test "$kernel_tool_version" != ""; then
8854 kernel_tool_version="-$kernel_tool_version"
8856 if test "$use_gcc_version" != ""; then
8857 target_tool_version="-$target_gcc_version"
8860 #######################################################################
8861 ## Compute what toolchains to use, and their paths ##
8862 #######################################################################
8864 # This takes, as input:
8865 # crosstools {yes,no}
8866 # kernel_tool_version {"",[version]}
8867 # target_tool_version {"",[version]}
8868 # kernel_tool_prefix {none,[some-arch-os-]}
8869 # target_tool_prefix ${aros_target_cpu}-aros-
8870 # aros_tool_prefix ${aros_target_cpu}-aros-
8872 # The output is
8873 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8874 # Where the 'kernel' binaries are located
8875 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8876 # Where the 'target' binaries are located
8877 # (not the symlink farm - that is aros_target_*!)
8879 # The rules are:
8880 # if crosstools then
8881 # if kernel_tools_prefix = "no-kernel-prefix-"
8882 # aros_kernel_* = crosstools cc paths
8883 # aros_kernel_cc = elf cc wrapper around crosstools cc
8884 # else
8885 # VALIDATE(${kernel_tools_prefix}*)
8886 # aros_kernel_* = ${kernel_tools_prefix}*
8887 # if ${kernel_tools_prefix}cc is an AROS gcc
8888 # aros_kernel_cc = ${kernel_tools_prefix}cc
8889 # else
8890 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8891 # fi
8892 # fi
8894 # orig_target_* = aros built crosstools
8895 # orig_target_cc = elf cc wrapper around crosstools cc
8896 # else
8897 # VALIDATE(${kernel_tools_prefix}*)
8899 # orig_target_* = aros_kernel_*
8900 # if aros_kernel_cc is an AROS gcc
8901 # orig_target_cc = aros_kernel_cc
8902 # else
8903 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8904 # fi
8905 # fi
8907 target_tool_prefix="${aros_target_cpu}-aros-"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8910 $as_echo_n "checking which kernel tools... " >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8912 $as_echo "$kernel_tool_prefix" >&6; };
8914 if test "$kernel_tool_prefix" = "none" ; then
8915 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8916 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8918 else
8919 # Kernel tools required - find them
8920 # Note that 'normally', aros_kernel_* overrides will be
8921 # empty, unless specified in the per-arch sections above.
8922 if test "x$aros_kernel_cpp" = "x"; then
8923 aros_kernel_cpp=${kernel_tool_prefix}cpp
8926 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8927 if test "$cross_compiling" = "yes" ; then
8928 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8929 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 case $aros_kernel_cpp in
8936 [\\/]* | ?:[\\/]*)
8937 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8951 done
8952 done
8953 IFS=$as_save_IFS
8956 esac
8958 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8959 if test -n "$aros_kernel_cpp"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8961 $as_echo "$aros_kernel_cpp" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8968 else
8969 if test "$GCC" = "yes"; then
8970 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8971 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8972 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 case $aros_kernel_cpp in
8979 [\\/]* | ?:[\\/]*)
8980 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in `dirname $aros_gcc_cpp`
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8990 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
8999 esac
9001 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9002 if test -n "$aros_kernel_cpp"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9004 $as_echo "$aros_kernel_cpp" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9012 if test "$aros_kernel_cpp" = ""; then
9013 # Extract the first word of "cpp", so it can be a program name with args.
9014 set dummy cpp; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 case $aros_kernel_cpp in
9021 [\\/]* | ?:[\\/]*)
9022 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9041 esac
9043 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9044 if test -n "$aros_kernel_cpp"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9046 $as_echo "$aros_kernel_cpp" >&6; }
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9055 else
9056 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9057 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 case $aros_kernel_cpp in
9064 [\\/]* | ?:[\\/]*)
9065 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9079 done
9080 done
9081 IFS=$as_save_IFS
9084 esac
9086 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9087 if test -n "$aros_kernel_cpp"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9089 $as_echo "$aros_kernel_cpp" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9098 if test "$aros_kernel_cpp" = ""; then
9099 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9101 if test "x$aros_kernel_cc" = "x"; then
9102 aros_kernel_cc=${kernel_tool_prefix}gcc
9105 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9106 if test "$cross_compiling" = "yes" ; then
9107 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9108 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 case $aros_kernel_cc in
9115 [\\/]* | ?:[\\/]*)
9116 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9135 esac
9137 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9138 if test -n "$aros_kernel_cc"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9140 $as_echo "$aros_kernel_cc" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9147 else
9148 if test "$GCC" = "yes"; then
9149 aros_gcc_cc=`$CC -print-prog-name=cc`
9150 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9151 set dummy `basename $aros_gcc_cc`; ac_word=$2
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153 $as_echo_n "checking for $ac_word... " >&6; }
9154 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 case $aros_kernel_cc in
9158 [\\/]* | ?:[\\/]*)
9159 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 for as_dir in `dirname $aros_gcc_cc`
9165 IFS=$as_save_IFS
9166 test -z "$as_dir" && as_dir=.
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9169 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 break 2
9173 done
9174 done
9175 IFS=$as_save_IFS
9178 esac
9180 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9181 if test -n "$aros_kernel_cc"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9183 $as_echo "$aros_kernel_cc" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9191 if test "$aros_kernel_cc" = ""; then
9192 # Extract the first word of "cc", so it can be a program name with args.
9193 set dummy cc; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 case $aros_kernel_cc in
9200 [\\/]* | ?:[\\/]*)
9201 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9215 done
9216 done
9217 IFS=$as_save_IFS
9220 esac
9222 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9223 if test -n "$aros_kernel_cc"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9225 $as_echo "$aros_kernel_cc" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9234 else
9235 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9236 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 case $aros_kernel_cc in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9254 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9258 done
9259 done
9260 IFS=$as_save_IFS
9263 esac
9265 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9266 if test -n "$aros_kernel_cc"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9268 $as_echo "$aros_kernel_cc" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9277 if test "$aros_kernel_cc" = ""; then
9278 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9280 if test "x$aros_kernel_cxx" = "x"; then
9281 aros_kernel_cxx=${kernel_tool_prefix}g++
9284 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9285 if test "$cross_compiling" = "yes" ; then
9286 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9287 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 case $aros_kernel_cxx in
9294 [\\/]* | ?:[\\/]*)
9295 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9305 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9309 done
9310 done
9311 IFS=$as_save_IFS
9314 esac
9316 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9317 if test -n "$aros_kernel_cxx"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9319 $as_echo "$aros_kernel_cxx" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9326 else
9327 if test "$GCC" = "yes"; then
9328 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9329 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9330 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 case $aros_kernel_cxx in
9337 [\\/]* | ?:[\\/]*)
9338 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in `dirname $aros_gcc_cxx`
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9352 done
9353 done
9354 IFS=$as_save_IFS
9357 esac
9359 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9360 if test -n "$aros_kernel_cxx"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9362 $as_echo "$aros_kernel_cxx" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test "$aros_kernel_cxx" = ""; then
9371 # Extract the first word of "cxx", so it can be a program name with args.
9372 set dummy cxx; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 case $aros_kernel_cxx in
9379 [\\/]* | ?:[\\/]*)
9380 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9394 done
9395 done
9396 IFS=$as_save_IFS
9399 esac
9401 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9402 if test -n "$aros_kernel_cxx"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9404 $as_echo "$aros_kernel_cxx" >&6; }
9405 else
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9413 else
9414 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9415 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 case $aros_kernel_cxx in
9422 [\\/]* | ?:[\\/]*)
9423 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9442 esac
9444 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9445 if test -n "$aros_kernel_cxx"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9447 $as_echo "$aros_kernel_cxx" >&6; }
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9456 # If it's set, make sure it's really there
9457 if test "x$aros_kernel_cxx" != "x" ; then
9458 if test "$aros_kernel_cxx" = ""; then
9459 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9463 if test "$aros_kernel_ld" = ""; then
9464 if test "$cross_compiling" = "yes" ; then
9465 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9466 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 case $aros_kernel_ld in
9473 [\\/]* | ?:[\\/]*)
9474 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9484 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9493 esac
9495 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9496 if test -n "$aros_kernel_ld"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9498 $as_echo "$aros_kernel_ld" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9505 else
9506 if test "$GCC" = "yes"; then
9507 aros_gcc_ld=`$CC -print-prog-name=ld`
9508 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9509 set dummy `basename $aros_gcc_ld`; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 case $aros_kernel_ld in
9516 [\\/]* | ?:[\\/]*)
9517 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in `dirname $aros_gcc_ld`
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9527 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9531 done
9532 done
9533 IFS=$as_save_IFS
9536 esac
9538 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9539 if test -n "$aros_kernel_ld"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9541 $as_echo "$aros_kernel_ld" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9549 if test "$aros_kernel_ld" = ""; then
9550 # Extract the first word of "ld", so it can be a program name with args.
9551 set dummy ld; ac_word=$2
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 case $aros_kernel_ld in
9558 [\\/]* | ?:[\\/]*)
9559 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9573 done
9574 done
9575 IFS=$as_save_IFS
9578 esac
9580 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9581 if test -n "$aros_kernel_ld"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9583 $as_echo "$aros_kernel_ld" >&6; }
9584 else
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9592 else
9593 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9594 set dummy $aros_kernel_ld; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 case $aros_kernel_ld in
9601 [\\/]* | ?:[\\/]*)
9602 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9616 done
9617 done
9618 IFS=$as_save_IFS
9621 esac
9623 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9624 if test -n "$aros_kernel_ld"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9626 $as_echo "$aros_kernel_ld" >&6; }
9627 else
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9635 if test "$aros_kernel_ld" = ""; then
9636 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9639 if test "$aros_kernel_as" = ""; then
9640 if test "$cross_compiling" = "yes" ; then
9641 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9642 set dummy ${kernel_tool_prefix}as; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_aros_kernel_as+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $aros_kernel_as in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_kernel_as=$ac_cv_path_aros_kernel_as
9672 if test -n "$aros_kernel_as"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9674 $as_echo "$aros_kernel_as" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9681 else
9682 if test "$GCC" = "yes"; then
9683 aros_gcc_as=`$CC -print-prog-name=as`
9684 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9685 set dummy `basename $aros_gcc_as`; ac_word=$2
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687 $as_echo_n "checking for $ac_word... " >&6; }
9688 if ${ac_cv_path_aros_kernel_as+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 case $aros_kernel_as in
9692 [\\/]* | ?:[\\/]*)
9693 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in `dirname $aros_gcc_as`
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9707 done
9708 done
9709 IFS=$as_save_IFS
9712 esac
9714 aros_kernel_as=$ac_cv_path_aros_kernel_as
9715 if test -n "$aros_kernel_as"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9717 $as_echo "$aros_kernel_as" >&6; }
9718 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9725 if test "$aros_kernel_as" = ""; then
9726 # Extract the first word of "as", so it can be a program name with args.
9727 set dummy as; ac_word=$2
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if ${ac_cv_path_aros_kernel_as+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 case $aros_kernel_as in
9734 [\\/]* | ?:[\\/]*)
9735 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9754 esac
9756 aros_kernel_as=$ac_cv_path_aros_kernel_as
9757 if test -n "$aros_kernel_as"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9759 $as_echo "$aros_kernel_as" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9768 else
9769 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9770 set dummy $aros_kernel_as; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_path_aros_kernel_as+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 case $aros_kernel_as in
9777 [\\/]* | ?:[\\/]*)
9778 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9792 done
9793 done
9794 IFS=$as_save_IFS
9797 esac
9799 aros_kernel_as=$ac_cv_path_aros_kernel_as
9800 if test -n "$aros_kernel_as"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9802 $as_echo "$aros_kernel_as" >&6; }
9803 else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 $as_echo "no" >&6; }
9811 if test "$aros_kernel_as" = ""; then
9812 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9815 if test "$aros_kernel_ar" = ""; then
9816 if test "$cross_compiling" = "yes" ; then
9817 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9818 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 case $aros_kernel_ar in
9825 [\\/]* | ?:[\\/]*)
9826 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9836 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9840 done
9841 done
9842 IFS=$as_save_IFS
9845 esac
9847 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9848 if test -n "$aros_kernel_ar"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9850 $as_echo "$aros_kernel_ar" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9857 else
9858 if test "$GCC" = "yes"; then
9859 aros_gcc_ar=`$CC -print-prog-name=ar`
9860 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9861 set dummy `basename $aros_gcc_ar`; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 case $aros_kernel_ar in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in `dirname $aros_gcc_ar`
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9888 esac
9890 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9891 if test -n "$aros_kernel_ar"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9893 $as_echo "$aros_kernel_ar" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9901 if test "$aros_kernel_ar" = ""; then
9902 # Extract the first word of "ar", so it can be a program name with args.
9903 set dummy ar; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 case $aros_kernel_ar in
9910 [\\/]* | ?:[\\/]*)
9911 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9925 done
9926 done
9927 IFS=$as_save_IFS
9930 esac
9932 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9933 if test -n "$aros_kernel_ar"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9935 $as_echo "$aros_kernel_ar" >&6; }
9936 else
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; }
9944 else
9945 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9946 set dummy $aros_kernel_ar; ac_word=$2
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 case $aros_kernel_ar in
9953 [\\/]* | ?:[\\/]*)
9954 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9968 done
9969 done
9970 IFS=$as_save_IFS
9973 esac
9975 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9976 if test -n "$aros_kernel_ar"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9978 $as_echo "$aros_kernel_ar" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9987 if test "$aros_kernel_ar" = ""; then
9988 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9991 if test "$aros_kernel_ranlib" = ""; then
9992 if test "$cross_compiling" = "yes" ; then
9993 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9994 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 case $aros_kernel_ranlib in
10001 [\\/]* | ?:[\\/]*)
10002 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10021 esac
10023 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10024 if test -n "$aros_kernel_ranlib"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10026 $as_echo "$aros_kernel_ranlib" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10033 else
10034 if test "$GCC" = "yes"; then
10035 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10036 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10037 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 case $aros_kernel_ranlib in
10044 [\\/]* | ?:[\\/]*)
10045 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in `dirname $aros_gcc_ranlib`
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10059 done
10060 done
10061 IFS=$as_save_IFS
10064 esac
10066 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10067 if test -n "$aros_kernel_ranlib"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10069 $as_echo "$aros_kernel_ranlib" >&6; }
10070 else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10077 if test "$aros_kernel_ranlib" = ""; then
10078 # Extract the first word of "ranlib", so it can be a program name with args.
10079 set dummy ranlib; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 case $aros_kernel_ranlib in
10086 [\\/]* | ?:[\\/]*)
10087 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10101 done
10102 done
10103 IFS=$as_save_IFS
10106 esac
10108 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10109 if test -n "$aros_kernel_ranlib"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10111 $as_echo "$aros_kernel_ranlib" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10120 else
10121 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10122 set dummy $aros_kernel_ranlib; ac_word=$2
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124 $as_echo_n "checking for $ac_word... " >&6; }
10125 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 case $aros_kernel_ranlib in
10129 [\\/]* | ?:[\\/]*)
10130 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10140 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10144 done
10145 done
10146 IFS=$as_save_IFS
10149 esac
10151 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10152 if test -n "$aros_kernel_ranlib"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10154 $as_echo "$aros_kernel_ranlib" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10163 if test "$aros_kernel_ranlib" = ""; then
10164 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10167 if test "$aros_kernel_nm" = ""; then
10168 if test "$cross_compiling" = "yes" ; then
10169 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10170 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 case $aros_kernel_nm in
10177 [\\/]* | ?:[\\/]*)
10178 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10192 done
10193 done
10194 IFS=$as_save_IFS
10197 esac
10199 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10200 if test -n "$aros_kernel_nm"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10202 $as_echo "$aros_kernel_nm" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10209 else
10210 if test "$GCC" = "yes"; then
10211 aros_gcc_nm=`$CC -print-prog-name=nm`
10212 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10213 set dummy `basename $aros_gcc_nm`; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 case $aros_kernel_nm in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in `dirname $aros_gcc_nm`
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10240 esac
10242 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10243 if test -n "$aros_kernel_nm"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10245 $as_echo "$aros_kernel_nm" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10253 if test "$aros_kernel_nm" = ""; then
10254 # Extract the first word of "nm", so it can be a program name with args.
10255 set dummy nm; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 case $aros_kernel_nm in
10262 [\\/]* | ?:[\\/]*)
10263 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10277 done
10278 done
10279 IFS=$as_save_IFS
10282 esac
10284 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10285 if test -n "$aros_kernel_nm"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10287 $as_echo "$aros_kernel_nm" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10296 else
10297 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10298 set dummy $aros_kernel_nm; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 case $aros_kernel_nm in
10305 [\\/]* | ?:[\\/]*)
10306 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10320 done
10321 done
10322 IFS=$as_save_IFS
10325 esac
10327 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10328 if test -n "$aros_kernel_nm"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10330 $as_echo "$aros_kernel_nm" >&6; }
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10339 if test "$aros_kernel_nm" = ""; then
10340 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10343 if test "$aros_kernel_strip" = ""; then
10344 if test "$cross_compiling" = "yes" ; then
10345 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10346 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 case $aros_kernel_strip in
10353 [\\/]* | ?:[\\/]*)
10354 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10368 done
10369 done
10370 IFS=$as_save_IFS
10373 esac
10375 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10376 if test -n "$aros_kernel_strip"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10378 $as_echo "$aros_kernel_strip" >&6; }
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10385 else
10386 if test "$GCC" = "yes"; then
10387 aros_gcc_strip=`$CC -print-prog-name=strip`
10388 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10389 set dummy `basename $aros_gcc_strip`; ac_word=$2
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 $as_echo_n "checking for $ac_word... " >&6; }
10392 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10393 $as_echo_n "(cached) " >&6
10394 else
10395 case $aros_kernel_strip in
10396 [\\/]* | ?:[\\/]*)
10397 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401 for as_dir in `dirname $aros_gcc_strip`
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
10406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10407 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10411 done
10412 done
10413 IFS=$as_save_IFS
10416 esac
10418 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10419 if test -n "$aros_kernel_strip"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10421 $as_echo "$aros_kernel_strip" >&6; }
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10429 if test "$aros_kernel_strip" = ""; then
10430 # Extract the first word of "strip", so it can be a program name with args.
10431 set dummy strip; ac_word=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 case $aros_kernel_strip in
10438 [\\/]* | ?:[\\/]*)
10439 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10449 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10453 done
10454 done
10455 IFS=$as_save_IFS
10458 esac
10460 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10461 if test -n "$aros_kernel_strip"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10463 $as_echo "$aros_kernel_strip" >&6; }
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10472 else
10473 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10474 set dummy $aros_kernel_strip; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 case $aros_kernel_strip in
10481 [\\/]* | ?:[\\/]*)
10482 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10496 done
10497 done
10498 IFS=$as_save_IFS
10501 esac
10503 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10504 if test -n "$aros_kernel_strip"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10506 $as_echo "$aros_kernel_strip" >&6; }
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10515 if test "$aros_kernel_strip" = ""; then
10516 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10519 # Objcopy and objdump are not required for the kernel
10520 # toolchain on many architectures.
10521 # So we'll look for them, but not make them strictly required.
10523 if test "$aros_kernel_objcopy" = ""; then
10524 if test "$cross_compiling" = "yes" ; then
10525 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10526 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 $as_echo_n "checking for $ac_word... " >&6; }
10529 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 case $aros_kernel_objcopy in
10533 [\\/]* | ?:[\\/]*)
10534 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10548 done
10549 done
10550 IFS=$as_save_IFS
10553 esac
10555 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10556 if test -n "$aros_kernel_objcopy"; then
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10558 $as_echo "$aros_kernel_objcopy" >&6; }
10559 else
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10565 else
10566 if test "$GCC" = "yes"; then
10567 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10568 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10569 set dummy `basename $aros_gcc_objcopy`; 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_objcopy+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 case $aros_kernel_objcopy in
10576 [\\/]* | ?:[\\/]*)
10577 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in `dirname $aros_gcc_objcopy`
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_objcopy="$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_objcopy=$ac_cv_path_aros_kernel_objcopy
10599 if test -n "$aros_kernel_objcopy"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10601 $as_echo "$aros_kernel_objcopy" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10609 if test "$aros_kernel_objcopy" = ""; then
10610 # Extract the first word of "objcopy", so it can be a program name with args.
10611 set dummy objcopy; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 case $aros_kernel_objcopy in
10618 [\\/]* | ?:[\\/]*)
10619 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10633 done
10634 done
10635 IFS=$as_save_IFS
10638 esac
10640 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10641 if test -n "$aros_kernel_objcopy"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10643 $as_echo "$aros_kernel_objcopy" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10652 else
10653 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10654 set dummy $aros_kernel_objcopy; 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_objcopy+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 case $aros_kernel_objcopy in
10661 [\\/]* | ?:[\\/]*)
10662 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # 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_objcopy="$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_objcopy=$ac_cv_path_aros_kernel_objcopy
10684 if test -n "$aros_kernel_objcopy"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10686 $as_echo "$aros_kernel_objcopy" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10696 if test "$aros_kernel_objdump" = ""; then
10697 if test "$cross_compiling" = "yes" ; then
10698 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10699 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 case $aros_kernel_objdump in
10706 [\\/]* | ?:[\\/]*)
10707 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10721 done
10722 done
10723 IFS=$as_save_IFS
10726 esac
10728 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10729 if test -n "$aros_kernel_objdump"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10731 $as_echo "$aros_kernel_objdump" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10738 else
10739 if test "$GCC" = "yes"; then
10740 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10741 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10742 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 case $aros_kernel_objdump in
10749 [\\/]* | ?:[\\/]*)
10750 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in `dirname $aros_gcc_objdump`
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762 break 2
10764 done
10765 done
10766 IFS=$as_save_IFS
10769 esac
10771 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10772 if test -n "$aros_kernel_objdump"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10774 $as_echo "$aros_kernel_objdump" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10782 if test "$aros_kernel_objdump" = ""; then
10783 # Extract the first word of "objdump", so it can be a program name with args.
10784 set dummy objdump; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $aros_kernel_objdump in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10814 if test -n "$aros_kernel_objdump"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10816 $as_echo "$aros_kernel_objdump" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10825 else
10826 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10827 set dummy $aros_kernel_objdump; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 case $aros_kernel_objdump in
10834 [\\/]* | ?:[\\/]*)
10835 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10849 done
10850 done
10851 IFS=$as_save_IFS
10854 esac
10856 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10857 if test -n "$aros_kernel_objdump"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10859 $as_echo "$aros_kernel_objdump" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10868 if test "x${crosstools}" != "xyes" ; then
10869 if test "$aros_kernel_objcopy" = ""; then
10870 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10872 if test "$aros_kernel_objdump" = ""; then
10873 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10879 $as_echo_n "checking which target tools to use... " >&6; }
10880 if test "$crosstools" = "yes"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10882 $as_echo "$target_tool_prefix" >&6; }
10883 # We are building AROS crosstools
10884 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10885 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10886 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10887 orig_target_cpp="${tmp_tool_prefix}cpp"
10888 orig_target_ld="${tmp_tool_prefix}ld"
10889 orig_target_as="${tmp_tool_prefix}as"
10890 orig_target_ar="${tmp_tool_prefix}ar"
10891 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10892 orig_target_nm="${tmp_tool_prefix}nm"
10893 orig_target_strip="${tmp_tool_prefix}strip"
10894 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10895 orig_target_objdump="${tmp_tool_prefix}objdump"
10896 else
10897 # Determine whether AROS or ELF tools should be used
10898 if test "$aros_tool_prefix" = "none"; then
10899 aros_tool_prefix="${elf_tool_prefix}"
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10903 $as_echo "$aros_tool_prefix" >&6; }
10904 # We are *not* building AROS crosstools - use the AROS or ELF tools
10906 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10907 if test "$cross_compiling" = "yes" ; then
10908 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10909 set dummy ${target_tool_prefix}cpp; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if ${ac_cv_path_orig_target_cpp+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 case $orig_target_cpp in
10916 [\\/]* | ?:[\\/]*)
10917 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10931 done
10932 done
10933 IFS=$as_save_IFS
10936 esac
10938 orig_target_cpp=$ac_cv_path_orig_target_cpp
10939 if test -n "$orig_target_cpp"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10941 $as_echo "$orig_target_cpp" >&6; }
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10948 else
10949 if test "$GCC" = "yes"; then
10950 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10951 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10952 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954 $as_echo_n "checking for $ac_word... " >&6; }
10955 if ${ac_cv_path_orig_target_cpp+:} false; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 case $orig_target_cpp in
10959 [\\/]* | ?:[\\/]*)
10960 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in `dirname $aros_gcc_cpp`
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
10968 for ac_exec_ext in '' $ac_executable_extensions; do
10969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10970 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 break 2
10974 done
10975 done
10976 IFS=$as_save_IFS
10979 esac
10981 orig_target_cpp=$ac_cv_path_orig_target_cpp
10982 if test -n "$orig_target_cpp"; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10984 $as_echo "$orig_target_cpp" >&6; }
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10992 if test "$orig_target_cpp" = ""; then
10993 # Extract the first word of "cpp", so it can be a program name with args.
10994 set dummy cpp; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_path_orig_target_cpp+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 case $orig_target_cpp in
11001 [\\/]* | ?:[\\/]*)
11002 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11012 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11016 done
11017 done
11018 IFS=$as_save_IFS
11021 esac
11023 orig_target_cpp=$ac_cv_path_orig_target_cpp
11024 if test -n "$orig_target_cpp"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11026 $as_echo "$orig_target_cpp" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11035 else
11036 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11037 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_path_orig_target_cpp+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 case $orig_target_cpp in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11059 done
11060 done
11061 IFS=$as_save_IFS
11064 esac
11066 orig_target_cpp=$ac_cv_path_orig_target_cpp
11067 if test -n "$orig_target_cpp"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11069 $as_echo "$orig_target_cpp" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11078 if test "$orig_target_cpp" = ""; then
11079 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11082 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11083 if test "$cross_compiling" = "yes" ; then
11084 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11085 set dummy ${target_tool_prefix}gcc; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if ${ac_cv_path_orig_target_cc+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 case $orig_target_cc in
11092 [\\/]* | ?:[\\/]*)
11093 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11107 done
11108 done
11109 IFS=$as_save_IFS
11112 esac
11114 orig_target_cc=$ac_cv_path_orig_target_cc
11115 if test -n "$orig_target_cc"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11117 $as_echo "$orig_target_cc" >&6; }
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11124 else
11125 if test "$GCC" = "yes"; then
11126 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11127 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11128 set dummy `basename $aros_gcc_gcc`; 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_orig_target_cc+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 case $orig_target_cc in
11135 [\\/]* | ?:[\\/]*)
11136 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in `dirname $aros_gcc_gcc`
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_orig_target_cc="$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 orig_target_cc=$ac_cv_path_orig_target_cc
11158 if test -n "$orig_target_cc"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11160 $as_echo "$orig_target_cc" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11168 if test "$orig_target_cc" = ""; then
11169 # Extract the first word of "gcc", so it can be a program name with args.
11170 set dummy gcc; ac_word=$2
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if ${ac_cv_path_orig_target_cc+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $orig_target_cc in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11188 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11192 done
11193 done
11194 IFS=$as_save_IFS
11197 esac
11199 orig_target_cc=$ac_cv_path_orig_target_cc
11200 if test -n "$orig_target_cc"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11202 $as_echo "$orig_target_cc" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11211 else
11212 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11213 set dummy ${aros_tool_prefix}gcc${target_tool_version}; 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_orig_target_cc+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 case $orig_target_cc in
11220 [\\/]* | ?:[\\/]*)
11221 ac_cv_path_orig_target_cc="$orig_target_cc" # 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_orig_target_cc="$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 orig_target_cc=$ac_cv_path_orig_target_cc
11243 if test -n "$orig_target_cc"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11245 $as_echo "$orig_target_cc" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11254 if test "$orig_target_cc" = ""; then
11255 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11258 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11259 if test "$cross_compiling" = "yes" ; then
11260 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11261 set dummy ${target_tool_prefix}g++; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if ${ac_cv_path_orig_target_cxx+:} false; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 case $orig_target_cxx in
11268 [\\/]* | ?:[\\/]*)
11269 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11283 done
11284 done
11285 IFS=$as_save_IFS
11288 esac
11290 orig_target_cxx=$ac_cv_path_orig_target_cxx
11291 if test -n "$orig_target_cxx"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11293 $as_echo "$orig_target_cxx" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11300 else
11301 if test "$GCC" = "yes"; then
11302 aros_gcc_g++=`$CC -print-prog-name=g++`
11303 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11304 set dummy `basename $aros_gcc_g++`; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if ${ac_cv_path_orig_target_cxx+:} false; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 case $orig_target_cxx in
11311 [\\/]* | ?:[\\/]*)
11312 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in `dirname $aros_gcc_g++`
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11322 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 break 2
11326 done
11327 done
11328 IFS=$as_save_IFS
11331 esac
11333 orig_target_cxx=$ac_cv_path_orig_target_cxx
11334 if test -n "$orig_target_cxx"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11336 $as_echo "$orig_target_cxx" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11344 if test "$orig_target_cxx" = ""; then
11345 # Extract the first word of "g++", so it can be a program name with args.
11346 set dummy g++; 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_orig_target_cxx+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 case $orig_target_cxx in
11353 [\\/]* | ?:[\\/]*)
11354 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
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_orig_target_cxx="$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 orig_target_cxx=$ac_cv_path_orig_target_cxx
11376 if test -n "$orig_target_cxx"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11378 $as_echo "$orig_target_cxx" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11387 else
11388 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11389 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391 $as_echo_n "checking for $ac_word... " >&6; }
11392 if ${ac_cv_path_orig_target_cxx+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 case $orig_target_cxx in
11396 [\\/]* | ?:[\\/]*)
11397 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11407 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 break 2
11411 done
11412 done
11413 IFS=$as_save_IFS
11416 esac
11418 orig_target_cxx=$ac_cv_path_orig_target_cxx
11419 if test -n "$orig_target_cxx"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11421 $as_echo "$orig_target_cxx" >&6; }
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11430 if test "$orig_target_cxx" = ""; then
11431 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11434 if test "${aros_tool_prefix}ld" = ""; then
11435 if test "$cross_compiling" = "yes" ; then
11436 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11437 set dummy ${target_tool_prefix}gcc; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_orig_target_ld+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $orig_target_ld in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11464 esac
11466 orig_target_ld=$ac_cv_path_orig_target_ld
11467 if test -n "$orig_target_ld"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11469 $as_echo "$orig_target_ld" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11476 else
11477 if test "$GCC" = "yes"; then
11478 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11479 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11480 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_path_orig_target_ld+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 case $orig_target_ld in
11487 [\\/]* | ?:[\\/]*)
11488 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in `dirname $aros_gcc_gcc`
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11502 done
11503 done
11504 IFS=$as_save_IFS
11507 esac
11509 orig_target_ld=$ac_cv_path_orig_target_ld
11510 if test -n "$orig_target_ld"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11512 $as_echo "$orig_target_ld" >&6; }
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11520 if test "$orig_target_ld" = ""; then
11521 # Extract the first word of "gcc", so it can be a program name with args.
11522 set dummy gcc; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_path_orig_target_ld+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 case $orig_target_ld in
11529 [\\/]* | ?:[\\/]*)
11530 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11544 done
11545 done
11546 IFS=$as_save_IFS
11549 esac
11551 orig_target_ld=$ac_cv_path_orig_target_ld
11552 if test -n "$orig_target_ld"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11554 $as_echo "$orig_target_ld" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11563 else
11564 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11565 set dummy ${aros_tool_prefix}ld; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if ${ac_cv_path_orig_target_ld+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 case $orig_target_ld in
11572 [\\/]* | ?:[\\/]*)
11573 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 break 2
11587 done
11588 done
11589 IFS=$as_save_IFS
11592 esac
11594 orig_target_ld=$ac_cv_path_orig_target_ld
11595 if test -n "$orig_target_ld"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11597 $as_echo "$orig_target_ld" >&6; }
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11606 if test "$orig_target_ld" = ""; then
11607 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11610 if test "${aros_tool_prefix}as" = ""; then
11611 if test "$cross_compiling" = "yes" ; then
11612 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11613 set dummy ${target_tool_prefix}as; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_path_orig_target_as+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 case $orig_target_as in
11620 [\\/]* | ?:[\\/]*)
11621 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11635 done
11636 done
11637 IFS=$as_save_IFS
11640 esac
11642 orig_target_as=$ac_cv_path_orig_target_as
11643 if test -n "$orig_target_as"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11645 $as_echo "$orig_target_as" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11652 else
11653 if test "$GCC" = "yes"; then
11654 aros_gcc_as=`$CC -print-prog-name=as`
11655 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11656 set dummy `basename $aros_gcc_as`; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658 $as_echo_n "checking for $ac_word... " >&6; }
11659 if ${ac_cv_path_orig_target_as+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 case $orig_target_as in
11663 [\\/]* | ?:[\\/]*)
11664 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in `dirname $aros_gcc_as`
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11674 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11678 done
11679 done
11680 IFS=$as_save_IFS
11683 esac
11685 orig_target_as=$ac_cv_path_orig_target_as
11686 if test -n "$orig_target_as"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11688 $as_echo "$orig_target_as" >&6; }
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11696 if test "$orig_target_as" = ""; then
11697 # Extract the first word of "as", so it can be a program name with args.
11698 set dummy as; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_orig_target_as+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 case $orig_target_as in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11725 esac
11727 orig_target_as=$ac_cv_path_orig_target_as
11728 if test -n "$orig_target_as"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11730 $as_echo "$orig_target_as" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11739 else
11740 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11741 set dummy ${aros_tool_prefix}as; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if ${ac_cv_path_orig_target_as+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 case $orig_target_as in
11748 [\\/]* | ?:[\\/]*)
11749 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11763 done
11764 done
11765 IFS=$as_save_IFS
11768 esac
11770 orig_target_as=$ac_cv_path_orig_target_as
11771 if test -n "$orig_target_as"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11773 $as_echo "$orig_target_as" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11782 if test "$orig_target_as" = ""; then
11783 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11786 if test "${aros_tool_prefix}ar" = ""; then
11787 if test "$cross_compiling" = "yes" ; then
11788 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11789 set dummy ${target_tool_prefix}ar; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_orig_target_ar+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 case $orig_target_ar in
11796 [\\/]* | ?:[\\/]*)
11797 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11816 esac
11818 orig_target_ar=$ac_cv_path_orig_target_ar
11819 if test -n "$orig_target_ar"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11821 $as_echo "$orig_target_ar" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11828 else
11829 if test "$GCC" = "yes"; then
11830 aros_gcc_ar=`$CC -print-prog-name=ar`
11831 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11832 set dummy `basename $aros_gcc_ar`; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if ${ac_cv_path_orig_target_ar+:} false; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 case $orig_target_ar in
11839 [\\/]* | ?:[\\/]*)
11840 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in `dirname $aros_gcc_ar`
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11854 done
11855 done
11856 IFS=$as_save_IFS
11859 esac
11861 orig_target_ar=$ac_cv_path_orig_target_ar
11862 if test -n "$orig_target_ar"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11864 $as_echo "$orig_target_ar" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11872 if test "$orig_target_ar" = ""; then
11873 # Extract the first word of "ar", so it can be a program name with args.
11874 set dummy ar; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_orig_target_ar+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 case $orig_target_ar in
11881 [\\/]* | ?:[\\/]*)
11882 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11896 done
11897 done
11898 IFS=$as_save_IFS
11901 esac
11903 orig_target_ar=$ac_cv_path_orig_target_ar
11904 if test -n "$orig_target_ar"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11906 $as_echo "$orig_target_ar" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11915 else
11916 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11917 set dummy ${aros_tool_prefix}ar; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if ${ac_cv_path_orig_target_ar+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 case $orig_target_ar in
11924 [\\/]* | ?:[\\/]*)
11925 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
11934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 break 2
11939 done
11940 done
11941 IFS=$as_save_IFS
11944 esac
11946 orig_target_ar=$ac_cv_path_orig_target_ar
11947 if test -n "$orig_target_ar"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11949 $as_echo "$orig_target_ar" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11958 if test "$orig_target_ar" = ""; then
11959 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11962 if test "${aros_tool_prefix}ranlib" = ""; then
11963 if test "$cross_compiling" = "yes" ; then
11964 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11965 set dummy ${target_tool_prefix}ar; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 case $orig_target_ranlib in
11972 [\\/]* | ?:[\\/]*)
11973 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11992 esac
11994 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11995 if test -n "$orig_target_ranlib"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11997 $as_echo "$orig_target_ranlib" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12004 else
12005 if test "$GCC" = "yes"; then
12006 aros_gcc_ar=`$CC -print-prog-name=ar`
12007 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12008 set dummy `basename $aros_gcc_ar`; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 case $orig_target_ranlib in
12015 [\\/]* | ?:[\\/]*)
12016 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in `dirname $aros_gcc_ar`
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 break 2
12030 done
12031 done
12032 IFS=$as_save_IFS
12035 esac
12037 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12038 if test -n "$orig_target_ranlib"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12040 $as_echo "$orig_target_ranlib" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12048 if test "$orig_target_ranlib" = ""; then
12049 # Extract the first word of "ar", so it can be a program name with args.
12050 set dummy ar; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 case $orig_target_ranlib in
12057 [\\/]* | ?:[\\/]*)
12058 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12072 done
12073 done
12074 IFS=$as_save_IFS
12077 esac
12079 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12080 if test -n "$orig_target_ranlib"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12082 $as_echo "$orig_target_ranlib" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12091 else
12092 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12093 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 case $orig_target_ranlib in
12100 [\\/]* | ?:[\\/]*)
12101 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12115 done
12116 done
12117 IFS=$as_save_IFS
12120 esac
12122 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12123 if test -n "$orig_target_ranlib"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12125 $as_echo "$orig_target_ranlib" >&6; }
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12134 if test "$orig_target_ranlib" = ""; then
12135 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12138 if test "${aros_tool_prefix}nm" = ""; then
12139 if test "$cross_compiling" = "yes" ; then
12140 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12141 set dummy ${target_tool_prefix}nm; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_path_orig_target_nm+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 case $orig_target_nm in
12148 [\\/]* | ?:[\\/]*)
12149 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12163 done
12164 done
12165 IFS=$as_save_IFS
12168 esac
12170 orig_target_nm=$ac_cv_path_orig_target_nm
12171 if test -n "$orig_target_nm"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12173 $as_echo "$orig_target_nm" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12180 else
12181 if test "$GCC" = "yes"; then
12182 aros_gcc_nm=`$CC -print-prog-name=nm`
12183 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12184 set dummy `basename $aros_gcc_nm`; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_path_orig_target_nm+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 case $orig_target_nm in
12191 [\\/]* | ?:[\\/]*)
12192 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in `dirname $aros_gcc_nm`
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12206 done
12207 done
12208 IFS=$as_save_IFS
12211 esac
12213 orig_target_nm=$ac_cv_path_orig_target_nm
12214 if test -n "$orig_target_nm"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12216 $as_echo "$orig_target_nm" >&6; }
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12224 if test "$orig_target_nm" = ""; then
12225 # Extract the first word of "nm", so it can be a program name with args.
12226 set dummy nm; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_path_orig_target_nm+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 case $orig_target_nm in
12233 [\\/]* | ?:[\\/]*)
12234 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12248 done
12249 done
12250 IFS=$as_save_IFS
12253 esac
12255 orig_target_nm=$ac_cv_path_orig_target_nm
12256 if test -n "$orig_target_nm"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12258 $as_echo "$orig_target_nm" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12267 else
12268 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12269 set dummy ${aros_tool_prefix}nm; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_path_orig_target_nm+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 case $orig_target_nm in
12276 [\\/]* | ?:[\\/]*)
12277 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12291 done
12292 done
12293 IFS=$as_save_IFS
12296 esac
12298 orig_target_nm=$ac_cv_path_orig_target_nm
12299 if test -n "$orig_target_nm"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12301 $as_echo "$orig_target_nm" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12310 if test "$orig_target_nm" = ""; then
12311 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12314 if test "${aros_tool_prefix}strip" = ""; then
12315 if test "$cross_compiling" = "yes" ; then
12316 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12317 set dummy ${target_tool_prefix}strip; 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_strip+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 case $orig_target_strip in
12324 [\\/]* | ?:[\\/]*)
12325 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
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_strip="$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_strip=$ac_cv_path_orig_target_strip
12347 if test -n "$orig_target_strip"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12349 $as_echo "$orig_target_strip" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12356 else
12357 if test "$GCC" = "yes"; then
12358 aros_gcc_strip=`$CC -print-prog-name=strip`
12359 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12360 set dummy `basename $aros_gcc_strip`; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if ${ac_cv_path_orig_target_strip+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 case $orig_target_strip in
12367 [\\/]* | ?:[\\/]*)
12368 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in `dirname $aros_gcc_strip`
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12378 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12382 done
12383 done
12384 IFS=$as_save_IFS
12387 esac
12389 orig_target_strip=$ac_cv_path_orig_target_strip
12390 if test -n "$orig_target_strip"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12392 $as_echo "$orig_target_strip" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12400 if test "$orig_target_strip" = ""; then
12401 # Extract the first word of "strip", so it can be a program name with args.
12402 set dummy strip; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_path_orig_target_strip+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 case $orig_target_strip in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12424 done
12425 done
12426 IFS=$as_save_IFS
12429 esac
12431 orig_target_strip=$ac_cv_path_orig_target_strip
12432 if test -n "$orig_target_strip"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12434 $as_echo "$orig_target_strip" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12443 else
12444 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12445 set dummy ${aros_tool_prefix}strip; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_path_orig_target_strip+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 case $orig_target_strip in
12452 [\\/]* | ?:[\\/]*)
12453 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12467 done
12468 done
12469 IFS=$as_save_IFS
12472 esac
12474 orig_target_strip=$ac_cv_path_orig_target_strip
12475 if test -n "$orig_target_strip"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12477 $as_echo "$orig_target_strip" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12486 if test "$orig_target_strip" = ""; then
12487 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12490 if test "${aros_tool_prefix}objcopy" = ""; then
12491 if test "$cross_compiling" = "yes" ; then
12492 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12493 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 case $orig_target_objcopy in
12500 [\\/]* | ?:[\\/]*)
12501 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12511 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12515 done
12516 done
12517 IFS=$as_save_IFS
12520 esac
12522 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12523 if test -n "$orig_target_objcopy"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12525 $as_echo "$orig_target_objcopy" >&6; }
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12532 else
12533 if test "$GCC" = "yes"; then
12534 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12535 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12536 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538 $as_echo_n "checking for $ac_word... " >&6; }
12539 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 case $orig_target_objcopy in
12543 [\\/]* | ?:[\\/]*)
12544 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in `dirname $aros_gcc_objcopy`
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12554 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12558 done
12559 done
12560 IFS=$as_save_IFS
12563 esac
12565 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12566 if test -n "$orig_target_objcopy"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12568 $as_echo "$orig_target_objcopy" >&6; }
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12576 if test "$orig_target_objcopy" = ""; then
12577 # Extract the first word of "objcopy", so it can be a program name with args.
12578 set dummy objcopy; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 case $orig_target_objcopy in
12585 [\\/]* | ?:[\\/]*)
12586 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12600 done
12601 done
12602 IFS=$as_save_IFS
12605 esac
12607 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12608 if test -n "$orig_target_objcopy"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12610 $as_echo "$orig_target_objcopy" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12619 else
12620 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12621 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 case $orig_target_objcopy in
12628 [\\/]* | ?:[\\/]*)
12629 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
12637 for ac_exec_ext in '' $ac_executable_extensions; do
12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12639 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 break 2
12643 done
12644 done
12645 IFS=$as_save_IFS
12648 esac
12650 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12651 if test -n "$orig_target_objcopy"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12653 $as_echo "$orig_target_objcopy" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12662 if test "$orig_target_objcopy" = ""; then
12663 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12666 if test "${aros_tool_prefix}objdump" = ""; then
12667 if test "$cross_compiling" = "yes" ; then
12668 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12669 set dummy ${target_tool_prefix}objdump; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if ${ac_cv_path_orig_target_objdump+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 case $orig_target_objdump in
12676 [\\/]* | ?:[\\/]*)
12677 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12691 done
12692 done
12693 IFS=$as_save_IFS
12696 esac
12698 orig_target_objdump=$ac_cv_path_orig_target_objdump
12699 if test -n "$orig_target_objdump"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12701 $as_echo "$orig_target_objdump" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12708 else
12709 if test "$GCC" = "yes"; then
12710 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12711 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12712 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if ${ac_cv_path_orig_target_objdump+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 case $orig_target_objdump in
12719 [\\/]* | ?:[\\/]*)
12720 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in `dirname $aros_gcc_objdump`
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12739 esac
12741 orig_target_objdump=$ac_cv_path_orig_target_objdump
12742 if test -n "$orig_target_objdump"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12744 $as_echo "$orig_target_objdump" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12752 if test "$orig_target_objdump" = ""; then
12753 # Extract the first word of "objdump", so it can be a program name with args.
12754 set dummy objdump; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if ${ac_cv_path_orig_target_objdump+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 case $orig_target_objdump in
12761 [\\/]* | ?:[\\/]*)
12762 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12776 done
12777 done
12778 IFS=$as_save_IFS
12781 esac
12783 orig_target_objdump=$ac_cv_path_orig_target_objdump
12784 if test -n "$orig_target_objdump"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12786 $as_echo "$orig_target_objdump" >&6; }
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12795 else
12796 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12797 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if ${ac_cv_path_orig_target_objdump+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 case $orig_target_objdump in
12804 [\\/]* | ?:[\\/]*)
12805 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12819 done
12820 done
12821 IFS=$as_save_IFS
12824 esac
12826 orig_target_objdump=$ac_cv_path_orig_target_objdump
12827 if test -n "$orig_target_objdump"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12829 $as_echo "$orig_target_objdump" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12838 if test "$orig_target_objdump" = ""; then
12839 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12843 if test "$kernel_tool_prefix" = "none" ; then
12844 # No kernel tools specified
12845 # Assume target tools == kernel tools with ELF wrapper
12846 aros_kernel_cc=$orig_target_cc
12847 aros_kernel_cxx=$orig_target_cxx
12848 aros_kernel_cpp=$orig_target_cpp
12849 aros_kernel_ld=$orig_target_ld
12850 aros_kernel_as=$orig_target_as
12851 aros_kernel_ar=$orig_target_ar
12852 aros_kernel_ranlib=$orig_target_ranlib
12853 aros_kernel_nm=$orig_target_nm
12854 aros_kernel_strip=$orig_target_strip
12855 aros_kernel_objcopy=$orig_target_objcopy
12856 aros_kernel_objdump=$orig_target_objdump
12857 use_kernel_cc_wrapper=yes
12860 # At this point, all aros_kernel_* and aros_target_*
12861 # tools should be set up correctly
12863 CC="$aros_kernel_cc $kernel_tool_flags"
12864 CPP="$aros_kernel_cpp"
12866 #-----------------------------------------------------------------------------
12868 # Disable pointer-signedness warnings if the compiler recognises the option
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12871 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12872 save_cflags="$CFLAGS"
12873 if test "$crosstools" != "yes" ; then
12874 CFLAGS="$CFLAGS -Wno-pointer-sign"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12879 main ()
12883 return 0;
12885 _ACEOF
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887 use_no_sign_warning="yes"
12888 else
12889 use_no_sign_warning="no"
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 else
12893 # we do know it is supported for the smallest version of gcc we are going to build
12894 # we assume it's also supported by later versions
12895 use_no_sign_warning=yes
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12898 $as_echo "$use_no_sign_warning" >&6; }
12899 if test "x-$use_no_sign_warning" = "x-yes" ; then
12900 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12902 CFLAGS="$save_cflags"
12904 #-----------------------------------------------------------------------------
12906 # Find all the tools we need to compile. This could be cross-compiling
12907 # though! If that is the case we use the GNU form of the target and
12908 # simply add this to the front of the binary name. This is rather simple,
12909 # but it should work under most circumstances.
12911 # The default tools are to use the same as the host, but only if the
12912 # host and target CPU are the same. With GCC this is normally enough.
12915 aros_cc_pre=""
12916 aros_shared_ld="$aros_host_ld"
12918 aros_target_mkdep="$aros_host_mkdep"
12920 # The default tools executables to be linked to.
12921 if test "$rescomp" != ""; then
12922 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12923 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 case $aros_kernel_rescomp in
12930 [\\/]* | ?:[\\/]*)
12931 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12945 done
12946 done
12947 IFS=$as_save_IFS
12950 esac
12952 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12953 if test -n "$aros_kernel_rescomp"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12955 $as_echo "$aros_kernel_rescomp" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12962 if test "$aros_kernel_rescomp" = ""; then
12963 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12967 # Set up the sources for the symlink farm
12968 if test "$crosstools" = "yes"; then
12969 crosstools_target=tools-crosstools
12972 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12973 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12976 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12977 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12978 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12979 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12980 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12981 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12982 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12984 # aros_cc_pre is a variable that is added to the front of the compiler name
12985 # in the generated aros-gcc shell script. We need this to enable the cache
12986 # to work across cleaned builds. Also, support DISTCC using the correct
12987 # environment variable.
12990 if test "x${DISTCC}" != "x" ; then
12991 if test "x${CCACHE}" != "x" ; then
12992 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12993 else
12994 aros_cc_pre="${DISTCC} "
12996 else
12997 if test "x${CCACHE}" != "x" ; then
12998 aros_cc_pre="${CCACHE} "
13002 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13004 aros_target_nostdinc_cflags=-nostdinc
13006 aros_target_nostartup_ldflags=-nostartfiles
13008 aros_target_nix_ldflags=-nix
13010 aros_target_detach_ldflags=-detach
13012 aros_target_nostdlib_ldflags=-nostdlib
13015 # Target tools
13016 if test "$crosstools" != "yes"; then
13017 if test "$GCC" = "yes"; then
13018 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13020 else
13021 # We do not know which gcc version we are going to build and what we need to know
13022 # here is different for different versions so this will be set later during the
13023 # build of crosstools.
13024 aros_target_cc_path=@aros_target_cc_path@
13026 aros_target_cpp="${prefix}cpp"
13027 aros_target_cc="${prefix}gcc"
13028 aros_target_cxx="${prefix}g++"
13029 aros_target_as="${prefix}as"
13030 aros_target_ld="${prefix}ld"
13031 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13032 aros_target_objcopy="${prefix}objcopy"
13033 aros_target_objdump="${prefix}objdump"
13034 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13035 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13036 aros_target_strip="${prefix}strip"
13037 aros_plain_nm="${prefix}nm"
13038 aros_plain_ar="${prefix}ar"
13040 # Check whether --enable-includes was given.
13041 if test "${enable_includes+set}" = set; then :
13042 enableval=$enable_includes; aros_target_incl=$enable_includes
13043 else
13044 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13048 if test "$aros_kernel_includes" = ""; then
13049 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13050 aros_kernel_includes="-isystem $aros_target_incl"
13054 if test "$aros_kernel_includes" != "" ; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13056 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13057 if test "$aros_kernel_cc_includes" = "" ; then
13058 # Try to guess where the directory is.
13059 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13060 if test -d $aros_kernel_cc_includes; then
13061 # Check if there is also an include-fixed directory and add it
13062 # to kernel compiler's include path as it may contain some of
13063 # the headers we need.
13064 if test -d "$aros_kernel_cc_includes"-fixed; then
13065 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13067 # Check for specific includes directory. Neede for Ubuntu 11.10
13068 if test -d "/usr/include/i386-linux-gnu"; then
13069 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13071 else
13072 # The directory doesn't exist, we need to do some more work.
13073 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13075 # These are the headers we're looking for.
13076 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13077 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13078 zutil.h stdint.h"
13080 dirs=
13081 for h in $headers; do
13082 # Which other headers are needed by each of the above?
13083 deps=$(echo "#include <$h>" | \
13084 $aros_kernel_cc -E -M - 2>/dev/null | \
13085 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13087 # Copy all the needed headers to a directory beneath gendir.
13088 for d in $deps; do
13089 h=$(basename $d)
13090 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13091 sed -n "s,^.*/include\(/.*\),\1,p")
13092 ! test -d $dir && mkdir -p $dir
13093 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13094 done
13095 done
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13099 $as_echo "$aros_kernel_cc_includes" >&6; }
13100 # Adding -nostdinc to kernel includes as they are always used together.
13101 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13104 if test "$crosstools" != "yes"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13106 $as_echo_n "checking for the target compiler's include path... " >&6; }
13107 if test "$aros_target_cc_includes" = "" ; then
13108 #try to guess where the directory is
13109 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13110 if ! test -d $aros_target_cc_includes; then
13111 #the directory doesn't exist, we need to do some more work
13112 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13114 #these are the headers we're looking for
13115 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13116 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13117 zutil.h"
13119 dirs=
13120 for h in $headers; do
13121 #which other headers each of the above headers needs?
13122 deps=$(echo "#include <$h>" | \
13123 $orig_target_cc -E -M - 2>/dev/null | \
13124 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13126 #copy all the needed headers to a directory beneath gendir
13127 for d in $deps; do
13128 h=$(basename $d)
13129 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13130 sed -n "s,^.*/include\(/.*\),\1,p")
13131 ! test -d $dir && mkdir -p $dir
13132 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13133 done
13134 done
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13138 $as_echo "$aros_target_cc_includes" >&6; }
13139 else
13140 # We do not know which gcc version we are going to build and what we need to know
13141 # here is different for different versions so this will be set later during the
13142 # build of crosstools.
13143 aros_target_cc_includes=@aros_target_cc_includes@
13147 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13148 # On GCC >= 4.0 -iquote should be used
13151 save_cc="$CC"
13152 save_cflags="$CFLAGS"
13153 CFLAGS="-iquote."
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13155 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13156 if test "x-$crosstools" != "x-yes"; then
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13161 main ()
13165 return 0;
13167 _ACEOF
13168 if ac_fn_c_try_compile "$LINENO"; then :
13169 has_iquote="yes"
13170 else
13171 has_iquote="no"
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 else
13175 # we do know it is supported for the smallest version of gcc we are going to build
13176 # we assume it's also supported by later versions
13177 has_iquote=yes
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13180 $as_echo "$has_iquote" >&6; }
13181 if test "x-$has_iquote" = "x-yes" ; then
13182 host_cflags_iquote=-iquote
13183 host_cflags_iquote_end=
13184 else
13185 host_cflags_iquote=-I
13186 host_cflags_iquote_end=-I-
13188 kernel_cflags_iquote=$host_cflags_iquote
13189 kernel_cflags_iquote_end=$host_cflags_iquote_end
13190 if test "x-$cross_compiling" = "x-yes"; then
13191 CC="$aros_kernel_cc"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13193 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13194 if test "x-$crosstools" != "x-yes"; then
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13199 main ()
13203 return 0;
13205 _ACEOF
13206 if ac_fn_c_try_compile "$LINENO"; then :
13207 use_no_stack_protector="yes"
13208 else
13209 use_no_stack_protector="no"
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 else
13213 # we do know it is supported for the smallest version of gcc we are going to build
13214 # we assume it's also supported by later versions
13215 use_no_stack_protector=yes
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13218 $as_echo "$use_no_stack_protector" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13220 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13221 if test "x-$crosstools" != "x-yes"; then
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13226 main ()
13230 return 0;
13232 _ACEOF
13233 if ac_fn_c_try_compile "$LINENO"; then :
13234 has_iquote="yes"
13235 else
13236 has_iquote="no"
13238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239 else
13240 # we do know it is supported for the smallest version of gcc we are going to build
13241 # we assume it's also supported by later versions
13242 has_iquote=yes
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13245 $as_echo "$has_iquote" >&6; }
13246 if test "x-$has_iquote" = "x-yes" ; then
13247 kernel_cflags_iquote=-iquote
13248 kernel_cflags_iquote_end=
13249 else
13250 kernel_cflags_iquote=-I
13251 kernel_cflags_iquote_end=-I-
13254 aros_cflags_iquote=$kernel_cflags_iquote
13255 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13256 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13257 CC="$orig_target_cc"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13259 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13260 if test "x-$crosstools" != "x-yes"; then
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13265 main ()
13269 return 0;
13271 _ACEOF
13272 if ac_fn_c_try_compile "$LINENO"; then :
13273 has_iquote="yes"
13274 else
13275 has_iquote="no"
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 else
13279 # we do know it is supported for the smallest version of gcc we are going to build
13280 # we assume it's also supported by later versions
13281 has_iquote=yes
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13284 $as_echo "$has_iquote" >&6; }
13285 if test "x-$has_iquote" = "x-yes" ; then
13286 aros_cflags_iquote=-iquote
13287 aros_cflags_iquote_end=
13288 else
13289 aros_cflags_iquote=-I
13290 aros_cflags_iquote_end=-I-
13293 if test "x-$use_no_stack_protector" = "x-yes" ; then
13294 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13298 #-----------------------------------------------------------------------------
13300 # Check if the target compiler supports some options used for delinting:
13301 # -Wunused-but-set-variable
13302 # -Warray-bounds
13303 # -Wenum-compare
13304 # -Wstrict-overflow
13305 # -Wformat-security
13307 if test "x-$crosstools" != "x-yes"; then
13308 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13309 CC="$orig_target_cc"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13312 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13313 CFLAGS=-Wunused-but-set-variable
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13318 main ()
13322 return 0;
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 aros_unused_but_set_variable="yes"
13327 else
13328 aros_unused_but_set_variable="no"
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13332 $as_echo "$aros_unused_but_set_variable" >&6; }
13333 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13334 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13338 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13339 CFLAGS=-Warray-bounds
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13344 main ()
13348 return 0;
13350 _ACEOF
13351 if ac_fn_c_try_compile "$LINENO"; then :
13352 aros_array_bounds="yes"
13353 else
13354 aros_array_bounds="no"
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13358 $as_echo "$aros_array_bounds" >&6; }
13359 if test "x-$aros_array_bounds" = "x-yes" ; then
13360 aros_cflags_array_bounds=-Wno-array-bounds
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13364 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13365 CFLAGS=-Wenum-compare
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13370 main ()
13374 return 0;
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"; then :
13378 aros_enum_compare="yes"
13379 else
13380 aros_enum_compare="no"
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13384 $as_echo "$aros_enum_compare" >&6; }
13385 if test "x-$aros_enum_compare" = "x-yes" ; then
13386 aros_cflags_enum_compare=-Wno-enum-compare
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13390 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13391 CFLAGS=-Wstrict-overflow
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13396 main ()
13400 return 0;
13402 _ACEOF
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404 aros_strict_overflow="yes"
13405 else
13406 aros_strict_overflow="no"
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13410 $as_echo "$aros_strict_overflow" >&6; }
13411 if test "x-$aros_strict_overflow" = "x-yes" ; then
13412 aros_cflags_strict_overflow=-Wno-strict-overflow
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13416 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13417 CFLAGS=-Wformat-security
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13422 main ()
13426 return 0;
13428 _ACEOF
13429 if ac_fn_c_try_compile "$LINENO"; then :
13430 aros_format_security="yes"
13431 else
13432 aros_format_security="no"
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13436 $as_echo "$aros_format_security" >&6; }
13437 if test "x-$aros_format_security" = "x-yes" ; then
13438 aros_cflags_format_security=-Wno-format-security
13440 else
13441 # We do not know which gcc version we are going to build and what we need to know
13442 # here is different for different versions so this will be set later during the
13443 # build of crosstools.
13444 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13445 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13446 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13447 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13448 aros_cflags_format_security=@aros_cflags_format_security@
13451 #-----------------------------------------------------------------------------
13453 # Check if we can explicitly choose older version of symbol hashing
13455 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13456 CC="$aros_kernel_cc"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13458 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13463 main ()
13467 return 0;
13469 _ACEOF
13470 if ac_fn_c_try_link "$LINENO"; then :
13471 use_hash_style="yes"
13472 else
13473 use_hash_style="no"
13475 rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13478 $as_echo "$use_hash_style" >&6; }
13479 if test "x-$use_hash_style" = "x-yes" ; then
13480 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13482 CC="$save_cc"
13483 CFLAGS="$save_cflags"
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13494 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13496 # Check whether --with-resolution was given.
13497 if test "${with_resolution+set}" = set; then :
13498 withval=$with_resolution; resolution=$withval
13499 else
13500 resolution=none
13503 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13504 if test "$resolution" = "yes" ; then
13505 resolution="none"
13507 if test "$resolution" = "no" ; then
13508 resolution="none"
13510 if test "$resolution" != "none" ; then
13511 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13512 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13513 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13516 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13517 aros_cv_default_wbwidth=$aros_default_wbwidth
13518 aros_cv_default_wbheight=$aros_default_wbheight
13519 aros_cv_default_wbdepth=$aros_default_wbdepth
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13522 $as_echo_n "checking if serial debug is enabled... " >&6; }
13524 # Check whether --with-serial-debug was given.
13525 if test "${with_serial_debug+set}" = set; then :
13526 withval=$with_serial_debug; serial_debug=$withval
13527 else
13528 serial_debug=none
13531 if test "$aros_serial_debug" = 0 ; then
13532 serial_debug_forced=""
13533 if test "$serial_debug" = "yes" ; then
13534 serial_debug="1"
13536 if test "$serial_debug" = "no" ; then
13537 serial_debug="none"
13539 else
13540 serial_debug_forced="(forced)"
13541 serial_debug=$aros_serial_debug
13543 if test "$serial_debug" != "none" ; then
13544 aros_serial_debug=$serial_debug
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13546 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13553 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13554 # Check whether --enable-palm_debug_hack was given.
13555 if test "${enable_palm_debug_hack+set}" = set; then :
13556 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13557 else
13558 palm_debug_hack="no"
13561 if test "$palm_debug_hack" = "yes" ; then
13562 aros_palm_debug_hack="1"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13565 $as_echo "$palm_debug_hack" >&6; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13568 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13569 # Check whether --enable-usb30_code was given.
13570 if test "${enable_usb30_code+set}" = set; then :
13571 enableval=$enable_usb30_code; usb30_code="yes"
13572 else
13573 usb30_code="no"
13576 if test "$usb30_code" = "yes" ; then
13577 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13578 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13581 $as_echo "$usb30_code" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13584 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13585 # Check whether --enable-nesting_supervisor was given.
13586 if test "${enable_nesting_supervisor+set}" = set; then :
13587 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13588 else
13589 nesting_supervisor="no"
13592 if test "$nesting_supervisor" = "yes" ; then
13593 aros_nesting_supervisor="1"
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13596 $as_echo "$nesting_supervisor" >&6; }
13598 if test "$aros_enable_mmu" = "" ; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13600 $as_echo_n "checking if MMU support is enabled... " >&6; }
13601 # Check whether --enable-mmu was given.
13602 if test "${enable_mmu+set}" = set; then :
13603 enableval=$enable_mmu; aros_enable_mmu=$enableval
13604 else
13605 aros_enable_mmu="yes"
13608 if test "$aros_enable_mmu" = "" ; then
13609 aros_enable_mmu="yes"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13612 $as_echo "$aros_enable_mmu" >&6; }
13614 if test "$aros_enable_mmu" = "no" ; then
13615 aros_enable_mmu="0"
13616 else
13617 aros_enable_mmu="1"
13621 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13623 if test "x-$need_dlopen" != "x-no" ; then
13624 save_libs="$LIBS"
13625 LIBS=""
13626 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13627 if test "x$ac_cv_func_dlopen" = xyes; then :
13628 have_dl="yes"
13629 else
13630 have_dl="no"
13633 if test "x-$have_dl" = "x-no" ; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13636 if ${ac_cv_lib_dl_dlopen+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-ldl $LIBS"
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13644 /* Override any GCC internal prototype to avoid an error.
13645 Use char because int might match the return type of a GCC
13646 builtin and then its argument prototype would still apply. */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 char dlopen ();
13652 main ()
13654 return dlopen ();
13656 return 0;
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"; then :
13660 ac_cv_lib_dl_dlopen=yes
13661 else
13662 ac_cv_lib_dl_dlopen=no
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13669 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13670 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13671 have_dl="yes"
13672 aros_host_ldflags="$aros_host_ldflags -ldl"
13673 else
13674 have_dl="no"
13678 if test "x-$have_dl" = "x-no" ; then
13679 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13681 LIBS="$save_libs"
13685 # Check whether --enable-x11_hidd was given.
13686 if test "${enable_x11_hidd+set}" = set; then :
13687 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13688 else
13689 x11_hidd="$need_x11"
13692 case "x-$x11_hidd" in
13693 x-yes|x-no|x-auto) ;;
13694 *) x11_hidd="$need_x11" ;;
13695 esac
13697 ENABLE_X11=0
13699 if test "x-$x11_hidd" != "x-no" ; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13702 $as_echo_n "checking for X... " >&6; }
13705 # Check whether --with-x was given.
13706 if test "${with_x+set}" = set; then :
13707 withval=$with_x;
13710 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13711 if test "x$with_x" = xno; then
13712 # The user explicitly disabled X.
13713 have_x=disabled
13714 else
13715 case $x_includes,$x_libraries in #(
13716 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13717 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 # One or both of the vars are not set, and there is no cached value.
13721 ac_x_includes=no ac_x_libraries=no
13722 rm -f -r conftest.dir
13723 if mkdir conftest.dir; then
13724 cd conftest.dir
13725 cat >Imakefile <<'_ACEOF'
13726 incroot:
13727 @echo incroot='${INCROOT}'
13728 usrlibdir:
13729 @echo usrlibdir='${USRLIBDIR}'
13730 libdir:
13731 @echo libdir='${LIBDIR}'
13732 _ACEOF
13733 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13734 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13735 for ac_var in incroot usrlibdir libdir; do
13736 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13737 done
13738 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13739 for ac_extension in a so sl dylib la dll; do
13740 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13741 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13742 ac_im_usrlibdir=$ac_im_libdir; break
13744 done
13745 # Screen out bogus values from the imake configuration. They are
13746 # bogus both because they are the default anyway, and because
13747 # using them would break gcc on systems where it needs fixed includes.
13748 case $ac_im_incroot in
13749 /usr/include) ac_x_includes= ;;
13750 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13751 esac
13752 case $ac_im_usrlibdir in
13753 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13754 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13755 esac
13757 cd ..
13758 rm -f -r conftest.dir
13761 # Standard set of common directories for X headers.
13762 # Check X11 before X11Rn because it is often a symlink to the current release.
13763 ac_x_header_dirs='
13764 /usr/X11/include
13765 /usr/X11R7/include
13766 /usr/X11R6/include
13767 /usr/X11R5/include
13768 /usr/X11R4/include
13770 /usr/include/X11
13771 /usr/include/X11R7
13772 /usr/include/X11R6
13773 /usr/include/X11R5
13774 /usr/include/X11R4
13776 /usr/local/X11/include
13777 /usr/local/X11R7/include
13778 /usr/local/X11R6/include
13779 /usr/local/X11R5/include
13780 /usr/local/X11R4/include
13782 /usr/local/include/X11
13783 /usr/local/include/X11R7
13784 /usr/local/include/X11R6
13785 /usr/local/include/X11R5
13786 /usr/local/include/X11R4
13788 /usr/X386/include
13789 /usr/x386/include
13790 /usr/XFree86/include/X11
13792 /usr/include
13793 /usr/local/include
13794 /usr/unsupported/include
13795 /usr/athena/include
13796 /usr/local/x11r5/include
13797 /usr/lpp/Xamples/include
13799 /usr/openwin/include
13800 /usr/openwin/share/include'
13802 if test "$ac_x_includes" = no; then
13803 # Guess where to find include files, by looking for Xlib.h.
13804 # First, try using that file with no special directory specified.
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 #include <X11/Xlib.h>
13808 _ACEOF
13809 if ac_fn_c_try_cpp "$LINENO"; then :
13810 # We can compile using X headers with no special include directory.
13811 ac_x_includes=
13812 else
13813 for ac_dir in $ac_x_header_dirs; do
13814 if test -r "$ac_dir/X11/Xlib.h"; then
13815 ac_x_includes=$ac_dir
13816 break
13818 done
13820 rm -f conftest.err conftest.i conftest.$ac_ext
13821 fi # $ac_x_includes = no
13823 if test "$ac_x_libraries" = no; then
13824 # Check for the libraries.
13825 # See if we find them without any special options.
13826 # Don't add to $LIBS permanently.
13827 ac_save_LIBS=$LIBS
13828 LIBS="-lX11 $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 #include <X11/Xlib.h>
13833 main ()
13835 XrmInitialize ()
13837 return 0;
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841 LIBS=$ac_save_LIBS
13842 # We can link X programs with no special library path.
13843 ac_x_libraries=
13844 else
13845 LIBS=$ac_save_LIBS
13846 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13848 # Don't even attempt the hair of trying to link an X program!
13849 for ac_extension in a so sl dylib la dll; do
13850 if test -r "$ac_dir/libX11.$ac_extension"; then
13851 ac_x_libraries=$ac_dir
13852 break 2
13854 done
13855 done
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 fi # $ac_x_libraries = no
13861 case $ac_x_includes,$ac_x_libraries in #(
13862 no,* | *,no | *\'*)
13863 # Didn't find X, or a directory has "'" in its name.
13864 ac_cv_have_x="have_x=no";; #(
13866 # Record where we found X for the cache.
13867 ac_cv_have_x="have_x=yes\
13868 ac_x_includes='$ac_x_includes'\
13869 ac_x_libraries='$ac_x_libraries'"
13870 esac
13872 ;; #(
13873 *) have_x=yes;;
13874 esac
13875 eval "$ac_cv_have_x"
13876 fi # $with_x != no
13878 if test "$have_x" != yes; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13880 $as_echo "$have_x" >&6; }
13881 no_x=yes
13882 else
13883 # If each of the values was on the command line, it overrides each guess.
13884 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13885 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13886 # Update the cache value to reflect the command line values.
13887 ac_cv_have_x="have_x=yes\
13888 ac_x_includes='$x_includes'\
13889 ac_x_libraries='$x_libraries'"
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13891 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13895 x_cflags=
13896 for path in $x_libraries
13898 x_cflags="$x_cflags -L$path"
13899 done
13901 for path in $x_includes
13903 x_cflags="$x_cflags -I$path"
13904 done
13906 if test "x-$no_x" = "x-yes" ; then
13908 if test "x-$x11_hidd" != "x-auto" ; then
13909 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13912 else
13913 unixgfx_hidd_target=kernel-x11gfx
13914 ENABLE_X11=1
13916 # Check whether --enable-x11_shm was given.
13917 if test "${enable_x11_shm+set}" = set; then :
13918 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13919 else
13920 x11_hidd_shm="auto"
13923 case "x-$x11_hidd_shm" in
13924 x-yes|x-no|x-auto) ;;
13925 *) x11_hidd_shm="auto" ;;
13926 esac
13928 have_xshm=no
13930 if test "x-$x11_hidd_shm" != "x-no" ; then
13932 for ac_header in sys/ipc.h
13933 do :
13934 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13935 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_SYS_IPC_H 1
13938 _ACEOF
13942 done
13944 for ac_header in sys/shm.h
13945 do :
13946 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13947 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_SYS_SHM_H 1
13950 _ACEOF
13954 done
13957 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13959 save_cflags="$CFLAGS"
13960 CFLAGS="$CFLAGS $x_cflags"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13962 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13963 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-lXext $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char XShmQueryExtension ();
13979 main ()
13981 return XShmQueryExtension ();
13983 return 0;
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 ac_cv_lib_Xext_XShmQueryExtension=yes
13988 else
13989 ac_cv_lib_Xext_XShmQueryExtension=no
13991 rm -f core conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13996 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13997 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13998 have_xshm=yes
14001 CFLAGS="$save_cflags"
14005 if test "x-$have_xshm" = "x-yes" ; then
14006 DO_XSHM_SUPPORT="1"
14007 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14008 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14009 else
14010 DO_XSHM_SUPPORT="0"
14014 # Check whether --enable-x11_vidmode was given.
14015 if test "${enable_x11_vidmode+set}" = set; then :
14016 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14017 else
14018 x11_hidd_vidmode="auto"
14021 case "x-$x11_hidd_vidmode" in
14022 x-yes|x-no|x-auto) ;;
14023 *) x11_hidd_vidmode="auto" ;;
14024 esac
14026 have_vidmode=no
14028 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14030 save_cflags="$CFLAGS"
14031 CFLAGS="$CFLAGS $x_cflags"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14033 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14034 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lXxf86vm $LIBS"
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 char XF86VidModeQueryExtension ();
14050 main ()
14052 return XF86VidModeQueryExtension ();
14054 return 0;
14056 _ACEOF
14057 if ac_fn_c_try_link "$LINENO"; then :
14058 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14059 else
14060 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14067 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14068 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14069 have_vidmode=yes
14072 CFLAGS="$save_cflags"
14075 if test "x-$have_vidmode" = "x-yes" ; then
14076 DO_VIDMODE_SUPPORT="1"
14077 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14078 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14079 else
14080 DO_VIDMODE_SUPPORT="0"
14084 aros_host_x11_includes=$x_includes
14085 aros_host_x11_libdirs=$x_libraries
14089 # Check whether --enable-sdl_hidd was given.
14090 if test "${enable_sdl_hidd+set}" = set; then :
14091 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14092 else
14093 sdl_hidd="auto"
14096 case "x-$sdl_hidd" in
14097 x-yes|x-no|x-auto) ;;
14098 *) sdl_hidd="auto" ;;
14099 esac
14101 if test "x-$sdl_hidd" != "x-no" ; then
14104 # Check whether --with-sdl-prefix was given.
14105 if test "${with_sdl_prefix+set}" = set; then :
14106 withval=$with_sdl_prefix; sdl_prefix="$withval"
14107 else
14108 sdl_prefix=""
14112 # Check whether --with-sdl-exec-prefix was given.
14113 if test "${with_sdl_exec_prefix+set}" = set; then :
14114 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14115 else
14116 sdl_exec_prefix=""
14119 # Check whether --enable-sdltest was given.
14120 if test "${enable_sdltest+set}" = set; then :
14121 enableval=$enable_sdltest;
14122 else
14123 enable_sdltest=yes
14127 if test x$sdl_exec_prefix != x ; then
14128 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14129 if test x${SDL_CONFIG+set} != xset ; then
14130 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14133 if test x$sdl_prefix != x ; then
14134 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14135 if test x${SDL_CONFIG+set} != xset ; then
14136 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14140 as_save_PATH="$PATH"
14141 if test "x$prefix" != xNONE; then
14142 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14144 # Extract the first word of "sdl-config", so it can be a program name with args.
14145 set dummy sdl-config; ac_word=$2
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 $as_echo_n "checking for $ac_word... " >&6; }
14148 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 case $SDL_CONFIG in
14152 [\\/]* | ?:[\\/]*)
14153 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157 for as_dir in $PATH
14159 IFS=$as_save_IFS
14160 test -z "$as_dir" && as_dir=.
14161 for ac_exec_ext in '' $ac_executable_extensions; do
14162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14163 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14165 break 2
14167 done
14168 done
14169 IFS=$as_save_IFS
14171 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14173 esac
14175 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14176 if test -n "$SDL_CONFIG"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14178 $as_echo "$SDL_CONFIG" >&6; }
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14185 PATH="$as_save_PATH"
14186 min_sdl_version=1.2.10
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14188 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14189 no_sdl=""
14190 if test "$SDL_CONFIG" = "no" ; then
14191 no_sdl=yes
14192 else
14193 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14194 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14196 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14198 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14199 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14200 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14201 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14202 if test "x$enable_sdltest" = "xyes" ; then
14203 ac_save_CFLAGS="$CFLAGS"
14204 ac_save_CXXFLAGS="$CXXFLAGS"
14205 ac_save_LIBS="$LIBS"
14206 CFLAGS="$CFLAGS $SDL_CFLAGS"
14207 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14208 LIBS="$LIBS $SDL_LIBS"
14209 rm -f conf.sdltest
14210 if test "$cross_compiling" = yes; then :
14211 echo $ac_n "cross compiling; assumed OK... $ac_c"
14212 else
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14216 #include <stdio.h>
14217 #include <stdlib.h>
14218 #include <string.h>
14219 #include "SDL.h"
14221 char*
14222 my_strdup (char *str)
14224 char *new_str;
14226 if (str)
14228 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14229 strcpy (new_str, str);
14231 else
14232 new_str = NULL;
14234 return new_str;
14237 int main (int argc, char *argv[])
14239 int major, minor, micro;
14240 char *tmp_version;
14242 /* This hangs on some systems (?)
14243 system ("touch conf.sdltest");
14245 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14247 /* HP/UX 9 (%@#!) writes to sscanf strings */
14248 tmp_version = my_strdup("$min_sdl_version");
14249 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14250 printf("%s, bad version string\n", "$min_sdl_version");
14251 exit(1);
14254 if (($sdl_major_version > major) ||
14255 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14256 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14258 return 0;
14260 else
14262 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14263 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14264 printf("*** best to upgrade to the required version.\n");
14265 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14266 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14267 printf("*** config.cache before re-running configure\n");
14268 return 1;
14273 _ACEOF
14274 if ac_fn_c_try_run "$LINENO"; then :
14276 else
14277 no_sdl=yes
14279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14280 conftest.$ac_objext conftest.beam conftest.$ac_ext
14283 CFLAGS="$ac_save_CFLAGS"
14284 CXXFLAGS="$ac_save_CXXFLAGS"
14285 LIBS="$ac_save_LIBS"
14288 if test "x$no_sdl" = x ; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14290 $as_echo "yes" >&6; }
14291 have_sdl="yes"
14292 else
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294 $as_echo "no" >&6; }
14295 if test "$SDL_CONFIG" = "no" ; then
14296 echo "*** The sdl-config script installed by SDL could not be found"
14297 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14298 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14299 echo "*** full path to sdl-config."
14300 else
14301 if test -f conf.sdltest ; then
14303 else
14304 echo "*** Could not run SDL test program, checking why..."
14305 CFLAGS="$CFLAGS $SDL_CFLAGS"
14306 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14307 LIBS="$LIBS $SDL_LIBS"
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14311 #include <stdio.h>
14312 #include "SDL.h"
14314 int main(int argc, char *argv[])
14315 { return 0; }
14316 #undef main
14317 #define main K_and_R_C_main
14320 main ()
14322 return 0;
14324 return 0;
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14328 echo "*** The test program compiled, but did not run. This usually means"
14329 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14330 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14331 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14332 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14333 echo "*** is required on your system"
14334 echo "***"
14335 echo "*** If you have an old version installed, it is best to remove it, although"
14336 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14337 else
14338 echo "*** The test program failed to compile or link. See the file config.log for the"
14339 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14340 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14341 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14343 rm -f core conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
14345 CFLAGS="$ac_save_CFLAGS"
14346 CXXFLAGS="$ac_save_CXXFLAGS"
14347 LIBS="$ac_save_LIBS"
14350 SDL_CFLAGS=""
14351 SDL_LIBS=""
14352 have_sdl="no"
14356 rm -f conf.sdltest
14359 if test "x-$have_sdl" != "x-yes" ; then
14361 if test "x-$sdl_hidd" != "x-auto" ; then
14362 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14365 else
14366 sdl_hidd_target=kernel-hidd-sdl
14367 aros_host_sdl_cflags=SDL_CFLAGS
14368 aros_host_sdl_libs=SDL_LIBS
14372 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14373 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14378 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14379 oss_library_target=workbench-libs-oss-unix
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14385 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14386 # Check whether --enable-dbus was given.
14387 if test "${enable_dbus+set}" = set; then :
14388 enableval=$enable_dbus; dbus="yes"
14389 else
14390 dbus="no"
14393 if test "$dbus" = "yes" ; then
14394 ENABLE_DBUS=1
14395 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14396 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14397 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14398 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14399 else
14400 ENABLE_DBUS=0
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14403 $as_echo "$dbus" >&6; }
14405 if test "$use_kernel_cc_wrapper" = "yes" ; then
14406 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14409 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
14410 aros_target_toolchain=yes
14411 else
14412 aros_target_toolchain=no
14416 # Generic
14428 # Compatability with other Amiga-like operation systems
14431 # Host related
14459 # Target Related
14526 # Delinting target compiler flags
14533 # Graphics Related
14550 # Native version related
14553 # Palm native version related
14556 # Unix/Hosted version related
14559 # MMU related
14562 # Apple iOS related
14567 # ARM default GCC target related
14573 # Android related
14578 # DBUS related
14585 #X11 related
14588 # Debug related
14594 # Collect-aros stuff: "-ius" to ignore undefined symbols
14597 # C compiler related
14601 #ObjC compiler related
14604 # USB3.0 code
14607 case "$aros_flavour" in
14608 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14609 aros_flavour="emulation" ;;
14610 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14611 aros_flavour="emulation" ;;
14612 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14613 aros_flavour="standalone";;
14614 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14615 aros_flavour="standalone";;
14616 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14617 aros_flavour="native" ;;
14618 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14619 aros_flavour="native" ;;
14620 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14621 aros_flavour="linklib" ;;
14622 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14623 aros_flavour="palmnative" ;;
14624 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14625 aros_flavour="mac68knative" ;;
14626 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14627 aros_flavour="ppcnative" ;;
14628 esac
14630 if test ! -d ${aros_inc_dir} ; then
14631 ${MKDIR} ${aros_inc_dir}
14633 if test ! -d ${aros_geninc_dir} ; then
14634 ${MKDIR} ${aros_geninc_dir}
14636 if test ! -d ${aros_hostcfg_dir} ; then
14637 ${MKDIR} ${aros_hostcfg_dir}
14639 if test ! -d ${aros_targetcfg_dir} ; then
14640 ${MKDIR} ${aros_targetcfg_dir}
14642 if test ! -d ${aros_tools_dir} ; then
14643 ${MKDIR} ${aros_tools_dir}
14645 if test ! -d ${aros_scripts_dir} ; then
14646 ${MKDIR} ${aros_scripts_dir}
14649 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14652 ac_config_commands="$ac_config_commands compiler_executable"
14654 ac_config_commands="$ac_config_commands genmf_executable"
14657 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 mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14660 cat >confcache <<\_ACEOF
14661 # This file is a shell script that caches the results of configure
14662 # tests run on this system so they can be shared between configure
14663 # scripts and configure runs, see configure's option --config-cache.
14664 # It is not useful on other systems. If it contains results you don't
14665 # want to keep, you may remove or edit it.
14667 # config.status only pays attention to the cache file if you give it
14668 # the --recheck option to rerun configure.
14670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14672 # following values.
14674 _ACEOF
14676 # The following way of writing the cache mishandles newlines in values,
14677 # but we know of no workaround that is simple, portable, and efficient.
14678 # So, we kill variables containing newlines.
14679 # Ultrix sh set writes to stderr and can't be redirected directly,
14680 # and sets the high bit in the cache file unless we assign to the vars.
14682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14683 eval ac_val=\$$ac_var
14684 case $ac_val in #(
14685 *${as_nl}*)
14686 case $ac_var in #(
14687 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14689 esac
14690 case $ac_var in #(
14691 _ | IFS | as_nl) ;; #(
14692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14693 *) { eval $ac_var=; unset $ac_var;} ;;
14694 esac ;;
14695 esac
14696 done
14698 (set) 2>&1 |
14699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14700 *${as_nl}ac_space=\ *)
14701 # `set' does not quote correctly, so add quotes: double-quote
14702 # substitution turns \\\\ into \\, and sed turns \\ into \.
14703 sed -n \
14704 "s/'/'\\\\''/g;
14705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14706 ;; #(
14708 # `set' quotes correctly as required by POSIX, so do not add quotes.
14709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14711 esac |
14712 sort
14714 sed '
14715 /^ac_cv_env_/b end
14716 t clear
14717 :clear
14718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14719 t end
14720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14721 :end' >>confcache
14722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14723 if test -w "$cache_file"; then
14724 if test "x$cache_file" != "x/dev/null"; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14726 $as_echo "$as_me: updating cache $cache_file" >&6;}
14727 if test ! -f "$cache_file" || test -h "$cache_file"; then
14728 cat confcache >"$cache_file"
14729 else
14730 case $cache_file in #(
14731 */* | ?:*)
14732 mv -f confcache "$cache_file"$$ &&
14733 mv -f "$cache_file"$$ "$cache_file" ;; #(
14735 mv -f confcache "$cache_file" ;;
14736 esac
14739 else
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14744 rm -f confcache
14746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14747 # Let make expand exec_prefix.
14748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14750 DEFS=-DHAVE_CONFIG_H
14752 ac_libobjs=
14753 ac_ltlibobjs=
14755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14756 # 1. Remove the extension, and $U if already installed.
14757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14760 # will be set to the directory where LIBOBJS objects are built.
14761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14763 done
14764 LIBOBJS=$ac_libobjs
14766 LTLIBOBJS=$ac_ltlibobjs
14770 : "${CONFIG_STATUS=./config.status}"
14771 ac_write_fail=0
14772 ac_clean_files_save=$ac_clean_files
14773 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14775 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14776 as_write_fail=0
14777 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14778 #! $SHELL
14779 # Generated by $as_me.
14780 # Run this file to recreate the current configuration.
14781 # Compiler output produced by configure, useful for debugging
14782 # configure, is in config.log if it exists.
14784 debug=false
14785 ac_cs_recheck=false
14786 ac_cs_silent=false
14788 SHELL=\${CONFIG_SHELL-$SHELL}
14789 export SHELL
14790 _ASEOF
14791 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14792 ## -------------------- ##
14793 ## M4sh Initialization. ##
14794 ## -------------------- ##
14796 # Be more Bourne compatible
14797 DUALCASE=1; export DUALCASE # for MKS sh
14798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14799 emulate sh
14800 NULLCMD=:
14801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14802 # is contrary to our usage. Disable this feature.
14803 alias -g '${1+"$@"}'='"$@"'
14804 setopt NO_GLOB_SUBST
14805 else
14806 case `(set -o) 2>/dev/null` in #(
14807 *posix*) :
14808 set -o posix ;; #(
14809 *) :
14811 esac
14815 as_nl='
14817 export as_nl
14818 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14819 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14822 # Prefer a ksh shell builtin over an external printf program on Solaris,
14823 # but without wasting forks for bash or zsh.
14824 if test -z "$BASH_VERSION$ZSH_VERSION" \
14825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14826 as_echo='print -r --'
14827 as_echo_n='print -rn --'
14828 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14829 as_echo='printf %s\n'
14830 as_echo_n='printf %s'
14831 else
14832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14834 as_echo_n='/usr/ucb/echo -n'
14835 else
14836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14837 as_echo_n_body='eval
14838 arg=$1;
14839 case $arg in #(
14840 *"$as_nl"*)
14841 expr "X$arg" : "X\\(.*\\)$as_nl";
14842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14843 esac;
14844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14846 export as_echo_n_body
14847 as_echo_n='sh -c $as_echo_n_body as_echo'
14849 export as_echo_body
14850 as_echo='sh -c $as_echo_body as_echo'
14853 # The user is always right.
14854 if test "${PATH_SEPARATOR+set}" != set; then
14855 PATH_SEPARATOR=:
14856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14858 PATH_SEPARATOR=';'
14863 # IFS
14864 # We need space, tab and new line, in precisely that order. Quoting is
14865 # there to prevent editors from complaining about space-tab.
14866 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14867 # splitting by setting IFS to empty value.)
14868 IFS=" "" $as_nl"
14870 # Find who we are. Look in the path if we contain no directory separator.
14871 as_myself=
14872 case $0 in #((
14873 *[\\/]* ) as_myself=$0 ;;
14874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875 for as_dir in $PATH
14877 IFS=$as_save_IFS
14878 test -z "$as_dir" && as_dir=.
14879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14880 done
14881 IFS=$as_save_IFS
14884 esac
14885 # We did not find ourselves, most probably we were run as `sh COMMAND'
14886 # in which case we are not to be found in the path.
14887 if test "x$as_myself" = x; then
14888 as_myself=$0
14890 if test ! -f "$as_myself"; then
14891 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14892 exit 1
14895 # Unset variables that we do not need and which cause bugs (e.g. in
14896 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14897 # suppresses any "Segmentation fault" message there. '((' could
14898 # trigger a bug in pdksh 5.2.14.
14899 for as_var in BASH_ENV ENV MAIL MAILPATH
14900 do eval test x\${$as_var+set} = xset \
14901 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14902 done
14903 PS1='$ '
14904 PS2='> '
14905 PS4='+ '
14907 # NLS nuisances.
14908 LC_ALL=C
14909 export LC_ALL
14910 LANGUAGE=C
14911 export LANGUAGE
14913 # CDPATH.
14914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14917 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14918 # ----------------------------------------
14919 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14920 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14921 # script with STATUS, using 1 if that was 0.
14922 as_fn_error ()
14924 as_status=$1; test $as_status -eq 0 && as_status=1
14925 if test "$4"; then
14926 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14927 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14929 $as_echo "$as_me: error: $2" >&2
14930 as_fn_exit $as_status
14931 } # as_fn_error
14934 # as_fn_set_status STATUS
14935 # -----------------------
14936 # Set $? to STATUS, without forking.
14937 as_fn_set_status ()
14939 return $1
14940 } # as_fn_set_status
14942 # as_fn_exit STATUS
14943 # -----------------
14944 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14945 as_fn_exit ()
14947 set +e
14948 as_fn_set_status $1
14949 exit $1
14950 } # as_fn_exit
14952 # as_fn_unset VAR
14953 # ---------------
14954 # Portably unset VAR.
14955 as_fn_unset ()
14957 { eval $1=; unset $1;}
14959 as_unset=as_fn_unset
14960 # as_fn_append VAR VALUE
14961 # ----------------------
14962 # Append the text in VALUE to the end of the definition contained in VAR. Take
14963 # advantage of any shell optimizations that allow amortized linear growth over
14964 # repeated appends, instead of the typical quadratic growth present in naive
14965 # implementations.
14966 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14967 eval 'as_fn_append ()
14969 eval $1+=\$2
14971 else
14972 as_fn_append ()
14974 eval $1=\$$1\$2
14976 fi # as_fn_append
14978 # as_fn_arith ARG...
14979 # ------------------
14980 # Perform arithmetic evaluation on the ARGs, and store the result in the
14981 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14982 # must be portable across $(()) and expr.
14983 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14984 eval 'as_fn_arith ()
14986 as_val=$(( $* ))
14988 else
14989 as_fn_arith ()
14991 as_val=`expr "$@" || test $? -eq 1`
14993 fi # as_fn_arith
14996 if expr a : '\(a\)' >/dev/null 2>&1 &&
14997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14998 as_expr=expr
14999 else
15000 as_expr=false
15003 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15004 as_basename=basename
15005 else
15006 as_basename=false
15009 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15010 as_dirname=dirname
15011 else
15012 as_dirname=false
15015 as_me=`$as_basename -- "$0" ||
15016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15017 X"$0" : 'X\(//\)$' \| \
15018 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15019 $as_echo X/"$0" |
15020 sed '/^.*\/\([^/][^/]*\)\/*$/{
15021 s//\1/
15024 /^X\/\(\/\/\)$/{
15025 s//\1/
15028 /^X\/\(\/\).*/{
15029 s//\1/
15032 s/.*/./; q'`
15034 # Avoid depending upon Character Ranges.
15035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15038 as_cr_digits='0123456789'
15039 as_cr_alnum=$as_cr_Letters$as_cr_digits
15041 ECHO_C= ECHO_N= ECHO_T=
15042 case `echo -n x` in #(((((
15043 -n*)
15044 case `echo 'xy\c'` in
15045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15046 xy) ECHO_C='\c';;
15047 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15048 ECHO_T=' ';;
15049 esac;;
15051 ECHO_N='-n';;
15052 esac
15054 rm -f conf$$ conf$$.exe conf$$.file
15055 if test -d conf$$.dir; then
15056 rm -f conf$$.dir/conf$$.file
15057 else
15058 rm -f conf$$.dir
15059 mkdir conf$$.dir 2>/dev/null
15061 if (echo >conf$$.file) 2>/dev/null; then
15062 if ln -s conf$$.file conf$$ 2>/dev/null; then
15063 as_ln_s='ln -s'
15064 # ... but there are two gotchas:
15065 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15066 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15067 # In both cases, we have to default to `cp -pR'.
15068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15069 as_ln_s='cp -pR'
15070 elif ln conf$$.file conf$$ 2>/dev/null; then
15071 as_ln_s=ln
15072 else
15073 as_ln_s='cp -pR'
15075 else
15076 as_ln_s='cp -pR'
15078 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15079 rmdir conf$$.dir 2>/dev/null
15082 # as_fn_mkdir_p
15083 # -------------
15084 # Create "$as_dir" as a directory, including parents if necessary.
15085 as_fn_mkdir_p ()
15088 case $as_dir in #(
15089 -*) as_dir=./$as_dir;;
15090 esac
15091 test -d "$as_dir" || eval $as_mkdir_p || {
15092 as_dirs=
15093 while :; do
15094 case $as_dir in #(
15095 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15096 *) as_qdir=$as_dir;;
15097 esac
15098 as_dirs="'$as_qdir' $as_dirs"
15099 as_dir=`$as_dirname -- "$as_dir" ||
15100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15101 X"$as_dir" : 'X\(//\)[^/]' \| \
15102 X"$as_dir" : 'X\(//\)$' \| \
15103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15104 $as_echo X"$as_dir" |
15105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15106 s//\1/
15109 /^X\(\/\/\)[^/].*/{
15110 s//\1/
15113 /^X\(\/\/\)$/{
15114 s//\1/
15117 /^X\(\/\).*/{
15118 s//\1/
15121 s/.*/./; q'`
15122 test -d "$as_dir" && break
15123 done
15124 test -z "$as_dirs" || eval "mkdir $as_dirs"
15125 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15128 } # as_fn_mkdir_p
15129 if mkdir -p . 2>/dev/null; then
15130 as_mkdir_p='mkdir -p "$as_dir"'
15131 else
15132 test -d ./-p && rmdir ./-p
15133 as_mkdir_p=false
15137 # as_fn_executable_p FILE
15138 # -----------------------
15139 # Test if FILE is an executable regular file.
15140 as_fn_executable_p ()
15142 test -f "$1" && test -x "$1"
15143 } # as_fn_executable_p
15144 as_test_x='test -x'
15145 as_executable_p=as_fn_executable_p
15147 # Sed expression to map a string onto a valid CPP name.
15148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15150 # Sed expression to map a string onto a valid variable name.
15151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15154 exec 6>&1
15155 ## ----------------------------------- ##
15156 ## Main body of $CONFIG_STATUS script. ##
15157 ## ----------------------------------- ##
15158 _ASEOF
15159 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162 # Save the log message, to keep $0 and so on meaningful, and to
15163 # report actual input values of CONFIG_FILES etc. instead of their
15164 # values after options handling.
15165 ac_log="
15166 This file was extended by $as_me, which was
15167 generated by GNU Autoconf 2.69. Invocation command line was
15169 CONFIG_FILES = $CONFIG_FILES
15170 CONFIG_HEADERS = $CONFIG_HEADERS
15171 CONFIG_LINKS = $CONFIG_LINKS
15172 CONFIG_COMMANDS = $CONFIG_COMMANDS
15173 $ $0 $@
15175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15178 _ACEOF
15180 case $ac_config_files in *"
15181 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15182 esac
15184 case $ac_config_headers in *"
15185 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15186 esac
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190 # Files that config.status was made for.
15191 config_files="$ac_config_files"
15192 config_headers="$ac_config_headers"
15193 config_commands="$ac_config_commands"
15195 _ACEOF
15197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15198 ac_cs_usage="\
15199 \`$as_me' instantiates files and other configuration actions
15200 from templates according to the current configuration. Unless the files
15201 and actions are specified as TAGs, all are instantiated by default.
15203 Usage: $0 [OPTION]... [TAG]...
15205 -h, --help print this help, then exit
15206 -V, --version print version number and configuration settings, then exit
15207 --config print configuration, then exit
15208 -q, --quiet, --silent
15209 do not print progress messages
15210 -d, --debug don't remove temporary files
15211 --recheck update $as_me by reconfiguring in the same conditions
15212 --file=FILE[:TEMPLATE]
15213 instantiate the configuration file FILE
15214 --header=FILE[:TEMPLATE]
15215 instantiate the configuration header FILE
15217 Configuration files:
15218 $config_files
15220 Configuration headers:
15221 $config_headers
15223 Configuration commands:
15224 $config_commands
15226 Report bugs to the package provider."
15228 _ACEOF
15229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15230 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15231 ac_cs_version="\\
15232 config.status
15233 configured by $0, generated by GNU Autoconf 2.69,
15234 with options \\"\$ac_cs_config\\"
15236 Copyright (C) 2012 Free Software Foundation, Inc.
15237 This config.status script is free software; the Free Software Foundation
15238 gives unlimited permission to copy, distribute and modify it."
15240 ac_pwd='$ac_pwd'
15241 srcdir='$srcdir'
15242 test -n "\$AWK" || AWK=awk
15243 _ACEOF
15245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15246 # The default lists apply if the user does not specify any file.
15247 ac_need_defaults=:
15248 while test $# != 0
15250 case $1 in
15251 --*=?*)
15252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15254 ac_shift=:
15256 --*=)
15257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15258 ac_optarg=
15259 ac_shift=:
15262 ac_option=$1
15263 ac_optarg=$2
15264 ac_shift=shift
15266 esac
15268 case $ac_option in
15269 # Handling of the options.
15270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15271 ac_cs_recheck=: ;;
15272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15273 $as_echo "$ac_cs_version"; exit ;;
15274 --config | --confi | --conf | --con | --co | --c )
15275 $as_echo "$ac_cs_config"; exit ;;
15276 --debug | --debu | --deb | --de | --d | -d )
15277 debug=: ;;
15278 --file | --fil | --fi | --f )
15279 $ac_shift
15280 case $ac_optarg in
15281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15282 '') as_fn_error $? "missing file argument" ;;
15283 esac
15284 as_fn_append CONFIG_FILES " '$ac_optarg'"
15285 ac_need_defaults=false;;
15286 --header | --heade | --head | --hea )
15287 $ac_shift
15288 case $ac_optarg in
15289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15290 esac
15291 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15292 ac_need_defaults=false;;
15293 --he | --h)
15294 # Conflict between --help and --header
15295 as_fn_error $? "ambiguous option: \`$1'
15296 Try \`$0 --help' for more information.";;
15297 --help | --hel | -h )
15298 $as_echo "$ac_cs_usage"; exit ;;
15299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15301 ac_cs_silent=: ;;
15303 # This is an error.
15304 -*) as_fn_error $? "unrecognized option: \`$1'
15305 Try \`$0 --help' for more information." ;;
15307 *) as_fn_append ac_config_targets " $1"
15308 ac_need_defaults=false ;;
15310 esac
15311 shift
15312 done
15314 ac_configure_extra_args=
15316 if $ac_cs_silent; then
15317 exec 6>/dev/null
15318 ac_configure_extra_args="$ac_configure_extra_args --silent"
15321 _ACEOF
15322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15323 if \$ac_cs_recheck; then
15324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15325 shift
15326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15327 CONFIG_SHELL='$SHELL'
15328 export CONFIG_SHELL
15329 exec "\$@"
15332 _ACEOF
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15334 exec 5>>config.log
15336 echo
15337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15338 ## Running $as_me. ##
15339 _ASBOX
15340 $as_echo "$ac_log"
15341 } >&5
15343 _ACEOF
15344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346 # INIT-COMMANDS
15349 aros_host_exe_suffix=${aros_host_exe_suffix}
15350 aros_tools_dir=${aros_tools_dir}
15351 aros_target_cpu=${aros_target_cpu}
15352 aros_target_arch=${aros_target_arch}
15353 aros_target_suffix=${aros_target_suffix}
15354 orig_target_nm=${orig_target_nm}
15355 orig_target_as=${orig_target_as}
15356 orig_target_ar=${orig_target_ar}
15357 orig_target_ranlib=${orig_target_ranlib}
15358 orig_target_objdump=${orig_target_objdump}
15359 orig_target_objcopy=${orig_target_objcopy}
15360 orig_target_strip=${orig_target_strip}
15361 aros_kernel_ld=${aros_kernel_ld}
15364 aros_tools_dir=${aros_tools_dir}
15367 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371 # Handling of arguments.
15372 for ac_config_target in $ac_config_targets
15374 case $ac_config_target in
15375 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15376 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15377 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15379 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15380 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15381 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15382 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15383 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15384 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15385 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15386 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15387 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15388 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
15389 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
15390 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
15391 "${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" ;;
15392 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
15393 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15394 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15395 "${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" ;;
15397 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15398 esac
15399 done
15402 # If the user did not use the arguments to specify the items to instantiate,
15403 # then the envvar interface is used. Set only those that are not.
15404 # We use the long form for the default assignment because of an extremely
15405 # bizarre bug on SunOS 4.1.3.
15406 if $ac_need_defaults; then
15407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15412 # Have a temporary directory for convenience. Make it in the build tree
15413 # simply because there is no reason against having it here, and in addition,
15414 # creating and moving files from /tmp can sometimes cause problems.
15415 # Hook for its removal unless debugging.
15416 # Note that there is a small window in which the directory will not be cleaned:
15417 # after its creation but before its name has been assigned to `$tmp'.
15418 $debug ||
15420 tmp= ac_tmp=
15421 trap 'exit_status=$?
15422 : "${ac_tmp:=$tmp}"
15423 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15425 trap 'as_fn_exit 1' 1 2 13 15
15427 # Create a (secure) tmp directory for tmp files.
15430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15431 test -d "$tmp"
15432 } ||
15434 tmp=./conf$$-$RANDOM
15435 (umask 077 && mkdir "$tmp")
15436 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15437 ac_tmp=$tmp
15439 # Set up the scripts for CONFIG_FILES section.
15440 # No need to generate them if there are no CONFIG_FILES.
15441 # This happens for instance with `./config.status config.h'.
15442 if test -n "$CONFIG_FILES"; then
15445 ac_cr=`echo X | tr X '\015'`
15446 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15447 # But we know of no other shell where ac_cr would be empty at this
15448 # point, so we can use a bashism as a fallback.
15449 if test "x$ac_cr" = x; then
15450 eval ac_cr=\$\'\\r\'
15452 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15453 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15454 ac_cs_awk_cr='\\r'
15455 else
15456 ac_cs_awk_cr=$ac_cr
15459 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15460 _ACEOF
15464 echo "cat >conf$$subs.awk <<_ACEOF" &&
15465 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15466 echo "_ACEOF"
15467 } >conf$$subs.sh ||
15468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15469 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15470 ac_delim='%!_!# '
15471 for ac_last_try in false false false false false :; do
15472 . ./conf$$subs.sh ||
15473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15475 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15476 if test $ac_delim_n = $ac_delim_num; then
15477 break
15478 elif $ac_last_try; then
15479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15480 else
15481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15483 done
15484 rm -f conf$$subs.sh
15486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15487 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15488 _ACEOF
15489 sed -n '
15491 s/^/S["/; s/!.*/"]=/
15494 s/^[^!]*!//
15495 :repl
15496 t repl
15497 s/'"$ac_delim"'$//
15498 t delim
15501 s/\(.\{148\}\)..*/\1/
15502 t more1
15503 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15506 b repl
15507 :more1
15508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15511 s/.\{148\}//
15512 t nl
15513 :delim
15515 s/\(.\{148\}\)..*/\1/
15516 t more2
15517 s/["\\]/\\&/g; s/^/"/; s/$/"/
15520 :more2
15521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15524 s/.\{148\}//
15525 t delim
15526 ' <conf$$subs.awk | sed '
15527 /^[^""]/{
15529 s/\n//
15531 ' >>$CONFIG_STATUS || ac_write_fail=1
15532 rm -f conf$$subs.awk
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534 _ACAWK
15535 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15536 for (key in S) S_is_set[key] = 1
15537 FS = "\a"
15541 line = $ 0
15542 nfields = split(line, field, "@")
15543 substed = 0
15544 len = length(field[1])
15545 for (i = 2; i < nfields; i++) {
15546 key = field[i]
15547 keylen = length(key)
15548 if (S_is_set[key]) {
15549 value = S[key]
15550 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15551 len += length(value) + length(field[++i])
15552 substed = 1
15553 } else
15554 len += 1 + keylen
15557 print line
15560 _ACAWK
15561 _ACEOF
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15564 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15565 else
15567 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15568 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15569 _ACEOF
15571 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15572 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15573 # trailing colons and then remove the whole line if VPATH becomes empty
15574 # (actually we leave an empty line to preserve line numbers).
15575 if test "x$srcdir" = x.; then
15576 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15578 s///
15579 s/^/:/
15580 s/[ ]*$/:/
15581 s/:\$(srcdir):/:/g
15582 s/:\${srcdir}:/:/g
15583 s/:@srcdir@:/:/g
15584 s/^:*//
15585 s/:*$//
15587 s/\(=[ ]*\).*/\1/
15589 s/\n//
15590 s/^[^=]*=[ ]*$//
15594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15595 fi # test -n "$CONFIG_FILES"
15597 # Set up the scripts for CONFIG_HEADERS section.
15598 # No need to generate them if there are no CONFIG_HEADERS.
15599 # This happens for instance with `./config.status Makefile'.
15600 if test -n "$CONFIG_HEADERS"; then
15601 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15602 BEGIN {
15603 _ACEOF
15605 # Transform confdefs.h into an awk script `defines.awk', embedded as
15606 # here-document in config.status, that substitutes the proper values into
15607 # config.h.in to produce config.h.
15609 # Create a delimiter string that does not exist in confdefs.h, to ease
15610 # handling of long lines.
15611 ac_delim='%!_!# '
15612 for ac_last_try in false false :; do
15613 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15614 if test -z "$ac_tt"; then
15615 break
15616 elif $ac_last_try; then
15617 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15618 else
15619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15621 done
15623 # For the awk script, D is an array of macro values keyed by name,
15624 # likewise P contains macro parameters if any. Preserve backslash
15625 # newline sequences.
15627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15628 sed -n '
15629 s/.\{148\}/&'"$ac_delim"'/g
15630 t rset
15631 :rset
15632 s/^[ ]*#[ ]*define[ ][ ]*/ /
15633 t def
15635 :def
15636 s/\\$//
15637 t bsnl
15638 s/["\\]/\\&/g
15639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15640 D["\1"]=" \3"/p
15641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15643 :bsnl
15644 s/["\\]/\\&/g
15645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15646 D["\1"]=" \3\\\\\\n"\\/p
15647 t cont
15648 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15649 t cont
15651 :cont
15653 s/.\{148\}/&'"$ac_delim"'/g
15654 t clear
15655 :clear
15656 s/\\$//
15657 t bsnlc
15658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15660 :bsnlc
15661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15662 b cont
15663 ' <confdefs.h | sed '
15664 s/'"$ac_delim"'/"\\\
15665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15668 for (key in D) D_is_set[key] = 1
15669 FS = "\a"
15671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15672 line = \$ 0
15673 split(line, arg, " ")
15674 if (arg[1] == "#") {
15675 defundef = arg[2]
15676 mac1 = arg[3]
15677 } else {
15678 defundef = substr(arg[1], 2)
15679 mac1 = arg[2]
15681 split(mac1, mac2, "(") #)
15682 macro = mac2[1]
15683 prefix = substr(line, 1, index(line, defundef) - 1)
15684 if (D_is_set[macro]) {
15685 # Preserve the white space surrounding the "#".
15686 print prefix "define", macro P[macro] D[macro]
15687 next
15688 } else {
15689 # Replace #undef with comments. This is necessary, for example,
15690 # in the case of _POSIX_SOURCE, which is predefined and required
15691 # on some systems where configure will not decide to define it.
15692 if (defundef == "undef") {
15693 print "/*", prefix defundef, macro, "*/"
15694 next
15698 { print }
15699 _ACAWK
15700 _ACEOF
15701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15702 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15703 fi # test -n "$CONFIG_HEADERS"
15706 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15707 shift
15708 for ac_tag
15710 case $ac_tag in
15711 :[FHLC]) ac_mode=$ac_tag; continue;;
15712 esac
15713 case $ac_mode$ac_tag in
15714 :[FHL]*:*);;
15715 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15716 :[FH]-) ac_tag=-:-;;
15717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15718 esac
15719 ac_save_IFS=$IFS
15720 IFS=:
15721 set x $ac_tag
15722 IFS=$ac_save_IFS
15723 shift
15724 ac_file=$1
15725 shift
15727 case $ac_mode in
15728 :L) ac_source=$1;;
15729 :[FH])
15730 ac_file_inputs=
15731 for ac_f
15733 case $ac_f in
15734 -) ac_f="$ac_tmp/stdin";;
15735 *) # Look for the file first in the build tree, then in the source tree
15736 # (if the path is not absolute). The absolute path cannot be DOS-style,
15737 # because $ac_f cannot contain `:'.
15738 test -f "$ac_f" ||
15739 case $ac_f in
15740 [\\/$]*) false;;
15741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15742 esac ||
15743 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15744 esac
15745 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15746 as_fn_append ac_file_inputs " '$ac_f'"
15747 done
15749 # Let's still pretend it is `configure' which instantiates (i.e., don't
15750 # use $as_me), people would be surprised to read:
15751 # /* config.h. Generated by config.status. */
15752 configure_input='Generated from '`
15753 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15754 `' by configure.'
15755 if test x"$ac_file" != x-; then
15756 configure_input="$ac_file. $configure_input"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15758 $as_echo "$as_me: creating $ac_file" >&6;}
15760 # Neutralize special characters interpreted by sed in replacement strings.
15761 case $configure_input in #(
15762 *\&* | *\|* | *\\* )
15763 ac_sed_conf_input=`$as_echo "$configure_input" |
15764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15765 *) ac_sed_conf_input=$configure_input;;
15766 esac
15768 case $ac_tag in
15769 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15771 esac
15773 esac
15775 ac_dir=`$as_dirname -- "$ac_file" ||
15776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15777 X"$ac_file" : 'X\(//\)[^/]' \| \
15778 X"$ac_file" : 'X\(//\)$' \| \
15779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15780 $as_echo X"$ac_file" |
15781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15782 s//\1/
15785 /^X\(\/\/\)[^/].*/{
15786 s//\1/
15789 /^X\(\/\/\)$/{
15790 s//\1/
15793 /^X\(\/\).*/{
15794 s//\1/
15797 s/.*/./; q'`
15798 as_dir="$ac_dir"; as_fn_mkdir_p
15799 ac_builddir=.
15801 case "$ac_dir" in
15802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15805 # A ".." for each directory in $ac_dir_suffix.
15806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15807 case $ac_top_builddir_sub in
15808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15810 esac ;;
15811 esac
15812 ac_abs_top_builddir=$ac_pwd
15813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15814 # for backward compatibility:
15815 ac_top_builddir=$ac_top_build_prefix
15817 case $srcdir in
15818 .) # We are building in place.
15819 ac_srcdir=.
15820 ac_top_srcdir=$ac_top_builddir_sub
15821 ac_abs_top_srcdir=$ac_pwd ;;
15822 [\\/]* | ?:[\\/]* ) # Absolute name.
15823 ac_srcdir=$srcdir$ac_dir_suffix;
15824 ac_top_srcdir=$srcdir
15825 ac_abs_top_srcdir=$srcdir ;;
15826 *) # Relative name.
15827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15828 ac_top_srcdir=$ac_top_build_prefix$srcdir
15829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15830 esac
15831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15834 case $ac_mode in
15837 # CONFIG_FILE
15840 _ACEOF
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 # If the template does not know about datarootdir, expand it.
15844 # FIXME: This hack should be removed a few years after 2.60.
15845 ac_datarootdir_hack=; ac_datarootdir_seen=
15846 ac_sed_dataroot='
15847 /datarootdir/ {
15851 /@datadir@/p
15852 /@docdir@/p
15853 /@infodir@/p
15854 /@localedir@/p
15855 /@mandir@/p'
15856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15857 *datarootdir*) ac_datarootdir_seen=yes;;
15858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15861 _ACEOF
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863 ac_datarootdir_hack='
15864 s&@datadir@&$datadir&g
15865 s&@docdir@&$docdir&g
15866 s&@infodir@&$infodir&g
15867 s&@localedir@&$localedir&g
15868 s&@mandir@&$mandir&g
15869 s&\\\${datarootdir}&$datarootdir&g' ;;
15870 esac
15871 _ACEOF
15873 # Neutralize VPATH when `$srcdir' = `.'.
15874 # Shell code in configure.ac might set extrasub.
15875 # FIXME: do we really want to maintain this feature?
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 ac_sed_extra="$ac_vpsub
15878 $extrasub
15879 _ACEOF
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15883 s|@configure_input@|$ac_sed_conf_input|;t t
15884 s&@top_builddir@&$ac_top_builddir_sub&;t t
15885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15886 s&@srcdir@&$ac_srcdir&;t t
15887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15888 s&@top_srcdir@&$ac_top_srcdir&;t t
15889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15890 s&@builddir@&$ac_builddir&;t t
15891 s&@abs_builddir@&$ac_abs_builddir&;t t
15892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15893 $ac_datarootdir_hack
15895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15896 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15901 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15903 which seems to be undefined. Please make sure it is defined" >&5
15904 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15905 which seems to be undefined. Please make sure it is defined" >&2;}
15907 rm -f "$ac_tmp/stdin"
15908 case $ac_file in
15909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15911 esac \
15912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15916 # CONFIG_HEADER
15918 if test x"$ac_file" != x-; then
15920 $as_echo "/* $configure_input */" \
15921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15922 } >"$ac_tmp/config.h" \
15923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15926 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15927 else
15928 rm -f "$ac_file"
15929 mv "$ac_tmp/config.h" "$ac_file" \
15930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15932 else
15933 $as_echo "/* $configure_input */" \
15934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15935 || as_fn_error $? "could not create -" "$LINENO" 5
15939 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15940 $as_echo "$as_me: executing $ac_file commands" >&6;}
15942 esac
15945 case $ac_file$ac_mode in
15946 "compiler_executable":C)
15947 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15948 mkdir -p $prefix
15949 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15950 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15952 echo ${prefix2}
15953 echo ${prefix3}
15954 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15956 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15957 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15958 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15959 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15960 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15961 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15962 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15964 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15966 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15968 esac
15969 done # for ac_tag
15972 as_fn_exit 0
15973 _ACEOF
15974 ac_clean_files=$ac_clean_files_save
15976 test $ac_write_fail = 0 ||
15977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15980 # configure is writing to config.log, and then calls config.status.
15981 # config.status does its own redirection, appending to config.log.
15982 # Unfortunately, on DOS this fails, as config.log is still kept open
15983 # by configure, so config.status won't be able to write to it; its
15984 # output is simply discarded. So we exec the FD to /dev/null,
15985 # effectively closing config.log, so it can be properly (re)opened and
15986 # appended to by config.status. When coming back to configure, we
15987 # need to make the FD available again.
15988 if test "$no_create" != yes; then
15989 ac_cs_success=:
15990 ac_config_status_args=
15991 test "$silent" = yes &&
15992 ac_config_status_args="$ac_config_status_args --quiet"
15993 exec 5>/dev/null
15994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15995 exec 5>>config.log
15996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15997 # would make configure fail if this is the last instruction.
15998 $ac_cs_success || as_fn_exit 1
16000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16007 #XXX compatability...
16008 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16010 if test -n "$aros_shared_cflags" ; then
16011 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16012 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg