Put pciehci.device in DEVS:USBHardware, like the other host-controller
[AROS.git] / configure
blobfa02e54e9d6244c8c21e6374a4f2f8ac4befd3d9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 gcc_default_float_abi
610 gcc_default_fpu
611 gcc_default_cpu_tune
612 gcc_default_cpu
613 aros_ios_sdk
614 aros_ios_version
615 aros_ios_platform
616 aros_enable_mmu
617 aros_nesting_supervisor
618 aros_palm_debug_hack
619 aros_serial_debug
620 aros_host_sdl_libs
621 aros_host_sdl_cflags
622 aros_host_x11_libdirs
623 aros_host_x11_includes
624 DO_VIDMODE_SUPPORT
625 DO_XSHM_SUPPORT
626 aros_default_wbdepth
627 aros_default_wbheight
628 aros_default_wbwidth
629 oss_library_target
630 pci_hidd_target
631 sdl_hidd_target
632 x11_hidd_target
633 aros_cflags_format_security
634 aros_cflags_strict_overflow
635 aros_cflags_enum_compare
636 aros_cflags_array_bounds
637 aros_cflags_unused_but_set_variable
638 crosstools_cxx_target
639 crosstools_target
640 aros_target_strip_flags
641 aros_target_genmap
642 aros_debug_ldflags
643 aros_debug_aflags
644 aros_debug_cflags
645 aros_target_cflags
646 aros_kernel_ldflags
647 aros_kernel_objcflags
648 aros_kernel_includes
649 aros_kernel_cflags
650 aros_shared_ldflags
651 aros_shared_aflags
652 aros_shared_cflags
653 aros_config_ldflags
654 aros_config_aflags
655 aros_config_cflags
656 aros_arch_libs
657 aros_compiler_libs
658 aros_object_format
659 aros_shared_ld
660 aros_shared_default
661 aros_target_nm
662 aros_target_strip
663 aros_target_objcopy
664 aros_target_objdump
665 aros_target_cc_path
666 aros_target_cc_includes
667 aros_target_ld
668 aros_target_as
669 aros_target_cpp
670 aros_target_cxx
671 aros_target_cc
672 aros_plain_ar
673 aros_plain_nm
674 aros_target_ranlib
675 aros_target_ar
676 aros_target_suffix
677 aros_target_variant
678 aros_target_cpu
679 aros_target_family
680 aros_target_arch
681 aros_target_bootloader
682 aros_target_iconset
683 aros_target_guitheme
684 aros_tools_dir
685 aros_host_lib_suffix
686 aros_host_exe_suffix
687 aros_host_mkargs
688 aros_host_mkdep
689 aros_host_debug
690 aros_host_ldflags
691 gnu89_inline
692 aros_host_cxxflags
693 aros_host_cflags
694 aros_host_make
695 aros_host_cxx
696 aros_host_cc
697 aros_host_cpp
698 aros_host_cpu
699 aros_host_arch
700 aros_cc_pre
701 aros_amigaos_compliance
702 AROS_PORTSSRCDIR
703 AROS_CROSSTOOLSDIR
704 SRCDIR
705 AROS_BUILDDIR_UNIX
706 AROS_BUILDDIR
707 aros_target_toolchain
708 aros_flavour_uc
709 aros_flavour
710 aros_cpu
711 aros_arch
712 SDL_LIBS
713 SDL_CFLAGS
714 SDL_CONFIG
715 XMKMF
716 aros_cflags_iquote_end
717 aros_cflags_iquote
718 kernel_cflags_iquote_end
719 kernel_cflags_iquote
720 host_cflags_iquote_end
721 host_cflags_iquote
722 aros_target_nostdlib_ldflags
723 aros_target_detach_ldflags
724 aros_target_nix_ldflags
725 aros_target_nostartup_ldflags
726 aros_target_nostdinc_cflags
727 aros_kernel_rescomp
728 orig_target_objdump
729 orig_target_objcopy
730 orig_target_strip
731 orig_target_nm
732 orig_target_ranlib
733 orig_target_ar
734 orig_target_as
735 orig_target_ld
736 orig_target_cxx
737 orig_target_cc
738 orig_target_cpp
739 aros_kernel_objdump
740 aros_kernel_objcopy
741 aros_kernel_strip
742 aros_kernel_nm
743 aros_kernel_ranlib
744 aros_kernel_ar
745 aros_kernel_as
746 aros_kernel_ld
747 aros_kernel_cxx
748 aros_kernel_cc
749 aros_kernel_cpp
751 android_tool
752 CCACHE
753 DISTCC
754 LIBOBJS
755 EGREP
756 GREP
758 TEST
761 pkgpyexecdir
762 pyexecdir
763 pkgpythondir
764 pythondir
765 PYTHON_PLATFORM
766 PYTHON_EXEC_PREFIX
767 PYTHON_PREFIX
768 PYTHON_VERSION
769 PYTHON
770 PATCH
771 CHMOD
773 PPMTOILBM
774 PNGTOPNM
775 FLEX
776 BISON
779 UNIQ
780 SORT
781 TOUCH
782 MKDIR
783 ECHO
787 aros_host_strip
788 aros_host_ranlib
789 aros_host_ar
790 aros_host_automake
791 aros_host_autoheader
792 aros_host_autoconf
793 aros_host_aclocal
794 aros_host_ld
795 MMAKE
798 ac_ct_CC
799 CFLAGS
801 OBJEXT
802 EXEEXT
803 ac_ct_CXX
804 CPPFLAGS
805 LDFLAGS
806 CXXFLAGS
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_build_type
858 enable_debug
859 enable_distcc
860 enable_ccache
861 with_kernel_gcc_version
862 with_gcc_version
863 with_optimization
864 with_paranoia
865 enable_target_variant
866 with_xcode
867 with_sdk_version
868 with_sdk
869 with_ndk
870 with_ndk_version
871 enable_amigaos_compliance
872 with_kernel_toolchain_prefix
873 with_elf_toolchain_prefix
874 with_aros_toolchain
875 enable_crosstools
876 with_aros_toolchain_install
877 with_cpu
878 with_fpu
879 with_float
880 with_aros_gcc
881 with_portssources
882 with_bootloader
883 with_iconset
884 with_theme
885 enable_includes
886 with_resolution
887 with_serial_debug
888 enable_palm_debug_hack
889 enable_nesting_supervisor
890 enable_mmu
891 enable_x11_hidd
892 with_x
893 enable_x11_shm
894 enable_x11_vidmode
895 enable_sdl_hidd
896 with_sdl_prefix
897 with_sdl_exec_prefix
898 enable_sdltest
899 enable_dbus
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
905 CXXFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
911 CFLAGS
913 PYTHON
914 XMKMF'
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 ac_unrecognized_opts=
921 ac_unrecognized_sep=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
965 ac_prev=
966 ac_dashdash=
967 for ac_option
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
972 ac_prev=
973 continue
976 case $ac_option in
977 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 *) ac_optarg=yes ;;
979 esac
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
985 ac_dashdash=yes ;;
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1299 -*) as_fn_error "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information."
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321 esac
1322 done
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error "missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error "pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1408 /^X\(\/\/\)$/{
1409 s//\1/
1412 /^X\(\/\).*/{
1413 s//\1/
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1421 else
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures this package to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1511 cat <<\_ACEOF
1513 X features:
1514 --x-includes=DIR X include files are in DIR
1515 --x-libraries=DIR X library files are in DIR
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1523 if test -n "$ac_init_help"; then
1525 cat <<\_ACEOF
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-build-type=TYPE
1532 Select the build type. Available types are:
1533 personal, nightly, snapshot, milestone, release. Do
1534 NOT use this option unless you know what you are
1535 doing! (default=personal)
1536 --enable-debug=list Enable different types of debug. Commas or
1537 whitespaces can be used to separate the items in the
1538 list. Available types of debug are: all, none,
1539 messages, stack, mungwall, modules, symbols. If no
1540 list is provided then "all" is assumed.
1541 (default=none)
1542 --enable-distcc Use distcc as a front end to the compiler
1543 (default=no).
1544 --enable-ccache Use ccache as a front end to the compiler
1545 (default=no).
1546 --enable-target-variant=NAME
1547 Enable a specific target variant(default=none)
1548 --enable-amigaos-compliance=VERSION
1549 Enforce userspace AmigaOS compliance to a specific
1550 KickStart version (default=none).
1551 --disable-crosstools Do not build cross-compiler toolchain
1552 --enable-includes=dir Alternative system include directory
1553 --enable-palm-debug-hack
1554 Enable palm debug output hack in palm native
1555 (default=no)
1556 --enable-nesting-supervisor
1557 Enable nesting supervisor support in unix
1558 (default=no)
1559 --disable-mmu Disable MMU support (default=enabled)
1560 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1561 --enable-x11-shm use X11 shared memory (default=auto)
1562 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1563 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1564 --disable-sdltest Do not try to compile and run a test SDL program
1565 --enable-dbus Enable DBUS support via dbus.library (default=no)
1567 Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-kernel-gcc-version=VERSION
1571 Use host gcc-VERSION for building AROS
1572 --with-gcc-version=VERSION
1573 Use host gcc-VERSION for building AROS
1574 --with-optimization=FLAGS
1575 Use optimization flags FLAGS (default=-O2).
1576 --with-paranoia=FLAGS CC flags to enable paranoia
1577 --with-xcode=PATH Specify XCode path for iOS targets
1578 (default=/Developer).
1579 --with-sdk-version=VERSION
1580 Use iOS SDK version VERSION (default=4.1).
1581 --with-sdk=PATH Specify Android SDK path
1582 (default=$default_android_sdk).
1583 --with-ndk=PATH Specify Android NDK path (default=none).
1584 --with-sdk-version=LEVEL
1585 Use Android SDK for API LEVEL (default=12).
1586 --with-ndk-version=LEVEL
1587 Use Android NDK for API LEVEL (default=9).
1588 --with-kernel-toolchain-prefix=...
1589 Specify crosscompile toolchain prefix for kernel
1590 objects
1591 --with-elf-toolchain-prefix=...
1592 Specify crosscompile toolchain prefix to wrap for
1593 AROS objects
1594 --with-aros-toolchain=PREFIX
1595 Specify prebuilt AROS toolchain
1596 --with-aros-toolchain-install=DIR
1597 Where to install or search for cross tools binaries
1598 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1599 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1600 --with-float=<spec> Specify floating point ABI
1601 (default=$gcc_default_float_abi).
1602 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1603 --with-portssources=DIR Where to download sourcecode for external ports
1604 --with-bootloader=NAME Use a specific bootloader
1605 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1606 --with-theme=NAME Use a specific GUI Theme
1607 --with-resolution=XRESxYRESxDEPTH
1608 Default resolution of the initial WorkbenchScreen
1609 --with-serial-debug Enable serial debug output in native (default=no)
1610 --with-x use the X Window System
1611 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1612 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1614 Some influential environment variables:
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 CPP C preprocessor
1625 PYTHON the Python interpreter
1626 XMKMF Path to xmkmf, Makefile generator for X Window System
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to the package provider.
1632 _ACEOF
1633 ac_status=$?
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 continue
1642 ac_builddir=.
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1660 case $srcdir in
1661 .) # We are building in place.
1662 ac_srcdir=.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1669 *) # Relative name.
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1684 else
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 fi || ac_status=$?
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1688 done
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693 cat <<\_ACEOF
1694 configure
1695 generated by GNU Autoconf 2.65
1697 Copyright (C) 2009 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_cxx_try_compile LINENO
1709 # ----------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_cxx_try_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_cxx_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_cxx_try_compile
1746 # ac_fn_c_try_compile LINENO
1747 # --------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_compile
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } >/dev/null && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_cpp
1821 # ac_fn_c_try_link LINENO
1822 # -----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_link ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 $as_test_x conftest$ac_exeext
1849 }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=1
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_link
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1871 # accordingly.
1872 ac_fn_c_check_header_mongrel ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1879 $as_echo_n "(cached) " >&6
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 else
1885 # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_header_compiler=yes
1895 else
1896 ac_header_compiler=no
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910 ac_header_preproc=yes
1911 else
1912 ac_header_preproc=no
1914 rm -f conftest.err conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1918 # So? What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920 yes:no: )
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 no:yes:* )
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 esac
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 eval "$3=\$ac_header_compiler"
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952 } # ac_fn_c_check_header_mongrel
1954 # ac_fn_c_try_run LINENO
1955 # ----------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1957 # that executables *can* be run.
1958 ac_fn_c_try_run ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_link"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>&5
1969 ac_status=$?
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1972 { { case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_try") 2>&5
1979 ac_status=$?
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; }; }; then :
1982 ac_retval=0
1983 else
1984 $as_echo "$as_me: program exited with status $ac_status" >&5
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 ac_retval=$ac_status
1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 as_fn_set_status $ac_retval
1994 } # ac_fn_c_try_run
1996 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists and can be compiled using the include files in
1999 # INCLUDES, setting the cache variable VAR accordingly.
2000 ac_fn_c_check_header_compile ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$3=yes"
2015 else
2016 eval "$3=no"
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 } # ac_fn_c_check_header_compile
2027 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2028 # ----------------------------------------------------
2029 # Tries to find if the field MEMBER exists in type AGGR, after including
2030 # INCLUDES, setting cache variable VAR accordingly.
2031 ac_fn_c_check_member ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2035 $as_echo_n "checking for $2.$3... " >&6; }
2036 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 static $2 ac_aggr;
2046 if (ac_aggr.$3)
2047 return 0;
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$4=yes"
2054 else
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 static $2 ac_aggr;
2062 if (sizeof ac_aggr.$3)
2063 return 0;
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 eval "$4=yes"
2070 else
2071 eval "$4=no"
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 eval ac_res=\$$4
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_member
2084 # ac_fn_c_check_decl LINENO SYMBOL VAR
2085 # ------------------------------------
2086 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2087 ac_fn_c_check_decl ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2091 $as_echo_n "checking whether $2 is declared... " >&6; }
2092 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2093 $as_echo_n "(cached) " >&6
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 main ()
2101 #ifndef $2
2102 (void) $2;
2103 #endif
2106 return 0;
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 eval "$3=yes"
2111 else
2112 eval "$3=no"
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_decl
2123 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2124 # -------------------------------------------
2125 # Tests whether TYPE exists after having included INCLUDES, setting cache
2126 # variable VAR accordingly.
2127 ac_fn_c_check_type ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 eval "$3=no"
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 main ()
2142 if (sizeof ($2))
2143 return 0;
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 if (sizeof (($2)))
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2163 else
2164 eval "$3=yes"
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_type
2177 # ac_fn_c_check_func LINENO FUNC VAR
2178 # ----------------------------------
2179 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2180 ac_fn_c_check_func ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2192 #define $2 innocuous_$2
2194 /* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $2 (); below.
2196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2197 <limits.h> exists even on freestanding compilers. */
2199 #ifdef __STDC__
2200 # include <limits.h>
2201 #else
2202 # include <assert.h>
2203 #endif
2205 #undef $2
2207 /* Override any GCC internal prototype to avoid an error.
2208 Use char because int might match the return type of a GCC
2209 builtin and then its argument prototype would still apply. */
2210 #ifdef __cplusplus
2211 extern "C"
2212 #endif
2213 char $2 ();
2214 /* The GNU C library defines this for functions which it implements
2215 to always fail with ENOSYS. Some functions are actually named
2216 something starting with __ and the normal name is an alias. */
2217 #if defined __stub_$2 || defined __stub___$2
2218 choke me
2219 #endif
2222 main ()
2224 return $2 ();
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_link "$LINENO"; then :
2230 eval "$3=yes"
2231 else
2232 eval "$3=no"
2234 rm -f core conftest.err conftest.$ac_objext \
2235 conftest$ac_exeext conftest.$ac_ext
2237 eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 } # ac_fn_c_check_func
2243 cat >config.log <<_ACEOF
2244 This file contains any messages produced by compilers while
2245 running configure, to aid debugging if configure makes a mistake.
2247 It was created by $as_me, which was
2248 generated by GNU Autoconf 2.65. Invocation command line was
2250 $ $0 $@
2252 _ACEOF
2253 exec 5>>config.log
2255 cat <<_ASUNAME
2256 ## --------- ##
2257 ## Platform. ##
2258 ## --------- ##
2260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277 _ASUNAME
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 $as_echo "PATH: $as_dir"
2285 done
2286 IFS=$as_save_IFS
2288 } >&5
2290 cat >&5 <<_ACEOF
2293 ## ----------- ##
2294 ## Core tests. ##
2295 ## ----------- ##
2297 _ACEOF
2300 # Keep a trace of the command line.
2301 # Strip out --no-create and --no-recursion so they do not pile up.
2302 # Strip out --silent because we don't want to record it for future runs.
2303 # Also quote any args containing shell meta-characters.
2304 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_configure_args=
2306 ac_configure_args0=
2307 ac_configure_args1=
2308 ac_must_keep_next=false
2309 for ac_pass in 1 2
2311 for ac_arg
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 esac
2321 case $ac_pass in
2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2324 as_fn_append ac_configure_args1 " '$ac_arg'"
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2340 as_fn_append ac_configure_args " '$ac_arg'"
2342 esac
2343 done
2344 done
2345 { ac_configure_args0=; unset ac_configure_args0;}
2346 { ac_configure_args1=; unset ac_configure_args1;}
2348 # When interrupted or exit'd, cleanup temporary files, and complete
2349 # config.log. We remove comments because anyway the quotes in there
2350 # would cause problems or look ugly.
2351 # WARNING: Use '\'' to represent an apostrophe within the trap.
2352 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353 trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2356 echo
2358 cat <<\_ASBOX
2359 ## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##
2362 _ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 esac |
2392 sort
2394 echo
2396 cat <<\_ASBOX
2397 ## ----------------- ##
2398 ## Output variables. ##
2399 ## ----------------- ##
2400 _ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
2414 ## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##
2417 _ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432 ## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##
2435 _ASBOX
2436 echo
2437 cat confdefs.h
2438 echo
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 done
2451 ac_signal=0
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2482 _ACEOF
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2487 ac_site_file1=NONE
2488 ac_site_file2=NONE
2489 if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491 elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494 else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2498 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 test "x$ac_site_file" = xNONE && continue
2501 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2507 done
2509 if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special files
2511 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2512 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514 $as_echo "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
2518 esac
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file
2526 as_fn_append ac_header_list " stdlib.h"
2527 as_fn_append ac_header_list " unistd.h"
2528 as_fn_append ac_header_list " sys/param.h"
2529 # Check that the precious variables saved in the cache have kept the same
2530 # value.
2531 ac_cache_corrupted=false
2532 for ac_var in $ac_precious_vars; do
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
2537 case $ac_old_set,$ac_new_set in
2538 set,)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2541 ac_cache_corrupted=: ;;
2542 ,set)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,);;
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x $ac_old_val`
2551 ac_new_val_w=`echo x $ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555 ac_cache_corrupted=:
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576 esac
2578 done
2579 if $ac_cache_corrupted; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2584 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2586 ## -------------------- ##
2587 ## Main body of script. ##
2588 ## -------------------- ##
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 ac_aux_dir=
2599 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2600 for ac_t in install-sh install.sh shtool; do
2601 if test -f "$ac_dir/$ac_t"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/$ac_t -c"
2604 break 2
2606 done
2607 done
2608 if test -z "$ac_aux_dir"; then
2609 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 # Check what host we are running on.
2623 # If a target is not suggested, we use this one.
2624 # Note that what we call a target, Autoconf calls a host.
2625 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630 $as_echo_n "checking build system type... " >&6; }
2631 if test "${ac_cv_build+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 ac_build_alias=$build_alias
2635 test "x$ac_build_alias" = x &&
2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637 test "x$ac_build_alias" = x &&
2638 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644 $as_echo "$ac_cv_build" >&6; }
2645 case $ac_cv_build in
2646 *-*-*) ;;
2647 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2648 esac
2649 build=$ac_cv_build
2650 ac_save_IFS=$IFS; IFS='-'
2651 set x $ac_cv_build
2652 shift
2653 build_cpu=$1
2654 build_vendor=$2
2655 shift; shift
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2658 build_os=$*
2659 IFS=$ac_save_IFS
2660 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664 $as_echo_n "checking host system type... " >&6; }
2665 if test "${ac_cv_host+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test "x$host_alias" = x; then
2669 ac_cv_host=$ac_cv_build
2670 else
2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677 $as_echo "$ac_cv_host" >&6; }
2678 case $ac_cv_host in
2679 *-*-*) ;;
2680 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2681 esac
2682 host=$ac_cv_host
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_host
2685 shift
2686 host_cpu=$1
2687 host_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 host_os=$*
2692 IFS=$ac_save_IFS
2693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2697 # The AROS target is slightly different to the normal GNU style
2698 # format. We don't have the middle part, and we reverse the order
2699 # of the $(CPU) and $(OS) bits.
2701 # Don't strip the version of the target yet, it might be
2702 # useful on some systems.
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2705 $as_echo_n "checking for AROS style target... " >&6; }
2707 if test "$target" = "NONE" ; then
2708 target=$host_os-$host_cpu
2709 else
2710 if test "$target" = "" ; then
2711 target=$host_os-$host_cpu
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2715 $as_echo "$target" >&6; }
2717 if test "$host_os" = "mingw32" ; then
2718 PWDCMD="pwd -W"
2721 # Don't know where else to put this...
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2723 $as_echo_n "checking building AROS in... " >&6; }
2724 AROS_BUILDDIR=`${PWDCMD-pwd}`
2725 AROS_BUILDDIR_UNIX=${PWD}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2727 $as_echo "$AROS_BUILDDIR" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2730 $as_echo_n "checking AROS source in... " >&6; }
2731 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2732 SRCDIR=${srcpwd}
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2734 $as_echo "$SRCDIR" >&6; }
2736 # Parse the target field into something useful.
2738 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2739 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2742 # Some debug output, to be removed again.
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2744 $as_echo_n "checking for target system (debug output)... " >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2746 $as_echo "$target_os" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2748 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2750 $as_echo "$target_cpu" >&6; }
2752 aros_default_wbwidth=800
2753 aros_default_wbheight=600
2754 aros_default_wbdepth=4
2757 # The first step is to find the host binaries.
2758 # Check for a compiler.
2759 # Due to a bug in autoconf check for c++ compiler first.
2760 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2761 ac_ext=cpp
2762 ac_cpp='$CXXCPP $CPPFLAGS'
2763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2766 if test -z "$CXX"; then
2767 if test -n "$CCC"; then
2768 CXX=$CCC
2769 else
2770 if test -n "$ac_tool_prefix"; then
2771 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CXX+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CXX"; then
2781 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 CXX=$ac_cv_prog_CXX
2801 if test -n "$CXX"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2803 $as_echo "$CXX" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2810 test -n "$CXX" && break
2811 done
2813 if test -z "$CXX"; then
2814 ac_ct_CXX=$CXX
2815 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_CXX"; then
2825 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_ac_ct_CXX="$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2840 IFS=$as_save_IFS
2844 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2845 if test -n "$ac_ct_CXX"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2847 $as_echo "$ac_ct_CXX" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2854 test -n "$ac_ct_CXX" && break
2855 done
2857 if test "x$ac_ct_CXX" = x; then
2858 CXX="g++"
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CXX=$ac_ct_CXX
2872 # Provide some information about the compiler.
2873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2874 set X $ac_compile
2875 ac_compiler=$2
2876 for ac_option in --version -v -V -qversion; do
2877 { { ac_try="$ac_compiler $ac_option >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2885 ac_status=$?
2886 if test -s conftest.err; then
2887 sed '10a\
2888 ... rest of stderr output deleted ...
2889 10q' conftest.err >conftest.er1
2890 cat conftest.er1 >&5
2892 rm -f conftest.er1 conftest.err
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2895 done
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2901 main ()
2905 return 0;
2907 _ACEOF
2908 ac_clean_files_save=$ac_clean_files
2909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2912 # of exeext.
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2914 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2917 # The possible output files:
2918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2920 ac_rmfiles=
2921 for ac_file in $ac_files
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926 esac
2927 done
2928 rm -f $ac_rmfiles
2930 if { { ac_try="$ac_link_default"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_link_default") 2>&5
2938 ac_status=$?
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; then :
2941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2944 # so that the user can short-circuit this test for compilers unknown to
2945 # Autoconf.
2946 for ac_file in $ac_files ''
2948 test -f "$ac_file" || continue
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2952 [ab].out )
2953 # We found the default executable, but exeext='' is most
2954 # certainly right.
2955 break;;
2956 *.* )
2957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2958 then :; else
2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961 # We set ac_cv_exeext here because the later test for it is not
2962 # safe: cross compilers may not add the suffix if given an `-o'
2963 # argument, so we may need to know it at that point already.
2964 # Even if this section looks crufty: it has the advantage of
2965 # actually working.
2966 break;;
2968 break;;
2969 esac
2970 done
2971 test "$ac_cv_exeext" = no && ac_cv_exeext=
2973 else
2974 ac_file=''
2976 if test -z "$ac_file"; then :
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 $as_echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { as_fn_set_status 77
2985 as_fn_error "C++ compiler cannot create executables
2986 See \`config.log' for more details." "$LINENO" 5; }; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2989 $as_echo "yes" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2992 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2994 $as_echo "$ac_file" >&6; }
2995 ac_exeext=$ac_cv_exeext
2997 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3000 $as_echo_n "checking for suffix of executables... " >&6; }
3001 if { { ac_try="$ac_link"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3014 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 # `rm'.
3016 for ac_file in conftest.exe conftest conftest.*; do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 break;;
3022 * ) break;;
3023 esac
3024 done
3025 else
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error "cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." "$LINENO" 5; }
3031 rm -f conftest conftest$ac_cv_exeext
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3033 $as_echo "$ac_cv_exeext" >&6; }
3035 rm -f conftest.$ac_ext
3036 EXEEXT=$ac_cv_exeext
3037 ac_exeext=$EXEEXT
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3040 #include <stdio.h>
3042 main ()
3044 FILE *f = fopen ("conftest.out", "w");
3045 return ferror (f) || fclose (f) != 0;
3048 return 0;
3050 _ACEOF
3051 ac_clean_files="$ac_clean_files conftest.out"
3052 # Check that the compiler produces executables we can run. If not, either
3053 # the compiler is broken, or we cross compile.
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3055 $as_echo_n "checking whether we are cross compiling... " >&6; }
3056 if test "$cross_compiling" != yes; then
3057 { { ac_try="$ac_link"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 $as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_link") 2>&5
3065 ac_status=$?
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068 if { ac_try='./conftest$ac_cv_exeext'
3069 { { case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_try") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; }; then
3079 cross_compiling=no
3080 else
3081 if test "$cross_compiling" = maybe; then
3082 cross_compiling=yes
3083 else
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error "cannot run C++ compiled programs.
3087 If you meant to cross compile, use \`--host'.
3088 See \`config.log' for more details." "$LINENO" 5; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093 $as_echo "$cross_compiling" >&6; }
3095 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3096 ac_clean_files=$ac_clean_files_save
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3098 $as_echo_n "checking for suffix of object files... " >&6; }
3099 if test "${ac_cv_objext+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { { ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_compile") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; then :
3125 for ac_file in conftest.o conftest.obj conftest.*; do
3126 test -f "$ac_file" || continue;
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3130 break;;
3131 esac
3132 done
3133 else
3134 $as_echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error "cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." "$LINENO" 5; }
3142 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3145 $as_echo "$ac_cv_objext" >&6; }
3146 OBJEXT=$ac_cv_objext
3147 ac_objext=$OBJEXT
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3149 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3150 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3157 main ()
3159 #ifndef __GNUC__
3160 choke me
3161 #endif
3164 return 0;
3166 _ACEOF
3167 if ac_fn_cxx_try_compile "$LINENO"; then :
3168 ac_compiler_gnu=yes
3169 else
3170 ac_compiler_gnu=no
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3177 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3178 if test $ac_compiler_gnu = yes; then
3179 GXX=yes
3180 else
3181 GXX=
3183 ac_test_CXXFLAGS=${CXXFLAGS+set}
3184 ac_save_CXXFLAGS=$CXXFLAGS
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3186 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3187 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3191 ac_cxx_werror_flag=yes
3192 ac_cv_prog_cxx_g=no
3193 CXXFLAGS="-g"
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3198 main ()
3202 return 0;
3204 _ACEOF
3205 if ac_fn_cxx_try_compile "$LINENO"; then :
3206 ac_cv_prog_cxx_g=yes
3207 else
3208 CXXFLAGS=""
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3213 main ()
3217 return 0;
3219 _ACEOF
3220 if ac_fn_cxx_try_compile "$LINENO"; then :
3222 else
3223 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3224 CXXFLAGS="-g"
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 if ac_fn_cxx_try_compile "$LINENO"; then :
3237 ac_cv_prog_cxx_g=yes
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3247 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3248 if test "$ac_test_CXXFLAGS" = set; then
3249 CXXFLAGS=$ac_save_CXXFLAGS
3250 elif test $ac_cv_prog_cxx_g = yes; then
3251 if test "$GXX" = yes; then
3252 CXXFLAGS="-g -O2"
3253 else
3254 CXXFLAGS="-g"
3256 else
3257 if test "$GXX" = yes; then
3258 CXXFLAGS="-O2"
3259 else
3260 CXXFLAGS=
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_CC+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3296 done
3297 done
3298 IFS=$as_save_IFS
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 $as_echo "$CC" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3313 if test -z "$ac_cv_prog_CC"; then
3314 ac_ct_CC=$CC
3315 # Extract the first word of "gcc", so it can be a program name with args.
3316 set dummy gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_ac_ct_CC="gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3351 if test "x$ac_ct_CC" = x; then
3352 CC=""
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360 CC=$ac_ct_CC
3362 else
3363 CC="$ac_cv_prog_CC"
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}cc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if test "${ac_cv_prog_CC+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_CC="${ac_tool_prefix}cc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3391 IFS=$as_save_IFS
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3407 if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409 set dummy cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 ac_prog_rejected=no
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427 ac_prog_rejected=yes
3428 continue
3430 ac_cv_prog_CC="cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3434 done
3435 done
3436 IFS=$as_save_IFS
3438 if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy $ac_cv_prog_CC
3441 shift
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3446 shift
3447 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3463 if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog in cl.exe
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3488 done
3489 done
3490 IFS=$as_save_IFS
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3504 test -n "$CC" && break
3505 done
3507 if test -z "$CC"; then
3508 ac_ct_CC=$CC
3509 for ac_prog in cl.exe
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy $ac_prog; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_ac_ct_CC="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3534 IFS=$as_save_IFS
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3541 $as_echo "$ac_ct_CC" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$ac_ct_CC" && break
3549 done
3551 if test "x$ac_ct_CC" = x; then
3552 CC=""
3553 else
3554 case $cross_compiling:$ac_tool_warned in
3555 yes:)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned=yes ;;
3559 esac
3560 CC=$ac_ct_CC
3567 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error "no acceptable C compiler found in \$PATH
3570 See \`config.log' for more details." "$LINENO" 5; }
3572 # Provide some information about the compiler.
3573 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3574 set X $ac_compile
3575 ac_compiler=$2
3576 for ac_option in --version -v -V -qversion; do
3577 { { ac_try="$ac_compiler $ac_option >&5"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3585 ac_status=$?
3586 if test -s conftest.err; then
3587 sed '10a\
3588 ... rest of stderr output deleted ...
3589 10q' conftest.err >conftest.er1
3590 cat conftest.er1 >&5
3592 rm -f conftest.er1 conftest.err
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }
3595 done
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3598 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3599 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3606 main ()
3608 #ifndef __GNUC__
3609 choke me
3610 #endif
3613 return 0;
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617 ac_compiler_gnu=yes
3618 else
3619 ac_compiler_gnu=no
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3627 if test $ac_compiler_gnu = yes; then
3628 GCC=yes
3629 else
3630 GCC=
3632 ac_test_CFLAGS=${CFLAGS+set}
3633 ac_save_CFLAGS=$CFLAGS
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3636 if test "${ac_cv_prog_cc_g+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 ac_save_c_werror_flag=$ac_c_werror_flag
3640 ac_c_werror_flag=yes
3641 ac_cv_prog_cc_g=no
3642 CFLAGS="-g"
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3647 main ()
3651 return 0;
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_prog_cc_g=yes
3656 else
3657 CFLAGS=""
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3662 main ()
3666 return 0;
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3671 else
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3673 CFLAGS="-g"
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3678 main ()
3682 return 0;
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_prog_cc_g=yes
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3696 $as_echo "$ac_cv_prog_cc_g" >&6; }
3697 if test "$ac_test_CFLAGS" = set; then
3698 CFLAGS=$ac_save_CFLAGS
3699 elif test $ac_cv_prog_cc_g = yes; then
3700 if test "$GCC" = yes; then
3701 CFLAGS="-g -O2"
3702 else
3703 CFLAGS="-g"
3705 else
3706 if test "$GCC" = yes; then
3707 CFLAGS="-O2"
3708 else
3709 CFLAGS=
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3713 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3714 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 ac_cv_prog_cc_c89=no
3718 ac_save_CC=$CC
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #include <stdarg.h>
3722 #include <stdio.h>
3723 #include <sys/types.h>
3724 #include <sys/stat.h>
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3729 char **p;
3730 int i;
3732 return p[i];
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3736 char *s;
3737 va_list v;
3738 va_start (v,p);
3739 s = g (p, va_arg (v,int));
3740 va_end (v);
3741 return s;
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std. */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3754 inside strings and character constants. */
3755 #define FOO(x) 'x'
3756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758 int test (int i, double x);
3759 struct s1 {int (*f) (int a);};
3760 struct s2 {int (*f) (double a);};
3761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 int argc;
3763 char **argv;
3765 main ()
3767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3769 return 0;
3771 _ACEOF
3772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 CC="$ac_save_CC $ac_arg"
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_c89=$ac_arg
3779 rm -f core conftest.err conftest.$ac_objext
3780 test "x$ac_cv_prog_cc_c89" != "xno" && break
3781 done
3782 rm -f conftest.$ac_ext
3783 CC=$ac_save_CC
3786 # AC_CACHE_VAL
3787 case "x$ac_cv_prog_cc_c89" in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3790 $as_echo "none needed" >&6; } ;;
3791 xno)
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3793 $as_echo "unsupported" >&6; } ;;
3795 CC="$CC $ac_cv_prog_cc_c89"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3798 esac
3799 if test "x$ac_cv_prog_cc_c89" != xno; then :
3803 ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 case $ac_cv_prog_cc_stdc in #(
3810 no) :
3811 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3812 *) :
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3815 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 ac_cv_prog_cc_c99=no
3819 ac_save_CC=$CC
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <stdarg.h>
3823 #include <stdbool.h>
3824 #include <stdlib.h>
3825 #include <wchar.h>
3826 #include <stdio.h>
3828 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3829 #define debug(...) fprintf (stderr, __VA_ARGS__)
3830 #define showlist(...) puts (#__VA_ARGS__)
3831 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3832 static void
3833 test_varargs_macros (void)
3835 int x = 1234;
3836 int y = 5678;
3837 debug ("Flag");
3838 debug ("X = %d\n", x);
3839 showlist (The first, second, and third items.);
3840 report (x>y, "x is %d but y is %d", x, y);
3843 // Check long long types.
3844 #define BIG64 18446744073709551615ull
3845 #define BIG32 4294967295ul
3846 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3847 #if !BIG_OK
3848 your preprocessor is broken;
3849 #endif
3850 #if BIG_OK
3851 #else
3852 your preprocessor is broken;
3853 #endif
3854 static long long int bignum = -9223372036854775807LL;
3855 static unsigned long long int ubignum = BIG64;
3857 struct incomplete_array
3859 int datasize;
3860 double data[];
3863 struct named_init {
3864 int number;
3865 const wchar_t *name;
3866 double average;
3869 typedef const char *ccp;
3871 static inline int
3872 test_restrict (ccp restrict text)
3874 // See if C++-style comments work.
3875 // Iterate through items via the restricted pointer.
3876 // Also check for declarations in for loops.
3877 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3878 continue;
3879 return 0;
3882 // Check varargs and va_copy.
3883 static void
3884 test_varargs (const char *format, ...)
3886 va_list args;
3887 va_start (args, format);
3888 va_list args_copy;
3889 va_copy (args_copy, args);
3891 const char *str;
3892 int number;
3893 float fnumber;
3895 while (*format)
3897 switch (*format++)
3899 case 's': // string
3900 str = va_arg (args_copy, const char *);
3901 break;
3902 case 'd': // int
3903 number = va_arg (args_copy, int);
3904 break;
3905 case 'f': // float
3906 fnumber = va_arg (args_copy, double);
3907 break;
3908 default:
3909 break;
3912 va_end (args_copy);
3913 va_end (args);
3917 main ()
3920 // Check bool.
3921 _Bool success = false;
3923 // Check restrict.
3924 if (test_restrict ("String literal") == 0)
3925 success = true;
3926 char *restrict newvar = "Another string";
3928 // Check varargs.
3929 test_varargs ("s, d' f .", "string", 65, 34.234);
3930 test_varargs_macros ();
3932 // Check flexible array members.
3933 struct incomplete_array *ia =
3934 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3935 ia->datasize = 10;
3936 for (int i = 0; i < ia->datasize; ++i)
3937 ia->data[i] = i * 1.234;
3939 // Check named initializers.
3940 struct named_init ni = {
3941 .number = 34,
3942 .name = L"Test wide string",
3943 .average = 543.34343,
3946 ni.number = 58;
3948 int dynamic_array[ni.number];
3949 dynamic_array[ni.number - 1] = 543;
3951 // work around unused variable warnings
3952 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3953 || dynamic_array[ni.number - 1] != 543);
3956 return 0;
3958 _ACEOF
3959 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3961 CC="$ac_save_CC $ac_arg"
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_c99=$ac_arg
3965 rm -f core conftest.err conftest.$ac_objext
3966 test "x$ac_cv_prog_cc_c99" != "xno" && break
3967 done
3968 rm -f conftest.$ac_ext
3969 CC=$ac_save_CC
3972 # AC_CACHE_VAL
3973 case "x$ac_cv_prog_cc_c99" in
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3976 $as_echo "none needed" >&6; } ;;
3977 xno)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3979 $as_echo "unsupported" >&6; } ;;
3981 CC="$CC $ac_cv_prog_cc_c99"
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3983 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3984 esac
3985 if test "x$ac_cv_prog_cc_c99" != xno; then :
3986 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 ac_cv_prog_cc_c89=no
3994 ac_save_CC=$CC
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <stdarg.h>
3998 #include <stdio.h>
3999 #include <sys/types.h>
4000 #include <sys/stat.h>
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4005 char **p;
4006 int i;
4008 return p[i];
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4012 char *s;
4013 va_list v;
4014 va_start (v,p);
4015 s = g (p, va_arg (v,int));
4016 va_end (v);
4017 return s;
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4031 #define FOO(x) 'x'
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 int argc;
4039 char **argv;
4041 main ()
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4045 return 0;
4047 _ACEOF
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 CC="$ac_save_CC $ac_arg"
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_prog_cc_c89=$ac_arg
4055 rm -f core conftest.err conftest.$ac_objext
4056 test "x$ac_cv_prog_cc_c89" != "xno" && break
4057 done
4058 rm -f conftest.$ac_ext
4059 CC=$ac_save_CC
4062 # AC_CACHE_VAL
4063 case "x$ac_cv_prog_cc_c89" in
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066 $as_echo "none needed" >&6; } ;;
4067 xno)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069 $as_echo "unsupported" >&6; } ;;
4071 CC="$CC $ac_cv_prog_cc_c89"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074 esac
4075 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4077 else
4078 ac_cv_prog_cc_stdc=no
4083 esac
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4085 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4086 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4090 case $ac_cv_prog_cc_stdc in #(
4091 no) :
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 $as_echo "unsupported" >&6; } ;; #(
4094 '') :
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096 $as_echo "none needed" >&6; } ;; #(
4097 *) :
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4099 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4100 esac
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4109 # On Suns, sometimes $CPP names a directory.
4110 if test -n "$CPP" && test -d "$CPP"; then
4111 CPP=
4113 if test -z "$CPP"; then
4114 if test "${ac_cv_prog_CPP+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 # Double quotes because CPP needs to be expanded
4118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120 ac_preproc_ok=false
4121 for ac_c_preproc_warn_flag in '' yes
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #ifdef __STDC__
4132 # include <limits.h>
4133 #else
4134 # include <assert.h>
4135 #endif
4136 Syntax error
4137 _ACEOF
4138 if ac_fn_c_try_cpp "$LINENO"; then :
4140 else
4141 # Broken: fails on valid input.
4142 continue
4144 rm -f conftest.err conftest.$ac_ext
4146 # OK, works on sane cases. Now check whether nonexistent headers
4147 # can be detected and how.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <ac_nonexistent.h>
4151 _ACEOF
4152 if ac_fn_c_try_cpp "$LINENO"; then :
4153 # Broken: success on invalid input.
4154 continue
4155 else
4156 # Passes both tests.
4157 ac_preproc_ok=:
4158 break
4160 rm -f conftest.err conftest.$ac_ext
4162 done
4163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164 rm -f conftest.err conftest.$ac_ext
4165 if $ac_preproc_ok; then :
4166 break
4169 done
4170 ac_cv_prog_CPP=$CPP
4173 CPP=$ac_cv_prog_CPP
4174 else
4175 ac_cv_prog_CPP=$CPP
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4178 $as_echo "$CPP" >&6; }
4179 ac_preproc_ok=false
4180 for ac_c_preproc_warn_flag in '' yes
4182 # Use a header file that comes with gcc, so configuring glibc
4183 # with a fresh cross-compiler works.
4184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 # <limits.h> exists even on freestanding compilers.
4186 # On the NeXT, cc -E runs the code through the compiler's parser,
4187 # not just through cpp. "Syntax error" is here to catch this case.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #ifdef __STDC__
4191 # include <limits.h>
4192 #else
4193 # include <assert.h>
4194 #endif
4195 Syntax error
4196 _ACEOF
4197 if ac_fn_c_try_cpp "$LINENO"; then :
4199 else
4200 # Broken: fails on valid input.
4201 continue
4203 rm -f conftest.err conftest.$ac_ext
4205 # OK, works on sane cases. Now check whether nonexistent headers
4206 # can be detected and how.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ac_nonexistent.h>
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4212 # Broken: success on invalid input.
4213 continue
4214 else
4215 # Passes both tests.
4216 ac_preproc_ok=:
4217 break
4219 rm -f conftest.err conftest.$ac_ext
4221 done
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then :
4226 else
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4230 See \`config.log' for more details." "$LINENO" 5; }
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 # Check for a compatible awk
4241 for ac_prog in gawk nawk
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy $ac_prog; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_AWK+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$AWK"; then
4251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_AWK="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 AWK=$ac_cv_prog_AWK
4271 if test -n "$AWK"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4273 $as_echo "$AWK" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$AWK" && break
4281 done
4283 if test "$AWK" = ""; then
4284 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4286 # Extract the first word of "mmake", so it can be a program name with args.
4287 set dummy mmake; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_MMAKE+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$MMAKE"; then
4294 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_MMAKE="mmake "
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 MMAKE=$ac_cv_prog_MMAKE
4314 if test -n "$MMAKE"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4316 $as_echo "$MMAKE" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4324 # Perform some default variable assignments. Note all of these will be
4325 # Regenerated from the script, so there is no need to cache them.
4327 aros_host_cpp="$CPP"
4328 aros_host_cc="$CC"
4329 aros_host_cxx="$CXX"
4330 if test "$GCC" = "yes"; then
4331 aros_gcc_ld=`$CC -print-prog-name=ld`
4332 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4333 set dummy `basename $aros_gcc_ld`; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 case $aros_host_ld in
4340 [\\/]* | ?:[\\/]*)
4341 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in `dirname $aros_gcc_ld`
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4360 esac
4362 aros_host_ld=$ac_cv_path_aros_host_ld
4363 if test -n "$aros_host_ld"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4365 $as_echo "$aros_host_ld" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4373 if test "$aros_host_ld" = ""; then
4374 # Extract the first word of "ld", so it can be a program name with args.
4375 set dummy ld; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 case $aros_host_ld in
4382 [\\/]* | ?:[\\/]*)
4383 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4397 done
4398 done
4399 IFS=$as_save_IFS
4402 esac
4404 aros_host_ld=$ac_cv_path_aros_host_ld
4405 if test -n "$aros_host_ld"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4407 $as_echo "$aros_host_ld" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4415 if test "$aros_host_ld" = ""; then
4416 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4418 aros_host_make="make"
4419 aros_host_cflags=$CFLAGS
4420 aros_host_cxxflags=$CXXFLAGS
4421 aros_host_ldflags=$LDFLAGS
4422 aros_host_debug="-g -O0"
4423 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4424 aros_host_mkargs="--no-print-directory"
4425 aros_host_exe_suffix="$EXEEXT"
4426 aros_host_lib_suffix=""
4428 # Ignore all compliance, AROS ROMs = 0
4429 # KickStart v1.0 = 30
4430 # KickStart v1.3 = 34
4431 # KickStart v2.0 = 37
4432 # KickStart v3.0 = 39
4433 # KickStart v3.1 = 40
4434 # AmigaOS v3.5 = 44
4435 aros_amigaos_compliance=0
4437 for ac_prog in aclocal aclocal19 aclocal-1.9
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$aros_host_aclocal"; then
4447 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_aros_host_aclocal="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4467 if test -n "$aros_host_aclocal"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4469 $as_echo "$aros_host_aclocal" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$aros_host_aclocal" && break
4477 done
4479 for ac_prog in autoconf autoconf259 autoconf253
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy $ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$aros_host_autoconf"; then
4489 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_aros_host_autoconf="$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4509 if test -n "$aros_host_autoconf"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4511 $as_echo "$aros_host_autoconf" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$aros_host_autoconf" && break
4519 done
4521 for ac_prog in autoheader autoheader259 autoheader253
4523 # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy $ac_prog; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$aros_host_autoheader"; then
4531 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_aros_host_autoheader="$ac_prog"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4551 if test -n "$aros_host_autoheader"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4553 $as_echo "$aros_host_autoheader" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4560 test -n "$aros_host_autoheader" && break
4561 done
4563 for ac_prog in automake automake19 automake-1.9
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$aros_host_automake"; then
4573 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_aros_host_automake="$ac_prog"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4588 IFS=$as_save_IFS
4592 aros_host_automake=$ac_cv_prog_aros_host_automake
4593 if test -n "$aros_host_automake"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4595 $as_echo "$aros_host_automake" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4602 test -n "$aros_host_automake" && break
4603 done
4606 if test "$aros_host_aclocal" = ""; then
4607 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4609 if test "$aros_host_automake" = ""; then
4610 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4613 case "$aros_host_cc" in
4614 *gcc*)
4615 aros_host_cc_pipe="-pipe"
4617 icc)
4618 aros_host_cc_pipe=""
4621 aros_host_cc_pipe=""
4623 esac
4625 aros_kernel_cc_includes=""
4626 aros_target_cc_includes=""
4627 host_cc_elf=yes
4629 # ----------------------------------------------------------------------------------------
4630 # Host-specific defaults
4632 # This is the main host configuration section. It is where the host
4633 # can change the values of any variables it needs to change. We do
4634 # not look at anything that compiles to the target yet, we'll get
4635 # to that later.
4637 case "$host_os" in
4638 aros*)
4639 aros_host_arch="aros"
4640 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4641 case "$host_cpu" in
4642 *i?86*)
4643 aros_host_cpu="i386"
4645 *x86_64*)
4646 aros_host_cpu="x86_64"
4648 *powerpc*)
4649 aros_host_cpu="ppc"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4653 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4654 aros_host_cpu="$host_cpu"
4656 esac
4659 linux*)
4660 aros_host_arch="linux"
4661 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4662 android_build_os="linux-x86"
4663 android_tool="android"
4664 default_android_sdk="/opt/android-sdk-linux_x86"
4665 case "$host_cpu" in
4666 *i?86*)
4667 aros_host_cpu="i386"
4669 *x86_64*)
4670 aros_host_cpu="x86_64"
4672 *m68k*)
4673 aros_host_cpu="m68k"
4675 *powerpc*)
4676 aros_host_cpu="ppc"
4678 *arm*)
4679 aros_host_cpu="arm"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4683 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4684 aros_host_cpu="$host_cpu"
4686 esac
4689 freebsd*)
4690 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4691 aros_host_make="gmake"
4692 aros_host_arch="freebsd"
4693 aros_host_cpu="i386"
4695 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4697 case $host_os in
4698 freebsd[234]*)
4699 aros_object_format="elf_i386"
4703 aros_object_format="elf_i386_fbsd"
4705 esac
4709 darwin*)
4710 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4711 aros_host_arch="darwin"
4712 host_cc_elf=no
4713 android_build_os="darwin-x86"
4714 android_tool="android"
4715 default_android_sdk="/android-sdk-mac_x86"
4716 case "$host_cpu" in
4717 *i?86*)
4718 aros_host_cpu="i386"
4720 *x86_64*)
4721 aros_host_cpu="x86_64"
4723 *powerpc*)
4724 aros_host_cpu="ppc"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4728 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4729 aros_host_cpu="$host_cpu"
4731 esac
4733 aros_host_ldflags="$aros_host_ldflags -liconv"
4737 dragonfly*)
4738 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4739 aros_host_make="gmake"
4740 aros_host_arch="dragonfly"
4741 case $host_cpu in
4742 *i?86*)
4743 aros_host_cpu="i386"
4745 *amd64*)
4746 aros_host_cpu="x86_64"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4750 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4751 aros_host_cpu="$host_cpu"
4753 esac
4756 netbsd*)
4757 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4758 aros_host_make="gmake"
4759 aros_host_arch="netbsd"
4760 case "$host_cpu" in
4761 *i?86*)
4762 aros_host_cpu="i386"
4764 *m68k*)
4765 aros_host_cpu="m68k"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4769 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4770 aros_host_cpu="$host_cpu"
4772 esac
4773 aros_host_lib_suffix=".0.0"
4776 openbsd*)
4777 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4778 aros_host_make="gmake"
4779 aros_host_arch="openbsd"
4780 case "$host_cpu" in
4781 *i?86*)
4782 aros_host_cpu="i386"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4786 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4787 aros_host_cpu="$host_cpu"
4789 esac
4792 solaris*)
4793 aros_host_arch="solaris"
4794 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4795 case "$host_cpu" in
4796 *i?86*)
4797 aros_host_cpu="i386"
4799 *sparc*)
4800 aros_host_cpu="sparc"
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 morphos*)
4811 aros_host_arch="morphos"
4812 aros_host_cpu="ppc"
4813 host_cc_elf=no
4816 amiga*)
4817 aros_host_arch="amiga"
4818 host_cc_elf=no
4819 SORT="/gg/bin/sort"
4820 TEST="/gg/bin/test"
4821 UNIQ="/gg/bin/uniq"
4822 FOR="for"
4823 TOUCH="/gg/bin/touch"
4824 case "$host_cpu" in
4825 *m68k*)
4826 aros_host_cpu="m68k"
4828 *powerpc*)
4829 aros_host_cpu="ppc"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4833 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4834 aros_host_cpu="$host_cpu"
4836 esac
4839 cygwin*)
4840 aros_host_arch="cygwin"
4841 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4842 host_cc_elf=no
4843 android_build_os="windows"
4844 android_tool="android.bat"
4845 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4847 case "$host_cpu" in
4848 *i?86*)
4849 aros_host_cpu="i386"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4853 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4854 aros_host_cpu="$host_cpu"
4856 esac
4859 mingw32*)
4860 aros_host_arch="mingw32"
4861 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4862 host_cc_elf=no
4863 android_build_os="windows"
4864 android_tool="android.bat"
4865 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4867 case "$host_cpu" in
4868 *i?86*)
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4871 $as_echo_n "checking for Windows native gcc target... " >&6; }
4872 host_cpu=`gcc -dumpmachine`
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4874 $as_echo "$host_cpu" >&6; }
4877 esac
4879 case "$host_cpu" in
4880 *i?86*)
4881 aros_host_cpu="i386"
4884 mingw32*)
4885 aros_host_cpu="i386"
4888 *x86_64*)
4889 aros_host_cpu="x86_64"
4890 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4895 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4896 aros_host_cpu="$host_cpu"
4898 esac
4901 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4903 esac
4905 # Extract the first word of "ar", so it can be a program name with args.
4906 set dummy ar; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$aros_host_ar"; then
4913 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_aros_host_ar="ar cr"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 aros_host_ar=$ac_cv_prog_aros_host_ar
4933 if test -n "$aros_host_ar"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4935 $as_echo "$aros_host_ar" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 if test "$aros_host_ar" = ""; then
4943 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4945 # Extract the first word of "ranlib", so it can be a program name with args.
4946 set dummy ranlib; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$aros_host_ranlib"; then
4953 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_aros_host_ranlib="ranlib "
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4973 if test -n "$aros_host_ranlib"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4975 $as_echo "$aros_host_ranlib" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 if test "$aros_host_ranlib" = ""; then
4983 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4985 # Extract the first word of "strip", so it can be a program name with args.
4986 set dummy strip; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$aros_host_strip"; then
4993 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_aros_host_strip="strip "
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 aros_host_strip=$ac_cv_prog_aros_host_strip
5013 if test -n "$aros_host_strip"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5015 $as_echo "$aros_host_strip" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5022 if test "$aros_host_strip" = ""; then
5023 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5026 # Extract the first word of "rm", so it can be a program name with args.
5027 set dummy rm; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if test "${ac_cv_prog_RM+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$RM"; then
5034 ac_cv_prog_RM="$RM" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_prog_RM="rm -rf"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5047 done
5048 done
5049 IFS=$as_save_IFS
5053 RM=$ac_cv_prog_RM
5054 if test -n "$RM"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5056 $as_echo "$RM" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 if test "$RM" = ""; then
5064 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5066 # Extract the first word of "cp", so it can be a program name with args.
5067 set dummy cp; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_CP+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$CP"; then
5074 ac_cv_prog_CP="$CP" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_CP="cp "
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5093 CP=$ac_cv_prog_CP
5094 if test -n "$CP"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5096 $as_echo "$CP" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 if test "$CP" = ""; then
5104 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5106 # Extract the first word of "mv", so it can be a program name with args.
5107 set dummy mv; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_MV+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$MV"; then
5114 ac_cv_prog_MV="$MV" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_MV="mv "
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5133 MV=$ac_cv_prog_MV
5134 if test -n "$MV"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5136 $as_echo "$MV" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 if test "$MV" = ""; then
5144 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5146 # Extract the first word of "echo", so it can be a program name with args.
5147 set dummy echo; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_ECHO+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$ECHO"; then
5154 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_ECHO="echo "
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 ECHO=$ac_cv_prog_ECHO
5174 if test -n "$ECHO"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5176 $as_echo "$ECHO" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 if test "$ECHO" = ""; then
5184 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "mkdir", so it can be a program name with args.
5187 set dummy mkdir; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if test "${ac_cv_prog_MKDIR+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$MKDIR"; then
5194 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_MKDIR="mkdir -p"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 MKDIR=$ac_cv_prog_MKDIR
5214 if test -n "$MKDIR"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5216 $as_echo "$MKDIR" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 if test "$MKDIR" = ""; then
5224 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5226 # Extract the first word of "touch", so it can be a program name with args.
5227 set dummy touch; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if test "${ac_cv_prog_TOUCH+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$TOUCH"; then
5234 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_TOUCH="touch "
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 TOUCH=$ac_cv_prog_TOUCH
5254 if test -n "$TOUCH"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5256 $as_echo "$TOUCH" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 if test "$TOUCH" = ""; then
5264 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5266 # Extract the first word of "sort", so it can be a program name with args.
5267 set dummy sort; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_prog_SORT+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$SORT"; then
5274 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_SORT="sort "
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 SORT=$ac_cv_prog_SORT
5294 if test -n "$SORT"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5296 $as_echo "$SORT" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 if test "$SORT" = ""; then
5304 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5306 # Extract the first word of "uniq", so it can be a program name with args.
5307 set dummy uniq; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_prog_UNIQ+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$UNIQ"; then
5314 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323 ac_cv_prog_UNIQ="uniq "
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5327 done
5328 done
5329 IFS=$as_save_IFS
5333 UNIQ=$ac_cv_prog_UNIQ
5334 if test -n "$UNIQ"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5336 $as_echo "$UNIQ" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 if test "$UNIQ" = ""; then
5344 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5346 # Extract the first word of "true", so it can be a program name with args.
5347 set dummy true; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_NOP+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$NOP"; then
5354 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_NOP="true "
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 NOP=$ac_cv_prog_NOP
5374 if test -n "$NOP"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5376 $as_echo "$NOP" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 if test "$NOP" = ""; then
5384 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5386 # Extract the first word of "cat", so it can be a program name with args.
5387 set dummy cat; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_CAT+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$CAT"; then
5394 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_CAT="cat "
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 CAT=$ac_cv_prog_CAT
5414 if test -n "$CAT"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5416 $as_echo "$CAT" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 if test "$CAT" = ""; then
5424 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5426 # Extract the first word of "bison", so it can be a program name with args.
5427 set dummy bison; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_BISON+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$BISON"; then
5434 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_BISON="bison "
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 BISON=$ac_cv_prog_BISON
5454 if test -n "$BISON"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5456 $as_echo "$BISON" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 if test "$BISON" = ""; then
5464 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5466 # Extract the first word of "flex", so it can be a program name with args.
5467 set dummy flex; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if test "${ac_cv_prog_FLEX+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$FLEX"; then
5474 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483 ac_cv_prog_FLEX="flex "
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5487 done
5488 done
5489 IFS=$as_save_IFS
5493 FLEX=$ac_cv_prog_FLEX
5494 if test -n "$FLEX"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5496 $as_echo "$FLEX" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5503 if test "$FLEX" = ""; then
5504 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5506 # Extract the first word of "pngtopnm", so it can be a program name with args.
5507 set dummy pngtopnm; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$PNGTOPNM"; then
5514 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_PNGTOPNM="pngtopnm "
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5529 IFS=$as_save_IFS
5533 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5534 if test -n "$PNGTOPNM"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5536 $as_echo "$PNGTOPNM" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5543 if test "$PNGTOPNM" = ""; then
5544 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5546 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5547 set dummy ppmtoilbm; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$PPMTOILBM"; then
5554 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5574 if test -n "$PPMTOILBM"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5576 $as_echo "$PPMTOILBM" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 if test "$PPMTOILBM" = ""; then
5584 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5586 # Extract the first word of "sed", so it can be a program name with args.
5587 set dummy sed; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_SED+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$SED"; then
5594 ac_cv_prog_SED="$SED" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_SED="sed "
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 SED=$ac_cv_prog_SED
5614 if test -n "$SED"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5616 $as_echo "$SED" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 if test "$SED" = ""; then
5624 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5626 # Extract the first word of "chmod", so it can be a program name with args.
5627 set dummy chmod; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$CHMOD"; then
5634 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_CHMOD="chmod "
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5647 done
5648 done
5649 IFS=$as_save_IFS
5653 CHMOD=$ac_cv_prog_CHMOD
5654 if test -n "$CHMOD"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5656 $as_echo "$CHMOD" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5663 if test "$CHMOD" = ""; then
5664 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5666 # Extract the first word of "patch", so it can be a program name with args.
5667 set dummy patch; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if test "${ac_cv_prog_PATCH+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$PATCH"; then
5674 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_prog_PATCH="patch "
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5693 PATCH=$ac_cv_prog_PATCH
5694 if test -n "$PATCH"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5696 $as_echo "$PATCH" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5703 if test "$PATCH" = ""; then
5704 as_fn_error "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5713 if test -n "$PYTHON"; then
5714 # If the user set $PYTHON, use it and don't search something else.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5716 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5717 prog="import sys
5718 # split strings by '.' and convert to numeric. Append some zeros
5719 # because we need at least 4 digits for the hex conversion.
5720 # map returns an iterator in Python 3.0 and a list in 2.x
5721 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5722 minverhex = 0
5723 # xrange is not present in Python 3.0 and range returns an iterator
5724 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5725 sys.exit(sys.hexversion < minverhex)"
5726 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5727 ($PYTHON -c "$prog") >&5 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; then :
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5732 $as_echo "yes" >&6; }
5733 else
5734 as_fn_error "too old" "$LINENO" 5
5736 am_display_PYTHON=$PYTHON
5737 else
5738 # Otherwise, try each interpreter until we find one that satisfies
5739 # VERSION.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5741 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5742 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5746 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5747 test "$am_cv_pathless_PYTHON" = none && break
5748 prog="import sys
5749 # split strings by '.' and convert to numeric. Append some zeros
5750 # because we need at least 4 digits for the hex conversion.
5751 # map returns an iterator in Python 3.0 and a list in 2.x
5752 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5753 minverhex = 0
5754 # xrange is not present in Python 3.0 and range returns an iterator
5755 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5756 sys.exit(sys.hexversion < minverhex)"
5757 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5758 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; then :
5762 break
5764 done
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5767 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5768 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5769 if test "$am_cv_pathless_PYTHON" = none; then
5770 PYTHON=:
5771 else
5772 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5773 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_path_PYTHON+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 case $PYTHON in
5780 [\\/]* | ?:[\\/]*)
5781 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5795 done
5796 done
5797 IFS=$as_save_IFS
5800 esac
5802 PYTHON=$ac_cv_path_PYTHON
5803 if test -n "$PYTHON"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5805 $as_echo "$PYTHON" >&6; }
5806 else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5813 am_display_PYTHON=$am_cv_pathless_PYTHON
5817 if test "$PYTHON" = :; then
5818 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5819 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5823 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5824 if test "${am_cv_python_version+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5830 $as_echo "$am_cv_python_version" >&6; }
5831 PYTHON_VERSION=$am_cv_python_version
5835 PYTHON_PREFIX='${prefix}'
5837 PYTHON_EXEC_PREFIX='${exec_prefix}'
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5842 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5843 if test "${am_cv_python_platform+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5849 $as_echo "$am_cv_python_platform" >&6; }
5850 PYTHON_PLATFORM=$am_cv_python_platform
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5856 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5857 if test "${am_cv_python_pythondir+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test "x$prefix" = xNONE
5861 then
5862 am_py_prefix=$ac_default_prefix
5863 else
5864 am_py_prefix=$prefix
5866 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5867 case $am_cv_python_pythondir in
5868 $am_py_prefix*)
5869 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5870 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5873 case $am_py_prefix in
5874 /usr|/System*) ;;
5876 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5878 esac
5880 esac
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5884 $as_echo "$am_cv_python_pythondir" >&6; }
5885 pythondir=$am_cv_python_pythondir
5889 pkgpythondir=\${pythondir}/$PACKAGE
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5893 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5894 if test "${am_cv_python_pyexecdir+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test "x$exec_prefix" = xNONE
5898 then
5899 am_py_exec_prefix=$am_py_prefix
5900 else
5901 am_py_exec_prefix=$exec_prefix
5903 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5904 case $am_cv_python_pyexecdir in
5905 $am_py_exec_prefix*)
5906 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5907 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5910 case $am_py_exec_prefix in
5911 /usr|/System*) ;;
5913 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5915 esac
5917 esac
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5921 $as_echo "$am_cv_python_pyexecdir" >&6; }
5922 pyexecdir=$am_cv_python_pyexecdir
5926 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5936 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5937 if test "${ac_cv_lib_png_png_read_png+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 ac_check_lib_save_LIBS=$LIBS
5941 LIBS="-lpng $LIBS"
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5945 /* Override any GCC internal prototype to avoid an error.
5946 Use char because int might match the return type of a GCC
5947 builtin and then its argument prototype would still apply. */
5948 #ifdef __cplusplus
5949 extern "C"
5950 #endif
5951 char png_read_png ();
5953 main ()
5955 return png_read_png ();
5957 return 0;
5959 _ACEOF
5960 if ac_fn_c_try_link "$LINENO"; then :
5961 ac_cv_lib_png_png_read_png=yes
5962 else
5963 ac_cv_lib_png_png_read_png=no
5965 rm -f core conftest.err conftest.$ac_objext \
5966 conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5970 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5971 if test "x$ac_cv_lib_png_png_read_png" = x""yes; then :
5972 cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBPNG 1
5974 _ACEOF
5976 LIBS="-lpng $LIBS"
5980 if test "$ac_cv_lib_png_png_read_png" = ""; then
5981 as_fn_error "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
5984 FOR=for
5986 IF=if
5988 TEST=test
5990 CMP=cmp
5994 # Check for some includes for the X11 HIDD and the kernel
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5997 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5998 if test "${ac_cv_path_GREP+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -z "$GREP"; then
6002 ac_path_GREP_found=false
6003 # Loop through the user's path and test for each of PROGNAME-LIST
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_prog in grep ggrep; do
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6012 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6013 # Check for GNU ac_path_GREP and select it if it is found.
6014 # Check for GNU $ac_path_GREP
6015 case `"$ac_path_GREP" --version 2>&1` in
6016 *GNU*)
6017 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6019 ac_count=0
6020 $as_echo_n 0123456789 >"conftest.in"
6021 while :
6023 cat "conftest.in" "conftest.in" >"conftest.tmp"
6024 mv "conftest.tmp" "conftest.in"
6025 cp "conftest.in" "conftest.nl"
6026 $as_echo 'GREP' >> "conftest.nl"
6027 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6029 as_fn_arith $ac_count + 1 && ac_count=$as_val
6030 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6031 # Best one so far, save it but keep looking for a better one
6032 ac_cv_path_GREP="$ac_path_GREP"
6033 ac_path_GREP_max=$ac_count
6035 # 10*(2^10) chars as input seems more than enough
6036 test $ac_count -gt 10 && break
6037 done
6038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6039 esac
6041 $ac_path_GREP_found && break 3
6042 done
6043 done
6044 done
6045 IFS=$as_save_IFS
6046 if test -z "$ac_cv_path_GREP"; then
6047 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6049 else
6050 ac_cv_path_GREP=$GREP
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6055 $as_echo "$ac_cv_path_GREP" >&6; }
6056 GREP="$ac_cv_path_GREP"
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6060 $as_echo_n "checking for egrep... " >&6; }
6061 if test "${ac_cv_path_EGREP+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6065 then ac_cv_path_EGREP="$GREP -E"
6066 else
6067 if test -z "$EGREP"; then
6068 ac_path_EGREP_found=false
6069 # Loop through the user's path and test for each of PROGNAME-LIST
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_prog in egrep; do
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6078 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6079 # Check for GNU ac_path_EGREP and select it if it is found.
6080 # Check for GNU $ac_path_EGREP
6081 case `"$ac_path_EGREP" --version 2>&1` in
6082 *GNU*)
6083 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6085 ac_count=0
6086 $as_echo_n 0123456789 >"conftest.in"
6087 while :
6089 cat "conftest.in" "conftest.in" >"conftest.tmp"
6090 mv "conftest.tmp" "conftest.in"
6091 cp "conftest.in" "conftest.nl"
6092 $as_echo 'EGREP' >> "conftest.nl"
6093 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6095 as_fn_arith $ac_count + 1 && ac_count=$as_val
6096 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6097 # Best one so far, save it but keep looking for a better one
6098 ac_cv_path_EGREP="$ac_path_EGREP"
6099 ac_path_EGREP_max=$ac_count
6101 # 10*(2^10) chars as input seems more than enough
6102 test $ac_count -gt 10 && break
6103 done
6104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6105 esac
6107 $ac_path_EGREP_found && break 3
6108 done
6109 done
6110 done
6111 IFS=$as_save_IFS
6112 if test -z "$ac_cv_path_EGREP"; then
6113 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6115 else
6116 ac_cv_path_EGREP=$EGREP
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6122 $as_echo "$ac_cv_path_EGREP" >&6; }
6123 EGREP="$ac_cv_path_EGREP"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6127 $as_echo_n "checking for ANSI C header files... " >&6; }
6128 if test "${ac_cv_header_stdc+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <stdlib.h>
6134 #include <stdarg.h>
6135 #include <string.h>
6136 #include <float.h>
6139 main ()
6143 return 0;
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 ac_cv_header_stdc=yes
6148 else
6149 ac_cv_header_stdc=no
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 if test $ac_cv_header_stdc = yes; then
6154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <string.h>
6159 _ACEOF
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161 $EGREP "memchr" >/dev/null 2>&1; then :
6163 else
6164 ac_cv_header_stdc=no
6166 rm -f conftest*
6170 if test $ac_cv_header_stdc = yes; then
6171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #include <stdlib.h>
6176 _ACEOF
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178 $EGREP "free" >/dev/null 2>&1; then :
6180 else
6181 ac_cv_header_stdc=no
6183 rm -f conftest*
6187 if test $ac_cv_header_stdc = yes; then
6188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6189 if test "$cross_compiling" = yes; then :
6191 else
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #include <ctype.h>
6195 #include <stdlib.h>
6196 #if ((' ' & 0x0FF) == 0x020)
6197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6199 #else
6200 # define ISLOWER(c) \
6201 (('a' <= (c) && (c) <= 'i') \
6202 || ('j' <= (c) && (c) <= 'r') \
6203 || ('s' <= (c) && (c) <= 'z'))
6204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6205 #endif
6207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6209 main ()
6211 int i;
6212 for (i = 0; i < 256; i++)
6213 if (XOR (islower (i), ISLOWER (i))
6214 || toupper (i) != TOUPPER (i))
6215 return 2;
6216 return 0;
6218 _ACEOF
6219 if ac_fn_c_try_run "$LINENO"; then :
6221 else
6222 ac_cv_header_stdc=no
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6225 conftest.$ac_objext conftest.beam conftest.$ac_ext
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6231 $as_echo "$ac_cv_header_stdc" >&6; }
6232 if test $ac_cv_header_stdc = yes; then
6234 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6239 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6240 inttypes.h stdint.h unistd.h
6241 do :
6242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6245 eval as_val=\$$as_ac_Header
6246 if test "x$as_val" = x""yes; then :
6247 cat >>confdefs.h <<_ACEOF
6248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249 _ACEOF
6253 done
6256 for ac_header in sys/ipc.h sys/shm.h \
6257 sys/mmap.h sys/mman.h sysexits.h \
6258 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6260 do :
6261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6262 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6263 eval as_val=\$$as_ac_Header
6264 if test "x$as_val" = x""yes; then :
6265 cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6271 done
6274 for ac_header in sys/mount.h
6275 do :
6276 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6278 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
6279 cat >>confdefs.h <<_ACEOF
6280 #define HAVE_SYS_MOUNT_H 1
6281 _ACEOF
6285 done
6288 ac_header_dirent=no
6289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6290 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6292 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <sys/types.h>
6299 #include <$ac_hdr>
6302 main ()
6304 if ((DIR *) 0)
6305 return 0;
6307 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311 eval "$as_ac_Header=yes"
6312 else
6313 eval "$as_ac_Header=no"
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 eval ac_res=\$$as_ac_Header
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6319 $as_echo "$ac_res" >&6; }
6320 eval as_val=\$$as_ac_Header
6321 if test "x$as_val" = x""yes; then :
6322 cat >>confdefs.h <<_ACEOF
6323 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6324 _ACEOF
6326 ac_header_dirent=$ac_hdr; break
6329 done
6330 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6331 if test $ac_header_dirent = dirent.h; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6333 $as_echo_n "checking for library containing opendir... " >&6; }
6334 if test "${ac_cv_search_opendir+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 ac_func_search_save_LIBS=$LIBS
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6341 /* Override any GCC internal prototype to avoid an error.
6342 Use char because int might match the return type of a GCC
6343 builtin and then its argument prototype would still apply. */
6344 #ifdef __cplusplus
6345 extern "C"
6346 #endif
6347 char opendir ();
6349 main ()
6351 return opendir ();
6353 return 0;
6355 _ACEOF
6356 for ac_lib in '' dir; do
6357 if test -z "$ac_lib"; then
6358 ac_res="none required"
6359 else
6360 ac_res=-l$ac_lib
6361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6363 if ac_fn_c_try_link "$LINENO"; then :
6364 ac_cv_search_opendir=$ac_res
6366 rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext
6368 if test "${ac_cv_search_opendir+set}" = set; then :
6369 break
6371 done
6372 if test "${ac_cv_search_opendir+set}" = set; then :
6374 else
6375 ac_cv_search_opendir=no
6377 rm conftest.$ac_ext
6378 LIBS=$ac_func_search_save_LIBS
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6381 $as_echo "$ac_cv_search_opendir" >&6; }
6382 ac_res=$ac_cv_search_opendir
6383 if test "$ac_res" != no; then :
6384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6388 else
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6390 $as_echo_n "checking for library containing opendir... " >&6; }
6391 if test "${ac_cv_search_opendir+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 ac_func_search_save_LIBS=$LIBS
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6398 /* Override any GCC internal prototype to avoid an error.
6399 Use char because int might match the return type of a GCC
6400 builtin and then its argument prototype would still apply. */
6401 #ifdef __cplusplus
6402 extern "C"
6403 #endif
6404 char opendir ();
6406 main ()
6408 return opendir ();
6410 return 0;
6412 _ACEOF
6413 for ac_lib in '' x; do
6414 if test -z "$ac_lib"; then
6415 ac_res="none required"
6416 else
6417 ac_res=-l$ac_lib
6418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6420 if ac_fn_c_try_link "$LINENO"; then :
6421 ac_cv_search_opendir=$ac_res
6423 rm -f core conftest.err conftest.$ac_objext \
6424 conftest$ac_exeext
6425 if test "${ac_cv_search_opendir+set}" = set; then :
6426 break
6428 done
6429 if test "${ac_cv_search_opendir+set}" = set; then :
6431 else
6432 ac_cv_search_opendir=no
6434 rm conftest.$ac_ext
6435 LIBS=$ac_func_search_save_LIBS
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6438 $as_echo "$ac_cv_search_opendir" >&6; }
6439 ac_res=$ac_cv_search_opendir
6440 if test "$ac_res" != no; then :
6441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6448 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6449 if test "${ac_cv_header_stat_broken+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/stat.h>
6457 #if defined S_ISBLK && defined S_IFDIR
6458 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6459 #endif
6461 #if defined S_ISBLK && defined S_IFCHR
6462 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6463 #endif
6465 #if defined S_ISLNK && defined S_IFREG
6466 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6467 #endif
6469 #if defined S_ISSOCK && defined S_IFREG
6470 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6471 #endif
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 ac_cv_header_stat_broken=no
6476 else
6477 ac_cv_header_stat_broken=yes
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6482 $as_echo "$ac_cv_header_stat_broken" >&6; }
6483 if test $ac_cv_header_stat_broken = yes; then
6485 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6490 $as_echo_n "checking for ANSI C header files... " >&6; }
6491 if test "${ac_cv_header_stdc+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #include <stdlib.h>
6497 #include <stdarg.h>
6498 #include <string.h>
6499 #include <float.h>
6502 main ()
6506 return 0;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"; then :
6510 ac_cv_header_stdc=yes
6511 else
6512 ac_cv_header_stdc=no
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 if test $ac_cv_header_stdc = yes; then
6517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <string.h>
6522 _ACEOF
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524 $EGREP "memchr" >/dev/null 2>&1; then :
6526 else
6527 ac_cv_header_stdc=no
6529 rm -f conftest*
6533 if test $ac_cv_header_stdc = yes; then
6534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #include <stdlib.h>
6539 _ACEOF
6540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6541 $EGREP "free" >/dev/null 2>&1; then :
6543 else
6544 ac_cv_header_stdc=no
6546 rm -f conftest*
6550 if test $ac_cv_header_stdc = yes; then
6551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6552 if test "$cross_compiling" = yes; then :
6554 else
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557 #include <ctype.h>
6558 #include <stdlib.h>
6559 #if ((' ' & 0x0FF) == 0x020)
6560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6562 #else
6563 # define ISLOWER(c) \
6564 (('a' <= (c) && (c) <= 'i') \
6565 || ('j' <= (c) && (c) <= 'r') \
6566 || ('s' <= (c) && (c) <= 'z'))
6567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6568 #endif
6570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6572 main ()
6574 int i;
6575 for (i = 0; i < 256; i++)
6576 if (XOR (islower (i), ISLOWER (i))
6577 || toupper (i) != TOUPPER (i))
6578 return 2;
6579 return 0;
6581 _ACEOF
6582 if ac_fn_c_try_run "$LINENO"; then :
6584 else
6585 ac_cv_header_stdc=no
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6588 conftest.$ac_objext conftest.beam conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6594 $as_echo "$ac_cv_header_stdc" >&6; }
6595 if test $ac_cv_header_stdc = yes; then
6597 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6602 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6603 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 #include <sys/types.h>
6609 #include <sys/wait.h>
6610 #ifndef WEXITSTATUS
6611 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6612 #endif
6613 #ifndef WIFEXITED
6614 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6615 #endif
6618 main ()
6620 int s;
6621 wait (&s);
6622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6624 return 0;
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628 ac_cv_header_sys_wait_h=yes
6629 else
6630 ac_cv_header_sys_wait_h=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6635 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6636 if test $ac_cv_header_sys_wait_h = yes; then
6638 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6643 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6644 if test "${ac_cv_header_time+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 #include <sys/types.h>
6650 #include <sys/time.h>
6651 #include <time.h>
6654 main ()
6656 if ((struct tm *) 0)
6657 return 0;
6659 return 0;
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 ac_cv_header_time=yes
6664 else
6665 ac_cv_header_time=no
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6670 $as_echo "$ac_cv_header_time" >&6; }
6671 if test $ac_cv_header_time = yes; then
6673 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6677 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6678 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6680 cat >>confdefs.h <<_ACEOF
6681 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6682 _ACEOF
6685 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6690 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6691 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6693 cat >>confdefs.h <<_ACEOF
6694 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6695 _ACEOF
6698 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6700 else
6701 case " $LIBOBJS " in
6702 *" fileblocks.$ac_objext "* ) ;;
6703 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6705 esac
6710 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6711 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6713 cat >>confdefs.h <<_ACEOF
6714 #define HAVE_STRUCT_STAT_ST_RDEV 1
6715 _ACEOF
6718 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6724 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6725 if test "${ac_cv_struct_tm+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <sys/types.h>
6731 #include <time.h>
6734 main ()
6736 struct tm tm;
6737 int *p = &tm.tm_sec;
6738 return !p;
6740 return 0;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 ac_cv_struct_tm=time.h
6745 else
6746 ac_cv_struct_tm=sys/time.h
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6751 $as_echo "$ac_cv_struct_tm" >&6; }
6752 if test $ac_cv_struct_tm = sys/time.h; then
6754 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6758 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6759 #include <$ac_cv_struct_tm>
6762 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6764 cat >>confdefs.h <<_ACEOF
6765 #define HAVE_STRUCT_TM_TM_ZONE 1
6766 _ACEOF
6771 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6773 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6775 else
6776 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6778 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6779 ac_have_decl=1
6780 else
6781 ac_have_decl=0
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_DECL_TZNAME $ac_have_decl
6786 _ACEOF
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6789 $as_echo_n "checking for tzname... " >&6; }
6790 if test "${ac_cv_var_tzname+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 #include <time.h>
6796 #if !HAVE_DECL_TZNAME
6797 extern char *tzname[];
6798 #endif
6801 main ()
6803 return tzname[0][0];
6805 return 0;
6807 _ACEOF
6808 if ac_fn_c_try_link "$LINENO"; then :
6809 ac_cv_var_tzname=yes
6810 else
6811 ac_cv_var_tzname=no
6813 rm -f core conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6817 $as_echo "$ac_cv_var_tzname" >&6; }
6818 if test $ac_cv_var_tzname = yes; then
6820 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6825 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6826 if test "x$ac_cv_type_off_t" = x""yes; then :
6828 else
6830 cat >>confdefs.h <<_ACEOF
6831 #define off_t long int
6832 _ACEOF
6836 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6837 if test "x$ac_cv_type_pid_t" = x""yes; then :
6839 else
6841 cat >>confdefs.h <<_ACEOF
6842 #define pid_t int
6843 _ACEOF
6847 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6848 if test "x$ac_cv_type_size_t" = x""yes; then :
6850 else
6852 cat >>confdefs.h <<_ACEOF
6853 #define size_t unsigned int
6854 _ACEOF
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6859 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6860 if test "${ac_cv_type_uid_t+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <sys/types.h>
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "uid_t" >/dev/null 2>&1; then :
6870 ac_cv_type_uid_t=yes
6871 else
6872 ac_cv_type_uid_t=no
6874 rm -f conftest*
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6878 $as_echo "$ac_cv_type_uid_t" >&6; }
6879 if test $ac_cv_type_uid_t = no; then
6881 $as_echo "#define uid_t int" >>confdefs.h
6884 $as_echo "#define gid_t int" >>confdefs.h
6889 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6890 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6894 _ACEOF
6900 # Look for some functions
6901 for ac_func in getpagesize kqueue statfs statvfs \
6902 clone kse_create rfork_thread thr_create sa_register \
6903 getcontext makecontext setcontext sigaltstack swapcontext
6904 do :
6905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6907 eval as_val=\$$as_ac_var
6908 if test "x$as_val" = x""yes; then :
6909 cat >>confdefs.h <<_ACEOF
6910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6911 _ACEOF
6914 done
6920 for ac_header in $ac_header_list
6921 do :
6922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6925 eval as_val=\$$as_ac_Header
6926 if test "x$as_val" = x""yes; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929 _ACEOF
6933 done
6942 for ac_func in getpagesize
6943 do :
6944 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6945 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6946 cat >>confdefs.h <<_ACEOF
6947 #define HAVE_GETPAGESIZE 1
6948 _ACEOF
6951 done
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6954 $as_echo_n "checking for working mmap... " >&6; }
6955 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 if test "$cross_compiling" = yes; then :
6959 ac_cv_func_mmap_fixed_mapped=no
6960 else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 /* malloc might have been renamed as rpl_malloc. */
6965 #undef malloc
6967 /* Thanks to Mike Haertel and Jim Avera for this test.
6968 Here is a matrix of mmap possibilities:
6969 mmap private not fixed
6970 mmap private fixed at somewhere currently unmapped
6971 mmap private fixed at somewhere already mapped
6972 mmap shared not fixed
6973 mmap shared fixed at somewhere currently unmapped
6974 mmap shared fixed at somewhere already mapped
6975 For private mappings, we should verify that changes cannot be read()
6976 back from the file, nor mmap's back from the file at a different
6977 address. (There have been systems where private was not correctly
6978 implemented like the infamous i386 svr4.0, and systems where the
6979 VM page cache was not coherent with the file system buffer cache
6980 like early versions of FreeBSD and possibly contemporary NetBSD.)
6981 For shared mappings, we should conversely verify that changes get
6982 propagated back to all the places they're supposed to be.
6984 Grep wants private fixed already mapped.
6985 The main things grep needs to know about mmap are:
6986 * does it exist and is it safe to write into the mmap'd area
6987 * how to use it (BSD variants) */
6989 #include <fcntl.h>
6990 #include <sys/mman.h>
6992 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6993 char *malloc ();
6994 #endif
6996 /* This mess was copied from the GNU getpagesize.h. */
6997 #ifndef HAVE_GETPAGESIZE
6998 # ifdef _SC_PAGESIZE
6999 # define getpagesize() sysconf(_SC_PAGESIZE)
7000 # else /* no _SC_PAGESIZE */
7001 # ifdef HAVE_SYS_PARAM_H
7002 # include <sys/param.h>
7003 # ifdef EXEC_PAGESIZE
7004 # define getpagesize() EXEC_PAGESIZE
7005 # else /* no EXEC_PAGESIZE */
7006 # ifdef NBPG
7007 # define getpagesize() NBPG * CLSIZE
7008 # ifndef CLSIZE
7009 # define CLSIZE 1
7010 # endif /* no CLSIZE */
7011 # else /* no NBPG */
7012 # ifdef NBPC
7013 # define getpagesize() NBPC
7014 # else /* no NBPC */
7015 # ifdef PAGESIZE
7016 # define getpagesize() PAGESIZE
7017 # endif /* PAGESIZE */
7018 # endif /* no NBPC */
7019 # endif /* no NBPG */
7020 # endif /* no EXEC_PAGESIZE */
7021 # else /* no HAVE_SYS_PARAM_H */
7022 # define getpagesize() 8192 /* punt totally */
7023 # endif /* no HAVE_SYS_PARAM_H */
7024 # endif /* no _SC_PAGESIZE */
7026 #endif /* no HAVE_GETPAGESIZE */
7029 main ()
7031 char *data, *data2, *data3;
7032 const char *cdata2;
7033 int i, pagesize;
7034 int fd, fd2;
7036 pagesize = getpagesize ();
7038 /* First, make a file with some known garbage in it. */
7039 data = (char *) malloc (pagesize);
7040 if (!data)
7041 return 1;
7042 for (i = 0; i < pagesize; ++i)
7043 *(data + i) = rand ();
7044 umask (0);
7045 fd = creat ("conftest.mmap", 0600);
7046 if (fd < 0)
7047 return 2;
7048 if (write (fd, data, pagesize) != pagesize)
7049 return 3;
7050 close (fd);
7052 /* Next, check that the tail of a page is zero-filled. File must have
7053 non-zero length, otherwise we risk SIGBUS for entire page. */
7054 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7055 if (fd2 < 0)
7056 return 4;
7057 cdata2 = "";
7058 if (write (fd2, cdata2, 1) != 1)
7059 return 5;
7060 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7061 if (data2 == MAP_FAILED)
7062 return 6;
7063 for (i = 0; i < pagesize; ++i)
7064 if (*(data2 + i))
7065 return 7;
7066 close (fd2);
7067 if (munmap (data2, pagesize))
7068 return 8;
7070 /* Next, try to mmap the file at a fixed address which already has
7071 something else allocated at it. If we can, also make sure that
7072 we see the same garbage. */
7073 fd = open ("conftest.mmap", O_RDWR);
7074 if (fd < 0)
7075 return 9;
7076 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7077 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7078 return 10;
7079 for (i = 0; i < pagesize; ++i)
7080 if (*(data + i) != *(data2 + i))
7081 return 11;
7083 /* Finally, make sure that changes to the mapped area do not
7084 percolate back to the file as seen by read(). (This is a bug on
7085 some variants of i386 svr4.0.) */
7086 for (i = 0; i < pagesize; ++i)
7087 *(data2 + i) = *(data2 + i) + 1;
7088 data3 = (char *) malloc (pagesize);
7089 if (!data3)
7090 return 12;
7091 if (read (fd, data3, pagesize) != pagesize)
7092 return 13;
7093 for (i = 0; i < pagesize; ++i)
7094 if (*(data + i) != *(data3 + i))
7095 return 14;
7096 close (fd);
7097 return 0;
7099 _ACEOF
7100 if ac_fn_c_try_run "$LINENO"; then :
7101 ac_cv_func_mmap_fixed_mapped=yes
7102 else
7103 ac_cv_func_mmap_fixed_mapped=no
7105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7106 conftest.$ac_objext conftest.beam conftest.$ac_ext
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7111 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7112 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7114 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7117 rm -f conftest.mmap conftest.txt
7122 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7123 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7124 aros_config_ldflags=""
7126 aros_shared_default=yes
7128 aros_shared_cflags="-fPIC"
7129 aros_shared_aflags=""
7130 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7131 aros_kernel_ldflags="-Wl,-rpath,./lib"
7133 aros_kernel_ar_flags="cr"
7134 aros_target_ar_flags="cr"
7135 aros_target_nm_flags="-C -ul"
7136 aros_target_strip_flags="--strip-unneeded -R.comment"
7138 aros_compiler_libs=
7139 aros_arch_libs=
7141 aros_target_genmap="-Wl,-Map -Xlinker"
7143 # Native flavour stuff
7144 aros_serial_debug="0"
7146 # Palm native flavour stuff
7147 aros_palm_debug_hack="0"
7149 # Unix flavour stuff
7150 aros_nesting_supervisor="0"
7152 # Collect-aros stuff: "-ius" to ignore undefined symbols
7153 ignore_undefined_symbols=""
7155 # Check for X11 by default
7156 need_x11="auto"
7158 #-----------------------------------------------------------------------------
7161 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7162 # it switched on by default, and we use the host compiler, so it compiles AROS
7163 # code with this enabled resulting in link failures as we don't have support
7164 # for it.
7166 # We use two methods to disable it. For the host compiler (used to compile
7167 # some hosted modules), we test to see if the compiler supports stack
7168 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7169 # work on all platforms.
7171 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7172 # (this is done unconditionally, as it should have no effect on compilers
7173 # without the stack protection feature). This may be specific to the way that
7174 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7175 # strong enough to disable it in a generic way though, so we'll live with it
7176 # until another vendor ships GCC with it enabled in a different way, and deal
7177 # with it then.
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7181 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7182 save_cflags="$CFLAGS"
7183 CFLAGS="$CFLAGS -fno-stack-protector"
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7188 main ()
7192 return 0;
7194 _ACEOF
7195 if ac_fn_c_try_compile "$LINENO"; then :
7196 use_no_stack_protector="yes"
7197 else
7198 use_no_stack_protector="no"
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7202 $as_echo "$use_no_stack_protector" >&6; }
7203 if test "x-$use_no_stack_protector" = "x-yes" ; then
7204 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7206 CFLAGS="$save_cflags"
7208 #-----------------------------------------------------------------------------
7210 # Disable pointer-signedness warnings if the compiler recognises the option
7211 # (this only works for the host compiler at the moment)
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7214 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7215 save_cflags="$CFLAGS"
7216 CFLAGS="$CFLAGS -Wno-pointer-sign"
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7221 main ()
7225 return 0;
7227 _ACEOF
7228 if ac_fn_c_try_compile "$LINENO"; then :
7229 use_no_sign_warning="yes"
7230 else
7231 use_no_sign_warning="no"
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7235 $as_echo "$use_no_sign_warning" >&6; }
7236 if test "x-$use_no_sign_warning" = "x-yes" ; then
7237 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7239 CFLAGS="$save_cflags"
7241 #-----------------------------------------------------------------------------
7243 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7246 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7247 save_cflags="$CFLAGS"
7248 CFLAGS="$CFLAGS -fgnu89-inline"
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7253 main ()
7257 return 0;
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261 use_gnu89_inline="yes"
7262 else
7263 use_gnu89_inline="no"
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7267 $as_echo "$use_gnu89_inline" >&6; }
7268 if test "x-$use_gnu89_inline" = "x-yes" ; then
7269 gnu89_inline="-fgnu89-inline"
7271 CFLAGS="$save_cflags"
7273 #-----------------------------------------------------------------------------
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7276 $as_echo_n "checking for type of build... " >&6; }
7277 # Check whether --enable-build_type was given.
7278 if test "${enable_build_type+set}" = set; then :
7279 enableval=$enable_build_type; build_type=$enableval
7280 else
7281 build_type="personal"
7285 if test "$build_type" = "nightly"; then
7286 build_type_string="NIGHTLY"
7287 elif test "$build_type" = "snapshot"; then
7288 build_type_string="SNAPSHOT"
7289 elif test "$build_type" = "milestone"; then
7290 build_type_string="MILESTONE"
7291 elif test "$build_type" = "release"; then
7292 build_type_string="RELEASE"
7293 else
7294 build_type_string="PERSONAL"
7295 build_type="personal"
7298 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7301 $as_echo "$build_type" >&6; }
7303 #-----------------------------------------------------------------------------
7304 all_debug_types="messages stack modules mungwall symbols"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7307 $as_echo_n "checking which debug types to enable... " >&6; }
7308 # Check whether --enable-debug was given.
7309 if test "${enable_debug+set}" = set; then :
7310 enableval=$enable_debug; debug="$enableval"
7311 else
7312 debug=""
7316 if test "$debug" = "" -o "$debug" = "no"; then
7317 debug="none"
7318 elif test "$debug" = "yes"; then
7319 debug="all"
7322 if test "$debug" = "all" ; then
7323 debug="messages stack modules symbols"
7324 for d in $all_debug_types; do
7325 export aros_${d}_debug="1"
7326 done
7327 else
7328 for d in $all_debug_types; do
7329 export aros_${d}_debug="0"
7330 done
7333 if test "$debug" != "none"; then
7334 debug=`echo $debug | sed s/,/\ /g`
7335 for d in $debug; do
7336 found="0"
7337 for d2 in $all_debug_types; do
7338 if test "$d2" = "$d"; then
7339 found="1"
7340 break
7342 done
7343 if test "$found" = "0"; then
7344 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7346 export aros_${d}_debug="1"
7347 done
7348 aros_debug="yes"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7351 $as_echo "$debug" >&6; }
7353 if test "$aros_messages_debug" = "1"; then
7354 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7355 else
7356 aros_messages_debug=""
7358 if test "$aros_symbols_debug" = "1"; then
7359 aros_symbols_debug="-g"
7360 else
7361 aros_symbols_debug=""
7364 # These are the flags to pass when compiling debugged programs
7365 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7366 aros_debug_aflags=""
7367 aros_debug_ldflags="$aros_symbols_debug"
7369 #-----------------------------------------------------------------------------
7370 # Checking for distcc and ccache.
7372 # Always apply the transforms in this particular order. Basically you should
7373 # always run 'ccache distcc compiler' in that order for the best performance.
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7376 $as_echo_n "checking whether to enable distcc... " >&6; }
7377 # Check whether --enable-distcc was given.
7378 if test "${enable_distcc+set}" = set; then :
7379 enableval=$enable_distcc; distcc="$enableval"
7380 else
7381 distcc="no"
7384 if test "$distcc" != "" -a "$distcc" != "no"; then
7385 # AC_CHECK_PROG will print out the result in this case
7386 # Extract the first word of "distcc", so it can be a program name with args.
7387 set dummy distcc; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_path_DISTCC+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 case $DISTCC in
7394 [\\/]* | ?:[\\/]*)
7395 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7409 done
7410 done
7411 IFS=$as_save_IFS
7413 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7415 esac
7417 DISTCC=$ac_cv_path_DISTCC
7418 if test -n "$DISTCC"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7420 $as_echo "$DISTCC" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7433 $as_echo_n "checking whether to enable ccache... " >&6; }
7434 # Check whether --enable-ccache was given.
7435 if test "${enable_ccache+set}" = set; then :
7436 enableval=$enable_ccache; ccache="$enableval"
7437 else
7438 ccache="no"
7441 if test "$ccache" != "" -a "$ccache" != "no"; then
7442 # AC_CHECK_PROG will print out the result in this case
7443 # Extract the first word of "ccache", so it can be a program name with args.
7444 set dummy ccache; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_CCACHE+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$CCACHE"; then
7451 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_CCACHE="ccache"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7470 CCACHE=$ac_cv_prog_CCACHE
7471 if test -n "$CCACHE"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7473 $as_echo "$CCACHE" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7485 #-----------------------------------------------------------------------------
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7487 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7489 # Check whether --with-kernel-gcc-version was given.
7490 if test "${with_kernel_gcc_version+set}" = set; then :
7491 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7492 else
7493 kernel_tool_version=""
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7497 $as_echo "$kernel_tool_version" >&6; }
7499 #-----------------------------------------------------------------------------
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7501 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7503 # Check whether --with-gcc-version was given.
7504 if test "${with_gcc_version+set}" = set; then :
7505 withval=$with_gcc_version; target_tool_version="$withval"
7506 else
7507 target_tool_version="default"
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7511 $as_echo "$target_tool_version" >&6; }
7513 #-----------------------------------------------------------------------------
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7515 $as_echo_n "checking what optimization flags to use... " >&6; }
7517 # Check whether --with-optimization was given.
7518 if test "${with_optimization+set}" = set; then :
7519 withval=$with_optimization; optimization="$withval"
7520 else
7521 optimization="unknown"
7524 if test "$optimization" = "unknown"; then
7525 if test "$debug" != "none"; then
7526 optimization="-O0"
7527 else
7528 optimization="-O2"
7531 aros_config_cflags="$aros_config_cflags $optimization"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7533 $as_echo "$optimization" >&6; }
7535 #-----------------------------------------------------------------------------
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7537 $as_echo_n "checking what paranoia flags to use... " >&6; }
7539 # Check whether --with-paranoia was given.
7540 if test "${with_paranoia+set}" = set; then :
7541 withval=$with_paranoia; paranoia_flags="$withval"
7542 else
7543 paranoia_flags="default"
7546 if test "$paranoia_flags" = "default"; then
7547 paranoia_flags=""
7548 else if test "$paranoia_flags" = "yes"; then
7549 paranoia_flags="-Wall -Werror"
7550 fi fi
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7552 $as_echo "$paranoia_flags" >&6; }
7553 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7555 #-----------------------------------------------------------------------------
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7557 $as_echo_n "checking what target variant to enable... " >&6; }
7558 # Check whether --enable-target_variant was given.
7559 if test "${enable_target_variant+set}" = set; then :
7560 enableval=$enable_target_variant; target_variant=$enableval
7561 else
7562 target_variant=""
7565 if test "$target_variant" = ""; then
7566 aros_target_variant=""
7567 aros_target_suffix=""
7568 enableval="none"
7569 else
7570 aros_target_variant="$target_variant"
7571 aros_target_suffix="-$target_variant"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7574 $as_echo "$enableval" >&6; }
7576 #-----------------------------------------------------------------------------
7577 # Target-specific defaults. You can override then on a per-target basis.
7579 # Bootloader name. Currently used by PC target.
7580 target_bootloader="none"
7582 #-----------------------------------------------------------------------------
7583 # Additional options for some specific targets
7585 case "$aros_target_variant" in
7586 ios)
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7588 $as_echo_n "checking XCode path... " >&6; }
7590 # Check whether --with-xcode was given.
7591 if test "${with_xcode+set}" = set; then :
7592 withval=$with_xcode; aros_xcode_path="$withval"
7593 else
7594 aros_xcode_path="/Developer"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7598 $as_echo "$aros_xcode_path" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7601 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7603 # Check whether --with-sdk-version was given.
7604 if test "${with_sdk_version+set}" = set; then :
7605 withval=$with_sdk_version; aros_sdk_version="$withval"
7606 else
7607 aros_sdk_version="4.1"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7611 $as_echo "$aros_sdk_version" >&6; }
7615 "android")
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7617 $as_echo_n "checking Android SDK path... " >&6; }
7619 # Check whether --with-sdk was given.
7620 if test "${with_sdk+set}" = set; then :
7621 withval=$with_sdk; aros_android_sdk="$withval"
7622 else
7623 aros_android_sdk=$default_android_sdk
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7627 $as_echo "$aros_android_sdk" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7630 $as_echo_n "checking Android NDK path... " >&6; }
7632 # Check whether --with-ndk was given.
7633 if test "${with_ndk+set}" = set; then :
7634 withval=$with_ndk; aros_android_ndk="$withval"
7635 else
7636 aros_android_ndk="none"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7640 $as_echo "$aros_android_ndk" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7643 $as_echo_n "checking what Android SDK version to use... " >&6; }
7645 # Check whether --with-sdk-version was given.
7646 if test "${with_sdk_version+set}" = set; then :
7647 withval=$with_sdk_version; aros_sdk_version="$withval"
7648 else
7649 aros_sdk_version="12"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7653 $as_echo "$aros_sdk_version" >&6; }
7655 if test "$aros_android_ndk" != "none"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7657 $as_echo_n "checking what Android NDK version to use... " >&6; }
7659 # Check whether --with-ndk-version was given.
7660 if test "${with_ndk_version+set}" = set; then :
7661 withval=$with_ndk_version; aros_ndk_version="$withval"
7662 else
7663 aros_ndk_version="9"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7667 $as_echo "$aros_ndk_version" >&6; }
7670 export PATH="$aros_android_sdk/tools:$PATH"
7671 # Extract the first word of "$android_tool", so it can be a program name with args.
7672 set dummy $android_tool; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_path_android_tool+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 case $android_tool in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7694 done
7695 done
7696 IFS=$as_save_IFS
7699 esac
7701 android_tool=$ac_cv_path_android_tool
7702 if test -n "$android_tool"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7704 $as_echo "$android_tool" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7711 if test "$android_tool" = ""; then
7712 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7715 aros_android_level=android-$aros_sdk_version
7716 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7717 echo "Platform $aros_android_level is not installed in your SDK"
7718 echo "Use --with-sdk-version=<API level number> to select another platform version"
7719 echo "You can check what plaform versions are installed in your SDK"
7720 echo "by examining contents of $aros_android_sdk/platforms directory"
7721 as_fn_error "Android platform $aros_android_level is not installed" "$LINENO" 5
7724 # Extract the first word of "ant", so it can be a program name with args.
7725 set dummy ant; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_path_ant+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 case $ant in
7732 [\\/]* | ?:[\\/]*)
7733 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7747 done
7748 done
7749 IFS=$as_save_IFS
7752 esac
7754 ant=$ac_cv_path_ant
7755 if test -n "$ant"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7757 $as_echo "$ant" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7764 if test "$ant" = ""; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7766 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7769 if test "$host_os" = "mingw32"; then
7770 android_tool="cmd //c $android_tool"
7774 esac
7776 #-----------------------------------------------------------------------------
7777 # External toolchains
7778 kernel_tool_prefix="none"
7779 aros_tool_prefix="none"
7780 elf_tool_prefix="${target_cpu}-elf-"
7782 # This is the target configuration switch.
7783 case "$target_os" in
7784 linux*)
7785 aros_target_arch="linux"
7786 aros_target_family="unix"
7787 case "$target_cpu" in
7788 *m68k*)
7789 aros_target_cpu="m68k"
7790 aros_object_format="m68kelf"
7791 aros_flavour="emulcompat"
7792 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7793 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7794 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7795 gcc_target_cpu="mc68000"
7797 *i?86*)
7798 aros_target_cpu="i386"
7799 aros_object_format="elf_i386"
7800 aros_flavour="emulation"
7801 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7802 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7803 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7804 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7805 aros_config_ldflags="-m32 -march=i486"
7806 aros_kernel_ldflags="-melf_i386"
7807 aros_default_wbdepth=8
7808 gcc_target_cpu="i386"
7809 pci_hidd_target="hidd-pci-linux"
7810 android_tool_dir_prefix="x86"
7811 android_tool_prefix="i686-android-linux"
7812 android_ndk_arch="x86"
7814 *x86_64*)
7815 aros_target_cpu="x86_64"
7816 aros_object_format="elf_x86_64"
7817 aros_flavour="emulation"
7818 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7819 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7820 aros_default_wbdepth=8
7821 pci_hidd_target="hidd-pci-linux"
7823 *powerpc*)
7824 aros_target_cpu="ppc"
7825 aros_object_format="elf32ppc"
7826 aros_flavour="emulation"
7827 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7828 aros_default_wbdepth=8
7829 gcc_target_cpu="ppc"
7831 # TODO
7832 # Same as powerpc, but I need this for the nightly build to work again.
7833 # Actually, the nightly should be made working with powerpc target.
7834 # That just was too much work for the moment, another week or two.
7835 *ppc*)
7836 aros_target_cpu="ppc"
7837 aros_object_format="elf32ppc"
7838 aros_flavour="emulation"
7839 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7840 aros_default_wbdepth=8
7841 gcc_target_cpu="ppc"
7843 *armhf*)
7844 aros_target_cpu="arm"
7845 target_cpu="arm"
7846 aros_object_format="armelf_linux_eabi"
7847 aros_flavour="emulation"
7848 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7849 gcc_target_cpu="arm"
7850 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7851 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7852 aros_arch_libs="-laeabi"
7853 gcc_default_fpu="vfpv3-d16"
7854 gcc_default_float_abi="hard"
7855 android_tool_dir_prefix="arm-linux-androideabi"
7856 android_tool_prefix="arm-linux-androideabi"
7857 android_ndk_arch="arm"
7858 kernel_tool_prefix="arm-linux-gnueabihf-"
7860 *arm*)
7861 aros_target_cpu="arm"
7862 aros_object_format="armelf_linux_eabi"
7863 aros_flavour="emulation"
7864 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7865 gcc_target_cpu="arm"
7866 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7867 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7868 aros_arch_libs="-laeabi"
7869 android_tool_dir_prefix="arm-linux-androideabi"
7870 android_tool_prefix="arm-linux-androideabi"
7871 android_ndk_arch="arm"
7872 kernel_tool_prefix="arm-linux-gnueabi-"
7875 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7877 esac
7878 case "$aros_target_variant" in
7879 android)
7881 if test "$android_ndk_arch" = ""; then
7882 as_fn_error "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7885 aros_default_wbwidth=320
7886 aros_default_wbheight=480
7887 if test "$aros_android_ndk" = "none"; then
7888 aros_kernel_cflags="-mandroid"
7889 aros_kernel_ldflags="-mandroid"
7890 CFLAGS="-mandroid"
7891 else
7892 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7893 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7894 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7895 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7896 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7897 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7899 need_x11=no
7900 x11_hidd_target=kernel-hidd-androidgfx-kobj
7901 # Disable implicit PIC mode
7902 aros_target_cflags="$aros_target_cflags -fno-pic"
7903 kernel_tool_prefix="$android_tool_prefix-"
7905 esac
7909 aros_target_arch="pc"
7910 aros_shared_default="no"
7911 target_bootloader="grub2"
7912 case "$target_cpu" in
7913 *i?86*)
7914 aros_target_cpu="i386"
7917 if test "$aros_object_format" = "" ; then
7918 aros_object_format="elf_i386"
7920 aros_flavour="standalone"
7921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7922 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7923 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7924 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7925 aros_config_ldflags="-m32 -march=i486"
7926 aros_kernel_ldflags="-melf_i386"
7927 aros_default_wbwidth=640
7928 aros_default_wbheight=480
7929 gcc_target_cpu="i386"
7931 *x86_64*)
7932 aros_target_cpu="x86_64"
7933 aros_serial_debug=1
7934 if test "$aros_object_format" = "" ; then
7935 aros_object_format="elf_x86_64"
7937 aros_flavour="standalone"
7938 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7939 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7940 aros_kernel_ldflags=""
7941 aros_default_wbwidth=640
7942 aros_default_wbheight=480
7945 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7947 esac
7950 prep)
7951 aros_target_arch="prep"
7952 aros_shared_default="no"
7953 aros_target_cpu="ppc"
7954 aros_object_format="elf32ppc"
7955 aros_flavour="ppcnative"
7956 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7957 aros_kernel_ldflags=""
7958 aros_default_wbwidth=640
7959 aros_default_wbheight=480
7960 gcc_target_cpu="ppc"
7963 freebsd*)
7964 aros_target_arch="freebsd"
7965 aros_target_family="unix"
7966 aros_target_cpu="i386"
7967 aros_flavour="emulation"
7968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7969 gcc_target_cpu="i386"
7971 aros_target_strip_flags="-x"
7974 darwin*)
7975 aros_target_arch="darwin"
7976 aros_target_family="unix"
7977 aros_flavour="emulation"
7978 case "$target_cpu" in
7979 *i?86*)
7980 aros_ios_platform="iPhoneSimulator"
7981 aros_target_cpu="i386"
7982 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7983 aros_kernel_ldflags=""
7984 aros_macosx_version="10.4"
7985 aros_default_wbdepth=8
7986 gcc_target_cpu="i386"
7987 aros_object_format="elf_i386"
7988 aros_kernel_ar_flags="-cr"
7989 aros_target_strip_flags="-x"
7990 kernel_tool_flags="-m32"
7992 *x86_64*)
7993 aros_target_cpu="x86_64"
7994 aros_object_format="elf_x86_64"
7995 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7996 aros_macosx_version="10.6"
7997 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7998 aros_kernel_cflags="-m64"
7999 aros_kernel_ldflags="-m64"
8000 aros_target_cflags="-mcmodel=large"
8001 aros_default_wbdepth=8
8002 aros_kernel_ar="ar"
8003 aros_kernel_ar_flags="-cr"
8004 aros_kernel_ld="ld"
8005 aros_kernel_ranlib="ranlib"
8007 *ppc*)
8008 aros_target_cpu="ppc"
8009 aros_object_format="elf32ppc"
8010 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8011 aros_kernel_ldflags=""
8012 aros_macosx_version="10.0"
8013 aros_default_wbdepth=8
8014 gcc_target_cpu="ppc"
8015 aros_kernel_ar="ar"
8016 aros_kernel_ar_flags="-cr"
8017 aros_kernel_ld="ld -arch ppc"
8018 aros_kernel_as="as -arch ppc"
8019 aros_kernel_ranlib="ranlib -arch ppc"
8020 aros_kernel_nm="nm -arch ppc"
8021 aros_kernel_strip="strip -arch ppc"
8022 kernel_tool_prefix="powerpc-apple-darwin10-"
8024 *arm*)
8025 aros_ios_platform="iPhoneOS"
8026 aros_target_cpu="arm"
8027 aros_object_format="armelf_linux_eabi"
8028 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8029 aros_arch_libs="-laeabi"
8030 aros_default_wbdepth=8
8031 gcc_target_cpu="arm"
8032 aros_kernel_ar="ar"
8033 aros_kernel_ar_flags="-cr"
8034 aros_kernel_ld="ld -arch arm"
8035 aros_kernel_ranlib="ranlib -arch arm"
8036 kernel_tool_prefix="arm-apple-darwin10-"
8037 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8040 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8042 esac
8043 case "$aros_target_variant" in
8044 ios)
8045 aros_ios_version="3.0"
8046 aros_default_wbwidth=320
8047 aros_default_wbheight=480
8048 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8049 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8050 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8051 need_x11=no
8052 # This is here because it may depend on iOS or SDK version
8053 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8054 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8055 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8058 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8059 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8061 esac
8064 dragonfly*)
8065 aros_target_arch="dragonfly"
8066 aros_target_family="unix"
8067 aros_flavour="emulation"
8068 case "$target_cpu" in
8069 *i?86*)
8070 aros_target_cpu="i386"
8071 aros_object_format="elf_i386"
8072 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8074 *x86_64*)
8075 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8076 aros_target_cpu="x86_64"
8077 aros_object_format="elf_x86_64"
8078 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8081 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8083 esac
8086 netbsd*)
8087 aros_target_arch="netbsd"
8088 aros_target_family="unix"
8089 case "$target_cpu" in
8090 *m68k*)
8091 aros_target_cpu="m68k"
8092 aros_object_format="m68kelf"
8093 aros_flavour="emulcompat"
8094 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8095 gcc_target_cpu="mc68000"
8097 *i?86*)
8098 aros_target_cpu="i386"
8099 aros_object_format="elf_i386"
8100 aros_flavour="emulation"
8101 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8102 aros_default_wbdepth=8
8103 gcc_target_cpu="i386"
8106 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8108 esac
8109 aros_target_genmap="-Wl,-M -Xlinker >"
8110 aros_flavour="emulation"
8111 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8114 openbsd*)
8115 aros_target_arch="openbsd"
8116 aros_target_family="unix"
8117 case "$target_cpu" in
8118 *i?86*)
8119 aros_target_cpu="i386"
8120 aros_object_format="elf_i386"
8121 aros_flavour="emulation"
8122 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8123 gcc_target_cpu="i386"
8126 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8128 esac
8129 aros_target_genmap="-Wl,-M -Xlinker >"
8130 aros_target_nm_flags="-u"
8131 aros_flavour="emulation"
8134 solaris*)
8135 aros_target_arch="solaris"
8136 aros_target_family="unix"
8137 case "$target_cpu" in
8138 *i?86*)
8139 aros_target_cpu="i386"
8140 aros_object_format="elf_i386"
8141 aros_flavour="emulation"
8142 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8143 aros_default_wbdepth=8
8144 gcc_target_cpu="i386"
8146 *sparc*)
8147 aros_target_cpu="sparc"
8148 aros_object_format="elf_sparc"
8149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8150 gcc_target_cpu="sparc"
8153 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8155 esac
8156 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8157 aros_flavour="emulation"
8160 morphos*)
8161 aros_target_arch="morphos"
8162 aros_shared_default="no"
8163 aros_target_cpu="ppc"
8164 aros_object_format="elf_ppc"
8165 aros_flavour="nativecompat"
8166 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8167 gcc_target_cpu="ppc"
8170 sam440)
8171 aros_target_arch="sam440"
8172 aros_shared_default="no"
8173 aros_target_cpu="ppc"
8174 aros_object_format="elf32ppc"
8175 aros_flavour="ppcnative"
8176 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8177 aros_kernel_ldflags=""
8178 aros_default_wbwidth=1024
8179 aros_default_wbheight=768
8180 aros_default_wbdepth=24
8181 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8182 gcc_target_cpu="powerpc"
8185 efika)
8186 aros_target_arch="efika"
8187 aros_shared_default="no"
8188 aros_target_cpu="arm"
8189 aros_object_format="armelf_linux_eabi"
8190 aros_flavour="standalone"
8191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8192 aros_kernel_ldflags=""
8193 aros_default_wbwidth=1024
8194 aros_default_wbheight=600
8195 aros_arch_libs="-laeabi"
8196 gcc_default_cpu="armv7-a"
8197 gcc_default_fpu="vfpv3"
8198 gcc_default_float_abi="softfp"
8199 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8200 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8203 chrp)
8204 aros_target_arch="chrp"
8205 aros_shared_default="no"
8206 aros_target_cpu="ppc"
8207 aros_object_format="elf32ppc"
8208 aros_flavour="ppcnative"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8210 aros_kernel_ldflags=""
8211 aros_default_wbwidth=640
8212 aros_default_wbheight=480
8213 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8214 gcc_target_cpu="powerpc"
8215 case "$aros_target_variant" in
8216 efika)
8217 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8219 esac
8222 raspberrypi)
8223 aros_flavour="standalone"
8224 aros_target_arch="raspberrypi"
8225 aros_target_cpu="arm"
8226 aros_object_format="armelf_linux_eabi"
8227 aros_shared_default="no"
8228 aros_arch_libs="-laeabi"
8230 gcc_default_cpu="armv6"
8231 gcc_default_cpu_tune="arm1176jzf-s"
8232 gcc_default_fpu="vfp"
8233 gcc_default_float_abi="softfp"
8235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8236 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8237 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8238 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8239 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8242 amiga*)
8243 aros_target_arch="amiga"
8244 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8245 aros_shared_default="no"
8247 case "$target_cpu" in
8248 *m68k*)
8249 # Check whether --enable-amigaos_compliance was given.
8250 if test "${enable_amigaos_compliance+set}" = set; then :
8251 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8254 aros_enable_mmu=no
8255 aros_target_cpu="m68k"
8256 aros_object_format="m68kelf"
8257 aros_flavour="standcompat"
8258 gcc_target_cpu="m68000"
8259 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8260 aros_config_aflags="$aros_config_aflags"
8261 aros_target_strip_flags="-R.comment --strip-debug"
8262 aros_default_wbwidth=640
8263 aros_default_wbheight=256
8264 aros_default_wbdepth=2
8266 *ppc*)
8267 aros_cpu="ppc"
8268 aros_flavour="native"
8269 gcc_target_cpu="ppc"
8272 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8274 esac
8277 mingw*)
8278 aros_target_arch="mingw32"
8279 aros_shared_default="no"
8280 aros_flavour="emulation"
8281 aros_shared_cflags=""
8282 need_crosstools="yes"
8283 need_dlopen="no"
8284 rescomp="windres"
8285 case "$target_cpu" in
8286 *i?86*)
8287 aros_target_cpu="i386"
8288 aros_object_format="elf_i386"
8289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8290 aros_default_wbdepth=8
8291 gcc_target_cpu="i386"
8293 kernel_tool_prefix="i386-mingw32-"
8295 *x86_64*)
8296 aros_target_cpu="x86_64"
8297 aros_object_format="elf_x86_64"
8298 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8299 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8300 aros_default_wbdepth=8
8301 kernel_tool_prefix="x86_64-w64-mingw32-"
8303 *arm*)
8304 aros_target_cpu="arm"
8305 aros_object_format="armelf_linux_eabi"
8306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8307 aros_arch_libs="-laeabi"
8308 aros_default_wbdepth=8
8309 gcc_target_cpu="arm"
8310 gcc_default_float_abi="soft"
8311 kernel_tool_prefix="arm-mingw32ce-"
8312 aros_default_wbwidth=160
8313 aros_default_wbheight=160
8316 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8318 esac
8319 if test $host_os = "cygwin"; then
8320 aros_kernel_cflags="-mno-cygwin"
8323 pp*)
8324 aros_target_arch="pp"
8325 aros_shared_default="no"
8326 case "$target_cpu" in
8327 *m68k*)
8328 aros_target_cpu="m68k"
8329 aros_object_format="m68kelf"
8330 aros_flavour="palmnative"
8331 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8332 aros_default_wbwidth=160
8333 aros_default_wbheight=160
8334 aros_default_wbdepth=1
8335 aros_target_ar_flags="cru"
8336 aros_compiler_libs="-lgcc1"
8337 aros_shared_default=no
8338 aros_shared_cflags="-fpic"
8339 aros_shared_aflags=""
8340 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8341 aros_kernel_ldflags="-Wl,-rpath,./lib"
8342 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8343 aros_debug_aflags=""
8344 aros_debug_ldflags="$aros_symbols_debug"
8345 aros_mungwall_debug="0"
8346 aros_modules_debug="0"
8347 gcc_target_cpu="mc68000"
8348 ignore_undefined_symbols="-ius"
8351 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8353 esac
8356 mac*)
8357 aros_target_arch="mac"
8358 aros_shared_default="no"
8359 case "$target_cpu" in
8360 *m68k*)
8361 aros_target_cpu="m68k"
8362 aros_object_format="m68kelf"
8363 aros_flavour="mac68knative"
8364 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8365 aros_default_wbwidth=512
8366 aros_default_wbheight=384
8367 aros_default_wbdepth=8
8368 aros_target_ar_flags="cru"
8369 aros_compiler_libs="-lgcc1"
8370 aros_shared_default=no
8371 aros_shared_cflags="-fpic"
8372 aros_shared_aflags=""
8373 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8374 aros_kernel_ldflags="-Wl,-rpath,./lib"
8375 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8376 aros_debug_aflags=""
8377 aros_debug_ldflags="$aros_symbols_debug"
8378 aros_mungwall_debug="0"
8379 aros_modules_debug="0"
8380 gcc_target_cpu="mc68000"
8381 ignore_undefined_symbols="-ius"
8384 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8386 esac
8390 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
8392 esac
8394 #-----------------------------------------------------------------------------
8395 crosstools_guess=yes
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8398 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8400 # Check whether --with-kernel-toolchain-prefix was given.
8401 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8402 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8406 $as_echo "$kernel_tool_prefix" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8409 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8411 # Check whether --with-elf-toolchain-prefix was given.
8412 if test "${with_elf_toolchain_prefix+set}" = set; then :
8413 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8414 crosstools_guess=no
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8418 $as_echo "$elf_tool_prefix" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8421 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8423 # Check whether --with-aros-toolchain was given.
8424 if test "${with_aros_toolchain+set}" = set; then :
8425 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8426 crosstools_guess=no
8429 if test "$aros_tool_prefix" = "yes" ; then
8430 aros_tool_prefix=$aros_target_cpu-aros-
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8433 $as_echo "$aros_tool_prefix" >&6; }
8435 #-----------------------------------------------------------------------------
8436 # Checking if we should build crosstools..
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8438 $as_echo_n "checking whether to build crosstools... " >&6; }
8439 # Check whether --enable-crosstools was given.
8440 if test "${enable_crosstools+set}" = set; then :
8441 enableval=$enable_crosstools; crosstools="$enableval"
8442 else
8443 crosstools="$crosstools_guess"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8447 $as_echo "$crosstools" >&6; }
8449 if test "${crosstools}" = "yes"; then
8450 if test "${crosstools_guess}" = "no"; then
8451 as_fn_error "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8456 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8458 # Check whether --with-aros-toolchain-install was given.
8459 if test "${with_aros_toolchain_install+set}" = set; then :
8460 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8463 if test "x$aros_toolchain_install" = "x"; then
8464 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8465 else
8466 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8467 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8470 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8473 # Now process extra architecture-specific options.
8474 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8475 # as well as floating-point ABI.
8476 case "$aros_target_cpu" in
8477 arm)
8478 if test "$gcc_default_cpu" = ""; then
8479 gcc_default_cpu="armv6"
8481 if test "$gcc_default_fpu" = ""; then
8482 gcc_default_fpu="vfp"
8484 if test "$gcc_default_float_abi" = ""; then
8485 gcc_default_float_abi="softfp"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8489 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8491 # Check whether --with-cpu was given.
8492 if test "${with_cpu+set}" = set; then :
8493 withval=$with_cpu; aros_gcc_cpu="$withval"
8494 else
8495 aros_gcc_cpu=$gcc_default_cpu
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8499 $as_echo "$aros_gcc_cpu" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8502 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8504 # Check whether --with-fpu was given.
8505 if test "${with_fpu+set}" = set; then :
8506 withval=$with_fpu; aros_gcc_fpu="$withval"
8507 else
8508 aros_gcc_fpu=$gcc_default_fpu
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8512 $as_echo "$aros_gcc_fpu" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8515 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8517 # Check whether --with-float was given.
8518 if test "${with_float+set}" = set; then :
8519 withval=$with_float; aros_gcc_float_abi="$withval"
8520 else
8521 aros_gcc_float_abi=$gcc_default_float_abi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8525 $as_echo "$aros_gcc_float_abi" >&6; }
8527 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8528 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8530 esac
8532 # Some formats need custom ELF specs.
8533 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8534 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8535 elf_specs_in=config/${aros_object_format}-specs.in
8536 else
8537 elf_specs_in=config/elf-specs.in
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8541 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8543 # Check whether --with-aros-gcc was given.
8544 if test "${with_aros_gcc+set}" = set; then :
8545 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8546 else
8547 aros_gcc_version=""
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8551 $as_echo "$aros_gcc_version" >&6; }
8553 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8554 # Since we override specs, we may need to put these defines there
8555 if test "$gcc_target_cpu" != ""; then
8556 gcc_target_cpu="-D__${gcc_target_cpu}__"
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8560 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8562 # Check whether --with-portssources was given.
8563 if test "${with_portssources+set}" = set; then :
8564 withval=$with_portssources; with_portssrcdir=$withval
8565 else
8566 with_portssrcdir="default"
8569 if test "$with_portssrcdir" = "default"; then
8570 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8571 else
8572 AROS_PORTSSRCDIR="$with_portssrcdir"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8575 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8578 $as_echo_n "checking which bootloader to use... " >&6; }
8580 # Check whether --with-bootloader was given.
8581 if test "${with_bootloader+set}" = set; then :
8582 withval=$with_bootloader; target_bootloader=$withval
8583 else
8584 target_bootloader=$target_bootloader
8587 if test "$target_bootloader" = "none"; then
8588 aros_target_bootloader=""
8589 else
8590 aros_target_bootloader="$target_bootloader"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8593 $as_echo "$target_bootloader" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8596 $as_echo_n "checking which icon-set to use... " >&6; }
8598 # Check whether --with-iconset was given.
8599 if test "${with_iconset+set}" = set; then :
8600 withval=$with_iconset; target_iconset=$withval
8601 else
8602 target_iconset="default"
8605 if test "$target_iconset" = "default"; then
8606 aros_target_iconset="Gorilla"
8607 target_iconset="default (Gorilla)"
8608 else
8609 aros_target_iconset="$target_iconset"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8612 $as_echo "$target_iconset" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8615 $as_echo_n "checking which GUI Theme to use... " >&6; }
8617 # Check whether --with-theme was given.
8618 if test "${with_theme+set}" = set; then :
8619 withval=$with_theme; target_guitheme=$withval
8620 else
8621 target_guitheme="default"
8624 if test "$target_guitheme" = "default"; then
8625 aros_target_guitheme="Ice"
8626 else
8627 aros_target_guitheme="$target_guitheme"
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8630 $as_echo "$aros_target_guitheme" >&6; }
8632 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8633 # for target code)
8634 cross_compiling=no
8636 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8637 cross_compiling=yes
8640 if test "$aros_host_cpu" == "x86_64" ; then
8641 if test "$aros_target_cpu" == "i386" ; then
8642 cross_compiling=no
8646 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8647 if test "$aros_host_arch" != "$aros_target_arch" ; then
8648 cross_compiling=yes
8650 else
8651 if test "$host_cc_elf" = "no" ; then
8652 cross_compiling=yes
8656 if test "$cross_compiling" = "no" ; then
8657 kernel_tool_prefix=""
8658 if test "$host_cc_elf" = "yes" ; then
8659 elf_tool_prefix=""
8663 #######################################################################
8664 ## Compute what toolchains to use, and their paths ##
8665 #######################################################################
8667 # This takes, as input:
8668 # crosstools {yes,no}
8669 # kernel_tool_version {"",[version]}
8670 # aros_gcc_version {"",[version]}
8671 # kernel_tool_prefix {none,[some-arch-os-]}
8672 # target_tool_prefix ${aros_target_cpu}-aros-
8673 # aros_tool_prefix ${aros_target_cpu}-aros-
8675 # The output is
8676 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8677 # Where the 'kernel' binaries are located
8678 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8679 # Where the 'target' binaries are located
8680 # (not the symlink farm - that is aros_target_*!)
8682 # The rules are:
8683 # if crosstools then
8684 # if kernel_tools_prefix = "no-kernel-prefix-"
8685 # aros_kernel_* = crosstools cc paths
8686 # aros_kernel_cc = elf cc wrapper around crosstools cc
8687 # else
8688 # VALIDATE(${kernel_tools_prefix}*)
8689 # aros_kernel_* = ${kernel_tools_prefix}*
8690 # if ${kernel_tools_prefix}cc is an AROS gcc
8691 # aros_kernel_cc = ${kernel_tools_prefix}cc
8692 # else
8693 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8694 # fi
8695 # fi
8697 # orig_target_* = aros built crosstools
8698 # orig_target_cc = elf cc wrapper around crosstools cc
8699 # else
8700 # VALIDATE(${kernel_tools_prefix}*)
8702 # orig_target_* = aros_kernel_*
8703 # if aros_kernel_cc is an AROS gcc
8704 # orig_target_cc = aros_kernel_cc
8705 # else
8706 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8707 # fi
8708 # fi
8710 target_tool_prefix="${aros_target_cpu}-aros-"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8713 $as_echo_n "checking which kernel tools... " >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8715 $as_echo "$kernel_tool_prefix" >&6; };
8717 if test "$kernel_tool_prefix" = "none" ; then
8718 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8719 as_fn_error "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8721 else
8722 # Kernel tools required - find them
8723 # Note that 'normally', aros_kernel_* overrides will be
8724 # empty, unless specified in the per-arch sections above.
8725 if test "x$aros_kernel_cpp" = "x"; then
8726 aros_kernel_cpp=${kernel_tool_prefix}cpp
8729 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8730 if test "$cross_compiling" = "yes" ; then
8731 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8732 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 case $aros_kernel_cpp in
8739 [\\/]* | ?:[\\/]*)
8740 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8759 esac
8761 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8762 if test -n "$aros_kernel_cpp"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8764 $as_echo "$aros_kernel_cpp" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8771 else
8772 if test "$GCC" = "yes"; then
8773 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8774 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8775 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 case $aros_kernel_cpp in
8782 [\\/]* | ?:[\\/]*)
8783 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in `dirname $aros_gcc_cpp`
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8797 done
8798 done
8799 IFS=$as_save_IFS
8802 esac
8804 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8805 if test -n "$aros_kernel_cpp"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8807 $as_echo "$aros_kernel_cpp" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8815 if test "$aros_kernel_cpp" = ""; then
8816 # Extract the first word of "cpp", so it can be a program name with args.
8817 set dummy cpp; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 case $aros_kernel_cpp in
8824 [\\/]* | ?:[\\/]*)
8825 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8844 esac
8846 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8847 if test -n "$aros_kernel_cpp"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8849 $as_echo "$aros_kernel_cpp" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8858 else
8859 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8860 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_path_aros_kernel_cpp+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 case $aros_kernel_cpp in
8867 [\\/]* | ?:[\\/]*)
8868 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8882 done
8883 done
8884 IFS=$as_save_IFS
8887 esac
8889 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8890 if test -n "$aros_kernel_cpp"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8892 $as_echo "$aros_kernel_cpp" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8901 if test "$aros_kernel_cpp" = ""; then
8902 as_fn_error "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8904 if test "x$aros_kernel_cc" = "x"; then
8905 aros_kernel_cc=${kernel_tool_prefix}gcc
8908 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8909 if test "$cross_compiling" = "yes" ; then
8910 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8911 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 case $aros_kernel_cc in
8918 [\\/]* | ?:[\\/]*)
8919 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 for as_dir in $PATH
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8933 done
8934 done
8935 IFS=$as_save_IFS
8938 esac
8940 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8941 if test -n "$aros_kernel_cc"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8943 $as_echo "$aros_kernel_cc" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8950 else
8951 if test "$GCC" = "yes"; then
8952 aros_gcc_cc=`$CC -print-prog-name=cc`
8953 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8954 set dummy `basename $aros_gcc_cc`; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 case $aros_kernel_cc in
8961 [\\/]* | ?:[\\/]*)
8962 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in `dirname $aros_gcc_cc`
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8981 esac
8983 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8984 if test -n "$aros_kernel_cc"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8986 $as_echo "$aros_kernel_cc" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8994 if test "$aros_kernel_cc" = ""; then
8995 # Extract the first word of "cc", so it can be a program name with args.
8996 set dummy cc; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 case $aros_kernel_cc in
9003 [\\/]* | ?:[\\/]*)
9004 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9014 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9018 done
9019 done
9020 IFS=$as_save_IFS
9023 esac
9025 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9026 if test -n "$aros_kernel_cc"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9028 $as_echo "$aros_kernel_cc" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9037 else
9038 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9039 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 case $aros_kernel_cc in
9046 [\\/]* | ?:[\\/]*)
9047 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9057 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9061 done
9062 done
9063 IFS=$as_save_IFS
9066 esac
9068 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9069 if test -n "$aros_kernel_cc"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9071 $as_echo "$aros_kernel_cc" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9080 if test "$aros_kernel_cc" = ""; then
9081 as_fn_error "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9083 if test "x$aros_kernel_cxx" = "x"; then
9084 aros_kernel_cxx=${kernel_tool_prefix}g++
9087 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9088 if test "$cross_compiling" = "yes" ; then
9089 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9090 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 case $aros_kernel_cxx in
9097 [\\/]* | ?:[\\/]*)
9098 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 for as_dir in $PATH
9104 IFS=$as_save_IFS
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9108 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 break 2
9112 done
9113 done
9114 IFS=$as_save_IFS
9117 esac
9119 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9120 if test -n "$aros_kernel_cxx"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9122 $as_echo "$aros_kernel_cxx" >&6; }
9123 else
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9129 else
9130 if test "$GCC" = "yes"; then
9131 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9132 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9133 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 case $aros_kernel_cxx in
9140 [\\/]* | ?:[\\/]*)
9141 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in `dirname $aros_gcc_cxx`
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9155 done
9156 done
9157 IFS=$as_save_IFS
9160 esac
9162 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9163 if test -n "$aros_kernel_cxx"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9165 $as_echo "$aros_kernel_cxx" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 if test "$aros_kernel_cxx" = ""; then
9174 # Extract the first word of "cxx", so it can be a program name with args.
9175 set dummy cxx; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 case $aros_kernel_cxx in
9182 [\\/]* | ?:[\\/]*)
9183 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9197 done
9198 done
9199 IFS=$as_save_IFS
9202 esac
9204 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9205 if test -n "$aros_kernel_cxx"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9207 $as_echo "$aros_kernel_cxx" >&6; }
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9216 else
9217 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9218 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if test "${ac_cv_path_aros_kernel_cxx+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 case $aros_kernel_cxx in
9225 [\\/]* | ?:[\\/]*)
9226 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230 for as_dir in $PATH
9232 IFS=$as_save_IFS
9233 test -z "$as_dir" && as_dir=.
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9236 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 break 2
9240 done
9241 done
9242 IFS=$as_save_IFS
9245 esac
9247 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9248 if test -n "$aros_kernel_cxx"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9250 $as_echo "$aros_kernel_cxx" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9259 # If it's set, make sure it's really there
9260 if test "x$aros_kernel_cxx" != "x" ; then
9261 if test "$aros_kernel_cxx" = ""; then
9262 as_fn_error "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9266 if test "$aros_kernel_ld" = ""; then
9267 if test "$cross_compiling" = "yes" ; then
9268 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9269 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 case $aros_kernel_ld in
9276 [\\/]* | ?:[\\/]*)
9277 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9287 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9291 done
9292 done
9293 IFS=$as_save_IFS
9296 esac
9298 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9299 if test -n "$aros_kernel_ld"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9301 $as_echo "$aros_kernel_ld" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9308 else
9309 if test "$GCC" = "yes"; then
9310 aros_gcc_ld=`$CC -print-prog-name=ld`
9311 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9312 set dummy `basename $aros_gcc_ld`; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 case $aros_kernel_ld in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in `dirname $aros_gcc_ld`
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9339 esac
9341 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9342 if test -n "$aros_kernel_ld"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9344 $as_echo "$aros_kernel_ld" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9352 if test "$aros_kernel_ld" = ""; then
9353 # Extract the first word of "ld", so it can be a program name with args.
9354 set dummy ld; ac_word=$2
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356 $as_echo_n "checking for $ac_word... " >&6; }
9357 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 case $aros_kernel_ld in
9361 [\\/]* | ?:[\\/]*)
9362 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9372 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9376 done
9377 done
9378 IFS=$as_save_IFS
9381 esac
9383 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9384 if test -n "$aros_kernel_ld"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9386 $as_echo "$aros_kernel_ld" >&6; }
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9395 else
9396 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9397 set dummy $aros_kernel_ld; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 case $aros_kernel_ld in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9424 esac
9426 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9427 if test -n "$aros_kernel_ld"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9429 $as_echo "$aros_kernel_ld" >&6; }
9430 else
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9438 if test "$aros_kernel_ld" = ""; then
9439 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9442 if test "$aros_kernel_as" = ""; then
9443 if test "$cross_compiling" = "yes" ; then
9444 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9445 set dummy ${kernel_tool_prefix}as; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 case $aros_kernel_as in
9452 [\\/]* | ?:[\\/]*)
9453 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9467 done
9468 done
9469 IFS=$as_save_IFS
9472 esac
9474 aros_kernel_as=$ac_cv_path_aros_kernel_as
9475 if test -n "$aros_kernel_as"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9477 $as_echo "$aros_kernel_as" >&6; }
9478 else
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480 $as_echo "no" >&6; }
9484 else
9485 if test "$GCC" = "yes"; then
9486 aros_gcc_as=`$CC -print-prog-name=as`
9487 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9488 set dummy `basename $aros_gcc_as`; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 case $aros_kernel_as in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in `dirname $aros_gcc_as`
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9512 IFS=$as_save_IFS
9515 esac
9517 aros_kernel_as=$ac_cv_path_aros_kernel_as
9518 if test -n "$aros_kernel_as"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9520 $as_echo "$aros_kernel_as" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9528 if test "$aros_kernel_as" = ""; then
9529 # Extract the first word of "as", so it can be a program name with args.
9530 set dummy as; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 case $aros_kernel_as in
9537 [\\/]* | ?:[\\/]*)
9538 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9548 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9552 done
9553 done
9554 IFS=$as_save_IFS
9557 esac
9559 aros_kernel_as=$ac_cv_path_aros_kernel_as
9560 if test -n "$aros_kernel_as"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9562 $as_echo "$aros_kernel_as" >&6; }
9563 else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9571 else
9572 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9573 set dummy $aros_kernel_as; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_path_aros_kernel_as+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 case $aros_kernel_as in
9580 [\\/]* | ?:[\\/]*)
9581 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9595 done
9596 done
9597 IFS=$as_save_IFS
9600 esac
9602 aros_kernel_as=$ac_cv_path_aros_kernel_as
9603 if test -n "$aros_kernel_as"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9605 $as_echo "$aros_kernel_as" >&6; }
9606 else
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9614 if test "$aros_kernel_as" = ""; then
9615 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9618 if test "$aros_kernel_ar" = ""; then
9619 if test "$cross_compiling" = "yes" ; then
9620 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9621 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 case $aros_kernel_ar in
9628 [\\/]* | ?:[\\/]*)
9629 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9639 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9648 esac
9650 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9651 if test -n "$aros_kernel_ar"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9653 $as_echo "$aros_kernel_ar" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9660 else
9661 if test "$GCC" = "yes"; then
9662 aros_gcc_ar=`$CC -print-prog-name=ar`
9663 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9664 set dummy `basename $aros_gcc_ar`; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 case $aros_kernel_ar in
9671 [\\/]* | ?:[\\/]*)
9672 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 for as_dir in `dirname $aros_gcc_ar`
9678 IFS=$as_save_IFS
9679 test -z "$as_dir" && as_dir=.
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9682 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 break 2
9686 done
9687 done
9688 IFS=$as_save_IFS
9691 esac
9693 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9694 if test -n "$aros_kernel_ar"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9696 $as_echo "$aros_kernel_ar" >&6; }
9697 else
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9704 if test "$aros_kernel_ar" = ""; then
9705 # Extract the first word of "ar", so it can be a program name with args.
9706 set dummy ar; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 case $aros_kernel_ar in
9713 [\\/]* | ?:[\\/]*)
9714 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9724 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 break 2
9728 done
9729 done
9730 IFS=$as_save_IFS
9733 esac
9735 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9736 if test -n "$aros_kernel_ar"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9738 $as_echo "$aros_kernel_ar" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9747 else
9748 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9749 set dummy $aros_kernel_ar; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_path_aros_kernel_ar+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 case $aros_kernel_ar in
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9776 esac
9778 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9779 if test -n "$aros_kernel_ar"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9781 $as_echo "$aros_kernel_ar" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9790 if test "$aros_kernel_ar" = ""; then
9791 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9794 if test "$aros_kernel_ranlib" = ""; then
9795 if test "$cross_compiling" = "yes" ; then
9796 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9797 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 case $aros_kernel_ranlib in
9804 [\\/]* | ?:[\\/]*)
9805 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9815 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9819 done
9820 done
9821 IFS=$as_save_IFS
9824 esac
9826 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9827 if test -n "$aros_kernel_ranlib"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9829 $as_echo "$aros_kernel_ranlib" >&6; }
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9836 else
9837 if test "$GCC" = "yes"; then
9838 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9839 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9840 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842 $as_echo_n "checking for $ac_word... " >&6; }
9843 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 case $aros_kernel_ranlib in
9847 [\\/]* | ?:[\\/]*)
9848 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in `dirname $aros_gcc_ranlib`
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9862 done
9863 done
9864 IFS=$as_save_IFS
9867 esac
9869 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9870 if test -n "$aros_kernel_ranlib"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9872 $as_echo "$aros_kernel_ranlib" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9880 if test "$aros_kernel_ranlib" = ""; then
9881 # Extract the first word of "ranlib", so it can be a program name with args.
9882 set dummy ranlib; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 case $aros_kernel_ranlib in
9889 [\\/]* | ?:[\\/]*)
9890 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9900 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9904 done
9905 done
9906 IFS=$as_save_IFS
9909 esac
9911 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9912 if test -n "$aros_kernel_ranlib"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9914 $as_echo "$aros_kernel_ranlib" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9923 else
9924 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9925 set dummy $aros_kernel_ranlib; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if test "${ac_cv_path_aros_kernel_ranlib+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 case $aros_kernel_ranlib in
9932 [\\/]* | ?:[\\/]*)
9933 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9947 done
9948 done
9949 IFS=$as_save_IFS
9952 esac
9954 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9955 if test -n "$aros_kernel_ranlib"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9957 $as_echo "$aros_kernel_ranlib" >&6; }
9958 else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9966 if test "$aros_kernel_ranlib" = ""; then
9967 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9970 if test "$aros_kernel_nm" = ""; then
9971 if test "$cross_compiling" = "yes" ; then
9972 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9973 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 case $aros_kernel_nm in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10000 esac
10002 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10003 if test -n "$aros_kernel_nm"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10005 $as_echo "$aros_kernel_nm" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10012 else
10013 if test "$GCC" = "yes"; then
10014 aros_gcc_nm=`$CC -print-prog-name=nm`
10015 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10016 set dummy `basename $aros_gcc_nm`; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 case $aros_kernel_nm in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in `dirname $aros_gcc_nm`
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10043 esac
10045 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10046 if test -n "$aros_kernel_nm"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10048 $as_echo "$aros_kernel_nm" >&6; }
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10056 if test "$aros_kernel_nm" = ""; then
10057 # Extract the first word of "nm", so it can be a program name with args.
10058 set dummy nm; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 case $aros_kernel_nm in
10065 [\\/]* | ?:[\\/]*)
10066 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10080 done
10081 done
10082 IFS=$as_save_IFS
10085 esac
10087 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10088 if test -n "$aros_kernel_nm"; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10090 $as_echo "$aros_kernel_nm" >&6; }
10091 else
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10099 else
10100 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10101 set dummy $aros_kernel_nm; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if test "${ac_cv_path_aros_kernel_nm+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 case $aros_kernel_nm in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10123 done
10124 done
10125 IFS=$as_save_IFS
10128 esac
10130 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10131 if test -n "$aros_kernel_nm"; then
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10133 $as_echo "$aros_kernel_nm" >&6; }
10134 else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136 $as_echo "no" >&6; }
10142 if test "$aros_kernel_nm" = ""; then
10143 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10146 if test "$aros_kernel_strip" = ""; then
10147 if test "$cross_compiling" = "yes" ; then
10148 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10149 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 case $aros_kernel_strip in
10156 [\\/]* | ?:[\\/]*)
10157 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10171 done
10172 done
10173 IFS=$as_save_IFS
10176 esac
10178 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10179 if test -n "$aros_kernel_strip"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10181 $as_echo "$aros_kernel_strip" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10188 else
10189 if test "$GCC" = "yes"; then
10190 aros_gcc_strip=`$CC -print-prog-name=strip`
10191 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10192 set dummy `basename $aros_gcc_strip`; ac_word=$2
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194 $as_echo_n "checking for $ac_word... " >&6; }
10195 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 case $aros_kernel_strip in
10199 [\\/]* | ?:[\\/]*)
10200 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in `dirname $aros_gcc_strip`
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10214 done
10215 done
10216 IFS=$as_save_IFS
10219 esac
10221 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10222 if test -n "$aros_kernel_strip"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10224 $as_echo "$aros_kernel_strip" >&6; }
10225 else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10232 if test "$aros_kernel_strip" = ""; then
10233 # Extract the first word of "strip", so it can be a program name with args.
10234 set dummy strip; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 case $aros_kernel_strip in
10241 [\\/]* | ?:[\\/]*)
10242 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246 for as_dir in $PATH
10248 IFS=$as_save_IFS
10249 test -z "$as_dir" && as_dir=.
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10252 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 break 2
10256 done
10257 done
10258 IFS=$as_save_IFS
10261 esac
10263 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10264 if test -n "$aros_kernel_strip"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10266 $as_echo "$aros_kernel_strip" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10275 else
10276 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10277 set dummy $aros_kernel_strip; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if test "${ac_cv_path_aros_kernel_strip+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 case $aros_kernel_strip in
10284 [\\/]* | ?:[\\/]*)
10285 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10299 done
10300 done
10301 IFS=$as_save_IFS
10304 esac
10306 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10307 if test -n "$aros_kernel_strip"; then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10309 $as_echo "$aros_kernel_strip" >&6; }
10310 else
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10318 if test "$aros_kernel_strip" = ""; then
10319 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10322 # Objcopy and objdump are not required for the kernel
10323 # toolchain on many architectures.
10324 # So we'll look for them, but not make them strictly required.
10326 if test "$aros_kernel_objcopy" = ""; then
10327 if test "$cross_compiling" = "yes" ; then
10328 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10329 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 case $aros_kernel_objcopy in
10336 [\\/]* | ?:[\\/]*)
10337 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10356 esac
10358 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10359 if test -n "$aros_kernel_objcopy"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10361 $as_echo "$aros_kernel_objcopy" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10368 else
10369 if test "$GCC" = "yes"; then
10370 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10371 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10372 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 case $aros_kernel_objcopy in
10379 [\\/]* | ?:[\\/]*)
10380 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in `dirname $aros_gcc_objcopy`
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10394 done
10395 done
10396 IFS=$as_save_IFS
10399 esac
10401 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10402 if test -n "$aros_kernel_objcopy"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10404 $as_echo "$aros_kernel_objcopy" >&6; }
10405 else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10412 if test "$aros_kernel_objcopy" = ""; then
10413 # Extract the first word of "objcopy", so it can be a program name with args.
10414 set dummy objcopy; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 case $aros_kernel_objcopy in
10421 [\\/]* | ?:[\\/]*)
10422 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10436 done
10437 done
10438 IFS=$as_save_IFS
10441 esac
10443 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10444 if test -n "$aros_kernel_objcopy"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10446 $as_echo "$aros_kernel_objcopy" >&6; }
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10455 else
10456 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10457 set dummy $aros_kernel_objcopy; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if test "${ac_cv_path_aros_kernel_objcopy+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10462 else
10463 case $aros_kernel_objcopy in
10464 [\\/]* | ?:[\\/]*)
10465 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10481 IFS=$as_save_IFS
10484 esac
10486 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10487 if test -n "$aros_kernel_objcopy"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10489 $as_echo "$aros_kernel_objcopy" >&6; }
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10499 if test "$aros_kernel_objdump" = ""; then
10500 if test "$cross_compiling" = "yes" ; then
10501 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10502 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 case $aros_kernel_objdump in
10509 [\\/]* | ?:[\\/]*)
10510 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10524 done
10525 done
10526 IFS=$as_save_IFS
10529 esac
10531 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10532 if test -n "$aros_kernel_objdump"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10534 $as_echo "$aros_kernel_objdump" >&6; }
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10541 else
10542 if test "$GCC" = "yes"; then
10543 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10544 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10545 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547 $as_echo_n "checking for $ac_word... " >&6; }
10548 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 case $aros_kernel_objdump in
10552 [\\/]* | ?:[\\/]*)
10553 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 for as_dir in `dirname $aros_gcc_objdump`
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10563 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10567 done
10568 done
10569 IFS=$as_save_IFS
10572 esac
10574 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10575 if test -n "$aros_kernel_objdump"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10577 $as_echo "$aros_kernel_objdump" >&6; }
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10585 if test "$aros_kernel_objdump" = ""; then
10586 # Extract the first word of "objdump", so it can be a program name with args.
10587 set dummy objdump; ac_word=$2
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 $as_echo_n "checking for $ac_word... " >&6; }
10590 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 case $aros_kernel_objdump in
10594 [\\/]* | ?:[\\/]*)
10595 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10609 done
10610 done
10611 IFS=$as_save_IFS
10614 esac
10616 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10617 if test -n "$aros_kernel_objdump"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10619 $as_echo "$aros_kernel_objdump" >&6; }
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10628 else
10629 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10630 set dummy $aros_kernel_objdump; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_path_aros_kernel_objdump+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 case $aros_kernel_objdump in
10637 [\\/]* | ?:[\\/]*)
10638 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10652 done
10653 done
10654 IFS=$as_save_IFS
10657 esac
10659 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10660 if test -n "$aros_kernel_objdump"; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10662 $as_echo "$aros_kernel_objdump" >&6; }
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10671 if test "x${crosstools}" != "xyes" ; then
10672 if test "$aros_kernel_objcopy" = ""; then
10673 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10675 if test "$aros_kernel_objdump" = ""; then
10676 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10682 $as_echo_n "checking which target tools to use... " >&6; }
10683 if test "$crosstools" = "yes"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10685 $as_echo "$target_tool_prefix" >&6; }
10686 # We are are building AROS crosstools
10687 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10688 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10689 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10690 orig_target_cpp="${tmp_tool_prefix}cpp"
10691 orig_target_ld="${tmp_tool_prefix}ld"
10692 orig_target_as="${tmp_tool_prefix}as"
10693 orig_target_ar="${tmp_tool_prefix}ar"
10694 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10695 orig_target_nm="${tmp_tool_prefix}nm"
10696 orig_target_strip="${tmp_tool_prefix}strip"
10697 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10698 orig_target_objdump="${tmp_tool_prefix}objdump"
10699 else
10700 # Determine whether AROS or ELF tools should be used
10701 if test "$aros_tool_prefix" = "none"; then
10702 aros_tool_prefix="${elf_tool_prefix}"
10703 crosstools_cxx_target=tools-crosstools
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10707 $as_echo "$aros_tool_prefix" >&6; }
10708 # We are *not* building AROS crosstools - use the AROS or ELF tools
10710 if test "${aros_tool_prefix}cpp" = ""; then
10711 if test "$cross_compiling" = "yes" ; then
10712 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10713 set dummy ${target_tool_prefix}cpp; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 case $orig_target_cpp in
10720 [\\/]* | ?:[\\/]*)
10721 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10731 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10735 done
10736 done
10737 IFS=$as_save_IFS
10740 esac
10742 orig_target_cpp=$ac_cv_path_orig_target_cpp
10743 if test -n "$orig_target_cpp"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10745 $as_echo "$orig_target_cpp" >&6; }
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10752 else
10753 if test "$GCC" = "yes"; then
10754 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10755 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10756 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 case $orig_target_cpp in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in `dirname $aros_gcc_cpp`
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 orig_target_cpp=$ac_cv_path_orig_target_cpp
10786 if test -n "$orig_target_cpp"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10788 $as_echo "$orig_target_cpp" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10796 if test "$orig_target_cpp" = ""; then
10797 # Extract the first word of "cpp", so it can be a program name with args.
10798 set dummy cpp; ac_word=$2
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800 $as_echo_n "checking for $ac_word... " >&6; }
10801 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 case $orig_target_cpp in
10805 [\\/]* | ?:[\\/]*)
10806 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10820 done
10821 done
10822 IFS=$as_save_IFS
10825 esac
10827 orig_target_cpp=$ac_cv_path_orig_target_cpp
10828 if test -n "$orig_target_cpp"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10830 $as_echo "$orig_target_cpp" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10839 else
10840 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10841 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if test "${ac_cv_path_orig_target_cpp+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 case $orig_target_cpp in
10848 [\\/]* | ?:[\\/]*)
10849 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10859 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10863 done
10864 done
10865 IFS=$as_save_IFS
10868 esac
10870 orig_target_cpp=$ac_cv_path_orig_target_cpp
10871 if test -n "$orig_target_cpp"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10873 $as_echo "$orig_target_cpp" >&6; }
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10882 if test "$orig_target_cpp" = ""; then
10883 as_fn_error "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10886 if test "${aros_tool_prefix}gcc" = ""; then
10887 if test "$cross_compiling" = "yes" ; then
10888 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10889 set dummy ${target_tool_prefix}gcc; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 case $orig_target_cc in
10896 [\\/]* | ?:[\\/]*)
10897 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10907 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10913 IFS=$as_save_IFS
10916 esac
10918 orig_target_cc=$ac_cv_path_orig_target_cc
10919 if test -n "$orig_target_cc"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10921 $as_echo "$orig_target_cc" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10928 else
10929 if test "$GCC" = "yes"; then
10930 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10931 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10932 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 case $orig_target_cc in
10939 [\\/]* | ?:[\\/]*)
10940 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in `dirname $aros_gcc_gcc`
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10954 done
10955 done
10956 IFS=$as_save_IFS
10959 esac
10961 orig_target_cc=$ac_cv_path_orig_target_cc
10962 if test -n "$orig_target_cc"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10964 $as_echo "$orig_target_cc" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10972 if test "$orig_target_cc" = ""; then
10973 # Extract the first word of "gcc", so it can be a program name with args.
10974 set dummy gcc; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 case $orig_target_cc in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10996 done
10997 done
10998 IFS=$as_save_IFS
11001 esac
11003 orig_target_cc=$ac_cv_path_orig_target_cc
11004 if test -n "$orig_target_cc"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11006 $as_echo "$orig_target_cc" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11015 else
11016 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11017 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if test "${ac_cv_path_orig_target_cc+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 case $orig_target_cc in
11024 [\\/]* | ?:[\\/]*)
11025 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11039 done
11040 done
11041 IFS=$as_save_IFS
11044 esac
11046 orig_target_cc=$ac_cv_path_orig_target_cc
11047 if test -n "$orig_target_cc"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11049 $as_echo "$orig_target_cc" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11058 if test "$orig_target_cc" = ""; then
11059 as_fn_error "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11061 if test "x${crosstools_cxx_target}" = "x" ; then
11063 if test "${aros_tool_prefix}g++" = ""; then
11064 if test "$cross_compiling" = "yes" ; then
11065 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11066 set dummy ${target_tool_prefix}g++; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 case $orig_target_cxx in
11073 [\\/]* | ?:[\\/]*)
11074 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in $PATH
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11088 done
11089 done
11090 IFS=$as_save_IFS
11093 esac
11095 orig_target_cxx=$ac_cv_path_orig_target_cxx
11096 if test -n "$orig_target_cxx"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11098 $as_echo "$orig_target_cxx" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11105 else
11106 if test "$GCC" = "yes"; then
11107 aros_gcc_g++=`$CC -print-prog-name=g++`
11108 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11109 set dummy `basename $aros_gcc_g++`; ac_word=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 case $orig_target_cxx in
11116 [\\/]* | ?:[\\/]*)
11117 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in `dirname $aros_gcc_g++`
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11127 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11129 break 2
11131 done
11132 done
11133 IFS=$as_save_IFS
11136 esac
11138 orig_target_cxx=$ac_cv_path_orig_target_cxx
11139 if test -n "$orig_target_cxx"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11141 $as_echo "$orig_target_cxx" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11149 if test "$orig_target_cxx" = ""; then
11150 # Extract the first word of "g++", so it can be a program name with args.
11151 set dummy g++; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 case $orig_target_cxx in
11158 [\\/]* | ?:[\\/]*)
11159 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11169 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11173 done
11174 done
11175 IFS=$as_save_IFS
11178 esac
11180 orig_target_cxx=$ac_cv_path_orig_target_cxx
11181 if test -n "$orig_target_cxx"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11183 $as_echo "$orig_target_cxx" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11192 else
11193 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11194 set dummy ${aros_tool_prefix}g++; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if test "${ac_cv_path_orig_target_cxx+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 case $orig_target_cxx in
11201 [\\/]* | ?:[\\/]*)
11202 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11212 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11216 done
11217 done
11218 IFS=$as_save_IFS
11221 esac
11223 orig_target_cxx=$ac_cv_path_orig_target_cxx
11224 if test -n "$orig_target_cxx"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11226 $as_echo "$orig_target_cxx" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11235 if test "$orig_target_cxx" = ""; then
11236 as_fn_error "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11240 if test "${aros_tool_prefix}ld" = ""; then
11241 if test "$cross_compiling" = "yes" ; then
11242 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11243 set dummy ${target_tool_prefix}gcc; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 case $orig_target_ld in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11270 esac
11272 orig_target_ld=$ac_cv_path_orig_target_ld
11273 if test -n "$orig_target_ld"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11275 $as_echo "$orig_target_ld" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11282 else
11283 if test "$GCC" = "yes"; then
11284 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11285 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11286 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 case $orig_target_ld in
11293 [\\/]* | ?:[\\/]*)
11294 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in `dirname $aros_gcc_gcc`
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11304 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11308 done
11309 done
11310 IFS=$as_save_IFS
11313 esac
11315 orig_target_ld=$ac_cv_path_orig_target_ld
11316 if test -n "$orig_target_ld"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11318 $as_echo "$orig_target_ld" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11326 if test "$orig_target_ld" = ""; then
11327 # Extract the first word of "gcc", so it can be a program name with args.
11328 set dummy gcc; ac_word=$2
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11330 $as_echo_n "checking for $ac_word... " >&6; }
11331 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 case $orig_target_ld in
11335 [\\/]* | ?:[\\/]*)
11336 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11346 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11350 done
11351 done
11352 IFS=$as_save_IFS
11355 esac
11357 orig_target_ld=$ac_cv_path_orig_target_ld
11358 if test -n "$orig_target_ld"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11360 $as_echo "$orig_target_ld" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11369 else
11370 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11371 set dummy ${aros_tool_prefix}ld; ac_word=$2
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if test "${ac_cv_path_orig_target_ld+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 case $orig_target_ld in
11378 [\\/]* | ?:[\\/]*)
11379 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391 break 2
11393 done
11394 done
11395 IFS=$as_save_IFS
11398 esac
11400 orig_target_ld=$ac_cv_path_orig_target_ld
11401 if test -n "$orig_target_ld"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11403 $as_echo "$orig_target_ld" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11412 if test "$orig_target_ld" = ""; then
11413 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11416 if test "${aros_tool_prefix}as" = ""; then
11417 if test "$cross_compiling" = "yes" ; then
11418 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11419 set dummy ${target_tool_prefix}as; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 case $orig_target_as in
11426 [\\/]* | ?:[\\/]*)
11427 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11437 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11446 esac
11448 orig_target_as=$ac_cv_path_orig_target_as
11449 if test -n "$orig_target_as"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11451 $as_echo "$orig_target_as" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11458 else
11459 if test "$GCC" = "yes"; then
11460 aros_gcc_as=`$CC -print-prog-name=as`
11461 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11462 set dummy `basename $aros_gcc_as`; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 case $orig_target_as in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in `dirname $aros_gcc_as`
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11489 esac
11491 orig_target_as=$ac_cv_path_orig_target_as
11492 if test -n "$orig_target_as"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11494 $as_echo "$orig_target_as" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11502 if test "$orig_target_as" = ""; then
11503 # Extract the first word of "as", so it can be a program name with args.
11504 set dummy as; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 case $orig_target_as in
11511 [\\/]* | ?:[\\/]*)
11512 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11526 done
11527 done
11528 IFS=$as_save_IFS
11531 esac
11533 orig_target_as=$ac_cv_path_orig_target_as
11534 if test -n "$orig_target_as"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11536 $as_echo "$orig_target_as" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11545 else
11546 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11547 set dummy ${aros_tool_prefix}as; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if test "${ac_cv_path_orig_target_as+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 case $orig_target_as in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11569 done
11570 done
11571 IFS=$as_save_IFS
11574 esac
11576 orig_target_as=$ac_cv_path_orig_target_as
11577 if test -n "$orig_target_as"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11579 $as_echo "$orig_target_as" >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11588 if test "$orig_target_as" = ""; then
11589 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11592 if test "${aros_tool_prefix}ar" = ""; then
11593 if test "$cross_compiling" = "yes" ; then
11594 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11595 set dummy ${target_tool_prefix}ar; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $orig_target_ar in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11622 esac
11624 orig_target_ar=$ac_cv_path_orig_target_ar
11625 if test -n "$orig_target_ar"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11627 $as_echo "$orig_target_ar" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11634 else
11635 if test "$GCC" = "yes"; then
11636 aros_gcc_ar=`$CC -print-prog-name=ar`
11637 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11638 set dummy `basename $aros_gcc_ar`; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 case $orig_target_ar in
11645 [\\/]* | ?:[\\/]*)
11646 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in `dirname $aros_gcc_ar`
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11660 done
11661 done
11662 IFS=$as_save_IFS
11665 esac
11667 orig_target_ar=$ac_cv_path_orig_target_ar
11668 if test -n "$orig_target_ar"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11670 $as_echo "$orig_target_ar" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11678 if test "$orig_target_ar" = ""; then
11679 # Extract the first word of "ar", so it can be a program name with args.
11680 set dummy ar; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 case $orig_target_ar in
11687 [\\/]* | ?:[\\/]*)
11688 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11707 esac
11709 orig_target_ar=$ac_cv_path_orig_target_ar
11710 if test -n "$orig_target_ar"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11712 $as_echo "$orig_target_ar" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11721 else
11722 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11723 set dummy ${aros_tool_prefix}ar; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if test "${ac_cv_path_orig_target_ar+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 case $orig_target_ar in
11730 [\\/]* | ?:[\\/]*)
11731 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11741 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11745 done
11746 done
11747 IFS=$as_save_IFS
11750 esac
11752 orig_target_ar=$ac_cv_path_orig_target_ar
11753 if test -n "$orig_target_ar"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11755 $as_echo "$orig_target_ar" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11764 if test "$orig_target_ar" = ""; then
11765 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11768 if test "${aros_tool_prefix}ranlib" = ""; then
11769 if test "$cross_compiling" = "yes" ; then
11770 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11771 set dummy ${target_tool_prefix}ar; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $orig_target_ranlib in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11789 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11798 esac
11800 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11801 if test -n "$orig_target_ranlib"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11803 $as_echo "$orig_target_ranlib" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11810 else
11811 if test "$GCC" = "yes"; then
11812 aros_gcc_ar=`$CC -print-prog-name=ar`
11813 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11814 set dummy `basename $aros_gcc_ar`; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 case $orig_target_ranlib in
11821 [\\/]* | ?:[\\/]*)
11822 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in `dirname $aros_gcc_ar`
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11832 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11836 done
11837 done
11838 IFS=$as_save_IFS
11841 esac
11843 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11844 if test -n "$orig_target_ranlib"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11846 $as_echo "$orig_target_ranlib" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11854 if test "$orig_target_ranlib" = ""; then
11855 # Extract the first word of "ar", so it can be a program name with args.
11856 set dummy ar; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 case $orig_target_ranlib in
11863 [\\/]* | ?:[\\/]*)
11864 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11878 done
11879 done
11880 IFS=$as_save_IFS
11883 esac
11885 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11886 if test -n "$orig_target_ranlib"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11888 $as_echo "$orig_target_ranlib" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11897 else
11898 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11899 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if test "${ac_cv_path_orig_target_ranlib+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 case $orig_target_ranlib in
11906 [\\/]* | ?:[\\/]*)
11907 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 break 2
11921 done
11922 done
11923 IFS=$as_save_IFS
11926 esac
11928 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11929 if test -n "$orig_target_ranlib"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11931 $as_echo "$orig_target_ranlib" >&6; }
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11940 if test "$orig_target_ranlib" = ""; then
11941 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11944 if test "${aros_tool_prefix}nm" = ""; then
11945 if test "$cross_compiling" = "yes" ; then
11946 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11947 set dummy ${target_tool_prefix}nm; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $orig_target_nm in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11974 esac
11976 orig_target_nm=$ac_cv_path_orig_target_nm
11977 if test -n "$orig_target_nm"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11979 $as_echo "$orig_target_nm" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11986 else
11987 if test "$GCC" = "yes"; then
11988 aros_gcc_nm=`$CC -print-prog-name=nm`
11989 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11990 set dummy `basename $aros_gcc_nm`; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 case $orig_target_nm in
11997 [\\/]* | ?:[\\/]*)
11998 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in `dirname $aros_gcc_nm`
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12012 done
12013 done
12014 IFS=$as_save_IFS
12017 esac
12019 orig_target_nm=$ac_cv_path_orig_target_nm
12020 if test -n "$orig_target_nm"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12022 $as_echo "$orig_target_nm" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12030 if test "$orig_target_nm" = ""; then
12031 # Extract the first word of "nm", so it can be a program name with args.
12032 set dummy nm; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 case $orig_target_nm in
12039 [\\/]* | ?:[\\/]*)
12040 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12054 done
12055 done
12056 IFS=$as_save_IFS
12059 esac
12061 orig_target_nm=$ac_cv_path_orig_target_nm
12062 if test -n "$orig_target_nm"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12064 $as_echo "$orig_target_nm" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12073 else
12074 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12075 set dummy ${aros_tool_prefix}nm; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if test "${ac_cv_path_orig_target_nm+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 case $orig_target_nm in
12082 [\\/]* | ?:[\\/]*)
12083 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12093 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12097 done
12098 done
12099 IFS=$as_save_IFS
12102 esac
12104 orig_target_nm=$ac_cv_path_orig_target_nm
12105 if test -n "$orig_target_nm"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12107 $as_echo "$orig_target_nm" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12116 if test "$orig_target_nm" = ""; then
12117 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12120 if test "${aros_tool_prefix}strip" = ""; then
12121 if test "$cross_compiling" = "yes" ; then
12122 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12123 set dummy ${target_tool_prefix}strip; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 case $orig_target_strip in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12145 done
12146 done
12147 IFS=$as_save_IFS
12150 esac
12152 orig_target_strip=$ac_cv_path_orig_target_strip
12153 if test -n "$orig_target_strip"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12155 $as_echo "$orig_target_strip" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12162 else
12163 if test "$GCC" = "yes"; then
12164 aros_gcc_strip=`$CC -print-prog-name=strip`
12165 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12166 set dummy `basename $aros_gcc_strip`; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 case $orig_target_strip in
12173 [\\/]* | ?:[\\/]*)
12174 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in `dirname $aros_gcc_strip`
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12188 done
12189 done
12190 IFS=$as_save_IFS
12193 esac
12195 orig_target_strip=$ac_cv_path_orig_target_strip
12196 if test -n "$orig_target_strip"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12198 $as_echo "$orig_target_strip" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12206 if test "$orig_target_strip" = ""; then
12207 # Extract the first word of "strip", so it can be a program name with args.
12208 set dummy strip; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 case $orig_target_strip in
12215 [\\/]* | ?:[\\/]*)
12216 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12230 done
12231 done
12232 IFS=$as_save_IFS
12235 esac
12237 orig_target_strip=$ac_cv_path_orig_target_strip
12238 if test -n "$orig_target_strip"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12240 $as_echo "$orig_target_strip" >&6; }
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12249 else
12250 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12251 set dummy ${aros_tool_prefix}strip; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if test "${ac_cv_path_orig_target_strip+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 case $orig_target_strip in
12258 [\\/]* | ?:[\\/]*)
12259 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12273 done
12274 done
12275 IFS=$as_save_IFS
12278 esac
12280 orig_target_strip=$ac_cv_path_orig_target_strip
12281 if test -n "$orig_target_strip"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12283 $as_echo "$orig_target_strip" >&6; }
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12292 if test "$orig_target_strip" = ""; then
12293 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12296 if test "${aros_tool_prefix}objcopy" = ""; then
12297 if test "$cross_compiling" = "yes" ; then
12298 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12299 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 case $orig_target_objcopy in
12306 [\\/]* | ?:[\\/]*)
12307 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12317 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12321 done
12322 done
12323 IFS=$as_save_IFS
12326 esac
12328 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12329 if test -n "$orig_target_objcopy"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12331 $as_echo "$orig_target_objcopy" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12338 else
12339 if test "$GCC" = "yes"; then
12340 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12341 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12342 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 case $orig_target_objcopy in
12349 [\\/]* | ?:[\\/]*)
12350 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in `dirname $aros_gcc_objcopy`
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12364 done
12365 done
12366 IFS=$as_save_IFS
12369 esac
12371 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12372 if test -n "$orig_target_objcopy"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12374 $as_echo "$orig_target_objcopy" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12382 if test "$orig_target_objcopy" = ""; then
12383 # Extract the first word of "objcopy", so it can be a program name with args.
12384 set dummy objcopy; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 case $orig_target_objcopy in
12391 [\\/]* | ?:[\\/]*)
12392 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396 for as_dir in $PATH
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12402 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 break 2
12406 done
12407 done
12408 IFS=$as_save_IFS
12411 esac
12413 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12414 if test -n "$orig_target_objcopy"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12416 $as_echo "$orig_target_objcopy" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12425 else
12426 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12427 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_path_orig_target_objcopy+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 case $orig_target_objcopy in
12434 [\\/]* | ?:[\\/]*)
12435 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12449 done
12450 done
12451 IFS=$as_save_IFS
12454 esac
12456 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12457 if test -n "$orig_target_objcopy"; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12459 $as_echo "$orig_target_objcopy" >&6; }
12460 else
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12468 if test "$orig_target_objcopy" = ""; then
12469 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12472 if test "${aros_tool_prefix}objdump" = ""; then
12473 if test "$cross_compiling" = "yes" ; then
12474 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12475 set dummy ${target_tool_prefix}objdump; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 case $orig_target_objdump in
12482 [\\/]* | ?:[\\/]*)
12483 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12493 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12497 done
12498 done
12499 IFS=$as_save_IFS
12502 esac
12504 orig_target_objdump=$ac_cv_path_orig_target_objdump
12505 if test -n "$orig_target_objdump"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12507 $as_echo "$orig_target_objdump" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12514 else
12515 if test "$GCC" = "yes"; then
12516 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12517 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12518 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 case $orig_target_objdump in
12525 [\\/]* | ?:[\\/]*)
12526 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in `dirname $aros_gcc_objdump`
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12536 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12540 done
12541 done
12542 IFS=$as_save_IFS
12545 esac
12547 orig_target_objdump=$ac_cv_path_orig_target_objdump
12548 if test -n "$orig_target_objdump"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12550 $as_echo "$orig_target_objdump" >&6; }
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12558 if test "$orig_target_objdump" = ""; then
12559 # Extract the first word of "objdump", so it can be a program name with args.
12560 set dummy objdump; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562 $as_echo_n "checking for $ac_word... " >&6; }
12563 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 case $orig_target_objdump in
12567 [\\/]* | ?:[\\/]*)
12568 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
12577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12578 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 break 2
12582 done
12583 done
12584 IFS=$as_save_IFS
12587 esac
12589 orig_target_objdump=$ac_cv_path_orig_target_objdump
12590 if test -n "$orig_target_objdump"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12592 $as_echo "$orig_target_objdump" >&6; }
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12601 else
12602 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12603 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if test "${ac_cv_path_orig_target_objdump+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 case $orig_target_objdump in
12610 [\\/]* | ?:[\\/]*)
12611 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12625 done
12626 done
12627 IFS=$as_save_IFS
12630 esac
12632 orig_target_objdump=$ac_cv_path_orig_target_objdump
12633 if test -n "$orig_target_objdump"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12635 $as_echo "$orig_target_objdump" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12644 if test "$orig_target_objdump" = ""; then
12645 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12649 if test "$kernel_tool_prefix" = "none" ; then
12650 # No kernel tools specified
12651 # Assume target tools == kernel tools with ELF wrapper
12652 aros_kernel_cc=$orig_target_cc
12653 aros_kernel_cxx=$orig_target_cxx
12654 aros_kernel_cpp=$orig_target_cpp
12655 aros_kernel_ld=$orig_target_ld
12656 aros_kernel_as=$orig_target_as
12657 aros_kernel_ar=$orig_target_ar
12658 aros_kernel_ranlib=$orig_target_ranlib
12659 aros_kernel_nm=$orig_target_nm
12660 aros_kernel_strip=$orig_target_strip
12661 aros_kernel_objcopy=$orig_target_objcopy
12662 aros_kernel_objdump=$orig_target_objdump
12663 use_kernel_cc_wrapper=yes
12666 # At this point, all aros_kernel_* and aros_target_*
12667 # tools should be set up correctly
12669 CC="$aros_kernel_cc $kernel_tool_flags"
12670 CPP="$aros_kernel_cpp"
12672 #-----------------------------------------------------------------------------
12674 # Disable pointer-signedness warnings if the compiler recognises the option
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12677 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12678 save_cflags="$CFLAGS"
12679 if test "$crosstools" != "yes" ; then
12680 CFLAGS="$CFLAGS -Wno-pointer-sign"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12685 main ()
12689 return 0;
12691 _ACEOF
12692 if ac_fn_c_try_compile "$LINENO"; then :
12693 use_no_sign_warning="yes"
12694 else
12695 use_no_sign_warning="no"
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 else
12699 # we do know it is supported for the smallest version of gcc we are going to build
12700 # we assume it's also supported by later versions
12701 use_no_sign_warning=yes
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12704 $as_echo "$use_no_sign_warning" >&6; }
12705 if test "x-$use_no_sign_warning" = "x-yes" ; then
12706 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12708 CFLAGS="$save_cflags"
12710 #-----------------------------------------------------------------------------
12712 # Find all the tools we need to compile. This could be cross-compiling
12713 # though! If that is the case we use the GNU form of the target and
12714 # simply add this to the front of the binary name. This is rather simple,
12715 # but it should work under most circumstances.
12717 # The default tools are to use the same as the host, but only if the
12718 # host and target CPU are the same. With GCC this is normally enough.
12721 aros_cc_pre=""
12722 aros_shared_ld="$aros_host_ld"
12724 aros_target_mkdep="$aros_host_mkdep"
12726 # The default tools executables to be linked to.
12727 if test "$rescomp" != ""; then
12728 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12729 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 case $aros_kernel_rescomp in
12736 [\\/]* | ?:[\\/]*)
12737 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12751 done
12752 done
12753 IFS=$as_save_IFS
12756 esac
12758 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12759 if test -n "$aros_kernel_rescomp"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12761 $as_echo "$aros_kernel_rescomp" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12768 if test "$aros_kernel_rescomp" = ""; then
12769 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12773 # Set up the sources for the symlink farm
12774 if test "$crosstools" = "yes"; then
12775 crosstools_target=tools-crosstools
12778 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12779 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12782 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12783 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12784 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12785 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12786 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12787 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12788 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12790 # aros_cc_pre is a variable that is added to the front of the compiler name
12791 # in the generated aros-gcc shell script. We need this to enable the cache
12792 # to work across cleaned builds. Also, support DISTCC using the correct
12793 # environment variable.
12796 if test "x${DISTCC}" != "x" ; then
12797 if test "x${CCACHE}" != "x" ; then
12798 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12799 else
12800 aros_cc_pre="${DISTCC} "
12802 else
12803 if test "x${CCACHE}" != "x" ; then
12804 aros_cc_pre="${CCACHE} "
12808 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12810 aros_target_nostdinc_cflags=-nostdinc
12812 aros_target_nostartup_ldflags=-nostartfiles
12814 aros_target_nix_ldflags=-nix
12816 aros_target_detach_ldflags=-detach
12818 aros_target_nostdlib_ldflags=-nostdlib
12821 # Target tools
12822 if test "$crosstools" != "yes"; then
12823 if test "$GCC" = "yes"; then
12824 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12826 else
12827 # We do not know which gcc version we are going to build and what we need to know
12828 # here is different for different versions so this will be set later during the
12829 # build of crosstools.
12830 aros_target_cc_path=@aros_target_cc_path@
12832 aros_target_cpp="${prefix}cpp"
12833 aros_target_cc="${prefix}gcc"
12834 aros_target_cxx="${prefix}g++"
12835 aros_target_as="${prefix}as"
12836 aros_target_ld="${prefix}ld"
12837 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12838 aros_target_objcopy="${prefix}objcopy"
12839 aros_target_objdump="${prefix}objdump"
12840 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12841 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12842 aros_target_strip="${prefix}strip"
12843 aros_plain_nm="${prefix}nm"
12844 aros_plain_ar="${prefix}ar"
12846 # Check whether --enable-includes was given.
12847 if test "${enable_includes+set}" = set; then :
12848 enableval=$enable_includes; aros_target_incl=$enable_includes
12849 else
12850 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12854 if test "$aros_kernel_includes" = ""; then
12855 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12856 aros_kernel_includes="-isystem $aros_target_incl"
12860 if test "$aros_kernel_includes" != "" ; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12862 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12863 if test "$aros_kernel_cc_includes" = "" ; then
12864 # Try to guess where the directory is.
12865 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12866 if test -d $aros_kernel_cc_includes; then
12867 # Check if there is also an include-fixed directory and add it
12868 # to kernel compiler's include path as it may contain some of
12869 # the headers we need.
12870 if test -d "$aros_kernel_cc_includes"-fixed; then
12871 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12873 # Check for specific includes directory. Neede for Ubuntu 11.10
12874 if test -d "/usr/include/i386-linux-gnu"; then
12875 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12877 else
12878 # The directory doesn't exist, we need to do some more work.
12879 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12881 # These are the headers we're looking for.
12882 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12883 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12884 zutil.h stdint.h"
12886 dirs=
12887 for h in $headers; do
12888 # Which other headers are needed by each of the above?
12889 deps=$(echo "#include <$h>" | \
12890 $aros_kernel_cc -E -M - 2>/dev/null | \
12891 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12893 # Copy all the needed headers to a directory beneath gendir.
12894 for d in $deps; do
12895 h=$(basename $d)
12896 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12897 sed -n "s,^.*/include\(/.*\),\1,p")
12898 ! test -d $dir && mkdir -p $dir
12899 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12900 done
12901 done
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12905 $as_echo "$aros_kernel_cc_includes" >&6; }
12906 # Adding -nostdinc to kernel includes as they are always used together.
12907 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12910 if test "$crosstools" != "yes"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12912 $as_echo_n "checking for the target compiler's include path... " >&6; }
12913 if test "$aros_target_cc_includes" = "" ; then
12914 #try to guess where the directory is
12915 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12916 if ! test -d $aros_target_cc_includes; then
12917 #the directory doesn't exist, we need to do some more work
12918 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12920 #these are the headers we're looking for
12921 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12922 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12923 zutil.h"
12925 dirs=
12926 for h in $headers; do
12927 #which other headers each of the above headers needs?
12928 deps=$(echo "#include <$h>" | \
12929 $orig_target_cc -E -M - 2>/dev/null | \
12930 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12932 #copy all the needed headers to a directory beneath gendir
12933 for d in $deps; do
12934 h=$(basename $d)
12935 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12936 sed -n "s,^.*/include\(/.*\),\1,p")
12937 ! test -d $dir && mkdir -p $dir
12938 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12939 done
12940 done
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12944 $as_echo "$aros_target_cc_includes" >&6; }
12945 else
12946 # We do not know which gcc version we are going to build and what we need to know
12947 # here is different for different versions so this will be set later during the
12948 # build of crosstools.
12949 aros_target_cc_includes=@aros_target_cc_includes@
12953 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12954 # On GCC >= 4.0 -iquote should be used
12957 save_cc="$CC"
12958 save_cflags="$CFLAGS"
12959 CFLAGS="-iquote."
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12961 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12962 if test "x-$crosstools" != "x-yes"; then
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12967 main ()
12971 return 0;
12973 _ACEOF
12974 if ac_fn_c_try_compile "$LINENO"; then :
12975 has_iquote="yes"
12976 else
12977 has_iquote="no"
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 else
12981 # we do know it is supported for the smallest version of gcc we are going to build
12982 # we assume it's also supported by later versions
12983 has_iquote=yes
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12986 $as_echo "$has_iquote" >&6; }
12987 if test "x-$has_iquote" = "x-yes" ; then
12988 host_cflags_iquote=-iquote
12989 host_cflags_iquote_end=
12990 else
12991 host_cflags_iquote=-I
12992 host_cflags_iquote_end=-I-
12994 kernel_cflags_iquote=$host_cflags_iquote
12995 kernel_cflags_iquote_end=$host_cflags_iquote_end
12996 if test "x-$cross_compiling" = "x-yes"; then
12997 CC="$aros_kernel_cc"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12999 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13000 if test "x-$crosstools" != "x-yes"; then
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13005 main ()
13009 return 0;
13011 _ACEOF
13012 if ac_fn_c_try_compile "$LINENO"; then :
13013 use_no_stack_protector="yes"
13014 else
13015 use_no_stack_protector="no"
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 else
13019 # we do know it is supported for the smallest version of gcc we are going to build
13020 # we assume it's also supported by later versions
13021 use_no_stack_protector=yes
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13024 $as_echo "$use_no_stack_protector" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13026 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13027 if test "x-$crosstools" != "x-yes"; then
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13032 main ()
13036 return 0;
13038 _ACEOF
13039 if ac_fn_c_try_compile "$LINENO"; then :
13040 has_iquote="yes"
13041 else
13042 has_iquote="no"
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 else
13046 # we do know it is supported for the smallest version of gcc we are going to build
13047 # we assume it's also supported by later versions
13048 has_iquote=yes
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13051 $as_echo "$has_iquote" >&6; }
13052 if test "x-$has_iquote" = "x-yes" ; then
13053 kernel_cflags_iquote=-iquote
13054 kernel_cflags_iquote_end=
13055 else
13056 kernel_cflags_iquote=-I
13057 kernel_cflags_iquote_end=-I-
13060 aros_cflags_iquote=$kernel_cflags_iquote
13061 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13062 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13063 CC="$orig_target_cc"
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13065 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13066 if test "x-$crosstools" != "x-yes"; then
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13071 main ()
13075 return 0;
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 has_iquote="yes"
13080 else
13081 has_iquote="no"
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 else
13085 # we do know it is supported for the smallest version of gcc we are going to build
13086 # we assume it's also supported by later versions
13087 has_iquote=yes
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13090 $as_echo "$has_iquote" >&6; }
13091 if test "x-$has_iquote" = "x-yes" ; then
13092 aros_cflags_iquote=-iquote
13093 aros_cflags_iquote_end=
13094 else
13095 aros_cflags_iquote=-I
13096 aros_cflags_iquote_end=-I-
13099 if test "x-$use_no_stack_protector" = "x-yes" ; then
13100 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13104 #-----------------------------------------------------------------------------
13106 # Check if the target compiler supports some options used for delinting:
13107 # -Wunused-but-set-variable
13108 # -Warray-bounds
13109 # -Wenum-compare
13110 # -Wstrict-overflow
13111 # -Wformat-security
13113 if test "x-$crosstools" != "x-yes"; then
13114 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13115 CC="$orig_target_cc"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13118 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13119 CFLAGS=-Wunused-but-set-variable
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13124 main ()
13128 return 0;
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132 aros_unused_but_set_variable="yes"
13133 else
13134 aros_unused_but_set_variable="no"
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13138 $as_echo "$aros_unused_but_set_variable" >&6; }
13139 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13140 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13144 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13145 CFLAGS=-Warray-bounds
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13150 main ()
13154 return 0;
13156 _ACEOF
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158 aros_array_bounds="yes"
13159 else
13160 aros_array_bounds="no"
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13164 $as_echo "$aros_array_bounds" >&6; }
13165 if test "x-$aros_array_bounds" = "x-yes" ; then
13166 aros_cflags_array_bounds=-Wno-array-bounds
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13170 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13171 CFLAGS=-Wenum-compare
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13176 main ()
13180 return 0;
13182 _ACEOF
13183 if ac_fn_c_try_compile "$LINENO"; then :
13184 aros_enum_compare="yes"
13185 else
13186 aros_enum_compare="no"
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13190 $as_echo "$aros_enum_compare" >&6; }
13191 if test "x-$aros_enum_compare" = "x-yes" ; then
13192 aros_cflags_enum_compare=-Wno-enum-compare
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13196 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13197 CFLAGS=-Wstrict-overflow
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13202 main ()
13206 return 0;
13208 _ACEOF
13209 if ac_fn_c_try_compile "$LINENO"; then :
13210 aros_strict_overflow="yes"
13211 else
13212 aros_strict_overflow="no"
13214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13216 $as_echo "$aros_strict_overflow" >&6; }
13217 if test "x-$aros_strict_overflow" = "x-yes" ; then
13218 aros_cflags_strict_overflow=-Wno-strict-overflow
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13222 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13223 CFLAGS=-Wformat-security
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13228 main ()
13232 return 0;
13234 _ACEOF
13235 if ac_fn_c_try_compile "$LINENO"; then :
13236 aros_format_security="yes"
13237 else
13238 aros_format_security="no"
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13242 $as_echo "$aros_format_security" >&6; }
13243 if test "x-$aros_format_security" = "x-yes" ; then
13244 aros_cflags_format_security=-Wno-format-security
13246 else
13247 # We do not know which gcc version we are going to build and what we need to know
13248 # here is different for different versions so this will be set later during the
13249 # build of crosstools.
13250 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13251 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13252 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13253 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13254 aros_cflags_format_security=@aros_cflags_format_security@
13257 #-----------------------------------------------------------------------------
13259 # Check if we can explicitly choose older version of symbol hashing
13261 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13262 CC="$aros_kernel_cc"
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13264 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13269 main ()
13273 return 0;
13275 _ACEOF
13276 if ac_fn_c_try_link "$LINENO"; then :
13277 use_hash_style="yes"
13278 else
13279 use_hash_style="no"
13281 rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13284 $as_echo "$use_hash_style" >&6; }
13285 if test "x-$use_hash_style" = "x-yes" ; then
13286 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13288 CC="$save_cc"
13289 CFLAGS="$save_cflags"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13300 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13302 # Check whether --with-resolution was given.
13303 if test "${with_resolution+set}" = set; then :
13304 withval=$with_resolution; resolution=$withval
13305 else
13306 resolution=none
13309 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13310 if test "$resolution" = "yes" ; then
13311 resolution="none"
13313 if test "$resolution" = "no" ; then
13314 resolution="none"
13316 if test "$resolution" != "none" ; then
13317 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13318 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13319 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13322 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13323 aros_cv_default_wbwidth=$aros_default_wbwidth
13324 aros_cv_default_wbheight=$aros_default_wbheight
13325 aros_cv_default_wbdepth=$aros_default_wbdepth
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13328 $as_echo_n "checking if serial debug is enabled... " >&6; }
13330 # Check whether --with-serial-debug was given.
13331 if test "${with_serial_debug+set}" = set; then :
13332 withval=$with_serial_debug; serial_debug=$withval
13333 else
13334 serial_debug=none
13337 if test "$aros_serial_debug" = 0 ; then
13338 serial_debug_forced=""
13339 if test "$serial_debug" = "yes" ; then
13340 serial_debug="1"
13342 if test "$serial_debug" = "no" ; then
13343 serial_debug="none"
13345 else
13346 serial_debug_forced="(forced)"
13347 serial_debug=$aros_serial_debug
13349 if test "$serial_debug" != "none" ; then
13350 aros_serial_debug=$serial_debug
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13352 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13359 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13360 # Check whether --enable-palm_debug_hack was given.
13361 if test "${enable_palm_debug_hack+set}" = set; then :
13362 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13363 else
13364 palm_debug_hack="no"
13367 if test "$palm_debug_hack" = "yes" ; then
13368 aros_palm_debug_hack="1"
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13371 $as_echo "$palm_debug_hack" >&6; }
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13374 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13375 # Check whether --enable-nesting_supervisor was given.
13376 if test "${enable_nesting_supervisor+set}" = set; then :
13377 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13378 else
13379 nesting_supervisor="no"
13382 if test "$nesting_supervisor" = "yes" ; then
13383 aros_nesting_supervisor="1"
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13386 $as_echo "$nesting_supervisor" >&6; }
13388 if test "$aros_enable_mmu" = "" ; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13390 $as_echo_n "checking if MMU support is enabled... " >&6; }
13391 # Check whether --enable-mmu was given.
13392 if test "${enable_mmu+set}" = set; then :
13393 enableval=$enable_mmu; aros_enable_mmu=$enableval
13394 else
13395 aros_enable_mmu="yes"
13398 if test "$aros_enable_mmu" = "" ; then
13399 aros_enable_mmu="yes"
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13402 $as_echo "$aros_enable_mmu" >&6; }
13404 if test "$aros_enable_mmu" = "no" ; then
13405 aros_enable_mmu="0"
13406 else
13407 aros_enable_mmu="1"
13411 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13413 if test "x-$need_dlopen" != "x-no" ; then
13414 save_libs="$LIBS"
13415 LIBS=""
13416 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13417 if test "x$ac_cv_func_dlopen" = x""yes; then :
13418 have_dl="yes"
13419 else
13420 have_dl="no"
13423 if test "x-$have_dl" = "x-no" ; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13425 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13426 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 ac_check_lib_save_LIBS=$LIBS
13430 LIBS="-ldl $LIBS"
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13434 /* Override any GCC internal prototype to avoid an error.
13435 Use char because int might match the return type of a GCC
13436 builtin and then its argument prototype would still apply. */
13437 #ifdef __cplusplus
13438 extern "C"
13439 #endif
13440 char dlopen ();
13442 main ()
13444 return dlopen ();
13446 return 0;
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 ac_cv_lib_dl_dlopen=yes
13451 else
13452 ac_cv_lib_dl_dlopen=no
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13459 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13460 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13461 have_dl="yes"
13462 aros_host_ldflags="$aros_host_ldflags -ldl"
13463 else
13464 have_dl="no"
13468 if test "x-$have_dl" = "x-no" ; then
13469 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
13471 LIBS="$save_libs"
13475 # Check whether --enable-x11_hidd was given.
13476 if test "${enable_x11_hidd+set}" = set; then :
13477 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13478 else
13479 x11_hidd="$need_x11"
13482 case "x-$x11_hidd" in
13483 x-yes|x-no|x-auto) ;;
13484 *) x11_hidd="$need_x11" ;;
13485 esac
13487 ENABLE_X11=0
13489 if test "x-$x11_hidd" != "x-no" ; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13492 $as_echo_n "checking for X... " >&6; }
13495 # Check whether --with-x was given.
13496 if test "${with_x+set}" = set; then :
13497 withval=$with_x;
13500 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13501 if test "x$with_x" = xno; then
13502 # The user explicitly disabled X.
13503 have_x=disabled
13504 else
13505 case $x_includes,$x_libraries in #(
13506 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13507 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 # One or both of the vars are not set, and there is no cached value.
13511 ac_x_includes=no ac_x_libraries=no
13512 rm -f -r conftest.dir
13513 if mkdir conftest.dir; then
13514 cd conftest.dir
13515 cat >Imakefile <<'_ACEOF'
13516 incroot:
13517 @echo incroot='${INCROOT}'
13518 usrlibdir:
13519 @echo usrlibdir='${USRLIBDIR}'
13520 libdir:
13521 @echo libdir='${LIBDIR}'
13522 _ACEOF
13523 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13525 for ac_var in incroot usrlibdir libdir; do
13526 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13527 done
13528 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13529 for ac_extension in a so sl dylib la dll; do
13530 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13531 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13532 ac_im_usrlibdir=$ac_im_libdir; break
13534 done
13535 # Screen out bogus values from the imake configuration. They are
13536 # bogus both because they are the default anyway, and because
13537 # using them would break gcc on systems where it needs fixed includes.
13538 case $ac_im_incroot in
13539 /usr/include) ac_x_includes= ;;
13540 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13541 esac
13542 case $ac_im_usrlibdir in
13543 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13544 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13545 esac
13547 cd ..
13548 rm -f -r conftest.dir
13551 # Standard set of common directories for X headers.
13552 # Check X11 before X11Rn because it is often a symlink to the current release.
13553 ac_x_header_dirs='
13554 /usr/X11/include
13555 /usr/X11R7/include
13556 /usr/X11R6/include
13557 /usr/X11R5/include
13558 /usr/X11R4/include
13560 /usr/include/X11
13561 /usr/include/X11R7
13562 /usr/include/X11R6
13563 /usr/include/X11R5
13564 /usr/include/X11R4
13566 /usr/local/X11/include
13567 /usr/local/X11R7/include
13568 /usr/local/X11R6/include
13569 /usr/local/X11R5/include
13570 /usr/local/X11R4/include
13572 /usr/local/include/X11
13573 /usr/local/include/X11R7
13574 /usr/local/include/X11R6
13575 /usr/local/include/X11R5
13576 /usr/local/include/X11R4
13578 /usr/X386/include
13579 /usr/x386/include
13580 /usr/XFree86/include/X11
13582 /usr/include
13583 /usr/local/include
13584 /usr/unsupported/include
13585 /usr/athena/include
13586 /usr/local/x11r5/include
13587 /usr/lpp/Xamples/include
13589 /usr/openwin/include
13590 /usr/openwin/share/include'
13592 if test "$ac_x_includes" = no; then
13593 # Guess where to find include files, by looking for Xlib.h.
13594 # First, try using that file with no special directory specified.
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13597 #include <X11/Xlib.h>
13598 _ACEOF
13599 if ac_fn_c_try_cpp "$LINENO"; then :
13600 # We can compile using X headers with no special include directory.
13601 ac_x_includes=
13602 else
13603 for ac_dir in $ac_x_header_dirs; do
13604 if test -r "$ac_dir/X11/Xlib.h"; then
13605 ac_x_includes=$ac_dir
13606 break
13608 done
13610 rm -f conftest.err conftest.$ac_ext
13611 fi # $ac_x_includes = no
13613 if test "$ac_x_libraries" = no; then
13614 # Check for the libraries.
13615 # See if we find them without any special options.
13616 # Don't add to $LIBS permanently.
13617 ac_save_LIBS=$LIBS
13618 LIBS="-lX11 $LIBS"
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 #include <X11/Xlib.h>
13623 main ()
13625 XrmInitialize ()
13627 return 0;
13629 _ACEOF
13630 if ac_fn_c_try_link "$LINENO"; then :
13631 LIBS=$ac_save_LIBS
13632 # We can link X programs with no special library path.
13633 ac_x_libraries=
13634 else
13635 LIBS=$ac_save_LIBS
13636 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13638 # Don't even attempt the hair of trying to link an X program!
13639 for ac_extension in a so sl dylib la dll; do
13640 if test -r "$ac_dir/libX11.$ac_extension"; then
13641 ac_x_libraries=$ac_dir
13642 break 2
13644 done
13645 done
13647 rm -f core conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 fi # $ac_x_libraries = no
13651 case $ac_x_includes,$ac_x_libraries in #(
13652 no,* | *,no | *\'*)
13653 # Didn't find X, or a directory has "'" in its name.
13654 ac_cv_have_x="have_x=no";; #(
13656 # Record where we found X for the cache.
13657 ac_cv_have_x="have_x=yes\
13658 ac_x_includes='$ac_x_includes'\
13659 ac_x_libraries='$ac_x_libraries'"
13660 esac
13662 ;; #(
13663 *) have_x=yes;;
13664 esac
13665 eval "$ac_cv_have_x"
13666 fi # $with_x != no
13668 if test "$have_x" != yes; then
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13670 $as_echo "$have_x" >&6; }
13671 no_x=yes
13672 else
13673 # If each of the values was on the command line, it overrides each guess.
13674 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13675 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13676 # Update the cache value to reflect the command line values.
13677 ac_cv_have_x="have_x=yes\
13678 ac_x_includes='$x_includes'\
13679 ac_x_libraries='$x_libraries'"
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13681 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13685 x_cflags=
13686 for path in $x_libraries
13688 x_cflags="$x_cflags -L$path"
13689 done
13691 for path in $x_includes
13693 x_cflags="$x_cflags -I$path"
13694 done
13696 if test "x-$no_x" = "x-yes" ; then
13698 if test "x-$x11_hidd" != "x-auto" ; then
13699 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13702 else
13703 x11_hidd_target=kernel-x11gfx-kobj
13704 ENABLE_X11=1
13706 # Check whether --enable-x11_shm was given.
13707 if test "${enable_x11_shm+set}" = set; then :
13708 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13709 else
13710 x11_hidd_shm="auto"
13713 case "x-$x11_hidd_shm" in
13714 x-yes|x-no|x-auto) ;;
13715 *) x11_hidd_shm="auto" ;;
13716 esac
13718 have_xshm=no
13720 if test "x-$x11_hidd_shm" != "x-no" ; then
13722 for ac_header in sys/ipc.h
13723 do :
13724 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13725 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_SYS_IPC_H 1
13728 _ACEOF
13732 done
13734 for ac_header in sys/shm.h
13735 do :
13736 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13737 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_SYS_SHM_H 1
13740 _ACEOF
13744 done
13747 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13749 save_cflags="$CFLAGS"
13750 CFLAGS="$CFLAGS $x_cflags"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13752 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13753 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_check_lib_save_LIBS=$LIBS
13757 LIBS="-lXext $LIBS"
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char XShmQueryExtension ();
13769 main ()
13771 return XShmQueryExtension ();
13773 return 0;
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"; then :
13777 ac_cv_lib_Xext_XShmQueryExtension=yes
13778 else
13779 ac_cv_lib_Xext_XShmQueryExtension=no
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13786 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13787 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
13788 have_xshm=yes
13791 CFLAGS="$save_cflags"
13795 if test "x-$have_xshm" = "x-yes" ; then
13796 DO_XSHM_SUPPORT="1"
13797 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13798 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13799 else
13800 DO_XSHM_SUPPORT="0"
13804 # Check whether --enable-x11_vidmode was given.
13805 if test "${enable_x11_vidmode+set}" = set; then :
13806 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13807 else
13808 x11_hidd_vidmode="auto"
13811 case "x-$x11_hidd_vidmode" in
13812 x-yes|x-no|x-auto) ;;
13813 *) x11_hidd_vidmode="auto" ;;
13814 esac
13816 have_vidmode=no
13818 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13820 save_cflags="$CFLAGS"
13821 CFLAGS="$CFLAGS $x_cflags"
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13823 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13824 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lXxf86vm $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char XF86VidModeQueryExtension ();
13840 main ()
13842 return XF86VidModeQueryExtension ();
13844 return 0;
13846 _ACEOF
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13849 else
13850 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13857 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13858 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
13859 have_vidmode=yes
13862 CFLAGS="$save_cflags"
13865 if test "x-$have_vidmode" = "x-yes" ; then
13866 DO_VIDMODE_SUPPORT="1"
13867 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13868 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13869 else
13870 DO_VIDMODE_SUPPORT="0"
13874 aros_host_x11_includes=$x_includes
13875 aros_host_x11_libdirs=$x_libraries
13879 # Check whether --enable-sdl_hidd was given.
13880 if test "${enable_sdl_hidd+set}" = set; then :
13881 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13882 else
13883 sdl_hidd="auto"
13886 case "x-$sdl_hidd" in
13887 x-yes|x-no|x-auto) ;;
13888 *) sdl_hidd="auto" ;;
13889 esac
13891 if test "x-$sdl_hidd" != "x-no" ; then
13894 # Check whether --with-sdl-prefix was given.
13895 if test "${with_sdl_prefix+set}" = set; then :
13896 withval=$with_sdl_prefix; sdl_prefix="$withval"
13897 else
13898 sdl_prefix=""
13902 # Check whether --with-sdl-exec-prefix was given.
13903 if test "${with_sdl_exec_prefix+set}" = set; then :
13904 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13905 else
13906 sdl_exec_prefix=""
13909 # Check whether --enable-sdltest was given.
13910 if test "${enable_sdltest+set}" = set; then :
13911 enableval=$enable_sdltest;
13912 else
13913 enable_sdltest=yes
13917 if test x$sdl_exec_prefix != x ; then
13918 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13919 if test x${SDL_CONFIG+set} != xset ; then
13920 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13923 if test x$sdl_prefix != x ; then
13924 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13925 if test x${SDL_CONFIG+set} != xset ; then
13926 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13930 as_save_PATH="$PATH"
13931 if test "x$prefix" != xNONE; then
13932 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13934 # Extract the first word of "sdl-config", so it can be a program name with args.
13935 set dummy sdl-config; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 case $SDL_CONFIG in
13942 [\\/]* | ?:[\\/]*)
13943 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13953 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13957 done
13958 done
13959 IFS=$as_save_IFS
13961 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13963 esac
13965 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13966 if test -n "$SDL_CONFIG"; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13968 $as_echo "$SDL_CONFIG" >&6; }
13969 else
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971 $as_echo "no" >&6; }
13975 PATH="$as_save_PATH"
13976 min_sdl_version=1.2.10
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13978 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13979 no_sdl=""
13980 if test "$SDL_CONFIG" = "no" ; then
13981 no_sdl=yes
13982 else
13983 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13984 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13986 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13988 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13990 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13992 if test "x$enable_sdltest" = "xyes" ; then
13993 ac_save_CFLAGS="$CFLAGS"
13994 ac_save_CXXFLAGS="$CXXFLAGS"
13995 ac_save_LIBS="$LIBS"
13996 CFLAGS="$CFLAGS $SDL_CFLAGS"
13997 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13998 LIBS="$LIBS $SDL_LIBS"
13999 rm -f conf.sdltest
14000 if test "$cross_compiling" = yes; then :
14001 echo $ac_n "cross compiling; assumed OK... $ac_c"
14002 else
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14006 #include <stdio.h>
14007 #include <stdlib.h>
14008 #include <string.h>
14009 #include "SDL.h"
14011 char*
14012 my_strdup (char *str)
14014 char *new_str;
14016 if (str)
14018 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14019 strcpy (new_str, str);
14021 else
14022 new_str = NULL;
14024 return new_str;
14027 int main (int argc, char *argv[])
14029 int major, minor, micro;
14030 char *tmp_version;
14032 /* This hangs on some systems (?)
14033 system ("touch conf.sdltest");
14035 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14037 /* HP/UX 9 (%@#!) writes to sscanf strings */
14038 tmp_version = my_strdup("$min_sdl_version");
14039 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14040 printf("%s, bad version string\n", "$min_sdl_version");
14041 exit(1);
14044 if (($sdl_major_version > major) ||
14045 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14046 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14048 return 0;
14050 else
14052 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14053 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14054 printf("*** best to upgrade to the required version.\n");
14055 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14056 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14057 printf("*** config.cache before re-running configure\n");
14058 return 1;
14063 _ACEOF
14064 if ac_fn_c_try_run "$LINENO"; then :
14066 else
14067 no_sdl=yes
14069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14070 conftest.$ac_objext conftest.beam conftest.$ac_ext
14073 CFLAGS="$ac_save_CFLAGS"
14074 CXXFLAGS="$ac_save_CXXFLAGS"
14075 LIBS="$ac_save_LIBS"
14078 if test "x$no_sdl" = x ; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 $as_echo "yes" >&6; }
14081 have_sdl="yes"
14082 else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14085 if test "$SDL_CONFIG" = "no" ; then
14086 echo "*** The sdl-config script installed by SDL could not be found"
14087 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14088 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14089 echo "*** full path to sdl-config."
14090 else
14091 if test -f conf.sdltest ; then
14093 else
14094 echo "*** Could not run SDL test program, checking why..."
14095 CFLAGS="$CFLAGS $SDL_CFLAGS"
14096 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14097 LIBS="$LIBS $SDL_LIBS"
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14101 #include <stdio.h>
14102 #include "SDL.h"
14104 int main(int argc, char *argv[])
14105 { return 0; }
14106 #undef main
14107 #define main K_and_R_C_main
14110 main ()
14112 return 0;
14114 return 0;
14116 _ACEOF
14117 if ac_fn_c_try_link "$LINENO"; then :
14118 echo "*** The test program compiled, but did not run. This usually means"
14119 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14120 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14121 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14122 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14123 echo "*** is required on your system"
14124 echo "***"
14125 echo "*** If you have an old version installed, it is best to remove it, although"
14126 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14127 else
14128 echo "*** The test program failed to compile or link. See the file config.log for the"
14129 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14130 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14131 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 CFLAGS="$ac_save_CFLAGS"
14136 CXXFLAGS="$ac_save_CXXFLAGS"
14137 LIBS="$ac_save_LIBS"
14140 SDL_CFLAGS=""
14141 SDL_LIBS=""
14142 have_sdl="no"
14146 rm -f conf.sdltest
14149 if test "x-$have_sdl" != "x-yes" ; then
14151 if test "x-$sdl_hidd" != "x-auto" ; then
14152 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14155 else
14156 sdl_hidd_target=kernel-hidd-sdl
14157 aros_host_sdl_cflags=SDL_CFLAGS
14158 aros_host_sdl_libs=SDL_LIBS
14162 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14163 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
14168 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14169 oss_library_target=workbench-libs-oss-unix
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14175 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14176 # Check whether --enable-dbus was given.
14177 if test "${enable_dbus+set}" = set; then :
14178 enableval=$enable_dbus; dbus="yes"
14179 else
14180 dbus="no"
14183 if test "$dbus" = "yes" ; then
14184 ENABLE_DBUS=1
14185 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14186 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14187 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14188 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14189 else
14190 ENABLE_DBUS=0
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14193 $as_echo "$dbus" >&6; }
14195 if test "$use_kernel_cc_wrapper" = "yes" ; then
14196 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14199 if test "${crosstools}" != "yes" ; then
14200 aros_target_toolchain=no
14201 else
14202 aros_target_toolchain=yes
14206 # Generic
14218 # Compatability with other Amiga-like operation systems
14221 # Host related
14249 # Target Related
14313 # Delinting target compiler flags
14320 # Graphics Related
14337 # Native version related
14340 # Palm native version related
14343 # Unix/Hosted version related
14346 # MMU related
14349 # Apple iOS related
14354 # ARM default GCC target related
14360 # Android related
14364 # DBUS related
14371 #X11 related
14374 # Debug related
14380 # Collect-aros stuff: "-ius" to ignore undefined symbols
14383 # C compiler related
14386 case "$aros_flavour" in
14387 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14388 aros_flavour="emulation" ;;
14389 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14390 aros_flavour="emulation" ;;
14391 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14392 aros_flavour="standalone";;
14393 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14394 aros_flavour="standalone";;
14395 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14396 aros_flavour="native" ;;
14397 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14398 aros_flavour="native" ;;
14399 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14400 aros_flavour="linklib" ;;
14401 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14402 aros_flavour="palmnative" ;;
14403 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14404 aros_flavour="mac68knative" ;;
14405 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14406 aros_flavour="ppcnative" ;;
14407 esac
14409 if test ! -d ${aros_inc_dir} ; then
14410 ${MKDIR} ${aros_inc_dir}
14412 if test ! -d ${aros_geninc_dir} ; then
14413 ${MKDIR} ${aros_geninc_dir}
14415 if test ! -d ${aros_hostcfg_dir} ; then
14416 ${MKDIR} ${aros_hostcfg_dir}
14418 if test ! -d ${aros_targetcfg_dir} ; then
14419 ${MKDIR} ${aros_targetcfg_dir}
14421 if test ! -d ${aros_tools_dir} ; then
14422 ${MKDIR} ${aros_tools_dir}
14424 if test ! -d ${aros_scripts_dir} ; then
14425 ${MKDIR} ${aros_scripts_dir}
14428 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14431 ac_config_commands="$ac_config_commands compiler_executable"
14433 ac_config_commands="$ac_config_commands genmf_executable"
14436 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"
14439 cat >confcache <<\_ACEOF
14440 # This file is a shell script that caches the results of configure
14441 # tests run on this system so they can be shared between configure
14442 # scripts and configure runs, see configure's option --config-cache.
14443 # It is not useful on other systems. If it contains results you don't
14444 # want to keep, you may remove or edit it.
14446 # config.status only pays attention to the cache file if you give it
14447 # the --recheck option to rerun configure.
14449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14451 # following values.
14453 _ACEOF
14455 # The following way of writing the cache mishandles newlines in values,
14456 # but we know of no workaround that is simple, portable, and efficient.
14457 # So, we kill variables containing newlines.
14458 # Ultrix sh set writes to stderr and can't be redirected directly,
14459 # and sets the high bit in the cache file unless we assign to the vars.
14461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14462 eval ac_val=\$$ac_var
14463 case $ac_val in #(
14464 *${as_nl}*)
14465 case $ac_var in #(
14466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14468 esac
14469 case $ac_var in #(
14470 _ | IFS | as_nl) ;; #(
14471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14472 *) { eval $ac_var=; unset $ac_var;} ;;
14473 esac ;;
14474 esac
14475 done
14477 (set) 2>&1 |
14478 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14479 *${as_nl}ac_space=\ *)
14480 # `set' does not quote correctly, so add quotes: double-quote
14481 # substitution turns \\\\ into \\, and sed turns \\ into \.
14482 sed -n \
14483 "s/'/'\\\\''/g;
14484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14485 ;; #(
14487 # `set' quotes correctly as required by POSIX, so do not add quotes.
14488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14490 esac |
14491 sort
14493 sed '
14494 /^ac_cv_env_/b end
14495 t clear
14496 :clear
14497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14498 t end
14499 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14500 :end' >>confcache
14501 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14502 if test -w "$cache_file"; then
14503 test "x$cache_file" != "x/dev/null" &&
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14505 $as_echo "$as_me: updating cache $cache_file" >&6;}
14506 cat confcache >$cache_file
14507 else
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14509 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14512 rm -f confcache
14514 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14515 # Let make expand exec_prefix.
14516 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14518 DEFS=-DHAVE_CONFIG_H
14520 ac_libobjs=
14521 ac_ltlibobjs=
14522 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14523 # 1. Remove the extension, and $U if already installed.
14524 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14525 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14526 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14527 # will be set to the directory where LIBOBJS objects are built.
14528 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14529 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14530 done
14531 LIBOBJS=$ac_libobjs
14533 LTLIBOBJS=$ac_ltlibobjs
14537 : ${CONFIG_STATUS=./config.status}
14538 ac_write_fail=0
14539 ac_clean_files_save=$ac_clean_files
14540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14542 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14543 as_write_fail=0
14544 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14545 #! $SHELL
14546 # Generated by $as_me.
14547 # Run this file to recreate the current configuration.
14548 # Compiler output produced by configure, useful for debugging
14549 # configure, is in config.log if it exists.
14551 debug=false
14552 ac_cs_recheck=false
14553 ac_cs_silent=false
14555 SHELL=\${CONFIG_SHELL-$SHELL}
14556 export SHELL
14557 _ASEOF
14558 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14559 ## -------------------- ##
14560 ## M4sh Initialization. ##
14561 ## -------------------- ##
14563 # Be more Bourne compatible
14564 DUALCASE=1; export DUALCASE # for MKS sh
14565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14566 emulate sh
14567 NULLCMD=:
14568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14569 # is contrary to our usage. Disable this feature.
14570 alias -g '${1+"$@"}'='"$@"'
14571 setopt NO_GLOB_SUBST
14572 else
14573 case `(set -o) 2>/dev/null` in #(
14574 *posix*) :
14575 set -o posix ;; #(
14576 *) :
14578 esac
14582 as_nl='
14584 export as_nl
14585 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14586 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14589 # Prefer a ksh shell builtin over an external printf program on Solaris,
14590 # but without wasting forks for bash or zsh.
14591 if test -z "$BASH_VERSION$ZSH_VERSION" \
14592 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14593 as_echo='print -r --'
14594 as_echo_n='print -rn --'
14595 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14596 as_echo='printf %s\n'
14597 as_echo_n='printf %s'
14598 else
14599 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14600 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14601 as_echo_n='/usr/ucb/echo -n'
14602 else
14603 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14604 as_echo_n_body='eval
14605 arg=$1;
14606 case $arg in #(
14607 *"$as_nl"*)
14608 expr "X$arg" : "X\\(.*\\)$as_nl";
14609 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14610 esac;
14611 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14613 export as_echo_n_body
14614 as_echo_n='sh -c $as_echo_n_body as_echo'
14616 export as_echo_body
14617 as_echo='sh -c $as_echo_body as_echo'
14620 # The user is always right.
14621 if test "${PATH_SEPARATOR+set}" != set; then
14622 PATH_SEPARATOR=:
14623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14625 PATH_SEPARATOR=';'
14630 # IFS
14631 # We need space, tab and new line, in precisely that order. Quoting is
14632 # there to prevent editors from complaining about space-tab.
14633 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14634 # splitting by setting IFS to empty value.)
14635 IFS=" "" $as_nl"
14637 # Find who we are. Look in the path if we contain no directory separator.
14638 case $0 in #((
14639 *[\\/]* ) as_myself=$0 ;;
14640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14646 done
14647 IFS=$as_save_IFS
14650 esac
14651 # We did not find ourselves, most probably we were run as `sh COMMAND'
14652 # in which case we are not to be found in the path.
14653 if test "x$as_myself" = x; then
14654 as_myself=$0
14656 if test ! -f "$as_myself"; then
14657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14658 exit 1
14661 # Unset variables that we do not need and which cause bugs (e.g. in
14662 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14663 # suppresses any "Segmentation fault" message there. '((' could
14664 # trigger a bug in pdksh 5.2.14.
14665 for as_var in BASH_ENV ENV MAIL MAILPATH
14666 do eval test x\${$as_var+set} = xset \
14667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14668 done
14669 PS1='$ '
14670 PS2='> '
14671 PS4='+ '
14673 # NLS nuisances.
14674 LC_ALL=C
14675 export LC_ALL
14676 LANGUAGE=C
14677 export LANGUAGE
14679 # CDPATH.
14680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14683 # as_fn_error ERROR [LINENO LOG_FD]
14684 # ---------------------------------
14685 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14686 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14687 # script with status $?, using 1 if that was 0.
14688 as_fn_error ()
14690 as_status=$?; test $as_status -eq 0 && as_status=1
14691 if test "$3"; then
14692 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14695 $as_echo "$as_me: error: $1" >&2
14696 as_fn_exit $as_status
14697 } # as_fn_error
14700 # as_fn_set_status STATUS
14701 # -----------------------
14702 # Set $? to STATUS, without forking.
14703 as_fn_set_status ()
14705 return $1
14706 } # as_fn_set_status
14708 # as_fn_exit STATUS
14709 # -----------------
14710 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14711 as_fn_exit ()
14713 set +e
14714 as_fn_set_status $1
14715 exit $1
14716 } # as_fn_exit
14718 # as_fn_unset VAR
14719 # ---------------
14720 # Portably unset VAR.
14721 as_fn_unset ()
14723 { eval $1=; unset $1;}
14725 as_unset=as_fn_unset
14726 # as_fn_append VAR VALUE
14727 # ----------------------
14728 # Append the text in VALUE to the end of the definition contained in VAR. Take
14729 # advantage of any shell optimizations that allow amortized linear growth over
14730 # repeated appends, instead of the typical quadratic growth present in naive
14731 # implementations.
14732 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14733 eval 'as_fn_append ()
14735 eval $1+=\$2
14737 else
14738 as_fn_append ()
14740 eval $1=\$$1\$2
14742 fi # as_fn_append
14744 # as_fn_arith ARG...
14745 # ------------------
14746 # Perform arithmetic evaluation on the ARGs, and store the result in the
14747 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14748 # must be portable across $(()) and expr.
14749 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14750 eval 'as_fn_arith ()
14752 as_val=$(( $* ))
14754 else
14755 as_fn_arith ()
14757 as_val=`expr "$@" || test $? -eq 1`
14759 fi # as_fn_arith
14762 if expr a : '\(a\)' >/dev/null 2>&1 &&
14763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14764 as_expr=expr
14765 else
14766 as_expr=false
14769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14770 as_basename=basename
14771 else
14772 as_basename=false
14775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14776 as_dirname=dirname
14777 else
14778 as_dirname=false
14781 as_me=`$as_basename -- "$0" ||
14782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14783 X"$0" : 'X\(//\)$' \| \
14784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14785 $as_echo X/"$0" |
14786 sed '/^.*\/\([^/][^/]*\)\/*$/{
14787 s//\1/
14790 /^X\/\(\/\/\)$/{
14791 s//\1/
14794 /^X\/\(\/\).*/{
14795 s//\1/
14798 s/.*/./; q'`
14800 # Avoid depending upon Character Ranges.
14801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14804 as_cr_digits='0123456789'
14805 as_cr_alnum=$as_cr_Letters$as_cr_digits
14807 ECHO_C= ECHO_N= ECHO_T=
14808 case `echo -n x` in #(((((
14809 -n*)
14810 case `echo 'xy\c'` in
14811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14812 xy) ECHO_C='\c';;
14813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14814 ECHO_T=' ';;
14815 esac;;
14817 ECHO_N='-n';;
14818 esac
14820 rm -f conf$$ conf$$.exe conf$$.file
14821 if test -d conf$$.dir; then
14822 rm -f conf$$.dir/conf$$.file
14823 else
14824 rm -f conf$$.dir
14825 mkdir conf$$.dir 2>/dev/null
14827 if (echo >conf$$.file) 2>/dev/null; then
14828 if ln -s conf$$.file conf$$ 2>/dev/null; then
14829 as_ln_s='ln -s'
14830 # ... but there are two gotchas:
14831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14833 # In both cases, we have to default to `cp -p'.
14834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14835 as_ln_s='cp -p'
14836 elif ln conf$$.file conf$$ 2>/dev/null; then
14837 as_ln_s=ln
14838 else
14839 as_ln_s='cp -p'
14841 else
14842 as_ln_s='cp -p'
14844 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14845 rmdir conf$$.dir 2>/dev/null
14848 # as_fn_mkdir_p
14849 # -------------
14850 # Create "$as_dir" as a directory, including parents if necessary.
14851 as_fn_mkdir_p ()
14854 case $as_dir in #(
14855 -*) as_dir=./$as_dir;;
14856 esac
14857 test -d "$as_dir" || eval $as_mkdir_p || {
14858 as_dirs=
14859 while :; do
14860 case $as_dir in #(
14861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14862 *) as_qdir=$as_dir;;
14863 esac
14864 as_dirs="'$as_qdir' $as_dirs"
14865 as_dir=`$as_dirname -- "$as_dir" ||
14866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14867 X"$as_dir" : 'X\(//\)[^/]' \| \
14868 X"$as_dir" : 'X\(//\)$' \| \
14869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14870 $as_echo X"$as_dir" |
14871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14872 s//\1/
14875 /^X\(\/\/\)[^/].*/{
14876 s//\1/
14879 /^X\(\/\/\)$/{
14880 s//\1/
14883 /^X\(\/\).*/{
14884 s//\1/
14887 s/.*/./; q'`
14888 test -d "$as_dir" && break
14889 done
14890 test -z "$as_dirs" || eval "mkdir $as_dirs"
14891 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14894 } # as_fn_mkdir_p
14895 if mkdir -p . 2>/dev/null; then
14896 as_mkdir_p='mkdir -p "$as_dir"'
14897 else
14898 test -d ./-p && rmdir ./-p
14899 as_mkdir_p=false
14902 if test -x / >/dev/null 2>&1; then
14903 as_test_x='test -x'
14904 else
14905 if ls -dL / >/dev/null 2>&1; then
14906 as_ls_L_option=L
14907 else
14908 as_ls_L_option=
14910 as_test_x='
14911 eval sh -c '\''
14912 if test -d "$1"; then
14913 test -d "$1/.";
14914 else
14915 case $1 in #(
14916 -*)set "./$1";;
14917 esac;
14918 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14919 ???[sx]*):;;*)false;;esac;fi
14920 '\'' sh
14923 as_executable_p=$as_test_x
14925 # Sed expression to map a string onto a valid CPP name.
14926 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14928 # Sed expression to map a string onto a valid variable name.
14929 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14932 exec 6>&1
14933 ## ----------------------------------- ##
14934 ## Main body of $CONFIG_STATUS script. ##
14935 ## ----------------------------------- ##
14936 _ASEOF
14937 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14940 # Save the log message, to keep $0 and so on meaningful, and to
14941 # report actual input values of CONFIG_FILES etc. instead of their
14942 # values after options handling.
14943 ac_log="
14944 This file was extended by $as_me, which was
14945 generated by GNU Autoconf 2.65. Invocation command line was
14947 CONFIG_FILES = $CONFIG_FILES
14948 CONFIG_HEADERS = $CONFIG_HEADERS
14949 CONFIG_LINKS = $CONFIG_LINKS
14950 CONFIG_COMMANDS = $CONFIG_COMMANDS
14951 $ $0 $@
14953 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14956 _ACEOF
14958 case $ac_config_files in *"
14959 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14960 esac
14962 case $ac_config_headers in *"
14963 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14964 esac
14967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14968 # Files that config.status was made for.
14969 config_files="$ac_config_files"
14970 config_headers="$ac_config_headers"
14971 config_commands="$ac_config_commands"
14973 _ACEOF
14975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14976 ac_cs_usage="\
14977 \`$as_me' instantiates files and other configuration actions
14978 from templates according to the current configuration. Unless the files
14979 and actions are specified as TAGs, all are instantiated by default.
14981 Usage: $0 [OPTION]... [TAG]...
14983 -h, --help print this help, then exit
14984 -V, --version print version number and configuration settings, then exit
14985 --config print configuration, then exit
14986 -q, --quiet, --silent
14987 do not print progress messages
14988 -d, --debug don't remove temporary files
14989 --recheck update $as_me by reconfiguring in the same conditions
14990 --file=FILE[:TEMPLATE]
14991 instantiate the configuration file FILE
14992 --header=FILE[:TEMPLATE]
14993 instantiate the configuration header FILE
14995 Configuration files:
14996 $config_files
14998 Configuration headers:
14999 $config_headers
15001 Configuration commands:
15002 $config_commands
15004 Report bugs to the package provider."
15006 _ACEOF
15007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15009 ac_cs_version="\\
15010 config.status
15011 configured by $0, generated by GNU Autoconf 2.65,
15012 with options \\"\$ac_cs_config\\"
15014 Copyright (C) 2009 Free Software Foundation, Inc.
15015 This config.status script is free software; the Free Software Foundation
15016 gives unlimited permission to copy, distribute and modify it."
15018 ac_pwd='$ac_pwd'
15019 srcdir='$srcdir'
15020 test -n "\$AWK" || AWK=awk
15021 _ACEOF
15023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15024 # The default lists apply if the user does not specify any file.
15025 ac_need_defaults=:
15026 while test $# != 0
15028 case $1 in
15029 --*=*)
15030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15032 ac_shift=:
15035 ac_option=$1
15036 ac_optarg=$2
15037 ac_shift=shift
15039 esac
15041 case $ac_option in
15042 # Handling of the options.
15043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15044 ac_cs_recheck=: ;;
15045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15046 $as_echo "$ac_cs_version"; exit ;;
15047 --config | --confi | --conf | --con | --co | --c )
15048 $as_echo "$ac_cs_config"; exit ;;
15049 --debug | --debu | --deb | --de | --d | -d )
15050 debug=: ;;
15051 --file | --fil | --fi | --f )
15052 $ac_shift
15053 case $ac_optarg in
15054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15055 esac
15056 as_fn_append CONFIG_FILES " '$ac_optarg'"
15057 ac_need_defaults=false;;
15058 --header | --heade | --head | --hea )
15059 $ac_shift
15060 case $ac_optarg in
15061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15062 esac
15063 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15064 ac_need_defaults=false;;
15065 --he | --h)
15066 # Conflict between --help and --header
15067 as_fn_error "ambiguous option: \`$1'
15068 Try \`$0 --help' for more information.";;
15069 --help | --hel | -h )
15070 $as_echo "$ac_cs_usage"; exit ;;
15071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15073 ac_cs_silent=: ;;
15075 # This is an error.
15076 -*) as_fn_error "unrecognized option: \`$1'
15077 Try \`$0 --help' for more information." ;;
15079 *) as_fn_append ac_config_targets " $1"
15080 ac_need_defaults=false ;;
15082 esac
15083 shift
15084 done
15086 ac_configure_extra_args=
15088 if $ac_cs_silent; then
15089 exec 6>/dev/null
15090 ac_configure_extra_args="$ac_configure_extra_args --silent"
15093 _ACEOF
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15095 if \$ac_cs_recheck; then
15096 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15097 shift
15098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15099 CONFIG_SHELL='$SHELL'
15100 export CONFIG_SHELL
15101 exec "\$@"
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15106 exec 5>>config.log
15108 echo
15109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15110 ## Running $as_me. ##
15111 _ASBOX
15112 $as_echo "$ac_log"
15113 } >&5
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 # INIT-COMMANDS
15121 aros_host_exe_suffix=${aros_host_exe_suffix}
15122 aros_tools_dir=${aros_tools_dir}
15123 aros_target_cpu=${aros_target_cpu}
15124 aros_target_arch=${aros_target_arch}
15125 aros_target_suffix=${aros_target_suffix}
15126 orig_target_nm=${orig_target_nm}
15127 orig_target_as=${orig_target_as}
15128 orig_target_ar=${orig_target_ar}
15129 orig_target_ranlib=${orig_target_ranlib}
15130 orig_target_objdump=${orig_target_objdump}
15131 orig_target_objcopy=${orig_target_objcopy}
15132 orig_target_strip=${orig_target_strip}
15133 aros_kernel_ld=${aros_kernel_ld}
15136 aros_tools_dir=${aros_tools_dir}
15139 _ACEOF
15141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15143 # Handling of arguments.
15144 for ac_config_target in $ac_config_targets
15146 case $ac_config_target in
15147 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15148 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15149 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15150 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15151 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15152 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15153 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15154 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15155 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15156 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15157 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15158 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15159 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15160 "${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" ;;
15161 "${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" ;;
15162 "${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" ;;
15163 "${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" ;;
15164 "${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" ;;
15165 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15166 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15167 "${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" ;;
15169 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15170 esac
15171 done
15174 # If the user did not use the arguments to specify the items to instantiate,
15175 # then the envvar interface is used. Set only those that are not.
15176 # We use the long form for the default assignment because of an extremely
15177 # bizarre bug on SunOS 4.1.3.
15178 if $ac_need_defaults; then
15179 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15180 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15181 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15184 # Have a temporary directory for convenience. Make it in the build tree
15185 # simply because there is no reason against having it here, and in addition,
15186 # creating and moving files from /tmp can sometimes cause problems.
15187 # Hook for its removal unless debugging.
15188 # Note that there is a small window in which the directory will not be cleaned:
15189 # after its creation but before its name has been assigned to `$tmp'.
15190 $debug ||
15192 tmp=
15193 trap 'exit_status=$?
15194 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15196 trap 'as_fn_exit 1' 1 2 13 15
15198 # Create a (secure) tmp directory for tmp files.
15201 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15202 test -n "$tmp" && test -d "$tmp"
15203 } ||
15205 tmp=./conf$$-$RANDOM
15206 (umask 077 && mkdir "$tmp")
15207 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15209 # Set up the scripts for CONFIG_FILES section.
15210 # No need to generate them if there are no CONFIG_FILES.
15211 # This happens for instance with `./config.status config.h'.
15212 if test -n "$CONFIG_FILES"; then
15215 ac_cr=`echo X | tr X '\015'`
15216 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15217 # But we know of no other shell where ac_cr would be empty at this
15218 # point, so we can use a bashism as a fallback.
15219 if test "x$ac_cr" = x; then
15220 eval ac_cr=\$\'\\r\'
15222 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15223 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15224 ac_cs_awk_cr='\r'
15225 else
15226 ac_cs_awk_cr=$ac_cr
15229 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15230 _ACEOF
15234 echo "cat >conf$$subs.awk <<_ACEOF" &&
15235 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15236 echo "_ACEOF"
15237 } >conf$$subs.sh ||
15238 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15240 ac_delim='%!_!# '
15241 for ac_last_try in false false false false false :; do
15242 . ./conf$$subs.sh ||
15243 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15245 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15246 if test $ac_delim_n = $ac_delim_num; then
15247 break
15248 elif $ac_last_try; then
15249 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15250 else
15251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15253 done
15254 rm -f conf$$subs.sh
15256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15258 _ACEOF
15259 sed -n '
15261 s/^/S["/; s/!.*/"]=/
15264 s/^[^!]*!//
15265 :repl
15266 t repl
15267 s/'"$ac_delim"'$//
15268 t delim
15271 s/\(.\{148\}\)..*/\1/
15272 t more1
15273 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15276 b repl
15277 :more1
15278 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15281 s/.\{148\}//
15282 t nl
15283 :delim
15285 s/\(.\{148\}\)..*/\1/
15286 t more2
15287 s/["\\]/\\&/g; s/^/"/; s/$/"/
15290 :more2
15291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15294 s/.\{148\}//
15295 t delim
15296 ' <conf$$subs.awk | sed '
15297 /^[^""]/{
15299 s/\n//
15301 ' >>$CONFIG_STATUS || ac_write_fail=1
15302 rm -f conf$$subs.awk
15303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 _ACAWK
15305 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15306 for (key in S) S_is_set[key] = 1
15307 FS = "\a"
15311 line = $ 0
15312 nfields = split(line, field, "@")
15313 substed = 0
15314 len = length(field[1])
15315 for (i = 2; i < nfields; i++) {
15316 key = field[i]
15317 keylen = length(key)
15318 if (S_is_set[key]) {
15319 value = S[key]
15320 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15321 len += length(value) + length(field[++i])
15322 substed = 1
15323 } else
15324 len += 1 + keylen
15327 print line
15330 _ACAWK
15331 _ACEOF
15332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15333 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15334 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15335 else
15337 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15338 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15339 _ACEOF
15341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15343 # trailing colons and then remove the whole line if VPATH becomes empty
15344 # (actually we leave an empty line to preserve line numbers).
15345 if test "x$srcdir" = x.; then
15346 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15347 s/:*\$(srcdir):*/:/
15348 s/:*\${srcdir}:*/:/
15349 s/:*@srcdir@:*/:/
15350 s/^\([^=]*=[ ]*\):*/\1/
15351 s/:*$//
15352 s/^[^=]*=[ ]*$//
15356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15357 fi # test -n "$CONFIG_FILES"
15359 # Set up the scripts for CONFIG_HEADERS section.
15360 # No need to generate them if there are no CONFIG_HEADERS.
15361 # This happens for instance with `./config.status Makefile'.
15362 if test -n "$CONFIG_HEADERS"; then
15363 cat >"$tmp/defines.awk" <<\_ACAWK ||
15364 BEGIN {
15365 _ACEOF
15367 # Transform confdefs.h into an awk script `defines.awk', embedded as
15368 # here-document in config.status, that substitutes the proper values into
15369 # config.h.in to produce config.h.
15371 # Create a delimiter string that does not exist in confdefs.h, to ease
15372 # handling of long lines.
15373 ac_delim='%!_!# '
15374 for ac_last_try in false false :; do
15375 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15376 if test -z "$ac_t"; then
15377 break
15378 elif $ac_last_try; then
15379 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15380 else
15381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15383 done
15385 # For the awk script, D is an array of macro values keyed by name,
15386 # likewise P contains macro parameters if any. Preserve backslash
15387 # newline sequences.
15389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15390 sed -n '
15391 s/.\{148\}/&'"$ac_delim"'/g
15392 t rset
15393 :rset
15394 s/^[ ]*#[ ]*define[ ][ ]*/ /
15395 t def
15397 :def
15398 s/\\$//
15399 t bsnl
15400 s/["\\]/\\&/g
15401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15402 D["\1"]=" \3"/p
15403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15405 :bsnl
15406 s/["\\]/\\&/g
15407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15408 D["\1"]=" \3\\\\\\n"\\/p
15409 t cont
15410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15411 t cont
15413 :cont
15415 s/.\{148\}/&'"$ac_delim"'/g
15416 t clear
15417 :clear
15418 s/\\$//
15419 t bsnlc
15420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15422 :bsnlc
15423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15424 b cont
15425 ' <confdefs.h | sed '
15426 s/'"$ac_delim"'/"\\\
15427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15430 for (key in D) D_is_set[key] = 1
15431 FS = "\a"
15433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15434 line = \$ 0
15435 split(line, arg, " ")
15436 if (arg[1] == "#") {
15437 defundef = arg[2]
15438 mac1 = arg[3]
15439 } else {
15440 defundef = substr(arg[1], 2)
15441 mac1 = arg[2]
15443 split(mac1, mac2, "(") #)
15444 macro = mac2[1]
15445 prefix = substr(line, 1, index(line, defundef) - 1)
15446 if (D_is_set[macro]) {
15447 # Preserve the white space surrounding the "#".
15448 print prefix "define", macro P[macro] D[macro]
15449 next
15450 } else {
15451 # Replace #undef with comments. This is necessary, for example,
15452 # in the case of _POSIX_SOURCE, which is predefined and required
15453 # on some systems where configure will not decide to define it.
15454 if (defundef == "undef") {
15455 print "/*", prefix defundef, macro, "*/"
15456 next
15460 { print }
15461 _ACAWK
15462 _ACEOF
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15465 fi # test -n "$CONFIG_HEADERS"
15468 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15469 shift
15470 for ac_tag
15472 case $ac_tag in
15473 :[FHLC]) ac_mode=$ac_tag; continue;;
15474 esac
15475 case $ac_mode$ac_tag in
15476 :[FHL]*:*);;
15477 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15478 :[FH]-) ac_tag=-:-;;
15479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15480 esac
15481 ac_save_IFS=$IFS
15482 IFS=:
15483 set x $ac_tag
15484 IFS=$ac_save_IFS
15485 shift
15486 ac_file=$1
15487 shift
15489 case $ac_mode in
15490 :L) ac_source=$1;;
15491 :[FH])
15492 ac_file_inputs=
15493 for ac_f
15495 case $ac_f in
15496 -) ac_f="$tmp/stdin";;
15497 *) # Look for the file first in the build tree, then in the source tree
15498 # (if the path is not absolute). The absolute path cannot be DOS-style,
15499 # because $ac_f cannot contain `:'.
15500 test -f "$ac_f" ||
15501 case $ac_f in
15502 [\\/$]*) false;;
15503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15504 esac ||
15505 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15506 esac
15507 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15508 as_fn_append ac_file_inputs " '$ac_f'"
15509 done
15511 # Let's still pretend it is `configure' which instantiates (i.e., don't
15512 # use $as_me), people would be surprised to read:
15513 # /* config.h. Generated by config.status. */
15514 configure_input='Generated from '`
15515 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15516 `' by configure.'
15517 if test x"$ac_file" != x-; then
15518 configure_input="$ac_file. $configure_input"
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15520 $as_echo "$as_me: creating $ac_file" >&6;}
15522 # Neutralize special characters interpreted by sed in replacement strings.
15523 case $configure_input in #(
15524 *\&* | *\|* | *\\* )
15525 ac_sed_conf_input=`$as_echo "$configure_input" |
15526 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15527 *) ac_sed_conf_input=$configure_input;;
15528 esac
15530 case $ac_tag in
15531 *:-:* | *:-) cat >"$tmp/stdin" \
15532 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15533 esac
15535 esac
15537 ac_dir=`$as_dirname -- "$ac_file" ||
15538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15539 X"$ac_file" : 'X\(//\)[^/]' \| \
15540 X"$ac_file" : 'X\(//\)$' \| \
15541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15542 $as_echo X"$ac_file" |
15543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15544 s//\1/
15547 /^X\(\/\/\)[^/].*/{
15548 s//\1/
15551 /^X\(\/\/\)$/{
15552 s//\1/
15555 /^X\(\/\).*/{
15556 s//\1/
15559 s/.*/./; q'`
15560 as_dir="$ac_dir"; as_fn_mkdir_p
15561 ac_builddir=.
15563 case "$ac_dir" in
15564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15567 # A ".." for each directory in $ac_dir_suffix.
15568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15569 case $ac_top_builddir_sub in
15570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15572 esac ;;
15573 esac
15574 ac_abs_top_builddir=$ac_pwd
15575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15576 # for backward compatibility:
15577 ac_top_builddir=$ac_top_build_prefix
15579 case $srcdir in
15580 .) # We are building in place.
15581 ac_srcdir=.
15582 ac_top_srcdir=$ac_top_builddir_sub
15583 ac_abs_top_srcdir=$ac_pwd ;;
15584 [\\/]* | ?:[\\/]* ) # Absolute name.
15585 ac_srcdir=$srcdir$ac_dir_suffix;
15586 ac_top_srcdir=$srcdir
15587 ac_abs_top_srcdir=$srcdir ;;
15588 *) # Relative name.
15589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15590 ac_top_srcdir=$ac_top_build_prefix$srcdir
15591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15592 esac
15593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15596 case $ac_mode in
15599 # CONFIG_FILE
15602 _ACEOF
15604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15605 # If the template does not know about datarootdir, expand it.
15606 # FIXME: This hack should be removed a few years after 2.60.
15607 ac_datarootdir_hack=; ac_datarootdir_seen=
15608 ac_sed_dataroot='
15609 /datarootdir/ {
15613 /@datadir@/p
15614 /@docdir@/p
15615 /@infodir@/p
15616 /@localedir@/p
15617 /@mandir@/p'
15618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15619 *datarootdir*) ac_datarootdir_seen=yes;;
15620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15623 _ACEOF
15624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625 ac_datarootdir_hack='
15626 s&@datadir@&$datadir&g
15627 s&@docdir@&$docdir&g
15628 s&@infodir@&$infodir&g
15629 s&@localedir@&$localedir&g
15630 s&@mandir@&$mandir&g
15631 s&\\\${datarootdir}&$datarootdir&g' ;;
15632 esac
15633 _ACEOF
15635 # Neutralize VPATH when `$srcdir' = `.'.
15636 # Shell code in configure.ac might set extrasub.
15637 # FIXME: do we really want to maintain this feature?
15638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15639 ac_sed_extra="$ac_vpsub
15640 $extrasub
15641 _ACEOF
15642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15645 s|@configure_input@|$ac_sed_conf_input|;t t
15646 s&@top_builddir@&$ac_top_builddir_sub&;t t
15647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15648 s&@srcdir@&$ac_srcdir&;t t
15649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15650 s&@top_srcdir@&$ac_top_srcdir&;t t
15651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15652 s&@builddir@&$ac_builddir&;t t
15653 s&@abs_builddir@&$ac_abs_builddir&;t t
15654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15655 $ac_datarootdir_hack
15657 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15658 || as_fn_error "could not create $ac_file" "$LINENO" 5
15660 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15661 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15662 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15664 which seems to be undefined. Please make sure it is defined." >&5
15665 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15666 which seems to be undefined. Please make sure it is defined." >&2;}
15668 rm -f "$tmp/stdin"
15669 case $ac_file in
15670 -) cat "$tmp/out" && rm -f "$tmp/out";;
15671 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15672 esac \
15673 || as_fn_error "could not create $ac_file" "$LINENO" 5
15677 # CONFIG_HEADER
15679 if test x"$ac_file" != x-; then
15681 $as_echo "/* $configure_input */" \
15682 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15683 } >"$tmp/config.h" \
15684 || as_fn_error "could not create $ac_file" "$LINENO" 5
15685 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15687 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15688 else
15689 rm -f "$ac_file"
15690 mv "$tmp/config.h" "$ac_file" \
15691 || as_fn_error "could not create $ac_file" "$LINENO" 5
15693 else
15694 $as_echo "/* $configure_input */" \
15695 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15696 || as_fn_error "could not create -" "$LINENO" 5
15700 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15701 $as_echo "$as_me: executing $ac_file commands" >&6;}
15703 esac
15706 case $ac_file$ac_mode in
15707 "compiler_executable":C)
15708 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15709 mkdir -p $prefix
15710 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15711 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15713 echo ${prefix2}
15714 echo ${prefix3}
15715 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15717 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15718 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15719 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15720 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15721 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15722 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15723 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15725 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15727 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15729 esac
15730 done # for ac_tag
15733 as_fn_exit 0
15734 _ACEOF
15735 ac_clean_files=$ac_clean_files_save
15737 test $ac_write_fail = 0 ||
15738 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15741 # configure is writing to config.log, and then calls config.status.
15742 # config.status does its own redirection, appending to config.log.
15743 # Unfortunately, on DOS this fails, as config.log is still kept open
15744 # by configure, so config.status won't be able to write to it; its
15745 # output is simply discarded. So we exec the FD to /dev/null,
15746 # effectively closing config.log, so it can be properly (re)opened and
15747 # appended to by config.status. When coming back to configure, we
15748 # need to make the FD available again.
15749 if test "$no_create" != yes; then
15750 ac_cs_success=:
15751 ac_config_status_args=
15752 test "$silent" = yes &&
15753 ac_config_status_args="$ac_config_status_args --quiet"
15754 exec 5>/dev/null
15755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15756 exec 5>>config.log
15757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15758 # would make configure fail if this is the last instruction.
15759 $ac_cs_success || as_fn_exit $?
15761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15768 #XXX compatability...
15769 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15771 if test -n "$aros_shared_cflags" ; then
15772 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15773 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg