Added support for /M arguments.
[AROS.git] / configure
blobca898edcd79dcb62310f459391a58d9481392aea
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 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_palm_debug_hack
623 aros_serial_debug
624 aros_host_sdl_libs
625 aros_host_sdl_cflags
626 aros_host_x11_libdirs
627 aros_host_x11_includes
628 DO_VIDMODE_SUPPORT
629 DO_XSHM_SUPPORT
630 aros_default_wbdepth
631 aros_default_wbheight
632 aros_default_wbwidth
633 oss_library_target
634 pci_hidd_target
635 sdl_hidd_target
636 x11_hidd_target
637 aros_cflags_format_security
638 aros_cflags_strict_overflow
639 aros_cflags_enum_compare
640 aros_cflags_array_bounds
641 aros_cflags_unused_but_set_variable
642 crosstools_cxx_target
643 crosstools_target
644 aros_target_strip_flags
645 aros_target_genmap
646 aros_debug_ldflags
647 aros_debug_aflags
648 aros_debug_cflags
649 aros_target_cflags
650 aros_kernel_ldflags
651 aros_kernel_objcflags
652 aros_kernel_includes
653 aros_kernel_cflags
654 aros_shared_ldflags
655 aros_shared_aflags
656 aros_shared_cflags
657 aros_config_ldflags
658 aros_config_aflags
659 aros_config_cflags
660 aros_arch_libs
661 aros_compiler_libs
662 aros_object_format
663 aros_shared_ld
664 aros_shared_default
665 aros_target_nm
666 aros_target_strip
667 aros_target_objcopy
668 aros_target_objdump
669 aros_target_cc_path
670 aros_target_cc_includes
671 aros_target_ld
672 aros_target_as
673 aros_target_cpp
674 aros_target_cxx
675 aros_target_cc
676 aros_plain_ar
677 aros_plain_nm
678 aros_target_ranlib
679 aros_target_ar
680 aros_target_suffix
681 aros_target_variant
682 aros_target_cpu
683 aros_target_family
684 aros_target_arch
685 aros_target_bootloader
686 aros_target_iconset
687 aros_target_guitheme
688 aros_tools_dir
689 aros_host_lib_suffix
690 aros_host_exe_suffix
691 aros_host_mkargs
692 aros_host_mkdep
693 aros_host_debug
694 aros_host_ldflags
695 gnu89_inline
696 aros_host_cxxflags
697 aros_host_cflags
698 aros_host_make
699 aros_host_cxx
700 aros_host_cc
701 aros_host_cpp
702 aros_host_cpu
703 aros_host_arch
704 aros_cc_pre
705 aros_amigaos_compliance
706 AROS_PORTSSRCDIR
707 AROS_CROSSTOOLSDIR
708 SRCDIR
709 AROS_BUILDDIR_UNIX
710 AROS_BUILDDIR
711 aros_target_toolchain
712 aros_flavour_uc
713 aros_flavour
714 aros_cpu
715 aros_arch
716 SDL_LIBS
717 SDL_CFLAGS
718 SDL_CONFIG
719 XMKMF
720 aros_cflags_iquote_end
721 aros_cflags_iquote
722 kernel_cflags_iquote_end
723 kernel_cflags_iquote
724 host_cflags_iquote_end
725 host_cflags_iquote
726 aros_target_nostdlib_ldflags
727 aros_target_detach_ldflags
728 aros_target_nix_ldflags
729 aros_target_nostartup_ldflags
730 aros_target_nostdinc_cflags
731 aros_kernel_rescomp
732 orig_target_objdump
733 orig_target_objcopy
734 orig_target_strip
735 orig_target_nm
736 orig_target_ranlib
737 orig_target_ar
738 orig_target_as
739 orig_target_ld
740 orig_target_cxx
741 orig_target_cc
742 orig_target_cpp
743 aros_kernel_objdump
744 aros_kernel_objcopy
745 aros_kernel_strip
746 aros_kernel_nm
747 aros_kernel_ranlib
748 aros_kernel_ar
749 aros_kernel_as
750 aros_kernel_ld
751 aros_kernel_cxx
752 aros_kernel_cc
753 aros_kernel_cpp
755 android_tool
756 CCACHE
757 DISTCC
758 LIBOBJS
759 EGREP
760 GREP
762 TEST
765 pkgpyexecdir
766 pyexecdir
767 pkgpythondir
768 pythondir
769 PYTHON_PLATFORM
770 PYTHON_EXEC_PREFIX
771 PYTHON_PREFIX
772 PYTHON_VERSION
773 PYTHON
774 PATCH
775 CHMOD
777 PPMTOILBM
778 PNGTOPNM
779 FLEX
780 BISON
783 UNIQ
784 SORT
785 TOUCH
786 MKDIR
787 ECHO
791 aros_host_strip
792 aros_host_ranlib
793 aros_host_ar
794 aros_host_automake
795 aros_host_autoheader
796 aros_host_autoconf
797 aros_host_aclocal
798 aros_host_ld
799 MMAKE
802 ac_ct_CXX
803 CXXFLAGS
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_build_type
862 enable_debug
863 enable_distcc
864 enable_ccache
865 with_gcc_version
866 with_optimization
867 with_paranoia
868 enable_target_variant
869 with_xcode
870 with_sdk_version
871 with_sdk
872 with_ndk
873 with_ndk_version
874 enable_amigaos_compliance
875 with_kernel_toolchain_prefix
876 with_elf_toolchain_prefix
877 with_aros_toolchain
878 enable_crosstools
879 with_aros_toolchain_install
880 with_cpu
881 with_fpu
882 with_float
883 with_aros_gcc
884 with_portssources
885 with_bootloader
886 with_iconset
887 with_theme
888 enable_includes
889 with_resolution
890 with_serial_debug
891 enable_palm_debug_hack
892 enable_nesting_supervisor
893 enable_mmu
894 enable_x11_hidd
895 with_x
896 enable_x11_shm
897 enable_x11_vidmode
898 enable_sdl_hidd
899 with_sdl_prefix
900 with_sdl_exec_prefix
901 enable_sdltest
902 enable_dbus
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
913 CXXFLAGS
916 XMKMF'
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
967 ac_prev=
968 ac_dashdash=
969 for ac_option
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
974 ac_prev=
975 continue
978 case $ac_option in
979 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *=) ac_optarg= ;;
981 *) ac_optarg=yes ;;
982 esac
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
988 ac_dashdash=yes ;;
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 bindir=$ac_optarg ;;
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1010 -datadir | --datadir | --datadi | --datad)
1011 ac_prev=datadir ;;
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1022 -disable-* | --disable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error $? "invalid feature name: $ac_useropt"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1031 "enable_$ac_useropt"
1032 "*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1048 -enable-* | --enable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=\$ac_optarg ;;
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
1071 exec_prefix=$ac_optarg ;;
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
1084 -host | --host | --hos | --ho)
1085 ac_prev=host_alias ;;
1086 -host=* | --host=* | --hos=* | --ho=*)
1087 host_alias=$ac_optarg ;;
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
1100 includedir=$ac_optarg ;;
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105 infodir=$ac_optarg ;;
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110 libdir=$ac_optarg ;;
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
1117 libexecdir=$ac_optarg ;;
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
1125 | --localstate | --localstat | --localsta | --localst | --locals)
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129 localstatedir=$ac_optarg ;;
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134 mandir=$ac_optarg ;;
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141 | --no-cr | --no-c | -n)
1142 no_create=yes ;;
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155 oldincludedir=$ac_optarg ;;
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160 prefix=$ac_optarg ;;
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167 program_prefix=$ac_optarg ;;
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174 program_suffix=$ac_optarg ;;
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
1191 program_transform_name=$ac_optarg ;;
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 ac_prev=sbindir ;;
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 | --sbi=* | --sb=*)
1211 sbindir=$ac_optarg ;;
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1216 | --sha | --sh)
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 | --sha=* | --sh=*)
1222 sharedstatedir=$ac_optarg ;;
1224 -site | --site | --sit)
1225 ac_prev=site ;;
1226 -site=* | --site=* | --sit=*)
1227 site=$ac_optarg ;;
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 ac_prev=srcdir ;;
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232 srcdir=$ac_optarg ;;
1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239 sysconfdir=$ac_optarg ;;
1241 -target | --target | --targe | --targ | --tar | --ta | --t)
1242 ac_prev=target_alias ;;
1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244 target_alias=$ac_optarg ;;
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 verbose=yes ;;
1249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
1252 -with-* | --with-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=\$ac_optarg ;;
1268 -without-* | --without-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information"
1306 *=*)
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 case $ac_envvar in #(
1310 '' | [0-9]* | *[!_$as_cr_alnum]* )
1311 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312 esac
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324 esac
1325 done
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 as_fn_error $? "missing argument to $ac_option"
1332 if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1334 no) ;;
1335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1340 # Check all directory arguments for consistency.
1341 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 done
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used" >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1411 /^X\(\/\/\)$/{
1412 s//\1/
1415 /^X\(\/\).*/{
1416 s//\1/
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1424 else
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1514 cat <<\_ACEOF
1516 X features:
1517 --x-includes=DIR X include files are in DIR
1518 --x-libraries=DIR X library files are in DIR
1520 System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1526 if test -n "$ac_init_help"; then
1528 cat <<\_ACEOF
1530 Optional Features:
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-build-type=TYPE
1535 Select the build type. Available types are:
1536 personal, nightly, snapshot, milestone, release. Do
1537 NOT use this option unless you know what you are
1538 doing! (default=personal)
1539 --enable-debug=list Enable different types of debug. Commas or
1540 whitespaces can be used to separate the items in the
1541 list. Available types of debug are: all, none,
1542 messages, stack, mungwall, modules, symbols. If no
1543 list is provided then "all" is assumed.
1544 (default=none)
1545 --enable-distcc Use distcc as a front end to the compiler
1546 (default=no).
1547 --enable-ccache Use ccache as a front end to the compiler
1548 (default=no).
1549 --enable-target-variant=NAME
1550 Enable a specific target variant(default=none)
1551 --enable-amigaos-compliance=VERSION
1552 Enforce userspace AmigaOS compliance to a specific
1553 KickStart version (default=none).
1554 --disable-crosstools Do not build cross-compiler toolchain
1555 --enable-includes=dir Alternative system include directory
1556 --enable-palm-debug-hack
1557 Enable palm debug output hack in palm native
1558 (default=no)
1559 --enable-nesting-supervisor
1560 Enable nesting supervisor support in unix
1561 (default=no)
1562 --disable-mmu Disable MMU support (default=enabled)
1563 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1564 --enable-x11-shm use X11 shared memory (default=auto)
1565 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1566 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1567 --disable-sdltest Do not try to compile and run a test SDL program
1568 --enable-dbus Enable DBUS support via dbus.library (default=no)
1570 Optional Packages:
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1573 --with-kernel-gcc-version=VERSION
1574 Use host gcc-VERSION for building AROS
1575 --with-gcc-version=VERSION
1576 Use host gcc-VERSION for building AROS
1577 --with-optimization=FLAGS
1578 Use optimization flags FLAGS (default=-O2).
1579 --with-paranoia=FLAGS CC flags to enable paranoia
1580 --with-xcode=PATH Specify XCode path for iOS targets
1581 (default=/Developer).
1582 --with-sdk-version=VERSION
1583 Use iOS SDK version VERSION (default=4.1).
1584 --with-sdk=PATH Specify Android SDK path
1585 (default=$default_android_sdk).
1586 --with-ndk=PATH Specify Android NDK path (default=none).
1587 --with-sdk-version=LEVEL
1588 Use Android SDK for API LEVEL (default=12).
1589 --with-ndk-version=LEVEL
1590 Use Android NDK for API LEVEL (default=9).
1591 --with-kernel-toolchain-prefix=...
1592 Specify crosscompile toolchain prefix for kernel
1593 objects
1594 --with-elf-toolchain-prefix=...
1595 Specify crosscompile toolchain prefix to wrap for
1596 AROS objects
1597 --with-aros-toolchain=PREFIX
1598 Specify prebuilt AROS toolchain
1599 --with-aros-toolchain-install=DIR
1600 Where to install or search for cross tools binaries
1601 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1602 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1603 --with-float=<spec> Specify floating point ABI
1604 (default=$gcc_default_float_abi).
1605 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1606 --with-portssources=DIR Where to download sourcecode for external ports
1607 --with-bootloader=NAME Use a specific bootloader
1608 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1609 --with-theme=NAME Use a specific GUI Theme
1610 --with-resolution=XRESxYRESxDEPTH
1611 Default resolution of the initial WorkbenchScreen
1612 --with-serial-debug Enable serial debug output in native (default=no)
1613 --with-x use the X Window System
1614 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1615 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1617 Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1625 CXX C++ compiler command
1626 CXXFLAGS C++ compiler flags
1627 CPP C preprocessor
1628 XMKMF Path to xmkmf, Makefile generator for X Window System
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.68
1699 Copyright (C) 2010 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703 exit
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_compile
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_c_try_cpp LINENO
1787 # ----------------------
1788 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_cpp ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_cpp conftest.$ac_ext"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } > conftest.i && {
1808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=1
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_cpp
1823 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 # the include files in INCLUDES and setting the cache variable VAR
1827 # accordingly.
1828 ac_fn_c_check_header_mongrel ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if eval \${$3+:} false; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 else
1841 # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1851 else
1852 ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1867 else
1868 ac_header_preproc=no
1870 rm -f conftest.err conftest.i conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So? What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876 yes:no: )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 no:yes:* )
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 esac
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 eval "$3=\$ac_header_compiler"
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_header_mongrel
1910 # ac_fn_c_try_run LINENO
1911 # ----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1913 # that executables *can* be run.
1914 ac_fn_c_try_run ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_link"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>&5
1925 ac_status=$?
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1928 { { case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_try") 2>&5
1935 ac_status=$?
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; }; }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: program exited with status $ac_status" >&5
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=$ac_status
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_run
1952 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1953 # -------------------------------------------------------
1954 # Tests whether HEADER exists and can be compiled using the include files in
1955 # INCLUDES, setting the cache variable VAR accordingly.
1956 ac_fn_c_check_header_compile ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 eval "$3=yes"
1971 else
1972 eval "$3=no"
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 } # ac_fn_c_check_header_compile
1983 # ac_fn_c_try_link LINENO
1984 # -----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded.
1986 ac_fn_c_try_link ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 rm -f conftest.$ac_objext conftest$ac_exeext
1990 if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>conftest.err
1998 ac_status=$?
1999 if test -s conftest.err; then
2000 grep -v '^ *+' conftest.err >conftest.er1
2001 cat conftest.er1 >&5
2002 mv -f conftest.er1 conftest.err
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; } && {
2006 test -z "$ac_c_werror_flag" ||
2007 test ! -s conftest.err
2008 } && test -s conftest$ac_exeext && {
2009 test "$cross_compiling" = yes ||
2010 $as_test_x conftest$ac_exeext
2011 }; then :
2012 ac_retval=0
2013 else
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=1
2019 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021 # interfere with the next link command; also delete a directory that is
2022 # left behind by Apple's compiler. We do this before executing the actions.
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_c_try_link
2029 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2030 # ----------------------------------------------------
2031 # Tries to find if the field MEMBER exists in type AGGR, after including
2032 # INCLUDES, setting cache variable VAR accordingly.
2033 ac_fn_c_check_member ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2037 $as_echo_n "checking for $2.$3... " >&6; }
2038 if eval \${$4+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 main ()
2047 static $2 ac_aggr;
2048 if (ac_aggr.$3)
2049 return 0;
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 eval "$4=yes"
2056 else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 static $2 ac_aggr;
2064 if (sizeof ac_aggr.$3)
2065 return 0;
2067 return 0;
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$4=yes"
2072 else
2073 eval "$4=no"
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 eval ac_res=\$$4
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 } # ac_fn_c_check_member
2086 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2087 # ---------------------------------------------
2088 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2089 # accordingly.
2090 ac_fn_c_check_decl ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 as_decl_name=`echo $2|sed 's/ *(.*//'`
2094 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2096 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2097 if eval \${$3+:} false; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 #ifndef $as_decl_name
2107 #ifdef __cplusplus
2108 (void) $as_decl_use;
2109 #else
2110 (void) $as_decl_name;
2111 #endif
2112 #endif
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 eval "$3=yes"
2120 else
2121 eval "$3=no"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_decl
2132 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2133 # -------------------------------------------
2134 # Tests whether TYPE exists after having included INCLUDES, setting cache
2135 # variable VAR accordingly.
2136 ac_fn_c_check_type ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 eval "$3=no"
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2149 main ()
2151 if (sizeof ($2))
2152 return 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 if (sizeof (($2)))
2165 return 0;
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2172 else
2173 eval "$3=yes"
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_c_check_type
2186 # ac_fn_c_check_func LINENO FUNC VAR
2187 # ----------------------------------
2188 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2189 ac_fn_c_check_func ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2201 #define $2 innocuous_$2
2203 /* System header to define __stub macros and hopefully few prototypes,
2204 which can conflict with char $2 (); below.
2205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2206 <limits.h> exists even on freestanding compilers. */
2208 #ifdef __STDC__
2209 # include <limits.h>
2210 #else
2211 # include <assert.h>
2212 #endif
2214 #undef $2
2216 /* Override any GCC internal prototype to avoid an error.
2217 Use char because int might match the return type of a GCC
2218 builtin and then its argument prototype would still apply. */
2219 #ifdef __cplusplus
2220 extern "C"
2221 #endif
2222 char $2 ();
2223 /* The GNU C library defines this for functions which it implements
2224 to always fail with ENOSYS. Some functions are actually named
2225 something starting with __ and the normal name is an alias. */
2226 #if defined __stub_$2 || defined __stub___$2
2227 choke me
2228 #endif
2231 main ()
2233 return $2 ();
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_link "$LINENO"; then :
2239 eval "$3=yes"
2240 else
2241 eval "$3=no"
2243 rm -f core conftest.err conftest.$ac_objext \
2244 conftest$ac_exeext conftest.$ac_ext
2246 eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_func
2252 cat >config.log <<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2256 It was created by $as_me, which was
2257 generated by GNU Autoconf 2.68. Invocation command line was
2259 $ $0 $@
2261 _ACEOF
2262 exec 5>>config.log
2264 cat <<_ASUNAME
2265 ## --------- ##
2266 ## Platform. ##
2267 ## --------- ##
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2286 _ASUNAME
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 $as_echo "PATH: $as_dir"
2294 done
2295 IFS=$as_save_IFS
2297 } >&5
2299 cat >&5 <<_ACEOF
2302 ## ----------- ##
2303 ## Core tests. ##
2304 ## ----------- ##
2306 _ACEOF
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_configure_args=
2315 ac_configure_args0=
2316 ac_configure_args1=
2317 ac_must_keep_next=false
2318 for ac_pass in 1 2
2320 for ac_arg
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 esac
2330 case $ac_pass in
2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2333 as_fn_append ac_configure_args1 " '$ac_arg'"
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2349 as_fn_append ac_configure_args " '$ac_arg'"
2351 esac
2352 done
2353 done
2354 { ac_configure_args0=; unset ac_configure_args0;}
2355 { ac_configure_args1=; unset ac_configure_args1;}
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2365 echo
2367 $as_echo "## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##"
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398 esac |
2399 sort
2401 echo
2403 $as_echo "## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##"
2406 echo
2407 for ac_var in $ac_subst_vars
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2417 if test -n "$ac_subst_files"; then
2418 $as_echo "## ------------------- ##
2419 ## File substitutions. ##
2420 ## ------------------- ##"
2421 echo
2422 for ac_var in $ac_subst_files
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2433 if test -s confdefs.h; then
2434 $as_echo "## ----------- ##
2435 ## confdefs.h. ##
2436 ## ----------- ##"
2437 echo
2438 cat confdefs.h
2439 echo
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 # We do not want a PATH search for config.site.
2492 case $CONFIG_SITE in #((
2493 -*) ac_site_file1=./$CONFIG_SITE;;
2494 */*) ac_site_file1=$CONFIG_SITE;;
2495 *) ac_site_file1=./$CONFIG_SITE;;
2496 esac
2497 elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2500 else
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506 test "x$ac_site_file" = xNONE && continue
2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2511 . "$ac_site_file" \
2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error $? "failed to load site script $ac_site_file
2515 See \`config.log' for more details" "$LINENO" 5; }
2517 done
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special files
2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 $as_echo "$as_me: loading cache $cache_file" >&6;}
2525 case $cache_file in
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
2528 esac
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 >$cache_file
2536 as_fn_append ac_header_list " stdlib.h"
2537 as_fn_append ac_header_list " unistd.h"
2538 as_fn_append ac_header_list " sys/param.h"
2539 # Check that the precious variables saved in the cache have kept the same
2540 # value.
2541 ac_cache_corrupted=false
2542 for ac_var in $ac_precious_vars; do
2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544 eval ac_new_set=\$ac_env_${ac_var}_set
2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546 eval ac_new_val=\$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2548 set,)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,set)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,);;
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w=`echo x $ac_old_val`
2561 ac_new_val_w=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2588 done
2589 if $ac_cache_corrupted; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596 ## -------------------- ##
2597 ## Main body of script. ##
2598 ## -------------------- ##
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 ac_aux_dir=
2609 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2610 if test -f "$ac_dir/install-sh"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/install-sh -c"
2613 break
2614 elif test -f "$ac_dir/install.sh"; then
2615 ac_aux_dir=$ac_dir
2616 ac_install_sh="$ac_aux_dir/install.sh -c"
2617 break
2618 elif test -f "$ac_dir/shtool"; then
2619 ac_aux_dir=$ac_dir
2620 ac_install_sh="$ac_aux_dir/shtool install -c"
2621 break
2623 done
2624 if test -z "$ac_aux_dir"; then
2625 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2628 # These three variables are undocumented and unsupported,
2629 # and are intended to be withdrawn in a future Autoconf release.
2630 # They can cause serious problems if a builder's source tree is in a directory
2631 # whose full name contains unusual characters.
2632 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2633 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2634 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2638 # Check what host we are running on.
2639 # If a target is not suggested, we use this one.
2640 # Note that what we call a target, Autoconf calls a host.
2641 # Make sure we can run config.sub.
2642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2643 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2646 $as_echo_n "checking build system type... " >&6; }
2647 if ${ac_cv_build+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 ac_build_alias=$build_alias
2651 test "x$ac_build_alias" = x &&
2652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653 test "x$ac_build_alias" = x &&
2654 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2655 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2660 $as_echo "$ac_cv_build" >&6; }
2661 case $ac_cv_build in
2662 *-*-*) ;;
2663 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2664 esac
2665 build=$ac_cv_build
2666 ac_save_IFS=$IFS; IFS='-'
2667 set x $ac_cv_build
2668 shift
2669 build_cpu=$1
2670 build_vendor=$2
2671 shift; shift
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2674 build_os=$*
2675 IFS=$ac_save_IFS
2676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2680 $as_echo_n "checking host system type... " >&6; }
2681 if ${ac_cv_host+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test "x$host_alias" = x; then
2685 ac_cv_host=$ac_cv_build
2686 else
2687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2693 $as_echo "$ac_cv_host" >&6; }
2694 case $ac_cv_host in
2695 *-*-*) ;;
2696 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2697 esac
2698 host=$ac_cv_host
2699 ac_save_IFS=$IFS; IFS='-'
2700 set x $ac_cv_host
2701 shift
2702 host_cpu=$1
2703 host_vendor=$2
2704 shift; shift
2705 # Remember, the first character of IFS is used to create $*,
2706 # except with old shells:
2707 host_os=$*
2708 IFS=$ac_save_IFS
2709 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2713 # The AROS target is slightly different to the normal GNU style
2714 # format. We don't have the middle part, and we reverse the order
2715 # of the $(CPU) and $(OS) bits.
2717 # Don't strip the version of the target yet, it might be
2718 # useful on some systems.
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2721 $as_echo_n "checking for AROS style target... " >&6; }
2723 if test "$target" = "NONE" ; then
2724 target=$host_os-$host_cpu
2725 else
2726 if test "$target" = "" ; then
2727 target=$host_os-$host_cpu
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2731 $as_echo "$target" >&6; }
2733 if test "$host_os" = "mingw32" ; then
2734 PWDCMD="pwd -W"
2737 # Don't know where else to put this...
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2739 $as_echo_n "checking building AROS in... " >&6; }
2740 AROS_BUILDDIR=`${PWDCMD-pwd}`
2741 AROS_BUILDDIR_UNIX=${PWD}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2743 $as_echo "$AROS_BUILDDIR" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2746 $as_echo_n "checking AROS source in... " >&6; }
2747 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748 SRCDIR=${srcpwd}
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2750 $as_echo "$SRCDIR" >&6; }
2752 # Parse the target field into something useful.
2754 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2755 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2758 # Some debug output, to be removed again.
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2760 $as_echo_n "checking for target system (debug output)... " >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2762 $as_echo "$target_os" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2764 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2766 $as_echo "$target_cpu" >&6; }
2768 aros_default_wbwidth=800
2769 aros_default_wbheight=600
2770 aros_default_wbdepth=4
2773 # The first step is to find the host binaries.
2774 # Check for a compiler.
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if ${ac_cv_prog_CC+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2802 done
2803 done
2804 IFS=$as_save_IFS
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2819 if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822 set dummy gcc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CC="gcc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2842 done
2843 done
2844 IFS=$as_save_IFS
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 $as_echo "$ac_ct_CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CC=$ac_ct_CC
2868 else
2869 CC="$ac_cv_prog_CC"
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="${ac_tool_prefix}cc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2913 if test -z "$CC"; then
2914 # Extract the first word of "cc", so it can be a program name with args.
2915 set dummy cc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 ac_prog_rejected=no
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933 ac_prog_rejected=yes
2934 continue
2936 ac_cv_prog_CC="cc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2944 if test $ac_prog_rejected = yes; then
2945 # We found a bogon in the path, so make sure we never use it.
2946 set dummy $ac_cv_prog_CC
2947 shift
2948 if test $# != 0; then
2949 # We chose a different compiler from the bogus one.
2950 # However, it has the same basename, so the bogon will be chosen
2951 # first if we set CC to just the basename; use the full file name.
2952 shift
2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 for ac_prog in cl.exe
2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2994 done
2995 done
2996 IFS=$as_save_IFS
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3010 test -n "$CC" && break
3011 done
3013 if test -z "$CC"; then
3014 ac_ct_CC=$CC
3015 for ac_prog in cl.exe
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034 ac_cv_prog_ac_ct_CC="$ac_prog"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3040 IFS=$as_save_IFS
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 $as_echo "$ac_ct_CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3054 test -n "$ac_ct_CC" && break
3055 done
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error $? "no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details" "$LINENO" 5; }
3078 # Provide some information about the compiler.
3079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3080 set X $ac_compile
3081 ac_compiler=$2
3082 for ac_option in --version -v -V -qversion; do
3083 { { ac_try="$ac_compiler $ac_option >&5"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3091 ac_status=$?
3092 if test -s conftest.err; then
3093 sed '10a\
3094 ... rest of stderr output deleted ...
3095 10q' conftest.err >conftest.er1
3096 cat conftest.er1 >&5
3098 rm -f conftest.er1 conftest.err
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }
3101 done
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3107 main ()
3111 return 0;
3113 _ACEOF
3114 ac_clean_files_save=$ac_clean_files
3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116 # Try to create an executable without -o first, disregard a.out.
3117 # It will help us diagnose broken compilers, and finding out an intuition
3118 # of exeext.
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3120 $as_echo_n "checking whether the C compiler works... " >&6; }
3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123 # The possible output files:
3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126 ac_rmfiles=
3127 for ac_file in $ac_files
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133 done
3134 rm -f $ac_rmfiles
3136 if { { ac_try="$ac_link_default"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_link_default") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3150 # so that the user can short-circuit this test for compilers unknown to
3151 # Autoconf.
3152 for ac_file in $ac_files ''
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
3172 break;;
3174 break;;
3175 esac
3176 done
3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179 else
3180 ac_file=''
3182 if test -z "$ac_file"; then :
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 $as_echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error 77 "C compiler cannot create executables
3191 See \`config.log' for more details" "$LINENO" 5; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3197 $as_echo_n "checking for C compiler default output file name... " >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3199 $as_echo "$ac_file" >&6; }
3200 ac_exeext=$ac_cv_exeext
3202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3203 ac_clean_files=$ac_clean_files_save
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3205 $as_echo_n "checking for suffix of executables... " >&6; }
3206 if { { ac_try="$ac_link"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_link") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3219 # work properly (i.e., refer to `conftest.exe'), while it won't with
3220 # `rm'.
3221 for ac_file in conftest.exe conftest conftest.*; do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 break;;
3227 * ) break;;
3228 esac
3229 done
3230 else
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details" "$LINENO" 5; }
3236 rm -f conftest conftest$ac_cv_exeext
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3238 $as_echo "$ac_cv_exeext" >&6; }
3240 rm -f conftest.$ac_ext
3241 EXEEXT=$ac_cv_exeext
3242 ac_exeext=$EXEEXT
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3245 #include <stdio.h>
3247 main ()
3249 FILE *f = fopen ("conftest.out", "w");
3250 return ferror (f) || fclose (f) != 0;
3253 return 0;
3255 _ACEOF
3256 ac_clean_files="$ac_clean_files conftest.out"
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3260 $as_echo_n "checking whether we are cross compiling... " >&6; }
3261 if test "$cross_compiling" != yes; then
3262 { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 if { ac_try='./conftest$ac_cv_exeext'
3274 { { case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; }; then
3284 cross_compiling=no
3285 else
3286 if test "$cross_compiling" = maybe; then
3287 cross_compiling=yes
3288 else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details" "$LINENO" 5; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3298 $as_echo "$cross_compiling" >&6; }
3300 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3303 $as_echo_n "checking for suffix of object files... " >&6; }
3304 if ${ac_cv_objext+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3311 main ()
3315 return 0;
3317 _ACEOF
3318 rm -f conftest.o conftest.obj
3319 if { { ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compile") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 for ac_file in conftest.o conftest.obj conftest.*; do
3331 test -f "$ac_file" || continue;
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3335 break;;
3336 esac
3337 done
3338 else
3339 $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot compute suffix of object files: cannot compile
3345 See \`config.log' for more details" "$LINENO" 5; }
3347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3350 $as_echo "$ac_cv_objext" >&6; }
3351 OBJEXT=$ac_cv_objext
3352 ac_objext=$OBJEXT
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3354 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3355 if ${ac_cv_c_compiler_gnu+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3362 main ()
3364 #ifndef __GNUC__
3365 choke me
3366 #endif
3369 return 0;
3371 _ACEOF
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373 ac_compiler_gnu=yes
3374 else
3375 ac_compiler_gnu=no
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3382 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3383 if test $ac_compiler_gnu = yes; then
3384 GCC=yes
3385 else
3386 GCC=
3388 ac_test_CFLAGS=${CFLAGS+set}
3389 ac_save_CFLAGS=$CFLAGS
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3391 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3392 if ${ac_cv_prog_cc_g+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_save_c_werror_flag=$ac_c_werror_flag
3396 ac_c_werror_flag=yes
3397 ac_cv_prog_cc_g=no
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3412 else
3413 CFLAGS=""
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3418 main ()
3422 return 0;
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3427 else
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429 CFLAGS="-g"
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3434 main ()
3438 return 0;
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_cv_prog_cc_g=yes
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3452 $as_echo "$ac_cv_prog_cc_g" >&6; }
3453 if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3457 CFLAGS="-g -O2"
3458 else
3459 CFLAGS="-g"
3461 else
3462 if test "$GCC" = yes; then
3463 CFLAGS="-O2"
3464 else
3465 CFLAGS=
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3469 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3470 if ${ac_cv_prog_cc_c89+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_cv_prog_cc_c89=no
3474 ac_save_CC=$CC
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477 #include <stdarg.h>
3478 #include <stdio.h>
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3485 char **p;
3486 int i;
3488 return p[i];
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3492 char *s;
3493 va_list v;
3494 va_start (v,p);
3495 s = g (p, va_arg (v,int));
3496 va_end (v);
3497 return s;
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std. */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510 inside strings and character constants. */
3511 #define FOO(x) 'x'
3512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3514 int test (int i, double x);
3515 struct s1 {int (*f) (int a);};
3516 struct s2 {int (*f) (double a);};
3517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518 int argc;
3519 char **argv;
3521 main ()
3523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3525 return 0;
3527 _ACEOF
3528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531 CC="$ac_save_CC $ac_arg"
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_c89=$ac_arg
3535 rm -f core conftest.err conftest.$ac_objext
3536 test "x$ac_cv_prog_cc_c89" != "xno" && break
3537 done
3538 rm -f conftest.$ac_ext
3539 CC=$ac_save_CC
3542 # AC_CACHE_VAL
3543 case "x$ac_cv_prog_cc_c89" in
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546 $as_echo "none needed" >&6; } ;;
3547 xno)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549 $as_echo "unsupported" >&6; } ;;
3551 CC="$CC $ac_cv_prog_cc_c89"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3554 esac
3555 if test "x$ac_cv_prog_cc_c89" != xno; then :
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 case $ac_cv_prog_cc_stdc in #(
3566 no) :
3567 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3568 *) :
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3571 if ${ac_cv_prog_cc_c99+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_cv_prog_cc_c99=no
3575 ac_save_CC=$CC
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <stdarg.h>
3579 #include <stdbool.h>
3580 #include <stdlib.h>
3581 #include <wchar.h>
3582 #include <stdio.h>
3584 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3585 #define debug(...) fprintf (stderr, __VA_ARGS__)
3586 #define showlist(...) puts (#__VA_ARGS__)
3587 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3588 static void
3589 test_varargs_macros (void)
3591 int x = 1234;
3592 int y = 5678;
3593 debug ("Flag");
3594 debug ("X = %d\n", x);
3595 showlist (The first, second, and third items.);
3596 report (x>y, "x is %d but y is %d", x, y);
3599 // Check long long types.
3600 #define BIG64 18446744073709551615ull
3601 #define BIG32 4294967295ul
3602 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3603 #if !BIG_OK
3604 your preprocessor is broken;
3605 #endif
3606 #if BIG_OK
3607 #else
3608 your preprocessor is broken;
3609 #endif
3610 static long long int bignum = -9223372036854775807LL;
3611 static unsigned long long int ubignum = BIG64;
3613 struct incomplete_array
3615 int datasize;
3616 double data[];
3619 struct named_init {
3620 int number;
3621 const wchar_t *name;
3622 double average;
3625 typedef const char *ccp;
3627 static inline int
3628 test_restrict (ccp restrict text)
3630 // See if C++-style comments work.
3631 // Iterate through items via the restricted pointer.
3632 // Also check for declarations in for loops.
3633 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3634 continue;
3635 return 0;
3638 // Check varargs and va_copy.
3639 static void
3640 test_varargs (const char *format, ...)
3642 va_list args;
3643 va_start (args, format);
3644 va_list args_copy;
3645 va_copy (args_copy, args);
3647 const char *str;
3648 int number;
3649 float fnumber;
3651 while (*format)
3653 switch (*format++)
3655 case 's': // string
3656 str = va_arg (args_copy, const char *);
3657 break;
3658 case 'd': // int
3659 number = va_arg (args_copy, int);
3660 break;
3661 case 'f': // float
3662 fnumber = va_arg (args_copy, double);
3663 break;
3664 default:
3665 break;
3668 va_end (args_copy);
3669 va_end (args);
3673 main ()
3676 // Check bool.
3677 _Bool success = false;
3679 // Check restrict.
3680 if (test_restrict ("String literal") == 0)
3681 success = true;
3682 char *restrict newvar = "Another string";
3684 // Check varargs.
3685 test_varargs ("s, d' f .", "string", 65, 34.234);
3686 test_varargs_macros ();
3688 // Check flexible array members.
3689 struct incomplete_array *ia =
3690 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3691 ia->datasize = 10;
3692 for (int i = 0; i < ia->datasize; ++i)
3693 ia->data[i] = i * 1.234;
3695 // Check named initializers.
3696 struct named_init ni = {
3697 .number = 34,
3698 .name = L"Test wide string",
3699 .average = 543.34343,
3702 ni.number = 58;
3704 int dynamic_array[ni.number];
3705 dynamic_array[ni.number - 1] = 543;
3707 // work around unused variable warnings
3708 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3709 || dynamic_array[ni.number - 1] != 543);
3712 return 0;
3714 _ACEOF
3715 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c99=$ac_arg
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c99" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c99" in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c99"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3739 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3740 esac
3741 if test "x$ac_cv_prog_cc_c99" != xno; then :
3742 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if ${ac_cv_prog_cc_c89+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753 #include <stdarg.h>
3754 #include <stdio.h>
3755 #include <sys/types.h>
3756 #include <sys/stat.h>
3757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3758 struct buf { int x; };
3759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3760 static char *e (p, i)
3761 char **p;
3762 int i;
3764 return p[i];
3766 static char *f (char * (*g) (char **, int), char **p, ...)
3768 char *s;
3769 va_list v;
3770 va_start (v,p);
3771 s = g (p, va_arg (v,int));
3772 va_end (v);
3773 return s;
3776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3777 function prototypes and stuff, but not '\xHH' hex character constants.
3778 These don't provoke an error unfortunately, instead are silently treated
3779 as 'x'. The following induces an error, until -std is added to get
3780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3781 array size at least. It's necessary to write '\x00'==0 to get something
3782 that's true only with -std. */
3783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3786 inside strings and character constants. */
3787 #define FOO(x) 'x'
3788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790 int test (int i, double x);
3791 struct s1 {int (*f) (int a);};
3792 struct s2 {int (*f) (double a);};
3793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3794 int argc;
3795 char **argv;
3797 main ()
3799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3801 return 0;
3803 _ACEOF
3804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 CC="$ac_save_CC $ac_arg"
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_prog_cc_c89=$ac_arg
3811 rm -f core conftest.err conftest.$ac_objext
3812 test "x$ac_cv_prog_cc_c89" != "xno" && break
3813 done
3814 rm -f conftest.$ac_ext
3815 CC=$ac_save_CC
3818 # AC_CACHE_VAL
3819 case "x$ac_cv_prog_cc_c89" in
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3822 $as_echo "none needed" >&6; } ;;
3823 xno)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3825 $as_echo "unsupported" >&6; } ;;
3827 CC="$CC $ac_cv_prog_cc_c89"
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3830 esac
3831 if test "x$ac_cv_prog_cc_c89" != xno; then :
3832 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3833 else
3834 ac_cv_prog_cc_stdc=no
3839 esac
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3841 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3842 if ${ac_cv_prog_cc_stdc+:} false; then :
3843 $as_echo_n "(cached) " >&6
3846 case $ac_cv_prog_cc_stdc in #(
3847 no) :
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;; #(
3850 '') :
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3852 $as_echo "none needed" >&6; } ;; #(
3853 *) :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3855 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3856 esac
3858 ac_ext=cpp
3859 ac_cpp='$CXXCPP $CPPFLAGS'
3860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3863 if test -z "$CXX"; then
3864 if test -n "$CCC"; then
3865 CXX=$CCC
3866 else
3867 if test -n "$ac_tool_prefix"; then
3868 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_CXX+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 if test -n "$CXX"; then
3878 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 break 2
3891 done
3892 done
3893 IFS=$as_save_IFS
3897 CXX=$ac_cv_prog_CXX
3898 if test -n "$CXX"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3900 $as_echo "$CXX" >&6; }
3901 else
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3907 test -n "$CXX" && break
3908 done
3910 if test -z "$CXX"; then
3911 ac_ct_CXX=$CXX
3912 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3914 # Extract the first word of "$ac_prog", so it can be a program name with args.
3915 set dummy $ac_prog; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -n "$ac_ct_CXX"; then
3922 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3923 else
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931 ac_cv_prog_ac_ct_CXX="$ac_prog"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3935 done
3936 done
3937 IFS=$as_save_IFS
3941 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3942 if test -n "$ac_ct_CXX"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3944 $as_echo "$ac_ct_CXX" >&6; }
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3951 test -n "$ac_ct_CXX" && break
3952 done
3954 if test "x$ac_ct_CXX" = x; then
3955 CXX="g++"
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958 yes:)
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961 ac_tool_warned=yes ;;
3962 esac
3963 CXX=$ac_ct_CXX
3969 # Provide some information about the compiler.
3970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3971 set X $ac_compile
3972 ac_compiler=$2
3973 for ac_option in --version -v -V -qversion; do
3974 { { ac_try="$ac_compiler $ac_option >&5"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3982 ac_status=$?
3983 if test -s conftest.err; then
3984 sed '10a\
3985 ... rest of stderr output deleted ...
3986 10q' conftest.err >conftest.er1
3987 cat conftest.er1 >&5
3989 rm -f conftest.er1 conftest.err
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }
3992 done
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3995 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3996 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4005 #ifndef __GNUC__
4006 choke me
4007 #endif
4010 return 0;
4012 _ACEOF
4013 if ac_fn_cxx_try_compile "$LINENO"; then :
4014 ac_compiler_gnu=yes
4015 else
4016 ac_compiler_gnu=no
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4023 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4024 if test $ac_compiler_gnu = yes; then
4025 GXX=yes
4026 else
4027 GXX=
4029 ac_test_CXXFLAGS=${CXXFLAGS+set}
4030 ac_save_CXXFLAGS=$CXXFLAGS
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4032 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4033 if ${ac_cv_prog_cxx_g+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4037 ac_cxx_werror_flag=yes
4038 ac_cv_prog_cxx_g=no
4039 CXXFLAGS="-g"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 main ()
4048 return 0;
4050 _ACEOF
4051 if ac_fn_cxx_try_compile "$LINENO"; then :
4052 ac_cv_prog_cxx_g=yes
4053 else
4054 CXXFLAGS=""
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 main ()
4063 return 0;
4065 _ACEOF
4066 if ac_fn_cxx_try_compile "$LINENO"; then :
4068 else
4069 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4070 CXXFLAGS="-g"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 main ()
4079 return 0;
4081 _ACEOF
4082 if ac_fn_cxx_try_compile "$LINENO"; then :
4083 ac_cv_prog_cxx_g=yes
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4093 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4094 if test "$ac_test_CXXFLAGS" = set; then
4095 CXXFLAGS=$ac_save_CXXFLAGS
4096 elif test $ac_cv_prog_cxx_g = yes; then
4097 if test "$GXX" = yes; then
4098 CXXFLAGS="-g -O2"
4099 else
4100 CXXFLAGS="-g"
4102 else
4103 if test "$GXX" = yes; then
4104 CXXFLAGS="-O2"
4105 else
4106 CXXFLAGS=
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4121 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4122 # On Suns, sometimes $CPP names a directory.
4123 if test -n "$CPP" && test -d "$CPP"; then
4124 CPP=
4126 if test -z "$CPP"; then
4127 if ${ac_cv_prog_CPP+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 # Double quotes because CPP needs to be expanded
4131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4133 ac_preproc_ok=false
4134 for ac_c_preproc_warn_flag in '' yes
4136 # Use a header file that comes with gcc, so configuring glibc
4137 # with a fresh cross-compiler works.
4138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4139 # <limits.h> exists even on freestanding compilers.
4140 # On the NeXT, cc -E runs the code through the compiler's parser,
4141 # not just through cpp. "Syntax error" is here to catch this case.
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 #ifdef __STDC__
4145 # include <limits.h>
4146 #else
4147 # include <assert.h>
4148 #endif
4149 Syntax error
4150 _ACEOF
4151 if ac_fn_c_try_cpp "$LINENO"; then :
4153 else
4154 # Broken: fails on valid input.
4155 continue
4157 rm -f conftest.err conftest.i conftest.$ac_ext
4159 # OK, works on sane cases. Now check whether nonexistent headers
4160 # can be detected and how.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <ac_nonexistent.h>
4164 _ACEOF
4165 if ac_fn_c_try_cpp "$LINENO"; then :
4166 # Broken: success on invalid input.
4167 continue
4168 else
4169 # Passes both tests.
4170 ac_preproc_ok=:
4171 break
4173 rm -f conftest.err conftest.i conftest.$ac_ext
4175 done
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.i conftest.err conftest.$ac_ext
4178 if $ac_preproc_ok; then :
4179 break
4182 done
4183 ac_cv_prog_CPP=$CPP
4186 CPP=$ac_cv_prog_CPP
4187 else
4188 ac_cv_prog_CPP=$CPP
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4191 $as_echo "$CPP" >&6; }
4192 ac_preproc_ok=false
4193 for ac_c_preproc_warn_flag in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #ifdef __STDC__
4204 # include <limits.h>
4205 #else
4206 # include <assert.h>
4207 #endif
4208 Syntax error
4209 _ACEOF
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4212 else
4213 # Broken: fails on valid input.
4214 continue
4216 rm -f conftest.err conftest.i conftest.$ac_ext
4218 # OK, works on sane cases. Now check whether nonexistent headers
4219 # can be detected and how.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <ac_nonexistent.h>
4223 _ACEOF
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225 # Broken: success on invalid input.
4226 continue
4227 else
4228 # Passes both tests.
4229 ac_preproc_ok=:
4230 break
4232 rm -f conftest.err conftest.i conftest.$ac_ext
4234 done
4235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4236 rm -f conftest.i conftest.err conftest.$ac_ext
4237 if $ac_preproc_ok; then :
4239 else
4240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4242 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4243 See \`config.log' for more details" "$LINENO" 5; }
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 # Check for a compatible awk
4254 for ac_prog in gawk nawk
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_AWK+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$AWK"; then
4264 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_AWK="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 AWK=$ac_cv_prog_AWK
4284 if test -n "$AWK"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4286 $as_echo "$AWK" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4293 test -n "$AWK" && break
4294 done
4296 if test "$AWK" = ""; then
4297 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4299 # Extract the first word of "mmake", so it can be a program name with args.
4300 set dummy mmake; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_MMAKE+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$MMAKE"; then
4307 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_MMAKE="mmake "
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4326 MMAKE=$ac_cv_prog_MMAKE
4327 if test -n "$MMAKE"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4329 $as_echo "$MMAKE" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4337 # Perform some default variable assignments. Note all of these will be
4338 # Regenerated from the script, so there is no need to cache them.
4340 aros_host_cpp="$CPP"
4341 aros_host_cc="$CC"
4342 aros_host_cxx="$CXX"
4343 if test "$GCC" = "yes"; then
4344 aros_gcc_ld=`$CC -print-prog-name=ld`
4345 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4346 set dummy `basename $aros_gcc_ld`; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_path_aros_host_ld+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 case $aros_host_ld in
4353 [\\/]* | ?:[\\/]*)
4354 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in `dirname $aros_gcc_ld`
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4368 done
4369 done
4370 IFS=$as_save_IFS
4373 esac
4375 aros_host_ld=$ac_cv_path_aros_host_ld
4376 if test -n "$aros_host_ld"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4378 $as_echo "$aros_host_ld" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4386 if test "$aros_host_ld" = ""; then
4387 # Extract the first word of "ld", so it can be a program name with args.
4388 set dummy ld; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_path_aros_host_ld+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 case $aros_host_ld in
4395 [\\/]* | ?:[\\/]*)
4396 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4412 IFS=$as_save_IFS
4415 esac
4417 aros_host_ld=$ac_cv_path_aros_host_ld
4418 if test -n "$aros_host_ld"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4420 $as_echo "$aros_host_ld" >&6; }
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4428 if test "$aros_host_ld" = ""; then
4429 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4431 aros_host_make="make"
4432 aros_host_cflags=$CFLAGS
4433 aros_host_cxxflags=$CXXFLAGS
4434 aros_host_ldflags=$LDFLAGS
4435 aros_host_debug="-g -O0"
4436 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4437 aros_host_mkargs="--no-print-directory"
4438 aros_host_exe_suffix="$EXEEXT"
4439 aros_host_lib_suffix=""
4441 # Ignore all compliance, AROS ROMs = 0
4442 # KickStart v1.0 = 30
4443 # KickStart v1.3 = 34
4444 # KickStart v2.0 = 37
4445 # KickStart v3.0 = 39
4446 # KickStart v3.1 = 40
4447 # AmigaOS v3.5 = 44
4448 aros_amigaos_compliance=0
4450 for ac_prog in aclocal aclocal19 aclocal-1.9
4452 # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$aros_host_aclocal"; then
4460 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_aros_host_aclocal="$ac_prog"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4473 done
4474 done
4475 IFS=$as_save_IFS
4479 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4480 if test -n "$aros_host_aclocal"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4482 $as_echo "$aros_host_aclocal" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4489 test -n "$aros_host_aclocal" && break
4490 done
4492 for ac_prog in autoconf autoconf259 autoconf253
4494 # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy $ac_prog; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if test -n "$aros_host_autoconf"; then
4502 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_aros_host_autoconf="$ac_prog"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4515 done
4516 done
4517 IFS=$as_save_IFS
4521 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4522 if test -n "$aros_host_autoconf"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4524 $as_echo "$aros_host_autoconf" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4531 test -n "$aros_host_autoconf" && break
4532 done
4534 for ac_prog in autoheader autoheader259 autoheader253
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy $ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if test -n "$aros_host_autoheader"; then
4544 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_aros_host_autoheader="$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4557 done
4558 done
4559 IFS=$as_save_IFS
4563 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4564 if test -n "$aros_host_autoheader"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4566 $as_echo "$aros_host_autoheader" >&6; }
4567 else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4573 test -n "$aros_host_autoheader" && break
4574 done
4576 for ac_prog in automake automake19 automake-1.9
4578 # Extract the first word of "$ac_prog", so it can be a program name with args.
4579 set dummy $ac_prog; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_aros_host_automake+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$aros_host_automake"; then
4586 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_aros_host_automake="$ac_prog"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4605 aros_host_automake=$ac_cv_prog_aros_host_automake
4606 if test -n "$aros_host_automake"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4608 $as_echo "$aros_host_automake" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4615 test -n "$aros_host_automake" && break
4616 done
4619 if test "$aros_host_aclocal" = ""; then
4620 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4622 if test "$aros_host_automake" = ""; then
4623 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4626 case "$aros_host_cc" in
4627 *gcc*)
4628 aros_host_cc_pipe="-pipe"
4630 icc)
4631 aros_host_cc_pipe=""
4634 aros_host_cc_pipe=""
4636 esac
4638 aros_kernel_cc_includes=""
4639 aros_target_cc_includes=""
4641 # ----------------------------------------------------------------------------------------
4642 # Host-specific defaults
4644 # This is the main host configuration section. It is where the host
4645 # can change the values of any variables it needs to change. We do
4646 # not look at anything that compiles to the target yet, we'll get
4647 # to that later.
4649 case "$host_os" in
4650 aros*)
4651 aros_host_arch="aros"
4652 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4653 case "$host_cpu" in
4654 *i?86*)
4655 aros_host_cpu="i386"
4657 *x86_64*)
4658 aros_host_cpu="x86_64"
4660 *powerpc*)
4661 aros_host_cpu="ppc"
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4665 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4666 aros_host_cpu="$host_cpu"
4668 esac
4671 linux*)
4672 aros_host_arch="linux"
4673 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4674 android_build_os="linux-x86"
4675 android_tool="android"
4676 default_android_sdk="/opt/android-sdk-linux_x86"
4677 case "$host_cpu" in
4678 *i?86*)
4679 aros_host_cpu="i386"
4681 *x86_64*)
4682 aros_host_cpu="x86_64"
4684 *m68k*)
4685 aros_host_cpu="m68k"
4687 *powerpc*)
4688 aros_host_cpu="ppc"
4690 *arm*)
4691 aros_host_cpu="arm"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4695 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4696 aros_host_cpu="$host_cpu"
4698 esac
4701 freebsd*)
4702 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4703 aros_host_make="gmake"
4704 aros_host_arch="freebsd"
4705 aros_host_cpu="i386"
4707 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4709 case $host_os in
4710 freebsd[234]*)
4711 aros_object_format="elf_i386"
4715 aros_object_format="elf_i386_fbsd"
4717 esac
4721 darwin*)
4722 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4723 aros_host_arch="darwin"
4724 cross_compile_native=yes
4725 android_build_os="darwin-x86"
4726 android_tool="android"
4727 default_android_sdk="/android-sdk-mac_x86"
4728 case "$host_cpu" in
4729 *i?86*)
4730 aros_host_cpu="i386"
4732 *x86_64*)
4733 aros_host_cpu="x86_64"
4735 *powerpc*)
4736 aros_host_cpu="ppc"
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4740 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4741 aros_host_cpu="$host_cpu"
4743 esac
4745 aros_host_ldflags="$aros_host_ldflags -liconv"
4749 dragonfly*)
4750 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4751 aros_host_make="gmake"
4752 aros_host_arch="dragonfly"
4753 case $host_cpu in
4754 *i?86*)
4755 aros_host_cpu="i386"
4757 *amd64*)
4758 aros_host_cpu="x86_64"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4762 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4763 aros_host_cpu="$host_cpu"
4765 esac
4768 netbsd*)
4769 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4770 aros_host_make="gmake"
4771 aros_host_arch="netbsd"
4772 case "$host_cpu" in
4773 *i?86*)
4774 aros_host_cpu="i386"
4776 *m68k*)
4777 aros_host_cpu="m68k"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4781 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4782 aros_host_cpu="$host_cpu"
4784 esac
4785 aros_host_lib_suffix=".0.0"
4788 openbsd*)
4789 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4790 aros_host_make="gmake"
4791 aros_host_arch="openbsd"
4792 case "$host_cpu" in
4793 *i?86*)
4794 aros_host_cpu="i386"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4798 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4799 aros_host_cpu="$host_cpu"
4801 esac
4804 solaris*)
4805 aros_host_arch="solaris"
4806 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4807 case "$host_cpu" in
4808 *i?86*)
4809 aros_host_cpu="i386"
4811 *sparc*)
4812 aros_host_cpu="sparc"
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4816 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4817 aros_host_cpu="$host_cpu"
4819 esac
4822 morphos*)
4823 aros_host_arch="morphos"
4824 aros_host_cpu="ppc"
4825 cross_compile_native=yes
4828 amiga*)
4829 aros_host_arch="amiga"
4830 cross_compile_native=yes
4831 SORT="/gg/bin/sort"
4832 TEST="/gg/bin/test"
4833 UNIQ="/gg/bin/uniq"
4834 FOR="for"
4835 TOUCH="/gg/bin/touch"
4836 case "$host_cpu" in
4837 *m68k*)
4838 aros_host_cpu="m68k"
4840 *powerpc*)
4841 aros_host_cpu="ppc"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4845 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4846 aros_host_cpu="$host_cpu"
4848 esac
4851 cygwin*)
4852 aros_host_arch="cygwin"
4853 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4854 cross_compile_native=yes
4855 android_build_os="windows"
4856 android_tool="android.bat"
4857 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4859 case "$host_cpu" in
4860 *i?86*)
4861 aros_host_cpu="i386"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4865 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4866 aros_host_cpu="$host_cpu"
4868 esac
4871 mingw32*)
4872 aros_host_arch="mingw32"
4873 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4874 cross_compile_native=yes
4875 android_build_os="windows"
4876 android_tool="android.bat"
4877 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4879 case "$host_cpu" in
4880 *i?86*)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4883 $as_echo_n "checking for Windows native gcc target... " >&6; }
4884 host_cpu=`gcc -dumpmachine`
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4886 $as_echo "$host_cpu" >&6; }
4889 esac
4891 case "$host_cpu" in
4892 *i?86*)
4893 aros_host_cpu="i386"
4896 mingw32*)
4897 aros_host_cpu="i386"
4900 *x86_64*)
4901 aros_host_cpu="x86_64"
4902 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4907 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4908 aros_host_cpu="$host_cpu"
4910 esac
4913 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4915 esac
4917 # Extract the first word of "ar", so it can be a program name with args.
4918 set dummy ar; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_aros_host_ar+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$aros_host_ar"; then
4925 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_aros_host_ar="ar cr"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4940 IFS=$as_save_IFS
4944 aros_host_ar=$ac_cv_prog_aros_host_ar
4945 if test -n "$aros_host_ar"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4947 $as_echo "$aros_host_ar" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4954 if test "$aros_host_ar" = ""; then
4955 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4957 # Extract the first word of "ranlib", so it can be a program name with args.
4958 set dummy ranlib; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$aros_host_ranlib"; then
4965 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_prog_aros_host_ranlib="ranlib "
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4978 done
4979 done
4980 IFS=$as_save_IFS
4984 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4985 if test -n "$aros_host_ranlib"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4987 $as_echo "$aros_host_ranlib" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 if test "$aros_host_ranlib" = ""; then
4995 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4997 # Extract the first word of "strip", so it can be a program name with args.
4998 set dummy strip; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_aros_host_strip+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$aros_host_strip"; then
5005 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_prog_aros_host_strip="strip "
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5020 IFS=$as_save_IFS
5024 aros_host_strip=$ac_cv_prog_aros_host_strip
5025 if test -n "$aros_host_strip"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5027 $as_echo "$aros_host_strip" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5034 if test "$aros_host_strip" = ""; then
5035 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5038 # Extract the first word of "rm", so it can be a program name with args.
5039 set dummy rm; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_RM+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$RM"; then
5046 ac_cv_prog_RM="$RM" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_RM="rm -rf"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 RM=$ac_cv_prog_RM
5066 if test -n "$RM"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5068 $as_echo "$RM" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 if test "$RM" = ""; then
5076 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5078 # Extract the first word of "cp", so it can be a program name with args.
5079 set dummy cp; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_CP+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$CP"; then
5086 ac_cv_prog_CP="$CP" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_CP="cp "
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 CP=$ac_cv_prog_CP
5106 if test -n "$CP"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5108 $as_echo "$CP" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5115 if test "$CP" = ""; then
5116 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5118 # Extract the first word of "mv", so it can be a program name with args.
5119 set dummy mv; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_prog_MV+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$MV"; then
5126 ac_cv_prog_MV="$MV" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_MV="mv "
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 MV=$ac_cv_prog_MV
5146 if test -n "$MV"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5148 $as_echo "$MV" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5155 if test "$MV" = ""; then
5156 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5158 # Extract the first word of "echo", so it can be a program name with args.
5159 set dummy echo; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_ECHO+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$ECHO"; then
5166 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_ECHO="echo "
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5185 ECHO=$ac_cv_prog_ECHO
5186 if test -n "$ECHO"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5188 $as_echo "$ECHO" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5195 if test "$ECHO" = ""; then
5196 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5198 # Extract the first word of "mkdir", so it can be a program name with args.
5199 set dummy mkdir; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_MKDIR+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$MKDIR"; then
5206 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_MKDIR="mkdir -p"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 MKDIR=$ac_cv_prog_MKDIR
5226 if test -n "$MKDIR"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5228 $as_echo "$MKDIR" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 if test "$MKDIR" = ""; then
5236 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5238 # Extract the first word of "touch", so it can be a program name with args.
5239 set dummy touch; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_TOUCH+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$TOUCH"; then
5246 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_TOUCH="touch "
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5261 IFS=$as_save_IFS
5265 TOUCH=$ac_cv_prog_TOUCH
5266 if test -n "$TOUCH"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5268 $as_echo "$TOUCH" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 if test "$TOUCH" = ""; then
5276 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5278 # Extract the first word of "sort", so it can be a program name with args.
5279 set dummy sort; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_SORT+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$SORT"; then
5286 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_SORT="sort "
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5305 SORT=$ac_cv_prog_SORT
5306 if test -n "$SORT"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5308 $as_echo "$SORT" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5315 if test "$SORT" = ""; then
5316 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5318 # Extract the first word of "uniq", so it can be a program name with args.
5319 set dummy uniq; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_UNIQ+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 if test -n "$UNIQ"; then
5326 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_prog_UNIQ="uniq "
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5339 done
5340 done
5341 IFS=$as_save_IFS
5345 UNIQ=$ac_cv_prog_UNIQ
5346 if test -n "$UNIQ"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5348 $as_echo "$UNIQ" >&6; }
5349 else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 if test "$UNIQ" = ""; then
5356 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5358 # Extract the first word of "true", so it can be a program name with args.
5359 set dummy true; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_prog_NOP+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if test -n "$NOP"; then
5366 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_prog_NOP="true "
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5379 done
5380 done
5381 IFS=$as_save_IFS
5385 NOP=$ac_cv_prog_NOP
5386 if test -n "$NOP"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5388 $as_echo "$NOP" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5395 if test "$NOP" = ""; then
5396 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5398 # Extract the first word of "cat", so it can be a program name with args.
5399 set dummy cat; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_CAT+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 if test -n "$CAT"; then
5406 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_CAT="cat "
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5419 done
5420 done
5421 IFS=$as_save_IFS
5425 CAT=$ac_cv_prog_CAT
5426 if test -n "$CAT"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5428 $as_echo "$CAT" >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5435 if test "$CAT" = ""; then
5436 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5438 # Extract the first word of "bison", so it can be a program name with args.
5439 set dummy bison; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_BISON+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 if test -n "$BISON"; then
5446 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_BISON="bison "
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5459 done
5460 done
5461 IFS=$as_save_IFS
5465 BISON=$ac_cv_prog_BISON
5466 if test -n "$BISON"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5468 $as_echo "$BISON" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5475 if test "$BISON" = ""; then
5476 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5478 # Extract the first word of "flex", so it can be a program name with args.
5479 set dummy flex; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_FLEX+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -n "$FLEX"; then
5486 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_FLEX="flex "
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5501 IFS=$as_save_IFS
5505 FLEX=$ac_cv_prog_FLEX
5506 if test -n "$FLEX"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5508 $as_echo "$FLEX" >&6; }
5509 else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5515 if test "$FLEX" = ""; then
5516 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5518 # Extract the first word of "pngtopnm", so it can be a program name with args.
5519 set dummy pngtopnm; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$PNGTOPNM"; then
5526 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_PNGTOPNM="pngtopnm "
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5546 if test -n "$PNGTOPNM"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5548 $as_echo "$PNGTOPNM" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5555 if test "$PNGTOPNM" = ""; then
5556 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5558 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5559 set dummy ppmtoilbm; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$PPMTOILBM"; then
5566 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5581 IFS=$as_save_IFS
5585 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5586 if test -n "$PPMTOILBM"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5588 $as_echo "$PPMTOILBM" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 if test "$PPMTOILBM" = ""; then
5596 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5598 # Extract the first word of "sed", so it can be a program name with args.
5599 set dummy sed; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_SED+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$SED"; then
5606 ac_cv_prog_SED="$SED" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_SED="sed "
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 SED=$ac_cv_prog_SED
5626 if test -n "$SED"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5628 $as_echo "$SED" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5635 if test "$SED" = ""; then
5636 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5638 # Extract the first word of "chmod", so it can be a program name with args.
5639 set dummy chmod; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_CHMOD+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$CHMOD"; then
5646 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_CHMOD="chmod "
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5665 CHMOD=$ac_cv_prog_CHMOD
5666 if test -n "$CHMOD"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5668 $as_echo "$CHMOD" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5675 if test "$CHMOD" = ""; then
5676 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5678 # Extract the first word of "patch", so it can be a program name with args.
5679 set dummy patch; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_PATCH+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$PATCH"; then
5686 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_PATCH="patch "
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 PATCH=$ac_cv_prog_PATCH
5706 if test -n "$PATCH"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5708 $as_echo "$PATCH" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5715 if test "$PATCH" = ""; then
5716 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5723 if test -n "$PYTHON"; then
5724 # If the user set $PYTHON, use it and don't search something else.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5726 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5727 prog="import sys, string
5728 # split strings by '.' and convert to numeric. Append some zeros
5729 # because we need at least 4 digits for the hex conversion.
5730 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5731 minverhex = 0
5732 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5733 sys.exit(sys.hexversion < minverhex)"
5734 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5735 ($PYTHON -c "$prog") >&5 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; then :
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740 $as_echo "yes" >&6; }
5741 else
5742 as_fn_error $? "too old" "$LINENO" 5
5744 am_display_PYTHON=$PYTHON
5745 else
5746 # Otherwise, try each interpreter until we find one that satisfies
5747 # VERSION.
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5749 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5750 if ${am_cv_pathless_PYTHON+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5754 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5755 test "$am_cv_pathless_PYTHON" = none && break
5756 prog="import sys, string
5757 # split strings by '.' and convert to numeric. Append some zeros
5758 # because we need at least 4 digits for the hex conversion.
5759 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5760 minverhex = 0
5761 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5762 sys.exit(sys.hexversion < minverhex)"
5763 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5764 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; then :
5768 break
5770 done
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5773 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5774 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5775 if test "$am_cv_pathless_PYTHON" = none; then
5776 PYTHON=:
5777 else
5778 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5779 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_PYTHON+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 case $PYTHON in
5786 [\\/]* | ?:[\\/]*)
5787 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5801 done
5802 done
5803 IFS=$as_save_IFS
5806 esac
5808 PYTHON=$ac_cv_path_PYTHON
5809 if test -n "$PYTHON"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5811 $as_echo "$PYTHON" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5819 am_display_PYTHON=$am_cv_pathless_PYTHON
5823 if test "$PYTHON" = :; then
5824 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5825 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5829 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5830 if ${am_cv_python_version+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5836 $as_echo "$am_cv_python_version" >&6; }
5837 PYTHON_VERSION=$am_cv_python_version
5841 PYTHON_PREFIX='${prefix}'
5843 PYTHON_EXEC_PREFIX='${exec_prefix}'
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5848 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5849 if ${am_cv_python_platform+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5855 $as_echo "$am_cv_python_platform" >&6; }
5856 PYTHON_PLATFORM=$am_cv_python_platform
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5862 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5863 if ${am_cv_python_pythondir+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5867 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5870 $as_echo "$am_cv_python_pythondir" >&6; }
5871 pythondir=$am_cv_python_pythondir
5875 pkgpythondir=\${pythondir}/$PACKAGE
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5879 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5880 if ${am_cv_python_pyexecdir+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5884 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5887 $as_echo "$am_cv_python_pyexecdir" >&6; }
5888 pyexecdir=$am_cv_python_pyexecdir
5892 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5900 FOR=for
5902 IF=if
5904 TEST=test
5906 CMP=cmp
5910 # Check for some includes for the X11 HIDD and the kernel
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5915 if ${ac_cv_path_GREP+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -z "$GREP"; then
5919 ac_path_GREP_found=false
5920 # Loop through the user's path and test for each of PROGNAME-LIST
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_prog in grep ggrep; do
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5929 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5930 # Check for GNU ac_path_GREP and select it if it is found.
5931 # Check for GNU $ac_path_GREP
5932 case `"$ac_path_GREP" --version 2>&1` in
5933 *GNU*)
5934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5936 ac_count=0
5937 $as_echo_n 0123456789 >"conftest.in"
5938 while :
5940 cat "conftest.in" "conftest.in" >"conftest.tmp"
5941 mv "conftest.tmp" "conftest.in"
5942 cp "conftest.in" "conftest.nl"
5943 $as_echo 'GREP' >> "conftest.nl"
5944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5946 as_fn_arith $ac_count + 1 && ac_count=$as_val
5947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5948 # Best one so far, save it but keep looking for a better one
5949 ac_cv_path_GREP="$ac_path_GREP"
5950 ac_path_GREP_max=$ac_count
5952 # 10*(2^10) chars as input seems more than enough
5953 test $ac_count -gt 10 && break
5954 done
5955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5956 esac
5958 $ac_path_GREP_found && break 3
5959 done
5960 done
5961 done
5962 IFS=$as_save_IFS
5963 if test -z "$ac_cv_path_GREP"; then
5964 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5966 else
5967 ac_cv_path_GREP=$GREP
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5972 $as_echo "$ac_cv_path_GREP" >&6; }
5973 GREP="$ac_cv_path_GREP"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5977 $as_echo_n "checking for egrep... " >&6; }
5978 if ${ac_cv_path_EGREP+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5982 then ac_cv_path_EGREP="$GREP -E"
5983 else
5984 if test -z "$EGREP"; then
5985 ac_path_EGREP_found=false
5986 # Loop through the user's path and test for each of PROGNAME-LIST
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_prog in egrep; do
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5996 # Check for GNU ac_path_EGREP and select it if it is found.
5997 # Check for GNU $ac_path_EGREP
5998 case `"$ac_path_EGREP" --version 2>&1` in
5999 *GNU*)
6000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6002 ac_count=0
6003 $as_echo_n 0123456789 >"conftest.in"
6004 while :
6006 cat "conftest.in" "conftest.in" >"conftest.tmp"
6007 mv "conftest.tmp" "conftest.in"
6008 cp "conftest.in" "conftest.nl"
6009 $as_echo 'EGREP' >> "conftest.nl"
6010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6012 as_fn_arith $ac_count + 1 && ac_count=$as_val
6013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6014 # Best one so far, save it but keep looking for a better one
6015 ac_cv_path_EGREP="$ac_path_EGREP"
6016 ac_path_EGREP_max=$ac_count
6018 # 10*(2^10) chars as input seems more than enough
6019 test $ac_count -gt 10 && break
6020 done
6021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6022 esac
6024 $ac_path_EGREP_found && break 3
6025 done
6026 done
6027 done
6028 IFS=$as_save_IFS
6029 if test -z "$ac_cv_path_EGREP"; then
6030 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6032 else
6033 ac_cv_path_EGREP=$EGREP
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6039 $as_echo "$ac_cv_path_EGREP" >&6; }
6040 EGREP="$ac_cv_path_EGREP"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6044 $as_echo_n "checking for ANSI C header files... " >&6; }
6045 if ${ac_cv_header_stdc+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <stdlib.h>
6051 #include <stdarg.h>
6052 #include <string.h>
6053 #include <float.h>
6056 main ()
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064 ac_cv_header_stdc=yes
6065 else
6066 ac_cv_header_stdc=no
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 if test $ac_cv_header_stdc = yes; then
6071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <string.h>
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "memchr" >/dev/null 2>&1; then :
6080 else
6081 ac_cv_header_stdc=no
6083 rm -f conftest*
6087 if test $ac_cv_header_stdc = yes; then
6088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <stdlib.h>
6093 _ACEOF
6094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095 $EGREP "free" >/dev/null 2>&1; then :
6097 else
6098 ac_cv_header_stdc=no
6100 rm -f conftest*
6104 if test $ac_cv_header_stdc = yes; then
6105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6106 if test "$cross_compiling" = yes; then :
6108 else
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <ctype.h>
6112 #include <stdlib.h>
6113 #if ((' ' & 0x0FF) == 0x020)
6114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6116 #else
6117 # define ISLOWER(c) \
6118 (('a' <= (c) && (c) <= 'i') \
6119 || ('j' <= (c) && (c) <= 'r') \
6120 || ('s' <= (c) && (c) <= 'z'))
6121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6122 #endif
6124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6126 main ()
6128 int i;
6129 for (i = 0; i < 256; i++)
6130 if (XOR (islower (i), ISLOWER (i))
6131 || toupper (i) != TOUPPER (i))
6132 return 2;
6133 return 0;
6135 _ACEOF
6136 if ac_fn_c_try_run "$LINENO"; then :
6138 else
6139 ac_cv_header_stdc=no
6141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6142 conftest.$ac_objext conftest.beam conftest.$ac_ext
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6148 $as_echo "$ac_cv_header_stdc" >&6; }
6149 if test $ac_cv_header_stdc = yes; then
6151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6157 inttypes.h stdint.h unistd.h
6158 do :
6159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6163 cat >>confdefs.h <<_ACEOF
6164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6165 _ACEOF
6169 done
6172 for ac_header in sys/ipc.h sys/shm.h \
6173 sys/mmap.h sys/mman.h sysexits.h \
6174 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6176 do :
6177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6178 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6180 cat >>confdefs.h <<_ACEOF
6181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6182 _ACEOF
6186 done
6189 for ac_header in sys/mount.h
6190 do :
6191 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6193 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6194 cat >>confdefs.h <<_ACEOF
6195 #define HAVE_SYS_MOUNT_H 1
6196 _ACEOF
6200 done
6203 ac_header_dirent=no
6204 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6205 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6207 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6208 if eval \${$as_ac_Header+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <sys/types.h>
6214 #include <$ac_hdr>
6217 main ()
6219 if ((DIR *) 0)
6220 return 0;
6222 return 0;
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 eval "$as_ac_Header=yes"
6227 else
6228 eval "$as_ac_Header=no"
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 eval ac_res=\$$as_ac_Header
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6234 $as_echo "$ac_res" >&6; }
6235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6238 _ACEOF
6240 ac_header_dirent=$ac_hdr; break
6243 done
6244 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6245 if test $ac_header_dirent = dirent.h; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6247 $as_echo_n "checking for library containing opendir... " >&6; }
6248 if ${ac_cv_search_opendir+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 ac_func_search_save_LIBS=$LIBS
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6255 /* Override any GCC internal prototype to avoid an error.
6256 Use char because int might match the return type of a GCC
6257 builtin and then its argument prototype would still apply. */
6258 #ifdef __cplusplus
6259 extern "C"
6260 #endif
6261 char opendir ();
6263 main ()
6265 return opendir ();
6267 return 0;
6269 _ACEOF
6270 for ac_lib in '' dir; do
6271 if test -z "$ac_lib"; then
6272 ac_res="none required"
6273 else
6274 ac_res=-l$ac_lib
6275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6277 if ac_fn_c_try_link "$LINENO"; then :
6278 ac_cv_search_opendir=$ac_res
6280 rm -f core conftest.err conftest.$ac_objext \
6281 conftest$ac_exeext
6282 if ${ac_cv_search_opendir+:} false; then :
6283 break
6285 done
6286 if ${ac_cv_search_opendir+:} false; then :
6288 else
6289 ac_cv_search_opendir=no
6291 rm conftest.$ac_ext
6292 LIBS=$ac_func_search_save_LIBS
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6295 $as_echo "$ac_cv_search_opendir" >&6; }
6296 ac_res=$ac_cv_search_opendir
6297 if test "$ac_res" != no; then :
6298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6304 $as_echo_n "checking for library containing opendir... " >&6; }
6305 if ${ac_cv_search_opendir+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 ac_func_search_save_LIBS=$LIBS
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6312 /* Override any GCC internal prototype to avoid an error.
6313 Use char because int might match the return type of a GCC
6314 builtin and then its argument prototype would still apply. */
6315 #ifdef __cplusplus
6316 extern "C"
6317 #endif
6318 char opendir ();
6320 main ()
6322 return opendir ();
6324 return 0;
6326 _ACEOF
6327 for ac_lib in '' x; do
6328 if test -z "$ac_lib"; then
6329 ac_res="none required"
6330 else
6331 ac_res=-l$ac_lib
6332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6334 if ac_fn_c_try_link "$LINENO"; then :
6335 ac_cv_search_opendir=$ac_res
6337 rm -f core conftest.err conftest.$ac_objext \
6338 conftest$ac_exeext
6339 if ${ac_cv_search_opendir+:} false; then :
6340 break
6342 done
6343 if ${ac_cv_search_opendir+:} false; then :
6345 else
6346 ac_cv_search_opendir=no
6348 rm conftest.$ac_ext
6349 LIBS=$ac_func_search_save_LIBS
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6352 $as_echo "$ac_cv_search_opendir" >&6; }
6353 ac_res=$ac_cv_search_opendir
6354 if test "$ac_res" != no; then :
6355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6362 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6363 if ${ac_cv_header_stat_broken+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 #include <sys/types.h>
6369 #include <sys/stat.h>
6371 #if defined S_ISBLK && defined S_IFDIR
6372 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6373 #endif
6375 #if defined S_ISBLK && defined S_IFCHR
6376 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6377 #endif
6379 #if defined S_ISLNK && defined S_IFREG
6380 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6381 #endif
6383 #if defined S_ISSOCK && defined S_IFREG
6384 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6385 #endif
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389 ac_cv_header_stat_broken=no
6390 else
6391 ac_cv_header_stat_broken=yes
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6396 $as_echo "$ac_cv_header_stat_broken" >&6; }
6397 if test $ac_cv_header_stat_broken = yes; then
6399 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6404 $as_echo_n "checking for ANSI C header files... " >&6; }
6405 if ${ac_cv_header_stdc+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 #include <stdlib.h>
6411 #include <stdarg.h>
6412 #include <string.h>
6413 #include <float.h>
6416 main ()
6420 return 0;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 ac_cv_header_stdc=yes
6425 else
6426 ac_cv_header_stdc=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 if test $ac_cv_header_stdc = yes; then
6431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <string.h>
6436 _ACEOF
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 $EGREP "memchr" >/dev/null 2>&1; then :
6440 else
6441 ac_cv_header_stdc=no
6443 rm -f conftest*
6447 if test $ac_cv_header_stdc = yes; then
6448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <stdlib.h>
6453 _ACEOF
6454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6455 $EGREP "free" >/dev/null 2>&1; then :
6457 else
6458 ac_cv_header_stdc=no
6460 rm -f conftest*
6464 if test $ac_cv_header_stdc = yes; then
6465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6466 if test "$cross_compiling" = yes; then :
6468 else
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #include <ctype.h>
6472 #include <stdlib.h>
6473 #if ((' ' & 0x0FF) == 0x020)
6474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6476 #else
6477 # define ISLOWER(c) \
6478 (('a' <= (c) && (c) <= 'i') \
6479 || ('j' <= (c) && (c) <= 'r') \
6480 || ('s' <= (c) && (c) <= 'z'))
6481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6482 #endif
6484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6486 main ()
6488 int i;
6489 for (i = 0; i < 256; i++)
6490 if (XOR (islower (i), ISLOWER (i))
6491 || toupper (i) != TOUPPER (i))
6492 return 2;
6493 return 0;
6495 _ACEOF
6496 if ac_fn_c_try_run "$LINENO"; then :
6498 else
6499 ac_cv_header_stdc=no
6501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6502 conftest.$ac_objext conftest.beam conftest.$ac_ext
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6508 $as_echo "$ac_cv_header_stdc" >&6; }
6509 if test $ac_cv_header_stdc = yes; then
6511 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6516 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6517 if ${ac_cv_header_sys_wait_h+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <sys/types.h>
6523 #include <sys/wait.h>
6524 #ifndef WEXITSTATUS
6525 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6526 #endif
6527 #ifndef WIFEXITED
6528 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6529 #endif
6532 main ()
6534 int s;
6535 wait (&s);
6536 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6538 return 0;
6540 _ACEOF
6541 if ac_fn_c_try_compile "$LINENO"; then :
6542 ac_cv_header_sys_wait_h=yes
6543 else
6544 ac_cv_header_sys_wait_h=no
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6549 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6550 if test $ac_cv_header_sys_wait_h = yes; then
6552 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6557 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6558 if ${ac_cv_header_time+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #include <sys/types.h>
6564 #include <sys/time.h>
6565 #include <time.h>
6568 main ()
6570 if ((struct tm *) 0)
6571 return 0;
6573 return 0;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 ac_cv_header_time=yes
6578 else
6579 ac_cv_header_time=no
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6584 $as_echo "$ac_cv_header_time" >&6; }
6585 if test $ac_cv_header_time = yes; then
6587 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6591 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6592 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6594 cat >>confdefs.h <<_ACEOF
6595 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6596 _ACEOF
6599 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6604 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6605 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6607 cat >>confdefs.h <<_ACEOF
6608 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6609 _ACEOF
6612 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6614 else
6615 case " $LIBOBJS " in
6616 *" fileblocks.$ac_objext "* ) ;;
6617 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6619 esac
6624 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6625 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6627 cat >>confdefs.h <<_ACEOF
6628 #define HAVE_STRUCT_STAT_ST_RDEV 1
6629 _ACEOF
6632 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6638 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6639 if ${ac_cv_struct_tm+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #include <sys/types.h>
6645 #include <time.h>
6648 main ()
6650 struct tm tm;
6651 int *p = &tm.tm_sec;
6652 return !p;
6654 return 0;
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658 ac_cv_struct_tm=time.h
6659 else
6660 ac_cv_struct_tm=sys/time.h
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6665 $as_echo "$ac_cv_struct_tm" >&6; }
6666 if test $ac_cv_struct_tm = sys/time.h; then
6668 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6672 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6673 #include <$ac_cv_struct_tm>
6676 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_STRUCT_TM_TM_ZONE 1
6680 _ACEOF
6685 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6687 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6689 else
6690 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6692 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6693 ac_have_decl=1
6694 else
6695 ac_have_decl=0
6698 cat >>confdefs.h <<_ACEOF
6699 #define HAVE_DECL_TZNAME $ac_have_decl
6700 _ACEOF
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6703 $as_echo_n "checking for tzname... " >&6; }
6704 if ${ac_cv_var_tzname+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 #include <time.h>
6710 #if !HAVE_DECL_TZNAME
6711 extern char *tzname[];
6712 #endif
6715 main ()
6717 return tzname[0][0];
6719 return 0;
6721 _ACEOF
6722 if ac_fn_c_try_link "$LINENO"; then :
6723 ac_cv_var_tzname=yes
6724 else
6725 ac_cv_var_tzname=no
6727 rm -f core conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6731 $as_echo "$ac_cv_var_tzname" >&6; }
6732 if test $ac_cv_var_tzname = yes; then
6734 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6739 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6740 if test "x$ac_cv_type_off_t" = xyes; then :
6742 else
6744 cat >>confdefs.h <<_ACEOF
6745 #define off_t long int
6746 _ACEOF
6750 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6751 if test "x$ac_cv_type_pid_t" = xyes; then :
6753 else
6755 cat >>confdefs.h <<_ACEOF
6756 #define pid_t int
6757 _ACEOF
6761 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6762 if test "x$ac_cv_type_size_t" = xyes; then :
6764 else
6766 cat >>confdefs.h <<_ACEOF
6767 #define size_t unsigned int
6768 _ACEOF
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6773 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6774 if ${ac_cv_type_uid_t+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <sys/types.h>
6781 _ACEOF
6782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783 $EGREP "uid_t" >/dev/null 2>&1; then :
6784 ac_cv_type_uid_t=yes
6785 else
6786 ac_cv_type_uid_t=no
6788 rm -f conftest*
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6792 $as_echo "$ac_cv_type_uid_t" >&6; }
6793 if test $ac_cv_type_uid_t = no; then
6795 $as_echo "#define uid_t int" >>confdefs.h
6798 $as_echo "#define gid_t int" >>confdefs.h
6803 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6804 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6808 _ACEOF
6814 # Look for some functions
6815 for ac_func in getpagesize kqueue statfs statvfs \
6816 clone kse_create rfork_thread thr_create sa_register \
6817 getcontext makecontext setcontext sigaltstack swapcontext
6818 do :
6819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6820 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6821 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6824 _ACEOF
6827 done
6833 for ac_header in $ac_header_list
6834 do :
6835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6836 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6838 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6839 cat >>confdefs.h <<_ACEOF
6840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6841 _ACEOF
6845 done
6854 for ac_func in getpagesize
6855 do :
6856 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6857 if test "x$ac_cv_func_getpagesize" = xyes; then :
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_GETPAGESIZE 1
6860 _ACEOF
6863 done
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6866 $as_echo_n "checking for working mmap... " >&6; }
6867 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test "$cross_compiling" = yes; then :
6871 ac_cv_func_mmap_fixed_mapped=no
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 /* malloc might have been renamed as rpl_malloc. */
6877 #undef malloc
6879 /* Thanks to Mike Haertel and Jim Avera for this test.
6880 Here is a matrix of mmap possibilities:
6881 mmap private not fixed
6882 mmap private fixed at somewhere currently unmapped
6883 mmap private fixed at somewhere already mapped
6884 mmap shared not fixed
6885 mmap shared fixed at somewhere currently unmapped
6886 mmap shared fixed at somewhere already mapped
6887 For private mappings, we should verify that changes cannot be read()
6888 back from the file, nor mmap's back from the file at a different
6889 address. (There have been systems where private was not correctly
6890 implemented like the infamous i386 svr4.0, and systems where the
6891 VM page cache was not coherent with the file system buffer cache
6892 like early versions of FreeBSD and possibly contemporary NetBSD.)
6893 For shared mappings, we should conversely verify that changes get
6894 propagated back to all the places they're supposed to be.
6896 Grep wants private fixed already mapped.
6897 The main things grep needs to know about mmap are:
6898 * does it exist and is it safe to write into the mmap'd area
6899 * how to use it (BSD variants) */
6901 #include <fcntl.h>
6902 #include <sys/mman.h>
6904 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6905 char *malloc ();
6906 #endif
6908 /* This mess was copied from the GNU getpagesize.h. */
6909 #ifndef HAVE_GETPAGESIZE
6910 # ifdef _SC_PAGESIZE
6911 # define getpagesize() sysconf(_SC_PAGESIZE)
6912 # else /* no _SC_PAGESIZE */
6913 # ifdef HAVE_SYS_PARAM_H
6914 # include <sys/param.h>
6915 # ifdef EXEC_PAGESIZE
6916 # define getpagesize() EXEC_PAGESIZE
6917 # else /* no EXEC_PAGESIZE */
6918 # ifdef NBPG
6919 # define getpagesize() NBPG * CLSIZE
6920 # ifndef CLSIZE
6921 # define CLSIZE 1
6922 # endif /* no CLSIZE */
6923 # else /* no NBPG */
6924 # ifdef NBPC
6925 # define getpagesize() NBPC
6926 # else /* no NBPC */
6927 # ifdef PAGESIZE
6928 # define getpagesize() PAGESIZE
6929 # endif /* PAGESIZE */
6930 # endif /* no NBPC */
6931 # endif /* no NBPG */
6932 # endif /* no EXEC_PAGESIZE */
6933 # else /* no HAVE_SYS_PARAM_H */
6934 # define getpagesize() 8192 /* punt totally */
6935 # endif /* no HAVE_SYS_PARAM_H */
6936 # endif /* no _SC_PAGESIZE */
6938 #endif /* no HAVE_GETPAGESIZE */
6941 main ()
6943 char *data, *data2, *data3;
6944 const char *cdata2;
6945 int i, pagesize;
6946 int fd, fd2;
6948 pagesize = getpagesize ();
6950 /* First, make a file with some known garbage in it. */
6951 data = (char *) malloc (pagesize);
6952 if (!data)
6953 return 1;
6954 for (i = 0; i < pagesize; ++i)
6955 *(data + i) = rand ();
6956 umask (0);
6957 fd = creat ("conftest.mmap", 0600);
6958 if (fd < 0)
6959 return 2;
6960 if (write (fd, data, pagesize) != pagesize)
6961 return 3;
6962 close (fd);
6964 /* Next, check that the tail of a page is zero-filled. File must have
6965 non-zero length, otherwise we risk SIGBUS for entire page. */
6966 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6967 if (fd2 < 0)
6968 return 4;
6969 cdata2 = "";
6970 if (write (fd2, cdata2, 1) != 1)
6971 return 5;
6972 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6973 if (data2 == MAP_FAILED)
6974 return 6;
6975 for (i = 0; i < pagesize; ++i)
6976 if (*(data2 + i))
6977 return 7;
6978 close (fd2);
6979 if (munmap (data2, pagesize))
6980 return 8;
6982 /* Next, try to mmap the file at a fixed address which already has
6983 something else allocated at it. If we can, also make sure that
6984 we see the same garbage. */
6985 fd = open ("conftest.mmap", O_RDWR);
6986 if (fd < 0)
6987 return 9;
6988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6990 return 10;
6991 for (i = 0; i < pagesize; ++i)
6992 if (*(data + i) != *(data2 + i))
6993 return 11;
6995 /* Finally, make sure that changes to the mapped area do not
6996 percolate back to the file as seen by read(). (This is a bug on
6997 some variants of i386 svr4.0.) */
6998 for (i = 0; i < pagesize; ++i)
6999 *(data2 + i) = *(data2 + i) + 1;
7000 data3 = (char *) malloc (pagesize);
7001 if (!data3)
7002 return 12;
7003 if (read (fd, data3, pagesize) != pagesize)
7004 return 13;
7005 for (i = 0; i < pagesize; ++i)
7006 if (*(data + i) != *(data3 + i))
7007 return 14;
7008 close (fd);
7009 return 0;
7011 _ACEOF
7012 if ac_fn_c_try_run "$LINENO"; then :
7013 ac_cv_func_mmap_fixed_mapped=yes
7014 else
7015 ac_cv_func_mmap_fixed_mapped=no
7017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7018 conftest.$ac_objext conftest.beam conftest.$ac_ext
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7023 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7024 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7026 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7029 rm -f conftest.mmap conftest.txt
7034 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7035 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7036 aros_config_ldflags=""
7038 aros_shared_default=yes
7040 aros_shared_cflags="-fPIC"
7041 aros_shared_aflags=""
7042 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7043 aros_kernel_ldflags="-Wl,-rpath,./lib"
7045 aros_kernel_ar_flags="cr"
7046 aros_target_ar_flags="cr"
7047 aros_target_nm_flags="-C -ul"
7048 aros_target_strip_flags="--strip-unneeded -R.comment"
7050 aros_compiler_libs=
7051 aros_arch_libs=
7053 aros_target_genmap="-Wl,-Map -Xlinker"
7055 # Native flavour stuff
7056 aros_serial_debug="0"
7058 # Palm native flavour stuff
7059 aros_palm_debug_hack="0"
7061 # Unix flavour stuff
7062 aros_nesting_supervisor="0"
7064 # Collect-aros stuff: "-ius" to ignore undefined symbols
7065 ignore_undefined_symbols=""
7067 # Check for X11 by default
7068 need_x11="auto"
7070 #-----------------------------------------------------------------------------
7073 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7074 # it switched on by default, and we use the host compiler, so it compiles AROS
7075 # code with this enabled resulting in link failures as we don't have support
7076 # for it.
7078 # We use two methods to disable it. For the host compiler (used to compile
7079 # some hosted modules), we test to see if the compiler supports stack
7080 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7081 # work on all platforms.
7083 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7084 # (this is done unconditionally, as it should have no effect on compilers
7085 # without the stack protection feature). This may be specific to the way that
7086 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7087 # strong enough to disable it in a generic way though, so we'll live with it
7088 # until another vendor ships GCC with it enabled in a different way, and deal
7089 # with it then.
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7093 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7094 save_cflags="$CFLAGS"
7095 CFLAGS="$CFLAGS -fno-stack-protector"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7100 main ()
7104 return 0;
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108 use_no_stack_protector="yes"
7109 else
7110 use_no_stack_protector="no"
7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7114 $as_echo "$use_no_stack_protector" >&6; }
7115 if test "x-$use_no_stack_protector" = "x-yes" ; then
7116 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7118 CFLAGS="$save_cflags"
7120 #-----------------------------------------------------------------------------
7122 # Disable pointer-signedness warnings if the compiler recognises the option
7123 # (this only works for the host compiler at the moment)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7126 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7127 save_cflags="$CFLAGS"
7128 CFLAGS="$CFLAGS -Wno-pointer-sign"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7133 main ()
7137 return 0;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 use_no_sign_warning="yes"
7142 else
7143 use_no_sign_warning="no"
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7147 $as_echo "$use_no_sign_warning" >&6; }
7148 if test "x-$use_no_sign_warning" = "x-yes" ; then
7149 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7151 CFLAGS="$save_cflags"
7153 #-----------------------------------------------------------------------------
7155 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7158 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7159 save_cflags="$CFLAGS"
7160 CFLAGS="$CFLAGS -fgnu89-inline"
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7165 main ()
7169 return 0;
7171 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 use_gnu89_inline="yes"
7174 else
7175 use_gnu89_inline="no"
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7179 $as_echo "$use_gnu89_inline" >&6; }
7180 if test "x-$use_gnu89_inline" = "x-yes" ; then
7181 gnu89_inline="-fgnu89-inline"
7183 CFLAGS="$save_cflags"
7185 #-----------------------------------------------------------------------------
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7188 $as_echo_n "checking for type of build... " >&6; }
7189 # Check whether --enable-build_type was given.
7190 if test "${enable_build_type+set}" = set; then :
7191 enableval=$enable_build_type; build_type=$enableval
7192 else
7193 build_type="personal"
7197 if test "$build_type" = "nightly"; then
7198 build_type_string="NIGHTLY"
7199 elif test "$build_type" = "snapshot"; then
7200 build_type_string="SNAPSHOT"
7201 elif test "$build_type" = "milestone"; then
7202 build_type_string="MILESTONE"
7203 elif test "$build_type" = "release"; then
7204 build_type_string="RELEASE"
7205 else
7206 build_type_string="PERSONAL"
7207 build_type="personal"
7210 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7213 $as_echo "$build_type" >&6; }
7215 #-----------------------------------------------------------------------------
7216 all_debug_types="messages stack modules mungwall symbols"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7219 $as_echo_n "checking which debug types to enable... " >&6; }
7220 # Check whether --enable-debug was given.
7221 if test "${enable_debug+set}" = set; then :
7222 enableval=$enable_debug; debug="$enableval"
7223 else
7224 debug=""
7228 if test "$debug" = "" -o "$debug" = "no"; then
7229 debug="none"
7230 elif test "$debug" = "yes"; then
7231 debug="all"
7234 if test "$debug" = "all" ; then
7235 debug="messages stack modules symbols"
7236 for d in $all_debug_types; do
7237 export aros_${d}_debug="1"
7238 done
7239 else
7240 for d in $all_debug_types; do
7241 export aros_${d}_debug="0"
7242 done
7245 if test "$debug" != "none"; then
7246 debug=`echo $debug | sed s/,/\ /g`
7247 for d in $debug; do
7248 found="0"
7249 for d2 in $all_debug_types; do
7250 if test "$d2" = "$d"; then
7251 found="1"
7252 break
7254 done
7255 if test "$found" = "0"; then
7256 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7258 export aros_${d}_debug="1"
7259 done
7260 aros_debug="yes"
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7263 $as_echo "$debug" >&6; }
7265 if test "$aros_messages_debug" = "1"; then
7266 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7267 else
7268 aros_messages_debug=""
7270 if test "$aros_symbols_debug" = "1"; then
7271 aros_symbols_debug="-g"
7272 else
7273 aros_symbols_debug=""
7276 # These are the flags to pass when compiling debugged programs
7277 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7278 aros_debug_aflags=""
7279 aros_debug_ldflags="$aros_symbols_debug"
7281 #-----------------------------------------------------------------------------
7282 # Checking for distcc and ccache.
7284 # Always apply the transforms in this particular order. Basically you should
7285 # always run 'ccache distcc compiler' in that order for the best performance.
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7288 $as_echo_n "checking whether to enable distcc... " >&6; }
7289 # Check whether --enable-distcc was given.
7290 if test "${enable_distcc+set}" = set; then :
7291 enableval=$enable_distcc; distcc="$enableval"
7292 else
7293 distcc="no"
7296 if test "$distcc" != "" -a "$distcc" != "no"; then
7297 # AC_CHECK_PROG will print out the result in this case
7298 # Extract the first word of "distcc", so it can be a program name with args.
7299 set dummy distcc; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_path_DISTCC+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 case $DISTCC in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7321 done
7322 done
7323 IFS=$as_save_IFS
7325 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7327 esac
7329 DISTCC=$ac_cv_path_DISTCC
7330 if test -n "$DISTCC"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7332 $as_echo "$DISTCC" >&6; }
7333 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7345 $as_echo_n "checking whether to enable ccache... " >&6; }
7346 # Check whether --enable-ccache was given.
7347 if test "${enable_ccache+set}" = set; then :
7348 enableval=$enable_ccache; ccache="$enableval"
7349 else
7350 ccache="no"
7353 if test "$ccache" != "" -a "$ccache" != "no"; then
7354 # AC_CHECK_PROG will print out the result in this case
7355 # Extract the first word of "ccache", so it can be a program name with args.
7356 set dummy ccache; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_CCACHE+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$CCACHE"; then
7363 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_CCACHE="ccache"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7376 done
7377 done
7378 IFS=$as_save_IFS
7382 CCACHE=$ac_cv_prog_CCACHE
7383 if test -n "$CCACHE"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7385 $as_echo "$CCACHE" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7397 #-----------------------------------------------------------------------------
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7399 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7401 # Check whether --with-gcc-version was given.
7402 if test "${with_gcc_version+set}" = set; then :
7403 withval=$with_gcc_version; kernel_tool_version="$withval"
7404 else
7405 kernel_tool_version="default"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7409 $as_echo "$kernel_tool_version" >&6; }
7411 #-----------------------------------------------------------------------------
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7413 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7415 # Check whether --with-gcc-version was given.
7416 if test "${with_gcc_version+set}" = set; then :
7417 withval=$with_gcc_version; target_tool_version="$withval"
7418 else
7419 target_tool_version="default"
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7423 $as_echo "$target_tool_version" >&6; }
7425 #-----------------------------------------------------------------------------
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7427 $as_echo_n "checking what optimization flags to use... " >&6; }
7429 # Check whether --with-optimization was given.
7430 if test "${with_optimization+set}" = set; then :
7431 withval=$with_optimization; optimization="$withval"
7432 else
7433 optimization="unknown"
7436 if test "$optimization" = "unknown"; then
7437 if test "$debug" != "none"; then
7438 optimization="-O0"
7439 else
7440 optimization="-O2"
7443 aros_config_cflags="$aros_config_cflags $optimization"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7445 $as_echo "$optimization" >&6; }
7447 #-----------------------------------------------------------------------------
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7449 $as_echo_n "checking what paranoia flags to use... " >&6; }
7451 # Check whether --with-paranoia was given.
7452 if test "${with_paranoia+set}" = set; then :
7453 withval=$with_paranoia; paranoia_flags="$withval"
7454 else
7455 paranoia_flags="default"
7458 if test "$paranoia_flags" = "default"; then
7459 paranoia_flags=""
7460 else if test "$paranoia_flags" = "yes"; then
7461 paranoia_flags="-Wall -Werror"
7462 fi fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7464 $as_echo "$paranoia_flags" >&6; }
7465 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7467 #-----------------------------------------------------------------------------
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7469 $as_echo_n "checking what target variant to enable... " >&6; }
7470 # Check whether --enable-target_variant was given.
7471 if test "${enable_target_variant+set}" = set; then :
7472 enableval=$enable_target_variant; target_variant=$enableval
7473 else
7474 target_variant=""
7477 if test "$target_variant" = ""; then
7478 aros_target_variant=""
7479 aros_target_suffix=""
7480 enableval="none"
7481 else
7482 aros_target_variant="$target_variant"
7483 aros_target_suffix="-$target_variant"
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7486 $as_echo "$enableval" >&6; }
7488 #-----------------------------------------------------------------------------
7489 # Target-specific defaults. You can override then on a per-target basis.
7491 # Bootloader name. Currently used by PC target.
7492 target_bootloader="none"
7494 #-----------------------------------------------------------------------------
7495 # Additional options for some specific targets
7497 case "$aros_target_variant" in
7498 ios)
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7500 $as_echo_n "checking XCode path... " >&6; }
7502 # Check whether --with-xcode was given.
7503 if test "${with_xcode+set}" = set; then :
7504 withval=$with_xcode; aros_xcode_path="$withval"
7505 else
7506 aros_xcode_path="/Developer"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7510 $as_echo "$aros_xcode_path" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7513 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7515 # Check whether --with-sdk-version was given.
7516 if test "${with_sdk_version+set}" = set; then :
7517 withval=$with_sdk_version; aros_sdk_version="$withval"
7518 else
7519 aros_sdk_version="4.1"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7523 $as_echo "$aros_sdk_version" >&6; }
7527 "android")
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7529 $as_echo_n "checking Android SDK path... " >&6; }
7531 # Check whether --with-sdk was given.
7532 if test "${with_sdk+set}" = set; then :
7533 withval=$with_sdk; aros_android_sdk="$withval"
7534 else
7535 aros_android_sdk=$default_android_sdk
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7539 $as_echo "$aros_android_sdk" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7542 $as_echo_n "checking Android NDK path... " >&6; }
7544 # Check whether --with-ndk was given.
7545 if test "${with_ndk+set}" = set; then :
7546 withval=$with_ndk; aros_android_ndk="$withval"
7547 else
7548 aros_android_ndk="none"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7552 $as_echo "$aros_android_ndk" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7555 $as_echo_n "checking what Android SDK version to use... " >&6; }
7557 # Check whether --with-sdk-version was given.
7558 if test "${with_sdk_version+set}" = set; then :
7559 withval=$with_sdk_version; aros_sdk_version="$withval"
7560 else
7561 aros_sdk_version="12"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7565 $as_echo "$aros_sdk_version" >&6; }
7567 if test "$aros_android_ndk" != "none"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7569 $as_echo_n "checking what Android NDK version to use... " >&6; }
7571 # Check whether --with-ndk-version was given.
7572 if test "${with_ndk_version+set}" = set; then :
7573 withval=$with_ndk_version; aros_ndk_version="$withval"
7574 else
7575 aros_ndk_version="9"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7579 $as_echo "$aros_ndk_version" >&6; }
7582 export PATH="$aros_android_sdk/tools:$PATH"
7583 # Extract the first word of "$android_tool", so it can be a program name with args.
7584 set dummy $android_tool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_path_android_tool+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 case $android_tool in
7591 [\\/]* | ?:[\\/]*)
7592 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7606 done
7607 done
7608 IFS=$as_save_IFS
7611 esac
7613 android_tool=$ac_cv_path_android_tool
7614 if test -n "$android_tool"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7616 $as_echo "$android_tool" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7623 if test "$android_tool" = ""; then
7624 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7627 aros_android_level=android-$aros_sdk_version
7628 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7629 echo "Platform $aros_android_level is not installed in your SDK"
7630 echo "Use --with-sdk-version=<API level number> to select another platform version"
7631 echo "You can check what plaform versions are installed in your SDK"
7632 echo "by examining contents of $aros_android_sdk/platforms directory"
7633 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7636 # Extract the first word of "ant", so it can be a program name with args.
7637 set dummy ant; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_path_ant+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 case $ant in
7644 [\\/]* | ?:[\\/]*)
7645 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7659 done
7660 done
7661 IFS=$as_save_IFS
7664 esac
7666 ant=$ac_cv_path_ant
7667 if test -n "$ant"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7669 $as_echo "$ant" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7676 if test "$ant" = ""; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7678 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7681 if test "$host_os" = "mingw32"; then
7682 android_tool="cmd //c $android_tool"
7686 esac
7688 #-----------------------------------------------------------------------------
7689 # External toolchains
7690 kernel_tool_prefix="none"
7691 aros_tool_prefix="none"
7692 elf_tool_prefix="${target_cpu}-elf-"
7694 # This is the target configuration switch.
7695 case "$target_os" in
7696 linux*)
7697 aros_target_arch="linux"
7698 aros_target_family="unix"
7699 case "$target_cpu" in
7700 *m68k*)
7701 aros_target_cpu="m68k"
7702 aros_object_format="m68kelf"
7703 aros_flavour="emulcompat"
7704 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7705 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7706 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7707 gcc_target_cpu="mc68000"
7709 *i?86*)
7710 aros_target_cpu="i386"
7711 aros_object_format="elf_i386"
7712 aros_flavour="emulation"
7713 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7714 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7715 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7716 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7717 aros_config_ldflags="-m32 -march=i486"
7718 aros_kernel_ldflags="-melf_i386"
7719 aros_default_wbdepth=8
7720 gcc_target_cpu="i386"
7721 pci_hidd_target="hidd-pci-linux"
7722 android_tool_dir_prefix="x86"
7723 android_tool_prefix="i686-android-linux"
7724 android_ndk_arch="x86"
7726 *x86_64*)
7727 aros_target_cpu="x86_64"
7728 aros_object_format="elf_x86_64"
7729 aros_flavour="emulation"
7730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7731 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7732 aros_default_wbdepth=8
7733 pci_hidd_target="hidd-pci-linux"
7735 *powerpc*)
7736 aros_target_cpu="ppc"
7737 aros_object_format="elf32ppc"
7738 aros_flavour="emulation"
7739 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7740 aros_default_wbdepth=8
7741 gcc_target_cpu="ppc"
7743 # TODO
7744 # Same as powerpc, but I need this for the nightly build to work again.
7745 # Actually, the nightly should be made working with powerpc target.
7746 # That just was too much work for the moment, another week or two.
7747 *ppc*)
7748 aros_target_cpu="ppc"
7749 aros_object_format="elf32ppc"
7750 aros_flavour="emulation"
7751 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7752 aros_default_wbdepth=8
7753 gcc_target_cpu="ppc"
7755 *arm*)
7756 aros_target_cpu="arm"
7757 aros_object_format="armelf_linux_eabi"
7758 aros_flavour="emulation"
7759 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7760 gcc_target_cpu="arm"
7761 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7762 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7763 aros_arch_libs="-laeabi"
7764 android_tool_dir_prefix="arm-linux-androideabi"
7765 android_tool_prefix="arm-linux-androideabi"
7766 android_ndk_arch="arm"
7767 kernel_tool_prefix="arm-linux-gnueabi-"
7770 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7772 esac
7773 case "$aros_target_variant" in
7774 android)
7776 if test "$android_ndk_arch" = ""; then
7777 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7780 aros_default_wbwidth=320
7781 aros_default_wbheight=480
7782 if test "$aros_android_ndk" = "none"; then
7783 aros_kernel_cflags="-mandroid"
7784 aros_kernel_ldflags="-mandroid"
7785 CFLAGS="-mandroid"
7786 else
7787 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7788 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7789 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7790 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7791 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7792 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7794 need_x11=no
7795 x11_hidd_target=kernel-hidd-androidgfx-kobj
7796 # Disable implicit PIC mode
7797 aros_target_cflags="$aros_target_cflags -fno-pic"
7798 kernel_tool_prefix="$android_tool_prefix-"
7800 esac
7804 aros_target_arch="pc"
7805 aros_shared_default="no"
7806 target_bootloader="grub2"
7807 case "$target_cpu" in
7808 *i?86*)
7809 aros_target_cpu="i386"
7812 if test "$aros_object_format" = "" ; then
7813 aros_object_format="elf_i386"
7815 aros_flavour="standalone"
7816 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7817 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7818 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7819 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7820 aros_config_ldflags="-m32 -march=i486"
7821 aros_kernel_ldflags="-melf_i386"
7822 aros_default_wbwidth=640
7823 aros_default_wbheight=480
7824 gcc_target_cpu="i386"
7826 *x86_64*)
7827 aros_target_cpu="x86_64"
7828 aros_serial_debug=1
7829 if test "$aros_object_format" = "" ; then
7830 aros_object_format="elf_x86_64"
7832 aros_flavour="standalone"
7833 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7834 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7835 aros_kernel_ldflags=""
7836 aros_default_wbwidth=640
7837 aros_default_wbheight=480
7840 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7842 esac
7845 prep)
7846 aros_target_arch="prep"
7847 aros_shared_default="no"
7848 aros_target_cpu="ppc"
7849 aros_object_format="elf32ppc"
7850 aros_flavour="ppcnative"
7851 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7852 aros_kernel_ldflags=""
7853 aros_default_wbwidth=640
7854 aros_default_wbheight=480
7855 gcc_target_cpu="ppc"
7858 freebsd*)
7859 aros_target_arch="freebsd"
7860 aros_target_family="unix"
7861 aros_target_cpu="i386"
7862 aros_flavour="emulation"
7863 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7864 gcc_target_cpu="i386"
7866 aros_target_strip_flags="-x"
7869 darwin*)
7870 aros_target_arch="darwin"
7871 aros_target_family="unix"
7872 aros_flavour="emulation"
7873 case "$target_cpu" in
7874 *i?86*)
7875 aros_ios_platform="iPhoneSimulator"
7876 aros_target_cpu="i386"
7877 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7878 aros_kernel_ldflags=""
7879 aros_macosx_version="10.4"
7880 aros_default_wbdepth=8
7881 gcc_target_cpu="i386"
7882 aros_object_format="elf_i386"
7883 aros_kernel_ar_flags="-cr"
7884 aros_target_strip_flags="-x"
7885 kernel_tool_flags="-m32"
7887 *x86_64*)
7888 aros_target_cpu="x86_64"
7889 aros_object_format="elf_x86_64"
7890 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7891 aros_macosx_version="10.6"
7892 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7893 aros_kernel_cflags="-m64"
7894 aros_kernel_ldflags="-m64"
7895 aros_target_cflags="-mcmodel=large"
7896 aros_default_wbdepth=8
7897 aros_kernel_ar="ar"
7898 aros_kernel_ar_flags="-cr"
7899 aros_kernel_ld="ld"
7900 aros_kernel_ranlib="ranlib"
7902 *ppc*)
7903 aros_target_cpu="ppc"
7904 aros_object_format="elf32ppc"
7905 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7906 aros_kernel_ldflags=""
7907 aros_macosx_version="10.0"
7908 aros_default_wbdepth=8
7909 gcc_target_cpu="ppc"
7910 aros_kernel_ar="ar"
7911 aros_kernel_ar_flags="-cr"
7912 aros_kernel_ld="ld -arch ppc"
7913 aros_kernel_ranlib="ranlib -arch ppc"
7914 kernel_tool_prefix="powerpc-apple-darwin10-"
7916 *arm*)
7917 aros_ios_platform="iPhoneOS"
7918 aros_target_cpu="arm"
7919 aros_object_format="armelf_linux_eabi"
7920 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7921 aros_arch_libs="-laeabi"
7922 aros_default_wbdepth=8
7923 gcc_target_cpu="arm"
7924 aros_kernel_ar="ar"
7925 aros_kernel_ar_flags="-cr"
7926 aros_kernel_ld="ld -arch arm"
7927 aros_kernel_ranlib="ranlib -arch arm"
7928 kernel_tool_prefix="arm-apple-darwin10-"
7929 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7932 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7934 esac
7935 case "$aros_target_variant" in
7936 ios)
7937 aros_ios_version="3.0"
7938 aros_default_wbwidth=320
7939 aros_default_wbheight=480
7940 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7941 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7942 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7943 need_x11=no
7944 # This is here because it may depend on iOS or SDK version
7945 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7946 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7947 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7950 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7951 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7953 esac
7956 dragonfly*)
7957 aros_target_arch="dragonfly"
7958 aros_target_family="unix"
7959 aros_flavour="emulation"
7960 case "$target_cpu" in
7961 *i?86*)
7962 aros_target_cpu="i386"
7963 aros_object_format="elf_i386"
7964 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7966 *x86_64*)
7967 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7968 aros_target_cpu="x86_64"
7969 aros_object_format="elf_x86_64"
7970 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7973 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7975 esac
7978 netbsd*)
7979 aros_target_arch="netbsd"
7980 aros_target_family="unix"
7981 case "$target_cpu" in
7982 *m68k*)
7983 aros_target_cpu="m68k"
7984 aros_object_format="m68kelf"
7985 aros_flavour="emulcompat"
7986 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7987 gcc_target_cpu="mc68000"
7989 *i?86*)
7990 aros_target_cpu="i386"
7991 aros_object_format="elf_i386"
7992 aros_flavour="emulation"
7993 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7994 aros_default_wbdepth=8
7995 gcc_target_cpu="i386"
7998 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8000 esac
8001 aros_target_genmap="-Wl,-M -Xlinker >"
8002 aros_flavour="emulation"
8003 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8006 openbsd*)
8007 aros_target_arch="openbsd"
8008 aros_target_family="unix"
8009 case "$target_cpu" in
8010 *i?86*)
8011 aros_target_cpu="i386"
8012 aros_object_format="elf_i386"
8013 aros_flavour="emulation"
8014 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8015 gcc_target_cpu="i386"
8018 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8020 esac
8021 aros_target_genmap="-Wl,-M -Xlinker >"
8022 aros_target_nm_flags="-u"
8023 aros_flavour="emulation"
8026 solaris*)
8027 aros_target_arch="solaris"
8028 aros_target_family="unix"
8029 case "$target_cpu" in
8030 *i?86*)
8031 aros_target_cpu="i386"
8032 aros_object_format="elf_i386"
8033 aros_flavour="emulation"
8034 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8035 aros_default_wbdepth=8
8036 gcc_target_cpu="i386"
8038 *sparc*)
8039 aros_target_cpu="sparc"
8040 aros_object_format="elf_sparc"
8041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8042 gcc_target_cpu="sparc"
8045 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8047 esac
8048 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8049 aros_flavour="emulation"
8052 morphos*)
8053 aros_target_arch="morphos"
8054 aros_shared_default="no"
8055 aros_target_cpu="ppc"
8056 aros_object_format="elf_ppc"
8057 aros_flavour="nativecompat"
8058 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8059 gcc_target_cpu="ppc"
8062 sam440)
8063 aros_target_arch="sam440"
8064 aros_shared_default="no"
8065 aros_target_cpu="ppc"
8066 aros_object_format="elf32ppc"
8067 aros_flavour="ppcnative"
8068 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8069 aros_kernel_ldflags=""
8070 aros_default_wbwidth=1024
8071 aros_default_wbheight=768
8072 aros_default_wbdepth=24
8073 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8074 gcc_target_cpu="powerpc"
8077 efika)
8078 aros_target_arch="efika"
8079 aros_shared_default="no"
8080 aros_target_cpu="arm"
8081 aros_object_format="armelf_linux_eabi"
8082 aros_flavour="standalone"
8083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8084 aros_kernel_ldflags=""
8085 aros_default_wbwidth=1024
8086 aros_default_wbheight=600
8087 aros_arch_libs="-laeabi"
8088 gcc_default_cpu="armv7-a"
8089 gcc_default_fpu="vfpv3"
8090 gcc_default_float_abi="softfp"
8091 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8092 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8095 chrp)
8096 aros_target_arch="chrp"
8097 aros_shared_default="no"
8098 aros_target_cpu="ppc"
8099 aros_object_format="elf32ppc"
8100 aros_flavour="ppcnative"
8101 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8102 aros_kernel_ldflags=""
8103 aros_default_wbwidth=640
8104 aros_default_wbheight=480
8105 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8106 gcc_target_cpu="powerpc"
8107 case "$aros_target_variant" in
8108 efika)
8109 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8111 esac
8114 amiga*)
8115 aros_target_arch="amiga"
8116 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8117 aros_shared_default="no"
8119 case "$target_cpu" in
8120 *m68k*)
8121 # Check whether --enable-amigaos_compliance was given.
8122 if test "${enable_amigaos_compliance+set}" = set; then :
8123 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8126 aros_enable_mmu=no
8127 aros_target_cpu="m68k"
8128 aros_object_format="m68kelf"
8129 aros_flavour="standcompat"
8130 gcc_target_cpu="m68000"
8131 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8132 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8133 # Needed to get the correct multilib
8134 aros_config_ldflags="-${gcc_target_cpu}"
8135 aros_shared_ldflags="-${gcc_target_cpu}"
8136 aros_kernel_ldflags="-${gcc_target_cpu}"
8137 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8138 aros_target_strip_flags="-R.comment --strip-debug"
8139 aros_default_wbwidth=640
8140 aros_default_wbheight=256
8141 aros_default_wbdepth=2
8143 *ppc*)
8144 aros_cpu="ppc"
8145 aros_flavour="native"
8146 gcc_target_cpu="ppc"
8149 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8151 esac
8154 mingw*)
8155 aros_target_arch="mingw32"
8156 aros_shared_default="no"
8157 aros_flavour="emulation"
8158 aros_shared_cflags=""
8159 need_crosstools="yes"
8160 need_dlopen="no"
8161 rescomp="windres"
8162 case "$target_cpu" in
8163 *i?86*)
8164 aros_target_cpu="i386"
8165 aros_object_format="elf_i386"
8166 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8167 aros_default_wbdepth=8
8168 gcc_target_cpu="i386"
8170 kernel_tool_prefix="i386-mingw32-"
8172 *x86_64*)
8173 aros_target_cpu="x86_64"
8174 aros_object_format="elf_x86_64"
8175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8176 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8177 aros_default_wbdepth=8
8178 kernel_tool_prefix="x86_64-w64-mingw32-"
8180 *arm*)
8181 aros_target_cpu="arm"
8182 aros_object_format="armelf_linux_eabi"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8184 aros_arch_libs="-laeabi"
8185 aros_default_wbdepth=8
8186 gcc_target_cpu="arm"
8187 gcc_default_float_abi="soft"
8188 kernel_tool_prefix="arm-mingw32ce-"
8189 aros_default_wbwidth=160
8190 aros_default_wbheight=160
8193 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8195 esac
8196 if test $host_os = "cygwin"; then
8197 aros_kernel_cflags="-mno-cygwin"
8200 pp*)
8201 aros_target_arch="pp"
8202 aros_shared_default="no"
8203 case "$target_cpu" in
8204 *m68k*)
8205 aros_target_cpu="m68k"
8206 aros_object_format="m68kelf"
8207 aros_flavour="palmnative"
8208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8209 aros_default_wbwidth=160
8210 aros_default_wbheight=160
8211 aros_default_wbdepth=1
8212 aros_target_ar_flags="cru"
8213 aros_compiler_libs="-lgcc1"
8214 aros_shared_default=no
8215 aros_shared_cflags="-fpic"
8216 aros_shared_aflags=""
8217 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8218 aros_kernel_ldflags="-Wl,-rpath,./lib"
8219 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8220 aros_debug_aflags=""
8221 aros_debug_ldflags="$aros_symbols_debug"
8222 aros_mungwall_debug="0"
8223 aros_modules_debug="0"
8224 gcc_target_cpu="mc68000"
8225 ignore_undefined_symbols="-ius"
8228 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8230 esac
8233 mac*)
8234 aros_target_arch="mac"
8235 aros_shared_default="no"
8236 case "$target_cpu" in
8237 *m68k*)
8238 aros_target_cpu="m68k"
8239 aros_object_format="m68kelf"
8240 aros_flavour="mac68knative"
8241 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8242 aros_default_wbwidth=512
8243 aros_default_wbheight=384
8244 aros_default_wbdepth=8
8245 aros_target_ar_flags="cru"
8246 aros_compiler_libs="-lgcc1"
8247 aros_shared_default=no
8248 aros_shared_cflags="-fpic"
8249 aros_shared_aflags=""
8250 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8251 aros_kernel_ldflags="-Wl,-rpath,./lib"
8252 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8253 aros_debug_aflags=""
8254 aros_debug_ldflags="$aros_symbols_debug"
8255 aros_mungwall_debug="0"
8256 aros_modules_debug="0"
8257 gcc_target_cpu="mc68000"
8258 ignore_undefined_symbols="-ius"
8261 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8263 esac
8267 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8269 esac
8271 #-----------------------------------------------------------------------------
8272 crosstools_guess=yes
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8275 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8277 # Check whether --with-kernel-toolchain-prefix was given.
8278 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8279 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8283 $as_echo "$kernel_tool_prefix" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8286 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8288 # Check whether --with-elf-toolchain-prefix was given.
8289 if test "${with_elf_toolchain_prefix+set}" = set; then :
8290 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8291 crosstools_guess=no
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8295 $as_echo "$elf_tool_prefix" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8298 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8300 # Check whether --with-aros-toolchain was given.
8301 if test "${with_aros_toolchain+set}" = set; then :
8302 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8303 crosstools_guess=no
8306 if test "$aros_tool_prefix" = "yes" ; then
8307 aros_tool_prefix=$aros_target_cpu-aros-
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8310 $as_echo "$aros_tool_prefix" >&6; }
8312 #-----------------------------------------------------------------------------
8313 # Checking if we should build crosstools..
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8315 $as_echo_n "checking whether to build crosstools... " >&6; }
8316 # Check whether --enable-crosstools was given.
8317 if test "${enable_crosstools+set}" = set; then :
8318 enableval=$enable_crosstools; crosstools="$enableval"
8319 else
8320 crosstools="$crosstools_guess"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8324 $as_echo "$crosstools" >&6; }
8326 if test "${crosstools}" = "yes"; then
8327 if test "${crosstools_guess}" = "no"; then
8328 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8333 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8335 # Check whether --with-aros-toolchain-install was given.
8336 if test "${with_aros_toolchain_install+set}" = set; then :
8337 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8340 if test "x$aros_toolchain_install" = "x"; then
8341 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8342 else
8343 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8344 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8347 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8350 # Now process extra architecture-specific options.
8351 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8352 # as well as floating-point ABI.
8353 case "$aros_target_cpu" in
8354 arm)
8355 if test "$gcc_default_cpu" = ""; then
8356 gcc_default_cpu="armv6"
8358 if test "$gcc_default_fpu" = ""; then
8359 gcc_default_fpu="vfp"
8361 if test "$gcc_default_float_abi" = ""; then
8362 gcc_default_float_abi="softfp"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8366 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8368 # Check whether --with-cpu was given.
8369 if test "${with_cpu+set}" = set; then :
8370 withval=$with_cpu; aros_gcc_cpu="$withval"
8371 else
8372 aros_gcc_cpu=$gcc_default_cpu
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8376 $as_echo "$aros_gcc_cpu" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8379 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8381 # Check whether --with-fpu was given.
8382 if test "${with_fpu+set}" = set; then :
8383 withval=$with_fpu; aros_gcc_fpu="$withval"
8384 else
8385 aros_gcc_fpu=$gcc_default_fpu
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8389 $as_echo "$aros_gcc_fpu" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8392 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8394 # Check whether --with-float was given.
8395 if test "${with_float+set}" = set; then :
8396 withval=$with_float; aros_gcc_float_abi="$withval"
8397 else
8398 aros_gcc_float_abi=$gcc_default_float_abi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8402 $as_echo "$aros_gcc_float_abi" >&6; }
8404 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"
8405 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"
8407 esac
8409 # Some formats need custom ELF specs.
8410 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8411 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8412 elf_specs_in=config/${aros_object_format}-specs.in
8413 else
8414 elf_specs_in=config/elf-specs.in
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8418 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8420 # Check whether --with-aros-gcc was given.
8421 if test "${with_aros_gcc+set}" = set; then :
8422 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8423 else
8424 aros_gcc_version=""
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8428 $as_echo "$aros_gcc_version" >&6; }
8430 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8431 # Since we override specs, we may need to put these defines there
8432 if test "$gcc_target_cpu" != ""; then
8433 gcc_target_cpu="-D__${gcc_target_cpu}__"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8437 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8439 # Check whether --with-portssources was given.
8440 if test "${with_portssources+set}" = set; then :
8441 withval=$with_portssources; with_portssrcdir=$withval
8442 else
8443 with_portssrcdir="default"
8446 if test "$with_portssrcdir" = "default"; then
8447 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8448 else
8449 AROS_PORTSSRCDIR="$with_portssrcdir"
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8452 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8455 $as_echo_n "checking which bootloader to use... " >&6; }
8457 # Check whether --with-bootloader was given.
8458 if test "${with_bootloader+set}" = set; then :
8459 withval=$with_bootloader; target_bootloader=$withval
8460 else
8461 target_bootloader=$target_bootloader
8464 if test "$target_bootloader" = "none"; then
8465 aros_target_bootloader=""
8466 else
8467 aros_target_bootloader="$target_bootloader"
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8470 $as_echo "$target_bootloader" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8473 $as_echo_n "checking which icon-set to use... " >&6; }
8475 # Check whether --with-iconset was given.
8476 if test "${with_iconset+set}" = set; then :
8477 withval=$with_iconset; target_iconset=$withval
8478 else
8479 target_iconset="default"
8482 if test "$target_iconset" = "default"; then
8483 aros_target_iconset="Gorilla"
8484 target_iconset="default (Gorilla)"
8485 else
8486 aros_target_iconset="$target_iconset"
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8489 $as_echo "$target_iconset" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8492 $as_echo_n "checking which GUI Theme to use... " >&6; }
8494 # Check whether --with-theme was given.
8495 if test "${with_theme+set}" = set; then :
8496 withval=$with_theme; target_guitheme=$withval
8497 else
8498 target_guitheme="default"
8501 if test "$target_guitheme" = "default"; then
8502 aros_target_guitheme="Ice"
8503 else
8504 aros_target_guitheme="$target_guitheme"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8507 $as_echo "$aros_target_guitheme" >&6; }
8509 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8510 # for target code)
8511 cross_compiling=no
8513 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8514 cross_compiling=yes
8517 if test "$aros_host_cpu" == "x86_64" ; then
8518 if test "$aros_target_cpu" == "i386" ; then
8519 cross_compiling=no
8523 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8524 if test "$aros_host_arch" != "$aros_target_arch" ; then
8525 cross_compiling=yes
8527 else
8528 if test "$cross_compile_native" ; then
8529 cross_compiling=yes
8533 if test "$cross_compiling" = "no" ; then
8534 kernel_tool_prefix=""
8537 #######################################################################
8538 ## Compute what toolchains to use, and their paths ##
8539 #######################################################################
8541 # This takes, as input:
8542 # crosstools {yes,no}
8543 # aros_gcc_version {default,[version]}
8544 # kernel_tool_prefix {none,[some-arch-os-]}
8545 # aros_tool_prefix ${target_cpu}-aros-
8547 # The output is
8548 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8549 # Where the 'kernel' binaries are located
8550 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8551 # Where the 'target' binaries are located
8552 # (not the symlink farm - that is aros_target_*!)
8554 # The rules are:
8555 # if crosstools then
8556 # if kernel_tools_prefix = "no-kernel-prefix-"
8557 # aros_kernel_* = crosstools cc paths
8558 # aros_kernel_cc = elf cc wrapper around crosstools cc
8559 # else
8560 # VALIDATE(${kernel_tools_prefix}*)
8561 # aros_kernel_* = ${kernel_tools_prefix}*
8562 # if ${kernel_tools_prefix}cc is an AROS gcc
8563 # aros_kernel_cc = ${kernel_tools_prefix}cc
8564 # else
8565 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8566 # fi
8567 # fi
8569 # orig_target_* = aros built crosstools
8570 # orig_target_cc = elf cc wrapper around crosstools cc
8571 # else
8572 # VALIDATE(${kernel_tools_prefix}*)
8574 # orig_target_* = aros_kernel_*
8575 # if aros_kernel_cc is an AROS gcc
8576 # orig_target_cc = aros_kernel_cc
8577 # else
8578 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8579 # fi
8580 # fi
8582 target_tool_prefix="${target_cpu}-aros-"
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8585 $as_echo_n "checking which kernel tools... " >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8587 $as_echo "$kernel_tool_prefix" >&6; };
8589 if test "$kernel_tool_prefix" = "none" ; then
8590 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8591 as_fn_error $? "--with-kernel-tool-prefix= is required for this arch" "$LINENO" 5
8593 else
8594 # Kernel tools required - find them
8595 # Note that 'normally', aros_kernel_* overrides will
8596 # empty, unless specified in the per-arch sections above.
8598 if test "$aros_kernel_cpp" = ""; then
8599 if test "$cross_compiling" = "yes" ; then
8600 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8601 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 case $aros_kernel_cpp in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8623 done
8624 done
8625 IFS=$as_save_IFS
8628 esac
8630 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8631 if test -n "$aros_kernel_cpp"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8633 $as_echo "$aros_kernel_cpp" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8640 else
8641 if test "$GCC" = "yes"; then
8642 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8643 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8644 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 case $aros_kernel_cpp in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in `dirname $aros_gcc_cpp`
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8671 esac
8673 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8674 if test -n "$aros_kernel_cpp"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8676 $as_echo "$aros_kernel_cpp" >&6; }
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8684 if test "$aros_kernel_cpp" = ""; then
8685 # Extract the first word of "cpp", so it can be a program name with args.
8686 set dummy cpp; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 case $aros_kernel_cpp in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8713 esac
8715 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8716 if test -n "$aros_kernel_cpp"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8718 $as_echo "$aros_kernel_cpp" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8727 else
8728 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8729 set dummy $aros_kernel_cpp; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 case $aros_kernel_cpp in
8736 [\\/]* | ?:[\\/]*)
8737 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8751 done
8752 done
8753 IFS=$as_save_IFS
8756 esac
8758 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8759 if test -n "$aros_kernel_cpp"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8761 $as_echo "$aros_kernel_cpp" >&6; }
8762 else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8770 if test "$aros_kernel_cpp" = ""; then
8771 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8773 if test "x$aros_kernel_cc" = "x"; then
8774 aros_kernel_cc=${kernel_tool_prefix}gcc
8777 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8778 if test "$cross_compiling" = "yes" ; then
8779 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8780 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 case $aros_kernel_cc in
8787 [\\/]* | ?:[\\/]*)
8788 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in $PATH
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8798 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 break 2
8802 done
8803 done
8804 IFS=$as_save_IFS
8807 esac
8809 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8810 if test -n "$aros_kernel_cc"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8812 $as_echo "$aros_kernel_cc" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8819 else
8820 if test "$GCC" = "yes"; then
8821 aros_gcc_cc=`$CC -print-prog-name=cc`
8822 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8823 set dummy `basename $aros_gcc_cc`; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 case $aros_kernel_cc in
8830 [\\/]* | ?:[\\/]*)
8831 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in `dirname $aros_gcc_cc`
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8845 done
8846 done
8847 IFS=$as_save_IFS
8850 esac
8852 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8853 if test -n "$aros_kernel_cc"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8855 $as_echo "$aros_kernel_cc" >&6; }
8856 else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8863 if test "$aros_kernel_cc" = ""; then
8864 # Extract the first word of "cc", so it can be a program name with args.
8865 set dummy cc; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $aros_kernel_cc in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8892 esac
8894 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8895 if test -n "$aros_kernel_cc"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8897 $as_echo "$aros_kernel_cc" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8906 else
8907 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8908 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $aros_kernel_cc in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8926 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8930 done
8931 done
8932 IFS=$as_save_IFS
8935 esac
8937 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8938 if test -n "$aros_kernel_cc"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8940 $as_echo "$aros_kernel_cc" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8949 if test "$aros_kernel_cc" = ""; then
8950 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8952 if test "x$aros_kernel_cxx" = "x"; then
8953 aros_kernel_cxx=${kernel_tool_prefix}g++
8956 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8957 if test "$cross_compiling" = "yes" ; then
8958 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8959 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 case $aros_kernel_cxx in
8966 [\\/]* | ?:[\\/]*)
8967 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8977 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8981 done
8982 done
8983 IFS=$as_save_IFS
8986 esac
8988 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8989 if test -n "$aros_kernel_cxx"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8991 $as_echo "$aros_kernel_cxx" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8998 else
8999 if test "$GCC" = "yes"; then
9000 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9001 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9002 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 case $aros_kernel_cxx in
9009 [\\/]* | ?:[\\/]*)
9010 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in `dirname $aros_gcc_cxx`
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 break 2
9024 done
9025 done
9026 IFS=$as_save_IFS
9029 esac
9031 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9032 if test -n "$aros_kernel_cxx"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9034 $as_echo "$aros_kernel_cxx" >&6; }
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9042 if test "$aros_kernel_cxx" = ""; then
9043 # Extract the first word of "cxx", so it can be a program name with args.
9044 set dummy cxx; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 case $aros_kernel_cxx in
9051 [\\/]* | ?:[\\/]*)
9052 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 break 2
9066 done
9067 done
9068 IFS=$as_save_IFS
9071 esac
9073 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9074 if test -n "$aros_kernel_cxx"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9076 $as_echo "$aros_kernel_cxx" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9085 else
9086 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9087 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 case $aros_kernel_cxx in
9094 [\\/]* | ?:[\\/]*)
9095 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9109 done
9110 done
9111 IFS=$as_save_IFS
9114 esac
9116 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9117 if test -n "$aros_kernel_cxx"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9119 $as_echo "$aros_kernel_cxx" >&6; }
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9128 # If it's set, make sure it's really there
9129 if test "x$aros_kernel_cxx" != "x" ; then
9130 if test "$aros_kernel_cxx" = ""; then
9131 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9135 if test "$aros_kernel_ld" = ""; then
9136 if test "$cross_compiling" = "yes" ; then
9137 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9138 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 case $aros_kernel_ld in
9145 [\\/]* | ?:[\\/]*)
9146 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9162 IFS=$as_save_IFS
9165 esac
9167 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9168 if test -n "$aros_kernel_ld"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9170 $as_echo "$aros_kernel_ld" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9177 else
9178 if test "$GCC" = "yes"; then
9179 aros_gcc_ld=`$CC -print-prog-name=ld`
9180 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9181 set dummy `basename $aros_gcc_ld`; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 case $aros_kernel_ld in
9188 [\\/]* | ?:[\\/]*)
9189 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in `dirname $aros_gcc_ld`
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9203 done
9204 done
9205 IFS=$as_save_IFS
9208 esac
9210 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9211 if test -n "$aros_kernel_ld"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9213 $as_echo "$aros_kernel_ld" >&6; }
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9221 if test "$aros_kernel_ld" = ""; then
9222 # Extract the first word of "ld", so it can be a program name with args.
9223 set dummy ld; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 case $aros_kernel_ld in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9250 esac
9252 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9253 if test -n "$aros_kernel_ld"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9255 $as_echo "$aros_kernel_ld" >&6; }
9256 else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9264 else
9265 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9266 set dummy $aros_kernel_ld; ac_word=$2
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 case $aros_kernel_ld in
9273 [\\/]* | ?:[\\/]*)
9274 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9293 esac
9295 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9296 if test -n "$aros_kernel_ld"; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9298 $as_echo "$aros_kernel_ld" >&6; }
9299 else
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9307 if test "$aros_kernel_ld" = ""; then
9308 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9311 if test "$aros_kernel_as" = ""; then
9312 if test "$cross_compiling" = "yes" ; then
9313 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9314 set dummy ${kernel_tool_prefix}as; ac_word=$2
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316 $as_echo_n "checking for $ac_word... " >&6; }
9317 if ${ac_cv_path_aros_kernel_as+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 case $aros_kernel_as in
9321 [\\/]* | ?:[\\/]*)
9322 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9336 done
9337 done
9338 IFS=$as_save_IFS
9341 esac
9343 aros_kernel_as=$ac_cv_path_aros_kernel_as
9344 if test -n "$aros_kernel_as"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9346 $as_echo "$aros_kernel_as" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9353 else
9354 if test "$GCC" = "yes"; then
9355 aros_gcc_as=`$CC -print-prog-name=as`
9356 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9357 set dummy `basename $aros_gcc_as`; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if ${ac_cv_path_aros_kernel_as+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 case $aros_kernel_as in
9364 [\\/]* | ?:[\\/]*)
9365 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in `dirname $aros_gcc_as`
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 break 2
9379 done
9380 done
9381 IFS=$as_save_IFS
9384 esac
9386 aros_kernel_as=$ac_cv_path_aros_kernel_as
9387 if test -n "$aros_kernel_as"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9389 $as_echo "$aros_kernel_as" >&6; }
9390 else
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9397 if test "$aros_kernel_as" = ""; then
9398 # Extract the first word of "as", so it can be a program name with args.
9399 set dummy as; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_path_aros_kernel_as+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 case $aros_kernel_as in
9406 [\\/]* | ?:[\\/]*)
9407 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9423 IFS=$as_save_IFS
9426 esac
9428 aros_kernel_as=$ac_cv_path_aros_kernel_as
9429 if test -n "$aros_kernel_as"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9431 $as_echo "$aros_kernel_as" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9440 else
9441 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9442 set dummy $aros_kernel_as; ac_word=$2
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444 $as_echo_n "checking for $ac_word... " >&6; }
9445 if ${ac_cv_path_aros_kernel_as+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 case $aros_kernel_as in
9449 [\\/]* | ?:[\\/]*)
9450 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 for as_dir in $PATH
9456 IFS=$as_save_IFS
9457 test -z "$as_dir" && as_dir=.
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9460 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 break 2
9464 done
9465 done
9466 IFS=$as_save_IFS
9469 esac
9471 aros_kernel_as=$ac_cv_path_aros_kernel_as
9472 if test -n "$aros_kernel_as"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9474 $as_echo "$aros_kernel_as" >&6; }
9475 else
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9483 if test "$aros_kernel_as" = ""; then
9484 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9487 if test "$aros_kernel_ar" = ""; then
9488 if test "$cross_compiling" = "yes" ; then
9489 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9490 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 case $aros_kernel_ar in
9497 [\\/]* | ?:[\\/]*)
9498 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9512 done
9513 done
9514 IFS=$as_save_IFS
9517 esac
9519 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9520 if test -n "$aros_kernel_ar"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9522 $as_echo "$aros_kernel_ar" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9529 else
9530 if test "$GCC" = "yes"; then
9531 aros_gcc_ar=`$CC -print-prog-name=ar`
9532 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9533 set dummy `basename $aros_gcc_ar`; ac_word=$2
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535 $as_echo_n "checking for $ac_word... " >&6; }
9536 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 case $aros_kernel_ar in
9540 [\\/]* | ?:[\\/]*)
9541 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in `dirname $aros_gcc_ar`
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9560 esac
9562 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9563 if test -n "$aros_kernel_ar"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9565 $as_echo "$aros_kernel_ar" >&6; }
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9573 if test "$aros_kernel_ar" = ""; then
9574 # Extract the first word of "ar", so it can be a program name with args.
9575 set dummy ar; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 case $aros_kernel_ar in
9582 [\\/]* | ?:[\\/]*)
9583 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9589 IFS=$as_save_IFS
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 break 2
9597 done
9598 done
9599 IFS=$as_save_IFS
9602 esac
9604 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9605 if test -n "$aros_kernel_ar"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9607 $as_echo "$aros_kernel_ar" >&6; }
9608 else
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9616 else
9617 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9618 set dummy $aros_kernel_ar; ac_word=$2
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9620 $as_echo_n "checking for $ac_word... " >&6; }
9621 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 case $aros_kernel_ar in
9625 [\\/]* | ?:[\\/]*)
9626 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 break 2
9640 done
9641 done
9642 IFS=$as_save_IFS
9645 esac
9647 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9648 if test -n "$aros_kernel_ar"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9650 $as_echo "$aros_kernel_ar" >&6; }
9651 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9659 if test "$aros_kernel_ar" = ""; then
9660 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9663 if test "$aros_kernel_ranlib" = ""; then
9664 if test "$cross_compiling" = "yes" ; then
9665 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9666 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 case $aros_kernel_ranlib in
9673 [\\/]* | ?:[\\/]*)
9674 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 break 2
9688 done
9689 done
9690 IFS=$as_save_IFS
9693 esac
9695 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9696 if test -n "$aros_kernel_ranlib"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9698 $as_echo "$aros_kernel_ranlib" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9705 else
9706 if test "$GCC" = "yes"; then
9707 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9708 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9709 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 case $aros_kernel_ranlib in
9716 [\\/]* | ?:[\\/]*)
9717 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in `dirname $aros_gcc_ranlib`
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9736 esac
9738 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9739 if test -n "$aros_kernel_ranlib"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9741 $as_echo "$aros_kernel_ranlib" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9749 if test "$aros_kernel_ranlib" = ""; then
9750 # Extract the first word of "ranlib", so it can be a program name with args.
9751 set dummy ranlib; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 case $aros_kernel_ranlib in
9758 [\\/]* | ?:[\\/]*)
9759 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9778 esac
9780 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9781 if test -n "$aros_kernel_ranlib"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9783 $as_echo "$aros_kernel_ranlib" >&6; }
9784 else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9792 else
9793 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9794 set dummy $aros_kernel_ranlib; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 case $aros_kernel_ranlib in
9801 [\\/]* | ?:[\\/]*)
9802 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9816 done
9817 done
9818 IFS=$as_save_IFS
9821 esac
9823 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9824 if test -n "$aros_kernel_ranlib"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9826 $as_echo "$aros_kernel_ranlib" >&6; }
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9835 if test "$aros_kernel_ranlib" = ""; then
9836 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9839 if test "$aros_kernel_nm" = ""; then
9840 if test "$cross_compiling" = "yes" ; then
9841 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9842 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 case $aros_kernel_nm in
9849 [\\/]* | ?:[\\/]*)
9850 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9869 esac
9871 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9872 if test -n "$aros_kernel_nm"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9874 $as_echo "$aros_kernel_nm" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9881 else
9882 if test "$GCC" = "yes"; then
9883 aros_gcc_nm=`$CC -print-prog-name=nm`
9884 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9885 set dummy `basename $aros_gcc_nm`; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 case $aros_kernel_nm in
9892 [\\/]* | ?:[\\/]*)
9893 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in `dirname $aros_gcc_nm`
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9907 done
9908 done
9909 IFS=$as_save_IFS
9912 esac
9914 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9915 if test -n "$aros_kernel_nm"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9917 $as_echo "$aros_kernel_nm" >&6; }
9918 else
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 $as_echo "no" >&6; }
9925 if test "$aros_kernel_nm" = ""; then
9926 # Extract the first word of "nm", so it can be a program name with args.
9927 set dummy nm; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 case $aros_kernel_nm in
9934 [\\/]* | ?:[\\/]*)
9935 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in $PATH
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9945 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 break 2
9949 done
9950 done
9951 IFS=$as_save_IFS
9954 esac
9956 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9957 if test -n "$aros_kernel_nm"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9959 $as_echo "$aros_kernel_nm" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9968 else
9969 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9970 set dummy $aros_kernel_nm; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 case $aros_kernel_nm in
9977 [\\/]* | ?:[\\/]*)
9978 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9992 done
9993 done
9994 IFS=$as_save_IFS
9997 esac
9999 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10000 if test -n "$aros_kernel_nm"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10002 $as_echo "$aros_kernel_nm" >&6; }
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10011 if test "$aros_kernel_nm" = ""; then
10012 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10015 if test "$aros_kernel_strip" = ""; then
10016 if test "$cross_compiling" = "yes" ; then
10017 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10018 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 case $aros_kernel_strip in
10025 [\\/]* | ?:[\\/]*)
10026 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10042 IFS=$as_save_IFS
10045 esac
10047 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10048 if test -n "$aros_kernel_strip"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10050 $as_echo "$aros_kernel_strip" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10057 else
10058 if test "$GCC" = "yes"; then
10059 aros_gcc_strip=`$CC -print-prog-name=strip`
10060 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10061 set dummy `basename $aros_gcc_strip`; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 case $aros_kernel_strip in
10068 [\\/]* | ?:[\\/]*)
10069 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in `dirname $aros_gcc_strip`
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10083 done
10084 done
10085 IFS=$as_save_IFS
10088 esac
10090 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10091 if test -n "$aros_kernel_strip"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10093 $as_echo "$aros_kernel_strip" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10101 if test "$aros_kernel_strip" = ""; then
10102 # Extract the first word of "strip", so it can be a program name with args.
10103 set dummy strip; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 case $aros_kernel_strip in
10110 [\\/]* | ?:[\\/]*)
10111 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10121 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 break 2
10125 done
10126 done
10127 IFS=$as_save_IFS
10130 esac
10132 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10133 if test -n "$aros_kernel_strip"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10135 $as_echo "$aros_kernel_strip" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10144 else
10145 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10146 set dummy $aros_kernel_strip; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 case $aros_kernel_strip in
10153 [\\/]* | ?:[\\/]*)
10154 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10164 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10168 done
10169 done
10170 IFS=$as_save_IFS
10173 esac
10175 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10176 if test -n "$aros_kernel_strip"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10178 $as_echo "$aros_kernel_strip" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10187 if test "$aros_kernel_strip" = ""; then
10188 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10191 # Objcopy and objdump are not required for the kernel
10192 # toolchain on many architectures.
10193 # So we'll look for them, but not make them strictly required.
10195 if test "$aros_kernel_objcopy" = ""; then
10196 if test "$cross_compiling" = "yes" ; then
10197 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10198 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 case $aros_kernel_objcopy in
10205 [\\/]* | ?:[\\/]*)
10206 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10220 done
10221 done
10222 IFS=$as_save_IFS
10225 esac
10227 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10228 if test -n "$aros_kernel_objcopy"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10230 $as_echo "$aros_kernel_objcopy" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10237 else
10238 if test "$GCC" = "yes"; then
10239 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10240 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10241 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 case $aros_kernel_objcopy in
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in `dirname $aros_gcc_objcopy`
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10263 done
10264 done
10265 IFS=$as_save_IFS
10268 esac
10270 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10271 if test -n "$aros_kernel_objcopy"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10273 $as_echo "$aros_kernel_objcopy" >&6; }
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10281 if test "$aros_kernel_objcopy" = ""; then
10282 # Extract the first word of "objcopy", so it can be a program name with args.
10283 set dummy objcopy; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 case $aros_kernel_objcopy in
10290 [\\/]* | ?:[\\/]*)
10291 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10301 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10305 done
10306 done
10307 IFS=$as_save_IFS
10310 esac
10312 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10313 if test -n "$aros_kernel_objcopy"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10315 $as_echo "$aros_kernel_objcopy" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10324 else
10325 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10326 set dummy $aros_kernel_objcopy; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 case $aros_kernel_objcopy in
10333 [\\/]* | ?:[\\/]*)
10334 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10348 done
10349 done
10350 IFS=$as_save_IFS
10353 esac
10355 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10356 if test -n "$aros_kernel_objcopy"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10358 $as_echo "$aros_kernel_objcopy" >&6; }
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10368 if test "$aros_kernel_objdump" = ""; then
10369 if test "$cross_compiling" = "yes" ; then
10370 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10371 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 case $aros_kernel_objdump in
10378 [\\/]* | ?:[\\/]*)
10379 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10389 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10393 done
10394 done
10395 IFS=$as_save_IFS
10398 esac
10400 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10401 if test -n "$aros_kernel_objdump"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10403 $as_echo "$aros_kernel_objdump" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10410 else
10411 if test "$GCC" = "yes"; then
10412 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10413 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10414 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 case $aros_kernel_objdump in
10421 [\\/]* | ?:[\\/]*)
10422 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in `dirname $aros_gcc_objdump`
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10436 done
10437 done
10438 IFS=$as_save_IFS
10441 esac
10443 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10444 if test -n "$aros_kernel_objdump"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10446 $as_echo "$aros_kernel_objdump" >&6; }
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10454 if test "$aros_kernel_objdump" = ""; then
10455 # Extract the first word of "objdump", so it can be a program name with args.
10456 set dummy objdump; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 case $aros_kernel_objdump in
10463 [\\/]* | ?:[\\/]*)
10464 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10474 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10478 done
10479 done
10480 IFS=$as_save_IFS
10483 esac
10485 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10486 if test -n "$aros_kernel_objdump"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10488 $as_echo "$aros_kernel_objdump" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10497 else
10498 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10499 set dummy $aros_kernel_objdump; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 case $aros_kernel_objdump in
10506 [\\/]* | ?:[\\/]*)
10507 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10521 done
10522 done
10523 IFS=$as_save_IFS
10526 esac
10528 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10529 if test -n "$aros_kernel_objdump"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10531 $as_echo "$aros_kernel_objdump" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10540 if test "x${crosstools}" != "xyes" ; then
10541 if test "$aros_kernel_objcopy" = ""; then
10542 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10544 if test "$aros_kernel_objdump" = ""; then
10545 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10551 $as_echo_n "checking which target tools to use... " >&6; }
10552 if test "$crosstools" = "yes"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10554 $as_echo "$target_tool_prefix" >&6; }
10555 # We are are building AROS crosstools
10556 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10557 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10558 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10559 orig_target_cpp="${tmp_tool_prefix}cpp"
10560 orig_target_ld="${tmp_tool_prefix}ld"
10561 orig_target_as="${tmp_tool_prefix}as"
10562 orig_target_ar="${tmp_tool_prefix}ar"
10563 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10564 orig_target_nm="${tmp_tool_prefix}nm"
10565 orig_target_strip="${tmp_tool_prefix}strip"
10566 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10567 orig_target_objdump="${tmp_tool_prefix}objdump"
10568 else
10569 # Determine whether AROS or ELF tools should be used
10570 if test "$aros_tool_prefix" = "none"; then
10571 aros_tool_prefix="${elf_tool_prefix}"
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10575 $as_echo "$aros_tool_prefix" >&6; }
10576 # We are *not* building AROS crosstools - use the AROS or ELF tools
10578 if test "${aros_tool_prefix}cpp" = ""; then
10579 if test "$cross_compiling" = "yes" ; then
10580 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10581 set dummy ${target_tool_prefix}cpp; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_path_orig_target_cpp+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 case $orig_target_cpp in
10588 [\\/]* | ?:[\\/]*)
10589 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10599 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10603 done
10604 done
10605 IFS=$as_save_IFS
10608 esac
10610 orig_target_cpp=$ac_cv_path_orig_target_cpp
10611 if test -n "$orig_target_cpp"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10613 $as_echo "$orig_target_cpp" >&6; }
10614 else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10620 else
10621 if test "$GCC" = "yes"; then
10622 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10623 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10624 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if ${ac_cv_path_orig_target_cpp+:} false; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 case $orig_target_cpp in
10631 [\\/]* | ?:[\\/]*)
10632 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in `dirname $aros_gcc_cpp`
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10642 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10646 done
10647 done
10648 IFS=$as_save_IFS
10651 esac
10653 orig_target_cpp=$ac_cv_path_orig_target_cpp
10654 if test -n "$orig_target_cpp"; then
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10656 $as_echo "$orig_target_cpp" >&6; }
10657 else
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 $as_echo "no" >&6; }
10664 if test "$orig_target_cpp" = ""; then
10665 # Extract the first word of "cpp", so it can be a program name with args.
10666 set dummy cpp; ac_word=$2
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10668 $as_echo_n "checking for $ac_word... " >&6; }
10669 if ${ac_cv_path_orig_target_cpp+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 case $orig_target_cpp in
10673 [\\/]* | ?:[\\/]*)
10674 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10688 done
10689 done
10690 IFS=$as_save_IFS
10693 esac
10695 orig_target_cpp=$ac_cv_path_orig_target_cpp
10696 if test -n "$orig_target_cpp"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10698 $as_echo "$orig_target_cpp" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10707 else
10708 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10709 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_orig_target_cpp+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 case $orig_target_cpp in
10716 [\\/]* | ?:[\\/]*)
10717 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10736 esac
10738 orig_target_cpp=$ac_cv_path_orig_target_cpp
10739 if test -n "$orig_target_cpp"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10741 $as_echo "$orig_target_cpp" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10750 if test "$orig_target_cpp" = ""; then
10751 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10754 if test "${aros_tool_prefix}gcc" = ""; then
10755 if test "$cross_compiling" = "yes" ; then
10756 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10757 set dummy ${target_tool_prefix}gcc; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if ${ac_cv_path_orig_target_cc+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 case $orig_target_cc in
10764 [\\/]* | ?:[\\/]*)
10765 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10775 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10779 done
10780 done
10781 IFS=$as_save_IFS
10784 esac
10786 orig_target_cc=$ac_cv_path_orig_target_cc
10787 if test -n "$orig_target_cc"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10789 $as_echo "$orig_target_cc" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10796 else
10797 if test "$GCC" = "yes"; then
10798 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10799 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10800 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_path_orig_target_cc+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 case $orig_target_cc in
10807 [\\/]* | ?:[\\/]*)
10808 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in `dirname $aros_gcc_gcc`
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10818 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 break 2
10822 done
10823 done
10824 IFS=$as_save_IFS
10827 esac
10829 orig_target_cc=$ac_cv_path_orig_target_cc
10830 if test -n "$orig_target_cc"; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10832 $as_echo "$orig_target_cc" >&6; }
10833 else
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10840 if test "$orig_target_cc" = ""; then
10841 # Extract the first word of "gcc", so it can be a program name with args.
10842 set dummy gcc; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_path_orig_target_cc+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 case $orig_target_cc in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10864 done
10865 done
10866 IFS=$as_save_IFS
10869 esac
10871 orig_target_cc=$ac_cv_path_orig_target_cc
10872 if test -n "$orig_target_cc"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10874 $as_echo "$orig_target_cc" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10883 else
10884 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10885 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_path_orig_target_cc+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 case $orig_target_cc in
10892 [\\/]* | ?:[\\/]*)
10893 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10903 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10912 esac
10914 orig_target_cc=$ac_cv_path_orig_target_cc
10915 if test -n "$orig_target_cc"; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10917 $as_echo "$orig_target_cc" >&6; }
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10926 if test "$orig_target_cc" = ""; then
10927 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10929 if test "x$orig_target_cxx" != "x" ; then
10931 if test "${aros_tool_prefix}g++" = ""; then
10932 if test "$cross_compiling" = "yes" ; then
10933 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
10934 set dummy ${target_tool_prefix}g++; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_path_orig_target_cxx+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 case $orig_target_cxx in
10941 [\\/]* | ?:[\\/]*)
10942 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10956 done
10957 done
10958 IFS=$as_save_IFS
10961 esac
10963 orig_target_cxx=$ac_cv_path_orig_target_cxx
10964 if test -n "$orig_target_cxx"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
10966 $as_echo "$orig_target_cxx" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10973 else
10974 if test "$GCC" = "yes"; then
10975 aros_gcc_g++=`$CC -print-prog-name=g++`
10976 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
10977 set dummy `basename $aros_gcc_g++`; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if ${ac_cv_path_orig_target_cxx+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 case $orig_target_cxx in
10984 [\\/]* | ?:[\\/]*)
10985 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989 for as_dir in `dirname $aros_gcc_g++`
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10999 done
11000 done
11001 IFS=$as_save_IFS
11004 esac
11006 orig_target_cxx=$ac_cv_path_orig_target_cxx
11007 if test -n "$orig_target_cxx"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11009 $as_echo "$orig_target_cxx" >&6; }
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11017 if test "$orig_target_cxx" = ""; then
11018 # Extract the first word of "g++", so it can be a program name with args.
11019 set dummy g++; ac_word=$2
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021 $as_echo_n "checking for $ac_word... " >&6; }
11022 if ${ac_cv_path_orig_target_cxx+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 case $orig_target_cxx in
11026 [\\/]* | ?:[\\/]*)
11027 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031 for as_dir in $PATH
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11037 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11041 done
11042 done
11043 IFS=$as_save_IFS
11046 esac
11048 orig_target_cxx=$ac_cv_path_orig_target_cxx
11049 if test -n "$orig_target_cxx"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11051 $as_echo "$orig_target_cxx" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11060 else
11061 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11062 set dummy ${aros_tool_prefix}g++; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if ${ac_cv_path_orig_target_cxx+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 case $orig_target_cxx in
11069 [\\/]* | ?:[\\/]*)
11070 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11080 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11084 done
11085 done
11086 IFS=$as_save_IFS
11089 esac
11091 orig_target_cxx=$ac_cv_path_orig_target_cxx
11092 if test -n "$orig_target_cxx"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11094 $as_echo "$orig_target_cxx" >&6; }
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11103 if test "$orig_target_cxx" = ""; then
11104 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11108 if test "${aros_tool_prefix}ld" = ""; then
11109 if test "$cross_compiling" = "yes" ; then
11110 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11111 set dummy ${target_tool_prefix}gcc; ac_word=$2
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113 $as_echo_n "checking for $ac_word... " >&6; }
11114 if ${ac_cv_path_orig_target_ld+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 case $orig_target_ld in
11118 [\\/]* | ?:[\\/]*)
11119 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11133 done
11134 done
11135 IFS=$as_save_IFS
11138 esac
11140 orig_target_ld=$ac_cv_path_orig_target_ld
11141 if test -n "$orig_target_ld"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11143 $as_echo "$orig_target_ld" >&6; }
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11150 else
11151 if test "$GCC" = "yes"; then
11152 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11153 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11154 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if ${ac_cv_path_orig_target_ld+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 case $orig_target_ld in
11161 [\\/]* | ?:[\\/]*)
11162 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166 for as_dir in `dirname $aros_gcc_gcc`
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 break 2
11176 done
11177 done
11178 IFS=$as_save_IFS
11181 esac
11183 orig_target_ld=$ac_cv_path_orig_target_ld
11184 if test -n "$orig_target_ld"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11186 $as_echo "$orig_target_ld" >&6; }
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189 $as_echo "no" >&6; }
11194 if test "$orig_target_ld" = ""; then
11195 # Extract the first word of "gcc", so it can be a program name with args.
11196 set dummy gcc; ac_word=$2
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198 $as_echo_n "checking for $ac_word... " >&6; }
11199 if ${ac_cv_path_orig_target_ld+:} false; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 case $orig_target_ld in
11203 [\\/]* | ?:[\\/]*)
11204 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11218 done
11219 done
11220 IFS=$as_save_IFS
11223 esac
11225 orig_target_ld=$ac_cv_path_orig_target_ld
11226 if test -n "$orig_target_ld"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11228 $as_echo "$orig_target_ld" >&6; }
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11237 else
11238 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11239 set dummy ${aros_tool_prefix}ld; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if ${ac_cv_path_orig_target_ld+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 case $orig_target_ld in
11246 [\\/]* | ?:[\\/]*)
11247 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11261 done
11262 done
11263 IFS=$as_save_IFS
11266 esac
11268 orig_target_ld=$ac_cv_path_orig_target_ld
11269 if test -n "$orig_target_ld"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11271 $as_echo "$orig_target_ld" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11280 if test "$orig_target_ld" = ""; then
11281 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11284 if test "${aros_tool_prefix}as" = ""; then
11285 if test "$cross_compiling" = "yes" ; then
11286 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11287 set dummy ${target_tool_prefix}as; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_orig_target_as+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 case $orig_target_as in
11294 [\\/]* | ?:[\\/]*)
11295 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11309 done
11310 done
11311 IFS=$as_save_IFS
11314 esac
11316 orig_target_as=$ac_cv_path_orig_target_as
11317 if test -n "$orig_target_as"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11319 $as_echo "$orig_target_as" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11326 else
11327 if test "$GCC" = "yes"; then
11328 aros_gcc_as=`$CC -print-prog-name=as`
11329 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11330 set dummy `basename $aros_gcc_as`; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_orig_target_as+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 case $orig_target_as in
11337 [\\/]* | ?:[\\/]*)
11338 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in `dirname $aros_gcc_as`
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 break 2
11352 done
11353 done
11354 IFS=$as_save_IFS
11357 esac
11359 orig_target_as=$ac_cv_path_orig_target_as
11360 if test -n "$orig_target_as"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11362 $as_echo "$orig_target_as" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11370 if test "$orig_target_as" = ""; then
11371 # Extract the first word of "as", so it can be a program name with args.
11372 set dummy as; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_path_orig_target_as+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 case $orig_target_as in
11379 [\\/]* | ?:[\\/]*)
11380 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11394 done
11395 done
11396 IFS=$as_save_IFS
11399 esac
11401 orig_target_as=$ac_cv_path_orig_target_as
11402 if test -n "$orig_target_as"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11404 $as_echo "$orig_target_as" >&6; }
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11413 else
11414 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11415 set dummy ${aros_tool_prefix}as; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if ${ac_cv_path_orig_target_as+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 case $orig_target_as in
11422 [\\/]* | ?:[\\/]*)
11423 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11433 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11439 IFS=$as_save_IFS
11442 esac
11444 orig_target_as=$ac_cv_path_orig_target_as
11445 if test -n "$orig_target_as"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11447 $as_echo "$orig_target_as" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11456 if test "$orig_target_as" = ""; then
11457 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11460 if test "${aros_tool_prefix}ar" = ""; then
11461 if test "$cross_compiling" = "yes" ; then
11462 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11463 set dummy ${target_tool_prefix}ar; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_orig_target_ar+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 case $orig_target_ar in
11470 [\\/]* | ?:[\\/]*)
11471 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11485 done
11486 done
11487 IFS=$as_save_IFS
11490 esac
11492 orig_target_ar=$ac_cv_path_orig_target_ar
11493 if test -n "$orig_target_ar"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11495 $as_echo "$orig_target_ar" >&6; }
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11502 else
11503 if test "$GCC" = "yes"; then
11504 aros_gcc_ar=`$CC -print-prog-name=ar`
11505 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11506 set dummy `basename $aros_gcc_ar`; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_orig_target_ar+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 case $orig_target_ar in
11513 [\\/]* | ?:[\\/]*)
11514 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in `dirname $aros_gcc_ar`
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526 break 2
11528 done
11529 done
11530 IFS=$as_save_IFS
11533 esac
11535 orig_target_ar=$ac_cv_path_orig_target_ar
11536 if test -n "$orig_target_ar"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11538 $as_echo "$orig_target_ar" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11546 if test "$orig_target_ar" = ""; then
11547 # Extract the first word of "ar", so it can be a program name with args.
11548 set dummy ar; ac_word=$2
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if ${ac_cv_path_orig_target_ar+:} false; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 case $orig_target_ar in
11555 [\\/]* | ?:[\\/]*)
11556 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560 for as_dir in $PATH
11562 IFS=$as_save_IFS
11563 test -z "$as_dir" && as_dir=.
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11566 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11568 break 2
11570 done
11571 done
11572 IFS=$as_save_IFS
11575 esac
11577 orig_target_ar=$ac_cv_path_orig_target_ar
11578 if test -n "$orig_target_ar"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11580 $as_echo "$orig_target_ar" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11589 else
11590 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11591 set dummy ${aros_tool_prefix}ar; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593 $as_echo_n "checking for $ac_word... " >&6; }
11594 if ${ac_cv_path_orig_target_ar+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 case $orig_target_ar in
11598 [\\/]* | ?:[\\/]*)
11599 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11613 done
11614 done
11615 IFS=$as_save_IFS
11618 esac
11620 orig_target_ar=$ac_cv_path_orig_target_ar
11621 if test -n "$orig_target_ar"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11623 $as_echo "$orig_target_ar" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11632 if test "$orig_target_ar" = ""; then
11633 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11636 if test "${aros_tool_prefix}ranlib" = ""; then
11637 if test "$cross_compiling" = "yes" ; then
11638 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11639 set dummy ${target_tool_prefix}ar; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 case $orig_target_ranlib in
11646 [\\/]* | ?:[\\/]*)
11647 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11661 done
11662 done
11663 IFS=$as_save_IFS
11666 esac
11668 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11669 if test -n "$orig_target_ranlib"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11671 $as_echo "$orig_target_ranlib" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11678 else
11679 if test "$GCC" = "yes"; then
11680 aros_gcc_ar=`$CC -print-prog-name=ar`
11681 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11682 set dummy `basename $aros_gcc_ar`; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 case $orig_target_ranlib in
11689 [\\/]* | ?:[\\/]*)
11690 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in `dirname $aros_gcc_ar`
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
11698 for ac_exec_ext in '' $ac_executable_extensions; do
11699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11700 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 break 2
11704 done
11705 done
11706 IFS=$as_save_IFS
11709 esac
11711 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11712 if test -n "$orig_target_ranlib"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11714 $as_echo "$orig_target_ranlib" >&6; }
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11722 if test "$orig_target_ranlib" = ""; then
11723 # Extract the first word of "ar", so it can be a program name with args.
11724 set dummy ar; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 case $orig_target_ranlib in
11731 [\\/]* | ?:[\\/]*)
11732 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11746 done
11747 done
11748 IFS=$as_save_IFS
11751 esac
11753 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11754 if test -n "$orig_target_ranlib"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11756 $as_echo "$orig_target_ranlib" >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11765 else
11766 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11767 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 case $orig_target_ranlib in
11774 [\\/]* | ?:[\\/]*)
11775 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11789 done
11790 done
11791 IFS=$as_save_IFS
11794 esac
11796 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11797 if test -n "$orig_target_ranlib"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11799 $as_echo "$orig_target_ranlib" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11808 if test "$orig_target_ranlib" = ""; then
11809 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11812 if test "${aros_tool_prefix}nm" = ""; then
11813 if test "$cross_compiling" = "yes" ; then
11814 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11815 set dummy ${target_tool_prefix}nm; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_path_orig_target_nm+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 case $orig_target_nm in
11822 [\\/]* | ?:[\\/]*)
11823 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11833 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11837 done
11838 done
11839 IFS=$as_save_IFS
11842 esac
11844 orig_target_nm=$ac_cv_path_orig_target_nm
11845 if test -n "$orig_target_nm"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11847 $as_echo "$orig_target_nm" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11854 else
11855 if test "$GCC" = "yes"; then
11856 aros_gcc_nm=`$CC -print-prog-name=nm`
11857 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11858 set dummy `basename $aros_gcc_nm`; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_path_orig_target_nm+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 case $orig_target_nm in
11865 [\\/]* | ?:[\\/]*)
11866 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in `dirname $aros_gcc_nm`
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11880 done
11881 done
11882 IFS=$as_save_IFS
11885 esac
11887 orig_target_nm=$ac_cv_path_orig_target_nm
11888 if test -n "$orig_target_nm"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11890 $as_echo "$orig_target_nm" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11898 if test "$orig_target_nm" = ""; then
11899 # Extract the first word of "nm", so it can be a program name with args.
11900 set dummy nm; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_path_orig_target_nm+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 case $orig_target_nm in
11907 [\\/]* | ?:[\\/]*)
11908 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11922 done
11923 done
11924 IFS=$as_save_IFS
11927 esac
11929 orig_target_nm=$ac_cv_path_orig_target_nm
11930 if test -n "$orig_target_nm"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11932 $as_echo "$orig_target_nm" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11941 else
11942 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
11943 set dummy ${aros_tool_prefix}nm; ac_word=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if ${ac_cv_path_orig_target_nm+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 case $orig_target_nm in
11950 [\\/]* | ?:[\\/]*)
11951 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11970 esac
11972 orig_target_nm=$ac_cv_path_orig_target_nm
11973 if test -n "$orig_target_nm"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11975 $as_echo "$orig_target_nm" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11984 if test "$orig_target_nm" = ""; then
11985 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11988 if test "${aros_tool_prefix}strip" = ""; then
11989 if test "$cross_compiling" = "yes" ; then
11990 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
11991 set dummy ${target_tool_prefix}strip; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_orig_target_strip+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 case $orig_target_strip in
11998 [\\/]* | ?:[\\/]*)
11999 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12013 done
12014 done
12015 IFS=$as_save_IFS
12018 esac
12020 orig_target_strip=$ac_cv_path_orig_target_strip
12021 if test -n "$orig_target_strip"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12023 $as_echo "$orig_target_strip" >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12030 else
12031 if test "$GCC" = "yes"; then
12032 aros_gcc_strip=`$CC -print-prog-name=strip`
12033 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12034 set dummy `basename $aros_gcc_strip`; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if ${ac_cv_path_orig_target_strip+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 case $orig_target_strip in
12041 [\\/]* | ?:[\\/]*)
12042 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in `dirname $aros_gcc_strip`
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12052 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12056 done
12057 done
12058 IFS=$as_save_IFS
12061 esac
12063 orig_target_strip=$ac_cv_path_orig_target_strip
12064 if test -n "$orig_target_strip"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12066 $as_echo "$orig_target_strip" >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12074 if test "$orig_target_strip" = ""; then
12075 # Extract the first word of "strip", so it can be a program name with args.
12076 set dummy strip; ac_word=$2
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078 $as_echo_n "checking for $ac_word... " >&6; }
12079 if ${ac_cv_path_orig_target_strip+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 case $orig_target_strip in
12083 [\\/]* | ?:[\\/]*)
12084 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12094 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 break 2
12098 done
12099 done
12100 IFS=$as_save_IFS
12103 esac
12105 orig_target_strip=$ac_cv_path_orig_target_strip
12106 if test -n "$orig_target_strip"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12108 $as_echo "$orig_target_strip" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12117 else
12118 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12119 set dummy ${aros_tool_prefix}strip; ac_word=$2
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121 $as_echo_n "checking for $ac_word... " >&6; }
12122 if ${ac_cv_path_orig_target_strip+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 case $orig_target_strip in
12126 [\\/]* | ?:[\\/]*)
12127 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12141 done
12142 done
12143 IFS=$as_save_IFS
12146 esac
12148 orig_target_strip=$ac_cv_path_orig_target_strip
12149 if test -n "$orig_target_strip"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12151 $as_echo "$orig_target_strip" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12160 if test "$orig_target_strip" = ""; then
12161 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12164 if test "${aros_tool_prefix}objcopy" = ""; then
12165 if test "$cross_compiling" = "yes" ; then
12166 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12167 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 case $orig_target_objcopy in
12174 [\\/]* | ?:[\\/]*)
12175 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12185 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12189 done
12190 done
12191 IFS=$as_save_IFS
12194 esac
12196 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12197 if test -n "$orig_target_objcopy"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12199 $as_echo "$orig_target_objcopy" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12206 else
12207 if test "$GCC" = "yes"; then
12208 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12209 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12210 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 case $orig_target_objcopy in
12217 [\\/]* | ?:[\\/]*)
12218 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in `dirname $aros_gcc_objcopy`
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12228 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12232 done
12233 done
12234 IFS=$as_save_IFS
12237 esac
12239 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12240 if test -n "$orig_target_objcopy"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12242 $as_echo "$orig_target_objcopy" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12250 if test "$orig_target_objcopy" = ""; then
12251 # Extract the first word of "objcopy", so it can be a program name with args.
12252 set dummy objcopy; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 case $orig_target_objcopy in
12259 [\\/]* | ?:[\\/]*)
12260 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12270 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12274 done
12275 done
12276 IFS=$as_save_IFS
12279 esac
12281 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12282 if test -n "$orig_target_objcopy"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12284 $as_echo "$orig_target_objcopy" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12293 else
12294 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12295 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 case $orig_target_objcopy in
12302 [\\/]* | ?:[\\/]*)
12303 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 break 2
12317 done
12318 done
12319 IFS=$as_save_IFS
12322 esac
12324 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12325 if test -n "$orig_target_objcopy"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12327 $as_echo "$orig_target_objcopy" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12336 if test "$orig_target_objcopy" = ""; then
12337 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12340 if test "${aros_tool_prefix}objdump" = ""; then
12341 if test "$cross_compiling" = "yes" ; then
12342 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12343 set dummy ${target_tool_prefix}objdump; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if ${ac_cv_path_orig_target_objdump+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 case $orig_target_objdump in
12350 [\\/]* | ?:[\\/]*)
12351 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12370 esac
12372 orig_target_objdump=$ac_cv_path_orig_target_objdump
12373 if test -n "$orig_target_objdump"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12375 $as_echo "$orig_target_objdump" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 else
12383 if test "$GCC" = "yes"; then
12384 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12385 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12386 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if ${ac_cv_path_orig_target_objdump+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 case $orig_target_objdump in
12393 [\\/]* | ?:[\\/]*)
12394 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in `dirname $aros_gcc_objdump`
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12408 done
12409 done
12410 IFS=$as_save_IFS
12413 esac
12415 orig_target_objdump=$ac_cv_path_orig_target_objdump
12416 if test -n "$orig_target_objdump"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12418 $as_echo "$orig_target_objdump" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12426 if test "$orig_target_objdump" = ""; then
12427 # Extract the first word of "objdump", so it can be a program name with args.
12428 set dummy objdump; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_orig_target_objdump+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 case $orig_target_objdump in
12435 [\\/]* | ?:[\\/]*)
12436 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12446 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12455 esac
12457 orig_target_objdump=$ac_cv_path_orig_target_objdump
12458 if test -n "$orig_target_objdump"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12460 $as_echo "$orig_target_objdump" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12469 else
12470 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12471 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_orig_target_objdump+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 case $orig_target_objdump in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12498 esac
12500 orig_target_objdump=$ac_cv_path_orig_target_objdump
12501 if test -n "$orig_target_objdump"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12503 $as_echo "$orig_target_objdump" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12512 if test "$orig_target_objdump" = ""; then
12513 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12517 if test "$kernel_tool_prefix" = "none" ; then
12518 # No kernel tools specified
12519 # Assume target tools == kernel tools with ELF wrapper
12520 aros_kernel_cc=$orig_target_cc
12521 aros_kernel_cxx=$orig_target_cxx
12522 aros_kernel_cpp=$orig_target_cpp
12523 aros_kernel_ld=$orig_target_ld
12524 aros_kernel_as=$orig_target_as
12525 aros_kernel_ar=$orig_target_ar
12526 aros_kernel_ranlib=$orig_target_ranlib
12527 aros_kernel_nm=$orig_target_nm
12528 aros_kernel_strip=$orig_target_strip
12529 aros_kernel_objcopy=$orig_target_objcopy
12530 aros_kernel_objdump=$orig_target_objdump
12531 use_kernel_cc_wrapper=yes
12534 # At this point, all aros_kernel_* and aros_target_*
12535 # tools should be set up correctly
12537 CC="$aros_kernel_cc $kernel_tool_flags"
12538 CPP="$aros_kernel_cpp"
12540 #-----------------------------------------------------------------------------
12542 # Disable pointer-signedness warnings if the compiler recognises the option
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12545 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12546 save_cflags="$CFLAGS"
12547 if test "$crosstools" != "yes" ; then
12548 CFLAGS="$CFLAGS -Wno-pointer-sign"
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12553 main ()
12557 return 0;
12559 _ACEOF
12560 if ac_fn_c_try_compile "$LINENO"; then :
12561 use_no_sign_warning="yes"
12562 else
12563 use_no_sign_warning="no"
12565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 else
12567 # we do know it is supported for the smallest version of gcc we are going to build
12568 # we assume it's also supported by later versions
12569 use_no_sign_warning=yes
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12572 $as_echo "$use_no_sign_warning" >&6; }
12573 if test "x-$use_no_sign_warning" = "x-yes" ; then
12574 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12576 CFLAGS="$save_cflags"
12578 #-----------------------------------------------------------------------------
12580 # Find all the tools we need to compile. This could be cross-compiling
12581 # though! If that is the case we use the GNU form of the target and
12582 # simply add this to the front of the binary name. This is rather simple,
12583 # but it should work under most circumstances.
12585 # The default tools are to use the same as the host, but only if the
12586 # host and target CPU are the same. With GCC this is normally enough.
12589 aros_cc_pre=""
12590 aros_shared_ld="$aros_host_ld"
12592 aros_target_mkdep="$aros_host_mkdep"
12594 # The default tools executables to be linked to.
12595 if test "$rescomp" != ""; then
12596 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12597 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 case $aros_kernel_rescomp in
12604 [\\/]* | ?:[\\/]*)
12605 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
12614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12615 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617 break 2
12619 done
12620 done
12621 IFS=$as_save_IFS
12624 esac
12626 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12627 if test -n "$aros_kernel_rescomp"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12629 $as_echo "$aros_kernel_rescomp" >&6; }
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12636 if test "$aros_kernel_rescomp" = ""; then
12637 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12641 # Set up the sources for the symlink farm
12642 if test "$crosstools" = "yes"; then
12643 crosstools_target=tools-crosstools
12644 else
12645 crosstools_cxx_target=tools-crosstools
12648 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12649 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12652 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12653 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12654 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12655 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12656 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12657 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12658 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12660 # aros_cc_pre is a variable that is added to the front of the compiler name
12661 # in the generated aros-gcc shell script. We need this to enable the cache
12662 # to work across cleaned builds. Also, support DISTCC using the correct
12663 # environment variable.
12666 if test "x${DISTCC}" != "x" ; then
12667 if test "x${CCACHE}" != "x" ; then
12668 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12669 else
12670 aros_cc_pre="${DISTCC} "
12672 else
12673 if test "x${CCACHE}" != "x" ; then
12674 aros_cc_pre="${CCACHE} "
12678 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12680 aros_target_nostdinc_cflags=-nostdinc
12682 aros_target_nostartup_ldflags=-nostartfiles
12684 aros_target_nix_ldflags=-nix
12686 aros_target_detach_ldflags=-detach
12688 aros_target_nostdlib_ldflags=-nostdlib
12691 # Target tools
12692 if test "$crosstools" != "yes"; then
12693 if test "$GCC" = "yes"; then
12694 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12696 else
12697 # We do not know which gcc version we are going to build and what we need to know
12698 # here is different for different versions so this will be set later during the
12699 # build of crosstools.
12700 aros_target_cc_path=@aros_target_cc_path@
12702 aros_target_cpp="${prefix}cpp"
12703 aros_target_cc="${prefix}gcc"
12704 aros_target_cxx="${prefix}g++"
12705 aros_target_as="${prefix}as"
12706 aros_target_ld="${prefix}ld"
12707 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12708 aros_target_objcopy="${prefix}objcopy"
12709 aros_target_objdump="${prefix}objdump"
12710 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12711 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12712 aros_target_strip="${prefix}strip"
12713 aros_plain_nm="${prefix}nm"
12714 aros_plain_ar="${prefix}ar"
12716 # Check whether --enable-includes was given.
12717 if test "${enable_includes+set}" = set; then :
12718 enableval=$enable_includes; aros_target_incl=$enable_includes
12719 else
12720 aros_target_incl="/usr/include"
12724 if test "$aros_kernel_includes" = ""; then
12725 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12726 aros_kernel_includes="-isystem $aros_target_incl"
12730 if test "$aros_kernel_includes" != "" ; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12732 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12733 if test "$aros_kernel_cc_includes" = "" ; then
12734 # Try to guess where the directory is.
12735 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12736 if test -d $aros_kernel_cc_includes; then
12737 # Check if there is also an include-fixed directory and add it
12738 # to kernel compiler's include path as it may contain some of
12739 # the headers we need.
12740 if test -d "$aros_kernel_cc_includes"-fixed; then
12741 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12743 # Check for specific includes directory. Neede for Ubuntu 11.10
12744 if test -d "/usr/include/i386-linux-gnu"; then
12745 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12747 else
12748 # The directory doesn't exist, we need to do some more work.
12749 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12751 # These are the headers we're looking for.
12752 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12753 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12754 zutil.h stdint.h"
12756 dirs=
12757 for h in $headers; do
12758 # Which other headers are needed by each of the above?
12759 deps=$(echo "#include <$h>" | \
12760 $aros_kernel_cc -E -M - 2>/dev/null | \
12761 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12763 # Copy all the needed headers to a directory beneath gendir.
12764 for d in $deps; do
12765 h=$(basename $d)
12766 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12767 sed -n "s,^.*/include\(/.*\),\1,p")
12768 ! test -d $dir && mkdir -p $dir
12769 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12770 done
12771 done
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12775 $as_echo "$aros_kernel_cc_includes" >&6; }
12776 # Adding -nostdinc to kernel includes as they are always used together.
12777 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12780 if test "$crosstools" != "yes"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12782 $as_echo_n "checking for the target compiler's include path... " >&6; }
12783 if test "$aros_target_cc_includes" = "" ; then
12784 #try to guess where the directory is
12785 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12786 if ! test -d $aros_target_cc_includes; then
12787 #the directory doesn't exist, we need to do some more work
12788 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12790 #these are the headers we're looking for
12791 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12792 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12793 zutil.h"
12795 dirs=
12796 for h in $headers; do
12797 #which other headers each of the above headers needs?
12798 deps=$(echo "#include <$h>" | \
12799 $orig_target_cc -E -M - 2>/dev/null | \
12800 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12802 #copy all the needed headers to a directory beneath gendir
12803 for d in $deps; do
12804 h=$(basename $d)
12805 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12806 sed -n "s,^.*/include\(/.*\),\1,p")
12807 ! test -d $dir && mkdir -p $dir
12808 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12809 done
12810 done
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12814 $as_echo "$aros_target_cc_includes" >&6; }
12815 else
12816 # We do not know which gcc version we are going to build and what we need to know
12817 # here is different for different versions so this will be set later during the
12818 # build of crosstools.
12819 aros_target_cc_includes=@aros_target_cc_includes@
12823 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12824 # On GCC >= 4.0 -iquote should be used
12827 save_cc="$CC"
12828 save_cflags="$CFLAGS"
12829 CFLAGS="-iquote."
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12831 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12832 if test "x-$crosstools" != "x-yes"; then
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12837 main ()
12841 return 0;
12843 _ACEOF
12844 if ac_fn_c_try_compile "$LINENO"; then :
12845 has_iquote="yes"
12846 else
12847 has_iquote="no"
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 else
12851 # we do know it is supported for the smallest version of gcc we are going to build
12852 # we assume it's also supported by later versions
12853 has_iquote=yes
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12856 $as_echo "$has_iquote" >&6; }
12857 if test "x-$has_iquote" = "x-yes" ; then
12858 host_cflags_iquote=-iquote
12859 host_cflags_iquote_end=
12860 else
12861 host_cflags_iquote=-I
12862 host_cflags_iquote_end=-I-
12864 kernel_cflags_iquote=$host_cflags_iquote
12865 kernel_cflags_iquote_end=$host_cflags_iquote_end
12866 if test "x-$cross_compiling" = "x-yes"; then
12867 CC="$aros_kernel_cc"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12869 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12870 if test "x-$crosstools" != "x-yes"; then
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12875 main ()
12879 return 0;
12881 _ACEOF
12882 if ac_fn_c_try_compile "$LINENO"; then :
12883 use_no_stack_protector="yes"
12884 else
12885 use_no_stack_protector="no"
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 else
12889 # we do know it is supported for the smallest version of gcc we are going to build
12890 # we assume it's also supported by later versions
12891 use_no_stack_protector=yes
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12894 $as_echo "$use_no_stack_protector" >&6; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12896 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12897 if test "x-$crosstools" != "x-yes"; then
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12902 main ()
12906 return 0;
12908 _ACEOF
12909 if ac_fn_c_try_compile "$LINENO"; then :
12910 has_iquote="yes"
12911 else
12912 has_iquote="no"
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 else
12916 # we do know it is supported for the smallest version of gcc we are going to build
12917 # we assume it's also supported by later versions
12918 has_iquote=yes
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12921 $as_echo "$has_iquote" >&6; }
12922 if test "x-$has_iquote" = "x-yes" ; then
12923 kernel_cflags_iquote=-iquote
12924 kernel_cflags_iquote_end=
12925 else
12926 kernel_cflags_iquote=-I
12927 kernel_cflags_iquote_end=-I-
12930 aros_cflags_iquote=$kernel_cflags_iquote
12931 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12932 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12933 CC="$orig_target_cc"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12935 $as_echo_n "checking whether ${CC} accepts -iquote... " >&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 has_iquote="yes"
12950 else
12951 has_iquote="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 has_iquote=yes
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12960 $as_echo "$has_iquote" >&6; }
12961 if test "x-$has_iquote" = "x-yes" ; then
12962 aros_cflags_iquote=-iquote
12963 aros_cflags_iquote_end=
12964 else
12965 aros_cflags_iquote=-I
12966 aros_cflags_iquote_end=-I-
12969 if test "x-$use_no_stack_protector" = "x-yes" ; then
12970 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
12974 #-----------------------------------------------------------------------------
12976 # Check if the target compiler supports some options used for delinting:
12977 # -Wunused-but-set-variable
12978 # -Warray-bounds
12979 # -Wenum-compare
12980 # -Wstrict-overflow
12981 # -Wformat-security
12983 if test "x-$crosstools" != "x-yes"; then
12984 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12985 CC="$orig_target_cc"
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
12988 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
12989 CFLAGS=-Wunused-but-set-variable
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12994 main ()
12998 return 0;
13000 _ACEOF
13001 if ac_fn_c_try_compile "$LINENO"; then :
13002 aros_unused_but_set_variable="yes"
13003 else
13004 aros_unused_but_set_variable="no"
13006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13008 $as_echo "$aros_unused_but_set_variable" >&6; }
13009 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13010 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13014 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13015 CFLAGS=-Warray-bounds
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13020 main ()
13024 return 0;
13026 _ACEOF
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028 aros_array_bounds="yes"
13029 else
13030 aros_array_bounds="no"
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13034 $as_echo "$aros_array_bounds" >&6; }
13035 if test "x-$aros_array_bounds" = "x-yes" ; then
13036 aros_cflags_array_bounds=-Wno-array-bounds
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13040 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13041 CFLAGS=-Wenum-compare
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13046 main ()
13050 return 0;
13052 _ACEOF
13053 if ac_fn_c_try_compile "$LINENO"; then :
13054 aros_enum_compare="yes"
13055 else
13056 aros_enum_compare="no"
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13060 $as_echo "$aros_enum_compare" >&6; }
13061 if test "x-$aros_enum_compare" = "x-yes" ; then
13062 aros_cflags_enum_compare=-Wno-enum-compare
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13066 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13067 CFLAGS=-Wstrict-overflow
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13072 main ()
13076 return 0;
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"; then :
13080 aros_strict_overflow="yes"
13081 else
13082 aros_strict_overflow="no"
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13086 $as_echo "$aros_strict_overflow" >&6; }
13087 if test "x-$aros_strict_overflow" = "x-yes" ; then
13088 aros_cflags_strict_overflow=-Wno-strict-overflow
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13092 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13093 CFLAGS=-Wformat-security
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13098 main ()
13102 return 0;
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106 aros_format_security="yes"
13107 else
13108 aros_format_security="no"
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13112 $as_echo "$aros_format_security" >&6; }
13113 if test "x-$aros_format_security" = "x-yes" ; then
13114 aros_cflags_format_security=-Wno-format-security
13116 else
13117 # We do not know which gcc version we are going to build and what we need to know
13118 # here is different for different versions so this will be set later during the
13119 # build of crosstools.
13120 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13121 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13122 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13123 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13124 aros_cflags_format_security=@aros_cflags_format_security@
13127 #-----------------------------------------------------------------------------
13129 # Check if we can explicitly choose older version of symbol hashing
13131 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13132 CC="$aros_kernel_cc"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13134 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13139 main ()
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 use_hash_style="yes"
13148 else
13149 use_hash_style="no"
13151 rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13154 $as_echo "$use_hash_style" >&6; }
13155 if test "x-$use_hash_style" = "x-yes" ; then
13156 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13158 CC="$save_cc"
13159 CFLAGS="$save_cflags"
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13170 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13172 # Check whether --with-resolution was given.
13173 if test "${with_resolution+set}" = set; then :
13174 withval=$with_resolution; resolution=$withval
13175 else
13176 resolution=none
13179 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13180 if test "$resolution" = "yes" ; then
13181 resolution="none"
13183 if test "$resolution" = "no" ; then
13184 resolution="none"
13186 if test "$resolution" != "none" ; then
13187 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13188 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13189 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13192 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13193 aros_cv_default_wbwidth=$aros_default_wbwidth
13194 aros_cv_default_wbheight=$aros_default_wbheight
13195 aros_cv_default_wbdepth=$aros_default_wbdepth
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13198 $as_echo_n "checking if serial debug is enabled... " >&6; }
13200 # Check whether --with-serial-debug was given.
13201 if test "${with_serial_debug+set}" = set; then :
13202 withval=$with_serial_debug; serial_debug=$withval
13203 else
13204 serial_debug=none
13207 if test "$aros_serial_debug" = 0 ; then
13208 serial_debug_forced=""
13209 if test "$serial_debug" = "yes" ; then
13210 serial_debug="1"
13212 if test "$serial_debug" = "no" ; then
13213 serial_debug="none"
13215 else
13216 serial_debug_forced="(forced)"
13217 serial_debug=$aros_serial_debug
13219 if test "$serial_debug" != "none" ; then
13220 aros_serial_debug=$serial_debug
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13222 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13229 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13230 # Check whether --enable-palm_debug_hack was given.
13231 if test "${enable_palm_debug_hack+set}" = set; then :
13232 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13233 else
13234 palm_debug_hack="no"
13237 if test "$palm_debug_hack" = "yes" ; then
13238 aros_palm_debug_hack="1"
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13241 $as_echo "$palm_debug_hack" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13244 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13245 # Check whether --enable-nesting_supervisor was given.
13246 if test "${enable_nesting_supervisor+set}" = set; then :
13247 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13248 else
13249 nesting_supervisor="no"
13252 if test "$nesting_supervisor" = "yes" ; then
13253 aros_nesting_supervisor="1"
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13256 $as_echo "$nesting_supervisor" >&6; }
13258 if test "$aros_enable_mmu" = "" ; then
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13260 $as_echo_n "checking if MMU support is enabled... " >&6; }
13261 # Check whether --enable-mmu was given.
13262 if test "${enable_mmu+set}" = set; then :
13263 enableval=$enable_mmu; aros_enable_mmu=$enableval
13264 else
13265 aros_enable_mmu="yes"
13268 if test "$aros_enable_mmu" = "" ; then
13269 aros_enable_mmu="yes"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13272 $as_echo "$aros_enable_mmu" >&6; }
13274 if test "$aros_enable_mmu" = "no" ; then
13275 aros_enable_mmu="0"
13276 else
13277 aros_enable_mmu="1"
13281 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13283 if test "x-$need_dlopen" != "x-no" ; then
13284 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13285 if test "x$ac_cv_func_dlopen" = xyes; then :
13286 have_dl="yes"
13287 else
13288 have_dl="no"
13291 if test "x-$have_dl" = "x-no" ; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13293 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13294 if ${ac_cv_lib_dl_dlopen+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 ac_check_lib_save_LIBS=$LIBS
13298 LIBS="-ldl $LIBS"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13305 #ifdef __cplusplus
13306 extern "C"
13307 #endif
13308 char dlopen ();
13310 main ()
13312 return dlopen ();
13314 return 0;
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"; then :
13318 ac_cv_lib_dl_dlopen=yes
13319 else
13320 ac_cv_lib_dl_dlopen=no
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13327 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13328 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13329 have_dl="yes"
13330 aros_host_ldflags="$aros_host_ldflags -ldl"
13331 else
13332 have_dl="no"
13336 if test "x-$have_dl" = "x-no" ; then
13337 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13342 # Check whether --enable-x11_hidd was given.
13343 if test "${enable_x11_hidd+set}" = set; then :
13344 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13345 else
13346 x11_hidd="$need_x11"
13349 case "x-$x11_hidd" in
13350 x-yes|x-no|x-auto) ;;
13351 *) x11_hidd="$need_x11" ;;
13352 esac
13354 ENABLE_X11=0
13356 if test "x-$x11_hidd" != "x-no" ; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13359 $as_echo_n "checking for X... " >&6; }
13362 # Check whether --with-x was given.
13363 if test "${with_x+set}" = set; then :
13364 withval=$with_x;
13367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13368 if test "x$with_x" = xno; then
13369 # The user explicitly disabled X.
13370 have_x=disabled
13371 else
13372 case $x_includes,$x_libraries in #(
13373 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13374 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 # One or both of the vars are not set, and there is no cached value.
13378 ac_x_includes=no ac_x_libraries=no
13379 rm -f -r conftest.dir
13380 if mkdir conftest.dir; then
13381 cd conftest.dir
13382 cat >Imakefile <<'_ACEOF'
13383 incroot:
13384 @echo incroot='${INCROOT}'
13385 usrlibdir:
13386 @echo usrlibdir='${USRLIBDIR}'
13387 libdir:
13388 @echo libdir='${LIBDIR}'
13389 _ACEOF
13390 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13392 for ac_var in incroot usrlibdir libdir; do
13393 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13394 done
13395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13396 for ac_extension in a so sl dylib la dll; do
13397 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13398 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13399 ac_im_usrlibdir=$ac_im_libdir; break
13401 done
13402 # Screen out bogus values from the imake configuration. They are
13403 # bogus both because they are the default anyway, and because
13404 # using them would break gcc on systems where it needs fixed includes.
13405 case $ac_im_incroot in
13406 /usr/include) ac_x_includes= ;;
13407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13408 esac
13409 case $ac_im_usrlibdir in
13410 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13412 esac
13414 cd ..
13415 rm -f -r conftest.dir
13418 # Standard set of common directories for X headers.
13419 # Check X11 before X11Rn because it is often a symlink to the current release.
13420 ac_x_header_dirs='
13421 /usr/X11/include
13422 /usr/X11R7/include
13423 /usr/X11R6/include
13424 /usr/X11R5/include
13425 /usr/X11R4/include
13427 /usr/include/X11
13428 /usr/include/X11R7
13429 /usr/include/X11R6
13430 /usr/include/X11R5
13431 /usr/include/X11R4
13433 /usr/local/X11/include
13434 /usr/local/X11R7/include
13435 /usr/local/X11R6/include
13436 /usr/local/X11R5/include
13437 /usr/local/X11R4/include
13439 /usr/local/include/X11
13440 /usr/local/include/X11R7
13441 /usr/local/include/X11R6
13442 /usr/local/include/X11R5
13443 /usr/local/include/X11R4
13445 /usr/X386/include
13446 /usr/x386/include
13447 /usr/XFree86/include/X11
13449 /usr/include
13450 /usr/local/include
13451 /usr/unsupported/include
13452 /usr/athena/include
13453 /usr/local/x11r5/include
13454 /usr/lpp/Xamples/include
13456 /usr/openwin/include
13457 /usr/openwin/share/include'
13459 if test "$ac_x_includes" = no; then
13460 # Guess where to find include files, by looking for Xlib.h.
13461 # First, try using that file with no special directory specified.
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464 #include <X11/Xlib.h>
13465 _ACEOF
13466 if ac_fn_c_try_cpp "$LINENO"; then :
13467 # We can compile using X headers with no special include directory.
13468 ac_x_includes=
13469 else
13470 for ac_dir in $ac_x_header_dirs; do
13471 if test -r "$ac_dir/X11/Xlib.h"; then
13472 ac_x_includes=$ac_dir
13473 break
13475 done
13477 rm -f conftest.err conftest.i conftest.$ac_ext
13478 fi # $ac_x_includes = no
13480 if test "$ac_x_libraries" = no; then
13481 # Check for the libraries.
13482 # See if we find them without any special options.
13483 # Don't add to $LIBS permanently.
13484 ac_save_LIBS=$LIBS
13485 LIBS="-lX11 $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <X11/Xlib.h>
13490 main ()
13492 XrmInitialize ()
13494 return 0;
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 LIBS=$ac_save_LIBS
13499 # We can link X programs with no special library path.
13500 ac_x_libraries=
13501 else
13502 LIBS=$ac_save_LIBS
13503 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13505 # Don't even attempt the hair of trying to link an X program!
13506 for ac_extension in a so sl dylib la dll; do
13507 if test -r "$ac_dir/libX11.$ac_extension"; then
13508 ac_x_libraries=$ac_dir
13509 break 2
13511 done
13512 done
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 fi # $ac_x_libraries = no
13518 case $ac_x_includes,$ac_x_libraries in #(
13519 no,* | *,no | *\'*)
13520 # Didn't find X, or a directory has "'" in its name.
13521 ac_cv_have_x="have_x=no";; #(
13523 # Record where we found X for the cache.
13524 ac_cv_have_x="have_x=yes\
13525 ac_x_includes='$ac_x_includes'\
13526 ac_x_libraries='$ac_x_libraries'"
13527 esac
13529 ;; #(
13530 *) have_x=yes;;
13531 esac
13532 eval "$ac_cv_have_x"
13533 fi # $with_x != no
13535 if test "$have_x" != yes; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13537 $as_echo "$have_x" >&6; }
13538 no_x=yes
13539 else
13540 # If each of the values was on the command line, it overrides each guess.
13541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13543 # Update the cache value to reflect the command line values.
13544 ac_cv_have_x="have_x=yes\
13545 ac_x_includes='$x_includes'\
13546 ac_x_libraries='$x_libraries'"
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13548 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13552 x_cflags=
13553 for path in $x_libraries
13555 x_cflags="$x_cflags -L$path"
13556 done
13558 for path in $x_includes
13560 x_cflags="$x_cflags -I$path"
13561 done
13563 if test "x-$no_x" = "x-yes" ; then
13565 if test "x-$x11_hidd" != "x-auto" ; then
13566 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13569 else
13570 x11_hidd_target=kernel-x11gfx-kobj
13571 ENABLE_X11=1
13573 # Check whether --enable-x11_shm was given.
13574 if test "${enable_x11_shm+set}" = set; then :
13575 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13576 else
13577 x11_hidd_shm="auto"
13580 case "x-$x11_hidd_shm" in
13581 x-yes|x-no|x-auto) ;;
13582 *) x11_hidd_shm="auto" ;;
13583 esac
13585 have_xshm=no
13587 if test "x-$x11_hidd_shm" != "x-no" ; then
13589 for ac_header in sys/ipc.h
13590 do :
13591 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13592 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13593 cat >>confdefs.h <<_ACEOF
13594 #define HAVE_SYS_IPC_H 1
13595 _ACEOF
13599 done
13601 for ac_header in sys/shm.h
13602 do :
13603 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13604 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_SYS_SHM_H 1
13607 _ACEOF
13611 done
13614 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13616 save_cflags="$CFLAGS"
13617 CFLAGS="$CFLAGS $x_cflags"
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13619 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13620 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 ac_check_lib_save_LIBS=$LIBS
13624 LIBS="-lXext $LIBS"
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13631 #ifdef __cplusplus
13632 extern "C"
13633 #endif
13634 char XShmQueryExtension ();
13636 main ()
13638 return XShmQueryExtension ();
13640 return 0;
13642 _ACEOF
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 ac_cv_lib_Xext_XShmQueryExtension=yes
13645 else
13646 ac_cv_lib_Xext_XShmQueryExtension=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13653 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13654 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13655 have_xshm=yes
13658 CFLAGS="$save_cflags"
13662 if test "x-$have_xshm" = "x-yes" ; then
13663 DO_XSHM_SUPPORT="1"
13664 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13665 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13666 else
13667 DO_XSHM_SUPPORT="0"
13671 # Check whether --enable-x11_vidmode was given.
13672 if test "${enable_x11_vidmode+set}" = set; then :
13673 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13674 else
13675 x11_hidd_vidmode="auto"
13678 case "x-$x11_hidd_vidmode" in
13679 x-yes|x-no|x-auto) ;;
13680 *) x11_hidd_vidmode="auto" ;;
13681 esac
13683 have_vidmode=no
13685 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13687 save_cflags="$CFLAGS"
13688 CFLAGS="$CFLAGS $x_cflags"
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13690 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13691 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lXxf86vm $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702 #ifdef __cplusplus
13703 extern "C"
13704 #endif
13705 char XF86VidModeQueryExtension ();
13707 main ()
13709 return XF86VidModeQueryExtension ();
13711 return 0;
13713 _ACEOF
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13716 else
13717 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13724 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13725 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13726 have_vidmode=yes
13729 CFLAGS="$save_cflags"
13732 if test "x-$have_vidmode" = "x-yes" ; then
13733 DO_VIDMODE_SUPPORT="1"
13734 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13735 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13736 else
13737 DO_VIDMODE_SUPPORT="0"
13741 aros_host_x11_includes=$x_includes
13742 aros_host_x11_libdirs=$x_libraries
13746 # Check whether --enable-sdl_hidd was given.
13747 if test "${enable_sdl_hidd+set}" = set; then :
13748 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13749 else
13750 sdl_hidd="auto"
13753 case "x-$sdl_hidd" in
13754 x-yes|x-no|x-auto) ;;
13755 *) sdl_hidd="auto" ;;
13756 esac
13758 if test "x-$sdl_hidd" != "x-no" ; then
13761 # Check whether --with-sdl-prefix was given.
13762 if test "${with_sdl_prefix+set}" = set; then :
13763 withval=$with_sdl_prefix; sdl_prefix="$withval"
13764 else
13765 sdl_prefix=""
13769 # Check whether --with-sdl-exec-prefix was given.
13770 if test "${with_sdl_exec_prefix+set}" = set; then :
13771 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13772 else
13773 sdl_exec_prefix=""
13776 # Check whether --enable-sdltest was given.
13777 if test "${enable_sdltest+set}" = set; then :
13778 enableval=$enable_sdltest;
13779 else
13780 enable_sdltest=yes
13784 if test x$sdl_exec_prefix != x ; then
13785 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
13786 if test x${SDL_CONFIG+set} != xset ; then
13787 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13790 if test x$sdl_prefix != x ; then
13791 sdl_args="$sdl_args --prefix=$sdl_prefix"
13792 if test x${SDL_CONFIG+set} != xset ; then
13793 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13797 if test "x$prefix" != xNONE; then
13798 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13800 # Extract the first word of "sdl-config", so it can be a program name with args.
13801 set dummy sdl-config; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 case $SDL_CONFIG in
13808 [\\/]* | ?:[\\/]*)
13809 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13819 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13823 done
13824 done
13825 IFS=$as_save_IFS
13827 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13829 esac
13831 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13832 if test -n "$SDL_CONFIG"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13834 $as_echo "$SDL_CONFIG" >&6; }
13835 else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13841 min_sdl_version=1.2.10
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13843 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13844 no_sdl=""
13845 if test "$SDL_CONFIG" = "no" ; then
13846 no_sdl=yes
13847 else
13848 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
13849 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
13851 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
13852 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13853 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
13854 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13855 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13856 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13857 if test "x$enable_sdltest" = "xyes" ; then
13858 ac_save_CFLAGS="$CFLAGS"
13859 ac_save_CXXFLAGS="$CXXFLAGS"
13860 ac_save_LIBS="$LIBS"
13861 CFLAGS="$CFLAGS $SDL_CFLAGS"
13862 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13863 LIBS="$LIBS $SDL_LIBS"
13864 rm -f conf.sdltest
13865 if test "$cross_compiling" = yes; then :
13866 echo $ac_n "cross compiling; assumed OK... $ac_c"
13867 else
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13871 #include <stdio.h>
13872 #include <stdlib.h>
13873 #include <string.h>
13874 #include "SDL.h"
13876 char*
13877 my_strdup (char *str)
13879 char *new_str;
13881 if (str)
13883 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13884 strcpy (new_str, str);
13886 else
13887 new_str = NULL;
13889 return new_str;
13892 int main (int argc, char *argv[])
13894 int major, minor, micro;
13895 char *tmp_version;
13897 /* This hangs on some systems (?)
13898 system ("touch conf.sdltest");
13900 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13902 /* HP/UX 9 (%@#!) writes to sscanf strings */
13903 tmp_version = my_strdup("$min_sdl_version");
13904 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13905 printf("%s, bad version string\n", "$min_sdl_version");
13906 exit(1);
13909 if (($sdl_major_version > major) ||
13910 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13911 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13913 return 0;
13915 else
13917 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13918 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13919 printf("*** best to upgrade to the required version.\n");
13920 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13921 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13922 printf("*** config.cache before re-running configure\n");
13923 return 1;
13928 _ACEOF
13929 if ac_fn_c_try_run "$LINENO"; then :
13931 else
13932 no_sdl=yes
13934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13935 conftest.$ac_objext conftest.beam conftest.$ac_ext
13938 CFLAGS="$ac_save_CFLAGS"
13939 CXXFLAGS="$ac_save_CXXFLAGS"
13940 LIBS="$ac_save_LIBS"
13943 if test "x$no_sdl" = x ; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13945 $as_echo "yes" >&6; }
13946 have_sdl="yes"
13947 else
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13950 if test "$SDL_CONFIG" = "no" ; then
13951 echo "*** The sdl-config script installed by SDL could not be found"
13952 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13953 echo "*** your path, or set the SDL_CONFIG environment variable to the"
13954 echo "*** full path to sdl-config."
13955 else
13956 if test -f conf.sdltest ; then
13958 else
13959 echo "*** Could not run SDL test program, checking why..."
13960 CFLAGS="$CFLAGS $SDL_CFLAGS"
13961 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13962 LIBS="$LIBS $SDL_LIBS"
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13966 #include <stdio.h>
13967 #include "SDL.h"
13969 int main(int argc, char *argv[])
13970 { return 0; }
13971 #undef main
13972 #define main K_and_R_C_main
13975 main ()
13977 return 0;
13979 return 0;
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 echo "*** The test program compiled, but did not run. This usually means"
13984 echo "*** that the run-time linker is not finding SDL or finding the wrong"
13985 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13986 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13987 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13988 echo "*** is required on your system"
13989 echo "***"
13990 echo "*** If you have an old version installed, it is best to remove it, although"
13991 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13992 else
13993 echo "*** The test program failed to compile or link. See the file config.log for the"
13994 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13995 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13996 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13998 rm -f core conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 CFLAGS="$ac_save_CFLAGS"
14001 CXXFLAGS="$ac_save_CXXFLAGS"
14002 LIBS="$ac_save_LIBS"
14005 SDL_CFLAGS=""
14006 SDL_LIBS=""
14007 have_sdl="no"
14011 rm -f conf.sdltest
14014 if test "x-$have_sdl" != "x-yes" ; then
14016 if test "x-$sdl_hidd" != "x-auto" ; then
14017 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14020 else
14021 sdl_hidd_target=kernel-hidd-sdl
14022 aros_host_sdl_cflags=SDL_CFLAGS
14023 aros_host_sdl_libs=SDL_LIBS
14027 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14028 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14033 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14034 oss_library_target=workbench-libs-oss-unix
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14040 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14041 # Check whether --enable-dbus was given.
14042 if test "${enable_dbus+set}" = set; then :
14043 enableval=$enable_dbus; dbus="yes"
14044 else
14045 dbus="no"
14048 if test "$dbus" = "yes" ; then
14049 ENABLE_DBUS=1
14050 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14051 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14052 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14053 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14054 else
14055 ENABLE_DBUS=0
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14058 $as_echo "$dbus" >&6; }
14060 if test "$use_kernel_cc_wrapper" = "yes" ; then
14061 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14064 if test "${crosstools}" != "yes" ; then
14065 aros_target_toolchain=no
14066 else
14067 aros_target_toolchain=yes
14071 # Generic
14083 # Compatability with other Amiga-like operation systems
14086 # Host related
14114 # Target Related
14178 # Delinting target compiler flags
14185 # Graphics Related
14202 # Native version related
14205 # Palm native version related
14208 # Unix/Hosted version related
14211 # MMU related
14214 # Apple iOS related
14219 # Android related
14223 # DBUS related
14230 #X11 related
14233 # Debug related
14239 # Collect-aros stuff: "-ius" to ignore undefined symbols
14242 # C compiler related
14245 case "$aros_flavour" in
14246 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14247 aros_flavour="emulation" ;;
14248 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14249 aros_flavour="emulation" ;;
14250 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14251 aros_flavour="standalone";;
14252 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14253 aros_flavour="standalone";;
14254 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14255 aros_flavour="native" ;;
14256 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14257 aros_flavour="native" ;;
14258 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14259 aros_flavour="linklib" ;;
14260 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14261 aros_flavour="palmnative" ;;
14262 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14263 aros_flavour="mac68knative" ;;
14264 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14265 aros_flavour="ppcnative" ;;
14266 esac
14268 if test ! -d ${aros_inc_dir} ; then
14269 ${MKDIR} ${aros_inc_dir}
14271 if test ! -d ${aros_geninc_dir} ; then
14272 ${MKDIR} ${aros_geninc_dir}
14274 if test ! -d ${aros_hostcfg_dir} ; then
14275 ${MKDIR} ${aros_hostcfg_dir}
14277 if test ! -d ${aros_targetcfg_dir} ; then
14278 ${MKDIR} ${aros_targetcfg_dir}
14280 if test ! -d ${aros_tools_dir} ; then
14281 ${MKDIR} ${aros_tools_dir}
14283 if test ! -d ${aros_scripts_dir} ; then
14284 ${MKDIR} ${aros_scripts_dir}
14287 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14290 ac_config_commands="$ac_config_commands compiler_executable"
14292 ac_config_commands="$ac_config_commands genmf_executable"
14295 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"
14298 cat >confcache <<\_ACEOF
14299 # This file is a shell script that caches the results of configure
14300 # tests run on this system so they can be shared between configure
14301 # scripts and configure runs, see configure's option --config-cache.
14302 # It is not useful on other systems. If it contains results you don't
14303 # want to keep, you may remove or edit it.
14305 # config.status only pays attention to the cache file if you give it
14306 # the --recheck option to rerun configure.
14308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14310 # following values.
14312 _ACEOF
14314 # The following way of writing the cache mishandles newlines in values,
14315 # but we know of no workaround that is simple, portable, and efficient.
14316 # So, we kill variables containing newlines.
14317 # Ultrix sh set writes to stderr and can't be redirected directly,
14318 # and sets the high bit in the cache file unless we assign to the vars.
14320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14321 eval ac_val=\$$ac_var
14322 case $ac_val in #(
14323 *${as_nl}*)
14324 case $ac_var in #(
14325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14327 esac
14328 case $ac_var in #(
14329 _ | IFS | as_nl) ;; #(
14330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14331 *) { eval $ac_var=; unset $ac_var;} ;;
14332 esac ;;
14333 esac
14334 done
14336 (set) 2>&1 |
14337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14338 *${as_nl}ac_space=\ *)
14339 # `set' does not quote correctly, so add quotes: double-quote
14340 # substitution turns \\\\ into \\, and sed turns \\ into \.
14341 sed -n \
14342 "s/'/'\\\\''/g;
14343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14344 ;; #(
14346 # `set' quotes correctly as required by POSIX, so do not add quotes.
14347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14349 esac |
14350 sort
14352 sed '
14353 /^ac_cv_env_/b end
14354 t clear
14355 :clear
14356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14357 t end
14358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14359 :end' >>confcache
14360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14361 if test -w "$cache_file"; then
14362 if test "x$cache_file" != "x/dev/null"; then
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14364 $as_echo "$as_me: updating cache $cache_file" >&6;}
14365 if test ! -f "$cache_file" || test -h "$cache_file"; then
14366 cat confcache >"$cache_file"
14367 else
14368 case $cache_file in #(
14369 */* | ?:*)
14370 mv -f confcache "$cache_file"$$ &&
14371 mv -f "$cache_file"$$ "$cache_file" ;; #(
14373 mv -f confcache "$cache_file" ;;
14374 esac
14377 else
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14382 rm -f confcache
14384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14385 # Let make expand exec_prefix.
14386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14388 DEFS=-DHAVE_CONFIG_H
14390 ac_libobjs=
14391 ac_ltlibobjs=
14393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14394 # 1. Remove the extension, and $U if already installed.
14395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14398 # will be set to the directory where LIBOBJS objects are built.
14399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14401 done
14402 LIBOBJS=$ac_libobjs
14404 LTLIBOBJS=$ac_ltlibobjs
14408 : "${CONFIG_STATUS=./config.status}"
14409 ac_write_fail=0
14410 ac_clean_files_save=$ac_clean_files
14411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14414 as_write_fail=0
14415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14416 #! $SHELL
14417 # Generated by $as_me.
14418 # Run this file to recreate the current configuration.
14419 # Compiler output produced by configure, useful for debugging
14420 # configure, is in config.log if it exists.
14422 debug=false
14423 ac_cs_recheck=false
14424 ac_cs_silent=false
14426 SHELL=\${CONFIG_SHELL-$SHELL}
14427 export SHELL
14428 _ASEOF
14429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14430 ## -------------------- ##
14431 ## M4sh Initialization. ##
14432 ## -------------------- ##
14434 # Be more Bourne compatible
14435 DUALCASE=1; export DUALCASE # for MKS sh
14436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14437 emulate sh
14438 NULLCMD=:
14439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14440 # is contrary to our usage. Disable this feature.
14441 alias -g '${1+"$@"}'='"$@"'
14442 setopt NO_GLOB_SUBST
14443 else
14444 case `(set -o) 2>/dev/null` in #(
14445 *posix*) :
14446 set -o posix ;; #(
14447 *) :
14449 esac
14453 as_nl='
14455 export as_nl
14456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14460 # Prefer a ksh shell builtin over an external printf program on Solaris,
14461 # but without wasting forks for bash or zsh.
14462 if test -z "$BASH_VERSION$ZSH_VERSION" \
14463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14464 as_echo='print -r --'
14465 as_echo_n='print -rn --'
14466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14467 as_echo='printf %s\n'
14468 as_echo_n='printf %s'
14469 else
14470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14472 as_echo_n='/usr/ucb/echo -n'
14473 else
14474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14475 as_echo_n_body='eval
14476 arg=$1;
14477 case $arg in #(
14478 *"$as_nl"*)
14479 expr "X$arg" : "X\\(.*\\)$as_nl";
14480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14481 esac;
14482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14484 export as_echo_n_body
14485 as_echo_n='sh -c $as_echo_n_body as_echo'
14487 export as_echo_body
14488 as_echo='sh -c $as_echo_body as_echo'
14491 # The user is always right.
14492 if test "${PATH_SEPARATOR+set}" != set; then
14493 PATH_SEPARATOR=:
14494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14496 PATH_SEPARATOR=';'
14501 # IFS
14502 # We need space, tab and new line, in precisely that order. Quoting is
14503 # there to prevent editors from complaining about space-tab.
14504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14505 # splitting by setting IFS to empty value.)
14506 IFS=" "" $as_nl"
14508 # Find who we are. Look in the path if we contain no directory separator.
14509 as_myself=
14510 case $0 in #((
14511 *[\\/]* ) as_myself=$0 ;;
14512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513 for as_dir in $PATH
14515 IFS=$as_save_IFS
14516 test -z "$as_dir" && as_dir=.
14517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14518 done
14519 IFS=$as_save_IFS
14522 esac
14523 # We did not find ourselves, most probably we were run as `sh COMMAND'
14524 # in which case we are not to be found in the path.
14525 if test "x$as_myself" = x; then
14526 as_myself=$0
14528 if test ! -f "$as_myself"; then
14529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14530 exit 1
14533 # Unset variables that we do not need and which cause bugs (e.g. in
14534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14535 # suppresses any "Segmentation fault" message there. '((' could
14536 # trigger a bug in pdksh 5.2.14.
14537 for as_var in BASH_ENV ENV MAIL MAILPATH
14538 do eval test x\${$as_var+set} = xset \
14539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14540 done
14541 PS1='$ '
14542 PS2='> '
14543 PS4='+ '
14545 # NLS nuisances.
14546 LC_ALL=C
14547 export LC_ALL
14548 LANGUAGE=C
14549 export LANGUAGE
14551 # CDPATH.
14552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14556 # ----------------------------------------
14557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14559 # script with STATUS, using 1 if that was 0.
14560 as_fn_error ()
14562 as_status=$1; test $as_status -eq 0 && as_status=1
14563 if test "$4"; then
14564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14567 $as_echo "$as_me: error: $2" >&2
14568 as_fn_exit $as_status
14569 } # as_fn_error
14572 # as_fn_set_status STATUS
14573 # -----------------------
14574 # Set $? to STATUS, without forking.
14575 as_fn_set_status ()
14577 return $1
14578 } # as_fn_set_status
14580 # as_fn_exit STATUS
14581 # -----------------
14582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14583 as_fn_exit ()
14585 set +e
14586 as_fn_set_status $1
14587 exit $1
14588 } # as_fn_exit
14590 # as_fn_unset VAR
14591 # ---------------
14592 # Portably unset VAR.
14593 as_fn_unset ()
14595 { eval $1=; unset $1;}
14597 as_unset=as_fn_unset
14598 # as_fn_append VAR VALUE
14599 # ----------------------
14600 # Append the text in VALUE to the end of the definition contained in VAR. Take
14601 # advantage of any shell optimizations that allow amortized linear growth over
14602 # repeated appends, instead of the typical quadratic growth present in naive
14603 # implementations.
14604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14605 eval 'as_fn_append ()
14607 eval $1+=\$2
14609 else
14610 as_fn_append ()
14612 eval $1=\$$1\$2
14614 fi # as_fn_append
14616 # as_fn_arith ARG...
14617 # ------------------
14618 # Perform arithmetic evaluation on the ARGs, and store the result in the
14619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14620 # must be portable across $(()) and expr.
14621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14622 eval 'as_fn_arith ()
14624 as_val=$(( $* ))
14626 else
14627 as_fn_arith ()
14629 as_val=`expr "$@" || test $? -eq 1`
14631 fi # as_fn_arith
14634 if expr a : '\(a\)' >/dev/null 2>&1 &&
14635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14636 as_expr=expr
14637 else
14638 as_expr=false
14641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14642 as_basename=basename
14643 else
14644 as_basename=false
14647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14648 as_dirname=dirname
14649 else
14650 as_dirname=false
14653 as_me=`$as_basename -- "$0" ||
14654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14655 X"$0" : 'X\(//\)$' \| \
14656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14657 $as_echo X/"$0" |
14658 sed '/^.*\/\([^/][^/]*\)\/*$/{
14659 s//\1/
14662 /^X\/\(\/\/\)$/{
14663 s//\1/
14666 /^X\/\(\/\).*/{
14667 s//\1/
14670 s/.*/./; q'`
14672 # Avoid depending upon Character Ranges.
14673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14676 as_cr_digits='0123456789'
14677 as_cr_alnum=$as_cr_Letters$as_cr_digits
14679 ECHO_C= ECHO_N= ECHO_T=
14680 case `echo -n x` in #(((((
14681 -n*)
14682 case `echo 'xy\c'` in
14683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14684 xy) ECHO_C='\c';;
14685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14686 ECHO_T=' ';;
14687 esac;;
14689 ECHO_N='-n';;
14690 esac
14692 rm -f conf$$ conf$$.exe conf$$.file
14693 if test -d conf$$.dir; then
14694 rm -f conf$$.dir/conf$$.file
14695 else
14696 rm -f conf$$.dir
14697 mkdir conf$$.dir 2>/dev/null
14699 if (echo >conf$$.file) 2>/dev/null; then
14700 if ln -s conf$$.file conf$$ 2>/dev/null; then
14701 as_ln_s='ln -s'
14702 # ... but there are two gotchas:
14703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14705 # In both cases, we have to default to `cp -p'.
14706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14707 as_ln_s='cp -p'
14708 elif ln conf$$.file conf$$ 2>/dev/null; then
14709 as_ln_s=ln
14710 else
14711 as_ln_s='cp -p'
14713 else
14714 as_ln_s='cp -p'
14716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14717 rmdir conf$$.dir 2>/dev/null
14720 # as_fn_mkdir_p
14721 # -------------
14722 # Create "$as_dir" as a directory, including parents if necessary.
14723 as_fn_mkdir_p ()
14726 case $as_dir in #(
14727 -*) as_dir=./$as_dir;;
14728 esac
14729 test -d "$as_dir" || eval $as_mkdir_p || {
14730 as_dirs=
14731 while :; do
14732 case $as_dir in #(
14733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14734 *) as_qdir=$as_dir;;
14735 esac
14736 as_dirs="'$as_qdir' $as_dirs"
14737 as_dir=`$as_dirname -- "$as_dir" ||
14738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14739 X"$as_dir" : 'X\(//\)[^/]' \| \
14740 X"$as_dir" : 'X\(//\)$' \| \
14741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14742 $as_echo X"$as_dir" |
14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14744 s//\1/
14747 /^X\(\/\/\)[^/].*/{
14748 s//\1/
14751 /^X\(\/\/\)$/{
14752 s//\1/
14755 /^X\(\/\).*/{
14756 s//\1/
14759 s/.*/./; q'`
14760 test -d "$as_dir" && break
14761 done
14762 test -z "$as_dirs" || eval "mkdir $as_dirs"
14763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14766 } # as_fn_mkdir_p
14767 if mkdir -p . 2>/dev/null; then
14768 as_mkdir_p='mkdir -p "$as_dir"'
14769 else
14770 test -d ./-p && rmdir ./-p
14771 as_mkdir_p=false
14774 if test -x / >/dev/null 2>&1; then
14775 as_test_x='test -x'
14776 else
14777 if ls -dL / >/dev/null 2>&1; then
14778 as_ls_L_option=L
14779 else
14780 as_ls_L_option=
14782 as_test_x='
14783 eval sh -c '\''
14784 if test -d "$1"; then
14785 test -d "$1/.";
14786 else
14787 case $1 in #(
14788 -*)set "./$1";;
14789 esac;
14790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14791 ???[sx]*):;;*)false;;esac;fi
14792 '\'' sh
14795 as_executable_p=$as_test_x
14797 # Sed expression to map a string onto a valid CPP name.
14798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14800 # Sed expression to map a string onto a valid variable name.
14801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14804 exec 6>&1
14805 ## ----------------------------------- ##
14806 ## Main body of $CONFIG_STATUS script. ##
14807 ## ----------------------------------- ##
14808 _ASEOF
14809 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14812 # Save the log message, to keep $0 and so on meaningful, and to
14813 # report actual input values of CONFIG_FILES etc. instead of their
14814 # values after options handling.
14815 ac_log="
14816 This file was extended by $as_me, which was
14817 generated by GNU Autoconf 2.68. Invocation command line was
14819 CONFIG_FILES = $CONFIG_FILES
14820 CONFIG_HEADERS = $CONFIG_HEADERS
14821 CONFIG_LINKS = $CONFIG_LINKS
14822 CONFIG_COMMANDS = $CONFIG_COMMANDS
14823 $ $0 $@
14825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14828 _ACEOF
14830 case $ac_config_files in *"
14831 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14832 esac
14834 case $ac_config_headers in *"
14835 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14836 esac
14839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14840 # Files that config.status was made for.
14841 config_files="$ac_config_files"
14842 config_headers="$ac_config_headers"
14843 config_commands="$ac_config_commands"
14845 _ACEOF
14847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14848 ac_cs_usage="\
14849 \`$as_me' instantiates files and other configuration actions
14850 from templates according to the current configuration. Unless the files
14851 and actions are specified as TAGs, all are instantiated by default.
14853 Usage: $0 [OPTION]... [TAG]...
14855 -h, --help print this help, then exit
14856 -V, --version print version number and configuration settings, then exit
14857 --config print configuration, then exit
14858 -q, --quiet, --silent
14859 do not print progress messages
14860 -d, --debug don't remove temporary files
14861 --recheck update $as_me by reconfiguring in the same conditions
14862 --file=FILE[:TEMPLATE]
14863 instantiate the configuration file FILE
14864 --header=FILE[:TEMPLATE]
14865 instantiate the configuration header FILE
14867 Configuration files:
14868 $config_files
14870 Configuration headers:
14871 $config_headers
14873 Configuration commands:
14874 $config_commands
14876 Report bugs to the package provider."
14878 _ACEOF
14879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14880 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14881 ac_cs_version="\\
14882 config.status
14883 configured by $0, generated by GNU Autoconf 2.68,
14884 with options \\"\$ac_cs_config\\"
14886 Copyright (C) 2010 Free Software Foundation, Inc.
14887 This config.status script is free software; the Free Software Foundation
14888 gives unlimited permission to copy, distribute and modify it."
14890 ac_pwd='$ac_pwd'
14891 srcdir='$srcdir'
14892 test -n "\$AWK" || AWK=awk
14893 _ACEOF
14895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14896 # The default lists apply if the user does not specify any file.
14897 ac_need_defaults=:
14898 while test $# != 0
14900 case $1 in
14901 --*=?*)
14902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14904 ac_shift=:
14906 --*=)
14907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14908 ac_optarg=
14909 ac_shift=:
14912 ac_option=$1
14913 ac_optarg=$2
14914 ac_shift=shift
14916 esac
14918 case $ac_option in
14919 # Handling of the options.
14920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14921 ac_cs_recheck=: ;;
14922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14923 $as_echo "$ac_cs_version"; exit ;;
14924 --config | --confi | --conf | --con | --co | --c )
14925 $as_echo "$ac_cs_config"; exit ;;
14926 --debug | --debu | --deb | --de | --d | -d )
14927 debug=: ;;
14928 --file | --fil | --fi | --f )
14929 $ac_shift
14930 case $ac_optarg in
14931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14932 '') as_fn_error $? "missing file argument" ;;
14933 esac
14934 as_fn_append CONFIG_FILES " '$ac_optarg'"
14935 ac_need_defaults=false;;
14936 --header | --heade | --head | --hea )
14937 $ac_shift
14938 case $ac_optarg in
14939 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14940 esac
14941 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14942 ac_need_defaults=false;;
14943 --he | --h)
14944 # Conflict between --help and --header
14945 as_fn_error $? "ambiguous option: \`$1'
14946 Try \`$0 --help' for more information.";;
14947 --help | --hel | -h )
14948 $as_echo "$ac_cs_usage"; exit ;;
14949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14951 ac_cs_silent=: ;;
14953 # This is an error.
14954 -*) as_fn_error $? "unrecognized option: \`$1'
14955 Try \`$0 --help' for more information." ;;
14957 *) as_fn_append ac_config_targets " $1"
14958 ac_need_defaults=false ;;
14960 esac
14961 shift
14962 done
14964 ac_configure_extra_args=
14966 if $ac_cs_silent; then
14967 exec 6>/dev/null
14968 ac_configure_extra_args="$ac_configure_extra_args --silent"
14971 _ACEOF
14972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973 if \$ac_cs_recheck; then
14974 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14975 shift
14976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14977 CONFIG_SHELL='$SHELL'
14978 export CONFIG_SHELL
14979 exec "\$@"
14982 _ACEOF
14983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984 exec 5>>config.log
14986 echo
14987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14988 ## Running $as_me. ##
14989 _ASBOX
14990 $as_echo "$ac_log"
14991 } >&5
14993 _ACEOF
14994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14996 # INIT-COMMANDS
14999 aros_host_exe_suffix=${aros_host_exe_suffix}
15000 aros_tools_dir=${aros_tools_dir}
15001 aros_target_cpu=${aros_target_cpu}
15002 aros_target_arch=${aros_target_arch}
15003 aros_target_suffix=${aros_target_suffix}
15004 orig_target_nm=${orig_target_nm}
15005 orig_target_as=${orig_target_as}
15006 orig_target_ar=${orig_target_ar}
15007 orig_target_ranlib=${orig_target_ranlib}
15008 orig_target_objdump=${orig_target_objdump}
15009 orig_target_objcopy=${orig_target_objcopy}
15010 orig_target_strip=${orig_target_strip}
15011 aros_kernel_ld=${aros_kernel_ld}
15014 aros_tools_dir=${aros_tools_dir}
15017 _ACEOF
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 # Handling of arguments.
15022 for ac_config_target in $ac_config_targets
15024 case $ac_config_target in
15025 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15026 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15027 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15028 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15029 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15030 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15031 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15032 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15033 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15034 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15035 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15036 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15037 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15038 "${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" ;;
15039 "${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" ;;
15040 "${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" ;;
15041 "${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" ;;
15042 "${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" ;;
15043 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15044 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15045 "${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" ;;
15047 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15048 esac
15049 done
15052 # If the user did not use the arguments to specify the items to instantiate,
15053 # then the envvar interface is used. Set only those that are not.
15054 # We use the long form for the default assignment because of an extremely
15055 # bizarre bug on SunOS 4.1.3.
15056 if $ac_need_defaults; then
15057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15062 # Have a temporary directory for convenience. Make it in the build tree
15063 # simply because there is no reason against having it here, and in addition,
15064 # creating and moving files from /tmp can sometimes cause problems.
15065 # Hook for its removal unless debugging.
15066 # Note that there is a small window in which the directory will not be cleaned:
15067 # after its creation but before its name has been assigned to `$tmp'.
15068 $debug ||
15070 tmp= ac_tmp=
15071 trap 'exit_status=$?
15072 : "${ac_tmp:=$tmp}"
15073 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15075 trap 'as_fn_exit 1' 1 2 13 15
15077 # Create a (secure) tmp directory for tmp files.
15080 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15081 test -d "$tmp"
15082 } ||
15084 tmp=./conf$$-$RANDOM
15085 (umask 077 && mkdir "$tmp")
15086 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15087 ac_tmp=$tmp
15089 # Set up the scripts for CONFIG_FILES section.
15090 # No need to generate them if there are no CONFIG_FILES.
15091 # This happens for instance with `./config.status config.h'.
15092 if test -n "$CONFIG_FILES"; then
15095 ac_cr=`echo X | tr X '\015'`
15096 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15097 # But we know of no other shell where ac_cr would be empty at this
15098 # point, so we can use a bashism as a fallback.
15099 if test "x$ac_cr" = x; then
15100 eval ac_cr=\$\'\\r\'
15102 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15103 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15104 ac_cs_awk_cr='\\r'
15105 else
15106 ac_cs_awk_cr=$ac_cr
15109 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15110 _ACEOF
15114 echo "cat >conf$$subs.awk <<_ACEOF" &&
15115 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15116 echo "_ACEOF"
15117 } >conf$$subs.sh ||
15118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15119 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15120 ac_delim='%!_!# '
15121 for ac_last_try in false false false false false :; do
15122 . ./conf$$subs.sh ||
15123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15125 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15126 if test $ac_delim_n = $ac_delim_num; then
15127 break
15128 elif $ac_last_try; then
15129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15130 else
15131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15133 done
15134 rm -f conf$$subs.sh
15136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15137 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15138 _ACEOF
15139 sed -n '
15141 s/^/S["/; s/!.*/"]=/
15144 s/^[^!]*!//
15145 :repl
15146 t repl
15147 s/'"$ac_delim"'$//
15148 t delim
15151 s/\(.\{148\}\)..*/\1/
15152 t more1
15153 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15156 b repl
15157 :more1
15158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15161 s/.\{148\}//
15162 t nl
15163 :delim
15165 s/\(.\{148\}\)..*/\1/
15166 t more2
15167 s/["\\]/\\&/g; s/^/"/; s/$/"/
15170 :more2
15171 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15174 s/.\{148\}//
15175 t delim
15176 ' <conf$$subs.awk | sed '
15177 /^[^""]/{
15179 s/\n//
15181 ' >>$CONFIG_STATUS || ac_write_fail=1
15182 rm -f conf$$subs.awk
15183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184 _ACAWK
15185 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15186 for (key in S) S_is_set[key] = 1
15187 FS = "\a"
15191 line = $ 0
15192 nfields = split(line, field, "@")
15193 substed = 0
15194 len = length(field[1])
15195 for (i = 2; i < nfields; i++) {
15196 key = field[i]
15197 keylen = length(key)
15198 if (S_is_set[key]) {
15199 value = S[key]
15200 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15201 len += length(value) + length(field[++i])
15202 substed = 1
15203 } else
15204 len += 1 + keylen
15207 print line
15210 _ACAWK
15211 _ACEOF
15212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15213 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15214 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15215 else
15217 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15218 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15219 _ACEOF
15221 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15222 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15223 # trailing colons and then remove the whole line if VPATH becomes empty
15224 # (actually we leave an empty line to preserve line numbers).
15225 if test "x$srcdir" = x.; then
15226 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15228 s///
15229 s/^/:/
15230 s/[ ]*$/:/
15231 s/:\$(srcdir):/:/g
15232 s/:\${srcdir}:/:/g
15233 s/:@srcdir@:/:/g
15234 s/^:*//
15235 s/:*$//
15237 s/\(=[ ]*\).*/\1/
15239 s/\n//
15240 s/^[^=]*=[ ]*$//
15244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15245 fi # test -n "$CONFIG_FILES"
15247 # Set up the scripts for CONFIG_HEADERS section.
15248 # No need to generate them if there are no CONFIG_HEADERS.
15249 # This happens for instance with `./config.status Makefile'.
15250 if test -n "$CONFIG_HEADERS"; then
15251 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15252 BEGIN {
15253 _ACEOF
15255 # Transform confdefs.h into an awk script `defines.awk', embedded as
15256 # here-document in config.status, that substitutes the proper values into
15257 # config.h.in to produce config.h.
15259 # Create a delimiter string that does not exist in confdefs.h, to ease
15260 # handling of long lines.
15261 ac_delim='%!_!# '
15262 for ac_last_try in false false :; do
15263 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15264 if test -z "$ac_tt"; then
15265 break
15266 elif $ac_last_try; then
15267 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15268 else
15269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15271 done
15273 # For the awk script, D is an array of macro values keyed by name,
15274 # likewise P contains macro parameters if any. Preserve backslash
15275 # newline sequences.
15277 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15278 sed -n '
15279 s/.\{148\}/&'"$ac_delim"'/g
15280 t rset
15281 :rset
15282 s/^[ ]*#[ ]*define[ ][ ]*/ /
15283 t def
15285 :def
15286 s/\\$//
15287 t bsnl
15288 s/["\\]/\\&/g
15289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15290 D["\1"]=" \3"/p
15291 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15293 :bsnl
15294 s/["\\]/\\&/g
15295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15296 D["\1"]=" \3\\\\\\n"\\/p
15297 t cont
15298 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15299 t cont
15301 :cont
15303 s/.\{148\}/&'"$ac_delim"'/g
15304 t clear
15305 :clear
15306 s/\\$//
15307 t bsnlc
15308 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15310 :bsnlc
15311 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15312 b cont
15313 ' <confdefs.h | sed '
15314 s/'"$ac_delim"'/"\\\
15315 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 for (key in D) D_is_set[key] = 1
15319 FS = "\a"
15321 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15322 line = \$ 0
15323 split(line, arg, " ")
15324 if (arg[1] == "#") {
15325 defundef = arg[2]
15326 mac1 = arg[3]
15327 } else {
15328 defundef = substr(arg[1], 2)
15329 mac1 = arg[2]
15331 split(mac1, mac2, "(") #)
15332 macro = mac2[1]
15333 prefix = substr(line, 1, index(line, defundef) - 1)
15334 if (D_is_set[macro]) {
15335 # Preserve the white space surrounding the "#".
15336 print prefix "define", macro P[macro] D[macro]
15337 next
15338 } else {
15339 # Replace #undef with comments. This is necessary, for example,
15340 # in the case of _POSIX_SOURCE, which is predefined and required
15341 # on some systems where configure will not decide to define it.
15342 if (defundef == "undef") {
15343 print "/*", prefix defundef, macro, "*/"
15344 next
15348 { print }
15349 _ACAWK
15350 _ACEOF
15351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15352 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15353 fi # test -n "$CONFIG_HEADERS"
15356 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15357 shift
15358 for ac_tag
15360 case $ac_tag in
15361 :[FHLC]) ac_mode=$ac_tag; continue;;
15362 esac
15363 case $ac_mode$ac_tag in
15364 :[FHL]*:*);;
15365 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15366 :[FH]-) ac_tag=-:-;;
15367 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15368 esac
15369 ac_save_IFS=$IFS
15370 IFS=:
15371 set x $ac_tag
15372 IFS=$ac_save_IFS
15373 shift
15374 ac_file=$1
15375 shift
15377 case $ac_mode in
15378 :L) ac_source=$1;;
15379 :[FH])
15380 ac_file_inputs=
15381 for ac_f
15383 case $ac_f in
15384 -) ac_f="$ac_tmp/stdin";;
15385 *) # Look for the file first in the build tree, then in the source tree
15386 # (if the path is not absolute). The absolute path cannot be DOS-style,
15387 # because $ac_f cannot contain `:'.
15388 test -f "$ac_f" ||
15389 case $ac_f in
15390 [\\/$]*) false;;
15391 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15392 esac ||
15393 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15394 esac
15395 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15396 as_fn_append ac_file_inputs " '$ac_f'"
15397 done
15399 # Let's still pretend it is `configure' which instantiates (i.e., don't
15400 # use $as_me), people would be surprised to read:
15401 # /* config.h. Generated by config.status. */
15402 configure_input='Generated from '`
15403 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15404 `' by configure.'
15405 if test x"$ac_file" != x-; then
15406 configure_input="$ac_file. $configure_input"
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15408 $as_echo "$as_me: creating $ac_file" >&6;}
15410 # Neutralize special characters interpreted by sed in replacement strings.
15411 case $configure_input in #(
15412 *\&* | *\|* | *\\* )
15413 ac_sed_conf_input=`$as_echo "$configure_input" |
15414 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15415 *) ac_sed_conf_input=$configure_input;;
15416 esac
15418 case $ac_tag in
15419 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15421 esac
15423 esac
15425 ac_dir=`$as_dirname -- "$ac_file" ||
15426 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15427 X"$ac_file" : 'X\(//\)[^/]' \| \
15428 X"$ac_file" : 'X\(//\)$' \| \
15429 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15430 $as_echo X"$ac_file" |
15431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15432 s//\1/
15435 /^X\(\/\/\)[^/].*/{
15436 s//\1/
15439 /^X\(\/\/\)$/{
15440 s//\1/
15443 /^X\(\/\).*/{
15444 s//\1/
15447 s/.*/./; q'`
15448 as_dir="$ac_dir"; as_fn_mkdir_p
15449 ac_builddir=.
15451 case "$ac_dir" in
15452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15455 # A ".." for each directory in $ac_dir_suffix.
15456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15457 case $ac_top_builddir_sub in
15458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15460 esac ;;
15461 esac
15462 ac_abs_top_builddir=$ac_pwd
15463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15464 # for backward compatibility:
15465 ac_top_builddir=$ac_top_build_prefix
15467 case $srcdir in
15468 .) # We are building in place.
15469 ac_srcdir=.
15470 ac_top_srcdir=$ac_top_builddir_sub
15471 ac_abs_top_srcdir=$ac_pwd ;;
15472 [\\/]* | ?:[\\/]* ) # Absolute name.
15473 ac_srcdir=$srcdir$ac_dir_suffix;
15474 ac_top_srcdir=$srcdir
15475 ac_abs_top_srcdir=$srcdir ;;
15476 *) # Relative name.
15477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15478 ac_top_srcdir=$ac_top_build_prefix$srcdir
15479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15480 esac
15481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15484 case $ac_mode in
15487 # CONFIG_FILE
15490 _ACEOF
15492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15493 # If the template does not know about datarootdir, expand it.
15494 # FIXME: This hack should be removed a few years after 2.60.
15495 ac_datarootdir_hack=; ac_datarootdir_seen=
15496 ac_sed_dataroot='
15497 /datarootdir/ {
15501 /@datadir@/p
15502 /@docdir@/p
15503 /@infodir@/p
15504 /@localedir@/p
15505 /@mandir@/p'
15506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15507 *datarootdir*) ac_datarootdir_seen=yes;;
15508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15511 _ACEOF
15512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513 ac_datarootdir_hack='
15514 s&@datadir@&$datadir&g
15515 s&@docdir@&$docdir&g
15516 s&@infodir@&$infodir&g
15517 s&@localedir@&$localedir&g
15518 s&@mandir@&$mandir&g
15519 s&\\\${datarootdir}&$datarootdir&g' ;;
15520 esac
15521 _ACEOF
15523 # Neutralize VPATH when `$srcdir' = `.'.
15524 # Shell code in configure.ac might set extrasub.
15525 # FIXME: do we really want to maintain this feature?
15526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15527 ac_sed_extra="$ac_vpsub
15528 $extrasub
15529 _ACEOF
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15533 s|@configure_input@|$ac_sed_conf_input|;t t
15534 s&@top_builddir@&$ac_top_builddir_sub&;t t
15535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15536 s&@srcdir@&$ac_srcdir&;t t
15537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15538 s&@top_srcdir@&$ac_top_srcdir&;t t
15539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15540 s&@builddir@&$ac_builddir&;t t
15541 s&@abs_builddir@&$ac_abs_builddir&;t t
15542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15543 $ac_datarootdir_hack
15545 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15546 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15549 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15551 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15553 which seems to be undefined. Please make sure it is defined" >&5
15554 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15555 which seems to be undefined. Please make sure it is defined" >&2;}
15557 rm -f "$ac_tmp/stdin"
15558 case $ac_file in
15559 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15560 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15561 esac \
15562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15566 # CONFIG_HEADER
15568 if test x"$ac_file" != x-; then
15570 $as_echo "/* $configure_input */" \
15571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15572 } >"$ac_tmp/config.h" \
15573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15574 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15576 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15577 else
15578 rm -f "$ac_file"
15579 mv "$ac_tmp/config.h" "$ac_file" \
15580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15582 else
15583 $as_echo "/* $configure_input */" \
15584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15585 || as_fn_error $? "could not create -" "$LINENO" 5
15589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15590 $as_echo "$as_me: executing $ac_file commands" >&6;}
15592 esac
15595 case $ac_file$ac_mode in
15596 "compiler_executable":C)
15597 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15598 mkdir -p $prefix
15599 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15600 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15602 echo ${prefix2}
15603 echo ${prefix3}
15604 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15606 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15607 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15608 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15609 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15610 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15611 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15612 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15614 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15616 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15618 esac
15619 done # for ac_tag
15622 as_fn_exit 0
15623 _ACEOF
15624 ac_clean_files=$ac_clean_files_save
15626 test $ac_write_fail = 0 ||
15627 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15630 # configure is writing to config.log, and then calls config.status.
15631 # config.status does its own redirection, appending to config.log.
15632 # Unfortunately, on DOS this fails, as config.log is still kept open
15633 # by configure, so config.status won't be able to write to it; its
15634 # output is simply discarded. So we exec the FD to /dev/null,
15635 # effectively closing config.log, so it can be properly (re)opened and
15636 # appended to by config.status. When coming back to configure, we
15637 # need to make the FD available again.
15638 if test "$no_create" != yes; then
15639 ac_cs_success=:
15640 ac_config_status_args=
15641 test "$silent" = yes &&
15642 ac_config_status_args="$ac_config_status_args --quiet"
15643 exec 5>/dev/null
15644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15645 exec 5>>config.log
15646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15647 # would make configure fail if this is the last instruction.
15648 $ac_cs_success || as_fn_exit 1
15650 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15652 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15657 #XXX compatability...
15658 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15660 if test -n "$aros_shared_cflags" ; then
15661 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15662 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg