- Fixed handling of ACCEPTPATTERN and REJECTPATTERN: patterns must be
[AROS.git] / configure
blob34fb3358d4157da08aa9c7ed44a5154c945f4e53
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 gcc_default_float_abi
618 gcc_default_fpu
619 gcc_default_cpu
620 aros_ios_sdk
621 aros_ios_version
622 aros_ios_platform
623 aros_enable_mmu
624 aros_nesting_supervisor
625 aros_palm_debug_hack
626 aros_serial_debug
627 aros_host_sdl_libs
628 aros_host_sdl_cflags
629 aros_host_x11_libdirs
630 aros_host_x11_includes
631 DO_VIDMODE_SUPPORT
632 DO_XSHM_SUPPORT
633 aros_default_wbdepth
634 aros_default_wbheight
635 aros_default_wbwidth
636 oss_library_target
637 pci_hidd_target
638 sdl_hidd_target
639 x11_hidd_target
640 aros_cflags_format_security
641 aros_cflags_strict_overflow
642 aros_cflags_enum_compare
643 aros_cflags_array_bounds
644 aros_cflags_unused_but_set_variable
645 crosstools_cxx_target
646 crosstools_target
647 aros_target_strip_flags
648 aros_target_genmap
649 aros_debug_ldflags
650 aros_debug_aflags
651 aros_debug_cflags
652 aros_target_cflags
653 aros_kernel_ldflags
654 aros_kernel_objcflags
655 aros_kernel_includes
656 aros_kernel_cflags
657 aros_shared_ldflags
658 aros_shared_aflags
659 aros_shared_cflags
660 aros_config_ldflags
661 aros_config_aflags
662 aros_config_cflags
663 aros_arch_libs
664 aros_compiler_libs
665 aros_object_format
666 aros_shared_ld
667 aros_shared_default
668 aros_target_nm
669 aros_target_strip
670 aros_target_objcopy
671 aros_target_objdump
672 aros_target_cc_path
673 aros_target_cc_includes
674 aros_target_ld
675 aros_target_as
676 aros_target_cpp
677 aros_target_cxx
678 aros_target_cc
679 aros_plain_ar
680 aros_plain_nm
681 aros_target_ranlib
682 aros_target_ar
683 aros_target_suffix
684 aros_target_variant
685 aros_target_cpu
686 aros_target_family
687 aros_target_arch
688 aros_target_bootloader
689 aros_target_iconset
690 aros_target_guitheme
691 aros_tools_dir
692 aros_host_lib_suffix
693 aros_host_exe_suffix
694 aros_host_mkargs
695 aros_host_mkdep
696 aros_host_debug
697 aros_host_ldflags
698 gnu89_inline
699 aros_host_cxxflags
700 aros_host_cflags
701 aros_host_make
702 aros_host_cxx
703 aros_host_cc
704 aros_host_cpp
705 aros_host_cpu
706 aros_host_arch
707 aros_cc_pre
708 aros_amigaos_compliance
709 AROS_PORTSSRCDIR
710 AROS_CROSSTOOLSDIR
711 SRCDIR
712 AROS_BUILDDIR_UNIX
713 AROS_BUILDDIR
714 aros_target_toolchain
715 aros_flavour_uc
716 aros_flavour
717 aros_cpu
718 aros_arch
719 SDL_LIBS
720 SDL_CFLAGS
721 SDL_CONFIG
722 XMKMF
723 aros_cflags_iquote_end
724 aros_cflags_iquote
725 kernel_cflags_iquote_end
726 kernel_cflags_iquote
727 host_cflags_iquote_end
728 host_cflags_iquote
729 aros_target_nostdlib_ldflags
730 aros_target_detach_ldflags
731 aros_target_nix_ldflags
732 aros_target_nostartup_ldflags
733 aros_target_nostdinc_cflags
734 aros_kernel_rescomp
735 orig_target_objdump
736 orig_target_objcopy
737 orig_target_strip
738 orig_target_nm
739 orig_target_ranlib
740 orig_target_ar
741 orig_target_as
742 orig_target_ld
743 orig_target_cxx
744 orig_target_cc
745 orig_target_cpp
746 aros_kernel_objdump
747 aros_kernel_objcopy
748 aros_kernel_strip
749 aros_kernel_nm
750 aros_kernel_ranlib
751 aros_kernel_ar
752 aros_kernel_as
753 aros_kernel_ld
754 aros_kernel_cxx
755 aros_kernel_cc
756 aros_kernel_cpp
758 android_tool
759 CCACHE
760 DISTCC
761 LIBOBJS
762 EGREP
763 GREP
765 TEST
768 pkgpyexecdir
769 pyexecdir
770 pkgpythondir
771 pythondir
772 PYTHON_PLATFORM
773 PYTHON_EXEC_PREFIX
774 PYTHON_PREFIX
775 PYTHON_VERSION
776 PYTHON
777 PATCH
778 CHMOD
780 PPMTOILBM
781 PNGTOPNM
782 FLEX
783 BISON
786 UNIQ
787 SORT
788 TOUCH
789 MKDIR
790 ECHO
794 aros_host_strip
795 aros_host_ranlib
796 aros_host_ar
797 aros_host_automake
798 aros_host_autoheader
799 aros_host_autoconf
800 aros_host_aclocal
801 aros_host_ld
802 MMAKE
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_build_type
865 enable_debug
866 enable_distcc
867 enable_ccache
868 with_gcc_version
869 with_optimization
870 with_paranoia
871 enable_target_variant
872 with_xcode
873 with_sdk_version
874 with_sdk
875 with_ndk
876 with_ndk_version
877 enable_amigaos_compliance
878 with_kernel_toolchain_prefix
879 with_elf_toolchain_prefix
880 with_aros_toolchain
881 enable_crosstools
882 with_aros_toolchain_install
883 with_cpu
884 with_fpu
885 with_float
886 with_aros_gcc
887 with_portssources
888 with_bootloader
889 with_iconset
890 with_theme
891 enable_includes
892 with_resolution
893 with_serial_debug
894 enable_palm_debug_hack
895 enable_nesting_supervisor
896 enable_mmu
897 enable_x11_hidd
898 with_x
899 enable_x11_shm
900 enable_x11_vidmode
901 enable_sdl_hidd
902 with_sdl_prefix
903 with_sdl_exec_prefix
904 enable_sdltest
905 enable_dbus
907 ac_precious_vars='build_alias
908 host_alias
909 target_alias
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
916 CXXFLAGS
919 PYTHON
920 XMKMF'
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
971 ac_prev=
972 ac_dashdash=
973 for ac_option
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
978 ac_prev=
979 continue
982 case $ac_option in
983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *=) ac_optarg= ;;
985 *) ac_optarg=yes ;;
986 esac
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
992 ac_dashdash=yes ;;
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1146 no_create=yes ;;
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 ac_prev=sbindir ;;
1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 | --sbi=* | --sb=*)
1215 sbindir=$ac_optarg ;;
1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219 | --sharedst | --shareds | --shared | --share | --shar \
1220 | --sha | --sh)
1221 ac_prev=sharedstatedir ;;
1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 | --sha=* | --sh=*)
1226 sharedstatedir=$ac_optarg ;;
1228 -site | --site | --sit)
1229 ac_prev=site ;;
1230 -site=* | --site=* | --sit=*)
1231 site=$ac_optarg ;;
1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 ac_prev=srcdir ;;
1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236 srcdir=$ac_optarg ;;
1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239 | --syscon | --sysco | --sysc | --sys | --sy)
1240 ac_prev=sysconfdir ;;
1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243 sysconfdir=$ac_optarg ;;
1245 -target | --target | --targe | --targ | --tar | --ta | --t)
1246 ac_prev=target_alias ;;
1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248 target_alias=$ac_optarg ;;
1250 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 verbose=yes ;;
1253 -version | --version | --versio | --versi | --vers | -V)
1254 ac_init_version=: ;;
1256 -with-* | --with-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1265 "with_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=\$ac_optarg ;;
1272 -without-* | --without-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error $? "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1281 "with_$ac_useropt"
1282 "*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=no ;;
1288 --x)
1289 # Obsolete; use --with-x.
1290 with_x=yes ;;
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297 x_includes=$ac_optarg ;;
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304 x_libraries=$ac_optarg ;;
1306 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307 Try \`$0 --help' for more information"
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 case $ac_envvar in #(
1314 '' | [0-9]* | *[!_$as_cr_alnum]* )
1315 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316 esac
1317 eval $ac_envvar=\$ac_optarg
1318 export $ac_envvar ;;
1321 # FIXME: should be removed in autoconf 3.0.
1322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 esac
1329 done
1331 if test -n "$ac_prev"; then
1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333 as_fn_error $? "missing argument to $ac_option"
1336 if test -n "$ac_unrecognized_opts"; then
1337 case $enable_option_checking in
1338 no) ;;
1339 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 esac
1344 # Check all directory arguments for consistency.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1351 # Remove trailing slashes.
1352 case $ac_val in
1353 */ )
1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355 eval $ac_var=\$ac_val;;
1356 esac
1357 # Be sure to have absolute directory names.
1358 case $ac_val in
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 esac
1362 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 done
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used" >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1379 cross_compiling=yes
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386 test "$silent" = yes && exec 6>/dev/null
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 as_fn_error $? "pwd does not report name of working directory"
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$as_myself" : 'X\(//\)[^/]' \| \
1404 X"$as_myself" : 'X\(//\)$' \| \
1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1415 /^X\(\/\/\)$/{
1416 s//\1/
1419 /^X\(\/\).*/{
1420 s//\1/
1423 s/.*/./; q'`
1424 srcdir=$ac_confdir
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 srcdir=..
1428 else
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1518 cat <<\_ACEOF
1520 X features:
1521 --x-includes=DIR X include files are in DIR
1522 --x-libraries=DIR X library files are in DIR
1524 System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 _ACEOF
1530 if test -n "$ac_init_help"; then
1532 cat <<\_ACEOF
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-build-type=TYPE
1539 Select the build type. Available types are:
1540 personal, nightly, snapshot, milestone, release. Do
1541 NOT use this option unless you know what you are
1542 doing! (default=personal)
1543 --enable-debug=list Enable different types of debug. Commas or
1544 whitespaces can be used to separate the items in the
1545 list. Available types of debug are: all, none,
1546 messages, stack, mungwall, modules, symbols. If no
1547 list is provided then "all" is assumed.
1548 (default=none)
1549 --enable-distcc Use distcc as a front end to the compiler
1550 (default=no).
1551 --enable-ccache Use ccache as a front end to the compiler
1552 (default=no).
1553 --enable-target-variant=NAME
1554 Enable a specific target variant(default=none)
1555 --enable-amigaos-compliance=VERSION
1556 Enforce userspace AmigaOS compliance to a specific
1557 KickStart version (default=none).
1558 --disable-crosstools Do not build cross-compiler toolchain
1559 --enable-includes=dir Alternative system include directory
1560 --enable-palm-debug-hack
1561 Enable palm debug output hack in palm native
1562 (default=no)
1563 --enable-nesting-supervisor
1564 Enable nesting supervisor support in unix
1565 (default=no)
1566 --disable-mmu Disable MMU support (default=enabled)
1567 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1568 --enable-x11-shm use X11 shared memory (default=auto)
1569 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1570 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1571 --disable-sdltest Do not try to compile and run a test SDL program
1572 --enable-dbus Enable DBUS support via dbus.library (default=no)
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-kernel-gcc-version=VERSION
1578 Use host gcc-VERSION for building AROS
1579 --with-gcc-version=VERSION
1580 Use host gcc-VERSION for building AROS
1581 --with-optimization=FLAGS
1582 Use optimization flags FLAGS (default=-O2).
1583 --with-paranoia=FLAGS CC flags to enable paranoia
1584 --with-xcode=PATH Specify XCode path for iOS targets
1585 (default=/Developer).
1586 --with-sdk-version=VERSION
1587 Use iOS SDK version VERSION (default=4.1).
1588 --with-sdk=PATH Specify Android SDK path
1589 (default=$default_android_sdk).
1590 --with-ndk=PATH Specify Android NDK path (default=none).
1591 --with-sdk-version=LEVEL
1592 Use Android SDK for API LEVEL (default=12).
1593 --with-ndk-version=LEVEL
1594 Use Android NDK for API LEVEL (default=9).
1595 --with-kernel-toolchain-prefix=...
1596 Specify crosscompile toolchain prefix for kernel
1597 objects
1598 --with-elf-toolchain-prefix=...
1599 Specify crosscompile toolchain prefix to wrap for
1600 AROS objects
1601 --with-aros-toolchain=PREFIX
1602 Specify prebuilt AROS toolchain
1603 --with-aros-toolchain-install=DIR
1604 Where to install or search for cross tools binaries
1605 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1606 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1607 --with-float=<spec> Specify floating point ABI
1608 (default=$gcc_default_float_abi).
1609 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1610 --with-portssources=DIR Where to download sourcecode for external ports
1611 --with-bootloader=NAME Use a specific bootloader
1612 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1613 --with-theme=NAME Use a specific GUI Theme
1614 --with-resolution=XRESxYRESxDEPTH
1615 Default resolution of the initial WorkbenchScreen
1616 --with-serial-debug Enable serial debug output in native (default=no)
1617 --with-x use the X Window System
1618 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1619 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 LIBS libraries to pass to the linker, e.g. -l<library>
1627 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1628 you have headers in a nonstandard directory <include dir>
1629 CXX C++ compiler command
1630 CXXFLAGS C++ compiler flags
1631 CPP C preprocessor
1632 PYTHON the Python interpreter
1633 XMKMF Path to xmkmf, Makefile generator for X Window System
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to the package provider.
1639 _ACEOF
1640 ac_status=$?
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1667 case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for guested configure.
1685 if test -f "$ac_srcdir/configure.gnu"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688 elif test -f "$ac_srcdir/configure"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure" --help=recursive
1691 else
1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 fi || ac_status=$?
1694 cd "$ac_pwd" || { ac_status=$?; break; }
1695 done
1698 test -n "$ac_init_help" && exit $ac_status
1699 if $ac_init_version; then
1700 cat <<\_ACEOF
1701 configure
1702 generated by GNU Autoconf 2.68
1704 Copyright (C) 2010 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1707 _ACEOF
1708 exit
1711 ## ------------------------ ##
1712 ## Autoconf initialization. ##
1713 ## ------------------------ ##
1715 # ac_fn_c_try_compile LINENO
1716 # --------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext
1722 if { { ac_try="$ac_compile"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_compile") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest.$ac_objext; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1751 } # ac_fn_c_try_compile
1753 # ac_fn_cxx_try_compile LINENO
1754 # ----------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_cxx_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_cxx_try_compile
1791 # ac_fn_c_try_cpp LINENO
1792 # ----------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_cpp ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } > conftest.i && {
1813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1826 } # ac_fn_c_try_cpp
1828 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831 # the include files in INCLUDES and setting the cache variable VAR
1832 # accordingly.
1833 ac_fn_c_check_header_mongrel ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if eval \${$3+:} false; then :
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 else
1846 # Is the header compilable?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848 $as_echo_n "checking $2 usability... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_header_compiler=yes
1856 else
1857 ac_header_compiler=no
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861 $as_echo "$ac_header_compiler" >&6; }
1863 # Is the header present?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865 $as_echo_n "checking $2 presence... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_cpp "$LINENO"; then :
1871 ac_header_preproc=yes
1872 else
1873 ac_header_preproc=no
1875 rm -f conftest.err conftest.i conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877 $as_echo "$ac_header_preproc" >&6; }
1879 # So? What about this header?
1880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881 yes:no: )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 no:yes:* )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1891 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1895 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899 esac
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 eval "$3=\$ac_header_compiler"
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_header_mongrel
1915 # ac_fn_c_try_run LINENO
1916 # ----------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918 # that executables *can* be run.
1919 ac_fn_c_try_run ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_link"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_link") 2>&5
1930 ac_status=$?
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933 { { case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_try") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; }; }; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: program exited with status $ac_status" >&5
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1949 ac_retval=$ac_status
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_run
1957 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists and can be compiled using the include files in
1960 # INCLUDES, setting the cache variable VAR accordingly.
1961 ac_fn_c_check_header_compile ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_header_compile
1988 # ac_fn_c_try_link LINENO
1989 # -----------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_link ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 $as_test_x conftest$ac_exeext
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_retval=1
2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026 # interfere with the next link command; also delete a directory that is
2027 # left behind by Apple's compiler. We do this before executing the actions.
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_c_try_link
2034 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2035 # ----------------------------------------------------
2036 # Tries to find if the field MEMBER exists in type AGGR, after including
2037 # INCLUDES, setting cache variable VAR accordingly.
2038 ac_fn_c_check_member ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2042 $as_echo_n "checking for $2.$3... " >&6; }
2043 if eval \${$4+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2050 main ()
2052 static $2 ac_aggr;
2053 if (ac_aggr.$3)
2054 return 0;
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 eval "$4=yes"
2061 else
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2066 main ()
2068 static $2 ac_aggr;
2069 if (sizeof ac_aggr.$3)
2070 return 0;
2072 return 0;
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 eval "$4=yes"
2077 else
2078 eval "$4=no"
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 eval ac_res=\$$4
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 } # ac_fn_c_check_member
2091 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2092 # ---------------------------------------------
2093 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2094 # accordingly.
2095 ac_fn_c_check_decl ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 as_decl_name=`echo $2|sed 's/ *(.*//'`
2099 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2101 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 #ifndef $as_decl_name
2112 #ifdef __cplusplus
2113 (void) $as_decl_use;
2114 #else
2115 (void) $as_decl_name;
2116 #endif
2117 #endif
2120 return 0;
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 eval "$3=yes"
2125 else
2126 eval "$3=no"
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_decl
2137 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2138 # -------------------------------------------
2139 # Tests whether TYPE exists after having included INCLUDES, setting cache
2140 # variable VAR accordingly.
2141 ac_fn_c_check_type ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145 $as_echo_n "checking for $2... " >&6; }
2146 if eval \${$3+:} false; then :
2147 $as_echo_n "(cached) " >&6
2148 else
2149 eval "$3=no"
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2154 main ()
2156 if (sizeof ($2))
2157 return 0;
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 if (sizeof (($2)))
2170 return 0;
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2177 else
2178 eval "$3=yes"
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_c_check_type
2191 # ac_fn_c_check_func LINENO FUNC VAR
2192 # ----------------------------------
2193 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2194 ac_fn_c_check_func ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if eval \${$3+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2206 #define $2 innocuous_$2
2208 /* System header to define __stub macros and hopefully few prototypes,
2209 which can conflict with char $2 (); below.
2210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2211 <limits.h> exists even on freestanding compilers. */
2213 #ifdef __STDC__
2214 # include <limits.h>
2215 #else
2216 # include <assert.h>
2217 #endif
2219 #undef $2
2221 /* Override any GCC internal prototype to avoid an error.
2222 Use char because int might match the return type of a GCC
2223 builtin and then its argument prototype would still apply. */
2224 #ifdef __cplusplus
2225 extern "C"
2226 #endif
2227 char $2 ();
2228 /* The GNU C library defines this for functions which it implements
2229 to always fail with ENOSYS. Some functions are actually named
2230 something starting with __ and the normal name is an alias. */
2231 #if defined __stub_$2 || defined __stub___$2
2232 choke me
2233 #endif
2236 main ()
2238 return $2 ();
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_link "$LINENO"; then :
2244 eval "$3=yes"
2245 else
2246 eval "$3=no"
2248 rm -f core conftest.err conftest.$ac_objext \
2249 conftest$ac_exeext conftest.$ac_ext
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 } # ac_fn_c_check_func
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2261 It was created by $as_me, which was
2262 generated by GNU Autoconf 2.68. Invocation command line was
2264 $ $0 $@
2266 _ACEOF
2267 exec 5>>config.log
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291 _ASUNAME
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2302 } >&5
2304 cat >&5 <<_ACEOF
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2311 _ACEOF
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2325 for ac_arg
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2354 as_fn_append ac_configure_args " '$ac_arg'"
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2370 echo
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2462 $as_echo "/* confdefs.h */" > confdefs.h
2464 # Predefined preprocessor variables.
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2522 done
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2541 as_fn_append ac_header_list " stdlib.h"
2542 as_fn_append ac_header_list " unistd.h"
2543 as_fn_append ac_header_list " sys/param.h"
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2593 done
2594 if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 ac_aux_dir=
2614 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2615 if test -f "$ac_dir/install-sh"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/install-sh -c"
2618 break
2619 elif test -f "$ac_dir/install.sh"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/install.sh -c"
2622 break
2623 elif test -f "$ac_dir/shtool"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 break
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643 # Check what host we are running on.
2644 # If a target is not suggested, we use this one.
2645 # Note that what we call a target, Autoconf calls a host.
2646 # Make sure we can run config.sub.
2647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2648 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2651 $as_echo_n "checking build system type... " >&6; }
2652 if ${ac_cv_build+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 ac_build_alias=$build_alias
2656 test "x$ac_build_alias" = x &&
2657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2658 test "x$ac_build_alias" = x &&
2659 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2665 $as_echo "$ac_cv_build" >&6; }
2666 case $ac_cv_build in
2667 *-*-*) ;;
2668 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2669 esac
2670 build=$ac_cv_build
2671 ac_save_IFS=$IFS; IFS='-'
2672 set x $ac_cv_build
2673 shift
2674 build_cpu=$1
2675 build_vendor=$2
2676 shift; shift
2677 # Remember, the first character of IFS is used to create $*,
2678 # except with old shells:
2679 build_os=$*
2680 IFS=$ac_save_IFS
2681 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2685 $as_echo_n "checking host system type... " >&6; }
2686 if ${ac_cv_host+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test "x$host_alias" = x; then
2690 ac_cv_host=$ac_cv_build
2691 else
2692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2699 case $ac_cv_host in
2700 *-*-*) ;;
2701 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2702 esac
2703 host=$ac_cv_host
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_host
2706 shift
2707 host_cpu=$1
2708 host_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 host_os=$*
2713 IFS=$ac_save_IFS
2714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718 # The AROS target is slightly different to the normal GNU style
2719 # format. We don't have the middle part, and we reverse the order
2720 # of the $(CPU) and $(OS) bits.
2722 # Don't strip the version of the target yet, it might be
2723 # useful on some systems.
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2726 $as_echo_n "checking for AROS style target... " >&6; }
2728 if test "$target" = "NONE" ; then
2729 target=$host_os-$host_cpu
2730 else
2731 if test "$target" = "" ; then
2732 target=$host_os-$host_cpu
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2736 $as_echo "$target" >&6; }
2738 if test "$host_os" = "mingw32" ; then
2739 PWDCMD="pwd -W"
2742 # Don't know where else to put this...
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2744 $as_echo_n "checking building AROS in... " >&6; }
2745 AROS_BUILDDIR=`${PWDCMD-pwd}`
2746 AROS_BUILDDIR_UNIX=${PWD}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2748 $as_echo "$AROS_BUILDDIR" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2751 $as_echo_n "checking AROS source in... " >&6; }
2752 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2753 SRCDIR=${srcpwd}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2755 $as_echo "$SRCDIR" >&6; }
2757 # Parse the target field into something useful.
2759 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2760 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2763 # Some debug output, to be removed again.
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2765 $as_echo_n "checking for target system (debug output)... " >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2767 $as_echo "$target_os" >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2769 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2771 $as_echo "$target_cpu" >&6; }
2773 aros_default_wbwidth=800
2774 aros_default_wbheight=600
2775 aros_default_wbdepth=4
2778 # The first step is to find the host binaries.
2779 # Check for a compiler.
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2809 IFS=$as_save_IFS
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 $as_echo "$CC" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2824 if test -z "$ac_cv_prog_CC"; then
2825 ac_ct_CC=$CC
2826 # Extract the first word of "gcc", so it can be a program name with args.
2827 set dummy gcc; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CC="gcc"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2856 $as_echo "$ac_ct_CC" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2862 if test "x$ac_ct_CC" = x; then
2863 CC=""
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2869 ac_tool_warned=yes ;;
2870 esac
2871 CC=$ac_ct_CC
2873 else
2874 CC="$ac_cv_prog_CC"
2877 if test -z "$CC"; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}cc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CC="${ac_tool_prefix}cc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2900 done
2901 done
2902 IFS=$as_save_IFS
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2918 if test -z "$CC"; then
2919 # Extract the first word of "cc", so it can be a program name with args.
2920 set dummy cc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 ac_prog_rejected=no
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2938 ac_prog_rejected=yes
2939 continue
2941 ac_cv_prog_CC="cc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2949 if test $ac_prog_rejected = yes; then
2950 # We found a bogon in the path, so make sure we never use it.
2951 set dummy $ac_cv_prog_CC
2952 shift
2953 if test $# != 0; then
2954 # We chose a different compiler from the bogus one.
2955 # However, it has the same basename, so the bogon will be chosen
2956 # first if we set CC to just the basename; use the full file name.
2957 shift
2958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 for ac_prog in cl.exe
2978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$CC" && break
3016 done
3018 if test -z "$CC"; then
3019 ac_ct_CC=$CC
3020 for ac_prog in cl.exe
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC="$ac_prog"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3045 IFS=$as_save_IFS
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3059 test -n "$ac_ct_CC" && break
3060 done
3062 if test "x$ac_ct_CC" = x; then
3063 CC=""
3064 else
3065 case $cross_compiling:$ac_tool_warned in
3066 yes:)
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069 ac_tool_warned=yes ;;
3070 esac
3071 CC=$ac_ct_CC
3078 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details" "$LINENO" 5; }
3083 # Provide some information about the compiler.
3084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3085 set X $ac_compile
3086 ac_compiler=$2
3087 for ac_option in --version -v -V -qversion; do
3088 { { ac_try="$ac_compiler $ac_option >&5"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3096 ac_status=$?
3097 if test -s conftest.err; then
3098 sed '10a\
3099 ... rest of stderr output deleted ...
3100 10q' conftest.err >conftest.er1
3101 cat conftest.er1 >&5
3103 rm -f conftest.er1 conftest.err
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }
3106 done
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3112 main ()
3116 return 0;
3118 _ACEOF
3119 ac_clean_files_save=$ac_clean_files
3120 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3121 # Try to create an executable without -o first, disregard a.out.
3122 # It will help us diagnose broken compilers, and finding out an intuition
3123 # of exeext.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3125 $as_echo_n "checking whether the C compiler works... " >&6; }
3126 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128 # The possible output files:
3129 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131 ac_rmfiles=
3132 for ac_file in $ac_files
3134 case $ac_file in
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3137 esac
3138 done
3139 rm -f $ac_rmfiles
3141 if { { ac_try="$ac_link_default"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_link_default") 2>&5
3149 ac_status=$?
3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151 test $ac_status = 0; }; then :
3152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3154 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3155 # so that the user can short-circuit this test for compilers unknown to
3156 # Autoconf.
3157 for ac_file in $ac_files ''
3159 test -f "$ac_file" || continue
3160 case $ac_file in
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3163 [ab].out )
3164 # We found the default executable, but exeext='' is most
3165 # certainly right.
3166 break;;
3167 *.* )
3168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3169 then :; else
3170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 # We set ac_cv_exeext here because the later test for it is not
3173 # safe: cross compilers may not add the suffix if given an `-o'
3174 # argument, so we may need to know it at that point already.
3175 # Even if this section looks crufty: it has the advantage of
3176 # actually working.
3177 break;;
3179 break;;
3180 esac
3181 done
3182 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184 else
3185 ac_file=''
3187 if test -z "$ac_file"; then :
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error 77 "C compiler cannot create executables
3196 See \`config.log' for more details" "$LINENO" 5; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3202 $as_echo_n "checking for C compiler default output file name... " >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3204 $as_echo "$ac_file" >&6; }
3205 ac_exeext=$ac_cv_exeext
3207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3208 ac_clean_files=$ac_clean_files_save
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210 $as_echo_n "checking for suffix of executables... " >&6; }
3211 if { { ac_try="$ac_link"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_link") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3224 # work properly (i.e., refer to `conftest.exe'), while it won't with
3225 # `rm'.
3226 for ac_file in conftest.exe conftest conftest.*; do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 break;;
3232 * ) break;;
3233 esac
3234 done
3235 else
3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details" "$LINENO" 5; }
3241 rm -f conftest conftest$ac_cv_exeext
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243 $as_echo "$ac_cv_exeext" >&6; }
3245 rm -f conftest.$ac_ext
3246 EXEEXT=$ac_cv_exeext
3247 ac_exeext=$EXEEXT
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250 #include <stdio.h>
3252 main ()
3254 FILE *f = fopen ("conftest.out", "w");
3255 return ferror (f) || fclose (f) != 0;
3258 return 0;
3260 _ACEOF
3261 ac_clean_files="$ac_clean_files conftest.out"
3262 # Check that the compiler produces executables we can run. If not, either
3263 # the compiler is broken, or we cross compile.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3265 $as_echo_n "checking whether we are cross compiling... " >&6; }
3266 if test "$cross_compiling" != yes; then
3267 { { ac_try="$ac_link"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }
3278 if { ac_try='./conftest$ac_cv_exeext'
3279 { { case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }; }; then
3289 cross_compiling=no
3290 else
3291 if test "$cross_compiling" = maybe; then
3292 cross_compiling=yes
3293 else
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "cannot run C compiled programs.
3297 If you meant to cross compile, use \`--host'.
3298 See \`config.log' for more details" "$LINENO" 5; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303 $as_echo "$cross_compiling" >&6; }
3305 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3306 ac_clean_files=$ac_clean_files_save
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3308 $as_echo_n "checking for suffix of object files... " >&6; }
3309 if ${ac_cv_objext+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 rm -f conftest.o conftest.obj
3324 if { { ac_try="$ac_compile"
3325 case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_compile") 2>&5
3332 ac_status=$?
3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334 test $ac_status = 0; }; then :
3335 for ac_file in conftest.o conftest.obj conftest.*; do
3336 test -f "$ac_file" || continue;
3337 case $ac_file in
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3340 break;;
3341 esac
3342 done
3343 else
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot compute suffix of object files: cannot compile
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3355 $as_echo "$ac_cv_objext" >&6; }
3356 OBJEXT=$ac_cv_objext
3357 ac_objext=$OBJEXT
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3359 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3360 if ${ac_cv_c_compiler_gnu+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3369 #ifndef __GNUC__
3370 choke me
3371 #endif
3374 return 0;
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_compiler_gnu=yes
3379 else
3380 ac_compiler_gnu=no
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3387 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3388 if test $ac_compiler_gnu = yes; then
3389 GCC=yes
3390 else
3391 GCC=
3393 ac_test_CFLAGS=${CFLAGS+set}
3394 ac_save_CFLAGS=$CFLAGS
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3396 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3397 if ${ac_cv_prog_cc_g+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 ac_save_c_werror_flag=$ac_c_werror_flag
3401 ac_c_werror_flag=yes
3402 ac_cv_prog_cc_g=no
3403 CFLAGS="-g"
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3408 main ()
3412 return 0;
3414 _ACEOF
3415 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_cv_prog_cc_g=yes
3417 else
3418 CFLAGS=""
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3432 else
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 CFLAGS="-g"
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3439 main ()
3443 return 0;
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_cv_prog_cc_g=yes
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 ac_c_werror_flag=$ac_save_c_werror_flag
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3457 $as_echo "$ac_cv_prog_cc_g" >&6; }
3458 if test "$ac_test_CFLAGS" = set; then
3459 CFLAGS=$ac_save_CFLAGS
3460 elif test $ac_cv_prog_cc_g = yes; then
3461 if test "$GCC" = yes; then
3462 CFLAGS="-g -O2"
3463 else
3464 CFLAGS="-g"
3466 else
3467 if test "$GCC" = yes; then
3468 CFLAGS="-O2"
3469 else
3470 CFLAGS=
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3474 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3475 if ${ac_cv_prog_cc_c89+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 ac_cv_prog_cc_c89=no
3479 ac_save_CC=$CC
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 #include <stdarg.h>
3483 #include <stdio.h>
3484 #include <sys/types.h>
3485 #include <sys/stat.h>
3486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3487 struct buf { int x; };
3488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489 static char *e (p, i)
3490 char **p;
3491 int i;
3493 return p[i];
3495 static char *f (char * (*g) (char **, int), char **p, ...)
3497 char *s;
3498 va_list v;
3499 va_start (v,p);
3500 s = g (p, va_arg (v,int));
3501 va_end (v);
3502 return s;
3505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3506 function prototypes and stuff, but not '\xHH' hex character constants.
3507 These don't provoke an error unfortunately, instead are silently treated
3508 as 'x'. The following induces an error, until -std is added to get
3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3510 array size at least. It's necessary to write '\x00'==0 to get something
3511 that's true only with -std. */
3512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515 inside strings and character constants. */
3516 #define FOO(x) 'x'
3517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3519 int test (int i, double x);
3520 struct s1 {int (*f) (int a);};
3521 struct s2 {int (*f) (double a);};
3522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523 int argc;
3524 char **argv;
3526 main ()
3528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3530 return 0;
3532 _ACEOF
3533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3536 CC="$ac_save_CC $ac_arg"
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_c89=$ac_arg
3540 rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
3542 done
3543 rm -f conftest.$ac_ext
3544 CC=$ac_save_CC
3547 # AC_CACHE_VAL
3548 case "x$ac_cv_prog_cc_c89" in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551 $as_echo "none needed" >&6; } ;;
3552 xno)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 $as_echo "unsupported" >&6; } ;;
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3559 esac
3560 if test "x$ac_cv_prog_cc_c89" != xno; then :
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 case $ac_cv_prog_cc_stdc in #(
3571 no) :
3572 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3573 *) :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3575 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3576 if ${ac_cv_prog_cc_c99+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 ac_cv_prog_cc_c99=no
3580 ac_save_CC=$CC
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <stdarg.h>
3584 #include <stdbool.h>
3585 #include <stdlib.h>
3586 #include <wchar.h>
3587 #include <stdio.h>
3589 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3590 #define debug(...) fprintf (stderr, __VA_ARGS__)
3591 #define showlist(...) puts (#__VA_ARGS__)
3592 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3593 static void
3594 test_varargs_macros (void)
3596 int x = 1234;
3597 int y = 5678;
3598 debug ("Flag");
3599 debug ("X = %d\n", x);
3600 showlist (The first, second, and third items.);
3601 report (x>y, "x is %d but y is %d", x, y);
3604 // Check long long types.
3605 #define BIG64 18446744073709551615ull
3606 #define BIG32 4294967295ul
3607 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3608 #if !BIG_OK
3609 your preprocessor is broken;
3610 #endif
3611 #if BIG_OK
3612 #else
3613 your preprocessor is broken;
3614 #endif
3615 static long long int bignum = -9223372036854775807LL;
3616 static unsigned long long int ubignum = BIG64;
3618 struct incomplete_array
3620 int datasize;
3621 double data[];
3624 struct named_init {
3625 int number;
3626 const wchar_t *name;
3627 double average;
3630 typedef const char *ccp;
3632 static inline int
3633 test_restrict (ccp restrict text)
3635 // See if C++-style comments work.
3636 // Iterate through items via the restricted pointer.
3637 // Also check for declarations in for loops.
3638 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3639 continue;
3640 return 0;
3643 // Check varargs and va_copy.
3644 static void
3645 test_varargs (const char *format, ...)
3647 va_list args;
3648 va_start (args, format);
3649 va_list args_copy;
3650 va_copy (args_copy, args);
3652 const char *str;
3653 int number;
3654 float fnumber;
3656 while (*format)
3658 switch (*format++)
3660 case 's': // string
3661 str = va_arg (args_copy, const char *);
3662 break;
3663 case 'd': // int
3664 number = va_arg (args_copy, int);
3665 break;
3666 case 'f': // float
3667 fnumber = va_arg (args_copy, double);
3668 break;
3669 default:
3670 break;
3673 va_end (args_copy);
3674 va_end (args);
3678 main ()
3681 // Check bool.
3682 _Bool success = false;
3684 // Check restrict.
3685 if (test_restrict ("String literal") == 0)
3686 success = true;
3687 char *restrict newvar = "Another string";
3689 // Check varargs.
3690 test_varargs ("s, d' f .", "string", 65, 34.234);
3691 test_varargs_macros ();
3693 // Check flexible array members.
3694 struct incomplete_array *ia =
3695 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3696 ia->datasize = 10;
3697 for (int i = 0; i < ia->datasize; ++i)
3698 ia->data[i] = i * 1.234;
3700 // Check named initializers.
3701 struct named_init ni = {
3702 .number = 34,
3703 .name = L"Test wide string",
3704 .average = 543.34343,
3707 ni.number = 58;
3709 int dynamic_array[ni.number];
3710 dynamic_array[ni.number - 1] = 543;
3712 // work around unused variable warnings
3713 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3714 || dynamic_array[ni.number - 1] != 543);
3717 return 0;
3719 _ACEOF
3720 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3722 CC="$ac_save_CC $ac_arg"
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_c99=$ac_arg
3726 rm -f core conftest.err conftest.$ac_objext
3727 test "x$ac_cv_prog_cc_c99" != "xno" && break
3728 done
3729 rm -f conftest.$ac_ext
3730 CC=$ac_save_CC
3733 # AC_CACHE_VAL
3734 case "x$ac_cv_prog_cc_c99" in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3738 xno)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3742 CC="$CC $ac_cv_prog_cc_c99"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3744 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3745 esac
3746 if test "x$ac_cv_prog_cc_c99" != xno; then :
3747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if ${ac_cv_prog_cc_c89+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_cv_prog_cc_c89=no
3755 ac_save_CC=$CC
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3769 return p[i];
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3792 #define FOO(x) 'x'
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 int argc;
3800 char **argv;
3802 main ()
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 return 0;
3808 _ACEOF
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 CC="$ac_save_CC $ac_arg"
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_cv_prog_cc_c89=$ac_arg
3816 rm -f core conftest.err conftest.$ac_objext
3817 test "x$ac_cv_prog_cc_c89" != "xno" && break
3818 done
3819 rm -f conftest.$ac_ext
3820 CC=$ac_save_CC
3823 # AC_CACHE_VAL
3824 case "x$ac_cv_prog_cc_c89" in
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3827 $as_echo "none needed" >&6; } ;;
3828 xno)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830 $as_echo "unsupported" >&6; } ;;
3832 CC="$CC $ac_cv_prog_cc_c89"
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3834 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3835 esac
3836 if test "x$ac_cv_prog_cc_c89" != xno; then :
3837 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3838 else
3839 ac_cv_prog_cc_stdc=no
3844 esac
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3846 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3847 if ${ac_cv_prog_cc_stdc+:} false; then :
3848 $as_echo_n "(cached) " >&6
3851 case $ac_cv_prog_cc_stdc in #(
3852 no) :
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;; #(
3855 '') :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;; #(
3858 *) :
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3860 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3861 esac
3863 ac_ext=cpp
3864 ac_cpp='$CXXCPP $CPPFLAGS'
3865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3868 if test -z "$CXX"; then
3869 if test -n "$CCC"; then
3870 CXX=$CCC
3871 else
3872 if test -n "$ac_tool_prefix"; then
3873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_CXX+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$CXX"; then
3883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3896 done
3897 done
3898 IFS=$as_save_IFS
3902 CXX=$ac_cv_prog_CXX
3903 if test -n "$CXX"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3905 $as_echo "$CXX" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$CXX" && break
3913 done
3915 if test -z "$CXX"; then
3916 ac_ct_CXX=$CXX
3917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$ac_ct_CXX"; then
3927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_ac_ct_CXX="$ac_prog"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3942 IFS=$as_save_IFS
3946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3947 if test -n "$ac_ct_CXX"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3949 $as_echo "$ac_ct_CXX" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3956 test -n "$ac_ct_CXX" && break
3957 done
3959 if test "x$ac_ct_CXX" = x; then
3960 CXX="g++"
3961 else
3962 case $cross_compiling:$ac_tool_warned in
3963 yes:)
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966 ac_tool_warned=yes ;;
3967 esac
3968 CXX=$ac_ct_CXX
3974 # Provide some information about the compiler.
3975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3976 set X $ac_compile
3977 ac_compiler=$2
3978 for ac_option in --version -v -V -qversion; do
3979 { { ac_try="$ac_compiler $ac_option >&5"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987 ac_status=$?
3988 if test -s conftest.err; then
3989 sed '10a\
3990 ... rest of stderr output deleted ...
3991 10q' conftest.err >conftest.er1
3992 cat conftest.er1 >&5
3994 rm -f conftest.er1 conftest.err
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3997 done
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4001 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4010 #ifndef __GNUC__
4011 choke me
4012 #endif
4015 return 0;
4017 _ACEOF
4018 if ac_fn_cxx_try_compile "$LINENO"; then :
4019 ac_compiler_gnu=yes
4020 else
4021 ac_compiler_gnu=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030 GXX=yes
4031 else
4032 GXX=
4034 ac_test_CXXFLAGS=${CXXFLAGS+set}
4035 ac_save_CXXFLAGS=$CXXFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4038 if ${ac_cv_prog_cxx_g+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4042 ac_cxx_werror_flag=yes
4043 ac_cv_prog_cxx_g=no
4044 CXXFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4049 main ()
4053 return 0;
4055 _ACEOF
4056 if ac_fn_cxx_try_compile "$LINENO"; then :
4057 ac_cv_prog_cxx_g=yes
4058 else
4059 CXXFLAGS=""
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4064 main ()
4068 return 0;
4070 _ACEOF
4071 if ac_fn_cxx_try_compile "$LINENO"; then :
4073 else
4074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4075 CXXFLAGS="-g"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 if ac_fn_cxx_try_compile "$LINENO"; then :
4088 ac_cv_prog_cxx_g=yes
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4099 if test "$ac_test_CXXFLAGS" = set; then
4100 CXXFLAGS=$ac_save_CXXFLAGS
4101 elif test $ac_cv_prog_cxx_g = yes; then
4102 if test "$GXX" = yes; then
4103 CXXFLAGS="-g -O2"
4104 else
4105 CXXFLAGS="-g"
4107 else
4108 if test "$GXX" = yes; then
4109 CXXFLAGS="-O2"
4110 else
4111 CXXFLAGS=
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4126 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4127 # On Suns, sometimes $CPP names a directory.
4128 if test -n "$CPP" && test -d "$CPP"; then
4129 CPP=
4131 if test -z "$CPP"; then
4132 if ${ac_cv_prog_CPP+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 # Double quotes because CPP needs to be expanded
4136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4138 ac_preproc_ok=false
4139 for ac_c_preproc_warn_flag in '' yes
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154 Syntax error
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4158 else
4159 # Broken: fails on valid input.
4160 continue
4162 rm -f conftest.err conftest.i conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4172 continue
4173 else
4174 # Passes both tests.
4175 ac_preproc_ok=:
4176 break
4178 rm -f conftest.err conftest.i conftest.$ac_ext
4180 done
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.i conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4184 break
4187 done
4188 ac_cv_prog_CPP=$CPP
4191 CPP=$ac_cv_prog_CPP
4192 else
4193 ac_cv_prog_CPP=$CPP
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4196 $as_echo "$CPP" >&6; }
4197 ac_preproc_ok=false
4198 for ac_c_preproc_warn_flag in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213 Syntax error
4214 _ACEOF
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4217 else
4218 # Broken: fails on valid input.
4219 continue
4221 rm -f conftest.err conftest.i conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230 # Broken: success on invalid input.
4231 continue
4232 else
4233 # Passes both tests.
4234 ac_preproc_ok=:
4235 break
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4239 done
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.i conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then :
4244 else
4245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4247 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4248 See \`config.log' for more details" "$LINENO" 5; }
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 # Check for a compatible awk
4259 for ac_prog in gawk nawk
4261 # Extract the first word of "$ac_prog", so it can be a program name with args.
4262 set dummy $ac_prog; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_AWK+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -n "$AWK"; then
4269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_AWK="$ac_prog"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4288 AWK=$ac_cv_prog_AWK
4289 if test -n "$AWK"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4291 $as_echo "$AWK" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4298 test -n "$AWK" && break
4299 done
4301 if test "$AWK" = ""; then
4302 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4304 # Extract the first word of "mmake", so it can be a program name with args.
4305 set dummy mmake; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_MMAKE+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$MMAKE"; then
4312 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_MMAKE="mmake "
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 MMAKE=$ac_cv_prog_MMAKE
4332 if test -n "$MMAKE"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4334 $as_echo "$MMAKE" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4342 # Perform some default variable assignments. Note all of these will be
4343 # Regenerated from the script, so there is no need to cache them.
4345 aros_host_cpp="$CPP"
4346 aros_host_cc="$CC"
4347 aros_host_cxx="$CXX"
4348 if test "$GCC" = "yes"; then
4349 aros_gcc_ld=`$CC -print-prog-name=ld`
4350 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4351 set dummy `basename $aros_gcc_ld`; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_path_aros_host_ld+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 case $aros_host_ld in
4358 [\\/]* | ?:[\\/]*)
4359 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in `dirname $aros_gcc_ld`
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4378 esac
4380 aros_host_ld=$ac_cv_path_aros_host_ld
4381 if test -n "$aros_host_ld"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4383 $as_echo "$aros_host_ld" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4391 if test "$aros_host_ld" = ""; then
4392 # Extract the first word of "ld", so it can be a program name with args.
4393 set dummy ld; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_path_aros_host_ld+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 case $aros_host_ld in
4400 [\\/]* | ?:[\\/]*)
4401 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4420 esac
4422 aros_host_ld=$ac_cv_path_aros_host_ld
4423 if test -n "$aros_host_ld"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4425 $as_echo "$aros_host_ld" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4433 if test "$aros_host_ld" = ""; then
4434 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4436 aros_host_make="make"
4437 aros_host_cflags=$CFLAGS
4438 aros_host_cxxflags=$CXXFLAGS
4439 aros_host_ldflags=$LDFLAGS
4440 aros_host_debug="-g -O0"
4441 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4442 aros_host_mkargs="--no-print-directory"
4443 aros_host_exe_suffix="$EXEEXT"
4444 aros_host_lib_suffix=""
4446 # Ignore all compliance, AROS ROMs = 0
4447 # KickStart v1.0 = 30
4448 # KickStart v1.3 = 34
4449 # KickStart v2.0 = 37
4450 # KickStart v3.0 = 39
4451 # KickStart v3.1 = 40
4452 # AmigaOS v3.5 = 44
4453 aros_amigaos_compliance=0
4455 for ac_prog in aclocal aclocal19 aclocal-1.9
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458 set dummy $ac_prog; ac_word=$2
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$aros_host_aclocal"; then
4465 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_aros_host_aclocal="$ac_prog"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4485 if test -n "$aros_host_aclocal"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4487 $as_echo "$aros_host_aclocal" >&6; }
4488 else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4494 test -n "$aros_host_aclocal" && break
4495 done
4497 for ac_prog in autoconf autoconf259 autoconf253
4499 # Extract the first word of "$ac_prog", so it can be a program name with args.
4500 set dummy $ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$aros_host_autoconf"; then
4507 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_aros_host_autoconf="$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4522 IFS=$as_save_IFS
4526 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4527 if test -n "$aros_host_autoconf"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4529 $as_echo "$aros_host_autoconf" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4536 test -n "$aros_host_autoconf" && break
4537 done
4539 for ac_prog in autoheader autoheader259 autoheader253
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$aros_host_autoheader"; then
4549 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_aros_host_autoheader="$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4564 IFS=$as_save_IFS
4568 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4569 if test -n "$aros_host_autoheader"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4571 $as_echo "$aros_host_autoheader" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 test -n "$aros_host_autoheader" && break
4579 done
4581 for ac_prog in automake automake19 automake-1.9
4583 # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_aros_host_automake+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$aros_host_automake"; then
4591 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_aros_host_automake="$ac_prog"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4604 done
4605 done
4606 IFS=$as_save_IFS
4610 aros_host_automake=$ac_cv_prog_aros_host_automake
4611 if test -n "$aros_host_automake"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4613 $as_echo "$aros_host_automake" >&6; }
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4620 test -n "$aros_host_automake" && break
4621 done
4624 if test "$aros_host_aclocal" = ""; then
4625 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4627 if test "$aros_host_automake" = ""; then
4628 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4631 case "$aros_host_cc" in
4632 *gcc*)
4633 aros_host_cc_pipe="-pipe"
4635 icc)
4636 aros_host_cc_pipe=""
4639 aros_host_cc_pipe=""
4641 esac
4643 aros_kernel_cc_includes=""
4644 aros_target_cc_includes=""
4645 host_cc_elf=yes
4647 # ----------------------------------------------------------------------------------------
4648 # Host-specific defaults
4650 # This is the main host configuration section. It is where the host
4651 # can change the values of any variables it needs to change. We do
4652 # not look at anything that compiles to the target yet, we'll get
4653 # to that later.
4655 case "$host_os" in
4656 aros*)
4657 aros_host_arch="aros"
4658 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4659 case "$host_cpu" in
4660 *i?86*)
4661 aros_host_cpu="i386"
4663 *x86_64*)
4664 aros_host_cpu="x86_64"
4666 *powerpc*)
4667 aros_host_cpu="ppc"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4671 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4672 aros_host_cpu="$host_cpu"
4674 esac
4677 linux*)
4678 aros_host_arch="linux"
4679 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4680 android_build_os="linux-x86"
4681 android_tool="android"
4682 default_android_sdk="/opt/android-sdk-linux_x86"
4683 case "$host_cpu" in
4684 *i?86*)
4685 aros_host_cpu="i386"
4687 *x86_64*)
4688 aros_host_cpu="x86_64"
4690 *m68k*)
4691 aros_host_cpu="m68k"
4693 *powerpc*)
4694 aros_host_cpu="ppc"
4696 *arm*)
4697 aros_host_cpu="arm"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4701 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4702 aros_host_cpu="$host_cpu"
4704 esac
4707 freebsd*)
4708 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4709 aros_host_make="gmake"
4710 aros_host_arch="freebsd"
4711 aros_host_cpu="i386"
4713 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4715 case $host_os in
4716 freebsd[234]*)
4717 aros_object_format="elf_i386"
4721 aros_object_format="elf_i386_fbsd"
4723 esac
4727 darwin*)
4728 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4729 aros_host_arch="darwin"
4730 host_cc_elf=no
4731 android_build_os="darwin-x86"
4732 android_tool="android"
4733 default_android_sdk="/android-sdk-mac_x86"
4734 case "$host_cpu" in
4735 *i?86*)
4736 aros_host_cpu="i386"
4738 *x86_64*)
4739 aros_host_cpu="x86_64"
4741 *powerpc*)
4742 aros_host_cpu="ppc"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4746 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4747 aros_host_cpu="$host_cpu"
4749 esac
4751 aros_host_ldflags="$aros_host_ldflags -liconv"
4755 dragonfly*)
4756 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4757 aros_host_make="gmake"
4758 aros_host_arch="dragonfly"
4759 case $host_cpu in
4760 *i?86*)
4761 aros_host_cpu="i386"
4763 *amd64*)
4764 aros_host_cpu="x86_64"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4768 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4769 aros_host_cpu="$host_cpu"
4771 esac
4774 netbsd*)
4775 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4776 aros_host_make="gmake"
4777 aros_host_arch="netbsd"
4778 case "$host_cpu" in
4779 *i?86*)
4780 aros_host_cpu="i386"
4782 *m68k*)
4783 aros_host_cpu="m68k"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4787 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4788 aros_host_cpu="$host_cpu"
4790 esac
4791 aros_host_lib_suffix=".0.0"
4794 openbsd*)
4795 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4796 aros_host_make="gmake"
4797 aros_host_arch="openbsd"
4798 case "$host_cpu" in
4799 *i?86*)
4800 aros_host_cpu="i386"
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 solaris*)
4811 aros_host_arch="solaris"
4812 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4813 case "$host_cpu" in
4814 *i?86*)
4815 aros_host_cpu="i386"
4817 *sparc*)
4818 aros_host_cpu="sparc"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4822 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4823 aros_host_cpu="$host_cpu"
4825 esac
4828 morphos*)
4829 aros_host_arch="morphos"
4830 aros_host_cpu="ppc"
4831 host_cc_elf=no
4834 amiga*)
4835 aros_host_arch="amiga"
4836 host_cc_elf=no
4837 SORT="/gg/bin/sort"
4838 TEST="/gg/bin/test"
4839 UNIQ="/gg/bin/uniq"
4840 FOR="for"
4841 TOUCH="/gg/bin/touch"
4842 case "$host_cpu" in
4843 *m68k*)
4844 aros_host_cpu="m68k"
4846 *powerpc*)
4847 aros_host_cpu="ppc"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4851 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4852 aros_host_cpu="$host_cpu"
4854 esac
4857 cygwin*)
4858 aros_host_arch="cygwin"
4859 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4860 host_cc_elf=no
4861 android_build_os="windows"
4862 android_tool="android.bat"
4863 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4865 case "$host_cpu" in
4866 *i?86*)
4867 aros_host_cpu="i386"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4871 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4872 aros_host_cpu="$host_cpu"
4874 esac
4877 mingw32*)
4878 aros_host_arch="mingw32"
4879 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4880 host_cc_elf=no
4881 android_build_os="windows"
4882 android_tool="android.bat"
4883 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4885 case "$host_cpu" in
4886 *i?86*)
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4889 $as_echo_n "checking for Windows native gcc target... " >&6; }
4890 host_cpu=`gcc -dumpmachine`
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4892 $as_echo "$host_cpu" >&6; }
4895 esac
4897 case "$host_cpu" in
4898 *i?86*)
4899 aros_host_cpu="i386"
4902 mingw32*)
4903 aros_host_cpu="i386"
4906 *x86_64*)
4907 aros_host_cpu="x86_64"
4908 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4913 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4914 aros_host_cpu="$host_cpu"
4916 esac
4919 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4921 esac
4923 # Extract the first word of "ar", so it can be a program name with args.
4924 set dummy ar; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_aros_host_ar+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$aros_host_ar"; then
4931 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_aros_host_ar="ar cr"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 aros_host_ar=$ac_cv_prog_aros_host_ar
4951 if test -n "$aros_host_ar"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4953 $as_echo "$aros_host_ar" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4960 if test "$aros_host_ar" = ""; then
4961 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4963 # Extract the first word of "ranlib", so it can be a program name with args.
4964 set dummy ranlib; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$aros_host_ranlib"; then
4971 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_aros_host_ranlib="ranlib "
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4984 done
4985 done
4986 IFS=$as_save_IFS
4990 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4991 if test -n "$aros_host_ranlib"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4993 $as_echo "$aros_host_ranlib" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
5000 if test "$aros_host_ranlib" = ""; then
5001 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5003 # Extract the first word of "strip", so it can be a program name with args.
5004 set dummy strip; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_aros_host_strip+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if test -n "$aros_host_strip"; then
5011 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_aros_host_strip="strip "
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5024 done
5025 done
5026 IFS=$as_save_IFS
5030 aros_host_strip=$ac_cv_prog_aros_host_strip
5031 if test -n "$aros_host_strip"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5033 $as_echo "$aros_host_strip" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 if test "$aros_host_strip" = ""; then
5041 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5044 # Extract the first word of "rm", so it can be a program name with args.
5045 set dummy rm; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_RM+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$RM"; then
5052 ac_cv_prog_RM="$RM" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_RM="rm -rf"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 RM=$ac_cv_prog_RM
5072 if test -n "$RM"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5074 $as_echo "$RM" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 if test "$RM" = ""; then
5082 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5084 # Extract the first word of "cp", so it can be a program name with args.
5085 set dummy cp; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_prog_CP+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$CP"; then
5092 ac_cv_prog_CP="$CP" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_CP="cp "
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 CP=$ac_cv_prog_CP
5112 if test -n "$CP"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5114 $as_echo "$CP" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 if test "$CP" = ""; then
5122 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5124 # Extract the first word of "mv", so it can be a program name with args.
5125 set dummy mv; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_MV+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$MV"; then
5132 ac_cv_prog_MV="$MV" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_MV="mv "
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 MV=$ac_cv_prog_MV
5152 if test -n "$MV"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5154 $as_echo "$MV" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 if test "$MV" = ""; then
5162 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5164 # Extract the first word of "echo", so it can be a program name with args.
5165 set dummy echo; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ECHO+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$ECHO"; then
5172 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ECHO="echo "
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 ECHO=$ac_cv_prog_ECHO
5192 if test -n "$ECHO"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5194 $as_echo "$ECHO" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5201 if test "$ECHO" = ""; then
5202 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5204 # Extract the first word of "mkdir", so it can be a program name with args.
5205 set dummy mkdir; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_MKDIR+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$MKDIR"; then
5212 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_MKDIR="mkdir -p"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 MKDIR=$ac_cv_prog_MKDIR
5232 if test -n "$MKDIR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5234 $as_echo "$MKDIR" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 if test "$MKDIR" = ""; then
5242 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5244 # Extract the first word of "touch", so it can be a program name with args.
5245 set dummy touch; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_TOUCH+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$TOUCH"; then
5252 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_TOUCH="touch "
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 TOUCH=$ac_cv_prog_TOUCH
5272 if test -n "$TOUCH"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5274 $as_echo "$TOUCH" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 if test "$TOUCH" = ""; then
5282 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5284 # Extract the first word of "sort", so it can be a program name with args.
5285 set dummy sort; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_SORT+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$SORT"; then
5292 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_SORT="sort "
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 SORT=$ac_cv_prog_SORT
5312 if test -n "$SORT"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5314 $as_echo "$SORT" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 if test "$SORT" = ""; then
5322 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5324 # Extract the first word of "uniq", so it can be a program name with args.
5325 set dummy uniq; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_UNIQ+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$UNIQ"; then
5332 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_UNIQ="uniq "
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5351 UNIQ=$ac_cv_prog_UNIQ
5352 if test -n "$UNIQ"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5354 $as_echo "$UNIQ" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5361 if test "$UNIQ" = ""; then
5362 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5364 # Extract the first word of "true", so it can be a program name with args.
5365 set dummy true; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_NOP+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$NOP"; then
5372 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_NOP="true "
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5391 NOP=$ac_cv_prog_NOP
5392 if test -n "$NOP"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5394 $as_echo "$NOP" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5401 if test "$NOP" = ""; then
5402 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5404 # Extract the first word of "cat", so it can be a program name with args.
5405 set dummy cat; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_prog_CAT+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$CAT"; then
5412 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_CAT="cat "
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5425 done
5426 done
5427 IFS=$as_save_IFS
5431 CAT=$ac_cv_prog_CAT
5432 if test -n "$CAT"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5434 $as_echo "$CAT" >&6; }
5435 else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5441 if test "$CAT" = ""; then
5442 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5444 # Extract the first word of "bison", so it can be a program name with args.
5445 set dummy bison; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_BISON+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$BISON"; then
5452 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_BISON="bison "
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5465 done
5466 done
5467 IFS=$as_save_IFS
5471 BISON=$ac_cv_prog_BISON
5472 if test -n "$BISON"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5474 $as_echo "$BISON" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 if test "$BISON" = ""; then
5482 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5484 # Extract the first word of "flex", so it can be a program name with args.
5485 set dummy flex; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_FLEX+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$FLEX"; then
5492 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_FLEX="flex "
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 FLEX=$ac_cv_prog_FLEX
5512 if test -n "$FLEX"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5514 $as_echo "$FLEX" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 if test "$FLEX" = ""; then
5522 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5524 # Extract the first word of "pngtopnm", so it can be a program name with args.
5525 set dummy pngtopnm; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$PNGTOPNM"; then
5532 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_PNGTOPNM="pngtopnm "
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5552 if test -n "$PNGTOPNM"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5554 $as_echo "$PNGTOPNM" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 if test "$PNGTOPNM" = ""; then
5562 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5564 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5565 set dummy ppmtoilbm; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$PPMTOILBM"; then
5572 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5585 done
5586 done
5587 IFS=$as_save_IFS
5591 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5592 if test -n "$PPMTOILBM"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5594 $as_echo "$PPMTOILBM" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5601 if test "$PPMTOILBM" = ""; then
5602 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5604 # Extract the first word of "sed", so it can be a program name with args.
5605 set dummy sed; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_SED+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$SED"; then
5612 ac_cv_prog_SED="$SED" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_SED="sed "
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5625 done
5626 done
5627 IFS=$as_save_IFS
5631 SED=$ac_cv_prog_SED
5632 if test -n "$SED"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5634 $as_echo "$SED" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 if test "$SED" = ""; then
5642 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5644 # Extract the first word of "chmod", so it can be a program name with args.
5645 set dummy chmod; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_CHMOD+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -n "$CHMOD"; then
5652 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_CHMOD="chmod "
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5667 IFS=$as_save_IFS
5671 CHMOD=$ac_cv_prog_CHMOD
5672 if test -n "$CHMOD"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5674 $as_echo "$CHMOD" >&6; }
5675 else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5681 if test "$CHMOD" = ""; then
5682 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5684 # Extract the first word of "patch", so it can be a program name with args.
5685 set dummy patch; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_PATCH+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$PATCH"; then
5692 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_PATCH="patch "
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 PATCH=$ac_cv_prog_PATCH
5712 if test -n "$PATCH"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5714 $as_echo "$PATCH" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 if test "$PATCH" = ""; then
5722 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5731 if test -n "$PYTHON"; then
5732 # If the user set $PYTHON, use it and don't search something else.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5734 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5735 prog="import sys
5736 # split strings by '.' and convert to numeric. Append some zeros
5737 # because we need at least 4 digits for the hex conversion.
5738 # map returns an iterator in Python 3.0 and a list in 2.x
5739 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5740 minverhex = 0
5741 # xrange is not present in Python 3.0 and range returns an iterator
5742 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5743 sys.exit(sys.hexversion < minverhex)"
5744 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5745 ($PYTHON -c "$prog") >&5 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750 $as_echo "yes" >&6; }
5751 else
5752 as_fn_error $? "too old" "$LINENO" 5
5754 am_display_PYTHON=$PYTHON
5755 else
5756 # Otherwise, try each interpreter until we find one that satisfies
5757 # VERSION.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5759 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5760 if ${am_cv_pathless_PYTHON+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5764 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
5765 test "$am_cv_pathless_PYTHON" = none && break
5766 prog="import sys
5767 # split strings by '.' and convert to numeric. Append some zeros
5768 # because we need at least 4 digits for the hex conversion.
5769 # map returns an iterator in Python 3.0 and a list in 2.x
5770 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5771 minverhex = 0
5772 # xrange is not present in Python 3.0 and range returns an iterator
5773 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5774 sys.exit(sys.hexversion < minverhex)"
5775 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5776 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; then :
5780 break
5782 done
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5785 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5786 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5787 if test "$am_cv_pathless_PYTHON" = none; then
5788 PYTHON=:
5789 else
5790 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5791 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_path_PYTHON+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 case $PYTHON in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5813 done
5814 done
5815 IFS=$as_save_IFS
5818 esac
5820 PYTHON=$ac_cv_path_PYTHON
5821 if test -n "$PYTHON"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5823 $as_echo "$PYTHON" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5831 am_display_PYTHON=$am_cv_pathless_PYTHON
5835 if test "$PYTHON" = :; then
5836 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5837 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5841 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5842 if ${am_cv_python_version+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5848 $as_echo "$am_cv_python_version" >&6; }
5849 PYTHON_VERSION=$am_cv_python_version
5853 PYTHON_PREFIX='${prefix}'
5855 PYTHON_EXEC_PREFIX='${exec_prefix}'
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5860 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5861 if ${am_cv_python_platform+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5867 $as_echo "$am_cv_python_platform" >&6; }
5868 PYTHON_PLATFORM=$am_cv_python_platform
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5874 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5875 if ${am_cv_python_pythondir+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test "x$prefix" = xNONE
5879 then
5880 am_py_prefix=$ac_default_prefix
5881 else
5882 am_py_prefix=$prefix
5884 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`
5885 case $am_cv_python_pythondir in
5886 $am_py_prefix*)
5887 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5888 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5891 case $am_py_prefix in
5892 /usr|/System*) ;;
5894 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5896 esac
5898 esac
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5902 $as_echo "$am_cv_python_pythondir" >&6; }
5903 pythondir=$am_cv_python_pythondir
5907 pkgpythondir=\${pythondir}/$PACKAGE
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5911 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5912 if ${am_cv_python_pyexecdir+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test "x$exec_prefix" = xNONE
5916 then
5917 am_py_exec_prefix=$am_py_prefix
5918 else
5919 am_py_exec_prefix=$exec_prefix
5921 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`
5922 case $am_cv_python_pyexecdir in
5923 $am_py_exec_prefix*)
5924 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5925 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5928 case $am_py_exec_prefix in
5929 /usr|/System*) ;;
5931 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5933 esac
5935 esac
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5939 $as_echo "$am_cv_python_pyexecdir" >&6; }
5940 pyexecdir=$am_cv_python_pyexecdir
5944 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5952 FOR=for
5954 IF=if
5956 TEST=test
5958 CMP=cmp
5962 # Check for some includes for the X11 HIDD and the kernel
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5966 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5967 if ${ac_cv_path_GREP+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if test -z "$GREP"; then
5971 ac_path_GREP_found=false
5972 # Loop through the user's path and test for each of PROGNAME-LIST
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_prog in grep ggrep; do
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5982 # Check for GNU ac_path_GREP and select it if it is found.
5983 # Check for GNU $ac_path_GREP
5984 case `"$ac_path_GREP" --version 2>&1` in
5985 *GNU*)
5986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5988 ac_count=0
5989 $as_echo_n 0123456789 >"conftest.in"
5990 while :
5992 cat "conftest.in" "conftest.in" >"conftest.tmp"
5993 mv "conftest.tmp" "conftest.in"
5994 cp "conftest.in" "conftest.nl"
5995 $as_echo 'GREP' >> "conftest.nl"
5996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5998 as_fn_arith $ac_count + 1 && ac_count=$as_val
5999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6000 # Best one so far, save it but keep looking for a better one
6001 ac_cv_path_GREP="$ac_path_GREP"
6002 ac_path_GREP_max=$ac_count
6004 # 10*(2^10) chars as input seems more than enough
6005 test $ac_count -gt 10 && break
6006 done
6007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6008 esac
6010 $ac_path_GREP_found && break 3
6011 done
6012 done
6013 done
6014 IFS=$as_save_IFS
6015 if test -z "$ac_cv_path_GREP"; then
6016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6018 else
6019 ac_cv_path_GREP=$GREP
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6024 $as_echo "$ac_cv_path_GREP" >&6; }
6025 GREP="$ac_cv_path_GREP"
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6029 $as_echo_n "checking for egrep... " >&6; }
6030 if ${ac_cv_path_EGREP+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6034 then ac_cv_path_EGREP="$GREP -E"
6035 else
6036 if test -z "$EGREP"; then
6037 ac_path_EGREP_found=false
6038 # Loop through the user's path and test for each of PROGNAME-LIST
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_prog in egrep; do
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6048 # Check for GNU ac_path_EGREP and select it if it is found.
6049 # Check for GNU $ac_path_EGREP
6050 case `"$ac_path_EGREP" --version 2>&1` in
6051 *GNU*)
6052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6054 ac_count=0
6055 $as_echo_n 0123456789 >"conftest.in"
6056 while :
6058 cat "conftest.in" "conftest.in" >"conftest.tmp"
6059 mv "conftest.tmp" "conftest.in"
6060 cp "conftest.in" "conftest.nl"
6061 $as_echo 'EGREP' >> "conftest.nl"
6062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6064 as_fn_arith $ac_count + 1 && ac_count=$as_val
6065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6066 # Best one so far, save it but keep looking for a better one
6067 ac_cv_path_EGREP="$ac_path_EGREP"
6068 ac_path_EGREP_max=$ac_count
6070 # 10*(2^10) chars as input seems more than enough
6071 test $ac_count -gt 10 && break
6072 done
6073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6074 esac
6076 $ac_path_EGREP_found && break 3
6077 done
6078 done
6079 done
6080 IFS=$as_save_IFS
6081 if test -z "$ac_cv_path_EGREP"; then
6082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6084 else
6085 ac_cv_path_EGREP=$EGREP
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6091 $as_echo "$ac_cv_path_EGREP" >&6; }
6092 EGREP="$ac_cv_path_EGREP"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6096 $as_echo_n "checking for ANSI C header files... " >&6; }
6097 if ${ac_cv_header_stdc+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #include <stdlib.h>
6103 #include <stdarg.h>
6104 #include <string.h>
6105 #include <float.h>
6108 main ()
6112 return 0;
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"; then :
6116 ac_cv_header_stdc=yes
6117 else
6118 ac_cv_header_stdc=no
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 if test $ac_cv_header_stdc = yes; then
6123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <string.h>
6128 _ACEOF
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "memchr" >/dev/null 2>&1; then :
6132 else
6133 ac_cv_header_stdc=no
6135 rm -f conftest*
6139 if test $ac_cv_header_stdc = yes; then
6140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <stdlib.h>
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev/null 2>&1; then :
6149 else
6150 ac_cv_header_stdc=no
6152 rm -f conftest*
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then :
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include <ctype.h>
6164 #include <stdlib.h>
6165 #if ((' ' & 0x0FF) == 0x020)
6166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6168 #else
6169 # define ISLOWER(c) \
6170 (('a' <= (c) && (c) <= 'i') \
6171 || ('j' <= (c) && (c) <= 'r') \
6172 || ('s' <= (c) && (c) <= 'z'))
6173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6174 #endif
6176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178 main ()
6180 int i;
6181 for (i = 0; i < 256; i++)
6182 if (XOR (islower (i), ISLOWER (i))
6183 || toupper (i) != TOUPPER (i))
6184 return 2;
6185 return 0;
6187 _ACEOF
6188 if ac_fn_c_try_run "$LINENO"; then :
6190 else
6191 ac_cv_header_stdc=no
6193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6194 conftest.$ac_objext conftest.beam conftest.$ac_ext
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6200 $as_echo "$ac_cv_header_stdc" >&6; }
6201 if test $ac_cv_header_stdc = yes; then
6203 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6209 inttypes.h stdint.h unistd.h
6210 do :
6211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 _ACEOF
6221 done
6224 for ac_header in sys/ipc.h sys/shm.h \
6225 sys/mmap.h sys/mman.h sysexits.h \
6226 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6228 do :
6229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6232 cat >>confdefs.h <<_ACEOF
6233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6234 _ACEOF
6238 done
6241 for ac_header in sys/mount.h
6242 do :
6243 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6245 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6246 cat >>confdefs.h <<_ACEOF
6247 #define HAVE_SYS_MOUNT_H 1
6248 _ACEOF
6252 done
6255 ac_header_dirent=no
6256 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6257 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6259 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6260 if eval \${$as_ac_Header+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <sys/types.h>
6266 #include <$ac_hdr>
6269 main ()
6271 if ((DIR *) 0)
6272 return 0;
6274 return 0;
6276 _ACEOF
6277 if ac_fn_c_try_compile "$LINENO"; then :
6278 eval "$as_ac_Header=yes"
6279 else
6280 eval "$as_ac_Header=no"
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 eval ac_res=\$$as_ac_Header
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6286 $as_echo "$ac_res" >&6; }
6287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6288 cat >>confdefs.h <<_ACEOF
6289 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6290 _ACEOF
6292 ac_header_dirent=$ac_hdr; break
6295 done
6296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6297 if test $ac_header_dirent = dirent.h; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6299 $as_echo_n "checking for library containing opendir... " >&6; }
6300 if ${ac_cv_search_opendir+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 ac_func_search_save_LIBS=$LIBS
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6307 /* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6310 #ifdef __cplusplus
6311 extern "C"
6312 #endif
6313 char opendir ();
6315 main ()
6317 return opendir ();
6319 return 0;
6321 _ACEOF
6322 for ac_lib in '' dir; do
6323 if test -z "$ac_lib"; then
6324 ac_res="none required"
6325 else
6326 ac_res=-l$ac_lib
6327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6329 if ac_fn_c_try_link "$LINENO"; then :
6330 ac_cv_search_opendir=$ac_res
6332 rm -f core conftest.err conftest.$ac_objext \
6333 conftest$ac_exeext
6334 if ${ac_cv_search_opendir+:} false; then :
6335 break
6337 done
6338 if ${ac_cv_search_opendir+:} false; then :
6340 else
6341 ac_cv_search_opendir=no
6343 rm conftest.$ac_ext
6344 LIBS=$ac_func_search_save_LIBS
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6347 $as_echo "$ac_cv_search_opendir" >&6; }
6348 ac_res=$ac_cv_search_opendir
6349 if test "$ac_res" != no; then :
6350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6356 $as_echo_n "checking for library containing opendir... " >&6; }
6357 if ${ac_cv_search_opendir+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 ac_func_search_save_LIBS=$LIBS
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6364 /* Override any GCC internal prototype to avoid an error.
6365 Use char because int might match the return type of a GCC
6366 builtin and then its argument prototype would still apply. */
6367 #ifdef __cplusplus
6368 extern "C"
6369 #endif
6370 char opendir ();
6372 main ()
6374 return opendir ();
6376 return 0;
6378 _ACEOF
6379 for ac_lib in '' x; do
6380 if test -z "$ac_lib"; then
6381 ac_res="none required"
6382 else
6383 ac_res=-l$ac_lib
6384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6386 if ac_fn_c_try_link "$LINENO"; then :
6387 ac_cv_search_opendir=$ac_res
6389 rm -f core conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext
6391 if ${ac_cv_search_opendir+:} false; then :
6392 break
6394 done
6395 if ${ac_cv_search_opendir+:} false; then :
6397 else
6398 ac_cv_search_opendir=no
6400 rm conftest.$ac_ext
6401 LIBS=$ac_func_search_save_LIBS
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6404 $as_echo "$ac_cv_search_opendir" >&6; }
6405 ac_res=$ac_cv_search_opendir
6406 if test "$ac_res" != no; then :
6407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6414 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6415 if ${ac_cv_header_stat_broken+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 #include <sys/types.h>
6421 #include <sys/stat.h>
6423 #if defined S_ISBLK && defined S_IFDIR
6424 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6425 #endif
6427 #if defined S_ISBLK && defined S_IFCHR
6428 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6429 #endif
6431 #if defined S_ISLNK && defined S_IFREG
6432 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6433 #endif
6435 #if defined S_ISSOCK && defined S_IFREG
6436 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6437 #endif
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 ac_cv_header_stat_broken=no
6442 else
6443 ac_cv_header_stat_broken=yes
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6448 $as_echo "$ac_cv_header_stat_broken" >&6; }
6449 if test $ac_cv_header_stat_broken = yes; then
6451 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6456 $as_echo_n "checking for ANSI C header files... " >&6; }
6457 if ${ac_cv_header_stdc+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <stdlib.h>
6463 #include <stdarg.h>
6464 #include <string.h>
6465 #include <float.h>
6468 main ()
6472 return 0;
6474 _ACEOF
6475 if ac_fn_c_try_compile "$LINENO"; then :
6476 ac_cv_header_stdc=yes
6477 else
6478 ac_cv_header_stdc=no
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 if test $ac_cv_header_stdc = yes; then
6483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 #include <string.h>
6488 _ACEOF
6489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490 $EGREP "memchr" >/dev/null 2>&1; then :
6492 else
6493 ac_cv_header_stdc=no
6495 rm -f conftest*
6499 if test $ac_cv_header_stdc = yes; then
6500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <stdlib.h>
6505 _ACEOF
6506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 $EGREP "free" >/dev/null 2>&1; then :
6509 else
6510 ac_cv_header_stdc=no
6512 rm -f conftest*
6516 if test $ac_cv_header_stdc = yes; then
6517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6518 if test "$cross_compiling" = yes; then :
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <ctype.h>
6524 #include <stdlib.h>
6525 #if ((' ' & 0x0FF) == 0x020)
6526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6528 #else
6529 # define ISLOWER(c) \
6530 (('a' <= (c) && (c) <= 'i') \
6531 || ('j' <= (c) && (c) <= 'r') \
6532 || ('s' <= (c) && (c) <= 'z'))
6533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6534 #endif
6536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6538 main ()
6540 int i;
6541 for (i = 0; i < 256; i++)
6542 if (XOR (islower (i), ISLOWER (i))
6543 || toupper (i) != TOUPPER (i))
6544 return 2;
6545 return 0;
6547 _ACEOF
6548 if ac_fn_c_try_run "$LINENO"; then :
6550 else
6551 ac_cv_header_stdc=no
6553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6554 conftest.$ac_objext conftest.beam conftest.$ac_ext
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6560 $as_echo "$ac_cv_header_stdc" >&6; }
6561 if test $ac_cv_header_stdc = yes; then
6563 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6568 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6569 if ${ac_cv_header_sys_wait_h+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6575 #include <sys/wait.h>
6576 #ifndef WEXITSTATUS
6577 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6578 #endif
6579 #ifndef WIFEXITED
6580 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6581 #endif
6584 main ()
6586 int s;
6587 wait (&s);
6588 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_header_sys_wait_h=yes
6595 else
6596 ac_cv_header_sys_wait_h=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6601 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6602 if test $ac_cv_header_sys_wait_h = yes; then
6604 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6609 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6610 if ${ac_cv_header_time+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6616 #include <sys/time.h>
6617 #include <time.h>
6620 main ()
6622 if ((struct tm *) 0)
6623 return 0;
6625 return 0;
6627 _ACEOF
6628 if ac_fn_c_try_compile "$LINENO"; then :
6629 ac_cv_header_time=yes
6630 else
6631 ac_cv_header_time=no
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6636 $as_echo "$ac_cv_header_time" >&6; }
6637 if test $ac_cv_header_time = yes; then
6639 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6643 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6644 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6648 _ACEOF
6651 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6656 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6657 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6659 cat >>confdefs.h <<_ACEOF
6660 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6661 _ACEOF
6664 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6666 else
6667 case " $LIBOBJS " in
6668 *" fileblocks.$ac_objext "* ) ;;
6669 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6671 esac
6676 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6677 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define HAVE_STRUCT_STAT_ST_RDEV 1
6681 _ACEOF
6684 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6690 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6691 if ${ac_cv_struct_tm+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <sys/types.h>
6697 #include <time.h>
6700 main ()
6702 struct tm tm;
6703 int *p = &tm.tm_sec;
6704 return !p;
6706 return 0;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 ac_cv_struct_tm=time.h
6711 else
6712 ac_cv_struct_tm=sys/time.h
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6717 $as_echo "$ac_cv_struct_tm" >&6; }
6718 if test $ac_cv_struct_tm = sys/time.h; then
6720 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6724 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6725 #include <$ac_cv_struct_tm>
6728 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_STRUCT_TM_TM_ZONE 1
6732 _ACEOF
6737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6739 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6741 else
6742 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6744 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6745 ac_have_decl=1
6746 else
6747 ac_have_decl=0
6750 cat >>confdefs.h <<_ACEOF
6751 #define HAVE_DECL_TZNAME $ac_have_decl
6752 _ACEOF
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6755 $as_echo_n "checking for tzname... " >&6; }
6756 if ${ac_cv_var_tzname+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <time.h>
6762 #if !HAVE_DECL_TZNAME
6763 extern char *tzname[];
6764 #endif
6767 main ()
6769 return tzname[0][0];
6771 return 0;
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 ac_cv_var_tzname=yes
6776 else
6777 ac_cv_var_tzname=no
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6783 $as_echo "$ac_cv_var_tzname" >&6; }
6784 if test $ac_cv_var_tzname = yes; then
6786 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6791 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6792 if test "x$ac_cv_type_off_t" = xyes; then :
6794 else
6796 cat >>confdefs.h <<_ACEOF
6797 #define off_t long int
6798 _ACEOF
6802 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6803 if test "x$ac_cv_type_pid_t" = xyes; then :
6805 else
6807 cat >>confdefs.h <<_ACEOF
6808 #define pid_t int
6809 _ACEOF
6813 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6814 if test "x$ac_cv_type_size_t" = xyes; then :
6816 else
6818 cat >>confdefs.h <<_ACEOF
6819 #define size_t unsigned int
6820 _ACEOF
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6825 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6826 if ${ac_cv_type_uid_t+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6833 _ACEOF
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 $EGREP "uid_t" >/dev/null 2>&1; then :
6836 ac_cv_type_uid_t=yes
6837 else
6838 ac_cv_type_uid_t=no
6840 rm -f conftest*
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6844 $as_echo "$ac_cv_type_uid_t" >&6; }
6845 if test $ac_cv_type_uid_t = no; then
6847 $as_echo "#define uid_t int" >>confdefs.h
6850 $as_echo "#define gid_t int" >>confdefs.h
6855 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6856 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6860 _ACEOF
6866 # Look for some functions
6867 for ac_func in getpagesize kqueue statfs statvfs \
6868 clone kse_create rfork_thread thr_create sa_register \
6869 getcontext makecontext setcontext sigaltstack swapcontext
6870 do :
6871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6874 cat >>confdefs.h <<_ACEOF
6875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6876 _ACEOF
6879 done
6885 for ac_header in $ac_header_list
6886 do :
6887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6888 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6891 cat >>confdefs.h <<_ACEOF
6892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6893 _ACEOF
6897 done
6906 for ac_func in getpagesize
6907 do :
6908 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6909 if test "x$ac_cv_func_getpagesize" = xyes; then :
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_GETPAGESIZE 1
6912 _ACEOF
6915 done
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6918 $as_echo_n "checking for working mmap... " >&6; }
6919 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test "$cross_compiling" = yes; then :
6923 ac_cv_func_mmap_fixed_mapped=no
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 $ac_includes_default
6928 /* malloc might have been renamed as rpl_malloc. */
6929 #undef malloc
6931 /* Thanks to Mike Haertel and Jim Avera for this test.
6932 Here is a matrix of mmap possibilities:
6933 mmap private not fixed
6934 mmap private fixed at somewhere currently unmapped
6935 mmap private fixed at somewhere already mapped
6936 mmap shared not fixed
6937 mmap shared fixed at somewhere currently unmapped
6938 mmap shared fixed at somewhere already mapped
6939 For private mappings, we should verify that changes cannot be read()
6940 back from the file, nor mmap's back from the file at a different
6941 address. (There have been systems where private was not correctly
6942 implemented like the infamous i386 svr4.0, and systems where the
6943 VM page cache was not coherent with the file system buffer cache
6944 like early versions of FreeBSD and possibly contemporary NetBSD.)
6945 For shared mappings, we should conversely verify that changes get
6946 propagated back to all the places they're supposed to be.
6948 Grep wants private fixed already mapped.
6949 The main things grep needs to know about mmap are:
6950 * does it exist and is it safe to write into the mmap'd area
6951 * how to use it (BSD variants) */
6953 #include <fcntl.h>
6954 #include <sys/mman.h>
6956 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6957 char *malloc ();
6958 #endif
6960 /* This mess was copied from the GNU getpagesize.h. */
6961 #ifndef HAVE_GETPAGESIZE
6962 # ifdef _SC_PAGESIZE
6963 # define getpagesize() sysconf(_SC_PAGESIZE)
6964 # else /* no _SC_PAGESIZE */
6965 # ifdef HAVE_SYS_PARAM_H
6966 # include <sys/param.h>
6967 # ifdef EXEC_PAGESIZE
6968 # define getpagesize() EXEC_PAGESIZE
6969 # else /* no EXEC_PAGESIZE */
6970 # ifdef NBPG
6971 # define getpagesize() NBPG * CLSIZE
6972 # ifndef CLSIZE
6973 # define CLSIZE 1
6974 # endif /* no CLSIZE */
6975 # else /* no NBPG */
6976 # ifdef NBPC
6977 # define getpagesize() NBPC
6978 # else /* no NBPC */
6979 # ifdef PAGESIZE
6980 # define getpagesize() PAGESIZE
6981 # endif /* PAGESIZE */
6982 # endif /* no NBPC */
6983 # endif /* no NBPG */
6984 # endif /* no EXEC_PAGESIZE */
6985 # else /* no HAVE_SYS_PARAM_H */
6986 # define getpagesize() 8192 /* punt totally */
6987 # endif /* no HAVE_SYS_PARAM_H */
6988 # endif /* no _SC_PAGESIZE */
6990 #endif /* no HAVE_GETPAGESIZE */
6993 main ()
6995 char *data, *data2, *data3;
6996 const char *cdata2;
6997 int i, pagesize;
6998 int fd, fd2;
7000 pagesize = getpagesize ();
7002 /* First, make a file with some known garbage in it. */
7003 data = (char *) malloc (pagesize);
7004 if (!data)
7005 return 1;
7006 for (i = 0; i < pagesize; ++i)
7007 *(data + i) = rand ();
7008 umask (0);
7009 fd = creat ("conftest.mmap", 0600);
7010 if (fd < 0)
7011 return 2;
7012 if (write (fd, data, pagesize) != pagesize)
7013 return 3;
7014 close (fd);
7016 /* Next, check that the tail of a page is zero-filled. File must have
7017 non-zero length, otherwise we risk SIGBUS for entire page. */
7018 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7019 if (fd2 < 0)
7020 return 4;
7021 cdata2 = "";
7022 if (write (fd2, cdata2, 1) != 1)
7023 return 5;
7024 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7025 if (data2 == MAP_FAILED)
7026 return 6;
7027 for (i = 0; i < pagesize; ++i)
7028 if (*(data2 + i))
7029 return 7;
7030 close (fd2);
7031 if (munmap (data2, pagesize))
7032 return 8;
7034 /* Next, try to mmap the file at a fixed address which already has
7035 something else allocated at it. If we can, also make sure that
7036 we see the same garbage. */
7037 fd = open ("conftest.mmap", O_RDWR);
7038 if (fd < 0)
7039 return 9;
7040 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7041 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7042 return 10;
7043 for (i = 0; i < pagesize; ++i)
7044 if (*(data + i) != *(data2 + i))
7045 return 11;
7047 /* Finally, make sure that changes to the mapped area do not
7048 percolate back to the file as seen by read(). (This is a bug on
7049 some variants of i386 svr4.0.) */
7050 for (i = 0; i < pagesize; ++i)
7051 *(data2 + i) = *(data2 + i) + 1;
7052 data3 = (char *) malloc (pagesize);
7053 if (!data3)
7054 return 12;
7055 if (read (fd, data3, pagesize) != pagesize)
7056 return 13;
7057 for (i = 0; i < pagesize; ++i)
7058 if (*(data + i) != *(data3 + i))
7059 return 14;
7060 close (fd);
7061 return 0;
7063 _ACEOF
7064 if ac_fn_c_try_run "$LINENO"; then :
7065 ac_cv_func_mmap_fixed_mapped=yes
7066 else
7067 ac_cv_func_mmap_fixed_mapped=no
7069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7070 conftest.$ac_objext conftest.beam conftest.$ac_ext
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7075 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7076 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7078 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7081 rm -f conftest.mmap conftest.txt
7086 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7087 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7088 aros_config_ldflags=""
7090 aros_shared_default=yes
7092 aros_shared_cflags="-fPIC"
7093 aros_shared_aflags=""
7094 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7095 aros_kernel_ldflags="-Wl,-rpath,./lib"
7097 aros_kernel_ar_flags="cr"
7098 aros_target_ar_flags="cr"
7099 aros_target_nm_flags="-C -ul"
7100 aros_target_strip_flags="--strip-unneeded -R.comment"
7102 aros_compiler_libs=
7103 aros_arch_libs=
7105 aros_target_genmap="-Wl,-Map -Xlinker"
7107 # Native flavour stuff
7108 aros_serial_debug="0"
7110 # Palm native flavour stuff
7111 aros_palm_debug_hack="0"
7113 # Unix flavour stuff
7114 aros_nesting_supervisor="0"
7116 # Collect-aros stuff: "-ius" to ignore undefined symbols
7117 ignore_undefined_symbols=""
7119 # Check for X11 by default
7120 need_x11="auto"
7122 #-----------------------------------------------------------------------------
7125 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7126 # it switched on by default, and we use the host compiler, so it compiles AROS
7127 # code with this enabled resulting in link failures as we don't have support
7128 # for it.
7130 # We use two methods to disable it. For the host compiler (used to compile
7131 # some hosted modules), we test to see if the compiler supports stack
7132 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7133 # work on all platforms.
7135 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7136 # (this is done unconditionally, as it should have no effect on compilers
7137 # without the stack protection feature). This may be specific to the way that
7138 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7139 # strong enough to disable it in a generic way though, so we'll live with it
7140 # until another vendor ships GCC with it enabled in a different way, and deal
7141 # with it then.
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7145 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7146 save_cflags="$CFLAGS"
7147 CFLAGS="$CFLAGS -fno-stack-protector"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7152 main ()
7156 return 0;
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 use_no_stack_protector="yes"
7161 else
7162 use_no_stack_protector="no"
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7166 $as_echo "$use_no_stack_protector" >&6; }
7167 if test "x-$use_no_stack_protector" = "x-yes" ; then
7168 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7170 CFLAGS="$save_cflags"
7172 #-----------------------------------------------------------------------------
7174 # Disable pointer-signedness warnings if the compiler recognises the option
7175 # (this only works for the host compiler at the moment)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7178 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7179 save_cflags="$CFLAGS"
7180 CFLAGS="$CFLAGS -Wno-pointer-sign"
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7185 main ()
7189 return 0;
7191 _ACEOF
7192 if ac_fn_c_try_compile "$LINENO"; then :
7193 use_no_sign_warning="yes"
7194 else
7195 use_no_sign_warning="no"
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7199 $as_echo "$use_no_sign_warning" >&6; }
7200 if test "x-$use_no_sign_warning" = "x-yes" ; then
7201 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7203 CFLAGS="$save_cflags"
7205 #-----------------------------------------------------------------------------
7207 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7210 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7211 save_cflags="$CFLAGS"
7212 CFLAGS="$CFLAGS -fgnu89-inline"
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7217 main ()
7221 return 0;
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"; then :
7225 use_gnu89_inline="yes"
7226 else
7227 use_gnu89_inline="no"
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7231 $as_echo "$use_gnu89_inline" >&6; }
7232 if test "x-$use_gnu89_inline" = "x-yes" ; then
7233 gnu89_inline="-fgnu89-inline"
7235 CFLAGS="$save_cflags"
7237 #-----------------------------------------------------------------------------
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7240 $as_echo_n "checking for type of build... " >&6; }
7241 # Check whether --enable-build_type was given.
7242 if test "${enable_build_type+set}" = set; then :
7243 enableval=$enable_build_type; build_type=$enableval
7244 else
7245 build_type="personal"
7249 if test "$build_type" = "nightly"; then
7250 build_type_string="NIGHTLY"
7251 elif test "$build_type" = "snapshot"; then
7252 build_type_string="SNAPSHOT"
7253 elif test "$build_type" = "milestone"; then
7254 build_type_string="MILESTONE"
7255 elif test "$build_type" = "release"; then
7256 build_type_string="RELEASE"
7257 else
7258 build_type_string="PERSONAL"
7259 build_type="personal"
7262 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7265 $as_echo "$build_type" >&6; }
7267 #-----------------------------------------------------------------------------
7268 all_debug_types="messages stack modules mungwall symbols"
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7271 $as_echo_n "checking which debug types to enable... " >&6; }
7272 # Check whether --enable-debug was given.
7273 if test "${enable_debug+set}" = set; then :
7274 enableval=$enable_debug; debug="$enableval"
7275 else
7276 debug=""
7280 if test "$debug" = "" -o "$debug" = "no"; then
7281 debug="none"
7282 elif test "$debug" = "yes"; then
7283 debug="all"
7286 if test "$debug" = "all" ; then
7287 debug="messages stack modules symbols"
7288 for d in $all_debug_types; do
7289 export aros_${d}_debug="1"
7290 done
7291 else
7292 for d in $all_debug_types; do
7293 export aros_${d}_debug="0"
7294 done
7297 if test "$debug" != "none"; then
7298 debug=`echo $debug | sed s/,/\ /g`
7299 for d in $debug; do
7300 found="0"
7301 for d2 in $all_debug_types; do
7302 if test "$d2" = "$d"; then
7303 found="1"
7304 break
7306 done
7307 if test "$found" = "0"; then
7308 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7310 export aros_${d}_debug="1"
7311 done
7312 aros_debug="yes"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7315 $as_echo "$debug" >&6; }
7317 if test "$aros_messages_debug" = "1"; then
7318 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7319 else
7320 aros_messages_debug=""
7322 if test "$aros_symbols_debug" = "1"; then
7323 aros_symbols_debug="-g"
7324 else
7325 aros_symbols_debug=""
7328 # These are the flags to pass when compiling debugged programs
7329 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7330 aros_debug_aflags=""
7331 aros_debug_ldflags="$aros_symbols_debug"
7333 #-----------------------------------------------------------------------------
7334 # Checking for distcc and ccache.
7336 # Always apply the transforms in this particular order. Basically you should
7337 # always run 'ccache distcc compiler' in that order for the best performance.
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7340 $as_echo_n "checking whether to enable distcc... " >&6; }
7341 # Check whether --enable-distcc was given.
7342 if test "${enable_distcc+set}" = set; then :
7343 enableval=$enable_distcc; distcc="$enableval"
7344 else
7345 distcc="no"
7348 if test "$distcc" != "" -a "$distcc" != "no"; then
7349 # AC_CHECK_PROG will print out the result in this case
7350 # Extract the first word of "distcc", so it can be a program name with args.
7351 set dummy distcc; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_path_DISTCC+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 case $DISTCC in
7358 [\\/]* | ?:[\\/]*)
7359 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7373 done
7374 done
7375 IFS=$as_save_IFS
7377 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7379 esac
7381 DISTCC=$ac_cv_path_DISTCC
7382 if test -n "$DISTCC"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7384 $as_echo "$DISTCC" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7397 $as_echo_n "checking whether to enable ccache... " >&6; }
7398 # Check whether --enable-ccache was given.
7399 if test "${enable_ccache+set}" = set; then :
7400 enableval=$enable_ccache; ccache="$enableval"
7401 else
7402 ccache="no"
7405 if test "$ccache" != "" -a "$ccache" != "no"; then
7406 # AC_CHECK_PROG will print out the result in this case
7407 # Extract the first word of "ccache", so it can be a program name with args.
7408 set dummy ccache; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_CCACHE+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$CCACHE"; then
7415 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_CCACHE="ccache"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7434 CCACHE=$ac_cv_prog_CCACHE
7435 if test -n "$CCACHE"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7437 $as_echo "$CCACHE" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 #-----------------------------------------------------------------------------
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7451 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7453 # Check whether --with-gcc-version was given.
7454 if test "${with_gcc_version+set}" = set; then :
7455 withval=$with_gcc_version; kernel_tool_version="$withval"
7456 else
7457 kernel_tool_version="default"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7461 $as_echo "$kernel_tool_version" >&6; }
7463 #-----------------------------------------------------------------------------
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7465 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7467 # Check whether --with-gcc-version was given.
7468 if test "${with_gcc_version+set}" = set; then :
7469 withval=$with_gcc_version; target_tool_version="$withval"
7470 else
7471 target_tool_version="default"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7475 $as_echo "$target_tool_version" >&6; }
7477 #-----------------------------------------------------------------------------
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7479 $as_echo_n "checking what optimization flags to use... " >&6; }
7481 # Check whether --with-optimization was given.
7482 if test "${with_optimization+set}" = set; then :
7483 withval=$with_optimization; optimization="$withval"
7484 else
7485 optimization="unknown"
7488 if test "$optimization" = "unknown"; then
7489 if test "$debug" != "none"; then
7490 optimization="-O0"
7491 else
7492 optimization="-O2"
7495 aros_config_cflags="$aros_config_cflags $optimization"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7497 $as_echo "$optimization" >&6; }
7499 #-----------------------------------------------------------------------------
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7501 $as_echo_n "checking what paranoia flags to use... " >&6; }
7503 # Check whether --with-paranoia was given.
7504 if test "${with_paranoia+set}" = set; then :
7505 withval=$with_paranoia; paranoia_flags="$withval"
7506 else
7507 paranoia_flags="default"
7510 if test "$paranoia_flags" = "default"; then
7511 paranoia_flags=""
7512 else if test "$paranoia_flags" = "yes"; then
7513 paranoia_flags="-Wall -Werror"
7514 fi fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7516 $as_echo "$paranoia_flags" >&6; }
7517 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7519 #-----------------------------------------------------------------------------
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7521 $as_echo_n "checking what target variant to enable... " >&6; }
7522 # Check whether --enable-target_variant was given.
7523 if test "${enable_target_variant+set}" = set; then :
7524 enableval=$enable_target_variant; target_variant=$enableval
7525 else
7526 target_variant=""
7529 if test "$target_variant" = ""; then
7530 aros_target_variant=""
7531 aros_target_suffix=""
7532 enableval="none"
7533 else
7534 aros_target_variant="$target_variant"
7535 aros_target_suffix="-$target_variant"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7538 $as_echo "$enableval" >&6; }
7540 #-----------------------------------------------------------------------------
7541 # Target-specific defaults. You can override then on a per-target basis.
7543 # Bootloader name. Currently used by PC target.
7544 target_bootloader="none"
7546 #-----------------------------------------------------------------------------
7547 # Additional options for some specific targets
7549 case "$aros_target_variant" in
7550 ios)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7552 $as_echo_n "checking XCode path... " >&6; }
7554 # Check whether --with-xcode was given.
7555 if test "${with_xcode+set}" = set; then :
7556 withval=$with_xcode; aros_xcode_path="$withval"
7557 else
7558 aros_xcode_path="/Developer"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7562 $as_echo "$aros_xcode_path" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7565 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7567 # Check whether --with-sdk-version was given.
7568 if test "${with_sdk_version+set}" = set; then :
7569 withval=$with_sdk_version; aros_sdk_version="$withval"
7570 else
7571 aros_sdk_version="4.1"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7575 $as_echo "$aros_sdk_version" >&6; }
7579 "android")
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7581 $as_echo_n "checking Android SDK path... " >&6; }
7583 # Check whether --with-sdk was given.
7584 if test "${with_sdk+set}" = set; then :
7585 withval=$with_sdk; aros_android_sdk="$withval"
7586 else
7587 aros_android_sdk=$default_android_sdk
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7591 $as_echo "$aros_android_sdk" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7594 $as_echo_n "checking Android NDK path... " >&6; }
7596 # Check whether --with-ndk was given.
7597 if test "${with_ndk+set}" = set; then :
7598 withval=$with_ndk; aros_android_ndk="$withval"
7599 else
7600 aros_android_ndk="none"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7604 $as_echo "$aros_android_ndk" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7607 $as_echo_n "checking what Android SDK version to use... " >&6; }
7609 # Check whether --with-sdk-version was given.
7610 if test "${with_sdk_version+set}" = set; then :
7611 withval=$with_sdk_version; aros_sdk_version="$withval"
7612 else
7613 aros_sdk_version="12"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7617 $as_echo "$aros_sdk_version" >&6; }
7619 if test "$aros_android_ndk" != "none"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7621 $as_echo_n "checking what Android NDK version to use... " >&6; }
7623 # Check whether --with-ndk-version was given.
7624 if test "${with_ndk_version+set}" = set; then :
7625 withval=$with_ndk_version; aros_ndk_version="$withval"
7626 else
7627 aros_ndk_version="9"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7631 $as_echo "$aros_ndk_version" >&6; }
7634 export PATH="$aros_android_sdk/tools:$PATH"
7635 # Extract the first word of "$android_tool", so it can be a program name with args.
7636 set dummy $android_tool; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_path_android_tool+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 case $android_tool in
7643 [\\/]* | ?:[\\/]*)
7644 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7658 done
7659 done
7660 IFS=$as_save_IFS
7663 esac
7665 android_tool=$ac_cv_path_android_tool
7666 if test -n "$android_tool"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7668 $as_echo "$android_tool" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7675 if test "$android_tool" = ""; then
7676 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7679 aros_android_level=android-$aros_sdk_version
7680 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7681 echo "Platform $aros_android_level is not installed in your SDK"
7682 echo "Use --with-sdk-version=<API level number> to select another platform version"
7683 echo "You can check what plaform versions are installed in your SDK"
7684 echo "by examining contents of $aros_android_sdk/platforms directory"
7685 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7688 # Extract the first word of "ant", so it can be a program name with args.
7689 set dummy ant; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_path_ant+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 case $ant in
7696 [\\/]* | ?:[\\/]*)
7697 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7711 done
7712 done
7713 IFS=$as_save_IFS
7716 esac
7718 ant=$ac_cv_path_ant
7719 if test -n "$ant"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7721 $as_echo "$ant" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7728 if test "$ant" = ""; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7730 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7733 if test "$host_os" = "mingw32"; then
7734 android_tool="cmd //c $android_tool"
7738 esac
7740 #-----------------------------------------------------------------------------
7741 # External toolchains
7742 kernel_tool_prefix="none"
7743 aros_tool_prefix="none"
7744 elf_tool_prefix="${target_cpu}-elf-"
7746 # This is the target configuration switch.
7747 case "$target_os" in
7748 linux*)
7749 aros_target_arch="linux"
7750 aros_target_family="unix"
7751 case "$target_cpu" in
7752 *m68k*)
7753 aros_target_cpu="m68k"
7754 aros_object_format="m68kelf"
7755 aros_flavour="emulcompat"
7756 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7757 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7758 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7759 gcc_target_cpu="mc68000"
7761 *i?86*)
7762 aros_target_cpu="i386"
7763 aros_object_format="elf_i386"
7764 aros_flavour="emulation"
7765 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7766 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7767 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7768 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7769 aros_config_ldflags="-m32 -march=i486"
7770 aros_kernel_ldflags="-melf_i386"
7771 aros_default_wbdepth=8
7772 gcc_target_cpu="i386"
7773 pci_hidd_target="hidd-pci-linux"
7774 android_tool_dir_prefix="x86"
7775 android_tool_prefix="i686-android-linux"
7776 android_ndk_arch="x86"
7778 *x86_64*)
7779 aros_target_cpu="x86_64"
7780 aros_object_format="elf_x86_64"
7781 aros_flavour="emulation"
7782 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7783 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7784 aros_default_wbdepth=8
7785 pci_hidd_target="hidd-pci-linux"
7787 *powerpc*)
7788 aros_target_cpu="ppc"
7789 aros_object_format="elf32ppc"
7790 aros_flavour="emulation"
7791 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7792 aros_default_wbdepth=8
7793 gcc_target_cpu="ppc"
7795 # TODO
7796 # Same as powerpc, but I need this for the nightly build to work again.
7797 # Actually, the nightly should be made working with powerpc target.
7798 # That just was too much work for the moment, another week or two.
7799 *ppc*)
7800 aros_target_cpu="ppc"
7801 aros_object_format="elf32ppc"
7802 aros_flavour="emulation"
7803 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7804 aros_default_wbdepth=8
7805 gcc_target_cpu="ppc"
7807 *armhf*)
7808 aros_target_cpu="arm"
7809 target_cpu="arm"
7810 aros_object_format="armelf_linux_eabi"
7811 aros_flavour="emulation"
7812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7813 gcc_target_cpu="arm"
7814 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7815 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7816 aros_arch_libs="-laeabi"
7817 gcc_default_fpu="vfpv3-d16"
7818 gcc_default_float_abi="hard"
7819 android_tool_dir_prefix="arm-linux-androideabi"
7820 android_tool_prefix="arm-linux-androideabi"
7821 android_ndk_arch="arm"
7822 kernel_tool_prefix="arm-linux-gnueabihf-"
7824 *arm*)
7825 aros_target_cpu="arm"
7826 aros_object_format="armelf_linux_eabi"
7827 aros_flavour="emulation"
7828 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7829 gcc_target_cpu="arm"
7830 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7831 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7832 aros_arch_libs="-laeabi"
7833 android_tool_dir_prefix="arm-linux-androideabi"
7834 android_tool_prefix="arm-linux-androideabi"
7835 android_ndk_arch="arm"
7836 kernel_tool_prefix="arm-linux-gnueabi-"
7839 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7841 esac
7842 case "$aros_target_variant" in
7843 android)
7845 if test "$android_ndk_arch" = ""; then
7846 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7849 aros_default_wbwidth=320
7850 aros_default_wbheight=480
7851 if test "$aros_android_ndk" = "none"; then
7852 aros_kernel_cflags="-mandroid"
7853 aros_kernel_ldflags="-mandroid"
7854 CFLAGS="-mandroid"
7855 else
7856 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7857 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7858 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7859 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7860 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7861 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7863 need_x11=no
7864 x11_hidd_target=kernel-hidd-androidgfx-kobj
7865 # Disable implicit PIC mode
7866 aros_target_cflags="$aros_target_cflags -fno-pic"
7867 kernel_tool_prefix="$android_tool_prefix-"
7869 esac
7873 aros_target_arch="pc"
7874 aros_shared_default="no"
7875 target_bootloader="grub2"
7876 case "$target_cpu" in
7877 *i?86*)
7878 aros_target_cpu="i386"
7881 if test "$aros_object_format" = "" ; then
7882 aros_object_format="elf_i386"
7884 aros_flavour="standalone"
7885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7886 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7887 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7888 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7889 aros_config_ldflags="-m32 -march=i486"
7890 aros_kernel_ldflags="-melf_i386"
7891 aros_default_wbwidth=640
7892 aros_default_wbheight=480
7893 gcc_target_cpu="i386"
7895 *x86_64*)
7896 aros_target_cpu="x86_64"
7897 aros_serial_debug=1
7898 if test "$aros_object_format" = "" ; then
7899 aros_object_format="elf_x86_64"
7901 aros_flavour="standalone"
7902 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7903 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7904 aros_kernel_ldflags=""
7905 aros_default_wbwidth=640
7906 aros_default_wbheight=480
7909 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7911 esac
7914 prep)
7915 aros_target_arch="prep"
7916 aros_shared_default="no"
7917 aros_target_cpu="ppc"
7918 aros_object_format="elf32ppc"
7919 aros_flavour="ppcnative"
7920 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7921 aros_kernel_ldflags=""
7922 aros_default_wbwidth=640
7923 aros_default_wbheight=480
7924 gcc_target_cpu="ppc"
7927 freebsd*)
7928 aros_target_arch="freebsd"
7929 aros_target_family="unix"
7930 aros_target_cpu="i386"
7931 aros_flavour="emulation"
7932 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7933 gcc_target_cpu="i386"
7935 aros_target_strip_flags="-x"
7938 darwin*)
7939 aros_target_arch="darwin"
7940 aros_target_family="unix"
7941 aros_flavour="emulation"
7942 case "$target_cpu" in
7943 *i?86*)
7944 aros_ios_platform="iPhoneSimulator"
7945 aros_target_cpu="i386"
7946 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7947 aros_kernel_ldflags=""
7948 aros_macosx_version="10.4"
7949 aros_default_wbdepth=8
7950 gcc_target_cpu="i386"
7951 aros_object_format="elf_i386"
7952 aros_kernel_ar_flags="-cr"
7953 aros_target_strip_flags="-x"
7954 kernel_tool_flags="-m32"
7956 *x86_64*)
7957 aros_target_cpu="x86_64"
7958 aros_object_format="elf_x86_64"
7959 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7960 aros_macosx_version="10.6"
7961 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7962 aros_kernel_cflags="-m64"
7963 aros_kernel_ldflags="-m64"
7964 aros_target_cflags="-mcmodel=large"
7965 aros_default_wbdepth=8
7966 aros_kernel_ar="ar"
7967 aros_kernel_ar_flags="-cr"
7968 aros_kernel_ld="ld"
7969 aros_kernel_ranlib="ranlib"
7971 *ppc*)
7972 aros_target_cpu="ppc"
7973 aros_object_format="elf32ppc"
7974 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7975 aros_kernel_ldflags=""
7976 aros_macosx_version="10.0"
7977 aros_default_wbdepth=8
7978 gcc_target_cpu="ppc"
7979 aros_kernel_ar="ar"
7980 aros_kernel_ar_flags="-cr"
7981 aros_kernel_ld="ld -arch ppc"
7982 aros_kernel_ranlib="ranlib -arch ppc"
7983 kernel_tool_prefix="powerpc-apple-darwin10-"
7985 *arm*)
7986 aros_ios_platform="iPhoneOS"
7987 aros_target_cpu="arm"
7988 aros_object_format="armelf_linux_eabi"
7989 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7990 aros_arch_libs="-laeabi"
7991 aros_default_wbdepth=8
7992 gcc_target_cpu="arm"
7993 aros_kernel_ar="ar"
7994 aros_kernel_ar_flags="-cr"
7995 aros_kernel_ld="ld -arch arm"
7996 aros_kernel_ranlib="ranlib -arch arm"
7997 kernel_tool_prefix="arm-apple-darwin10-"
7998 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8001 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8003 esac
8004 case "$aros_target_variant" in
8005 ios)
8006 aros_ios_version="3.0"
8007 aros_default_wbwidth=320
8008 aros_default_wbheight=480
8009 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8010 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8011 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8012 need_x11=no
8013 # This is here because it may depend on iOS or SDK version
8014 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8015 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8016 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8019 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8020 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8022 esac
8025 dragonfly*)
8026 aros_target_arch="dragonfly"
8027 aros_target_family="unix"
8028 aros_flavour="emulation"
8029 case "$target_cpu" in
8030 *i?86*)
8031 aros_target_cpu="i386"
8032 aros_object_format="elf_i386"
8033 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8035 *x86_64*)
8036 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8037 aros_target_cpu="x86_64"
8038 aros_object_format="elf_x86_64"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8042 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8044 esac
8047 netbsd*)
8048 aros_target_arch="netbsd"
8049 aros_target_family="unix"
8050 case "$target_cpu" in
8051 *m68k*)
8052 aros_target_cpu="m68k"
8053 aros_object_format="m68kelf"
8054 aros_flavour="emulcompat"
8055 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8056 gcc_target_cpu="mc68000"
8058 *i?86*)
8059 aros_target_cpu="i386"
8060 aros_object_format="elf_i386"
8061 aros_flavour="emulation"
8062 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8063 aros_default_wbdepth=8
8064 gcc_target_cpu="i386"
8067 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8069 esac
8070 aros_target_genmap="-Wl,-M -Xlinker >"
8071 aros_flavour="emulation"
8072 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8075 openbsd*)
8076 aros_target_arch="openbsd"
8077 aros_target_family="unix"
8078 case "$target_cpu" in
8079 *i?86*)
8080 aros_target_cpu="i386"
8081 aros_object_format="elf_i386"
8082 aros_flavour="emulation"
8083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8084 gcc_target_cpu="i386"
8087 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8089 esac
8090 aros_target_genmap="-Wl,-M -Xlinker >"
8091 aros_target_nm_flags="-u"
8092 aros_flavour="emulation"
8095 solaris*)
8096 aros_target_arch="solaris"
8097 aros_target_family="unix"
8098 case "$target_cpu" in
8099 *i?86*)
8100 aros_target_cpu="i386"
8101 aros_object_format="elf_i386"
8102 aros_flavour="emulation"
8103 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8104 aros_default_wbdepth=8
8105 gcc_target_cpu="i386"
8107 *sparc*)
8108 aros_target_cpu="sparc"
8109 aros_object_format="elf_sparc"
8110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8111 gcc_target_cpu="sparc"
8114 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8116 esac
8117 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8118 aros_flavour="emulation"
8121 morphos*)
8122 aros_target_arch="morphos"
8123 aros_shared_default="no"
8124 aros_target_cpu="ppc"
8125 aros_object_format="elf_ppc"
8126 aros_flavour="nativecompat"
8127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8128 gcc_target_cpu="ppc"
8131 sam440)
8132 aros_target_arch="sam440"
8133 aros_shared_default="no"
8134 aros_target_cpu="ppc"
8135 aros_object_format="elf32ppc"
8136 aros_flavour="ppcnative"
8137 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8138 aros_kernel_ldflags=""
8139 aros_default_wbwidth=1024
8140 aros_default_wbheight=768
8141 aros_default_wbdepth=24
8142 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8143 gcc_target_cpu="powerpc"
8146 efika)
8147 aros_target_arch="efika"
8148 aros_shared_default="no"
8149 aros_target_cpu="arm"
8150 aros_object_format="armelf_linux_eabi"
8151 aros_flavour="standalone"
8152 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8153 aros_kernel_ldflags=""
8154 aros_default_wbwidth=1024
8155 aros_default_wbheight=600
8156 aros_arch_libs="-laeabi"
8157 gcc_default_cpu="armv7-a"
8158 gcc_default_fpu="vfpv3"
8159 gcc_default_float_abi="softfp"
8160 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8161 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8164 chrp)
8165 aros_target_arch="chrp"
8166 aros_shared_default="no"
8167 aros_target_cpu="ppc"
8168 aros_object_format="elf32ppc"
8169 aros_flavour="ppcnative"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8171 aros_kernel_ldflags=""
8172 aros_default_wbwidth=640
8173 aros_default_wbheight=480
8174 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8175 gcc_target_cpu="powerpc"
8176 case "$aros_target_variant" in
8177 efika)
8178 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8180 esac
8183 amiga*)
8184 aros_target_arch="amiga"
8185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8186 aros_shared_default="no"
8188 case "$target_cpu" in
8189 *m68k*)
8190 # Check whether --enable-amigaos_compliance was given.
8191 if test "${enable_amigaos_compliance+set}" = set; then :
8192 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8195 aros_enable_mmu=no
8196 aros_target_cpu="m68k"
8197 aros_object_format="m68kelf"
8198 aros_flavour="standcompat"
8199 gcc_target_cpu="m68000"
8200 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8201 aros_config_aflags="$aros_config_aflags"
8202 aros_target_strip_flags="-R.comment --strip-debug"
8203 aros_default_wbwidth=640
8204 aros_default_wbheight=256
8205 aros_default_wbdepth=2
8207 *ppc*)
8208 aros_cpu="ppc"
8209 aros_flavour="native"
8210 gcc_target_cpu="ppc"
8213 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8215 esac
8218 mingw*)
8219 aros_target_arch="mingw32"
8220 aros_shared_default="no"
8221 aros_flavour="emulation"
8222 aros_shared_cflags=""
8223 need_crosstools="yes"
8224 need_dlopen="no"
8225 rescomp="windres"
8226 case "$target_cpu" in
8227 *i?86*)
8228 aros_target_cpu="i386"
8229 aros_object_format="elf_i386"
8230 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8231 aros_default_wbdepth=8
8232 gcc_target_cpu="i386"
8234 kernel_tool_prefix="i386-mingw32-"
8236 *x86_64*)
8237 aros_target_cpu="x86_64"
8238 aros_object_format="elf_x86_64"
8239 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8240 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8241 aros_default_wbdepth=8
8242 kernel_tool_prefix="x86_64-w64-mingw32-"
8244 *arm*)
8245 aros_target_cpu="arm"
8246 aros_object_format="armelf_linux_eabi"
8247 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8248 aros_arch_libs="-laeabi"
8249 aros_default_wbdepth=8
8250 gcc_target_cpu="arm"
8251 gcc_default_float_abi="soft"
8252 kernel_tool_prefix="arm-mingw32ce-"
8253 aros_default_wbwidth=160
8254 aros_default_wbheight=160
8257 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8259 esac
8260 if test $host_os = "cygwin"; then
8261 aros_kernel_cflags="-mno-cygwin"
8264 pp*)
8265 aros_target_arch="pp"
8266 aros_shared_default="no"
8267 case "$target_cpu" in
8268 *m68k*)
8269 aros_target_cpu="m68k"
8270 aros_object_format="m68kelf"
8271 aros_flavour="palmnative"
8272 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8273 aros_default_wbwidth=160
8274 aros_default_wbheight=160
8275 aros_default_wbdepth=1
8276 aros_target_ar_flags="cru"
8277 aros_compiler_libs="-lgcc1"
8278 aros_shared_default=no
8279 aros_shared_cflags="-fpic"
8280 aros_shared_aflags=""
8281 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8282 aros_kernel_ldflags="-Wl,-rpath,./lib"
8283 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8284 aros_debug_aflags=""
8285 aros_debug_ldflags="$aros_symbols_debug"
8286 aros_mungwall_debug="0"
8287 aros_modules_debug="0"
8288 gcc_target_cpu="mc68000"
8289 ignore_undefined_symbols="-ius"
8292 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8294 esac
8297 mac*)
8298 aros_target_arch="mac"
8299 aros_shared_default="no"
8300 case "$target_cpu" in
8301 *m68k*)
8302 aros_target_cpu="m68k"
8303 aros_object_format="m68kelf"
8304 aros_flavour="mac68knative"
8305 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8306 aros_default_wbwidth=512
8307 aros_default_wbheight=384
8308 aros_default_wbdepth=8
8309 aros_target_ar_flags="cru"
8310 aros_compiler_libs="-lgcc1"
8311 aros_shared_default=no
8312 aros_shared_cflags="-fpic"
8313 aros_shared_aflags=""
8314 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8315 aros_kernel_ldflags="-Wl,-rpath,./lib"
8316 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8317 aros_debug_aflags=""
8318 aros_debug_ldflags="$aros_symbols_debug"
8319 aros_mungwall_debug="0"
8320 aros_modules_debug="0"
8321 gcc_target_cpu="mc68000"
8322 ignore_undefined_symbols="-ius"
8325 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8327 esac
8331 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8333 esac
8335 #-----------------------------------------------------------------------------
8336 crosstools_guess=yes
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8339 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8341 # Check whether --with-kernel-toolchain-prefix was given.
8342 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8343 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8347 $as_echo "$kernel_tool_prefix" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8350 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8352 # Check whether --with-elf-toolchain-prefix was given.
8353 if test "${with_elf_toolchain_prefix+set}" = set; then :
8354 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8355 crosstools_guess=no
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8359 $as_echo "$elf_tool_prefix" >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8362 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8364 # Check whether --with-aros-toolchain was given.
8365 if test "${with_aros_toolchain+set}" = set; then :
8366 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8367 crosstools_guess=no
8370 if test "$aros_tool_prefix" = "yes" ; then
8371 aros_tool_prefix=$aros_target_cpu-aros-
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8374 $as_echo "$aros_tool_prefix" >&6; }
8376 #-----------------------------------------------------------------------------
8377 # Checking if we should build crosstools..
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8379 $as_echo_n "checking whether to build crosstools... " >&6; }
8380 # Check whether --enable-crosstools was given.
8381 if test "${enable_crosstools+set}" = set; then :
8382 enableval=$enable_crosstools; crosstools="$enableval"
8383 else
8384 crosstools="$crosstools_guess"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8388 $as_echo "$crosstools" >&6; }
8390 if test "${crosstools}" = "yes"; then
8391 if test "${crosstools_guess}" = "no"; then
8392 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8397 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8399 # Check whether --with-aros-toolchain-install was given.
8400 if test "${with_aros_toolchain_install+set}" = set; then :
8401 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8404 if test "x$aros_toolchain_install" = "x"; then
8405 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8406 else
8407 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8408 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8411 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8414 # Now process extra architecture-specific options.
8415 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8416 # as well as floating-point ABI.
8417 case "$aros_target_cpu" in
8418 arm)
8419 if test "$gcc_default_cpu" = ""; then
8420 gcc_default_cpu="armv6"
8422 if test "$gcc_default_fpu" = ""; then
8423 gcc_default_fpu="vfp"
8425 if test "$gcc_default_float_abi" = ""; then
8426 gcc_default_float_abi="softfp"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8430 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8432 # Check whether --with-cpu was given.
8433 if test "${with_cpu+set}" = set; then :
8434 withval=$with_cpu; aros_gcc_cpu="$withval"
8435 else
8436 aros_gcc_cpu=$gcc_default_cpu
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8440 $as_echo "$aros_gcc_cpu" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8443 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8445 # Check whether --with-fpu was given.
8446 if test "${with_fpu+set}" = set; then :
8447 withval=$with_fpu; aros_gcc_fpu="$withval"
8448 else
8449 aros_gcc_fpu=$gcc_default_fpu
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8453 $as_echo "$aros_gcc_fpu" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8456 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8458 # Check whether --with-float was given.
8459 if test "${with_float+set}" = set; then :
8460 withval=$with_float; aros_gcc_float_abi="$withval"
8461 else
8462 aros_gcc_float_abi=$gcc_default_float_abi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8466 $as_echo "$aros_gcc_float_abi" >&6; }
8468 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"
8469 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"
8471 esac
8473 # Some formats need custom ELF specs.
8474 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8475 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8476 elf_specs_in=config/${aros_object_format}-specs.in
8477 else
8478 elf_specs_in=config/elf-specs.in
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8482 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8484 # Check whether --with-aros-gcc was given.
8485 if test "${with_aros_gcc+set}" = set; then :
8486 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8487 else
8488 aros_gcc_version=""
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8492 $as_echo "$aros_gcc_version" >&6; }
8494 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8495 # Since we override specs, we may need to put these defines there
8496 if test "$gcc_target_cpu" != ""; then
8497 gcc_target_cpu="-D__${gcc_target_cpu}__"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8501 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8503 # Check whether --with-portssources was given.
8504 if test "${with_portssources+set}" = set; then :
8505 withval=$with_portssources; with_portssrcdir=$withval
8506 else
8507 with_portssrcdir="default"
8510 if test "$with_portssrcdir" = "default"; then
8511 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8512 else
8513 AROS_PORTSSRCDIR="$with_portssrcdir"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8516 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8519 $as_echo_n "checking which bootloader to use... " >&6; }
8521 # Check whether --with-bootloader was given.
8522 if test "${with_bootloader+set}" = set; then :
8523 withval=$with_bootloader; target_bootloader=$withval
8524 else
8525 target_bootloader=$target_bootloader
8528 if test "$target_bootloader" = "none"; then
8529 aros_target_bootloader=""
8530 else
8531 aros_target_bootloader="$target_bootloader"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8534 $as_echo "$target_bootloader" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8537 $as_echo_n "checking which icon-set to use... " >&6; }
8539 # Check whether --with-iconset was given.
8540 if test "${with_iconset+set}" = set; then :
8541 withval=$with_iconset; target_iconset=$withval
8542 else
8543 target_iconset="default"
8546 if test "$target_iconset" = "default"; then
8547 aros_target_iconset="Gorilla"
8548 target_iconset="default (Gorilla)"
8549 else
8550 aros_target_iconset="$target_iconset"
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8553 $as_echo "$target_iconset" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8556 $as_echo_n "checking which GUI Theme to use... " >&6; }
8558 # Check whether --with-theme was given.
8559 if test "${with_theme+set}" = set; then :
8560 withval=$with_theme; target_guitheme=$withval
8561 else
8562 target_guitheme="default"
8565 if test "$target_guitheme" = "default"; then
8566 aros_target_guitheme="Ice"
8567 else
8568 aros_target_guitheme="$target_guitheme"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8571 $as_echo "$aros_target_guitheme" >&6; }
8573 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8574 # for target code)
8575 cross_compiling=no
8577 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8578 cross_compiling=yes
8581 if test "$aros_host_cpu" == "x86_64" ; then
8582 if test "$aros_target_cpu" == "i386" ; then
8583 cross_compiling=no
8587 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8588 if test "$aros_host_arch" != "$aros_target_arch" ; then
8589 cross_compiling=yes
8591 else
8592 if test "$host_cc_elf" = "no" ; then
8593 cross_compiling=yes
8597 if test "$cross_compiling" = "no" ; then
8598 kernel_tool_prefix=""
8599 if test "$host_cc_elf" = "yes" ; then
8600 elf_tool_prefix=""
8604 #######################################################################
8605 ## Compute what toolchains to use, and their paths ##
8606 #######################################################################
8608 # This takes, as input:
8609 # crosstools {yes,no}
8610 # aros_gcc_version {default,[version]}
8611 # kernel_tool_prefix {none,[some-arch-os-]}
8612 # aros_tool_prefix ${target_cpu}-aros-
8614 # The output is
8615 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8616 # Where the 'kernel' binaries are located
8617 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8618 # Where the 'target' binaries are located
8619 # (not the symlink farm - that is aros_target_*!)
8621 # The rules are:
8622 # if crosstools then
8623 # if kernel_tools_prefix = "no-kernel-prefix-"
8624 # aros_kernel_* = crosstools cc paths
8625 # aros_kernel_cc = elf cc wrapper around crosstools cc
8626 # else
8627 # VALIDATE(${kernel_tools_prefix}*)
8628 # aros_kernel_* = ${kernel_tools_prefix}*
8629 # if ${kernel_tools_prefix}cc is an AROS gcc
8630 # aros_kernel_cc = ${kernel_tools_prefix}cc
8631 # else
8632 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8633 # fi
8634 # fi
8636 # orig_target_* = aros built crosstools
8637 # orig_target_cc = elf cc wrapper around crosstools cc
8638 # else
8639 # VALIDATE(${kernel_tools_prefix}*)
8641 # orig_target_* = aros_kernel_*
8642 # if aros_kernel_cc is an AROS gcc
8643 # orig_target_cc = aros_kernel_cc
8644 # else
8645 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8646 # fi
8647 # fi
8649 target_tool_prefix="${target_cpu}-aros-"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8652 $as_echo_n "checking which kernel tools... " >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8654 $as_echo "$kernel_tool_prefix" >&6; };
8656 if test "$kernel_tool_prefix" = "none" ; then
8657 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8658 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8660 else
8661 # Kernel tools required - find them
8662 # Note that 'normally', aros_kernel_* overrides will
8663 # empty, unless specified in the per-arch sections above.
8665 if test "$aros_kernel_cpp" = ""; then
8666 if test "$cross_compiling" = "yes" ; then
8667 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8668 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 case $aros_kernel_cpp in
8675 [\\/]* | ?:[\\/]*)
8676 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8690 done
8691 done
8692 IFS=$as_save_IFS
8695 esac
8697 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8698 if test -n "$aros_kernel_cpp"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8700 $as_echo "$aros_kernel_cpp" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8707 else
8708 if test "$GCC" = "yes"; then
8709 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8710 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8711 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 case $aros_kernel_cpp in
8718 [\\/]* | ?:[\\/]*)
8719 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in `dirname $aros_gcc_cpp`
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8733 done
8734 done
8735 IFS=$as_save_IFS
8738 esac
8740 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8741 if test -n "$aros_kernel_cpp"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8743 $as_echo "$aros_kernel_cpp" >&6; }
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8751 if test "$aros_kernel_cpp" = ""; then
8752 # Extract the first word of "cpp", so it can be a program name with args.
8753 set dummy cpp; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 case $aros_kernel_cpp in
8760 [\\/]* | ?:[\\/]*)
8761 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8775 done
8776 done
8777 IFS=$as_save_IFS
8780 esac
8782 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8783 if test -n "$aros_kernel_cpp"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8785 $as_echo "$aros_kernel_cpp" >&6; }
8786 else
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8794 else
8795 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8796 set dummy $aros_kernel_cpp; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 case $aros_kernel_cpp in
8803 [\\/]* | ?:[\\/]*)
8804 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8818 done
8819 done
8820 IFS=$as_save_IFS
8823 esac
8825 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8826 if test -n "$aros_kernel_cpp"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8828 $as_echo "$aros_kernel_cpp" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8837 if test "$aros_kernel_cpp" = ""; then
8838 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8840 if test "x$aros_kernel_cc" = "x"; then
8841 aros_kernel_cc=${kernel_tool_prefix}gcc
8844 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8845 if test "$cross_compiling" = "yes" ; then
8846 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8847 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849 $as_echo_n "checking for $ac_word... " >&6; }
8850 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 case $aros_kernel_cc in
8854 [\\/]* | ?:[\\/]*)
8855 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8865 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8869 done
8870 done
8871 IFS=$as_save_IFS
8874 esac
8876 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8877 if test -n "$aros_kernel_cc"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8879 $as_echo "$aros_kernel_cc" >&6; }
8880 else
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8886 else
8887 if test "$GCC" = "yes"; then
8888 aros_gcc_cc=`$CC -print-prog-name=cc`
8889 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8890 set dummy `basename $aros_gcc_cc`; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 case $aros_kernel_cc in
8897 [\\/]* | ?:[\\/]*)
8898 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 for as_dir in `dirname $aros_gcc_cc`
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8908 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8910 break 2
8912 done
8913 done
8914 IFS=$as_save_IFS
8917 esac
8919 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8920 if test -n "$aros_kernel_cc"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8922 $as_echo "$aros_kernel_cc" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8930 if test "$aros_kernel_cc" = ""; then
8931 # Extract the first word of "cc", so it can be a program name with args.
8932 set dummy cc; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 case $aros_kernel_cc in
8939 [\\/]* | ?:[\\/]*)
8940 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8950 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8954 done
8955 done
8956 IFS=$as_save_IFS
8959 esac
8961 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8962 if test -n "$aros_kernel_cc"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8964 $as_echo "$aros_kernel_cc" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8973 else
8974 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8975 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 case $aros_kernel_cc in
8982 [\\/]* | ?:[\\/]*)
8983 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9002 esac
9004 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9005 if test -n "$aros_kernel_cc"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9007 $as_echo "$aros_kernel_cc" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9016 if test "$aros_kernel_cc" = ""; then
9017 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9019 if test "x$aros_kernel_cxx" = "x"; then
9020 aros_kernel_cxx=${kernel_tool_prefix}g++
9023 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
9024 if test "$cross_compiling" = "yes" ; then
9025 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9026 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 case $aros_kernel_cxx in
9033 [\\/]* | ?:[\\/]*)
9034 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 break 2
9048 done
9049 done
9050 IFS=$as_save_IFS
9053 esac
9055 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9056 if test -n "$aros_kernel_cxx"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9058 $as_echo "$aros_kernel_cxx" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9065 else
9066 if test "$GCC" = "yes"; then
9067 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9068 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9069 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 case $aros_kernel_cxx in
9076 [\\/]* | ?:[\\/]*)
9077 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in `dirname $aros_gcc_cxx`
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9096 esac
9098 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9099 if test -n "$aros_kernel_cxx"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9101 $as_echo "$aros_kernel_cxx" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9109 if test "$aros_kernel_cxx" = ""; then
9110 # Extract the first word of "cxx", so it can be a program name with args.
9111 set dummy cxx; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 case $aros_kernel_cxx in
9118 [\\/]* | ?:[\\/]*)
9119 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9138 esac
9140 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9141 if test -n "$aros_kernel_cxx"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9143 $as_echo "$aros_kernel_cxx" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9152 else
9153 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9154 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 case $aros_kernel_cxx in
9161 [\\/]* | ?:[\\/]*)
9162 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9181 esac
9183 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9184 if test -n "$aros_kernel_cxx"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9186 $as_echo "$aros_kernel_cxx" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9195 # If it's set, make sure it's really there
9196 if test "x$aros_kernel_cxx" != "x" ; then
9197 if test "$aros_kernel_cxx" = ""; then
9198 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9202 if test "$aros_kernel_ld" = ""; then
9203 if test "$cross_compiling" = "yes" ; then
9204 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9205 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 case $aros_kernel_ld in
9212 [\\/]* | ?:[\\/]*)
9213 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9232 esac
9234 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9235 if test -n "$aros_kernel_ld"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9237 $as_echo "$aros_kernel_ld" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9244 else
9245 if test "$GCC" = "yes"; then
9246 aros_gcc_ld=`$CC -print-prog-name=ld`
9247 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9248 set dummy `basename $aros_gcc_ld`; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 case $aros_kernel_ld in
9255 [\\/]* | ?:[\\/]*)
9256 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in `dirname $aros_gcc_ld`
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 break 2
9270 done
9271 done
9272 IFS=$as_save_IFS
9275 esac
9277 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9278 if test -n "$aros_kernel_ld"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9280 $as_echo "$aros_kernel_ld" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9288 if test "$aros_kernel_ld" = ""; then
9289 # Extract the first word of "ld", so it can be a program name with args.
9290 set dummy ld; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 case $aros_kernel_ld in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9317 esac
9319 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9320 if test -n "$aros_kernel_ld"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9322 $as_echo "$aros_kernel_ld" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9331 else
9332 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9333 set dummy $aros_kernel_ld; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 case $aros_kernel_ld in
9340 [\\/]* | ?:[\\/]*)
9341 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9355 done
9356 done
9357 IFS=$as_save_IFS
9360 esac
9362 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9363 if test -n "$aros_kernel_ld"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9365 $as_echo "$aros_kernel_ld" >&6; }
9366 else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9374 if test "$aros_kernel_ld" = ""; then
9375 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9378 if test "$aros_kernel_as" = ""; then
9379 if test "$cross_compiling" = "yes" ; then
9380 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9381 set dummy ${kernel_tool_prefix}as; ac_word=$2
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if ${ac_cv_path_aros_kernel_as+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 case $aros_kernel_as in
9388 [\\/]* | ?:[\\/]*)
9389 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9408 esac
9410 aros_kernel_as=$ac_cv_path_aros_kernel_as
9411 if test -n "$aros_kernel_as"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9413 $as_echo "$aros_kernel_as" >&6; }
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9420 else
9421 if test "$GCC" = "yes"; then
9422 aros_gcc_as=`$CC -print-prog-name=as`
9423 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9424 set dummy `basename $aros_gcc_as`; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_path_aros_kernel_as+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 case $aros_kernel_as in
9431 [\\/]* | ?:[\\/]*)
9432 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in `dirname $aros_gcc_as`
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9442 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 break 2
9446 done
9447 done
9448 IFS=$as_save_IFS
9451 esac
9453 aros_kernel_as=$ac_cv_path_aros_kernel_as
9454 if test -n "$aros_kernel_as"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9456 $as_echo "$aros_kernel_as" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9464 if test "$aros_kernel_as" = ""; then
9465 # Extract the first word of "as", so it can be a program name with args.
9466 set dummy as; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if ${ac_cv_path_aros_kernel_as+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 case $aros_kernel_as in
9473 [\\/]* | ?:[\\/]*)
9474 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9493 esac
9495 aros_kernel_as=$ac_cv_path_aros_kernel_as
9496 if test -n "$aros_kernel_as"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9498 $as_echo "$aros_kernel_as" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9507 else
9508 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9509 set dummy $aros_kernel_as; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_path_aros_kernel_as+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 case $aros_kernel_as in
9516 [\\/]* | ?:[\\/]*)
9517 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9527 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9531 done
9532 done
9533 IFS=$as_save_IFS
9536 esac
9538 aros_kernel_as=$ac_cv_path_aros_kernel_as
9539 if test -n "$aros_kernel_as"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9541 $as_echo "$aros_kernel_as" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9550 if test "$aros_kernel_as" = ""; then
9551 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9554 if test "$aros_kernel_ar" = ""; then
9555 if test "$cross_compiling" = "yes" ; then
9556 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9557 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 case $aros_kernel_ar in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9584 esac
9586 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9587 if test -n "$aros_kernel_ar"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9589 $as_echo "$aros_kernel_ar" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9596 else
9597 if test "$GCC" = "yes"; then
9598 aros_gcc_ar=`$CC -print-prog-name=ar`
9599 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9600 set dummy `basename $aros_gcc_ar`; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 case $aros_kernel_ar in
9607 [\\/]* | ?:[\\/]*)
9608 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in `dirname $aros_gcc_ar`
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9622 done
9623 done
9624 IFS=$as_save_IFS
9627 esac
9629 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9630 if test -n "$aros_kernel_ar"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9632 $as_echo "$aros_kernel_ar" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9640 if test "$aros_kernel_ar" = ""; then
9641 # Extract the first word of "ar", so it can be a program name with args.
9642 set dummy ar; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $aros_kernel_ar in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9672 if test -n "$aros_kernel_ar"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9674 $as_echo "$aros_kernel_ar" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9683 else
9684 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9685 set dummy $aros_kernel_ar; ac_word=$2
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687 $as_echo_n "checking for $ac_word... " >&6; }
9688 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 case $aros_kernel_ar in
9692 [\\/]* | ?:[\\/]*)
9693 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9707 done
9708 done
9709 IFS=$as_save_IFS
9712 esac
9714 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9715 if test -n "$aros_kernel_ar"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9717 $as_echo "$aros_kernel_ar" >&6; }
9718 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9726 if test "$aros_kernel_ar" = ""; then
9727 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9730 if test "$aros_kernel_ranlib" = ""; then
9731 if test "$cross_compiling" = "yes" ; then
9732 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9733 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 case $aros_kernel_ranlib in
9740 [\\/]* | ?:[\\/]*)
9741 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9760 esac
9762 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9763 if test -n "$aros_kernel_ranlib"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9765 $as_echo "$aros_kernel_ranlib" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9772 else
9773 if test "$GCC" = "yes"; then
9774 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9775 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9776 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 case $aros_kernel_ranlib in
9783 [\\/]* | ?:[\\/]*)
9784 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in `dirname $aros_gcc_ranlib`
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9803 esac
9805 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9806 if test -n "$aros_kernel_ranlib"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9808 $as_echo "$aros_kernel_ranlib" >&6; }
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811 $as_echo "no" >&6; }
9816 if test "$aros_kernel_ranlib" = ""; then
9817 # Extract the first word of "ranlib", so it can be a program name with args.
9818 set dummy ranlib; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 case $aros_kernel_ranlib in
9825 [\\/]* | ?:[\\/]*)
9826 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9836 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9840 done
9841 done
9842 IFS=$as_save_IFS
9845 esac
9847 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9848 if test -n "$aros_kernel_ranlib"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9850 $as_echo "$aros_kernel_ranlib" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9859 else
9860 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9861 set dummy $aros_kernel_ranlib; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 case $aros_kernel_ranlib in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9888 esac
9890 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9891 if test -n "$aros_kernel_ranlib"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9893 $as_echo "$aros_kernel_ranlib" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9902 if test "$aros_kernel_ranlib" = ""; then
9903 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9906 if test "$aros_kernel_nm" = ""; then
9907 if test "$cross_compiling" = "yes" ; then
9908 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9909 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 case $aros_kernel_nm in
9916 [\\/]* | ?:[\\/]*)
9917 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9931 done
9932 done
9933 IFS=$as_save_IFS
9936 esac
9938 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9939 if test -n "$aros_kernel_nm"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9941 $as_echo "$aros_kernel_nm" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9948 else
9949 if test "$GCC" = "yes"; then
9950 aros_gcc_nm=`$CC -print-prog-name=nm`
9951 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9952 set dummy `basename $aros_gcc_nm`; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 case $aros_kernel_nm in
9959 [\\/]* | ?:[\\/]*)
9960 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in `dirname $aros_gcc_nm`
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9974 done
9975 done
9976 IFS=$as_save_IFS
9979 esac
9981 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9982 if test -n "$aros_kernel_nm"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9984 $as_echo "$aros_kernel_nm" >&6; }
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9992 if test "$aros_kernel_nm" = ""; then
9993 # Extract the first word of "nm", so it can be a program name with args.
9994 set dummy nm; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 case $aros_kernel_nm in
10001 [\\/]* | ?:[\\/]*)
10002 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10021 esac
10023 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10024 if test -n "$aros_kernel_nm"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10026 $as_echo "$aros_kernel_nm" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10035 else
10036 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10037 set dummy $aros_kernel_nm; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 case $aros_kernel_nm in
10044 [\\/]* | ?:[\\/]*)
10045 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10059 done
10060 done
10061 IFS=$as_save_IFS
10064 esac
10066 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10067 if test -n "$aros_kernel_nm"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10069 $as_echo "$aros_kernel_nm" >&6; }
10070 else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10078 if test "$aros_kernel_nm" = ""; then
10079 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10082 if test "$aros_kernel_strip" = ""; then
10083 if test "$cross_compiling" = "yes" ; then
10084 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10085 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 case $aros_kernel_strip in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10107 done
10108 done
10109 IFS=$as_save_IFS
10112 esac
10114 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10115 if test -n "$aros_kernel_strip"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10117 $as_echo "$aros_kernel_strip" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10124 else
10125 if test "$GCC" = "yes"; then
10126 aros_gcc_strip=`$CC -print-prog-name=strip`
10127 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10128 set dummy `basename $aros_gcc_strip`; ac_word=$2
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 $as_echo_n "checking for $ac_word... " >&6; }
10131 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 case $aros_kernel_strip in
10135 [\\/]* | ?:[\\/]*)
10136 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in `dirname $aros_gcc_strip`
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10150 done
10151 done
10152 IFS=$as_save_IFS
10155 esac
10157 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10158 if test -n "$aros_kernel_strip"; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10160 $as_echo "$aros_kernel_strip" >&6; }
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10168 if test "$aros_kernel_strip" = ""; then
10169 # Extract the first word of "strip", so it can be a program name with args.
10170 set dummy strip; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 case $aros_kernel_strip in
10177 [\\/]* | ?:[\\/]*)
10178 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10192 done
10193 done
10194 IFS=$as_save_IFS
10197 esac
10199 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10200 if test -n "$aros_kernel_strip"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10202 $as_echo "$aros_kernel_strip" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10211 else
10212 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10213 set dummy $aros_kernel_strip; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 case $aros_kernel_strip in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10240 esac
10242 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10243 if test -n "$aros_kernel_strip"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10245 $as_echo "$aros_kernel_strip" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10254 if test "$aros_kernel_strip" = ""; then
10255 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10258 # Objcopy and objdump are not required for the kernel
10259 # toolchain on many architectures.
10260 # So we'll look for them, but not make them strictly required.
10262 if test "$aros_kernel_objcopy" = ""; then
10263 if test "$cross_compiling" = "yes" ; then
10264 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10265 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267 $as_echo_n "checking for $ac_word... " >&6; }
10268 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 case $aros_kernel_objcopy in
10272 [\\/]* | ?:[\\/]*)
10273 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10287 done
10288 done
10289 IFS=$as_save_IFS
10292 esac
10294 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10295 if test -n "$aros_kernel_objcopy"; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10297 $as_echo "$aros_kernel_objcopy" >&6; }
10298 else
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10304 else
10305 if test "$GCC" = "yes"; then
10306 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10307 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10308 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 case $aros_kernel_objcopy in
10315 [\\/]* | ?:[\\/]*)
10316 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in `dirname $aros_gcc_objcopy`
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10335 esac
10337 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10338 if test -n "$aros_kernel_objcopy"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10340 $as_echo "$aros_kernel_objcopy" >&6; }
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10348 if test "$aros_kernel_objcopy" = ""; then
10349 # Extract the first word of "objcopy", so it can be a program name with args.
10350 set dummy objcopy; ac_word=$2
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352 $as_echo_n "checking for $ac_word... " >&6; }
10353 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 case $aros_kernel_objcopy in
10357 [\\/]* | ?:[\\/]*)
10358 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10368 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10372 done
10373 done
10374 IFS=$as_save_IFS
10377 esac
10379 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10380 if test -n "$aros_kernel_objcopy"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10382 $as_echo "$aros_kernel_objcopy" >&6; }
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10391 else
10392 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10393 set dummy $aros_kernel_objcopy; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 case $aros_kernel_objcopy in
10400 [\\/]* | ?:[\\/]*)
10401 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10415 done
10416 done
10417 IFS=$as_save_IFS
10420 esac
10422 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10423 if test -n "$aros_kernel_objcopy"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10425 $as_echo "$aros_kernel_objcopy" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10435 if test "$aros_kernel_objdump" = ""; then
10436 if test "$cross_compiling" = "yes" ; then
10437 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10438 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 case $aros_kernel_objdump in
10445 [\\/]* | ?:[\\/]*)
10446 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10460 done
10461 done
10462 IFS=$as_save_IFS
10465 esac
10467 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10468 if test -n "$aros_kernel_objdump"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10470 $as_echo "$aros_kernel_objdump" >&6; }
10471 else
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10477 else
10478 if test "$GCC" = "yes"; then
10479 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10480 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10481 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 case $aros_kernel_objdump in
10488 [\\/]* | ?:[\\/]*)
10489 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in `dirname $aros_gcc_objdump`
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10505 IFS=$as_save_IFS
10508 esac
10510 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10511 if test -n "$aros_kernel_objdump"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10513 $as_echo "$aros_kernel_objdump" >&6; }
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10521 if test "$aros_kernel_objdump" = ""; then
10522 # Extract the first word of "objdump", so it can be a program name with args.
10523 set dummy objdump; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 case $aros_kernel_objdump in
10530 [\\/]* | ?:[\\/]*)
10531 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10541 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 break 2
10545 done
10546 done
10547 IFS=$as_save_IFS
10550 esac
10552 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10553 if test -n "$aros_kernel_objdump"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10555 $as_echo "$aros_kernel_objdump" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10564 else
10565 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10566 set dummy $aros_kernel_objdump; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 case $aros_kernel_objdump in
10573 [\\/]* | ?:[\\/]*)
10574 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578 for as_dir in $PATH
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10584 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10588 done
10589 done
10590 IFS=$as_save_IFS
10593 esac
10595 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10596 if test -n "$aros_kernel_objdump"; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10598 $as_echo "$aros_kernel_objdump" >&6; }
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10607 if test "x${crosstools}" != "xyes" ; then
10608 if test "$aros_kernel_objcopy" = ""; then
10609 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10611 if test "$aros_kernel_objdump" = ""; then
10612 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10618 $as_echo_n "checking which target tools to use... " >&6; }
10619 if test "$crosstools" = "yes"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10621 $as_echo "$target_tool_prefix" >&6; }
10622 # We are are building AROS crosstools
10623 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10624 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10625 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10626 orig_target_cpp="${tmp_tool_prefix}cpp"
10627 orig_target_ld="${tmp_tool_prefix}ld"
10628 orig_target_as="${tmp_tool_prefix}as"
10629 orig_target_ar="${tmp_tool_prefix}ar"
10630 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10631 orig_target_nm="${tmp_tool_prefix}nm"
10632 orig_target_strip="${tmp_tool_prefix}strip"
10633 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10634 orig_target_objdump="${tmp_tool_prefix}objdump"
10635 else
10636 # Determine whether AROS or ELF tools should be used
10637 if test "$aros_tool_prefix" = "none"; then
10638 aros_tool_prefix="${elf_tool_prefix}"
10639 crosstools_cxx_target=tools-crosstools
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10643 $as_echo "$aros_tool_prefix" >&6; }
10644 # We are *not* building AROS crosstools - use the AROS or ELF tools
10646 if test "${aros_tool_prefix}cpp" = ""; then
10647 if test "$cross_compiling" = "yes" ; then
10648 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10649 set dummy ${target_tool_prefix}cpp; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_path_orig_target_cpp+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 case $orig_target_cpp in
10656 [\\/]* | ?:[\\/]*)
10657 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10671 done
10672 done
10673 IFS=$as_save_IFS
10676 esac
10678 orig_target_cpp=$ac_cv_path_orig_target_cpp
10679 if test -n "$orig_target_cpp"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10681 $as_echo "$orig_target_cpp" >&6; }
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10688 else
10689 if test "$GCC" = "yes"; then
10690 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10691 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10692 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if ${ac_cv_path_orig_target_cpp+:} false; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 case $orig_target_cpp in
10699 [\\/]* | ?:[\\/]*)
10700 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in `dirname $aros_gcc_cpp`
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10714 done
10715 done
10716 IFS=$as_save_IFS
10719 esac
10721 orig_target_cpp=$ac_cv_path_orig_target_cpp
10722 if test -n "$orig_target_cpp"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10724 $as_echo "$orig_target_cpp" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10732 if test "$orig_target_cpp" = ""; then
10733 # Extract the first word of "cpp", so it can be a program name with args.
10734 set dummy cpp; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if ${ac_cv_path_orig_target_cpp+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 case $orig_target_cpp in
10741 [\\/]* | ?:[\\/]*)
10742 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10756 done
10757 done
10758 IFS=$as_save_IFS
10761 esac
10763 orig_target_cpp=$ac_cv_path_orig_target_cpp
10764 if test -n "$orig_target_cpp"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10766 $as_echo "$orig_target_cpp" >&6; }
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10775 else
10776 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10777 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if ${ac_cv_path_orig_target_cpp+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 case $orig_target_cpp in
10784 [\\/]* | ?:[\\/]*)
10785 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10799 done
10800 done
10801 IFS=$as_save_IFS
10804 esac
10806 orig_target_cpp=$ac_cv_path_orig_target_cpp
10807 if test -n "$orig_target_cpp"; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10809 $as_echo "$orig_target_cpp" >&6; }
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10818 if test "$orig_target_cpp" = ""; then
10819 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10822 if test "${aros_tool_prefix}gcc" = ""; then
10823 if test "$cross_compiling" = "yes" ; then
10824 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10825 set dummy ${target_tool_prefix}gcc; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_orig_target_cc+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 case $orig_target_cc in
10832 [\\/]* | ?:[\\/]*)
10833 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10843 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10847 done
10848 done
10849 IFS=$as_save_IFS
10852 esac
10854 orig_target_cc=$ac_cv_path_orig_target_cc
10855 if test -n "$orig_target_cc"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10857 $as_echo "$orig_target_cc" >&6; }
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10864 else
10865 if test "$GCC" = "yes"; then
10866 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10867 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10868 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if ${ac_cv_path_orig_target_cc+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 case $orig_target_cc in
10875 [\\/]* | ?:[\\/]*)
10876 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in `dirname $aros_gcc_gcc`
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10890 done
10891 done
10892 IFS=$as_save_IFS
10895 esac
10897 orig_target_cc=$ac_cv_path_orig_target_cc
10898 if test -n "$orig_target_cc"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10900 $as_echo "$orig_target_cc" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10908 if test "$orig_target_cc" = ""; then
10909 # Extract the first word of "gcc", so it can be a program name with args.
10910 set dummy gcc; ac_word=$2
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912 $as_echo_n "checking for $ac_word... " >&6; }
10913 if ${ac_cv_path_orig_target_cc+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915 else
10916 case $orig_target_cc in
10917 [\\/]* | ?:[\\/]*)
10918 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 break 2
10932 done
10933 done
10934 IFS=$as_save_IFS
10937 esac
10939 orig_target_cc=$ac_cv_path_orig_target_cc
10940 if test -n "$orig_target_cc"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10942 $as_echo "$orig_target_cc" >&6; }
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10951 else
10952 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10953 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if ${ac_cv_path_orig_target_cc+:} false; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 case $orig_target_cc in
10960 [\\/]* | ?:[\\/]*)
10961 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 break 2
10975 done
10976 done
10977 IFS=$as_save_IFS
10980 esac
10982 orig_target_cc=$ac_cv_path_orig_target_cc
10983 if test -n "$orig_target_cc"; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10985 $as_echo "$orig_target_cc" >&6; }
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10994 if test "$orig_target_cc" = ""; then
10995 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10997 if test "x${crosstools_cxx_target}" = "x" ; then
10999 if test "${aros_tool_prefix}g++" = ""; then
11000 if test "$cross_compiling" = "yes" ; then
11001 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11002 set dummy ${target_tool_prefix}g++; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_path_orig_target_cxx+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 case $orig_target_cxx in
11009 [\\/]* | ?:[\\/]*)
11010 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11020 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11024 done
11025 done
11026 IFS=$as_save_IFS
11029 esac
11031 orig_target_cxx=$ac_cv_path_orig_target_cxx
11032 if test -n "$orig_target_cxx"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11034 $as_echo "$orig_target_cxx" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11041 else
11042 if test "$GCC" = "yes"; then
11043 aros_gcc_g++=`$CC -print-prog-name=g++`
11044 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11045 set dummy `basename $aros_gcc_g++`; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if ${ac_cv_path_orig_target_cxx+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 case $orig_target_cxx in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in `dirname $aros_gcc_g++`
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11072 esac
11074 orig_target_cxx=$ac_cv_path_orig_target_cxx
11075 if test -n "$orig_target_cxx"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11077 $as_echo "$orig_target_cxx" >&6; }
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11085 if test "$orig_target_cxx" = ""; then
11086 # Extract the first word of "g++", so it can be a program name with args.
11087 set dummy g++; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if ${ac_cv_path_orig_target_cxx+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 case $orig_target_cxx in
11094 [\\/]* | ?:[\\/]*)
11095 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11105 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11109 done
11110 done
11111 IFS=$as_save_IFS
11114 esac
11116 orig_target_cxx=$ac_cv_path_orig_target_cxx
11117 if test -n "$orig_target_cxx"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11119 $as_echo "$orig_target_cxx" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11128 else
11129 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11130 set dummy ${aros_tool_prefix}g++; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if ${ac_cv_path_orig_target_cxx+:} false; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 case $orig_target_cxx in
11137 [\\/]* | ?:[\\/]*)
11138 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11152 done
11153 done
11154 IFS=$as_save_IFS
11157 esac
11159 orig_target_cxx=$ac_cv_path_orig_target_cxx
11160 if test -n "$orig_target_cxx"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11162 $as_echo "$orig_target_cxx" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11171 if test "$orig_target_cxx" = ""; then
11172 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11176 if test "${aros_tool_prefix}ld" = ""; then
11177 if test "$cross_compiling" = "yes" ; then
11178 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11179 set dummy ${target_tool_prefix}gcc; ac_word=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if ${ac_cv_path_orig_target_ld+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 case $orig_target_ld in
11186 [\\/]* | ?:[\\/]*)
11187 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11206 esac
11208 orig_target_ld=$ac_cv_path_orig_target_ld
11209 if test -n "$orig_target_ld"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11211 $as_echo "$orig_target_ld" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11218 else
11219 if test "$GCC" = "yes"; then
11220 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11221 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11222 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_path_orig_target_ld+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 case $orig_target_ld in
11229 [\\/]* | ?:[\\/]*)
11230 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in `dirname $aros_gcc_gcc`
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11244 done
11245 done
11246 IFS=$as_save_IFS
11249 esac
11251 orig_target_ld=$ac_cv_path_orig_target_ld
11252 if test -n "$orig_target_ld"; then
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11254 $as_echo "$orig_target_ld" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11262 if test "$orig_target_ld" = ""; then
11263 # Extract the first word of "gcc", so it can be a program name with args.
11264 set dummy gcc; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if ${ac_cv_path_orig_target_ld+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 case $orig_target_ld in
11271 [\\/]* | ?:[\\/]*)
11272 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11286 done
11287 done
11288 IFS=$as_save_IFS
11291 esac
11293 orig_target_ld=$ac_cv_path_orig_target_ld
11294 if test -n "$orig_target_ld"; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11296 $as_echo "$orig_target_ld" >&6; }
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11305 else
11306 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11307 set dummy ${aros_tool_prefix}ld; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if ${ac_cv_path_orig_target_ld+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 case $orig_target_ld in
11314 [\\/]* | ?:[\\/]*)
11315 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11321 IFS=$as_save_IFS
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11325 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 break 2
11329 done
11330 done
11331 IFS=$as_save_IFS
11334 esac
11336 orig_target_ld=$ac_cv_path_orig_target_ld
11337 if test -n "$orig_target_ld"; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11339 $as_echo "$orig_target_ld" >&6; }
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11348 if test "$orig_target_ld" = ""; then
11349 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11352 if test "${aros_tool_prefix}as" = ""; then
11353 if test "$cross_compiling" = "yes" ; then
11354 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11355 set dummy ${target_tool_prefix}as; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if ${ac_cv_path_orig_target_as+:} false; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 case $orig_target_as in
11362 [\\/]* | ?:[\\/]*)
11363 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11373 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 break 2
11377 done
11378 done
11379 IFS=$as_save_IFS
11382 esac
11384 orig_target_as=$ac_cv_path_orig_target_as
11385 if test -n "$orig_target_as"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11387 $as_echo "$orig_target_as" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11394 else
11395 if test "$GCC" = "yes"; then
11396 aros_gcc_as=`$CC -print-prog-name=as`
11397 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11398 set dummy `basename $aros_gcc_as`; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_path_orig_target_as+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 case $orig_target_as in
11405 [\\/]* | ?:[\\/]*)
11406 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in `dirname $aros_gcc_as`
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11416 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11420 done
11421 done
11422 IFS=$as_save_IFS
11425 esac
11427 orig_target_as=$ac_cv_path_orig_target_as
11428 if test -n "$orig_target_as"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11430 $as_echo "$orig_target_as" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11438 if test "$orig_target_as" = ""; then
11439 # Extract the first word of "as", so it can be a program name with args.
11440 set dummy as; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_path_orig_target_as+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 case $orig_target_as in
11447 [\\/]* | ?:[\\/]*)
11448 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 break 2
11462 done
11463 done
11464 IFS=$as_save_IFS
11467 esac
11469 orig_target_as=$ac_cv_path_orig_target_as
11470 if test -n "$orig_target_as"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11472 $as_echo "$orig_target_as" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11481 else
11482 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11483 set dummy ${aros_tool_prefix}as; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if ${ac_cv_path_orig_target_as+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 case $orig_target_as in
11490 [\\/]* | ?:[\\/]*)
11491 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11505 done
11506 done
11507 IFS=$as_save_IFS
11510 esac
11512 orig_target_as=$ac_cv_path_orig_target_as
11513 if test -n "$orig_target_as"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11515 $as_echo "$orig_target_as" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11524 if test "$orig_target_as" = ""; then
11525 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11528 if test "${aros_tool_prefix}ar" = ""; then
11529 if test "$cross_compiling" = "yes" ; then
11530 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11531 set dummy ${target_tool_prefix}ar; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if ${ac_cv_path_orig_target_ar+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 case $orig_target_ar in
11538 [\\/]* | ?:[\\/]*)
11539 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11553 done
11554 done
11555 IFS=$as_save_IFS
11558 esac
11560 orig_target_ar=$ac_cv_path_orig_target_ar
11561 if test -n "$orig_target_ar"; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11563 $as_echo "$orig_target_ar" >&6; }
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11570 else
11571 if test "$GCC" = "yes"; then
11572 aros_gcc_ar=`$CC -print-prog-name=ar`
11573 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11574 set dummy `basename $aros_gcc_ar`; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if ${ac_cv_path_orig_target_ar+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 case $orig_target_ar in
11581 [\\/]* | ?:[\\/]*)
11582 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in `dirname $aros_gcc_ar`
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 break 2
11596 done
11597 done
11598 IFS=$as_save_IFS
11601 esac
11603 orig_target_ar=$ac_cv_path_orig_target_ar
11604 if test -n "$orig_target_ar"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11606 $as_echo "$orig_target_ar" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11614 if test "$orig_target_ar" = ""; then
11615 # Extract the first word of "ar", so it can be a program name with args.
11616 set dummy ar; ac_word=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if ${ac_cv_path_orig_target_ar+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 case $orig_target_ar in
11623 [\\/]* | ?:[\\/]*)
11624 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11634 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636 break 2
11638 done
11639 done
11640 IFS=$as_save_IFS
11643 esac
11645 orig_target_ar=$ac_cv_path_orig_target_ar
11646 if test -n "$orig_target_ar"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11648 $as_echo "$orig_target_ar" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11657 else
11658 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11659 set dummy ${aros_tool_prefix}ar; ac_word=$2
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661 $as_echo_n "checking for $ac_word... " >&6; }
11662 if ${ac_cv_path_orig_target_ar+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 case $orig_target_ar in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11681 done
11682 done
11683 IFS=$as_save_IFS
11686 esac
11688 orig_target_ar=$ac_cv_path_orig_target_ar
11689 if test -n "$orig_target_ar"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11691 $as_echo "$orig_target_ar" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11700 if test "$orig_target_ar" = ""; then
11701 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11704 if test "${aros_tool_prefix}ranlib" = ""; then
11705 if test "$cross_compiling" = "yes" ; then
11706 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11707 set dummy ${target_tool_prefix}ar; ac_word=$2
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 $as_echo_n "checking for $ac_word... " >&6; }
11710 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 case $orig_target_ranlib in
11714 [\\/]* | ?:[\\/]*)
11715 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in $PATH
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11725 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 break 2
11729 done
11730 done
11731 IFS=$as_save_IFS
11734 esac
11736 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11737 if test -n "$orig_target_ranlib"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11739 $as_echo "$orig_target_ranlib" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11746 else
11747 if test "$GCC" = "yes"; then
11748 aros_gcc_ar=`$CC -print-prog-name=ar`
11749 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11750 set dummy `basename $aros_gcc_ar`; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 case $orig_target_ranlib in
11757 [\\/]* | ?:[\\/]*)
11758 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in `dirname $aros_gcc_ar`
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11772 done
11773 done
11774 IFS=$as_save_IFS
11777 esac
11779 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11780 if test -n "$orig_target_ranlib"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11782 $as_echo "$orig_target_ranlib" >&6; }
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11790 if test "$orig_target_ranlib" = ""; then
11791 # Extract the first word of "ar", so it can be a program name with args.
11792 set dummy ar; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 case $orig_target_ranlib in
11799 [\\/]* | ?:[\\/]*)
11800 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11810 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11814 done
11815 done
11816 IFS=$as_save_IFS
11819 esac
11821 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11822 if test -n "$orig_target_ranlib"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11824 $as_echo "$orig_target_ranlib" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11833 else
11834 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11835 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 case $orig_target_ranlib in
11842 [\\/]* | ?:[\\/]*)
11843 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11862 esac
11864 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11865 if test -n "$orig_target_ranlib"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11867 $as_echo "$orig_target_ranlib" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11876 if test "$orig_target_ranlib" = ""; then
11877 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11880 if test "${aros_tool_prefix}nm" = ""; then
11881 if test "$cross_compiling" = "yes" ; then
11882 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11883 set dummy ${target_tool_prefix}nm; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_orig_target_nm+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $orig_target_nm in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11905 done
11906 done
11907 IFS=$as_save_IFS
11910 esac
11912 orig_target_nm=$ac_cv_path_orig_target_nm
11913 if test -n "$orig_target_nm"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11915 $as_echo "$orig_target_nm" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11922 else
11923 if test "$GCC" = "yes"; then
11924 aros_gcc_nm=`$CC -print-prog-name=nm`
11925 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11926 set dummy `basename $aros_gcc_nm`; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if ${ac_cv_path_orig_target_nm+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 case $orig_target_nm in
11933 [\\/]* | ?:[\\/]*)
11934 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in `dirname $aros_gcc_nm`
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11948 done
11949 done
11950 IFS=$as_save_IFS
11953 esac
11955 orig_target_nm=$ac_cv_path_orig_target_nm
11956 if test -n "$orig_target_nm"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11958 $as_echo "$orig_target_nm" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11966 if test "$orig_target_nm" = ""; then
11967 # Extract the first word of "nm", so it can be a program name with args.
11968 set dummy nm; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if ${ac_cv_path_orig_target_nm+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 case $orig_target_nm in
11975 [\\/]* | ?:[\\/]*)
11976 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11986 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11990 done
11991 done
11992 IFS=$as_save_IFS
11995 esac
11997 orig_target_nm=$ac_cv_path_orig_target_nm
11998 if test -n "$orig_target_nm"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12000 $as_echo "$orig_target_nm" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12009 else
12010 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12011 set dummy ${aros_tool_prefix}nm; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_path_orig_target_nm+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 case $orig_target_nm in
12018 [\\/]* | ?:[\\/]*)
12019 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12033 done
12034 done
12035 IFS=$as_save_IFS
12038 esac
12040 orig_target_nm=$ac_cv_path_orig_target_nm
12041 if test -n "$orig_target_nm"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12043 $as_echo "$orig_target_nm" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12052 if test "$orig_target_nm" = ""; then
12053 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12056 if test "${aros_tool_prefix}strip" = ""; then
12057 if test "$cross_compiling" = "yes" ; then
12058 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12059 set dummy ${target_tool_prefix}strip; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_path_orig_target_strip+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 case $orig_target_strip in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12081 done
12082 done
12083 IFS=$as_save_IFS
12086 esac
12088 orig_target_strip=$ac_cv_path_orig_target_strip
12089 if test -n "$orig_target_strip"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12091 $as_echo "$orig_target_strip" >&6; }
12092 else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12098 else
12099 if test "$GCC" = "yes"; then
12100 aros_gcc_strip=`$CC -print-prog-name=strip`
12101 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12102 set dummy `basename $aros_gcc_strip`; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_path_orig_target_strip+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 case $orig_target_strip in
12109 [\\/]* | ?:[\\/]*)
12110 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in `dirname $aros_gcc_strip`
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12124 done
12125 done
12126 IFS=$as_save_IFS
12129 esac
12131 orig_target_strip=$ac_cv_path_orig_target_strip
12132 if test -n "$orig_target_strip"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12134 $as_echo "$orig_target_strip" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12142 if test "$orig_target_strip" = ""; then
12143 # Extract the first word of "strip", so it can be a program name with args.
12144 set dummy strip; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_orig_target_strip+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 case $orig_target_strip in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12162 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12171 esac
12173 orig_target_strip=$ac_cv_path_orig_target_strip
12174 if test -n "$orig_target_strip"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12176 $as_echo "$orig_target_strip" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12185 else
12186 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12187 set dummy ${aros_tool_prefix}strip; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if ${ac_cv_path_orig_target_strip+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 case $orig_target_strip in
12194 [\\/]* | ?:[\\/]*)
12195 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12205 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 break 2
12209 done
12210 done
12211 IFS=$as_save_IFS
12214 esac
12216 orig_target_strip=$ac_cv_path_orig_target_strip
12217 if test -n "$orig_target_strip"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12219 $as_echo "$orig_target_strip" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12228 if test "$orig_target_strip" = ""; then
12229 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12232 if test "${aros_tool_prefix}objcopy" = ""; then
12233 if test "$cross_compiling" = "yes" ; then
12234 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12235 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case $orig_target_objcopy in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12259 IFS=$as_save_IFS
12262 esac
12264 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12265 if test -n "$orig_target_objcopy"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12267 $as_echo "$orig_target_objcopy" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12274 else
12275 if test "$GCC" = "yes"; then
12276 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12277 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12278 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 case $orig_target_objcopy in
12285 [\\/]* | ?:[\\/]*)
12286 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in `dirname $aros_gcc_objcopy`
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12305 esac
12307 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12308 if test -n "$orig_target_objcopy"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12310 $as_echo "$orig_target_objcopy" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12318 if test "$orig_target_objcopy" = ""; then
12319 # Extract the first word of "objcopy", so it can be a program name with args.
12320 set dummy objcopy; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 case $orig_target_objcopy in
12327 [\\/]* | ?:[\\/]*)
12328 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12338 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12342 done
12343 done
12344 IFS=$as_save_IFS
12347 esac
12349 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12350 if test -n "$orig_target_objcopy"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12352 $as_echo "$orig_target_objcopy" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12361 else
12362 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12363 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 case $orig_target_objcopy in
12370 [\\/]* | ?:[\\/]*)
12371 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12385 done
12386 done
12387 IFS=$as_save_IFS
12390 esac
12392 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12393 if test -n "$orig_target_objcopy"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12395 $as_echo "$orig_target_objcopy" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12404 if test "$orig_target_objcopy" = ""; then
12405 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12408 if test "${aros_tool_prefix}objdump" = ""; then
12409 if test "$cross_compiling" = "yes" ; then
12410 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12411 set dummy ${target_tool_prefix}objdump; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_path_orig_target_objdump+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 case $orig_target_objdump in
12418 [\\/]* | ?:[\\/]*)
12419 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12433 done
12434 done
12435 IFS=$as_save_IFS
12438 esac
12440 orig_target_objdump=$ac_cv_path_orig_target_objdump
12441 if test -n "$orig_target_objdump"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12443 $as_echo "$orig_target_objdump" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12450 else
12451 if test "$GCC" = "yes"; then
12452 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12453 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12454 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_path_orig_target_objdump+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 case $orig_target_objdump in
12461 [\\/]* | ?:[\\/]*)
12462 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in `dirname $aros_gcc_objdump`
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12476 done
12477 done
12478 IFS=$as_save_IFS
12481 esac
12483 orig_target_objdump=$ac_cv_path_orig_target_objdump
12484 if test -n "$orig_target_objdump"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12486 $as_echo "$orig_target_objdump" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12494 if test "$orig_target_objdump" = ""; then
12495 # Extract the first word of "objdump", so it can be a program name with args.
12496 set dummy objdump; ac_word=$2
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 $as_echo_n "checking for $ac_word... " >&6; }
12499 if ${ac_cv_path_orig_target_objdump+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 case $orig_target_objdump in
12503 [\\/]* | ?:[\\/]*)
12504 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 for ac_exec_ext in '' $ac_executable_extensions; do
12513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12514 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516 break 2
12518 done
12519 done
12520 IFS=$as_save_IFS
12523 esac
12525 orig_target_objdump=$ac_cv_path_orig_target_objdump
12526 if test -n "$orig_target_objdump"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12528 $as_echo "$orig_target_objdump" >&6; }
12529 else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12537 else
12538 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12539 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if ${ac_cv_path_orig_target_objdump+:} false; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 case $orig_target_objdump in
12546 [\\/]* | ?:[\\/]*)
12547 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
12556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12557 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 break 2
12561 done
12562 done
12563 IFS=$as_save_IFS
12566 esac
12568 orig_target_objdump=$ac_cv_path_orig_target_objdump
12569 if test -n "$orig_target_objdump"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12571 $as_echo "$orig_target_objdump" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12580 if test "$orig_target_objdump" = ""; then
12581 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12585 if test "$kernel_tool_prefix" = "none" ; then
12586 # No kernel tools specified
12587 # Assume target tools == kernel tools with ELF wrapper
12588 aros_kernel_cc=$orig_target_cc
12589 aros_kernel_cxx=$orig_target_cxx
12590 aros_kernel_cpp=$orig_target_cpp
12591 aros_kernel_ld=$orig_target_ld
12592 aros_kernel_as=$orig_target_as
12593 aros_kernel_ar=$orig_target_ar
12594 aros_kernel_ranlib=$orig_target_ranlib
12595 aros_kernel_nm=$orig_target_nm
12596 aros_kernel_strip=$orig_target_strip
12597 aros_kernel_objcopy=$orig_target_objcopy
12598 aros_kernel_objdump=$orig_target_objdump
12599 use_kernel_cc_wrapper=yes
12602 # At this point, all aros_kernel_* and aros_target_*
12603 # tools should be set up correctly
12605 CC="$aros_kernel_cc $kernel_tool_flags"
12606 CPP="$aros_kernel_cpp"
12608 #-----------------------------------------------------------------------------
12610 # Disable pointer-signedness warnings if the compiler recognises the option
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12613 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12614 save_cflags="$CFLAGS"
12615 if test "$crosstools" != "yes" ; then
12616 CFLAGS="$CFLAGS -Wno-pointer-sign"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12621 main ()
12625 return 0;
12627 _ACEOF
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629 use_no_sign_warning="yes"
12630 else
12631 use_no_sign_warning="no"
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 else
12635 # we do know it is supported for the smallest version of gcc we are going to build
12636 # we assume it's also supported by later versions
12637 use_no_sign_warning=yes
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12640 $as_echo "$use_no_sign_warning" >&6; }
12641 if test "x-$use_no_sign_warning" = "x-yes" ; then
12642 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12644 CFLAGS="$save_cflags"
12646 #-----------------------------------------------------------------------------
12648 # Find all the tools we need to compile. This could be cross-compiling
12649 # though! If that is the case we use the GNU form of the target and
12650 # simply add this to the front of the binary name. This is rather simple,
12651 # but it should work under most circumstances.
12653 # The default tools are to use the same as the host, but only if the
12654 # host and target CPU are the same. With GCC this is normally enough.
12657 aros_cc_pre=""
12658 aros_shared_ld="$aros_host_ld"
12660 aros_target_mkdep="$aros_host_mkdep"
12662 # The default tools executables to be linked to.
12663 if test "$rescomp" != ""; then
12664 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12665 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 case $aros_kernel_rescomp in
12672 [\\/]* | ?:[\\/]*)
12673 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 break 2
12687 done
12688 done
12689 IFS=$as_save_IFS
12692 esac
12694 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12695 if test -n "$aros_kernel_rescomp"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12697 $as_echo "$aros_kernel_rescomp" >&6; }
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12704 if test "$aros_kernel_rescomp" = ""; then
12705 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12709 # Set up the sources for the symlink farm
12710 if test "$crosstools" = "yes"; then
12711 crosstools_target=tools-crosstools
12714 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12715 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12718 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12719 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12720 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12721 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12722 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12723 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12724 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12726 # aros_cc_pre is a variable that is added to the front of the compiler name
12727 # in the generated aros-gcc shell script. We need this to enable the cache
12728 # to work across cleaned builds. Also, support DISTCC using the correct
12729 # environment variable.
12732 if test "x${DISTCC}" != "x" ; then
12733 if test "x${CCACHE}" != "x" ; then
12734 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12735 else
12736 aros_cc_pre="${DISTCC} "
12738 else
12739 if test "x${CCACHE}" != "x" ; then
12740 aros_cc_pre="${CCACHE} "
12744 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12746 aros_target_nostdinc_cflags=-nostdinc
12748 aros_target_nostartup_ldflags=-nostartfiles
12750 aros_target_nix_ldflags=-nix
12752 aros_target_detach_ldflags=-detach
12754 aros_target_nostdlib_ldflags=-nostdlib
12757 # Target tools
12758 if test "$crosstools" != "yes"; then
12759 if test "$GCC" = "yes"; then
12760 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12762 else
12763 # We do not know which gcc version we are going to build and what we need to know
12764 # here is different for different versions so this will be set later during the
12765 # build of crosstools.
12766 aros_target_cc_path=@aros_target_cc_path@
12768 aros_target_cpp="${prefix}cpp"
12769 aros_target_cc="${prefix}gcc"
12770 aros_target_cxx="${prefix}g++"
12771 aros_target_as="${prefix}as"
12772 aros_target_ld="${prefix}ld"
12773 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12774 aros_target_objcopy="${prefix}objcopy"
12775 aros_target_objdump="${prefix}objdump"
12776 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12777 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12778 aros_target_strip="${prefix}strip"
12779 aros_plain_nm="${prefix}nm"
12780 aros_plain_ar="${prefix}ar"
12782 # Check whether --enable-includes was given.
12783 if test "${enable_includes+set}" = set; then :
12784 enableval=$enable_includes; aros_target_incl=$enable_includes
12785 else
12786 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12790 if test "$aros_kernel_includes" = ""; then
12791 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12792 aros_kernel_includes="-isystem $aros_target_incl"
12796 if test "$aros_kernel_includes" != "" ; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12798 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12799 if test "$aros_kernel_cc_includes" = "" ; then
12800 # Try to guess where the directory is.
12801 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12802 if test -d $aros_kernel_cc_includes; then
12803 # Check if there is also an include-fixed directory and add it
12804 # to kernel compiler's include path as it may contain some of
12805 # the headers we need.
12806 if test -d "$aros_kernel_cc_includes"-fixed; then
12807 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12809 # Check for specific includes directory. Neede for Ubuntu 11.10
12810 if test -d "/usr/include/i386-linux-gnu"; then
12811 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12813 else
12814 # The directory doesn't exist, we need to do some more work.
12815 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12817 # These are the headers we're looking for.
12818 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12819 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12820 zutil.h stdint.h"
12822 dirs=
12823 for h in $headers; do
12824 # Which other headers are needed by each of the above?
12825 deps=$(echo "#include <$h>" | \
12826 $aros_kernel_cc -E -M - 2>/dev/null | \
12827 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12829 # Copy all the needed headers to a directory beneath gendir.
12830 for d in $deps; do
12831 h=$(basename $d)
12832 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12833 sed -n "s,^.*/include\(/.*\),\1,p")
12834 ! test -d $dir && mkdir -p $dir
12835 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12836 done
12837 done
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12841 $as_echo "$aros_kernel_cc_includes" >&6; }
12842 # Adding -nostdinc to kernel includes as they are always used together.
12843 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12846 if test "$crosstools" != "yes"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12848 $as_echo_n "checking for the target compiler's include path... " >&6; }
12849 if test "$aros_target_cc_includes" = "" ; then
12850 #try to guess where the directory is
12851 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12852 if ! test -d $aros_target_cc_includes; then
12853 #the directory doesn't exist, we need to do some more work
12854 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12856 #these are the headers we're looking for
12857 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12858 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12859 zutil.h"
12861 dirs=
12862 for h in $headers; do
12863 #which other headers each of the above headers needs?
12864 deps=$(echo "#include <$h>" | \
12865 $orig_target_cc -E -M - 2>/dev/null | \
12866 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12868 #copy all the needed headers to a directory beneath gendir
12869 for d in $deps; do
12870 h=$(basename $d)
12871 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12872 sed -n "s,^.*/include\(/.*\),\1,p")
12873 ! test -d $dir && mkdir -p $dir
12874 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12875 done
12876 done
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12880 $as_echo "$aros_target_cc_includes" >&6; }
12881 else
12882 # We do not know which gcc version we are going to build and what we need to know
12883 # here is different for different versions so this will be set later during the
12884 # build of crosstools.
12885 aros_target_cc_includes=@aros_target_cc_includes@
12889 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12890 # On GCC >= 4.0 -iquote should be used
12893 save_cc="$CC"
12894 save_cflags="$CFLAGS"
12895 CFLAGS="-iquote."
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12897 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12898 if test "x-$crosstools" != "x-yes"; then
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12903 main ()
12907 return 0;
12909 _ACEOF
12910 if ac_fn_c_try_compile "$LINENO"; then :
12911 has_iquote="yes"
12912 else
12913 has_iquote="no"
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 else
12917 # we do know it is supported for the smallest version of gcc we are going to build
12918 # we assume it's also supported by later versions
12919 has_iquote=yes
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12922 $as_echo "$has_iquote" >&6; }
12923 if test "x-$has_iquote" = "x-yes" ; then
12924 host_cflags_iquote=-iquote
12925 host_cflags_iquote_end=
12926 else
12927 host_cflags_iquote=-I
12928 host_cflags_iquote_end=-I-
12930 kernel_cflags_iquote=$host_cflags_iquote
12931 kernel_cflags_iquote_end=$host_cflags_iquote_end
12932 if test "x-$cross_compiling" = "x-yes"; then
12933 CC="$aros_kernel_cc"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12935 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12936 if test "x-$crosstools" != "x-yes"; then
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12941 main ()
12945 return 0;
12947 _ACEOF
12948 if ac_fn_c_try_compile "$LINENO"; then :
12949 use_no_stack_protector="yes"
12950 else
12951 use_no_stack_protector="no"
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954 else
12955 # we do know it is supported for the smallest version of gcc we are going to build
12956 # we assume it's also supported by later versions
12957 use_no_stack_protector=yes
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12960 $as_echo "$use_no_stack_protector" >&6; }
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12962 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12963 if test "x-$crosstools" != "x-yes"; then
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12968 main ()
12972 return 0;
12974 _ACEOF
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976 has_iquote="yes"
12977 else
12978 has_iquote="no"
12980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 else
12982 # we do know it is supported for the smallest version of gcc we are going to build
12983 # we assume it's also supported by later versions
12984 has_iquote=yes
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12987 $as_echo "$has_iquote" >&6; }
12988 if test "x-$has_iquote" = "x-yes" ; then
12989 kernel_cflags_iquote=-iquote
12990 kernel_cflags_iquote_end=
12991 else
12992 kernel_cflags_iquote=-I
12993 kernel_cflags_iquote_end=-I-
12996 aros_cflags_iquote=$kernel_cflags_iquote
12997 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12998 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12999 CC="$orig_target_cc"
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13001 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13002 if test "x-$crosstools" != "x-yes"; then
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13007 main ()
13011 return 0;
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 has_iquote="yes"
13016 else
13017 has_iquote="no"
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 else
13021 # we do know it is supported for the smallest version of gcc we are going to build
13022 # we assume it's also supported by later versions
13023 has_iquote=yes
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13026 $as_echo "$has_iquote" >&6; }
13027 if test "x-$has_iquote" = "x-yes" ; then
13028 aros_cflags_iquote=-iquote
13029 aros_cflags_iquote_end=
13030 else
13031 aros_cflags_iquote=-I
13032 aros_cflags_iquote_end=-I-
13035 if test "x-$use_no_stack_protector" = "x-yes" ; then
13036 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13040 #-----------------------------------------------------------------------------
13042 # Check if the target compiler supports some options used for delinting:
13043 # -Wunused-but-set-variable
13044 # -Warray-bounds
13045 # -Wenum-compare
13046 # -Wstrict-overflow
13047 # -Wformat-security
13049 if test "x-$crosstools" != "x-yes"; then
13050 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13051 CC="$orig_target_cc"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13054 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13055 CFLAGS=-Wunused-but-set-variable
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13060 main ()
13064 return 0;
13066 _ACEOF
13067 if ac_fn_c_try_compile "$LINENO"; then :
13068 aros_unused_but_set_variable="yes"
13069 else
13070 aros_unused_but_set_variable="no"
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13074 $as_echo "$aros_unused_but_set_variable" >&6; }
13075 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13076 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13080 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13081 CFLAGS=-Warray-bounds
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13086 main ()
13090 return 0;
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094 aros_array_bounds="yes"
13095 else
13096 aros_array_bounds="no"
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13100 $as_echo "$aros_array_bounds" >&6; }
13101 if test "x-$aros_array_bounds" = "x-yes" ; then
13102 aros_cflags_array_bounds=-Wno-array-bounds
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13106 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13107 CFLAGS=-Wenum-compare
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13112 main ()
13116 return 0;
13118 _ACEOF
13119 if ac_fn_c_try_compile "$LINENO"; then :
13120 aros_enum_compare="yes"
13121 else
13122 aros_enum_compare="no"
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13126 $as_echo "$aros_enum_compare" >&6; }
13127 if test "x-$aros_enum_compare" = "x-yes" ; then
13128 aros_cflags_enum_compare=-Wno-enum-compare
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13132 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13133 CFLAGS=-Wstrict-overflow
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13138 main ()
13142 return 0;
13144 _ACEOF
13145 if ac_fn_c_try_compile "$LINENO"; then :
13146 aros_strict_overflow="yes"
13147 else
13148 aros_strict_overflow="no"
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13152 $as_echo "$aros_strict_overflow" >&6; }
13153 if test "x-$aros_strict_overflow" = "x-yes" ; then
13154 aros_cflags_strict_overflow=-Wno-strict-overflow
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13158 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13159 CFLAGS=-Wformat-security
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13164 main ()
13168 return 0;
13170 _ACEOF
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172 aros_format_security="yes"
13173 else
13174 aros_format_security="no"
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13178 $as_echo "$aros_format_security" >&6; }
13179 if test "x-$aros_format_security" = "x-yes" ; then
13180 aros_cflags_format_security=-Wno-format-security
13182 else
13183 # We do not know which gcc version we are going to build and what we need to know
13184 # here is different for different versions so this will be set later during the
13185 # build of crosstools.
13186 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13187 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13188 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13189 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13190 aros_cflags_format_security=@aros_cflags_format_security@
13193 #-----------------------------------------------------------------------------
13195 # Check if we can explicitly choose older version of symbol hashing
13197 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13198 CC="$aros_kernel_cc"
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13200 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13205 main ()
13209 return 0;
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 use_hash_style="yes"
13214 else
13215 use_hash_style="no"
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13220 $as_echo "$use_hash_style" >&6; }
13221 if test "x-$use_hash_style" = "x-yes" ; then
13222 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13224 CC="$save_cc"
13225 CFLAGS="$save_cflags"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13236 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13238 # Check whether --with-resolution was given.
13239 if test "${with_resolution+set}" = set; then :
13240 withval=$with_resolution; resolution=$withval
13241 else
13242 resolution=none
13245 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13246 if test "$resolution" = "yes" ; then
13247 resolution="none"
13249 if test "$resolution" = "no" ; then
13250 resolution="none"
13252 if test "$resolution" != "none" ; then
13253 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13254 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13255 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13258 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13259 aros_cv_default_wbwidth=$aros_default_wbwidth
13260 aros_cv_default_wbheight=$aros_default_wbheight
13261 aros_cv_default_wbdepth=$aros_default_wbdepth
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13264 $as_echo_n "checking if serial debug is enabled... " >&6; }
13266 # Check whether --with-serial-debug was given.
13267 if test "${with_serial_debug+set}" = set; then :
13268 withval=$with_serial_debug; serial_debug=$withval
13269 else
13270 serial_debug=none
13273 if test "$aros_serial_debug" = 0 ; then
13274 serial_debug_forced=""
13275 if test "$serial_debug" = "yes" ; then
13276 serial_debug="1"
13278 if test "$serial_debug" = "no" ; then
13279 serial_debug="none"
13281 else
13282 serial_debug_forced="(forced)"
13283 serial_debug=$aros_serial_debug
13285 if test "$serial_debug" != "none" ; then
13286 aros_serial_debug=$serial_debug
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13288 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13295 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13296 # Check whether --enable-palm_debug_hack was given.
13297 if test "${enable_palm_debug_hack+set}" = set; then :
13298 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13299 else
13300 palm_debug_hack="no"
13303 if test "$palm_debug_hack" = "yes" ; then
13304 aros_palm_debug_hack="1"
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13307 $as_echo "$palm_debug_hack" >&6; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13310 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13311 # Check whether --enable-nesting_supervisor was given.
13312 if test "${enable_nesting_supervisor+set}" = set; then :
13313 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13314 else
13315 nesting_supervisor="no"
13318 if test "$nesting_supervisor" = "yes" ; then
13319 aros_nesting_supervisor="1"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13322 $as_echo "$nesting_supervisor" >&6; }
13324 if test "$aros_enable_mmu" = "" ; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13326 $as_echo_n "checking if MMU support is enabled... " >&6; }
13327 # Check whether --enable-mmu was given.
13328 if test "${enable_mmu+set}" = set; then :
13329 enableval=$enable_mmu; aros_enable_mmu=$enableval
13330 else
13331 aros_enable_mmu="yes"
13334 if test "$aros_enable_mmu" = "" ; then
13335 aros_enable_mmu="yes"
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13338 $as_echo "$aros_enable_mmu" >&6; }
13340 if test "$aros_enable_mmu" = "no" ; then
13341 aros_enable_mmu="0"
13342 else
13343 aros_enable_mmu="1"
13347 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13349 if test "x-$need_dlopen" != "x-no" ; then
13350 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13351 if test "x$ac_cv_func_dlopen" = xyes; then :
13352 have_dl="yes"
13353 else
13354 have_dl="no"
13357 if test "x-$have_dl" = "x-no" ; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13360 if ${ac_cv_lib_dl_dlopen+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 ac_check_lib_save_LIBS=$LIBS
13364 LIBS="-ldl $LIBS"
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13368 /* Override any GCC internal prototype to avoid an error.
13369 Use char because int might match the return type of a GCC
13370 builtin and then its argument prototype would still apply. */
13371 #ifdef __cplusplus
13372 extern "C"
13373 #endif
13374 char dlopen ();
13376 main ()
13378 return dlopen ();
13380 return 0;
13382 _ACEOF
13383 if ac_fn_c_try_link "$LINENO"; then :
13384 ac_cv_lib_dl_dlopen=yes
13385 else
13386 ac_cv_lib_dl_dlopen=no
13388 rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13390 LIBS=$ac_check_lib_save_LIBS
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13394 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13395 have_dl="yes"
13396 aros_host_ldflags="$aros_host_ldflags -ldl"
13397 else
13398 have_dl="no"
13402 if test "x-$have_dl" = "x-no" ; then
13403 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13408 # Check whether --enable-x11_hidd was given.
13409 if test "${enable_x11_hidd+set}" = set; then :
13410 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13411 else
13412 x11_hidd="$need_x11"
13415 case "x-$x11_hidd" in
13416 x-yes|x-no|x-auto) ;;
13417 *) x11_hidd="$need_x11" ;;
13418 esac
13420 ENABLE_X11=0
13422 if test "x-$x11_hidd" != "x-no" ; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13425 $as_echo_n "checking for X... " >&6; }
13428 # Check whether --with-x was given.
13429 if test "${with_x+set}" = set; then :
13430 withval=$with_x;
13433 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13434 if test "x$with_x" = xno; then
13435 # The user explicitly disabled X.
13436 have_x=disabled
13437 else
13438 case $x_includes,$x_libraries in #(
13439 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13440 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 # One or both of the vars are not set, and there is no cached value.
13444 ac_x_includes=no ac_x_libraries=no
13445 rm -f -r conftest.dir
13446 if mkdir conftest.dir; then
13447 cd conftest.dir
13448 cat >Imakefile <<'_ACEOF'
13449 incroot:
13450 @echo incroot='${INCROOT}'
13451 usrlibdir:
13452 @echo usrlibdir='${USRLIBDIR}'
13453 libdir:
13454 @echo libdir='${LIBDIR}'
13455 _ACEOF
13456 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13457 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13458 for ac_var in incroot usrlibdir libdir; do
13459 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13460 done
13461 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13462 for ac_extension in a so sl dylib la dll; do
13463 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13464 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13465 ac_im_usrlibdir=$ac_im_libdir; break
13467 done
13468 # Screen out bogus values from the imake configuration. They are
13469 # bogus both because they are the default anyway, and because
13470 # using them would break gcc on systems where it needs fixed includes.
13471 case $ac_im_incroot in
13472 /usr/include) ac_x_includes= ;;
13473 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13474 esac
13475 case $ac_im_usrlibdir in
13476 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13477 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13478 esac
13480 cd ..
13481 rm -f -r conftest.dir
13484 # Standard set of common directories for X headers.
13485 # Check X11 before X11Rn because it is often a symlink to the current release.
13486 ac_x_header_dirs='
13487 /usr/X11/include
13488 /usr/X11R7/include
13489 /usr/X11R6/include
13490 /usr/X11R5/include
13491 /usr/X11R4/include
13493 /usr/include/X11
13494 /usr/include/X11R7
13495 /usr/include/X11R6
13496 /usr/include/X11R5
13497 /usr/include/X11R4
13499 /usr/local/X11/include
13500 /usr/local/X11R7/include
13501 /usr/local/X11R6/include
13502 /usr/local/X11R5/include
13503 /usr/local/X11R4/include
13505 /usr/local/include/X11
13506 /usr/local/include/X11R7
13507 /usr/local/include/X11R6
13508 /usr/local/include/X11R5
13509 /usr/local/include/X11R4
13511 /usr/X386/include
13512 /usr/x386/include
13513 /usr/XFree86/include/X11
13515 /usr/include
13516 /usr/local/include
13517 /usr/unsupported/include
13518 /usr/athena/include
13519 /usr/local/x11r5/include
13520 /usr/lpp/Xamples/include
13522 /usr/openwin/include
13523 /usr/openwin/share/include'
13525 if test "$ac_x_includes" = no; then
13526 # Guess where to find include files, by looking for Xlib.h.
13527 # First, try using that file with no special directory specified.
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <X11/Xlib.h>
13531 _ACEOF
13532 if ac_fn_c_try_cpp "$LINENO"; then :
13533 # We can compile using X headers with no special include directory.
13534 ac_x_includes=
13535 else
13536 for ac_dir in $ac_x_header_dirs; do
13537 if test -r "$ac_dir/X11/Xlib.h"; then
13538 ac_x_includes=$ac_dir
13539 break
13541 done
13543 rm -f conftest.err conftest.i conftest.$ac_ext
13544 fi # $ac_x_includes = no
13546 if test "$ac_x_libraries" = no; then
13547 # Check for the libraries.
13548 # See if we find them without any special options.
13549 # Don't add to $LIBS permanently.
13550 ac_save_LIBS=$LIBS
13551 LIBS="-lX11 $LIBS"
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 #include <X11/Xlib.h>
13556 main ()
13558 XrmInitialize ()
13560 return 0;
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 LIBS=$ac_save_LIBS
13565 # We can link X programs with no special library path.
13566 ac_x_libraries=
13567 else
13568 LIBS=$ac_save_LIBS
13569 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13571 # Don't even attempt the hair of trying to link an X program!
13572 for ac_extension in a so sl dylib la dll; do
13573 if test -r "$ac_dir/libX11.$ac_extension"; then
13574 ac_x_libraries=$ac_dir
13575 break 2
13577 done
13578 done
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 fi # $ac_x_libraries = no
13584 case $ac_x_includes,$ac_x_libraries in #(
13585 no,* | *,no | *\'*)
13586 # Didn't find X, or a directory has "'" in its name.
13587 ac_cv_have_x="have_x=no";; #(
13589 # Record where we found X for the cache.
13590 ac_cv_have_x="have_x=yes\
13591 ac_x_includes='$ac_x_includes'\
13592 ac_x_libraries='$ac_x_libraries'"
13593 esac
13595 ;; #(
13596 *) have_x=yes;;
13597 esac
13598 eval "$ac_cv_have_x"
13599 fi # $with_x != no
13601 if test "$have_x" != yes; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13603 $as_echo "$have_x" >&6; }
13604 no_x=yes
13605 else
13606 # If each of the values was on the command line, it overrides each guess.
13607 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13608 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13609 # Update the cache value to reflect the command line values.
13610 ac_cv_have_x="have_x=yes\
13611 ac_x_includes='$x_includes'\
13612 ac_x_libraries='$x_libraries'"
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13614 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13618 x_cflags=
13619 for path in $x_libraries
13621 x_cflags="$x_cflags -L$path"
13622 done
13624 for path in $x_includes
13626 x_cflags="$x_cflags -I$path"
13627 done
13629 if test "x-$no_x" = "x-yes" ; then
13631 if test "x-$x11_hidd" != "x-auto" ; then
13632 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13635 else
13636 x11_hidd_target=kernel-x11gfx-kobj
13637 ENABLE_X11=1
13639 # Check whether --enable-x11_shm was given.
13640 if test "${enable_x11_shm+set}" = set; then :
13641 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13642 else
13643 x11_hidd_shm="auto"
13646 case "x-$x11_hidd_shm" in
13647 x-yes|x-no|x-auto) ;;
13648 *) x11_hidd_shm="auto" ;;
13649 esac
13651 have_xshm=no
13653 if test "x-$x11_hidd_shm" != "x-no" ; then
13655 for ac_header in sys/ipc.h
13656 do :
13657 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13658 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_SYS_IPC_H 1
13661 _ACEOF
13665 done
13667 for ac_header in sys/shm.h
13668 do :
13669 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13670 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13671 cat >>confdefs.h <<_ACEOF
13672 #define HAVE_SYS_SHM_H 1
13673 _ACEOF
13677 done
13680 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13682 save_cflags="$CFLAGS"
13683 CFLAGS="$CFLAGS $x_cflags"
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13685 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13686 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 ac_check_lib_save_LIBS=$LIBS
13690 LIBS="-lXext $LIBS"
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 /* Override any GCC internal prototype to avoid an error.
13695 Use char because int might match the return type of a GCC
13696 builtin and then its argument prototype would still apply. */
13697 #ifdef __cplusplus
13698 extern "C"
13699 #endif
13700 char XShmQueryExtension ();
13702 main ()
13704 return XShmQueryExtension ();
13706 return 0;
13708 _ACEOF
13709 if ac_fn_c_try_link "$LINENO"; then :
13710 ac_cv_lib_Xext_XShmQueryExtension=yes
13711 else
13712 ac_cv_lib_Xext_XShmQueryExtension=no
13714 rm -f core conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 LIBS=$ac_check_lib_save_LIBS
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13719 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13720 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13721 have_xshm=yes
13724 CFLAGS="$save_cflags"
13728 if test "x-$have_xshm" = "x-yes" ; then
13729 DO_XSHM_SUPPORT="1"
13730 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13731 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13732 else
13733 DO_XSHM_SUPPORT="0"
13737 # Check whether --enable-x11_vidmode was given.
13738 if test "${enable_x11_vidmode+set}" = set; then :
13739 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13740 else
13741 x11_hidd_vidmode="auto"
13744 case "x-$x11_hidd_vidmode" in
13745 x-yes|x-no|x-auto) ;;
13746 *) x11_hidd_vidmode="auto" ;;
13747 esac
13749 have_vidmode=no
13751 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13753 save_cflags="$CFLAGS"
13754 CFLAGS="$CFLAGS $x_cflags"
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13756 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13757 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 ac_check_lib_save_LIBS=$LIBS
13761 LIBS="-lXxf86vm $LIBS"
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 char XF86VidModeQueryExtension ();
13773 main ()
13775 return XF86VidModeQueryExtension ();
13777 return 0;
13779 _ACEOF
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13782 else
13783 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13785 rm -f core conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext conftest.$ac_ext
13787 LIBS=$ac_check_lib_save_LIBS
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13790 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13791 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13792 have_vidmode=yes
13795 CFLAGS="$save_cflags"
13798 if test "x-$have_vidmode" = "x-yes" ; then
13799 DO_VIDMODE_SUPPORT="1"
13800 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13801 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13802 else
13803 DO_VIDMODE_SUPPORT="0"
13807 aros_host_x11_includes=$x_includes
13808 aros_host_x11_libdirs=$x_libraries
13812 # Check whether --enable-sdl_hidd was given.
13813 if test "${enable_sdl_hidd+set}" = set; then :
13814 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13815 else
13816 sdl_hidd="auto"
13819 case "x-$sdl_hidd" in
13820 x-yes|x-no|x-auto) ;;
13821 *) sdl_hidd="auto" ;;
13822 esac
13824 if test "x-$sdl_hidd" != "x-no" ; then
13827 # Check whether --with-sdl-prefix was given.
13828 if test "${with_sdl_prefix+set}" = set; then :
13829 withval=$with_sdl_prefix; sdl_prefix="$withval"
13830 else
13831 sdl_prefix=""
13835 # Check whether --with-sdl-exec-prefix was given.
13836 if test "${with_sdl_exec_prefix+set}" = set; then :
13837 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13838 else
13839 sdl_exec_prefix=""
13842 # Check whether --enable-sdltest was given.
13843 if test "${enable_sdltest+set}" = set; then :
13844 enableval=$enable_sdltest;
13845 else
13846 enable_sdltest=yes
13850 if test x$sdl_exec_prefix != x ; then
13851 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13852 if test x${SDL_CONFIG+set} != xset ; then
13853 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13856 if test x$sdl_prefix != x ; then
13857 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13858 if test x${SDL_CONFIG+set} != xset ; then
13859 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13863 as_save_PATH="$PATH"
13864 if test "x$prefix" != xNONE; then
13865 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13867 # Extract the first word of "sdl-config", so it can be a program name with args.
13868 set dummy sdl-config; ac_word=$2
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870 $as_echo_n "checking for $ac_word... " >&6; }
13871 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 case $SDL_CONFIG in
13875 [\\/]* | ?:[\\/]*)
13876 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13886 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13890 done
13891 done
13892 IFS=$as_save_IFS
13894 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13896 esac
13898 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13899 if test -n "$SDL_CONFIG"; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13901 $as_echo "$SDL_CONFIG" >&6; }
13902 else
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904 $as_echo "no" >&6; }
13908 PATH="$as_save_PATH"
13909 min_sdl_version=1.2.10
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13911 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13912 no_sdl=""
13913 if test "$SDL_CONFIG" = "no" ; then
13914 no_sdl=yes
13915 else
13916 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13917 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13919 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13921 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13923 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13925 if test "x$enable_sdltest" = "xyes" ; then
13926 ac_save_CFLAGS="$CFLAGS"
13927 ac_save_CXXFLAGS="$CXXFLAGS"
13928 ac_save_LIBS="$LIBS"
13929 CFLAGS="$CFLAGS $SDL_CFLAGS"
13930 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13931 LIBS="$LIBS $SDL_LIBS"
13932 rm -f conf.sdltest
13933 if test "$cross_compiling" = yes; then :
13934 echo $ac_n "cross compiling; assumed OK... $ac_c"
13935 else
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 #include <stdio.h>
13940 #include <stdlib.h>
13941 #include <string.h>
13942 #include "SDL.h"
13944 char*
13945 my_strdup (char *str)
13947 char *new_str;
13949 if (str)
13951 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13952 strcpy (new_str, str);
13954 else
13955 new_str = NULL;
13957 return new_str;
13960 int main (int argc, char *argv[])
13962 int major, minor, micro;
13963 char *tmp_version;
13965 /* This hangs on some systems (?)
13966 system ("touch conf.sdltest");
13968 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13970 /* HP/UX 9 (%@#!) writes to sscanf strings */
13971 tmp_version = my_strdup("$min_sdl_version");
13972 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13973 printf("%s, bad version string\n", "$min_sdl_version");
13974 exit(1);
13977 if (($sdl_major_version > major) ||
13978 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13979 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13981 return 0;
13983 else
13985 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13986 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13987 printf("*** best to upgrade to the required version.\n");
13988 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13989 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13990 printf("*** config.cache before re-running configure\n");
13991 return 1;
13996 _ACEOF
13997 if ac_fn_c_try_run "$LINENO"; then :
13999 else
14000 no_sdl=yes
14002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14003 conftest.$ac_objext conftest.beam conftest.$ac_ext
14006 CFLAGS="$ac_save_CFLAGS"
14007 CXXFLAGS="$ac_save_CXXFLAGS"
14008 LIBS="$ac_save_LIBS"
14011 if test "x$no_sdl" = x ; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013 $as_echo "yes" >&6; }
14014 have_sdl="yes"
14015 else
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018 if test "$SDL_CONFIG" = "no" ; then
14019 echo "*** The sdl-config script installed by SDL could not be found"
14020 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14021 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14022 echo "*** full path to sdl-config."
14023 else
14024 if test -f conf.sdltest ; then
14026 else
14027 echo "*** Could not run SDL test program, checking why..."
14028 CFLAGS="$CFLAGS $SDL_CFLAGS"
14029 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14030 LIBS="$LIBS $SDL_LIBS"
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14034 #include <stdio.h>
14035 #include "SDL.h"
14037 int main(int argc, char *argv[])
14038 { return 0; }
14039 #undef main
14040 #define main K_and_R_C_main
14043 main ()
14045 return 0;
14047 return 0;
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 echo "*** The test program compiled, but did not run. This usually means"
14052 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14053 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14054 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14055 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14056 echo "*** is required on your system"
14057 echo "***"
14058 echo "*** If you have an old version installed, it is best to remove it, although"
14059 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14060 else
14061 echo "*** The test program failed to compile or link. See the file config.log for the"
14062 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14063 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14064 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14066 rm -f core conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
14068 CFLAGS="$ac_save_CFLAGS"
14069 CXXFLAGS="$ac_save_CXXFLAGS"
14070 LIBS="$ac_save_LIBS"
14073 SDL_CFLAGS=""
14074 SDL_LIBS=""
14075 have_sdl="no"
14079 rm -f conf.sdltest
14082 if test "x-$have_sdl" != "x-yes" ; then
14084 if test "x-$sdl_hidd" != "x-auto" ; then
14085 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14088 else
14089 sdl_hidd_target=kernel-hidd-sdl
14090 aros_host_sdl_cflags=SDL_CFLAGS
14091 aros_host_sdl_libs=SDL_LIBS
14095 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14096 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14101 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14102 oss_library_target=workbench-libs-oss-unix
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14108 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14109 # Check whether --enable-dbus was given.
14110 if test "${enable_dbus+set}" = set; then :
14111 enableval=$enable_dbus; dbus="yes"
14112 else
14113 dbus="no"
14116 if test "$dbus" = "yes" ; then
14117 ENABLE_DBUS=1
14118 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14119 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14120 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14121 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14122 else
14123 ENABLE_DBUS=0
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14126 $as_echo "$dbus" >&6; }
14128 if test "$use_kernel_cc_wrapper" = "yes" ; then
14129 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14132 if test "${crosstools}" != "yes" ; then
14133 aros_target_toolchain=no
14134 else
14135 aros_target_toolchain=yes
14139 # Generic
14151 # Compatability with other Amiga-like operation systems
14154 # Host related
14182 # Target Related
14246 # Delinting target compiler flags
14253 # Graphics Related
14270 # Native version related
14273 # Palm native version related
14276 # Unix/Hosted version related
14279 # MMU related
14282 # Apple iOS related
14287 # ARM default GCC target related
14292 # Android related
14296 # DBUS related
14303 #X11 related
14306 # Debug related
14312 # Collect-aros stuff: "-ius" to ignore undefined symbols
14315 # C compiler related
14318 case "$aros_flavour" in
14319 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14320 aros_flavour="emulation" ;;
14321 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14322 aros_flavour="emulation" ;;
14323 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14324 aros_flavour="standalone";;
14325 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14326 aros_flavour="standalone";;
14327 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14328 aros_flavour="native" ;;
14329 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14330 aros_flavour="native" ;;
14331 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14332 aros_flavour="linklib" ;;
14333 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14334 aros_flavour="palmnative" ;;
14335 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14336 aros_flavour="mac68knative" ;;
14337 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14338 aros_flavour="ppcnative" ;;
14339 esac
14341 if test ! -d ${aros_inc_dir} ; then
14342 ${MKDIR} ${aros_inc_dir}
14344 if test ! -d ${aros_geninc_dir} ; then
14345 ${MKDIR} ${aros_geninc_dir}
14347 if test ! -d ${aros_hostcfg_dir} ; then
14348 ${MKDIR} ${aros_hostcfg_dir}
14350 if test ! -d ${aros_targetcfg_dir} ; then
14351 ${MKDIR} ${aros_targetcfg_dir}
14353 if test ! -d ${aros_tools_dir} ; then
14354 ${MKDIR} ${aros_tools_dir}
14356 if test ! -d ${aros_scripts_dir} ; then
14357 ${MKDIR} ${aros_scripts_dir}
14360 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14363 ac_config_commands="$ac_config_commands compiler_executable"
14365 ac_config_commands="$ac_config_commands genmf_executable"
14368 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"
14371 cat >confcache <<\_ACEOF
14372 # This file is a shell script that caches the results of configure
14373 # tests run on this system so they can be shared between configure
14374 # scripts and configure runs, see configure's option --config-cache.
14375 # It is not useful on other systems. If it contains results you don't
14376 # want to keep, you may remove or edit it.
14378 # config.status only pays attention to the cache file if you give it
14379 # the --recheck option to rerun configure.
14381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14383 # following values.
14385 _ACEOF
14387 # The following way of writing the cache mishandles newlines in values,
14388 # but we know of no workaround that is simple, portable, and efficient.
14389 # So, we kill variables containing newlines.
14390 # Ultrix sh set writes to stderr and can't be redirected directly,
14391 # and sets the high bit in the cache file unless we assign to the vars.
14393 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14394 eval ac_val=\$$ac_var
14395 case $ac_val in #(
14396 *${as_nl}*)
14397 case $ac_var in #(
14398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14400 esac
14401 case $ac_var in #(
14402 _ | IFS | as_nl) ;; #(
14403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14404 *) { eval $ac_var=; unset $ac_var;} ;;
14405 esac ;;
14406 esac
14407 done
14409 (set) 2>&1 |
14410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14411 *${as_nl}ac_space=\ *)
14412 # `set' does not quote correctly, so add quotes: double-quote
14413 # substitution turns \\\\ into \\, and sed turns \\ into \.
14414 sed -n \
14415 "s/'/'\\\\''/g;
14416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14417 ;; #(
14419 # `set' quotes correctly as required by POSIX, so do not add quotes.
14420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14422 esac |
14423 sort
14425 sed '
14426 /^ac_cv_env_/b end
14427 t clear
14428 :clear
14429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14430 t end
14431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14432 :end' >>confcache
14433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14434 if test -w "$cache_file"; then
14435 if test "x$cache_file" != "x/dev/null"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14437 $as_echo "$as_me: updating cache $cache_file" >&6;}
14438 if test ! -f "$cache_file" || test -h "$cache_file"; then
14439 cat confcache >"$cache_file"
14440 else
14441 case $cache_file in #(
14442 */* | ?:*)
14443 mv -f confcache "$cache_file"$$ &&
14444 mv -f "$cache_file"$$ "$cache_file" ;; #(
14446 mv -f confcache "$cache_file" ;;
14447 esac
14450 else
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14452 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14455 rm -f confcache
14457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14458 # Let make expand exec_prefix.
14459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14461 DEFS=-DHAVE_CONFIG_H
14463 ac_libobjs=
14464 ac_ltlibobjs=
14466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14467 # 1. Remove the extension, and $U if already installed.
14468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14469 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14471 # will be set to the directory where LIBOBJS objects are built.
14472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14474 done
14475 LIBOBJS=$ac_libobjs
14477 LTLIBOBJS=$ac_ltlibobjs
14481 : "${CONFIG_STATUS=./config.status}"
14482 ac_write_fail=0
14483 ac_clean_files_save=$ac_clean_files
14484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14487 as_write_fail=0
14488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14489 #! $SHELL
14490 # Generated by $as_me.
14491 # Run this file to recreate the current configuration.
14492 # Compiler output produced by configure, useful for debugging
14493 # configure, is in config.log if it exists.
14495 debug=false
14496 ac_cs_recheck=false
14497 ac_cs_silent=false
14499 SHELL=\${CONFIG_SHELL-$SHELL}
14500 export SHELL
14501 _ASEOF
14502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14503 ## -------------------- ##
14504 ## M4sh Initialization. ##
14505 ## -------------------- ##
14507 # Be more Bourne compatible
14508 DUALCASE=1; export DUALCASE # for MKS sh
14509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14510 emulate sh
14511 NULLCMD=:
14512 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14513 # is contrary to our usage. Disable this feature.
14514 alias -g '${1+"$@"}'='"$@"'
14515 setopt NO_GLOB_SUBST
14516 else
14517 case `(set -o) 2>/dev/null` in #(
14518 *posix*) :
14519 set -o posix ;; #(
14520 *) :
14522 esac
14526 as_nl='
14528 export as_nl
14529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14530 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14533 # Prefer a ksh shell builtin over an external printf program on Solaris,
14534 # but without wasting forks for bash or zsh.
14535 if test -z "$BASH_VERSION$ZSH_VERSION" \
14536 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14537 as_echo='print -r --'
14538 as_echo_n='print -rn --'
14539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14540 as_echo='printf %s\n'
14541 as_echo_n='printf %s'
14542 else
14543 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14544 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14545 as_echo_n='/usr/ucb/echo -n'
14546 else
14547 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14548 as_echo_n_body='eval
14549 arg=$1;
14550 case $arg in #(
14551 *"$as_nl"*)
14552 expr "X$arg" : "X\\(.*\\)$as_nl";
14553 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14554 esac;
14555 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14557 export as_echo_n_body
14558 as_echo_n='sh -c $as_echo_n_body as_echo'
14560 export as_echo_body
14561 as_echo='sh -c $as_echo_body as_echo'
14564 # The user is always right.
14565 if test "${PATH_SEPARATOR+set}" != set; then
14566 PATH_SEPARATOR=:
14567 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14568 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14569 PATH_SEPARATOR=';'
14574 # IFS
14575 # We need space, tab and new line, in precisely that order. Quoting is
14576 # there to prevent editors from complaining about space-tab.
14577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14578 # splitting by setting IFS to empty value.)
14579 IFS=" "" $as_nl"
14581 # Find who we are. Look in the path if we contain no directory separator.
14582 as_myself=
14583 case $0 in #((
14584 *[\\/]* ) as_myself=$0 ;;
14585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
14590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14591 done
14592 IFS=$as_save_IFS
14595 esac
14596 # We did not find ourselves, most probably we were run as `sh COMMAND'
14597 # in which case we are not to be found in the path.
14598 if test "x$as_myself" = x; then
14599 as_myself=$0
14601 if test ! -f "$as_myself"; then
14602 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14603 exit 1
14606 # Unset variables that we do not need and which cause bugs (e.g. in
14607 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14608 # suppresses any "Segmentation fault" message there. '((' could
14609 # trigger a bug in pdksh 5.2.14.
14610 for as_var in BASH_ENV ENV MAIL MAILPATH
14611 do eval test x\${$as_var+set} = xset \
14612 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14613 done
14614 PS1='$ '
14615 PS2='> '
14616 PS4='+ '
14618 # NLS nuisances.
14619 LC_ALL=C
14620 export LC_ALL
14621 LANGUAGE=C
14622 export LANGUAGE
14624 # CDPATH.
14625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14628 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14629 # ----------------------------------------
14630 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14631 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14632 # script with STATUS, using 1 if that was 0.
14633 as_fn_error ()
14635 as_status=$1; test $as_status -eq 0 && as_status=1
14636 if test "$4"; then
14637 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14638 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14640 $as_echo "$as_me: error: $2" >&2
14641 as_fn_exit $as_status
14642 } # as_fn_error
14645 # as_fn_set_status STATUS
14646 # -----------------------
14647 # Set $? to STATUS, without forking.
14648 as_fn_set_status ()
14650 return $1
14651 } # as_fn_set_status
14653 # as_fn_exit STATUS
14654 # -----------------
14655 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14656 as_fn_exit ()
14658 set +e
14659 as_fn_set_status $1
14660 exit $1
14661 } # as_fn_exit
14663 # as_fn_unset VAR
14664 # ---------------
14665 # Portably unset VAR.
14666 as_fn_unset ()
14668 { eval $1=; unset $1;}
14670 as_unset=as_fn_unset
14671 # as_fn_append VAR VALUE
14672 # ----------------------
14673 # Append the text in VALUE to the end of the definition contained in VAR. Take
14674 # advantage of any shell optimizations that allow amortized linear growth over
14675 # repeated appends, instead of the typical quadratic growth present in naive
14676 # implementations.
14677 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14678 eval 'as_fn_append ()
14680 eval $1+=\$2
14682 else
14683 as_fn_append ()
14685 eval $1=\$$1\$2
14687 fi # as_fn_append
14689 # as_fn_arith ARG...
14690 # ------------------
14691 # Perform arithmetic evaluation on the ARGs, and store the result in the
14692 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14693 # must be portable across $(()) and expr.
14694 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14695 eval 'as_fn_arith ()
14697 as_val=$(( $* ))
14699 else
14700 as_fn_arith ()
14702 as_val=`expr "$@" || test $? -eq 1`
14704 fi # as_fn_arith
14707 if expr a : '\(a\)' >/dev/null 2>&1 &&
14708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14709 as_expr=expr
14710 else
14711 as_expr=false
14714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14715 as_basename=basename
14716 else
14717 as_basename=false
14720 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14721 as_dirname=dirname
14722 else
14723 as_dirname=false
14726 as_me=`$as_basename -- "$0" ||
14727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14728 X"$0" : 'X\(//\)$' \| \
14729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14730 $as_echo X/"$0" |
14731 sed '/^.*\/\([^/][^/]*\)\/*$/{
14732 s//\1/
14735 /^X\/\(\/\/\)$/{
14736 s//\1/
14739 /^X\/\(\/\).*/{
14740 s//\1/
14743 s/.*/./; q'`
14745 # Avoid depending upon Character Ranges.
14746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14749 as_cr_digits='0123456789'
14750 as_cr_alnum=$as_cr_Letters$as_cr_digits
14752 ECHO_C= ECHO_N= ECHO_T=
14753 case `echo -n x` in #(((((
14754 -n*)
14755 case `echo 'xy\c'` in
14756 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14757 xy) ECHO_C='\c';;
14758 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14759 ECHO_T=' ';;
14760 esac;;
14762 ECHO_N='-n';;
14763 esac
14765 rm -f conf$$ conf$$.exe conf$$.file
14766 if test -d conf$$.dir; then
14767 rm -f conf$$.dir/conf$$.file
14768 else
14769 rm -f conf$$.dir
14770 mkdir conf$$.dir 2>/dev/null
14772 if (echo >conf$$.file) 2>/dev/null; then
14773 if ln -s conf$$.file conf$$ 2>/dev/null; then
14774 as_ln_s='ln -s'
14775 # ... but there are two gotchas:
14776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14778 # In both cases, we have to default to `cp -p'.
14779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14780 as_ln_s='cp -p'
14781 elif ln conf$$.file conf$$ 2>/dev/null; then
14782 as_ln_s=ln
14783 else
14784 as_ln_s='cp -p'
14786 else
14787 as_ln_s='cp -p'
14789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14790 rmdir conf$$.dir 2>/dev/null
14793 # as_fn_mkdir_p
14794 # -------------
14795 # Create "$as_dir" as a directory, including parents if necessary.
14796 as_fn_mkdir_p ()
14799 case $as_dir in #(
14800 -*) as_dir=./$as_dir;;
14801 esac
14802 test -d "$as_dir" || eval $as_mkdir_p || {
14803 as_dirs=
14804 while :; do
14805 case $as_dir in #(
14806 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14807 *) as_qdir=$as_dir;;
14808 esac
14809 as_dirs="'$as_qdir' $as_dirs"
14810 as_dir=`$as_dirname -- "$as_dir" ||
14811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14812 X"$as_dir" : 'X\(//\)[^/]' \| \
14813 X"$as_dir" : 'X\(//\)$' \| \
14814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14815 $as_echo X"$as_dir" |
14816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14817 s//\1/
14820 /^X\(\/\/\)[^/].*/{
14821 s//\1/
14824 /^X\(\/\/\)$/{
14825 s//\1/
14828 /^X\(\/\).*/{
14829 s//\1/
14832 s/.*/./; q'`
14833 test -d "$as_dir" && break
14834 done
14835 test -z "$as_dirs" || eval "mkdir $as_dirs"
14836 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14839 } # as_fn_mkdir_p
14840 if mkdir -p . 2>/dev/null; then
14841 as_mkdir_p='mkdir -p "$as_dir"'
14842 else
14843 test -d ./-p && rmdir ./-p
14844 as_mkdir_p=false
14847 if test -x / >/dev/null 2>&1; then
14848 as_test_x='test -x'
14849 else
14850 if ls -dL / >/dev/null 2>&1; then
14851 as_ls_L_option=L
14852 else
14853 as_ls_L_option=
14855 as_test_x='
14856 eval sh -c '\''
14857 if test -d "$1"; then
14858 test -d "$1/.";
14859 else
14860 case $1 in #(
14861 -*)set "./$1";;
14862 esac;
14863 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14864 ???[sx]*):;;*)false;;esac;fi
14865 '\'' sh
14868 as_executable_p=$as_test_x
14870 # Sed expression to map a string onto a valid CPP name.
14871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14873 # Sed expression to map a string onto a valid variable name.
14874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14877 exec 6>&1
14878 ## ----------------------------------- ##
14879 ## Main body of $CONFIG_STATUS script. ##
14880 ## ----------------------------------- ##
14881 _ASEOF
14882 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14885 # Save the log message, to keep $0 and so on meaningful, and to
14886 # report actual input values of CONFIG_FILES etc. instead of their
14887 # values after options handling.
14888 ac_log="
14889 This file was extended by $as_me, which was
14890 generated by GNU Autoconf 2.68. Invocation command line was
14892 CONFIG_FILES = $CONFIG_FILES
14893 CONFIG_HEADERS = $CONFIG_HEADERS
14894 CONFIG_LINKS = $CONFIG_LINKS
14895 CONFIG_COMMANDS = $CONFIG_COMMANDS
14896 $ $0 $@
14898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14901 _ACEOF
14903 case $ac_config_files in *"
14904 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14905 esac
14907 case $ac_config_headers in *"
14908 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14909 esac
14912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913 # Files that config.status was made for.
14914 config_files="$ac_config_files"
14915 config_headers="$ac_config_headers"
14916 config_commands="$ac_config_commands"
14918 _ACEOF
14920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14921 ac_cs_usage="\
14922 \`$as_me' instantiates files and other configuration actions
14923 from templates according to the current configuration. Unless the files
14924 and actions are specified as TAGs, all are instantiated by default.
14926 Usage: $0 [OPTION]... [TAG]...
14928 -h, --help print this help, then exit
14929 -V, --version print version number and configuration settings, then exit
14930 --config print configuration, then exit
14931 -q, --quiet, --silent
14932 do not print progress messages
14933 -d, --debug don't remove temporary files
14934 --recheck update $as_me by reconfiguring in the same conditions
14935 --file=FILE[:TEMPLATE]
14936 instantiate the configuration file FILE
14937 --header=FILE[:TEMPLATE]
14938 instantiate the configuration header FILE
14940 Configuration files:
14941 $config_files
14943 Configuration headers:
14944 $config_headers
14946 Configuration commands:
14947 $config_commands
14949 Report bugs to the package provider."
14951 _ACEOF
14952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14954 ac_cs_version="\\
14955 config.status
14956 configured by $0, generated by GNU Autoconf 2.68,
14957 with options \\"\$ac_cs_config\\"
14959 Copyright (C) 2010 Free Software Foundation, Inc.
14960 This config.status script is free software; the Free Software Foundation
14961 gives unlimited permission to copy, distribute and modify it."
14963 ac_pwd='$ac_pwd'
14964 srcdir='$srcdir'
14965 test -n "\$AWK" || AWK=awk
14966 _ACEOF
14968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969 # The default lists apply if the user does not specify any file.
14970 ac_need_defaults=:
14971 while test $# != 0
14973 case $1 in
14974 --*=?*)
14975 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14976 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14977 ac_shift=:
14979 --*=)
14980 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14981 ac_optarg=
14982 ac_shift=:
14985 ac_option=$1
14986 ac_optarg=$2
14987 ac_shift=shift
14989 esac
14991 case $ac_option in
14992 # Handling of the options.
14993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14994 ac_cs_recheck=: ;;
14995 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14996 $as_echo "$ac_cs_version"; exit ;;
14997 --config | --confi | --conf | --con | --co | --c )
14998 $as_echo "$ac_cs_config"; exit ;;
14999 --debug | --debu | --deb | --de | --d | -d )
15000 debug=: ;;
15001 --file | --fil | --fi | --f )
15002 $ac_shift
15003 case $ac_optarg in
15004 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15005 '') as_fn_error $? "missing file argument" ;;
15006 esac
15007 as_fn_append CONFIG_FILES " '$ac_optarg'"
15008 ac_need_defaults=false;;
15009 --header | --heade | --head | --hea )
15010 $ac_shift
15011 case $ac_optarg in
15012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15013 esac
15014 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15015 ac_need_defaults=false;;
15016 --he | --h)
15017 # Conflict between --help and --header
15018 as_fn_error $? "ambiguous option: \`$1'
15019 Try \`$0 --help' for more information.";;
15020 --help | --hel | -h )
15021 $as_echo "$ac_cs_usage"; exit ;;
15022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15023 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15024 ac_cs_silent=: ;;
15026 # This is an error.
15027 -*) as_fn_error $? "unrecognized option: \`$1'
15028 Try \`$0 --help' for more information." ;;
15030 *) as_fn_append ac_config_targets " $1"
15031 ac_need_defaults=false ;;
15033 esac
15034 shift
15035 done
15037 ac_configure_extra_args=
15039 if $ac_cs_silent; then
15040 exec 6>/dev/null
15041 ac_configure_extra_args="$ac_configure_extra_args --silent"
15044 _ACEOF
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 if \$ac_cs_recheck; then
15047 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15048 shift
15049 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15050 CONFIG_SHELL='$SHELL'
15051 export CONFIG_SHELL
15052 exec "\$@"
15055 _ACEOF
15056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15057 exec 5>>config.log
15059 echo
15060 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15061 ## Running $as_me. ##
15062 _ASBOX
15063 $as_echo "$ac_log"
15064 } >&5
15066 _ACEOF
15067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15069 # INIT-COMMANDS
15072 aros_host_exe_suffix=${aros_host_exe_suffix}
15073 aros_tools_dir=${aros_tools_dir}
15074 aros_target_cpu=${aros_target_cpu}
15075 aros_target_arch=${aros_target_arch}
15076 aros_target_suffix=${aros_target_suffix}
15077 orig_target_nm=${orig_target_nm}
15078 orig_target_as=${orig_target_as}
15079 orig_target_ar=${orig_target_ar}
15080 orig_target_ranlib=${orig_target_ranlib}
15081 orig_target_objdump=${orig_target_objdump}
15082 orig_target_objcopy=${orig_target_objcopy}
15083 orig_target_strip=${orig_target_strip}
15084 aros_kernel_ld=${aros_kernel_ld}
15087 aros_tools_dir=${aros_tools_dir}
15090 _ACEOF
15092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15094 # Handling of arguments.
15095 for ac_config_target in $ac_config_targets
15097 case $ac_config_target in
15098 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15099 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15100 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15101 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15102 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15103 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15104 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15105 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15106 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15107 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15108 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15109 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15110 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15111 "${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" ;;
15112 "${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" ;;
15113 "${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" ;;
15114 "${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" ;;
15115 "${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" ;;
15116 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15117 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15118 "${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" ;;
15120 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15121 esac
15122 done
15125 # If the user did not use the arguments to specify the items to instantiate,
15126 # then the envvar interface is used. Set only those that are not.
15127 # We use the long form for the default assignment because of an extremely
15128 # bizarre bug on SunOS 4.1.3.
15129 if $ac_need_defaults; then
15130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15135 # Have a temporary directory for convenience. Make it in the build tree
15136 # simply because there is no reason against having it here, and in addition,
15137 # creating and moving files from /tmp can sometimes cause problems.
15138 # Hook for its removal unless debugging.
15139 # Note that there is a small window in which the directory will not be cleaned:
15140 # after its creation but before its name has been assigned to `$tmp'.
15141 $debug ||
15143 tmp= ac_tmp=
15144 trap 'exit_status=$?
15145 : "${ac_tmp:=$tmp}"
15146 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15148 trap 'as_fn_exit 1' 1 2 13 15
15150 # Create a (secure) tmp directory for tmp files.
15153 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15154 test -d "$tmp"
15155 } ||
15157 tmp=./conf$$-$RANDOM
15158 (umask 077 && mkdir "$tmp")
15159 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15160 ac_tmp=$tmp
15162 # Set up the scripts for CONFIG_FILES section.
15163 # No need to generate them if there are no CONFIG_FILES.
15164 # This happens for instance with `./config.status config.h'.
15165 if test -n "$CONFIG_FILES"; then
15168 ac_cr=`echo X | tr X '\015'`
15169 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15170 # But we know of no other shell where ac_cr would be empty at this
15171 # point, so we can use a bashism as a fallback.
15172 if test "x$ac_cr" = x; then
15173 eval ac_cr=\$\'\\r\'
15175 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15176 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15177 ac_cs_awk_cr='\\r'
15178 else
15179 ac_cs_awk_cr=$ac_cr
15182 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15183 _ACEOF
15187 echo "cat >conf$$subs.awk <<_ACEOF" &&
15188 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15189 echo "_ACEOF"
15190 } >conf$$subs.sh ||
15191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15192 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15193 ac_delim='%!_!# '
15194 for ac_last_try in false false false false false :; do
15195 . ./conf$$subs.sh ||
15196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15198 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15199 if test $ac_delim_n = $ac_delim_num; then
15200 break
15201 elif $ac_last_try; then
15202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15203 else
15204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15206 done
15207 rm -f conf$$subs.sh
15209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15210 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15211 _ACEOF
15212 sed -n '
15214 s/^/S["/; s/!.*/"]=/
15217 s/^[^!]*!//
15218 :repl
15219 t repl
15220 s/'"$ac_delim"'$//
15221 t delim
15224 s/\(.\{148\}\)..*/\1/
15225 t more1
15226 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15229 b repl
15230 :more1
15231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15234 s/.\{148\}//
15235 t nl
15236 :delim
15238 s/\(.\{148\}\)..*/\1/
15239 t more2
15240 s/["\\]/\\&/g; s/^/"/; s/$/"/
15243 :more2
15244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15247 s/.\{148\}//
15248 t delim
15249 ' <conf$$subs.awk | sed '
15250 /^[^""]/{
15252 s/\n//
15254 ' >>$CONFIG_STATUS || ac_write_fail=1
15255 rm -f conf$$subs.awk
15256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257 _ACAWK
15258 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15259 for (key in S) S_is_set[key] = 1
15260 FS = "\a"
15264 line = $ 0
15265 nfields = split(line, field, "@")
15266 substed = 0
15267 len = length(field[1])
15268 for (i = 2; i < nfields; i++) {
15269 key = field[i]
15270 keylen = length(key)
15271 if (S_is_set[key]) {
15272 value = S[key]
15273 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15274 len += length(value) + length(field[++i])
15275 substed = 1
15276 } else
15277 len += 1 + keylen
15280 print line
15283 _ACAWK
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15287 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15288 else
15290 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15291 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15292 _ACEOF
15294 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15295 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15296 # trailing colons and then remove the whole line if VPATH becomes empty
15297 # (actually we leave an empty line to preserve line numbers).
15298 if test "x$srcdir" = x.; then
15299 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15301 s///
15302 s/^/:/
15303 s/[ ]*$/:/
15304 s/:\$(srcdir):/:/g
15305 s/:\${srcdir}:/:/g
15306 s/:@srcdir@:/:/g
15307 s/^:*//
15308 s/:*$//
15310 s/\(=[ ]*\).*/\1/
15312 s/\n//
15313 s/^[^=]*=[ ]*$//
15317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15318 fi # test -n "$CONFIG_FILES"
15320 # Set up the scripts for CONFIG_HEADERS section.
15321 # No need to generate them if there are no CONFIG_HEADERS.
15322 # This happens for instance with `./config.status Makefile'.
15323 if test -n "$CONFIG_HEADERS"; then
15324 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15325 BEGIN {
15326 _ACEOF
15328 # Transform confdefs.h into an awk script `defines.awk', embedded as
15329 # here-document in config.status, that substitutes the proper values into
15330 # config.h.in to produce config.h.
15332 # Create a delimiter string that does not exist in confdefs.h, to ease
15333 # handling of long lines.
15334 ac_delim='%!_!# '
15335 for ac_last_try in false false :; do
15336 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15337 if test -z "$ac_tt"; then
15338 break
15339 elif $ac_last_try; then
15340 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15341 else
15342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15344 done
15346 # For the awk script, D is an array of macro values keyed by name,
15347 # likewise P contains macro parameters if any. Preserve backslash
15348 # newline sequences.
15350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15351 sed -n '
15352 s/.\{148\}/&'"$ac_delim"'/g
15353 t rset
15354 :rset
15355 s/^[ ]*#[ ]*define[ ][ ]*/ /
15356 t def
15358 :def
15359 s/\\$//
15360 t bsnl
15361 s/["\\]/\\&/g
15362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15363 D["\1"]=" \3"/p
15364 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15366 :bsnl
15367 s/["\\]/\\&/g
15368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15369 D["\1"]=" \3\\\\\\n"\\/p
15370 t cont
15371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15372 t cont
15374 :cont
15376 s/.\{148\}/&'"$ac_delim"'/g
15377 t clear
15378 :clear
15379 s/\\$//
15380 t bsnlc
15381 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15383 :bsnlc
15384 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15385 b cont
15386 ' <confdefs.h | sed '
15387 s/'"$ac_delim"'/"\\\
15388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 for (key in D) D_is_set[key] = 1
15392 FS = "\a"
15394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15395 line = \$ 0
15396 split(line, arg, " ")
15397 if (arg[1] == "#") {
15398 defundef = arg[2]
15399 mac1 = arg[3]
15400 } else {
15401 defundef = substr(arg[1], 2)
15402 mac1 = arg[2]
15404 split(mac1, mac2, "(") #)
15405 macro = mac2[1]
15406 prefix = substr(line, 1, index(line, defundef) - 1)
15407 if (D_is_set[macro]) {
15408 # Preserve the white space surrounding the "#".
15409 print prefix "define", macro P[macro] D[macro]
15410 next
15411 } else {
15412 # Replace #undef with comments. This is necessary, for example,
15413 # in the case of _POSIX_SOURCE, which is predefined and required
15414 # on some systems where configure will not decide to define it.
15415 if (defundef == "undef") {
15416 print "/*", prefix defundef, macro, "*/"
15417 next
15421 { print }
15422 _ACAWK
15423 _ACEOF
15424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15425 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15426 fi # test -n "$CONFIG_HEADERS"
15429 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15430 shift
15431 for ac_tag
15433 case $ac_tag in
15434 :[FHLC]) ac_mode=$ac_tag; continue;;
15435 esac
15436 case $ac_mode$ac_tag in
15437 :[FHL]*:*);;
15438 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15439 :[FH]-) ac_tag=-:-;;
15440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15441 esac
15442 ac_save_IFS=$IFS
15443 IFS=:
15444 set x $ac_tag
15445 IFS=$ac_save_IFS
15446 shift
15447 ac_file=$1
15448 shift
15450 case $ac_mode in
15451 :L) ac_source=$1;;
15452 :[FH])
15453 ac_file_inputs=
15454 for ac_f
15456 case $ac_f in
15457 -) ac_f="$ac_tmp/stdin";;
15458 *) # Look for the file first in the build tree, then in the source tree
15459 # (if the path is not absolute). The absolute path cannot be DOS-style,
15460 # because $ac_f cannot contain `:'.
15461 test -f "$ac_f" ||
15462 case $ac_f in
15463 [\\/$]*) false;;
15464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15465 esac ||
15466 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15467 esac
15468 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15469 as_fn_append ac_file_inputs " '$ac_f'"
15470 done
15472 # Let's still pretend it is `configure' which instantiates (i.e., don't
15473 # use $as_me), people would be surprised to read:
15474 # /* config.h. Generated by config.status. */
15475 configure_input='Generated from '`
15476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15477 `' by configure.'
15478 if test x"$ac_file" != x-; then
15479 configure_input="$ac_file. $configure_input"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15481 $as_echo "$as_me: creating $ac_file" >&6;}
15483 # Neutralize special characters interpreted by sed in replacement strings.
15484 case $configure_input in #(
15485 *\&* | *\|* | *\\* )
15486 ac_sed_conf_input=`$as_echo "$configure_input" |
15487 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15488 *) ac_sed_conf_input=$configure_input;;
15489 esac
15491 case $ac_tag in
15492 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15494 esac
15496 esac
15498 ac_dir=`$as_dirname -- "$ac_file" ||
15499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15500 X"$ac_file" : 'X\(//\)[^/]' \| \
15501 X"$ac_file" : 'X\(//\)$' \| \
15502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15503 $as_echo X"$ac_file" |
15504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15505 s//\1/
15508 /^X\(\/\/\)[^/].*/{
15509 s//\1/
15512 /^X\(\/\/\)$/{
15513 s//\1/
15516 /^X\(\/\).*/{
15517 s//\1/
15520 s/.*/./; q'`
15521 as_dir="$ac_dir"; as_fn_mkdir_p
15522 ac_builddir=.
15524 case "$ac_dir" in
15525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15528 # A ".." for each directory in $ac_dir_suffix.
15529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15530 case $ac_top_builddir_sub in
15531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15533 esac ;;
15534 esac
15535 ac_abs_top_builddir=$ac_pwd
15536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15537 # for backward compatibility:
15538 ac_top_builddir=$ac_top_build_prefix
15540 case $srcdir in
15541 .) # We are building in place.
15542 ac_srcdir=.
15543 ac_top_srcdir=$ac_top_builddir_sub
15544 ac_abs_top_srcdir=$ac_pwd ;;
15545 [\\/]* | ?:[\\/]* ) # Absolute name.
15546 ac_srcdir=$srcdir$ac_dir_suffix;
15547 ac_top_srcdir=$srcdir
15548 ac_abs_top_srcdir=$srcdir ;;
15549 *) # Relative name.
15550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15551 ac_top_srcdir=$ac_top_build_prefix$srcdir
15552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15553 esac
15554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15557 case $ac_mode in
15560 # CONFIG_FILE
15563 _ACEOF
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 # If the template does not know about datarootdir, expand it.
15567 # FIXME: This hack should be removed a few years after 2.60.
15568 ac_datarootdir_hack=; ac_datarootdir_seen=
15569 ac_sed_dataroot='
15570 /datarootdir/ {
15574 /@datadir@/p
15575 /@docdir@/p
15576 /@infodir@/p
15577 /@localedir@/p
15578 /@mandir@/p'
15579 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15580 *datarootdir*) ac_datarootdir_seen=yes;;
15581 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15583 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15584 _ACEOF
15585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15586 ac_datarootdir_hack='
15587 s&@datadir@&$datadir&g
15588 s&@docdir@&$docdir&g
15589 s&@infodir@&$infodir&g
15590 s&@localedir@&$localedir&g
15591 s&@mandir@&$mandir&g
15592 s&\\\${datarootdir}&$datarootdir&g' ;;
15593 esac
15594 _ACEOF
15596 # Neutralize VPATH when `$srcdir' = `.'.
15597 # Shell code in configure.ac might set extrasub.
15598 # FIXME: do we really want to maintain this feature?
15599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15600 ac_sed_extra="$ac_vpsub
15601 $extrasub
15602 _ACEOF
15603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15606 s|@configure_input@|$ac_sed_conf_input|;t t
15607 s&@top_builddir@&$ac_top_builddir_sub&;t t
15608 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15609 s&@srcdir@&$ac_srcdir&;t t
15610 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15611 s&@top_srcdir@&$ac_top_srcdir&;t t
15612 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15613 s&@builddir@&$ac_builddir&;t t
15614 s&@abs_builddir@&$ac_abs_builddir&;t t
15615 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15616 $ac_datarootdir_hack
15618 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15619 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15621 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15622 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15624 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15626 which seems to be undefined. Please make sure it is defined" >&5
15627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15628 which seems to be undefined. Please make sure it is defined" >&2;}
15630 rm -f "$ac_tmp/stdin"
15631 case $ac_file in
15632 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15633 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15634 esac \
15635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15639 # CONFIG_HEADER
15641 if test x"$ac_file" != x-; then
15643 $as_echo "/* $configure_input */" \
15644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15645 } >"$ac_tmp/config.h" \
15646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15647 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15650 else
15651 rm -f "$ac_file"
15652 mv "$ac_tmp/config.h" "$ac_file" \
15653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15655 else
15656 $as_echo "/* $configure_input */" \
15657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15658 || as_fn_error $? "could not create -" "$LINENO" 5
15662 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15663 $as_echo "$as_me: executing $ac_file commands" >&6;}
15665 esac
15668 case $ac_file$ac_mode in
15669 "compiler_executable":C)
15670 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15671 mkdir -p $prefix
15672 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15673 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15675 echo ${prefix2}
15676 echo ${prefix3}
15677 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15679 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15680 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15681 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15682 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15683 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15684 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15685 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15687 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15689 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15691 esac
15692 done # for ac_tag
15695 as_fn_exit 0
15696 _ACEOF
15697 ac_clean_files=$ac_clean_files_save
15699 test $ac_write_fail = 0 ||
15700 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15703 # configure is writing to config.log, and then calls config.status.
15704 # config.status does its own redirection, appending to config.log.
15705 # Unfortunately, on DOS this fails, as config.log is still kept open
15706 # by configure, so config.status won't be able to write to it; its
15707 # output is simply discarded. So we exec the FD to /dev/null,
15708 # effectively closing config.log, so it can be properly (re)opened and
15709 # appended to by config.status. When coming back to configure, we
15710 # need to make the FD available again.
15711 if test "$no_create" != yes; then
15712 ac_cs_success=:
15713 ac_config_status_args=
15714 test "$silent" = yes &&
15715 ac_config_status_args="$ac_config_status_args --quiet"
15716 exec 5>/dev/null
15717 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15718 exec 5>>config.log
15719 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15720 # would make configure fail if this is the last instruction.
15721 $ac_cs_success || as_fn_exit 1
15723 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15725 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15730 #XXX compatability...
15731 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15733 if test -n "$aros_shared_cflags" ; then
15734 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15735 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg