Added KERNEL_INCLUDES to and pretty print 'make query' output.
[AROS.git] / configure
blobf12d3c76022c1b6d1817af7fb359b743e266abf3
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 with_resolution
889 with_serial_debug
890 enable_palm_debug_hack
891 enable_nesting_supervisor
892 enable_mmu
893 enable_x11_hidd
894 with_x
895 enable_x11_shm
896 enable_x11_vidmode
897 enable_sdl_hidd
898 with_sdl_prefix
899 with_sdl_exec_prefix
900 enable_sdltest
901 enable_dbus
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
912 CXXFLAGS
915 XMKMF'
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
966 ac_prev=
967 ac_dashdash=
968 for ac_option
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
977 case $ac_option in
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *=) ac_optarg= ;;
980 *) ac_optarg=yes ;;
981 esac
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
987 ac_dashdash=yes ;;
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1251 -with-* | --with-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=no ;;
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 esac
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 esac
1324 done
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used" >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1410 /^X\(\/\/\)$/{
1411 s//\1/
1414 /^X\(\/\).*/{
1415 s//\1/
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1423 else
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458 \`configure' configures this package to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1467 Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1511 _ACEOF
1513 cat <<\_ACEOF
1515 X features:
1516 --x-includes=DIR X include files are in DIR
1517 --x-libraries=DIR X library files are in DIR
1519 System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1527 cat <<\_ACEOF
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-build-type=TYPE
1534 Select the build type. Available types are:
1535 personal, nightly, snapshot, milestone, release. Do
1536 NOT use this option unless you know what you are
1537 doing! (default=personal)
1538 --enable-debug=list Enable different types of debug. Commas or
1539 whitespaces can be used to separate the items in the
1540 list. Available types of debug are: all, none,
1541 messages, stack, mungwall, modules, symbols. If no
1542 list is provided then "all" is assumed.
1543 (default=none)
1544 --enable-distcc Use distcc as a front end to the compiler
1545 (default=no).
1546 --enable-ccache Use ccache as a front end to the compiler
1547 (default=no).
1548 --enable-target-variant=NAME
1549 Enable a specific target variant(default=none)
1550 --enable-amigaos-compliance=VERSION
1551 Enforce userspace AmigaOS compliance to a specific
1552 KickStart version (default=none).
1553 --disable-crosstools Do not build cross-compiler toolchain
1554 --enable-palm-debug-hack
1555 Enable palm debug output hack in palm native
1556 (default=no)
1557 --enable-nesting-supervisor
1558 Enable nesting supervisor support in unix
1559 (default=no)
1560 --disable-mmu Disable MMU support (default=enabled)
1561 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1562 --enable-x11-shm use X11 shared memory (default=auto)
1563 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1564 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1565 --disable-sdltest Do not try to compile and run a test SDL program
1566 --enable-dbus Enable DBUS support via dbus.library (default=no)
1568 Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-kernel-gcc-version=VERSION
1572 Use host gcc-VERSION for building AROS
1573 --with-gcc-version=VERSION
1574 Use host gcc-VERSION for building AROS
1575 --with-optimization=FLAGS
1576 Use optimization flags FLAGS (default=-O2).
1577 --with-paranoia=FLAGS CC flags to enable paranoia
1578 --with-xcode=PATH Specify XCode path for iOS targets
1579 (default=/Developer).
1580 --with-sdk-version=VERSION
1581 Use iOS SDK version VERSION (default=4.1).
1582 --with-sdk=PATH Specify Android SDK path
1583 (default=$default_android_sdk).
1584 --with-ndk=PATH Specify Android NDK path (default=none).
1585 --with-sdk-version=LEVEL
1586 Use Android SDK for API LEVEL (default=12).
1587 --with-ndk-version=LEVEL
1588 Use Android NDK for API LEVEL (default=9).
1589 --with-kernel-toolchain-prefix=...
1590 Specify crosscompile toolchain prefix for kernel
1591 objects
1592 --with-elf-toolchain-prefix=...
1593 Specify crosscompile toolchain prefix to wrap for
1594 AROS objects
1595 --with-aros-toolchain=PREFIX
1596 Specify prebuilt AROS toolchain
1597 --with-aros-toolchain-install=DIR
1598 Where to install or search for cross tools binaries
1599 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1600 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1601 --with-float=<spec> Specify floating point ABI
1602 (default=$gcc_default_float_abi).
1603 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1604 --with-portssources=DIR Where to download sourcecode for external ports
1605 --with-bootloader=NAME Use a specific bootloader
1606 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1607 --with-theme=NAME Use a specific GUI Theme
1608 --with-resolution=XRESxYRESxDEPTH
1609 Default resolution of the initial WorkbenchScreen
1610 --with-serial-debug Enable serial debug output in native (default=no)
1611 --with-x use the X Window System
1612 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1613 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1615 Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 CPP C preprocessor
1626 XMKMF Path to xmkmf, Makefile generator for X Window System
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to the package provider.
1632 _ACEOF
1633 ac_status=$?
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 continue
1642 ac_builddir=.
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1660 case $srcdir in
1661 .) # We are building in place.
1662 ac_srcdir=.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1669 *) # Relative name.
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1684 else
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 fi || ac_status=$?
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1688 done
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693 cat <<\_ACEOF
1694 configure
1695 generated by GNU Autoconf 2.68
1697 Copyright (C) 2010 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_compile
1746 # ac_fn_cxx_try_compile LINENO
1747 # ----------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_cxx_try_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_cxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_cxx_try_compile
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_cpp
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if eval \${$3+:} false; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839 # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1849 else
1850 ac_header_compiler=no
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1865 else
1866 ac_header_preproc=no
1868 rm -f conftest.err conftest.i conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1872 # So? What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 yes:no: )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 no:yes:* )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 esac
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 eval "$3=\$ac_header_compiler"
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_header_mongrel
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911 # that executables *can* be run.
1912 ac_fn_c_try_run ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>&5
1923 ac_status=$?
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926 { { case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_try") 2>&5
1933 ac_status=$?
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; }; }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: program exited with status $ac_status" >&5
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=$ac_status
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1948 } # ac_fn_c_try_run
1950 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists and can be compiled using the include files in
1953 # INCLUDES, setting the cache variable VAR accordingly.
1954 ac_fn_c_check_header_compile ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 eval "$3=yes"
1969 else
1970 eval "$3=no"
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 eval ac_res=\$$3
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_compile
1981 # ac_fn_c_try_link LINENO
1982 # -----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_c_try_link ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_c_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 $as_test_x conftest$ac_exeext
2009 }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_retval=1
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2025 } # ac_fn_c_try_link
2027 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2028 # ----------------------------------------------------
2029 # Tries to find if the field MEMBER exists in type AGGR, after including
2030 # INCLUDES, setting cache variable VAR accordingly.
2031 ac_fn_c_check_member ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2035 $as_echo_n "checking for $2.$3... " >&6; }
2036 if eval \${$4+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 static $2 ac_aggr;
2046 if (ac_aggr.$3)
2047 return 0;
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$4=yes"
2054 else
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 static $2 ac_aggr;
2062 if (sizeof ac_aggr.$3)
2063 return 0;
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 eval "$4=yes"
2070 else
2071 eval "$4=no"
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 eval ac_res=\$$4
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_member
2084 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2085 # ---------------------------------------------
2086 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2087 # accordingly.
2088 ac_fn_c_check_decl ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 as_decl_name=`echo $2|sed 's/ *(.*//'`
2092 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2094 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 #ifndef $as_decl_name
2105 #ifdef __cplusplus
2106 (void) $as_decl_use;
2107 #else
2108 (void) $as_decl_name;
2109 #endif
2110 #endif
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_decl
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 eval "$3=no"
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 if (sizeof ($2))
2150 return 0;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 if (sizeof (($2)))
2163 return 0;
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2170 else
2171 eval "$3=yes"
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2184 # ac_fn_c_check_func LINENO FUNC VAR
2185 # ----------------------------------
2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2187 ac_fn_c_check_func ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2199 #define $2 innocuous_$2
2201 /* System header to define __stub macros and hopefully few prototypes,
2202 which can conflict with char $2 (); below.
2203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2204 <limits.h> exists even on freestanding compilers. */
2206 #ifdef __STDC__
2207 # include <limits.h>
2208 #else
2209 # include <assert.h>
2210 #endif
2212 #undef $2
2214 /* Override any GCC internal prototype to avoid an error.
2215 Use char because int might match the return type of a GCC
2216 builtin and then its argument prototype would still apply. */
2217 #ifdef __cplusplus
2218 extern "C"
2219 #endif
2220 char $2 ();
2221 /* The GNU C library defines this for functions which it implements
2222 to always fail with ENOSYS. Some functions are actually named
2223 something starting with __ and the normal name is an alias. */
2224 #if defined __stub_$2 || defined __stub___$2
2225 choke me
2226 #endif
2229 main ()
2231 return $2 ();
2233 return 0;
2235 _ACEOF
2236 if ac_fn_c_try_link "$LINENO"; then :
2237 eval "$3=yes"
2238 else
2239 eval "$3=no"
2241 rm -f core conftest.err conftest.$ac_objext \
2242 conftest$ac_exeext conftest.$ac_ext
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_c_check_func
2250 cat >config.log <<_ACEOF
2251 This file contains any messages produced by compilers while
2252 running configure, to aid debugging if configure makes a mistake.
2254 It was created by $as_me, which was
2255 generated by GNU Autoconf 2.68. Invocation command line was
2257 $ $0 $@
2259 _ACEOF
2260 exec 5>>config.log
2262 cat <<_ASUNAME
2263 ## --------- ##
2264 ## Platform. ##
2265 ## --------- ##
2267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2284 _ASUNAME
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 $as_echo "PATH: $as_dir"
2292 done
2293 IFS=$as_save_IFS
2295 } >&5
2297 cat >&5 <<_ACEOF
2300 ## ----------- ##
2301 ## Core tests. ##
2302 ## ----------- ##
2304 _ACEOF
2307 # Keep a trace of the command line.
2308 # Strip out --no-create and --no-recursion so they do not pile up.
2309 # Strip out --silent because we don't want to record it for future runs.
2310 # Also quote any args containing shell meta-characters.
2311 # Make two passes to allow for proper duplicate-argument suppression.
2312 ac_configure_args=
2313 ac_configure_args0=
2314 ac_configure_args1=
2315 ac_must_keep_next=false
2316 for ac_pass in 1 2
2318 for ac_arg
2320 case $ac_arg in
2321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323 | -silent | --silent | --silen | --sile | --sil)
2324 continue ;;
2325 *\'*)
2326 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 esac
2328 case $ac_pass in
2329 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331 as_fn_append ac_configure_args1 " '$ac_arg'"
2332 if test $ac_must_keep_next = true; then
2333 ac_must_keep_next=false # Got value, back to normal.
2334 else
2335 case $ac_arg in
2336 *=* | --config-cache | -C | -disable-* | --disable-* \
2337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339 | -with-* | --with-* | -without-* | --without-* | --x)
2340 case "$ac_configure_args0 " in
2341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 esac
2344 -* ) ac_must_keep_next=true ;;
2345 esac
2347 as_fn_append ac_configure_args " '$ac_arg'"
2349 esac
2350 done
2351 done
2352 { ac_configure_args0=; unset ac_configure_args0;}
2353 { ac_configure_args1=; unset ac_configure_args1;}
2355 # When interrupted or exit'd, cleanup temporary files, and complete
2356 # config.log. We remove comments because anyway the quotes in there
2357 # would cause problems or look ugly.
2358 # WARNING: Use '\'' to represent an apostrophe within the trap.
2359 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360 trap 'exit_status=$?
2361 # Save into config.log some information that might help in debugging.
2363 echo
2365 $as_echo "## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##"
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
2376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac ;;
2384 esac
2385 done
2386 (set) 2>&1 |
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2389 sed -n \
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2396 esac |
2397 sort
2399 echo
2401 $as_echo "## ----------------- ##
2402 ## Output variables. ##
2403 ## ----------------- ##"
2404 echo
2405 for ac_var in $ac_subst_vars
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 $as_echo "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2415 if test -n "$ac_subst_files"; then
2416 $as_echo "## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##"
2419 echo
2420 for ac_var in $ac_subst_files
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2431 if test -s confdefs.h; then
2432 $as_echo "## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##"
2435 echo
2436 cat confdefs.h
2437 echo
2439 test "$ac_signal" != 0 &&
2440 $as_echo "$as_me: caught signal $ac_signal"
2441 $as_echo "$as_me: exit $exit_status"
2442 } >&5
2443 rm -f core *.core core.conftest.* &&
2444 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 exit $exit_status
2447 for ac_signal in 1 2 13 15; do
2448 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 done
2450 ac_signal=0
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2455 $as_echo "/* confdefs.h */" > confdefs.h
2457 # Predefined preprocessor variables.
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_NAME "$PACKAGE_NAME"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_STRING "$PACKAGE_STRING"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_URL "$PACKAGE_URL"
2481 _ACEOF
2484 # Let the site file select an alternate cache file if it wants to.
2485 # Prefer an explicitly selected file to automatically selected ones.
2486 ac_site_file1=NONE
2487 ac_site_file2=NONE
2488 if test -n "$CONFIG_SITE"; then
2489 # We do not want a PATH search for config.site.
2490 case $CONFIG_SITE in #((
2491 -*) ac_site_file1=./$CONFIG_SITE;;
2492 */*) ac_site_file1=$CONFIG_SITE;;
2493 *) ac_site_file1=./$CONFIG_SITE;;
2494 esac
2495 elif test "x$prefix" != xNONE; then
2496 ac_site_file1=$prefix/share/config.site
2497 ac_site_file2=$prefix/etc/config.site
2498 else
2499 ac_site_file1=$ac_default_prefix/share/config.site
2500 ac_site_file2=$ac_default_prefix/etc/config.site
2502 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2504 test "x$ac_site_file" = xNONE && continue
2505 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2508 sed 's/^/| /' "$ac_site_file" >&5
2509 . "$ac_site_file" \
2510 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 as_fn_error $? "failed to load site script $ac_site_file
2513 See \`config.log' for more details" "$LINENO" 5 ; }
2515 done
2517 if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special files
2519 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2520 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 case $cache_file in
2524 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525 *) . "./$cache_file";;
2526 esac
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531 >$cache_file
2534 as_fn_append ac_header_list " stdlib.h"
2535 as_fn_append ac_header_list " unistd.h"
2536 as_fn_append ac_header_list " sys/param.h"
2537 # Check that the precious variables saved in the cache have kept the same
2538 # value.
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2546 set,)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,set)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,);;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 esac
2586 done
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 ac_aux_dir=
2607 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2608 if test -f "$ac_dir/install-sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install-sh -c"
2611 break
2612 elif test -f "$ac_dir/install.sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install.sh -c"
2615 break
2616 elif test -f "$ac_dir/shtool"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/shtool install -c"
2619 break
2621 done
2622 if test -z "$ac_aux_dir"; then
2623 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2626 # These three variables are undocumented and unsupported,
2627 # and are intended to be withdrawn in a future Autoconf release.
2628 # They can cause serious problems if a builder's source tree is in a directory
2629 # whose full name contains unusual characters.
2630 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2631 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2632 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Check what host we are running on.
2637 # If a target is not suggested, we use this one.
2638 # Note that what we call a target, Autoconf calls a host.
2639 # Make sure we can run config.sub.
2640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2644 $as_echo_n "checking build system type... " >&6; }
2645 if ${ac_cv_build+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 ac_build_alias=$build_alias
2649 test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2651 test "x$ac_build_alias" = x &&
2652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2658 $as_echo "$ac_cv_build" >&6; }
2659 case $ac_cv_build in
2660 *-*-*) ;;
2661 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2662 esac
2663 build=$ac_cv_build
2664 ac_save_IFS=$IFS; IFS='-'
2665 set x $ac_cv_build
2666 shift
2667 build_cpu=$1
2668 build_vendor=$2
2669 shift; shift
2670 # Remember, the first character of IFS is used to create $*,
2671 # except with old shells:
2672 build_os=$*
2673 IFS=$ac_save_IFS
2674 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2678 $as_echo_n "checking host system type... " >&6; }
2679 if ${ac_cv_host+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test "x$host_alias" = x; then
2683 ac_cv_host=$ac_cv_build
2684 else
2685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2686 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2691 $as_echo "$ac_cv_host" >&6; }
2692 case $ac_cv_host in
2693 *-*-*) ;;
2694 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2695 esac
2696 host=$ac_cv_host
2697 ac_save_IFS=$IFS; IFS='-'
2698 set x $ac_cv_host
2699 shift
2700 host_cpu=$1
2701 host_vendor=$2
2702 shift; shift
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2705 host_os=$*
2706 IFS=$ac_save_IFS
2707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2711 # The AROS target is slightly different to the normal GNU style
2712 # format. We don't have the middle part, and we reverse the order
2713 # of the $(CPU) and $(OS) bits.
2715 # Don't strip the version of the target yet, it might be
2716 # useful on some systems.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2719 $as_echo_n "checking for AROS style target... " >&6; }
2721 if test "$target" = "NONE" ; then
2722 target=$host_os-$host_cpu
2723 else
2724 if test "$target" = "" ; then
2725 target=$host_os-$host_cpu
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2729 $as_echo "$target" >&6; }
2731 if test "$host_os" = "mingw32" ; then
2732 PWDCMD="pwd -W"
2735 # Don't know where else to put this...
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2737 $as_echo_n "checking building AROS in... " >&6; }
2738 AROS_BUILDDIR=`${PWDCMD-pwd}`
2739 AROS_BUILDDIR_UNIX=${PWD}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2741 $as_echo "$AROS_BUILDDIR" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2744 $as_echo_n "checking AROS source in... " >&6; }
2745 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746 SRCDIR=${srcpwd}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2748 $as_echo "$SRCDIR" >&6; }
2750 # Parse the target field into something useful.
2752 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2753 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2756 # Some debug output, to be removed again.
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2758 $as_echo_n "checking for target system (debug output)... " >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2760 $as_echo "$target_os" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2762 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2764 $as_echo "$target_cpu" >&6; }
2766 aros_default_wbwidth=800
2767 aros_default_wbheight=600
2768 aros_default_wbdepth=4
2771 # The first step is to find the host binaries.
2772 # Check for a compiler.
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$ac_cv_prog_CC"; then
2818 ac_ct_CC=$CC
2819 # Extract the first word of "gcc", so it can be a program name with args.
2820 set dummy gcc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CC="gcc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 $as_echo "$ac_ct_CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2855 if test "x$ac_ct_CC" = x; then
2856 CC=""
2857 else
2858 case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864 CC=$ac_ct_CC
2866 else
2867 CC="$ac_cv_prog_CC"
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="${ac_tool_prefix}cc"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2911 if test -z "$CC"; then
2912 # Extract the first word of "cc", so it can be a program name with args.
2913 set dummy cc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 ac_prog_rejected=no
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2931 ac_prog_rejected=yes
2932 continue
2934 ac_cv_prog_CC="cc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2942 if test $ac_prog_rejected = yes; then
2943 # We found a bogon in the path, so make sure we never use it.
2944 set dummy $ac_cv_prog_CC
2945 shift
2946 if test $# != 0; then
2947 # We chose a different compiler from the bogus one.
2948 # However, it has the same basename, so the bogon will be chosen
2949 # first if we set CC to just the basename; use the full file name.
2950 shift
2951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$CC"; then
2968 if test -n "$ac_tool_prefix"; then
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3008 test -n "$CC" && break
3009 done
3011 if test -z "$CC"; then
3012 ac_ct_CC=$CC
3013 for ac_prog in cl.exe
3015 # Extract the first word of "$ac_prog", so it can be a program name with args.
3016 set dummy $ac_prog; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$ac_ct_CC"; then
3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_ac_ct_CC="$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043 if test -n "$ac_ct_CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3045 $as_echo "$ac_ct_CC" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3052 test -n "$ac_ct_CC" && break
3053 done
3055 if test "x$ac_ct_CC" = x; then
3056 CC=""
3057 else
3058 case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3063 esac
3064 CC=$ac_ct_CC
3071 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $? "no acceptable C compiler found in \$PATH
3074 See \`config.log' for more details" "$LINENO" 5 ; }
3076 # Provide some information about the compiler.
3077 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3078 set X $ac_compile
3079 ac_compiler=$2
3080 for ac_option in --version -v -V -qversion; do
3081 { { ac_try="$ac_compiler $ac_option >&5"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3089 ac_status=$?
3090 if test -s conftest.err; then
3091 sed '10a\
3092 ... rest of stderr output deleted ...
3093 10q' conftest.err >conftest.er1
3094 cat conftest.er1 >&5
3096 rm -f conftest.er1 conftest.err
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }
3099 done
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 ac_clean_files_save=$ac_clean_files
3113 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3114 # Try to create an executable without -o first, disregard a.out.
3115 # It will help us diagnose broken compilers, and finding out an intuition
3116 # of exeext.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3118 $as_echo_n "checking whether the C compiler works... " >&6; }
3119 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121 # The possible output files:
3122 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3124 ac_rmfiles=
3125 for ac_file in $ac_files
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3130 esac
3131 done
3132 rm -f $ac_rmfiles
3134 if { { ac_try="$ac_link_default"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_link_default") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3146 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3147 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3148 # so that the user can short-circuit this test for compilers unknown to
3149 # Autoconf.
3150 for ac_file in $ac_files ''
3152 test -f "$ac_file" || continue
3153 case $ac_file in
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3156 [ab].out )
3157 # We found the default executable, but exeext='' is most
3158 # certainly right.
3159 break;;
3160 *.* )
3161 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3162 then :; else
3163 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 # We set ac_cv_exeext here because the later test for it is not
3166 # safe: cross compilers may not add the suffix if given an `-o'
3167 # argument, so we may need to know it at that point already.
3168 # Even if this section looks crufty: it has the advantage of
3169 # actually working.
3170 break;;
3172 break;;
3173 esac
3174 done
3175 test "$ac_cv_exeext" = no && ac_cv_exeext=
3177 else
3178 ac_file=''
3180 if test -z "$ac_file"; then :
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error 77 "C compiler cannot create executables
3189 See \`config.log' for more details" "$LINENO" 5 ; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3195 $as_echo_n "checking for C compiler default output file name... " >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3197 $as_echo "$ac_file" >&6; }
3198 ac_exeext=$ac_cv_exeext
3200 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3201 ac_clean_files=$ac_clean_files_save
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3203 $as_echo_n "checking for suffix of executables... " >&6; }
3204 if { { ac_try="$ac_link"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link") 2>&5
3212 ac_status=$?
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217 # work properly (i.e., refer to `conftest.exe'), while it won't with
3218 # `rm'.
3219 for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3221 case $ac_file in
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 break;;
3225 * ) break;;
3226 esac
3227 done
3228 else
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details" "$LINENO" 5 ; }
3234 rm -f conftest conftest$ac_cv_exeext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3236 $as_echo "$ac_cv_exeext" >&6; }
3238 rm -f conftest.$ac_ext
3239 EXEEXT=$ac_cv_exeext
3240 ac_exeext=$EXEEXT
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3243 #include <stdio.h>
3245 main ()
3247 FILE *f = fopen ("conftest.out", "w");
3248 return ferror (f) || fclose (f) != 0;
3251 return 0;
3253 _ACEOF
3254 ac_clean_files="$ac_clean_files conftest.out"
3255 # Check that the compiler produces executables we can run. If not, either
3256 # the compiler is broken, or we cross compile.
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3258 $as_echo_n "checking whether we are cross compiling... " >&6; }
3259 if test "$cross_compiling" != yes; then
3260 { { ac_try="$ac_link"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 if { ac_try='./conftest$ac_cv_exeext'
3272 { { case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_try") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; }; then
3282 cross_compiling=no
3283 else
3284 if test "$cross_compiling" = maybe; then
3285 cross_compiling=yes
3286 else
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot run C compiled programs.
3290 If you meant to cross compile, use \`--host'.
3291 See \`config.log' for more details" "$LINENO" 5 ; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3296 $as_echo "$cross_compiling" >&6; }
3298 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3299 ac_clean_files=$ac_clean_files_save
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3301 $as_echo_n "checking for suffix of object files... " >&6; }
3302 if ${ac_cv_objext+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 rm -f conftest.o conftest.obj
3317 if { { ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_compile") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335 done
3336 else
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of object files: cannot compile
3343 See \`config.log' for more details" "$LINENO" 5 ; }
3345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3348 $as_echo "$ac_cv_objext" >&6; }
3349 OBJEXT=$ac_cv_objext
3350 ac_objext=$OBJEXT
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3352 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3353 if ${ac_cv_c_compiler_gnu+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3360 main ()
3362 #ifndef __GNUC__
3363 choke me
3364 #endif
3367 return 0;
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_compiler_gnu=yes
3372 else
3373 ac_compiler_gnu=no
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3381 if test $ac_compiler_gnu = yes; then
3382 GCC=yes
3383 else
3384 GCC=
3386 ac_test_CFLAGS=${CFLAGS+set}
3387 ac_save_CFLAGS=$CFLAGS
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3389 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3390 if ${ac_cv_prog_cc_g+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 ac_save_c_werror_flag=$ac_c_werror_flag
3394 ac_c_werror_flag=yes
3395 ac_cv_prog_cc_g=no
3396 CFLAGS="-g"
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3409 ac_cv_prog_cc_g=yes
3410 else
3411 CFLAGS=""
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3425 else
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_g=yes
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 $as_echo "$ac_cv_prog_cc_g" >&6; }
3451 if test "$ac_test_CFLAGS" = set; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3455 CFLAGS="-g -O2"
3456 else
3457 CFLAGS="-g"
3459 else
3460 if test "$GCC" = yes; then
3461 CFLAGS="-O2"
3462 else
3463 CFLAGS=
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3467 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3468 if ${ac_cv_prog_cc_c89+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 ac_cv_prog_cc_c89=no
3472 ac_save_CC=$CC
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475 #include <stdarg.h>
3476 #include <stdio.h>
3477 #include <sys/types.h>
3478 #include <sys/stat.h>
3479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3480 struct buf { int x; };
3481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3482 static char *e (p, i)
3483 char **p;
3484 int i;
3486 return p[i];
3488 static char *f (char * (*g) (char **, int), char **p, ...)
3490 char *s;
3491 va_list v;
3492 va_start (v,p);
3493 s = g (p, va_arg (v,int));
3494 va_end (v);
3495 return s;
3498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3499 function prototypes and stuff, but not '\xHH' hex character constants.
3500 These don't provoke an error unfortunately, instead are silently treated
3501 as 'x'. The following induces an error, until -std is added to get
3502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3503 array size at least. It's necessary to write '\x00'==0 to get something
3504 that's true only with -std. */
3505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3508 inside strings and character constants. */
3509 #define FOO(x) 'x'
3510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3512 int test (int i, double x);
3513 struct s1 {int (*f) (int a);};
3514 struct s2 {int (*f) (double a);};
3515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3516 int argc;
3517 char **argv;
3519 main ()
3521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523 return 0;
3525 _ACEOF
3526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_c89=$ac_arg
3533 rm -f core conftest.err conftest.$ac_objext
3534 test "x$ac_cv_prog_cc_c89" != "xno" && break
3535 done
3536 rm -f conftest.$ac_ext
3537 CC=$ac_save_CC
3540 # AC_CACHE_VAL
3541 case "x$ac_cv_prog_cc_c89" in
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544 $as_echo "none needed" >&6; } ;;
3545 xno)
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547 $as_echo "unsupported" >&6; } ;;
3549 CC="$CC $ac_cv_prog_cc_c89"
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3552 esac
3553 if test "x$ac_cv_prog_cc_c89" != xno; then :
3557 ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 case $ac_cv_prog_cc_stdc in #(
3564 no) :
3565 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3566 *) :
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3569 if ${ac_cv_prog_cc_c99+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 ac_cv_prog_cc_c99=no
3573 ac_save_CC=$CC
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <stdarg.h>
3577 #include <stdbool.h>
3578 #include <stdlib.h>
3579 #include <wchar.h>
3580 #include <stdio.h>
3582 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3583 #define debug(...) fprintf (stderr, __VA_ARGS__)
3584 #define showlist(...) puts (#__VA_ARGS__)
3585 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3586 static void
3587 test_varargs_macros (void)
3589 int x = 1234;
3590 int y = 5678;
3591 debug ("Flag");
3592 debug ("X = %d\n", x);
3593 showlist (The first, second, and third items.);
3594 report (x>y, "x is %d but y is %d", x, y);
3597 // Check long long types.
3598 #define BIG64 18446744073709551615ull
3599 #define BIG32 4294967295ul
3600 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3601 #if !BIG_OK
3602 your preprocessor is broken;
3603 #endif
3604 #if BIG_OK
3605 #else
3606 your preprocessor is broken;
3607 #endif
3608 static long long int bignum = -9223372036854775807LL;
3609 static unsigned long long int ubignum = BIG64;
3611 struct incomplete_array
3613 int datasize;
3614 double data[];
3617 struct named_init {
3618 int number;
3619 const wchar_t *name;
3620 double average;
3623 typedef const char *ccp;
3625 static inline int
3626 test_restrict (ccp restrict text)
3628 // See if C++-style comments work.
3629 // Iterate through items via the restricted pointer.
3630 // Also check for declarations in for loops.
3631 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3632 continue;
3633 return 0;
3636 // Check varargs and va_copy.
3637 static void
3638 test_varargs (const char *format, ...)
3640 va_list args;
3641 va_start (args, format);
3642 va_list args_copy;
3643 va_copy (args_copy, args);
3645 const char *str;
3646 int number;
3647 float fnumber;
3649 while (*format)
3651 switch (*format++)
3653 case 's': // string
3654 str = va_arg (args_copy, const char *);
3655 break;
3656 case 'd': // int
3657 number = va_arg (args_copy, int);
3658 break;
3659 case 'f': // float
3660 fnumber = va_arg (args_copy, double);
3661 break;
3662 default:
3663 break;
3666 va_end (args_copy);
3667 va_end (args);
3671 main ()
3674 // Check bool.
3675 _Bool success = false;
3677 // Check restrict.
3678 if (test_restrict ("String literal") == 0)
3679 success = true;
3680 char *restrict newvar = "Another string";
3682 // Check varargs.
3683 test_varargs ("s, d' f .", "string", 65, 34.234);
3684 test_varargs_macros ();
3686 // Check flexible array members.
3687 struct incomplete_array *ia =
3688 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3689 ia->datasize = 10;
3690 for (int i = 0; i < ia->datasize; ++i)
3691 ia->data[i] = i * 1.234;
3693 // Check named initializers.
3694 struct named_init ni = {
3695 .number = 34,
3696 .name = L"Test wide string",
3697 .average = 543.34343,
3700 ni.number = 58;
3702 int dynamic_array[ni.number];
3703 dynamic_array[ni.number - 1] = 543;
3705 // work around unused variable warnings
3706 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3707 || dynamic_array[ni.number - 1] != 543);
3710 return 0;
3712 _ACEOF
3713 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c99=$ac_arg
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c99" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3726 # AC_CACHE_VAL
3727 case "x$ac_cv_prog_cc_c99" in
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 $as_echo "none needed" >&6; } ;;
3731 xno)
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 $as_echo "unsupported" >&6; } ;;
3735 CC="$CC $ac_cv_prog_cc_c99"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3737 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3738 esac
3739 if test "x$ac_cv_prog_cc_c99" != xno; then :
3740 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744 if ${ac_cv_prog_cc_c89+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 ac_cv_prog_cc_c89=no
3748 ac_save_CC=$CC
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <stdarg.h>
3752 #include <stdio.h>
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756 struct buf { int x; };
3757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758 static char *e (p, i)
3759 char **p;
3760 int i;
3762 return p[i];
3764 static char *f (char * (*g) (char **, int), char **p, ...)
3766 char *s;
3767 va_list v;
3768 va_start (v,p);
3769 s = g (p, va_arg (v,int));
3770 va_end (v);
3771 return s;
3774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3775 function prototypes and stuff, but not '\xHH' hex character constants.
3776 These don't provoke an error unfortunately, instead are silently treated
3777 as 'x'. The following induces an error, until -std is added to get
3778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3779 array size at least. It's necessary to write '\x00'==0 to get something
3780 that's true only with -std. */
3781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3784 inside strings and character constants. */
3785 #define FOO(x) 'x'
3786 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788 int test (int i, double x);
3789 struct s1 {int (*f) (int a);};
3790 struct s2 {int (*f) (double a);};
3791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3792 int argc;
3793 char **argv;
3795 main ()
3797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3799 return 0;
3801 _ACEOF
3802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3803 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 CC="$ac_save_CC $ac_arg"
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_c89=$ac_arg
3809 rm -f core conftest.err conftest.$ac_objext
3810 test "x$ac_cv_prog_cc_c89" != "xno" && break
3811 done
3812 rm -f conftest.$ac_ext
3813 CC=$ac_save_CC
3816 # AC_CACHE_VAL
3817 case "x$ac_cv_prog_cc_c89" in
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3820 $as_echo "none needed" >&6; } ;;
3821 xno)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3823 $as_echo "unsupported" >&6; } ;;
3825 CC="$CC $ac_cv_prog_cc_c89"
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3827 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3828 esac
3829 if test "x$ac_cv_prog_cc_c89" != xno; then :
3830 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3831 else
3832 ac_cv_prog_cc_stdc=no
3837 esac
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3839 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3840 if ${ac_cv_prog_cc_stdc+:} false; then :
3841 $as_echo_n "(cached) " >&6
3844 case $ac_cv_prog_cc_stdc in #(
3845 no) :
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847 $as_echo "unsupported" >&6; } ;; #(
3848 '') :
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850 $as_echo "none needed" >&6; } ;; #(
3851 *) :
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3853 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3854 esac
3856 ac_ext=cpp
3857 ac_cpp='$CXXCPP $CPPFLAGS'
3858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3861 if test -z "$CXX"; then
3862 if test -n "$CCC"; then
3863 CXX=$CCC
3864 else
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CXX+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$CXX"; then
3876 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3889 done
3890 done
3891 IFS=$as_save_IFS
3895 CXX=$ac_cv_prog_CXX
3896 if test -n "$CXX"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3898 $as_echo "$CXX" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$CXX" && break
3906 done
3908 if test -z "$CXX"; then
3909 ac_ct_CXX=$CXX
3910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$ac_ct_CXX"; then
3920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_ac_ct_CXX="$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3935 IFS=$as_save_IFS
3939 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3940 if test -n "$ac_ct_CXX"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3942 $as_echo "$ac_ct_CXX" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$ac_ct_CXX" && break
3950 done
3952 if test "x$ac_ct_CXX" = x; then
3953 CXX="g++"
3954 else
3955 case $cross_compiling:$ac_tool_warned in
3956 yes:)
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3960 esac
3961 CXX=$ac_ct_CXX
3967 # Provide some information about the compiler.
3968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3969 set X $ac_compile
3970 ac_compiler=$2
3971 for ac_option in --version -v -V -qversion; do
3972 { { ac_try="$ac_compiler $ac_option >&5"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3980 ac_status=$?
3981 if test -s conftest.err; then
3982 sed '10a\
3983 ... rest of stderr output deleted ...
3984 10q' conftest.err >conftest.er1
3985 cat conftest.er1 >&5
3987 rm -f conftest.er1 conftest.err
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }
3990 done
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3994 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 main ()
4003 #ifndef __GNUC__
4004 choke me
4005 #endif
4008 return 0;
4010 _ACEOF
4011 if ac_fn_cxx_try_compile "$LINENO"; then :
4012 ac_compiler_gnu=yes
4013 else
4014 ac_compiler_gnu=no
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4021 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4023 GXX=yes
4024 else
4025 GXX=
4027 ac_test_CXXFLAGS=${CXXFLAGS+set}
4028 ac_save_CXXFLAGS=$CXXFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4030 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4031 if ${ac_cv_prog_cxx_g+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4035 ac_cxx_werror_flag=yes
4036 ac_cv_prog_cxx_g=no
4037 CXXFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 if ac_fn_cxx_try_compile "$LINENO"; then :
4050 ac_cv_prog_cxx_g=yes
4051 else
4052 CXXFLAGS=""
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4061 return 0;
4063 _ACEOF
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4066 else
4067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4068 CXXFLAGS="-g"
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 if ac_fn_cxx_try_compile "$LINENO"; then :
4081 ac_cv_prog_cxx_g=yes
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4091 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4092 if test "$ac_test_CXXFLAGS" = set; then
4093 CXXFLAGS=$ac_save_CXXFLAGS
4094 elif test $ac_cv_prog_cxx_g = yes; then
4095 if test "$GXX" = yes; then
4096 CXXFLAGS="-g -O2"
4097 else
4098 CXXFLAGS="-g"
4100 else
4101 if test "$GXX" = yes; then
4102 CXXFLAGS="-O2"
4103 else
4104 CXXFLAGS=
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4119 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4120 # On Suns, sometimes $CPP names a directory.
4121 if test -n "$CPP" && test -d "$CPP"; then
4122 CPP=
4124 if test -z "$CPP"; then
4125 if ${ac_cv_prog_CPP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 # Double quotes because CPP needs to be expanded
4129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147 Syntax error
4148 _ACEOF
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4151 else
4152 # Broken: fails on valid input.
4153 continue
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4177 break
4180 done
4181 ac_cv_prog_CPP=$CPP
4184 CPP=$ac_cv_prog_CPP
4185 else
4186 ac_cv_prog_CPP=$CPP
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4189 $as_echo "$CPP" >&6; }
4190 ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206 Syntax error
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4210 else
4211 # Broken: fails on valid input.
4212 continue
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4224 continue
4225 else
4226 # Passes both tests.
4227 ac_preproc_ok=:
4228 break
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4232 done
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4241 See \`config.log' for more details" "$LINENO" 5 ; }
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 # Check for a compatible awk
4252 for ac_prog in gawk nawk
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy $ac_prog; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_prog_AWK+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$AWK"; then
4262 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_AWK="$ac_prog"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4275 done
4276 done
4277 IFS=$as_save_IFS
4281 AWK=$ac_cv_prog_AWK
4282 if test -n "$AWK"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4284 $as_echo "$AWK" >&6; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4291 test -n "$AWK" && break
4292 done
4294 if test "$AWK" = ""; then
4295 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4297 # Extract the first word of "mmake", so it can be a program name with args.
4298 set dummy mmake; ac_word=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_prog_MMAKE+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test -n "$MMAKE"; then
4305 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_prog_MMAKE="mmake "
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4318 done
4319 done
4320 IFS=$as_save_IFS
4324 MMAKE=$ac_cv_prog_MMAKE
4325 if test -n "$MMAKE"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4327 $as_echo "$MMAKE" >&6; }
4328 else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4335 # Perform some default variable assignments. Note all of these will be
4336 # Regenerated from the script, so there is no need to cache them.
4338 aros_host_cpp="$CPP"
4339 aros_host_cc="$CC"
4340 aros_host_cxx="$CXX"
4341 if test "$GCC" = "yes"; then
4342 aros_gcc_ld=`$CC -print-prog-name=ld`
4343 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4344 set dummy `basename $aros_gcc_ld`; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_path_aros_host_ld+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 case $aros_host_ld in
4351 [\\/]* | ?:[\\/]*)
4352 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in `dirname $aros_gcc_ld`
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4368 IFS=$as_save_IFS
4371 esac
4373 aros_host_ld=$ac_cv_path_aros_host_ld
4374 if test -n "$aros_host_ld"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4376 $as_echo "$aros_host_ld" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4384 if test "$aros_host_ld" = ""; then
4385 # Extract the first word of "ld", so it can be a program name with args.
4386 set dummy ld; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_path_aros_host_ld+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 case $aros_host_ld in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4413 esac
4415 aros_host_ld=$ac_cv_path_aros_host_ld
4416 if test -n "$aros_host_ld"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4418 $as_echo "$aros_host_ld" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test "$aros_host_ld" = ""; then
4427 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4429 aros_host_make="make"
4430 aros_host_cflags=$CFLAGS
4431 aros_host_cxxflags=$CXXFLAGS
4432 aros_host_ldflags=$LDFLAGS
4433 aros_host_debug="-g -O0"
4434 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4435 aros_host_mkargs="--no-print-directory"
4436 aros_host_exe_suffix="$EXEEXT"
4437 aros_host_lib_suffix=""
4439 # Ignore all compliance, AROS ROMs = 0
4440 # KickStart v1.0 = 30
4441 # KickStart v1.3 = 34
4442 # KickStart v2.0 = 37
4443 # KickStart v3.0 = 39
4444 # KickStart v3.1 = 40
4445 # AmigaOS v3.5 = 44
4446 aros_amigaos_compliance=0
4448 for ac_prog in aclocal aclocal19 aclocal-1.9
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$aros_host_aclocal"; then
4458 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_aros_host_aclocal="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4478 if test -n "$aros_host_aclocal"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4480 $as_echo "$aros_host_aclocal" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4487 test -n "$aros_host_aclocal" && break
4488 done
4490 for ac_prog in autoconf autoconf259 autoconf253
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$aros_host_autoconf"; then
4500 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_aros_host_autoconf="$ac_prog"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4520 if test -n "$aros_host_autoconf"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4522 $as_echo "$aros_host_autoconf" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4529 test -n "$aros_host_autoconf" && break
4530 done
4532 for ac_prog in autoheader autoheader259 autoheader253
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$aros_host_autoheader"; then
4542 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_aros_host_autoheader="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4562 if test -n "$aros_host_autoheader"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4564 $as_echo "$aros_host_autoheader" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 test -n "$aros_host_autoheader" && break
4572 done
4574 for ac_prog in automake automake19 automake-1.9
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_aros_host_automake+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$aros_host_automake"; then
4584 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_aros_host_automake="$ac_prog"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 aros_host_automake=$ac_cv_prog_aros_host_automake
4604 if test -n "$aros_host_automake"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4606 $as_echo "$aros_host_automake" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 test -n "$aros_host_automake" && break
4614 done
4617 if test "$aros_host_aclocal" = ""; then
4618 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4620 if test "$aros_host_automake" = ""; then
4621 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 case "$aros_host_cc" in
4625 *gcc*)
4626 aros_host_cc_pipe="-pipe"
4628 icc)
4629 aros_host_cc_pipe=""
4632 aros_host_cc_pipe=""
4634 esac
4636 aros_kernel_cc_includes=""
4637 aros_target_cc_includes=""
4639 # ----------------------------------------------------------------------------------------
4640 # Host-specific defaults
4642 # This is the main host configuration section. It is where the host
4643 # can change the values of any variables it needs to change. We do
4644 # not look at anything that compiles to the target yet, we'll get
4645 # to that later.
4647 case "$host_os" in
4648 aros*)
4649 aros_host_arch="aros"
4650 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4651 case "$host_cpu" in
4652 *i?86*)
4653 aros_host_cpu="i386"
4655 *x86_64*)
4656 aros_host_cpu="x86_64"
4658 *powerpc*)
4659 aros_host_cpu="ppc"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4663 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4664 aros_host_cpu="$host_cpu"
4666 esac
4669 linux*)
4670 aros_host_arch="linux"
4671 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4672 android_build_os="linux-x86"
4673 android_tool="android"
4674 default_android_sdk="/opt/android-sdk-linux_x86"
4675 case "$host_cpu" in
4676 *i?86*)
4677 aros_host_cpu="i386"
4679 *x86_64*)
4680 aros_host_cpu="x86_64"
4682 *m68k*)
4683 aros_host_cpu="m68k"
4685 *powerpc*)
4686 aros_host_cpu="ppc"
4688 *arm*)
4689 aros_host_cpu="arm"
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4693 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4694 aros_host_cpu="$host_cpu"
4696 esac
4699 freebsd*)
4700 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4701 aros_host_make="gmake"
4702 aros_host_arch="freebsd"
4703 aros_host_cpu="i386"
4705 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4707 case $host_os in
4708 freebsd[234]*)
4709 aros_object_format="elf_i386"
4713 aros_object_format="elf_i386_fbsd"
4715 esac
4719 darwin*)
4720 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4721 aros_host_arch="darwin"
4722 cross_compile_native=yes
4723 android_build_os="darwin-x86"
4724 android_tool="android"
4725 default_android_sdk="/android-sdk-mac_x86"
4726 case "$host_cpu" in
4727 *i?86*)
4728 aros_host_cpu="i386"
4730 *x86_64*)
4731 aros_host_cpu="x86_64"
4733 *powerpc*)
4734 aros_host_cpu="ppc"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4738 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4739 aros_host_cpu="$host_cpu"
4741 esac
4743 aros_host_ldflags="$aros_host_ldflags -liconv"
4747 dragonfly*)
4748 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4749 aros_host_make="gmake"
4750 aros_host_arch="dragonfly"
4751 case $host_cpu in
4752 *i?86*)
4753 aros_host_cpu="i386"
4755 *amd64*)
4756 aros_host_cpu="x86_64"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4760 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4761 aros_host_cpu="$host_cpu"
4763 esac
4766 netbsd*)
4767 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4768 aros_host_make="gmake"
4769 aros_host_arch="netbsd"
4770 case "$host_cpu" in
4771 *i?86*)
4772 aros_host_cpu="i386"
4774 *m68k*)
4775 aros_host_cpu="m68k"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4779 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4780 aros_host_cpu="$host_cpu"
4782 esac
4783 aros_host_lib_suffix=".0.0"
4786 openbsd*)
4787 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4788 aros_host_make="gmake"
4789 aros_host_arch="openbsd"
4790 case "$host_cpu" in
4791 *i?86*)
4792 aros_host_cpu="i386"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4796 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4797 aros_host_cpu="$host_cpu"
4799 esac
4802 solaris*)
4803 aros_host_arch="solaris"
4804 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4805 case "$host_cpu" in
4806 *i?86*)
4807 aros_host_cpu="i386"
4809 *sparc*)
4810 aros_host_cpu="sparc"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4814 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4815 aros_host_cpu="$host_cpu"
4817 esac
4820 morphos*)
4821 aros_host_arch="morphos"
4822 aros_host_cpu="ppc"
4823 cross_compile_native=yes
4826 amiga*)
4827 aros_host_arch="amiga"
4828 cross_compile_native=yes
4829 SORT="/gg/bin/sort"
4830 TEST="/gg/bin/test"
4831 UNIQ="/gg/bin/uniq"
4832 FOR="for"
4833 TOUCH="/gg/bin/touch"
4834 case "$host_cpu" in
4835 *m68k*)
4836 aros_host_cpu="m68k"
4838 *powerpc*)
4839 aros_host_cpu="ppc"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4843 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4844 aros_host_cpu="$host_cpu"
4846 esac
4849 cygwin*)
4850 aros_host_arch="cygwin"
4851 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4852 cross_compile_native=yes
4853 android_build_os="windows"
4854 android_tool="android.bat"
4855 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4857 case "$host_cpu" in
4858 *i?86*)
4859 aros_host_cpu="i386"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4863 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4864 aros_host_cpu="$host_cpu"
4866 esac
4869 mingw32*)
4870 aros_host_arch="mingw32"
4871 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4872 cross_compile_native=yes
4873 android_build_os="windows"
4874 android_tool="android.bat"
4875 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4877 case "$host_cpu" in
4878 *i?86*)
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4881 $as_echo_n "checking for Windows native gcc target... " >&6; }
4882 host_cpu=`gcc -dumpmachine`
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4884 $as_echo "$host_cpu" >&6; }
4887 esac
4889 case "$host_cpu" in
4890 *i?86*)
4891 aros_host_cpu="i386"
4894 mingw32*)
4895 aros_host_cpu="i386"
4898 *x86_64*)
4899 aros_host_cpu="x86_64"
4900 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4905 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4906 aros_host_cpu="$host_cpu"
4908 esac
4911 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4913 esac
4915 # Extract the first word of "ar", so it can be a program name with args.
4916 set dummy ar; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_aros_host_ar+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$aros_host_ar"; then
4923 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_aros_host_ar="ar cr"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 aros_host_ar=$ac_cv_prog_aros_host_ar
4943 if test -n "$aros_host_ar"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4945 $as_echo "$aros_host_ar" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 if test "$aros_host_ar" = ""; then
4953 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4955 # Extract the first word of "ranlib", so it can be a program name with args.
4956 set dummy ranlib; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$aros_host_ranlib"; then
4963 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_aros_host_ranlib="ranlib "
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4983 if test -n "$aros_host_ranlib"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4985 $as_echo "$aros_host_ranlib" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4992 if test "$aros_host_ranlib" = ""; then
4993 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4995 # Extract the first word of "strip", so it can be a program name with args.
4996 set dummy strip; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_aros_host_strip+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$aros_host_strip"; then
5003 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_aros_host_strip="strip "
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 aros_host_strip=$ac_cv_prog_aros_host_strip
5023 if test -n "$aros_host_strip"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5025 $as_echo "$aros_host_strip" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 if test "$aros_host_strip" = ""; then
5033 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5036 # Extract the first word of "rm", so it can be a program name with args.
5037 set dummy rm; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_RM+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$RM"; then
5044 ac_cv_prog_RM="$RM" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_RM="rm -rf"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 RM=$ac_cv_prog_RM
5064 if test -n "$RM"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5066 $as_echo "$RM" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5073 if test "$RM" = ""; then
5074 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5076 # Extract the first word of "cp", so it can be a program name with args.
5077 set dummy cp; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_CP+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$CP"; then
5084 ac_cv_prog_CP="$CP" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_CP="cp "
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5103 CP=$ac_cv_prog_CP
5104 if test -n "$CP"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5106 $as_echo "$CP" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 if test "$CP" = ""; then
5114 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5116 # Extract the first word of "mv", so it can be a program name with args.
5117 set dummy mv; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_MV+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$MV"; then
5124 ac_cv_prog_MV="$MV" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_MV="mv "
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5139 IFS=$as_save_IFS
5143 MV=$ac_cv_prog_MV
5144 if test -n "$MV"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5146 $as_echo "$MV" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5153 if test "$MV" = ""; then
5154 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5156 # Extract the first word of "echo", so it can be a program name with args.
5157 set dummy echo; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ECHO+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$ECHO"; then
5164 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_ECHO="echo "
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 ECHO=$ac_cv_prog_ECHO
5184 if test -n "$ECHO"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5186 $as_echo "$ECHO" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 if test "$ECHO" = ""; then
5194 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5196 # Extract the first word of "mkdir", so it can be a program name with args.
5197 set dummy mkdir; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_MKDIR+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -n "$MKDIR"; then
5204 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_MKDIR="mkdir -p"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5217 done
5218 done
5219 IFS=$as_save_IFS
5223 MKDIR=$ac_cv_prog_MKDIR
5224 if test -n "$MKDIR"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5226 $as_echo "$MKDIR" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5233 if test "$MKDIR" = ""; then
5234 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5236 # Extract the first word of "touch", so it can be a program name with args.
5237 set dummy touch; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_TOUCH+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$TOUCH"; then
5244 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_prog_TOUCH="touch "
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 TOUCH=$ac_cv_prog_TOUCH
5264 if test -n "$TOUCH"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5266 $as_echo "$TOUCH" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5273 if test "$TOUCH" = ""; then
5274 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5276 # Extract the first word of "sort", so it can be a program name with args.
5277 set dummy sort; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_SORT+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$SORT"; then
5284 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_prog_SORT="sort "
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5299 IFS=$as_save_IFS
5303 SORT=$ac_cv_prog_SORT
5304 if test -n "$SORT"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5306 $as_echo "$SORT" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5313 if test "$SORT" = ""; then
5314 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5316 # Extract the first word of "uniq", so it can be a program name with args.
5317 set dummy uniq; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_UNIQ+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$UNIQ"; then
5324 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_UNIQ="uniq "
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 UNIQ=$ac_cv_prog_UNIQ
5344 if test -n "$UNIQ"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5346 $as_echo "$UNIQ" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 if test "$UNIQ" = ""; then
5354 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5356 # Extract the first word of "true", so it can be a program name with args.
5357 set dummy true; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_NOP+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$NOP"; then
5364 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_NOP="true "
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5379 IFS=$as_save_IFS
5383 NOP=$ac_cv_prog_NOP
5384 if test -n "$NOP"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5386 $as_echo "$NOP" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5393 if test "$NOP" = ""; then
5394 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5396 # Extract the first word of "cat", so it can be a program name with args.
5397 set dummy cat; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_CAT+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -n "$CAT"; then
5404 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_prog_CAT="cat "
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5417 done
5418 done
5419 IFS=$as_save_IFS
5423 CAT=$ac_cv_prog_CAT
5424 if test -n "$CAT"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5426 $as_echo "$CAT" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5433 if test "$CAT" = ""; then
5434 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5436 # Extract the first word of "bison", so it can be a program name with args.
5437 set dummy bison; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_BISON+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$BISON"; then
5444 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_BISON="bison "
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5457 done
5458 done
5459 IFS=$as_save_IFS
5463 BISON=$ac_cv_prog_BISON
5464 if test -n "$BISON"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5466 $as_echo "$BISON" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5473 if test "$BISON" = ""; then
5474 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5476 # Extract the first word of "flex", so it can be a program name with args.
5477 set dummy flex; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_FLEX+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$FLEX"; then
5484 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_FLEX="flex "
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5497 done
5498 done
5499 IFS=$as_save_IFS
5503 FLEX=$ac_cv_prog_FLEX
5504 if test -n "$FLEX"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5506 $as_echo "$FLEX" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 if test "$FLEX" = ""; then
5514 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5516 # Extract the first word of "pngtopnm", so it can be a program name with args.
5517 set dummy pngtopnm; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$PNGTOPNM"; then
5524 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_PNGTOPNM="pngtopnm "
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5543 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5544 if test -n "$PNGTOPNM"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5546 $as_echo "$PNGTOPNM" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5553 if test "$PNGTOPNM" = ""; then
5554 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5556 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5557 set dummy ppmtoilbm; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$PPMTOILBM"; then
5564 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5579 IFS=$as_save_IFS
5583 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5584 if test -n "$PPMTOILBM"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5586 $as_echo "$PPMTOILBM" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5593 if test "$PPMTOILBM" = ""; then
5594 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5596 # Extract the first word of "sed", so it can be a program name with args.
5597 set dummy sed; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_SED+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$SED"; then
5604 ac_cv_prog_SED="$SED" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_SED="sed "
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5619 IFS=$as_save_IFS
5623 SED=$ac_cv_prog_SED
5624 if test -n "$SED"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5626 $as_echo "$SED" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5633 if test "$SED" = ""; then
5634 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5636 # Extract the first word of "chmod", so it can be a program name with args.
5637 set dummy chmod; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_CHMOD+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$CHMOD"; then
5644 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_CHMOD="chmod "
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 CHMOD=$ac_cv_prog_CHMOD
5664 if test -n "$CHMOD"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5666 $as_echo "$CHMOD" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5673 if test "$CHMOD" = ""; then
5674 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5676 # Extract the first word of "patch", so it can be a program name with args.
5677 set dummy patch; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_PATCH+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$PATCH"; then
5684 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_PATCH="patch "
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5703 PATCH=$ac_cv_prog_PATCH
5704 if test -n "$PATCH"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5706 $as_echo "$PATCH" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713 if test "$PATCH" = ""; then
5714 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5721 if test -n "$PYTHON"; then
5722 # If the user set $PYTHON, use it and don't search something else.
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5724 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5725 prog="import sys, string
5726 # split strings by '.' and convert to numeric. Append some zeros
5727 # because we need at least 4 digits for the hex conversion.
5728 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5729 minverhex = 0
5730 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5731 sys.exit(sys.hexversion < minverhex)"
5732 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5733 ($PYTHON -c "$prog") >&5 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; then :
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 else
5740 as_fn_error $? "too old" "$LINENO" 5
5742 am_display_PYTHON=$PYTHON
5743 else
5744 # Otherwise, try each interpreter until we find one that satisfies
5745 # VERSION.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5747 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5748 if ${am_cv_pathless_PYTHON+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5752 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
5753 test "$am_cv_pathless_PYTHON" = none && break
5754 prog="import sys, string
5755 # split strings by '.' and convert to numeric. Append some zeros
5756 # because we need at least 4 digits for the hex conversion.
5757 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5758 minverhex = 0
5759 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5760 sys.exit(sys.hexversion < minverhex)"
5761 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5762 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; then :
5766 break
5768 done
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5771 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5772 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5773 if test "$am_cv_pathless_PYTHON" = none; then
5774 PYTHON=:
5775 else
5776 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5777 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_PYTHON+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 case $PYTHON in
5784 [\\/]* | ?:[\\/]*)
5785 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5795 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5799 done
5800 done
5801 IFS=$as_save_IFS
5804 esac
5806 PYTHON=$ac_cv_path_PYTHON
5807 if test -n "$PYTHON"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5809 $as_echo "$PYTHON" >&6; }
5810 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5817 am_display_PYTHON=$am_cv_pathless_PYTHON
5821 if test "$PYTHON" = :; then
5822 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5823 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5827 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5828 if ${am_cv_python_version+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5834 $as_echo "$am_cv_python_version" >&6; }
5835 PYTHON_VERSION=$am_cv_python_version
5839 PYTHON_PREFIX='${prefix}'
5841 PYTHON_EXEC_PREFIX='${exec_prefix}'
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5846 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5847 if ${am_cv_python_platform+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5853 $as_echo "$am_cv_python_platform" >&6; }
5854 PYTHON_PLATFORM=$am_cv_python_platform
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5860 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5861 if ${am_cv_python_pythondir+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5865 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5868 $as_echo "$am_cv_python_pythondir" >&6; }
5869 pythondir=$am_cv_python_pythondir
5873 pkgpythondir=\${pythondir}/$PACKAGE
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5877 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5878 if ${am_cv_python_pyexecdir+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5882 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5885 $as_echo "$am_cv_python_pyexecdir" >&6; }
5886 pyexecdir=$am_cv_python_pyexecdir
5890 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5898 FOR=for
5900 IF=if
5902 TEST=test
5904 CMP=cmp
5908 # Check for some includes for the X11 HIDD and the kernel
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5913 if ${ac_cv_path_GREP+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -z "$GREP"; then
5917 ac_path_GREP_found=false
5918 # Loop through the user's path and test for each of PROGNAME-LIST
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_prog in grep ggrep; do
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5928 # Check for GNU ac_path_GREP and select it if it is found.
5929 # Check for GNU $ac_path_GREP
5930 case `"$ac_path_GREP" --version 2>&1` in
5931 *GNU*)
5932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5934 ac_count=0
5935 $as_echo_n 0123456789 >"conftest.in"
5936 while :
5938 cat "conftest.in" "conftest.in" >"conftest.tmp"
5939 mv "conftest.tmp" "conftest.in"
5940 cp "conftest.in" "conftest.nl"
5941 $as_echo 'GREP' >> "conftest.nl"
5942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5944 as_fn_arith $ac_count + 1 && ac_count=$as_val
5945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5946 # Best one so far, save it but keep looking for a better one
5947 ac_cv_path_GREP="$ac_path_GREP"
5948 ac_path_GREP_max=$ac_count
5950 # 10*(2^10) chars as input seems more than enough
5951 test $ac_count -gt 10 && break
5952 done
5953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5954 esac
5956 $ac_path_GREP_found && break 3
5957 done
5958 done
5959 done
5960 IFS=$as_save_IFS
5961 if test -z "$ac_cv_path_GREP"; then
5962 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 else
5965 ac_cv_path_GREP=$GREP
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5970 $as_echo "$ac_cv_path_GREP" >&6; }
5971 GREP="$ac_cv_path_GREP"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5975 $as_echo_n "checking for egrep... " >&6; }
5976 if ${ac_cv_path_EGREP+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980 then ac_cv_path_EGREP="$GREP -E"
5981 else
5982 if test -z "$EGREP"; then
5983 ac_path_EGREP_found=false
5984 # Loop through the user's path and test for each of PROGNAME-LIST
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_prog in egrep; do
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5994 # Check for GNU ac_path_EGREP and select it if it is found.
5995 # Check for GNU $ac_path_EGREP
5996 case `"$ac_path_EGREP" --version 2>&1` in
5997 *GNU*)
5998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6000 ac_count=0
6001 $as_echo_n 0123456789 >"conftest.in"
6002 while :
6004 cat "conftest.in" "conftest.in" >"conftest.tmp"
6005 mv "conftest.tmp" "conftest.in"
6006 cp "conftest.in" "conftest.nl"
6007 $as_echo 'EGREP' >> "conftest.nl"
6008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6010 as_fn_arith $ac_count + 1 && ac_count=$as_val
6011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6012 # Best one so far, save it but keep looking for a better one
6013 ac_cv_path_EGREP="$ac_path_EGREP"
6014 ac_path_EGREP_max=$ac_count
6016 # 10*(2^10) chars as input seems more than enough
6017 test $ac_count -gt 10 && break
6018 done
6019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6020 esac
6022 $ac_path_EGREP_found && break 3
6023 done
6024 done
6025 done
6026 IFS=$as_save_IFS
6027 if test -z "$ac_cv_path_EGREP"; then
6028 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6030 else
6031 ac_cv_path_EGREP=$EGREP
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6037 $as_echo "$ac_cv_path_EGREP" >&6; }
6038 EGREP="$ac_cv_path_EGREP"
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6042 $as_echo_n "checking for ANSI C header files... " >&6; }
6043 if ${ac_cv_header_stdc+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <stdlib.h>
6049 #include <stdarg.h>
6050 #include <string.h>
6051 #include <float.h>
6054 main ()
6058 return 0;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062 ac_cv_header_stdc=yes
6063 else
6064 ac_cv_header_stdc=no
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 if test $ac_cv_header_stdc = yes; then
6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <string.h>
6074 _ACEOF
6075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6076 $EGREP "memchr" >/dev/null 2>&1; then :
6078 else
6079 ac_cv_header_stdc=no
6081 rm -f conftest*
6085 if test $ac_cv_header_stdc = yes; then
6086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 #include <stdlib.h>
6091 _ACEOF
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "free" >/dev/null 2>&1; then :
6095 else
6096 ac_cv_header_stdc=no
6098 rm -f conftest*
6102 if test $ac_cv_header_stdc = yes; then
6103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6104 if test "$cross_compiling" = yes; then :
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <ctype.h>
6110 #include <stdlib.h>
6111 #if ((' ' & 0x0FF) == 0x020)
6112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6114 #else
6115 # define ISLOWER(c) \
6116 (('a' <= (c) && (c) <= 'i') \
6117 || ('j' <= (c) && (c) <= 'r') \
6118 || ('s' <= (c) && (c) <= 'z'))
6119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6120 #endif
6122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6124 main ()
6126 int i;
6127 for (i = 0; i < 256; i++)
6128 if (XOR (islower (i), ISLOWER (i))
6129 || toupper (i) != TOUPPER (i))
6130 return 2;
6131 return 0;
6133 _ACEOF
6134 if ac_fn_c_try_run "$LINENO"; then :
6136 else
6137 ac_cv_header_stdc=no
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6140 conftest.$ac_objext conftest.beam conftest.$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6146 $as_echo "$ac_cv_header_stdc" >&6; }
6147 if test $ac_cv_header_stdc = yes; then
6149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6155 inttypes.h stdint.h unistd.h
6156 do :
6157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6158 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6161 cat >>confdefs.h <<_ACEOF
6162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6163 _ACEOF
6167 done
6170 for ac_header in sys/ipc.h sys/shm.h \
6171 sys/mmap.h sys/mman.h sysexits.h \
6172 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6174 do :
6175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6178 cat >>confdefs.h <<_ACEOF
6179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6180 _ACEOF
6184 done
6187 for ac_header in sys/mount.h
6188 do :
6189 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6191 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6192 cat >>confdefs.h <<_ACEOF
6193 #define HAVE_SYS_MOUNT_H 1
6194 _ACEOF
6198 done
6201 ac_header_dirent=no
6202 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6203 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6205 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6206 if eval \${$as_ac_Header+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #include <sys/types.h>
6212 #include <$ac_hdr>
6215 main ()
6217 if ((DIR *) 0)
6218 return 0;
6220 return 0;
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"; then :
6224 eval "$as_ac_Header=yes"
6225 else
6226 eval "$as_ac_Header=no"
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 eval ac_res=\$$as_ac_Header
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6232 $as_echo "$ac_res" >&6; }
6233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6236 _ACEOF
6238 ac_header_dirent=$ac_hdr; break
6241 done
6242 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6243 if test $ac_header_dirent = dirent.h; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6245 $as_echo_n "checking for library containing opendir... " >&6; }
6246 if ${ac_cv_search_opendir+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 ac_func_search_save_LIBS=$LIBS
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6253 /* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */
6256 #ifdef __cplusplus
6257 extern "C"
6258 #endif
6259 char opendir ();
6261 main ()
6263 return opendir ();
6265 return 0;
6267 _ACEOF
6268 for ac_lib in '' dir; do
6269 if test -z "$ac_lib"; then
6270 ac_res="none required"
6271 else
6272 ac_res=-l$ac_lib
6273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6275 if ac_fn_c_try_link "$LINENO"; then :
6276 ac_cv_search_opendir=$ac_res
6278 rm -f core conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext
6280 if ${ac_cv_search_opendir+:} false; then :
6281 break
6283 done
6284 if ${ac_cv_search_opendir+:} false; then :
6286 else
6287 ac_cv_search_opendir=no
6289 rm conftest.$ac_ext
6290 LIBS=$ac_func_search_save_LIBS
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6293 $as_echo "$ac_cv_search_opendir" >&6; }
6294 ac_res=$ac_cv_search_opendir
6295 if test "$ac_res" != no; then :
6296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6302 $as_echo_n "checking for library containing opendir... " >&6; }
6303 if ${ac_cv_search_opendir+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 ac_func_search_save_LIBS=$LIBS
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6310 /* Override any GCC internal prototype to avoid an error.
6311 Use char because int might match the return type of a GCC
6312 builtin and then its argument prototype would still apply. */
6313 #ifdef __cplusplus
6314 extern "C"
6315 #endif
6316 char opendir ();
6318 main ()
6320 return opendir ();
6322 return 0;
6324 _ACEOF
6325 for ac_lib in '' x; do
6326 if test -z "$ac_lib"; then
6327 ac_res="none required"
6328 else
6329 ac_res=-l$ac_lib
6330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6332 if ac_fn_c_try_link "$LINENO"; then :
6333 ac_cv_search_opendir=$ac_res
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext
6337 if ${ac_cv_search_opendir+:} false; then :
6338 break
6340 done
6341 if ${ac_cv_search_opendir+:} false; then :
6343 else
6344 ac_cv_search_opendir=no
6346 rm conftest.$ac_ext
6347 LIBS=$ac_func_search_save_LIBS
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6350 $as_echo "$ac_cv_search_opendir" >&6; }
6351 ac_res=$ac_cv_search_opendir
6352 if test "$ac_res" != no; then :
6353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6360 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6361 if ${ac_cv_header_stat_broken+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <sys/stat.h>
6369 #if defined S_ISBLK && defined S_IFDIR
6370 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6371 #endif
6373 #if defined S_ISBLK && defined S_IFCHR
6374 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6375 #endif
6377 #if defined S_ISLNK && defined S_IFREG
6378 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6379 #endif
6381 #if defined S_ISSOCK && defined S_IFREG
6382 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6383 #endif
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387 ac_cv_header_stat_broken=no
6388 else
6389 ac_cv_header_stat_broken=yes
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6394 $as_echo "$ac_cv_header_stat_broken" >&6; }
6395 if test $ac_cv_header_stat_broken = yes; then
6397 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6402 $as_echo_n "checking for ANSI C header files... " >&6; }
6403 if ${ac_cv_header_stdc+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 #include <stdlib.h>
6409 #include <stdarg.h>
6410 #include <string.h>
6411 #include <float.h>
6414 main ()
6418 return 0;
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 ac_cv_header_stdc=yes
6423 else
6424 ac_cv_header_stdc=no
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 if test $ac_cv_header_stdc = yes; then
6429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <string.h>
6434 _ACEOF
6435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6436 $EGREP "memchr" >/dev/null 2>&1; then :
6438 else
6439 ac_cv_header_stdc=no
6441 rm -f conftest*
6445 if test $ac_cv_header_stdc = yes; then
6446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 #include <stdlib.h>
6451 _ACEOF
6452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6453 $EGREP "free" >/dev/null 2>&1; then :
6455 else
6456 ac_cv_header_stdc=no
6458 rm -f conftest*
6462 if test $ac_cv_header_stdc = yes; then
6463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6464 if test "$cross_compiling" = yes; then :
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <ctype.h>
6470 #include <stdlib.h>
6471 #if ((' ' & 0x0FF) == 0x020)
6472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6474 #else
6475 # define ISLOWER(c) \
6476 (('a' <= (c) && (c) <= 'i') \
6477 || ('j' <= (c) && (c) <= 'r') \
6478 || ('s' <= (c) && (c) <= 'z'))
6479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6480 #endif
6482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6484 main ()
6486 int i;
6487 for (i = 0; i < 256; i++)
6488 if (XOR (islower (i), ISLOWER (i))
6489 || toupper (i) != TOUPPER (i))
6490 return 2;
6491 return 0;
6493 _ACEOF
6494 if ac_fn_c_try_run "$LINENO"; then :
6496 else
6497 ac_cv_header_stdc=no
6499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6500 conftest.$ac_objext conftest.beam conftest.$ac_ext
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6506 $as_echo "$ac_cv_header_stdc" >&6; }
6507 if test $ac_cv_header_stdc = yes; then
6509 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6514 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6515 if ${ac_cv_header_sys_wait_h+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <sys/types.h>
6521 #include <sys/wait.h>
6522 #ifndef WEXITSTATUS
6523 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6524 #endif
6525 #ifndef WIFEXITED
6526 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6527 #endif
6530 main ()
6532 int s;
6533 wait (&s);
6534 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6536 return 0;
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 ac_cv_header_sys_wait_h=yes
6541 else
6542 ac_cv_header_sys_wait_h=no
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6547 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6548 if test $ac_cv_header_sys_wait_h = yes; then
6550 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6555 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6556 if ${ac_cv_header_time+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <sys/types.h>
6562 #include <sys/time.h>
6563 #include <time.h>
6566 main ()
6568 if ((struct tm *) 0)
6569 return 0;
6571 return 0;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 ac_cv_header_time=yes
6576 else
6577 ac_cv_header_time=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6582 $as_echo "$ac_cv_header_time" >&6; }
6583 if test $ac_cv_header_time = yes; then
6585 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6589 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6590 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6592 cat >>confdefs.h <<_ACEOF
6593 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6594 _ACEOF
6597 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6602 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6603 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6605 cat >>confdefs.h <<_ACEOF
6606 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6607 _ACEOF
6610 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6612 else
6613 case " $LIBOBJS " in
6614 *" fileblocks.$ac_objext "* ) ;;
6615 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6617 esac
6622 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6623 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6625 cat >>confdefs.h <<_ACEOF
6626 #define HAVE_STRUCT_STAT_ST_RDEV 1
6627 _ACEOF
6630 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6636 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6637 if ${ac_cv_struct_tm+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 #include <sys/types.h>
6643 #include <time.h>
6646 main ()
6648 struct tm tm;
6649 int *p = &tm.tm_sec;
6650 return !p;
6652 return 0;
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"; then :
6656 ac_cv_struct_tm=time.h
6657 else
6658 ac_cv_struct_tm=sys/time.h
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6663 $as_echo "$ac_cv_struct_tm" >&6; }
6664 if test $ac_cv_struct_tm = sys/time.h; then
6666 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6670 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6671 #include <$ac_cv_struct_tm>
6674 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_TM_TM_ZONE 1
6678 _ACEOF
6683 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6685 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6687 else
6688 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6690 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6691 ac_have_decl=1
6692 else
6693 ac_have_decl=0
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_DECL_TZNAME $ac_have_decl
6698 _ACEOF
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6701 $as_echo_n "checking for tzname... " >&6; }
6702 if ${ac_cv_var_tzname+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 #include <time.h>
6708 #if !HAVE_DECL_TZNAME
6709 extern char *tzname[];
6710 #endif
6713 main ()
6715 return tzname[0][0];
6717 return 0;
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721 ac_cv_var_tzname=yes
6722 else
6723 ac_cv_var_tzname=no
6725 rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6729 $as_echo "$ac_cv_var_tzname" >&6; }
6730 if test $ac_cv_var_tzname = yes; then
6732 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6737 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6738 if test "x$ac_cv_type_off_t" = xyes; then :
6740 else
6742 cat >>confdefs.h <<_ACEOF
6743 #define off_t long int
6744 _ACEOF
6748 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6749 if test "x$ac_cv_type_pid_t" = xyes; then :
6751 else
6753 cat >>confdefs.h <<_ACEOF
6754 #define pid_t int
6755 _ACEOF
6759 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6760 if test "x$ac_cv_type_size_t" = xyes; then :
6762 else
6764 cat >>confdefs.h <<_ACEOF
6765 #define size_t unsigned int
6766 _ACEOF
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6771 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6772 if ${ac_cv_type_uid_t+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <sys/types.h>
6779 _ACEOF
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781 $EGREP "uid_t" >/dev/null 2>&1; then :
6782 ac_cv_type_uid_t=yes
6783 else
6784 ac_cv_type_uid_t=no
6786 rm -f conftest*
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6790 $as_echo "$ac_cv_type_uid_t" >&6; }
6791 if test $ac_cv_type_uid_t = no; then
6793 $as_echo "#define uid_t int" >>confdefs.h
6796 $as_echo "#define gid_t int" >>confdefs.h
6801 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6802 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6804 cat >>confdefs.h <<_ACEOF
6805 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6806 _ACEOF
6812 # Look for some functions
6813 for ac_func in getpagesize kqueue statfs statvfs \
6814 clone kse_create rfork_thread thr_create sa_register \
6815 getcontext makecontext setcontext sigaltstack swapcontext
6816 do :
6817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6820 cat >>confdefs.h <<_ACEOF
6821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6822 _ACEOF
6825 done
6831 for ac_header in $ac_header_list
6832 do :
6833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6837 cat >>confdefs.h <<_ACEOF
6838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6839 _ACEOF
6843 done
6852 for ac_func in getpagesize
6853 do :
6854 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6855 if test "x$ac_cv_func_getpagesize" = xyes; then :
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_GETPAGESIZE 1
6858 _ACEOF
6861 done
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6864 $as_echo_n "checking for working mmap... " >&6; }
6865 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test "$cross_compiling" = yes; then :
6869 ac_cv_func_mmap_fixed_mapped=no
6870 else
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 /* malloc might have been renamed as rpl_malloc. */
6875 #undef malloc
6877 /* Thanks to Mike Haertel and Jim Avera for this test.
6878 Here is a matrix of mmap possibilities:
6879 mmap private not fixed
6880 mmap private fixed at somewhere currently unmapped
6881 mmap private fixed at somewhere already mapped
6882 mmap shared not fixed
6883 mmap shared fixed at somewhere currently unmapped
6884 mmap shared fixed at somewhere already mapped
6885 For private mappings, we should verify that changes cannot be read()
6886 back from the file, nor mmap's back from the file at a different
6887 address. (There have been systems where private was not correctly
6888 implemented like the infamous i386 svr4.0, and systems where the
6889 VM page cache was not coherent with the file system buffer cache
6890 like early versions of FreeBSD and possibly contemporary NetBSD.)
6891 For shared mappings, we should conversely verify that changes get
6892 propagated back to all the places they're supposed to be.
6894 Grep wants private fixed already mapped.
6895 The main things grep needs to know about mmap are:
6896 * does it exist and is it safe to write into the mmap'd area
6897 * how to use it (BSD variants) */
6899 #include <fcntl.h>
6900 #include <sys/mman.h>
6902 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6903 char *malloc ();
6904 #endif
6906 /* This mess was copied from the GNU getpagesize.h. */
6907 #ifndef HAVE_GETPAGESIZE
6908 # ifdef _SC_PAGESIZE
6909 # define getpagesize() sysconf(_SC_PAGESIZE)
6910 # else /* no _SC_PAGESIZE */
6911 # ifdef HAVE_SYS_PARAM_H
6912 # include <sys/param.h>
6913 # ifdef EXEC_PAGESIZE
6914 # define getpagesize() EXEC_PAGESIZE
6915 # else /* no EXEC_PAGESIZE */
6916 # ifdef NBPG
6917 # define getpagesize() NBPG * CLSIZE
6918 # ifndef CLSIZE
6919 # define CLSIZE 1
6920 # endif /* no CLSIZE */
6921 # else /* no NBPG */
6922 # ifdef NBPC
6923 # define getpagesize() NBPC
6924 # else /* no NBPC */
6925 # ifdef PAGESIZE
6926 # define getpagesize() PAGESIZE
6927 # endif /* PAGESIZE */
6928 # endif /* no NBPC */
6929 # endif /* no NBPG */
6930 # endif /* no EXEC_PAGESIZE */
6931 # else /* no HAVE_SYS_PARAM_H */
6932 # define getpagesize() 8192 /* punt totally */
6933 # endif /* no HAVE_SYS_PARAM_H */
6934 # endif /* no _SC_PAGESIZE */
6936 #endif /* no HAVE_GETPAGESIZE */
6939 main ()
6941 char *data, *data2, *data3;
6942 const char *cdata2;
6943 int i, pagesize;
6944 int fd, fd2;
6946 pagesize = getpagesize ();
6948 /* First, make a file with some known garbage in it. */
6949 data = (char *) malloc (pagesize);
6950 if (!data)
6951 return 1;
6952 for (i = 0; i < pagesize; ++i)
6953 *(data + i) = rand ();
6954 umask (0);
6955 fd = creat ("conftest.mmap", 0600);
6956 if (fd < 0)
6957 return 2;
6958 if (write (fd, data, pagesize) != pagesize)
6959 return 3;
6960 close (fd);
6962 /* Next, check that the tail of a page is zero-filled. File must have
6963 non-zero length, otherwise we risk SIGBUS for entire page. */
6964 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6965 if (fd2 < 0)
6966 return 4;
6967 cdata2 = "";
6968 if (write (fd2, cdata2, 1) != 1)
6969 return 5;
6970 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6971 if (data2 == MAP_FAILED)
6972 return 6;
6973 for (i = 0; i < pagesize; ++i)
6974 if (*(data2 + i))
6975 return 7;
6976 close (fd2);
6977 if (munmap (data2, pagesize))
6978 return 8;
6980 /* Next, try to mmap the file at a fixed address which already has
6981 something else allocated at it. If we can, also make sure that
6982 we see the same garbage. */
6983 fd = open ("conftest.mmap", O_RDWR);
6984 if (fd < 0)
6985 return 9;
6986 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6988 return 10;
6989 for (i = 0; i < pagesize; ++i)
6990 if (*(data + i) != *(data2 + i))
6991 return 11;
6993 /* Finally, make sure that changes to the mapped area do not
6994 percolate back to the file as seen by read(). (This is a bug on
6995 some variants of i386 svr4.0.) */
6996 for (i = 0; i < pagesize; ++i)
6997 *(data2 + i) = *(data2 + i) + 1;
6998 data3 = (char *) malloc (pagesize);
6999 if (!data3)
7000 return 12;
7001 if (read (fd, data3, pagesize) != pagesize)
7002 return 13;
7003 for (i = 0; i < pagesize; ++i)
7004 if (*(data + i) != *(data3 + i))
7005 return 14;
7006 close (fd);
7007 return 0;
7009 _ACEOF
7010 if ac_fn_c_try_run "$LINENO"; then :
7011 ac_cv_func_mmap_fixed_mapped=yes
7012 else
7013 ac_cv_func_mmap_fixed_mapped=no
7015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7016 conftest.$ac_objext conftest.beam conftest.$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7021 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7022 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7024 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7027 rm -f conftest.mmap conftest.txt
7032 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7033 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7034 aros_config_ldflags=""
7036 aros_shared_default=yes
7038 aros_shared_cflags="-fPIC"
7039 aros_shared_aflags=""
7040 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7041 aros_kernel_ldflags="-Wl,-rpath,./lib"
7043 aros_kernel_ar_flags="cr"
7044 aros_target_ar_flags="cr"
7045 aros_target_nm_flags="-C -ul"
7046 aros_target_strip_flags="--strip-unneeded -R.comment"
7048 aros_compiler_libs=
7049 aros_arch_libs=
7051 aros_target_genmap="-Wl,-Map -Xlinker"
7053 # Native flavour stuff
7054 aros_serial_debug="0"
7056 # Palm native flavour stuff
7057 aros_palm_debug_hack="0"
7059 # Unix flavour stuff
7060 aros_nesting_supervisor="0"
7062 # Collect-aros stuff: "-ius" to ignore undefined symbols
7063 ignore_undefined_symbols=""
7065 # Check for X11 by default
7066 need_x11="auto"
7068 #-----------------------------------------------------------------------------
7071 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7072 # it switched on by default, and we use the host compiler, so it compiles AROS
7073 # code with this enabled resulting in link failures as we don't have support
7074 # for it.
7076 # We use two methods to disable it. For the host compiler (used to compile
7077 # some hosted modules), we test to see if the compiler supports stack
7078 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7079 # work on all platforms.
7081 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7082 # (this is done unconditionally, as it should have no effect on compilers
7083 # without the stack protection feature). This may be specific to the way that
7084 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7085 # strong enough to disable it in a generic way though, so we'll live with it
7086 # until another vendor ships GCC with it enabled in a different way, and deal
7087 # with it then.
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7091 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7092 save_cflags="$CFLAGS"
7093 CFLAGS="$CFLAGS -fno-stack-protector"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7098 main ()
7102 return 0;
7104 _ACEOF
7105 if ac_fn_c_try_compile "$LINENO"; then :
7106 use_no_stack_protector="yes"
7107 else
7108 use_no_stack_protector="no"
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7112 $as_echo "$use_no_stack_protector" >&6; }
7113 if test "x-$use_no_stack_protector" = "x-yes" ; then
7114 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7116 CFLAGS="$save_cflags"
7118 #-----------------------------------------------------------------------------
7120 # Disable pointer-signedness warnings if the compiler recognises the option
7121 # (this only works for the host compiler at the moment)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7124 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7125 save_cflags="$CFLAGS"
7126 CFLAGS="$CFLAGS -Wno-pointer-sign"
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7131 main ()
7135 return 0;
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 use_no_sign_warning="yes"
7140 else
7141 use_no_sign_warning="no"
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7145 $as_echo "$use_no_sign_warning" >&6; }
7146 if test "x-$use_no_sign_warning" = "x-yes" ; then
7147 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7149 CFLAGS="$save_cflags"
7151 #-----------------------------------------------------------------------------
7153 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7156 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7157 save_cflags="$CFLAGS"
7158 CFLAGS="$CFLAGS -fgnu89-inline"
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7163 main ()
7167 return 0;
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 use_gnu89_inline="yes"
7172 else
7173 use_gnu89_inline="no"
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7177 $as_echo "$use_gnu89_inline" >&6; }
7178 if test "x-$use_gnu89_inline" = "x-yes" ; then
7179 gnu89_inline="-fgnu89-inline"
7181 CFLAGS="$save_cflags"
7183 #-----------------------------------------------------------------------------
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7186 $as_echo_n "checking for type of build... " >&6; }
7187 # Check whether --enable-build_type was given.
7188 if test "${enable_build_type+set}" = set; then :
7189 enableval=$enable_build_type; build_type=$enableval
7190 else
7191 build_type="personal"
7195 if test "$build_type" = "nightly"; then
7196 build_type_string="NIGHTLY"
7197 elif test "$build_type" = "snapshot"; then
7198 build_type_string="SNAPSHOT"
7199 elif test "$build_type" = "milestone"; then
7200 build_type_string="MILESTONE"
7201 elif test "$build_type" = "release"; then
7202 build_type_string="RELEASE"
7203 else
7204 build_type_string="PERSONAL"
7205 build_type="personal"
7208 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7211 $as_echo "$build_type" >&6; }
7213 #-----------------------------------------------------------------------------
7214 all_debug_types="messages stack modules mungwall symbols"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7217 $as_echo_n "checking which debug types to enable... " >&6; }
7218 # Check whether --enable-debug was given.
7219 if test "${enable_debug+set}" = set; then :
7220 enableval=$enable_debug; debug="$enableval"
7221 else
7222 debug=""
7226 if test "$debug" = "" -o "$debug" = "no"; then
7227 debug="none"
7228 elif test "$debug" = "yes"; then
7229 debug="all"
7232 if test "$debug" = "all" ; then
7233 debug="messages stack modules symbols"
7234 for d in $all_debug_types; do
7235 export aros_${d}_debug="1"
7236 done
7237 else
7238 for d in $all_debug_types; do
7239 export aros_${d}_debug="0"
7240 done
7243 if test "$debug" != "none"; then
7244 debug=`echo $debug | sed s/,/\ /g`
7245 for d in $debug; do
7246 found="0"
7247 for d2 in $all_debug_types; do
7248 if test "$d2" = "$d"; then
7249 found="1"
7250 break
7252 done
7253 if test "$found" = "0"; then
7254 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7256 export aros_${d}_debug="1"
7257 done
7258 aros_debug="yes"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7261 $as_echo "$debug" >&6; }
7263 if test "$aros_messages_debug" = "1"; then
7264 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7265 else
7266 aros_messages_debug=""
7268 if test "$aros_symbols_debug" = "1"; then
7269 aros_symbols_debug="-g"
7270 else
7271 aros_symbols_debug=""
7274 # These are the flags to pass when compiling debugged programs
7275 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7276 aros_debug_aflags=""
7277 aros_debug_ldflags="$aros_symbols_debug"
7279 #-----------------------------------------------------------------------------
7280 # Checking for distcc and ccache.
7282 # Always apply the transforms in this particular order. Basically you should
7283 # always run 'ccache distcc compiler' in that order for the best performance.
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7286 $as_echo_n "checking whether to enable distcc... " >&6; }
7287 # Check whether --enable-distcc was given.
7288 if test "${enable_distcc+set}" = set; then :
7289 enableval=$enable_distcc; distcc="$enableval"
7290 else
7291 distcc="no"
7294 if test "$distcc" != "" -a "$distcc" != "no"; then
7295 # AC_CHECK_PROG will print out the result in this case
7296 # Extract the first word of "distcc", so it can be a program name with args.
7297 set dummy distcc; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_path_DISTCC+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 case $DISTCC in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7319 done
7320 done
7321 IFS=$as_save_IFS
7323 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7325 esac
7327 DISTCC=$ac_cv_path_DISTCC
7328 if test -n "$DISTCC"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7330 $as_echo "$DISTCC" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7343 $as_echo_n "checking whether to enable ccache... " >&6; }
7344 # Check whether --enable-ccache was given.
7345 if test "${enable_ccache+set}" = set; then :
7346 enableval=$enable_ccache; ccache="$enableval"
7347 else
7348 ccache="no"
7351 if test "$ccache" != "" -a "$ccache" != "no"; then
7352 # AC_CHECK_PROG will print out the result in this case
7353 # Extract the first word of "ccache", so it can be a program name with args.
7354 set dummy ccache; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_CCACHE+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$CCACHE"; then
7361 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_CCACHE="ccache"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7380 CCACHE=$ac_cv_prog_CCACHE
7381 if test -n "$CCACHE"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7383 $as_echo "$CCACHE" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7395 #-----------------------------------------------------------------------------
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7397 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7399 # Check whether --with-gcc-version was given.
7400 if test "${with_gcc_version+set}" = set; then :
7401 withval=$with_gcc_version; kernel_tool_version="$withval"
7402 else
7403 kernel_tool_version="default"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7407 $as_echo "$kernel_tool_version" >&6; }
7409 #-----------------------------------------------------------------------------
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7411 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7413 # Check whether --with-gcc-version was given.
7414 if test "${with_gcc_version+set}" = set; then :
7415 withval=$with_gcc_version; target_tool_version="$withval"
7416 else
7417 target_tool_version="default"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7421 $as_echo "$target_tool_version" >&6; }
7423 #-----------------------------------------------------------------------------
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7425 $as_echo_n "checking what optimization flags to use... " >&6; }
7427 # Check whether --with-optimization was given.
7428 if test "${with_optimization+set}" = set; then :
7429 withval=$with_optimization; optimization="$withval"
7430 else
7431 optimization="unknown"
7434 if test "$optimization" = "unknown"; then
7435 if test "$debug" != "none"; then
7436 optimization="-O0"
7437 else
7438 optimization="-O2"
7441 aros_config_cflags="$aros_config_cflags $optimization"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7443 $as_echo "$optimization" >&6; }
7445 #-----------------------------------------------------------------------------
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7447 $as_echo_n "checking what paranoia flags to use... " >&6; }
7449 # Check whether --with-paranoia was given.
7450 if test "${with_paranoia+set}" = set; then :
7451 withval=$with_paranoia; paranoia_flags="$withval"
7452 else
7453 paranoia_flags="default"
7456 if test "$paranoia_flags" = "default"; then
7457 paranoia_flags=""
7458 else if test "$paranoia_flags" = "yes"; then
7459 paranoia_flags="-Wall -Werror"
7460 fi fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7462 $as_echo "$paranoia_flags" >&6; }
7463 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7465 #-----------------------------------------------------------------------------
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7467 $as_echo_n "checking what target variant to enable... " >&6; }
7468 # Check whether --enable-target_variant was given.
7469 if test "${enable_target_variant+set}" = set; then :
7470 enableval=$enable_target_variant; target_variant=$enableval
7471 else
7472 target_variant=""
7475 if test "$target_variant" = ""; then
7476 aros_target_variant=""
7477 aros_target_suffix=""
7478 enableval="none"
7479 else
7480 aros_target_variant="$target_variant"
7481 aros_target_suffix="-$target_variant"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7484 $as_echo "$enableval" >&6; }
7486 #-----------------------------------------------------------------------------
7487 # Target-specific defaults. You can override then on a per-target basis.
7489 # Bootloader name. Currently used by PC target.
7490 target_bootloader="none"
7492 #-----------------------------------------------------------------------------
7493 # Additional options for some specific targets
7495 case "$aros_target_variant" in
7496 ios)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7498 $as_echo_n "checking XCode path... " >&6; }
7500 # Check whether --with-xcode was given.
7501 if test "${with_xcode+set}" = set; then :
7502 withval=$with_xcode; aros_xcode_path="$withval"
7503 else
7504 aros_xcode_path="/Developer"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7508 $as_echo "$aros_xcode_path" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7511 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7513 # Check whether --with-sdk-version was given.
7514 if test "${with_sdk_version+set}" = set; then :
7515 withval=$with_sdk_version; aros_sdk_version="$withval"
7516 else
7517 aros_sdk_version="4.1"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7521 $as_echo "$aros_sdk_version" >&6; }
7525 "android")
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7527 $as_echo_n "checking Android SDK path... " >&6; }
7529 # Check whether --with-sdk was given.
7530 if test "${with_sdk+set}" = set; then :
7531 withval=$with_sdk; aros_android_sdk="$withval"
7532 else
7533 aros_android_sdk=$default_android_sdk
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7537 $as_echo "$aros_android_sdk" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7540 $as_echo_n "checking Android NDK path... " >&6; }
7542 # Check whether --with-ndk was given.
7543 if test "${with_ndk+set}" = set; then :
7544 withval=$with_ndk; aros_android_ndk="$withval"
7545 else
7546 aros_android_ndk="none"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7550 $as_echo "$aros_android_ndk" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7553 $as_echo_n "checking what Android SDK version to use... " >&6; }
7555 # Check whether --with-sdk-version was given.
7556 if test "${with_sdk_version+set}" = set; then :
7557 withval=$with_sdk_version; aros_sdk_version="$withval"
7558 else
7559 aros_sdk_version="12"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7563 $as_echo "$aros_sdk_version" >&6; }
7565 if test "$aros_android_ndk" != "none"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7567 $as_echo_n "checking what Android NDK version to use... " >&6; }
7569 # Check whether --with-ndk-version was given.
7570 if test "${with_ndk_version+set}" = set; then :
7571 withval=$with_ndk_version; aros_ndk_version="$withval"
7572 else
7573 aros_ndk_version="9"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7577 $as_echo "$aros_ndk_version" >&6; }
7580 export PATH="$aros_android_sdk/tools:$PATH"
7581 # Extract the first word of "$android_tool", so it can be a program name with args.
7582 set dummy $android_tool; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_path_android_tool+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 case $android_tool in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7604 done
7605 done
7606 IFS=$as_save_IFS
7609 esac
7611 android_tool=$ac_cv_path_android_tool
7612 if test -n "$android_tool"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7614 $as_echo "$android_tool" >&6; }
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7621 if test "$android_tool" = ""; then
7622 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7625 aros_android_level=android-$aros_sdk_version
7626 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7627 echo "Platform $aros_android_level is not installed in your SDK"
7628 echo "Use --with-sdk-version=<API level number> to select another platform version"
7629 echo "You can check what plaform versions are installed in your SDK"
7630 echo "by examining contents of $aros_android_sdk/platforms directory"
7631 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7634 # Extract the first word of "ant", so it can be a program name with args.
7635 set dummy ant; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_path_ant+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 case $ant in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7662 esac
7664 ant=$ac_cv_path_ant
7665 if test -n "$ant"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7667 $as_echo "$ant" >&6; }
7668 else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7674 if test "$ant" = ""; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7676 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7679 if test "$host_os" = "mingw32"; then
7680 android_tool="cmd //c $android_tool"
7684 esac
7686 #-----------------------------------------------------------------------------
7687 # External toolchains
7688 kernel_tool_prefix="none"
7689 aros_tool_prefix="none"
7690 elf_tool_prefix="${target_cpu}-elf-"
7692 # This is the target configuration switch.
7693 case "$target_os" in
7694 linux*)
7695 aros_target_arch="linux"
7696 aros_target_family="unix"
7697 case "$target_cpu" in
7698 *m68k*)
7699 aros_target_cpu="m68k"
7700 aros_object_format="m68kelf"
7701 aros_flavour="emulcompat"
7702 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7703 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7704 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7705 gcc_target_cpu="mc68000"
7707 *i?86*)
7708 aros_target_cpu="i386"
7709 aros_object_format="elf_i386"
7710 aros_flavour="emulation"
7711 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7712 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7713 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7714 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7715 aros_config_ldflags="-m32 -march=i486"
7716 aros_kernel_ldflags="-melf_i386"
7717 aros_default_wbdepth=8
7718 gcc_target_cpu="i386"
7719 pci_hidd_target="hidd-pci-linux"
7720 android_tool_dir_prefix="x86"
7721 android_tool_prefix="i686-android-linux"
7722 android_ndk_arch="x86"
7724 *x86_64*)
7725 aros_target_cpu="x86_64"
7726 aros_object_format="elf_x86_64"
7727 aros_flavour="emulation"
7728 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7729 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7730 aros_default_wbdepth=8
7731 pci_hidd_target="hidd-pci-linux"
7733 *powerpc*)
7734 aros_target_cpu="ppc"
7735 aros_object_format="elf32ppc"
7736 aros_flavour="emulation"
7737 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7738 aros_default_wbdepth=8
7739 gcc_target_cpu="ppc"
7741 # TODO
7742 # Same as powerpc, but I need this for the nightly build to work again.
7743 # Actually, the nightly should be made working with powerpc target.
7744 # That just was too much work for the moment, another week or two.
7745 *ppc*)
7746 aros_target_cpu="ppc"
7747 aros_object_format="elf32ppc"
7748 aros_flavour="emulation"
7749 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7750 aros_default_wbdepth=8
7751 gcc_target_cpu="ppc"
7753 *arm*)
7754 aros_target_cpu="arm"
7755 aros_object_format="armelf_linux_eabi"
7756 aros_flavour="emulation"
7757 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7758 gcc_target_cpu="arm"
7759 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7760 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7761 aros_arch_libs="-laeabi"
7762 android_tool_dir_prefix="arm-linux-androideabi"
7763 android_tool_prefix="arm-linux-androideabi"
7764 android_ndk_arch="arm"
7765 kernel_tool_prefix="arm-linux-gnueabi-"
7768 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7770 esac
7771 case "$aros_target_variant" in
7772 android)
7774 if test "$android_ndk_arch" = ""; then
7775 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7778 aros_default_wbwidth=320
7779 aros_default_wbheight=480
7780 if test "$aros_android_ndk" = "none"; then
7781 aros_kernel_cflags="-mandroid"
7782 aros_kernel_ldflags="-mandroid"
7783 CFLAGS="-mandroid"
7784 else
7785 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7786 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7787 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7788 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7789 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7790 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7792 need_x11=no
7793 x11_hidd_target=kernel-hidd-androidgfx-kobj
7794 # Disable implicit PIC mode
7795 aros_target_cflags="$aros_target_cflags -fno-pic"
7796 kernel_tool_prefix="$android_tool_prefix-"
7798 esac
7802 aros_target_arch="pc"
7803 aros_shared_default="no"
7804 target_bootloader="grub2"
7805 case "$target_cpu" in
7806 *i?86*)
7807 aros_target_cpu="i386"
7810 if test "$aros_object_format" = "" ; then
7811 aros_object_format="elf_i386"
7813 aros_flavour="standalone"
7814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7815 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7816 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7817 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7818 aros_config_ldflags="-m32 -march=i486"
7819 aros_kernel_ldflags="-melf_i386"
7820 aros_default_wbwidth=640
7821 aros_default_wbheight=480
7822 gcc_target_cpu="i386"
7824 *x86_64*)
7825 aros_target_cpu="x86_64"
7826 aros_serial_debug=1
7827 if test "$aros_object_format" = "" ; then
7828 aros_object_format="elf_x86_64"
7830 aros_flavour="standalone"
7831 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7832 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7833 aros_kernel_ldflags=""
7834 aros_default_wbwidth=640
7835 aros_default_wbheight=480
7838 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7840 esac
7843 prep)
7844 aros_target_arch="prep"
7845 aros_shared_default="no"
7846 aros_target_cpu="ppc"
7847 aros_object_format="elf32ppc"
7848 aros_flavour="ppcnative"
7849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7850 aros_kernel_ldflags=""
7851 aros_default_wbwidth=640
7852 aros_default_wbheight=480
7853 gcc_target_cpu="ppc"
7856 freebsd*)
7857 aros_target_arch="freebsd"
7858 aros_target_family="unix"
7859 aros_target_cpu="i386"
7860 aros_flavour="emulation"
7861 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7862 gcc_target_cpu="i386"
7864 aros_target_strip_flags="-x"
7867 darwin*)
7868 aros_target_arch="darwin"
7869 aros_target_family="unix"
7870 aros_flavour="emulation"
7871 case "$target_cpu" in
7872 *i?86*)
7873 aros_ios_platform="iPhoneSimulator"
7874 aros_target_cpu="i386"
7875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7876 aros_kernel_ldflags=""
7877 aros_macosx_version="10.4"
7878 aros_default_wbdepth=8
7879 gcc_target_cpu="i386"
7880 aros_object_format="elf_i386"
7881 aros_kernel_ar_flags="-cr"
7882 aros_target_strip_flags="-x"
7883 kernel_tool_flags="-m32"
7885 *x86_64*)
7886 aros_target_cpu="x86_64"
7887 aros_object_format="elf_x86_64"
7888 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7889 aros_macosx_version="10.6"
7890 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7891 aros_kernel_cflags="-m64"
7892 aros_kernel_ldflags="-m64"
7893 aros_target_cflags="-mcmodel=large"
7894 aros_default_wbdepth=8
7895 aros_kernel_ar="ar"
7896 aros_kernel_ar_flags="-cr"
7897 aros_kernel_ld="ld"
7898 aros_kernel_ranlib="ranlib"
7900 *ppc*)
7901 aros_target_cpu="ppc"
7902 aros_object_format="elf32ppc"
7903 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7904 aros_kernel_ldflags=""
7905 aros_macosx_version="10.0"
7906 aros_default_wbdepth=8
7907 gcc_target_cpu="ppc"
7908 aros_kernel_ar="ar"
7909 aros_kernel_ar_flags="-cr"
7910 aros_kernel_ld="ld -arch ppc"
7911 aros_kernel_ranlib="ranlib -arch ppc"
7912 kernel_tool_prefix="powerpc-apple-darwin10-"
7914 *arm*)
7915 aros_ios_platform="iPhoneOS"
7916 aros_target_cpu="arm"
7917 aros_object_format="armelf_linux_eabi"
7918 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7919 aros_arch_libs="-laeabi"
7920 aros_default_wbdepth=8
7921 gcc_target_cpu="arm"
7922 aros_kernel_ar="ar"
7923 aros_kernel_ar_flags="-cr"
7924 aros_kernel_ld="ld -arch arm"
7925 aros_kernel_ranlib="ranlib -arch arm"
7926 kernel_tool_prefix="arm-apple-darwin10-"
7927 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7930 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7932 esac
7933 case "$aros_target_variant" in
7934 ios)
7935 aros_ios_version="3.0"
7936 aros_default_wbwidth=320
7937 aros_default_wbheight=480
7938 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7939 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7940 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7941 need_x11=no
7942 # This is here because it may depend on iOS or SDK version
7943 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7944 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7945 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7948 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7949 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7951 esac
7954 dragonfly*)
7955 aros_target_arch="dragonfly"
7956 aros_target_family="unix"
7957 aros_flavour="emulation"
7958 case "$target_cpu" in
7959 *i?86*)
7960 aros_target_cpu="i386"
7961 aros_object_format="elf_i386"
7962 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7964 *x86_64*)
7965 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7966 aros_target_cpu="x86_64"
7967 aros_object_format="elf_x86_64"
7968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7971 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7973 esac
7976 netbsd*)
7977 aros_target_arch="netbsd"
7978 aros_target_family="unix"
7979 case "$target_cpu" in
7980 *m68k*)
7981 aros_target_cpu="m68k"
7982 aros_object_format="m68kelf"
7983 aros_flavour="emulcompat"
7984 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7985 gcc_target_cpu="mc68000"
7987 *i?86*)
7988 aros_target_cpu="i386"
7989 aros_object_format="elf_i386"
7990 aros_flavour="emulation"
7991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7992 aros_default_wbdepth=8
7993 gcc_target_cpu="i386"
7996 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7998 esac
7999 aros_target_genmap="-Wl,-M -Xlinker >"
8000 aros_flavour="emulation"
8001 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8004 openbsd*)
8005 aros_target_arch="openbsd"
8006 aros_target_family="unix"
8007 case "$target_cpu" in
8008 *i?86*)
8009 aros_target_cpu="i386"
8010 aros_object_format="elf_i386"
8011 aros_flavour="emulation"
8012 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8013 gcc_target_cpu="i386"
8016 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8018 esac
8019 aros_target_genmap="-Wl,-M -Xlinker >"
8020 aros_target_nm_flags="-u"
8021 aros_flavour="emulation"
8024 solaris*)
8025 aros_target_arch="solaris"
8026 aros_target_family="unix"
8027 case "$target_cpu" in
8028 *i?86*)
8029 aros_target_cpu="i386"
8030 aros_object_format="elf_i386"
8031 aros_flavour="emulation"
8032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8033 aros_default_wbdepth=8
8034 gcc_target_cpu="i386"
8036 *sparc*)
8037 aros_target_cpu="sparc"
8038 aros_object_format="elf_sparc"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8040 gcc_target_cpu="sparc"
8043 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8045 esac
8046 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8047 aros_flavour="emulation"
8050 morphos*)
8051 aros_target_arch="morphos"
8052 aros_shared_default="no"
8053 aros_target_cpu="ppc"
8054 aros_object_format="elf_ppc"
8055 aros_flavour="nativecompat"
8056 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8057 gcc_target_cpu="ppc"
8060 sam440)
8061 aros_target_arch="sam440"
8062 aros_shared_default="no"
8063 aros_target_cpu="ppc"
8064 aros_object_format="elf32ppc"
8065 aros_flavour="ppcnative"
8066 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8067 aros_kernel_ldflags=""
8068 aros_default_wbwidth=1024
8069 aros_default_wbheight=768
8070 aros_default_wbdepth=24
8071 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8072 gcc_target_cpu="powerpc"
8075 efika)
8076 aros_target_arch="efika"
8077 aros_shared_default="no"
8078 aros_target_cpu="arm"
8079 aros_object_format="armelf_linux_eabi"
8080 aros_flavour="standalone"
8081 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8082 aros_kernel_ldflags=""
8083 aros_default_wbwidth=1024
8084 aros_default_wbheight=600
8085 aros_arch_libs="-laeabi"
8086 gcc_default_cpu="armv7-a"
8087 gcc_default_fpu="vfpv3"
8088 gcc_default_float_abi="softfp"
8089 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8090 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8093 chrp)
8094 aros_target_arch="chrp"
8095 aros_shared_default="no"
8096 aros_target_cpu="ppc"
8097 aros_object_format="elf32ppc"
8098 aros_flavour="ppcnative"
8099 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8100 aros_kernel_ldflags=""
8101 aros_default_wbwidth=640
8102 aros_default_wbheight=480
8103 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8104 gcc_target_cpu="powerpc"
8105 case "$aros_target_variant" in
8106 efika)
8107 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8109 esac
8112 amiga*)
8113 aros_target_arch="amiga"
8114 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8115 aros_shared_default="no"
8117 case "$target_cpu" in
8118 *m68k*)
8119 # Check whether --enable-amigaos_compliance was given.
8120 if test "${enable_amigaos_compliance+set}" = set; then :
8121 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8124 aros_enable_mmu=no
8125 aros_target_cpu="m68k"
8126 aros_object_format="m68kelf"
8127 aros_flavour="standcompat"
8128 gcc_target_cpu="m68000"
8129 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8130 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8131 # Needed to get the correct multilib
8132 aros_config_ldflags="-${gcc_target_cpu}"
8133 aros_shared_ldflags="-${gcc_target_cpu}"
8134 aros_kernel_ldflags="-${gcc_target_cpu}"
8135 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8136 aros_target_strip_flags="-R.comment --strip-debug"
8137 aros_default_wbwidth=640
8138 aros_default_wbheight=256
8139 aros_default_wbdepth=2
8141 *ppc*)
8142 aros_cpu="ppc"
8143 aros_flavour="native"
8144 gcc_target_cpu="ppc"
8147 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8149 esac
8152 mingw*)
8153 aros_target_arch="mingw32"
8154 aros_shared_default="no"
8155 aros_flavour="emulation"
8156 aros_shared_cflags=""
8157 need_crosstools="yes"
8158 need_dlopen="no"
8159 rescomp="windres"
8160 case "$target_cpu" in
8161 *i?86*)
8162 aros_target_cpu="i386"
8163 aros_object_format="elf_i386"
8164 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8165 aros_default_wbdepth=8
8166 gcc_target_cpu="i386"
8168 kernel_tool_prefix="i386-mingw32-"
8170 *x86_64*)
8171 aros_target_cpu="x86_64"
8172 aros_object_format="elf_x86_64"
8173 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8174 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8175 aros_default_wbdepth=8
8176 kernel_tool_prefix="x86_64-w64-mingw32-"
8178 *arm*)
8179 aros_target_cpu="arm"
8180 aros_object_format="armelf_linux_eabi"
8181 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8182 aros_arch_libs="-laeabi"
8183 aros_default_wbdepth=8
8184 gcc_target_cpu="arm"
8185 gcc_default_float_abi="soft"
8186 kernel_tool_prefix="arm-mingw32ce-"
8187 aros_default_wbwidth=160
8188 aros_default_wbheight=160
8191 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8193 esac
8194 if test $host_os = "cygwin"; then
8195 aros_kernel_cflags="-mno-cygwin"
8198 pp*)
8199 aros_target_arch="pp"
8200 aros_shared_default="no"
8201 case "$target_cpu" in
8202 *m68k*)
8203 aros_target_cpu="m68k"
8204 aros_object_format="m68kelf"
8205 aros_flavour="palmnative"
8206 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8207 aros_default_wbwidth=160
8208 aros_default_wbheight=160
8209 aros_default_wbdepth=1
8210 aros_target_ar_flags="cru"
8211 aros_compiler_libs="-lgcc1"
8212 aros_shared_default=no
8213 aros_shared_cflags="-fpic"
8214 aros_shared_aflags=""
8215 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8216 aros_kernel_ldflags="-Wl,-rpath,./lib"
8217 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8218 aros_debug_aflags=""
8219 aros_debug_ldflags="$aros_symbols_debug"
8220 aros_mungwall_debug="0"
8221 aros_modules_debug="0"
8222 gcc_target_cpu="mc68000"
8223 ignore_undefined_symbols="-ius"
8226 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8228 esac
8231 mac*)
8232 aros_target_arch="mac"
8233 aros_shared_default="no"
8234 case "$target_cpu" in
8235 *m68k*)
8236 aros_target_cpu="m68k"
8237 aros_object_format="m68kelf"
8238 aros_flavour="mac68knative"
8239 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8240 aros_default_wbwidth=512
8241 aros_default_wbheight=384
8242 aros_default_wbdepth=8
8243 aros_target_ar_flags="cru"
8244 aros_compiler_libs="-lgcc1"
8245 aros_shared_default=no
8246 aros_shared_cflags="-fpic"
8247 aros_shared_aflags=""
8248 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8249 aros_kernel_ldflags="-Wl,-rpath,./lib"
8250 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8251 aros_debug_aflags=""
8252 aros_debug_ldflags="$aros_symbols_debug"
8253 aros_mungwall_debug="0"
8254 aros_modules_debug="0"
8255 gcc_target_cpu="mc68000"
8256 ignore_undefined_symbols="-ius"
8259 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8261 esac
8265 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8267 esac
8269 #-----------------------------------------------------------------------------
8270 crosstools_guess=yes
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8273 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8275 # Check whether --with-kernel-toolchain-prefix was given.
8276 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8277 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8281 $as_echo "$kernel_tool_prefix" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8284 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8286 # Check whether --with-elf-toolchain-prefix was given.
8287 if test "${with_elf_toolchain_prefix+set}" = set; then :
8288 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8289 crosstools_guess=no
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8293 $as_echo "$elf_tool_prefix" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8296 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8298 # Check whether --with-aros-toolchain was given.
8299 if test "${with_aros_toolchain+set}" = set; then :
8300 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8301 crosstools_guess=no
8304 if test "$aros_tool_prefix" = "yes" ; then
8305 aros_tool_prefix=$aros_target_cpu-aros-
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8308 $as_echo "$aros_tool_prefix" >&6; }
8310 #-----------------------------------------------------------------------------
8311 # Checking if we should build crosstools..
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8313 $as_echo_n "checking whether to build crosstools... " >&6; }
8314 # Check whether --enable-crosstools was given.
8315 if test "${enable_crosstools+set}" = set; then :
8316 enableval=$enable_crosstools; crosstools="$enableval"
8317 else
8318 crosstools="$crosstools_guess"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8322 $as_echo "$crosstools" >&6; }
8324 if test "${crosstools}" = "yes"; then
8325 if test "${crosstools_guess}" = "no"; then
8326 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8330 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8332 # Check whether --with-aros-toolchain-install was given.
8333 if test "${with_aros_toolchain_install+set}" = set; then :
8334 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8337 if test "x$aros_toolchain_install" = "x"; then
8338 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8339 else
8340 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8341 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8344 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8348 # Now process extra architecture-specific options.
8349 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8350 # as well as floating-point ABI.
8351 case "$aros_target_cpu" in
8352 arm)
8353 if test "$gcc_default_cpu" = ""; then
8354 gcc_default_cpu="armv6"
8356 if test "$gcc_default_fpu" = ""; then
8357 gcc_default_fpu="vfp"
8359 if test "$gcc_default_float_abi" = ""; then
8360 gcc_default_float_abi="softfp"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8364 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8366 # Check whether --with-cpu was given.
8367 if test "${with_cpu+set}" = set; then :
8368 withval=$with_cpu; aros_gcc_cpu="$withval"
8369 else
8370 aros_gcc_cpu=$gcc_default_cpu
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8374 $as_echo "$aros_gcc_cpu" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8377 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8379 # Check whether --with-fpu was given.
8380 if test "${with_fpu+set}" = set; then :
8381 withval=$with_fpu; aros_gcc_fpu="$withval"
8382 else
8383 aros_gcc_fpu=$gcc_default_fpu
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8387 $as_echo "$aros_gcc_fpu" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8390 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8392 # Check whether --with-float was given.
8393 if test "${with_float+set}" = set; then :
8394 withval=$with_float; aros_gcc_float_abi="$withval"
8395 else
8396 aros_gcc_float_abi=$gcc_default_float_abi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8400 $as_echo "$aros_gcc_float_abi" >&6; }
8402 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"
8403 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"
8405 esac
8407 # Some formats need custom ELF specs.
8408 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8409 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8410 elf_specs_in=config/${aros_object_format}-specs.in
8411 else
8412 elf_specs_in=config/elf-specs.in
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8416 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8418 # Check whether --with-aros-gcc was given.
8419 if test "${with_aros_gcc+set}" = set; then :
8420 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8421 else
8422 aros_gcc_version=""
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8426 $as_echo "$aros_gcc_version" >&6; }
8428 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8429 # Since we override specs, we may need to put these defines there
8430 if test "$gcc_target_cpu" != ""; then
8431 gcc_target_cpu="-D__${gcc_target_cpu}__"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8435 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8437 # Check whether --with-portssources was given.
8438 if test "${with_portssources+set}" = set; then :
8439 withval=$with_portssources; with_portssrcdir=$withval
8440 else
8441 with_portssrcdir="default"
8444 if test "$with_portssrcdir" = "default"; then
8445 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8446 else
8447 AROS_PORTSSRCDIR="$with_portssrcdir"
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8450 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8453 $as_echo_n "checking which bootloader to use... " >&6; }
8455 # Check whether --with-bootloader was given.
8456 if test "${with_bootloader+set}" = set; then :
8457 withval=$with_bootloader; target_bootloader=$withval
8458 else
8459 target_bootloader=$target_bootloader
8462 if test "$target_bootloader" = "none"; then
8463 aros_target_bootloader=""
8464 else
8465 aros_target_bootloader="$target_bootloader"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8468 $as_echo "$target_bootloader" >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8471 $as_echo_n "checking which icon-set to use... " >&6; }
8473 # Check whether --with-iconset was given.
8474 if test "${with_iconset+set}" = set; then :
8475 withval=$with_iconset; target_iconset=$withval
8476 else
8477 target_iconset="default"
8480 if test "$target_iconset" = "default"; then
8481 aros_target_iconset="Gorilla"
8482 target_iconset="default (Gorilla)"
8483 else
8484 aros_target_iconset="$target_iconset"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8487 $as_echo "$target_iconset" >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8490 $as_echo_n "checking which GUI Theme to use... " >&6; }
8492 # Check whether --with-theme was given.
8493 if test "${with_theme+set}" = set; then :
8494 withval=$with_theme; target_guitheme=$withval
8495 else
8496 target_guitheme="default"
8499 if test "$target_guitheme" = "default"; then
8500 aros_target_guitheme="Ice"
8501 else
8502 aros_target_guitheme="$target_guitheme"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8505 $as_echo "$aros_target_guitheme" >&6; }
8507 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8508 # for target code)
8509 cross_compiling=no
8511 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8512 cross_compiling=yes
8515 if test "$aros_host_cpu" == "x86_64" ; then
8516 if test "$aros_target_cpu" == "i386" ; then
8517 cross_compiling=no
8521 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8522 if test "$aros_host_arch" != "$aros_target_arch" ; then
8523 cross_compiling=yes
8525 else
8526 if test "$cross_compile_native" ; then
8527 cross_compiling=yes
8531 if test "$cross_compiling" = "no" ; then
8532 kernel_tool_prefix=""
8535 #######################################################################
8536 ## Compute what toolchains to use, and their paths ##
8537 #######################################################################
8539 # This takes, as input:
8540 # crosstools {yes,no}
8541 # aros_gcc_version {default,[version]}
8542 # kernel_tool_prefix {none,[some-arch-os-]}
8543 # aros_tool_prefix ${target_cpu}-aros-
8545 # The output is
8546 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8547 # Where the 'kernel' binaries are located
8548 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8549 # Where the 'target' binaries are located
8550 # (not the symlink farm - that is aros_target_*!)
8552 # The rules are:
8553 # if crosstools then
8554 # if kernel_tools_prefix = "no-kernel-prefix-"
8555 # aros_kernel_* = crosstools cc paths
8556 # aros_kernel_cc = elf cc wrapper around crosstools cc
8557 # else
8558 # VALIDATE(${kernel_tools_prefix}*)
8559 # aros_kernel_* = ${kernel_tools_prefix}*
8560 # if ${kernel_tools_prefix}cc is an AROS gcc
8561 # aros_kernel_cc = ${kernel_tools_prefix}cc
8562 # else
8563 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8564 # fi
8565 # fi
8567 # orig_target_* = aros built crosstools
8568 # orig_target_cc = elf cc wrapper around crosstools cc
8569 # else
8570 # VALIDATE(${kernel_tools_prefix}*)
8572 # orig_target_* = aros_kernel_*
8573 # if aros_kernel_cc is an AROS gcc
8574 # orig_target_cc = aros_kernel_cc
8575 # else
8576 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8577 # fi
8578 # fi
8580 target_tool_prefix="${target_cpu}-aros-"
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8583 $as_echo_n "checking which kernel tools... " >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8585 $as_echo "$kernel_tool_prefix" >&6; };
8587 if test "$kernel_tool_prefix" = "none" ; then
8588 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8589 as_fn_error $? "--with-kernel-tool-prefix= is required for this arch" "$LINENO" 5
8591 else
8592 # Kernel tools required - find them
8593 # Note that 'normally', aros_kernel_* overrides will
8594 # empty, unless specified in the per-arch sections above.
8596 if test "$aros_kernel_cpp" = ""; then
8597 if test "$cross_compiling" = "yes" ; then
8598 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8599 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 case $aros_kernel_cpp in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8617 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8621 done
8622 done
8623 IFS=$as_save_IFS
8626 esac
8628 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8629 if test -n "$aros_kernel_cpp"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8631 $as_echo "$aros_kernel_cpp" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8638 else
8639 if test "$GCC" = "yes"; then
8640 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8641 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8642 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 case $aros_kernel_cpp in
8649 [\\/]* | ?:[\\/]*)
8650 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in `dirname $aros_gcc_cpp`
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8664 done
8665 done
8666 IFS=$as_save_IFS
8669 esac
8671 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8672 if test -n "$aros_kernel_cpp"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8674 $as_echo "$aros_kernel_cpp" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8682 if test "$aros_kernel_cpp" = ""; then
8683 # Extract the first word of "cpp", so it can be a program name with args.
8684 set dummy cpp; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 case $aros_kernel_cpp in
8691 [\\/]* | ?:[\\/]*)
8692 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8702 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8706 done
8707 done
8708 IFS=$as_save_IFS
8711 esac
8713 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8714 if test -n "$aros_kernel_cpp"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8716 $as_echo "$aros_kernel_cpp" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8725 else
8726 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8727 set dummy $aros_kernel_cpp; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 case $aros_kernel_cpp in
8734 [\\/]* | ?:[\\/]*)
8735 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8749 done
8750 done
8751 IFS=$as_save_IFS
8754 esac
8756 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8757 if test -n "$aros_kernel_cpp"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8759 $as_echo "$aros_kernel_cpp" >&6; }
8760 else
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8768 if test "$aros_kernel_cpp" = ""; then
8769 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8771 if test "x$aros_kernel_cc" = "x"; then
8772 aros_kernel_cc=${kernel_tool_prefix}gcc
8775 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8776 if test "$cross_compiling" = "yes" ; then
8777 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8778 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 case $aros_kernel_cc in
8785 [\\/]* | ?:[\\/]*)
8786 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8800 done
8801 done
8802 IFS=$as_save_IFS
8805 esac
8807 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8808 if test -n "$aros_kernel_cc"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8810 $as_echo "$aros_kernel_cc" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8817 else
8818 if test "$GCC" = "yes"; then
8819 aros_gcc_cc=`$CC -print-prog-name=cc`
8820 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8821 set dummy `basename $aros_gcc_cc`; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 case $aros_kernel_cc in
8828 [\\/]* | ?:[\\/]*)
8829 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in `dirname $aros_gcc_cc`
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8843 done
8844 done
8845 IFS=$as_save_IFS
8848 esac
8850 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8851 if test -n "$aros_kernel_cc"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8853 $as_echo "$aros_kernel_cc" >&6; }
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8861 if test "$aros_kernel_cc" = ""; then
8862 # Extract the first word of "cc", so it can be a program name with args.
8863 set dummy cc; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 case $aros_kernel_cc in
8870 [\\/]* | ?:[\\/]*)
8871 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8881 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 break 2
8885 done
8886 done
8887 IFS=$as_save_IFS
8890 esac
8892 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8893 if test -n "$aros_kernel_cc"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8895 $as_echo "$aros_kernel_cc" >&6; }
8896 else
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8904 else
8905 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8906 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 $as_echo_n "checking for $ac_word... " >&6; }
8909 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 case $aros_kernel_cc in
8913 [\\/]* | ?:[\\/]*)
8914 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8924 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8928 done
8929 done
8930 IFS=$as_save_IFS
8933 esac
8935 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8936 if test -n "$aros_kernel_cc"; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8938 $as_echo "$aros_kernel_cc" >&6; }
8939 else
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8947 if test "$aros_kernel_cc" = ""; then
8948 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8950 if test "x$aros_kernel_cxx" = "x"; then
8951 aros_kernel_cxx=${kernel_tool_prefix}g++
8954 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8955 if test "$cross_compiling" = "yes" ; then
8956 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8957 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959 $as_echo_n "checking for $ac_word... " >&6; }
8960 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 case $aros_kernel_cxx in
8964 [\\/]* | ?:[\\/]*)
8965 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8984 esac
8986 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8987 if test -n "$aros_kernel_cxx"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8989 $as_echo "$aros_kernel_cxx" >&6; }
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8996 else
8997 if test "$GCC" = "yes"; then
8998 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8999 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9000 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 case $aros_kernel_cxx in
9007 [\\/]* | ?:[\\/]*)
9008 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in `dirname $aros_gcc_cxx`
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9018 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 break 2
9022 done
9023 done
9024 IFS=$as_save_IFS
9027 esac
9029 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9030 if test -n "$aros_kernel_cxx"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9032 $as_echo "$aros_kernel_cxx" >&6; }
9033 else
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9040 if test "$aros_kernel_cxx" = ""; then
9041 # Extract the first word of "cxx", so it can be a program name with args.
9042 set dummy cxx; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 case $aros_kernel_cxx in
9049 [\\/]* | ?:[\\/]*)
9050 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9066 IFS=$as_save_IFS
9069 esac
9071 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9072 if test -n "$aros_kernel_cxx"; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9074 $as_echo "$aros_kernel_cxx" >&6; }
9075 else
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9083 else
9084 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9085 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 case $aros_kernel_cxx in
9092 [\\/]* | ?:[\\/]*)
9093 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9107 done
9108 done
9109 IFS=$as_save_IFS
9112 esac
9114 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9115 if test -n "$aros_kernel_cxx"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9117 $as_echo "$aros_kernel_cxx" >&6; }
9118 else
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9126 # If it's set, make sure it's really there
9127 if test "x$aros_kernel_cxx" != "x" ; then
9128 if test "$aros_kernel_cxx" = ""; then
9129 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9133 if test "$aros_kernel_ld" = ""; then
9134 if test "$cross_compiling" = "yes" ; then
9135 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9136 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 case $aros_kernel_ld in
9143 [\\/]* | ?:[\\/]*)
9144 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156 break 2
9158 done
9159 done
9160 IFS=$as_save_IFS
9163 esac
9165 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9166 if test -n "$aros_kernel_ld"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9168 $as_echo "$aros_kernel_ld" >&6; }
9169 else
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9175 else
9176 if test "$GCC" = "yes"; then
9177 aros_gcc_ld=`$CC -print-prog-name=ld`
9178 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9179 set dummy `basename $aros_gcc_ld`; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 case $aros_kernel_ld in
9186 [\\/]* | ?:[\\/]*)
9187 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in `dirname $aros_gcc_ld`
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9201 done
9202 done
9203 IFS=$as_save_IFS
9206 esac
9208 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9209 if test -n "$aros_kernel_ld"; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9211 $as_echo "$aros_kernel_ld" >&6; }
9212 else
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9219 if test "$aros_kernel_ld" = ""; then
9220 # Extract the first word of "ld", so it can be a program name with args.
9221 set dummy ld; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 case $aros_kernel_ld in
9228 [\\/]* | ?:[\\/]*)
9229 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 for as_dir in $PATH
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 break 2
9243 done
9244 done
9245 IFS=$as_save_IFS
9248 esac
9250 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9251 if test -n "$aros_kernel_ld"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9253 $as_echo "$aros_kernel_ld" >&6; }
9254 else
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9262 else
9263 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9264 set dummy $aros_kernel_ld; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 case $aros_kernel_ld in
9271 [\\/]* | ?:[\\/]*)
9272 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 for as_dir in $PATH
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 break 2
9286 done
9287 done
9288 IFS=$as_save_IFS
9291 esac
9293 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9294 if test -n "$aros_kernel_ld"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9296 $as_echo "$aros_kernel_ld" >&6; }
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9305 if test "$aros_kernel_ld" = ""; then
9306 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9309 if test "$aros_kernel_as" = ""; then
9310 if test "$cross_compiling" = "yes" ; then
9311 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9312 set dummy ${kernel_tool_prefix}as; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if ${ac_cv_path_aros_kernel_as+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 case $aros_kernel_as in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9339 esac
9341 aros_kernel_as=$ac_cv_path_aros_kernel_as
9342 if test -n "$aros_kernel_as"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9344 $as_echo "$aros_kernel_as" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9351 else
9352 if test "$GCC" = "yes"; then
9353 aros_gcc_as=`$CC -print-prog-name=as`
9354 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9355 set dummy `basename $aros_gcc_as`; ac_word=$2
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 $as_echo_n "checking for $ac_word... " >&6; }
9358 if ${ac_cv_path_aros_kernel_as+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 case $aros_kernel_as in
9362 [\\/]* | ?:[\\/]*)
9363 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367 for as_dir in `dirname $aros_gcc_as`
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9375 break 2
9377 done
9378 done
9379 IFS=$as_save_IFS
9382 esac
9384 aros_kernel_as=$ac_cv_path_aros_kernel_as
9385 if test -n "$aros_kernel_as"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9387 $as_echo "$aros_kernel_as" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9395 if test "$aros_kernel_as" = ""; then
9396 # Extract the first word of "as", so it can be a program name with args.
9397 set dummy as; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_aros_kernel_as+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 case $aros_kernel_as in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9424 esac
9426 aros_kernel_as=$ac_cv_path_aros_kernel_as
9427 if test -n "$aros_kernel_as"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9429 $as_echo "$aros_kernel_as" >&6; }
9430 else
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9438 else
9439 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9440 set dummy $aros_kernel_as; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if ${ac_cv_path_aros_kernel_as+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 case $aros_kernel_as in
9447 [\\/]* | ?:[\\/]*)
9448 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9462 done
9463 done
9464 IFS=$as_save_IFS
9467 esac
9469 aros_kernel_as=$ac_cv_path_aros_kernel_as
9470 if test -n "$aros_kernel_as"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9472 $as_echo "$aros_kernel_as" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9481 if test "$aros_kernel_as" = ""; then
9482 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9485 if test "$aros_kernel_ar" = ""; then
9486 if test "$cross_compiling" = "yes" ; then
9487 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9488 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 case $aros_kernel_ar in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9512 IFS=$as_save_IFS
9515 esac
9517 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9518 if test -n "$aros_kernel_ar"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9520 $as_echo "$aros_kernel_ar" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9527 else
9528 if test "$GCC" = "yes"; then
9529 aros_gcc_ar=`$CC -print-prog-name=ar`
9530 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9531 set dummy `basename $aros_gcc_ar`; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 case $aros_kernel_ar in
9538 [\\/]* | ?:[\\/]*)
9539 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 for as_dir in `dirname $aros_gcc_ar`
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9549 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9553 done
9554 done
9555 IFS=$as_save_IFS
9558 esac
9560 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9561 if test -n "$aros_kernel_ar"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9563 $as_echo "$aros_kernel_ar" >&6; }
9564 else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9571 if test "$aros_kernel_ar" = ""; then
9572 # Extract the first word of "ar", so it can be a program name with args.
9573 set dummy ar; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 case $aros_kernel_ar in
9580 [\\/]* | ?:[\\/]*)
9581 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9595 done
9596 done
9597 IFS=$as_save_IFS
9600 esac
9602 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9603 if test -n "$aros_kernel_ar"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9605 $as_echo "$aros_kernel_ar" >&6; }
9606 else
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9614 else
9615 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9616 set dummy $aros_kernel_ar; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 case $aros_kernel_ar in
9623 [\\/]* | ?:[\\/]*)
9624 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in $PATH
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9634 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2
9638 done
9639 done
9640 IFS=$as_save_IFS
9643 esac
9645 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9646 if test -n "$aros_kernel_ar"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9648 $as_echo "$aros_kernel_ar" >&6; }
9649 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9657 if test "$aros_kernel_ar" = ""; then
9658 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9661 if test "$aros_kernel_ranlib" = ""; then
9662 if test "$cross_compiling" = "yes" ; then
9663 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9664 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 case $aros_kernel_ranlib in
9671 [\\/]* | ?:[\\/]*)
9672 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 for as_dir in $PATH
9678 IFS=$as_save_IFS
9679 test -z "$as_dir" && as_dir=.
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9682 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 break 2
9686 done
9687 done
9688 IFS=$as_save_IFS
9691 esac
9693 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9694 if test -n "$aros_kernel_ranlib"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9696 $as_echo "$aros_kernel_ranlib" >&6; }
9697 else
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9703 else
9704 if test "$GCC" = "yes"; then
9705 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9706 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9707 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9709 $as_echo_n "checking for $ac_word... " >&6; }
9710 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 case $aros_kernel_ranlib in
9714 [\\/]* | ?:[\\/]*)
9715 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in `dirname $aros_gcc_ranlib`
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9725 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9729 done
9730 done
9731 IFS=$as_save_IFS
9734 esac
9736 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9737 if test -n "$aros_kernel_ranlib"; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9739 $as_echo "$aros_kernel_ranlib" >&6; }
9740 else
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 $as_echo "no" >&6; }
9747 if test "$aros_kernel_ranlib" = ""; then
9748 # Extract the first word of "ranlib", so it can be a program name with args.
9749 set dummy ranlib; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 case $aros_kernel_ranlib in
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9776 esac
9778 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9779 if test -n "$aros_kernel_ranlib"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9781 $as_echo "$aros_kernel_ranlib" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9790 else
9791 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9792 set dummy $aros_kernel_ranlib; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 case $aros_kernel_ranlib in
9799 [\\/]* | ?:[\\/]*)
9800 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9814 done
9815 done
9816 IFS=$as_save_IFS
9819 esac
9821 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9822 if test -n "$aros_kernel_ranlib"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9824 $as_echo "$aros_kernel_ranlib" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9833 if test "$aros_kernel_ranlib" = ""; then
9834 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9837 if test "$aros_kernel_nm" = ""; then
9838 if test "$cross_compiling" = "yes" ; then
9839 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9840 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842 $as_echo_n "checking for $ac_word... " >&6; }
9843 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 case $aros_kernel_nm in
9847 [\\/]* | ?:[\\/]*)
9848 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9862 done
9863 done
9864 IFS=$as_save_IFS
9867 esac
9869 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9870 if test -n "$aros_kernel_nm"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9872 $as_echo "$aros_kernel_nm" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9879 else
9880 if test "$GCC" = "yes"; then
9881 aros_gcc_nm=`$CC -print-prog-name=nm`
9882 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9883 set dummy `basename $aros_gcc_nm`; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 case $aros_kernel_nm in
9890 [\\/]* | ?:[\\/]*)
9891 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in `dirname $aros_gcc_nm`
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9905 done
9906 done
9907 IFS=$as_save_IFS
9910 esac
9912 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9913 if test -n "$aros_kernel_nm"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9915 $as_echo "$aros_kernel_nm" >&6; }
9916 else
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9923 if test "$aros_kernel_nm" = ""; then
9924 # Extract the first word of "nm", so it can be a program name with args.
9925 set dummy nm; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 case $aros_kernel_nm in
9932 [\\/]* | ?:[\\/]*)
9933 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9947 done
9948 done
9949 IFS=$as_save_IFS
9952 esac
9954 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9955 if test -n "$aros_kernel_nm"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9957 $as_echo "$aros_kernel_nm" >&6; }
9958 else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9966 else
9967 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9968 set dummy $aros_kernel_nm; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 case $aros_kernel_nm in
9975 [\\/]* | ?:[\\/]*)
9976 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9982 IFS=$as_save_IFS
9983 test -z "$as_dir" && as_dir=.
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 break 2
9990 done
9991 done
9992 IFS=$as_save_IFS
9995 esac
9997 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9998 if test -n "$aros_kernel_nm"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10000 $as_echo "$aros_kernel_nm" >&6; }
10001 else
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10009 if test "$aros_kernel_nm" = ""; then
10010 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10013 if test "$aros_kernel_strip" = ""; then
10014 if test "$cross_compiling" = "yes" ; then
10015 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10016 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 case $aros_kernel_strip in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10043 esac
10045 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10046 if test -n "$aros_kernel_strip"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10048 $as_echo "$aros_kernel_strip" >&6; }
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10055 else
10056 if test "$GCC" = "yes"; then
10057 aros_gcc_strip=`$CC -print-prog-name=strip`
10058 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10059 set dummy `basename $aros_gcc_strip`; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 case $aros_kernel_strip in
10066 [\\/]* | ?:[\\/]*)
10067 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in `dirname $aros_gcc_strip`
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10081 done
10082 done
10083 IFS=$as_save_IFS
10086 esac
10088 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10089 if test -n "$aros_kernel_strip"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10091 $as_echo "$aros_kernel_strip" >&6; }
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10099 if test "$aros_kernel_strip" = ""; then
10100 # Extract the first word of "strip", so it can be a program name with args.
10101 set dummy strip; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 case $aros_kernel_strip in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10123 done
10124 done
10125 IFS=$as_save_IFS
10128 esac
10130 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10131 if test -n "$aros_kernel_strip"; then
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10133 $as_echo "$aros_kernel_strip" >&6; }
10134 else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10136 $as_echo "no" >&6; }
10142 else
10143 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10144 set dummy $aros_kernel_strip; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 case $aros_kernel_strip in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10166 done
10167 done
10168 IFS=$as_save_IFS
10171 esac
10173 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10174 if test -n "$aros_kernel_strip"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10176 $as_echo "$aros_kernel_strip" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10185 if test "$aros_kernel_strip" = ""; then
10186 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10189 # Objcopy and objdump are not required for the kernel
10190 # toolchain on many architectures.
10191 # So we'll look for them, but not make them strictly required.
10193 if test "$aros_kernel_objcopy" = ""; then
10194 if test "$cross_compiling" = "yes" ; then
10195 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10196 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 case $aros_kernel_objcopy in
10203 [\\/]* | ?:[\\/]*)
10204 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10218 done
10219 done
10220 IFS=$as_save_IFS
10223 esac
10225 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10226 if test -n "$aros_kernel_objcopy"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10228 $as_echo "$aros_kernel_objcopy" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10235 else
10236 if test "$GCC" = "yes"; then
10237 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10238 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10239 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 case $aros_kernel_objcopy in
10246 [\\/]* | ?:[\\/]*)
10247 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in `dirname $aros_gcc_objcopy`
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10261 done
10262 done
10263 IFS=$as_save_IFS
10266 esac
10268 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10269 if test -n "$aros_kernel_objcopy"; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10271 $as_echo "$aros_kernel_objcopy" >&6; }
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10279 if test "$aros_kernel_objcopy" = ""; then
10280 # Extract the first word of "objcopy", so it can be a program name with args.
10281 set dummy objcopy; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 case $aros_kernel_objcopy in
10288 [\\/]* | ?:[\\/]*)
10289 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 break 2
10303 done
10304 done
10305 IFS=$as_save_IFS
10308 esac
10310 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10311 if test -n "$aros_kernel_objcopy"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10313 $as_echo "$aros_kernel_objcopy" >&6; }
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10322 else
10323 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10324 set dummy $aros_kernel_objcopy; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 case $aros_kernel_objcopy in
10331 [\\/]* | ?:[\\/]*)
10332 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10346 done
10347 done
10348 IFS=$as_save_IFS
10351 esac
10353 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10354 if test -n "$aros_kernel_objcopy"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10356 $as_echo "$aros_kernel_objcopy" >&6; }
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10366 if test "$aros_kernel_objdump" = ""; then
10367 if test "$cross_compiling" = "yes" ; then
10368 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10369 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 case $aros_kernel_objdump in
10376 [\\/]* | ?:[\\/]*)
10377 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10396 esac
10398 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10399 if test -n "$aros_kernel_objdump"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10401 $as_echo "$aros_kernel_objdump" >&6; }
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10408 else
10409 if test "$GCC" = "yes"; then
10410 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10411 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10412 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 case $aros_kernel_objdump in
10419 [\\/]* | ?:[\\/]*)
10420 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in `dirname $aros_gcc_objdump`
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10430 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 break 2
10434 done
10435 done
10436 IFS=$as_save_IFS
10439 esac
10441 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10442 if test -n "$aros_kernel_objdump"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10444 $as_echo "$aros_kernel_objdump" >&6; }
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10452 if test "$aros_kernel_objdump" = ""; then
10453 # Extract the first word of "objdump", so it can be a program name with args.
10454 set dummy objdump; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 case $aros_kernel_objdump in
10461 [\\/]* | ?:[\\/]*)
10462 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10478 IFS=$as_save_IFS
10481 esac
10483 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10484 if test -n "$aros_kernel_objdump"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10486 $as_echo "$aros_kernel_objdump" >&6; }
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10495 else
10496 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10497 set dummy $aros_kernel_objdump; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 case $aros_kernel_objdump in
10504 [\\/]* | ?:[\\/]*)
10505 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10515 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10519 done
10520 done
10521 IFS=$as_save_IFS
10524 esac
10526 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10527 if test -n "$aros_kernel_objdump"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10529 $as_echo "$aros_kernel_objdump" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10538 if test "x${crosstools}" != "xyes" ; then
10539 if test "$aros_kernel_objcopy" = ""; then
10540 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10542 if test "$aros_kernel_objdump" = ""; then
10543 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10549 $as_echo_n "checking which target tools to use... " >&6; }
10550 if test "$crosstools" = "yes"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10552 $as_echo "$target_tool_prefix" >&6; }
10553 # We are are building AROS crosstools
10554 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10555 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10556 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10557 orig_target_cpp="${tmp_tool_prefix}cpp"
10558 orig_target_ld="${tmp_tool_prefix}ld"
10559 orig_target_as="${tmp_tool_prefix}as"
10560 orig_target_ar="${tmp_tool_prefix}ar"
10561 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10562 orig_target_nm="${tmp_tool_prefix}nm"
10563 orig_target_strip="${tmp_tool_prefix}strip"
10564 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10565 orig_target_objdump="${tmp_tool_prefix}objdump"
10566 else
10567 # Determine whether AROS or ELF tools should be used
10568 if test "$aros_tool_prefix" = "none"; then
10569 aros_tool_prefix="${elf_tool_prefix}"
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10573 $as_echo "$aros_tool_prefix" >&6; }
10574 # We are *not* building AROS crosstools - use the AROS or ELF tools
10576 if test "${aros_tool_prefix}cpp" = ""; then
10577 if test "$cross_compiling" = "yes" ; then
10578 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10579 set dummy ${target_tool_prefix}cpp; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_path_orig_target_cpp+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 case $orig_target_cpp in
10586 [\\/]* | ?:[\\/]*)
10587 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10601 done
10602 done
10603 IFS=$as_save_IFS
10606 esac
10608 orig_target_cpp=$ac_cv_path_orig_target_cpp
10609 if test -n "$orig_target_cpp"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10611 $as_echo "$orig_target_cpp" >&6; }
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10618 else
10619 if test "$GCC" = "yes"; then
10620 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10621 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10622 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_path_orig_target_cpp+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 case $orig_target_cpp in
10629 [\\/]* | ?:[\\/]*)
10630 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in `dirname $aros_gcc_cpp`
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10644 done
10645 done
10646 IFS=$as_save_IFS
10649 esac
10651 orig_target_cpp=$ac_cv_path_orig_target_cpp
10652 if test -n "$orig_target_cpp"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10654 $as_echo "$orig_target_cpp" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10662 if test "$orig_target_cpp" = ""; then
10663 # Extract the first word of "cpp", so it can be a program name with args.
10664 set dummy cpp; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_path_orig_target_cpp+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 case $orig_target_cpp in
10671 [\\/]* | ?:[\\/]*)
10672 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10686 done
10687 done
10688 IFS=$as_save_IFS
10691 esac
10693 orig_target_cpp=$ac_cv_path_orig_target_cpp
10694 if test -n "$orig_target_cpp"; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10696 $as_echo "$orig_target_cpp" >&6; }
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10705 else
10706 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10707 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_orig_target_cpp+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 case $orig_target_cpp in
10714 [\\/]* | ?:[\\/]*)
10715 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10729 done
10730 done
10731 IFS=$as_save_IFS
10734 esac
10736 orig_target_cpp=$ac_cv_path_orig_target_cpp
10737 if test -n "$orig_target_cpp"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10739 $as_echo "$orig_target_cpp" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10748 if test "$orig_target_cpp" = ""; then
10749 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10752 if test "${aros_tool_prefix}gcc" = ""; then
10753 if test "$cross_compiling" = "yes" ; then
10754 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10755 set dummy ${target_tool_prefix}gcc; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_path_orig_target_cc+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 case $orig_target_cc in
10762 [\\/]* | ?:[\\/]*)
10763 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10773 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10777 done
10778 done
10779 IFS=$as_save_IFS
10782 esac
10784 orig_target_cc=$ac_cv_path_orig_target_cc
10785 if test -n "$orig_target_cc"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10787 $as_echo "$orig_target_cc" >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10794 else
10795 if test "$GCC" = "yes"; then
10796 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10797 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10798 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800 $as_echo_n "checking for $ac_word... " >&6; }
10801 if ${ac_cv_path_orig_target_cc+:} false; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 case $orig_target_cc in
10805 [\\/]* | ?:[\\/]*)
10806 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in `dirname $aros_gcc_gcc`
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10820 done
10821 done
10822 IFS=$as_save_IFS
10825 esac
10827 orig_target_cc=$ac_cv_path_orig_target_cc
10828 if test -n "$orig_target_cc"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10830 $as_echo "$orig_target_cc" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10838 if test "$orig_target_cc" = ""; then
10839 # Extract the first word of "gcc", so it can be a program name with args.
10840 set dummy gcc; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if ${ac_cv_path_orig_target_cc+:} false; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 case $orig_target_cc in
10847 [\\/]* | ?:[\\/]*)
10848 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10862 done
10863 done
10864 IFS=$as_save_IFS
10867 esac
10869 orig_target_cc=$ac_cv_path_orig_target_cc
10870 if test -n "$orig_target_cc"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10872 $as_echo "$orig_target_cc" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10881 else
10882 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10883 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_orig_target_cc+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 case $orig_target_cc in
10890 [\\/]* | ?:[\\/]*)
10891 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10901 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10905 done
10906 done
10907 IFS=$as_save_IFS
10910 esac
10912 orig_target_cc=$ac_cv_path_orig_target_cc
10913 if test -n "$orig_target_cc"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10915 $as_echo "$orig_target_cc" >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10924 if test "$orig_target_cc" = ""; then
10925 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10927 if test "x$orig_target_cxx" != "x" ; then
10929 if test "${aros_tool_prefix}g++" = ""; then
10930 if test "$cross_compiling" = "yes" ; then
10931 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
10932 set dummy ${target_tool_prefix}g++; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if ${ac_cv_path_orig_target_cxx+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 case $orig_target_cxx in
10939 [\\/]* | ?:[\\/]*)
10940 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10954 done
10955 done
10956 IFS=$as_save_IFS
10959 esac
10961 orig_target_cxx=$ac_cv_path_orig_target_cxx
10962 if test -n "$orig_target_cxx"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
10964 $as_echo "$orig_target_cxx" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10971 else
10972 if test "$GCC" = "yes"; then
10973 aros_gcc_g++=`$CC -print-prog-name=g++`
10974 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
10975 set dummy `basename $aros_gcc_g++`; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_path_orig_target_cxx+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 case $orig_target_cxx in
10982 [\\/]* | ?:[\\/]*)
10983 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in `dirname $aros_gcc_g++`
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10993 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10997 done
10998 done
10999 IFS=$as_save_IFS
11002 esac
11004 orig_target_cxx=$ac_cv_path_orig_target_cxx
11005 if test -n "$orig_target_cxx"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11007 $as_echo "$orig_target_cxx" >&6; }
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11015 if test "$orig_target_cxx" = ""; then
11016 # Extract the first word of "g++", so it can be a program name with args.
11017 set dummy g++; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_path_orig_target_cxx+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 case $orig_target_cxx in
11024 [\\/]* | ?:[\\/]*)
11025 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11039 done
11040 done
11041 IFS=$as_save_IFS
11044 esac
11046 orig_target_cxx=$ac_cv_path_orig_target_cxx
11047 if test -n "$orig_target_cxx"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11049 $as_echo "$orig_target_cxx" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11058 else
11059 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11060 set dummy ${aros_tool_prefix}g++; ac_word=$2
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 $as_echo_n "checking for $ac_word... " >&6; }
11063 if ${ac_cv_path_orig_target_cxx+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 case $orig_target_cxx in
11067 [\\/]* | ?:[\\/]*)
11068 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11082 done
11083 done
11084 IFS=$as_save_IFS
11087 esac
11089 orig_target_cxx=$ac_cv_path_orig_target_cxx
11090 if test -n "$orig_target_cxx"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11092 $as_echo "$orig_target_cxx" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11101 if test "$orig_target_cxx" = ""; then
11102 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11106 if test "${aros_tool_prefix}ld" = ""; then
11107 if test "$cross_compiling" = "yes" ; then
11108 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11109 set dummy ${target_tool_prefix}gcc; ac_word=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if ${ac_cv_path_orig_target_ld+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 case $orig_target_ld in
11116 [\\/]* | ?:[\\/]*)
11117 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in $PATH
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11127 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11129 break 2
11131 done
11132 done
11133 IFS=$as_save_IFS
11136 esac
11138 orig_target_ld=$ac_cv_path_orig_target_ld
11139 if test -n "$orig_target_ld"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11141 $as_echo "$orig_target_ld" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11148 else
11149 if test "$GCC" = "yes"; then
11150 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11151 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11152 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_path_orig_target_ld+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 case $orig_target_ld in
11159 [\\/]* | ?:[\\/]*)
11160 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in `dirname $aros_gcc_gcc`
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11174 done
11175 done
11176 IFS=$as_save_IFS
11179 esac
11181 orig_target_ld=$ac_cv_path_orig_target_ld
11182 if test -n "$orig_target_ld"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11184 $as_echo "$orig_target_ld" >&6; }
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11192 if test "$orig_target_ld" = ""; then
11193 # Extract the first word of "gcc", so it can be a program name with args.
11194 set dummy gcc; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if ${ac_cv_path_orig_target_ld+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 case $orig_target_ld in
11201 [\\/]* | ?:[\\/]*)
11202 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11212 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11216 done
11217 done
11218 IFS=$as_save_IFS
11221 esac
11223 orig_target_ld=$ac_cv_path_orig_target_ld
11224 if test -n "$orig_target_ld"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11226 $as_echo "$orig_target_ld" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11235 else
11236 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11237 set dummy ${aros_tool_prefix}ld; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_path_orig_target_ld+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 case $orig_target_ld in
11244 [\\/]* | ?:[\\/]*)
11245 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11255 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 break 2
11259 done
11260 done
11261 IFS=$as_save_IFS
11264 esac
11266 orig_target_ld=$ac_cv_path_orig_target_ld
11267 if test -n "$orig_target_ld"; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11269 $as_echo "$orig_target_ld" >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11278 if test "$orig_target_ld" = ""; then
11279 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11282 if test "${aros_tool_prefix}as" = ""; then
11283 if test "$cross_compiling" = "yes" ; then
11284 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11285 set dummy ${target_tool_prefix}as; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if ${ac_cv_path_orig_target_as+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 case $orig_target_as in
11292 [\\/]* | ?:[\\/]*)
11293 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11303 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11307 done
11308 done
11309 IFS=$as_save_IFS
11312 esac
11314 orig_target_as=$ac_cv_path_orig_target_as
11315 if test -n "$orig_target_as"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11317 $as_echo "$orig_target_as" >&6; }
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11324 else
11325 if test "$GCC" = "yes"; then
11326 aros_gcc_as=`$CC -print-prog-name=as`
11327 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11328 set dummy `basename $aros_gcc_as`; ac_word=$2
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11330 $as_echo_n "checking for $ac_word... " >&6; }
11331 if ${ac_cv_path_orig_target_as+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 case $orig_target_as in
11335 [\\/]* | ?:[\\/]*)
11336 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in `dirname $aros_gcc_as`
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11346 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11350 done
11351 done
11352 IFS=$as_save_IFS
11355 esac
11357 orig_target_as=$ac_cv_path_orig_target_as
11358 if test -n "$orig_target_as"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11360 $as_echo "$orig_target_as" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11368 if test "$orig_target_as" = ""; then
11369 # Extract the first word of "as", so it can be a program name with args.
11370 set dummy as; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_path_orig_target_as+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 case $orig_target_as in
11377 [\\/]* | ?:[\\/]*)
11378 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11392 done
11393 done
11394 IFS=$as_save_IFS
11397 esac
11399 orig_target_as=$ac_cv_path_orig_target_as
11400 if test -n "$orig_target_as"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11402 $as_echo "$orig_target_as" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11411 else
11412 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11413 set dummy ${aros_tool_prefix}as; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if ${ac_cv_path_orig_target_as+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 case $orig_target_as in
11420 [\\/]* | ?:[\\/]*)
11421 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
11429 for ac_exec_ext in '' $ac_executable_extensions; do
11430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11431 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433 break 2
11435 done
11436 done
11437 IFS=$as_save_IFS
11440 esac
11442 orig_target_as=$ac_cv_path_orig_target_as
11443 if test -n "$orig_target_as"; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11445 $as_echo "$orig_target_as" >&6; }
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11454 if test "$orig_target_as" = ""; then
11455 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11458 if test "${aros_tool_prefix}ar" = ""; then
11459 if test "$cross_compiling" = "yes" ; then
11460 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11461 set dummy ${target_tool_prefix}ar; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_path_orig_target_ar+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 case $orig_target_ar in
11468 [\\/]* | ?:[\\/]*)
11469 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11483 done
11484 done
11485 IFS=$as_save_IFS
11488 esac
11490 orig_target_ar=$ac_cv_path_orig_target_ar
11491 if test -n "$orig_target_ar"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11493 $as_echo "$orig_target_ar" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11500 else
11501 if test "$GCC" = "yes"; then
11502 aros_gcc_ar=`$CC -print-prog-name=ar`
11503 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11504 set dummy `basename $aros_gcc_ar`; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_path_orig_target_ar+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 case $orig_target_ar in
11511 [\\/]* | ?:[\\/]*)
11512 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in `dirname $aros_gcc_ar`
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11526 done
11527 done
11528 IFS=$as_save_IFS
11531 esac
11533 orig_target_ar=$ac_cv_path_orig_target_ar
11534 if test -n "$orig_target_ar"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11536 $as_echo "$orig_target_ar" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11544 if test "$orig_target_ar" = ""; then
11545 # Extract the first word of "ar", so it can be a program name with args.
11546 set dummy ar; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_ar+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 case $orig_target_ar in
11553 [\\/]* | ?:[\\/]*)
11554 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11564 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11573 esac
11575 orig_target_ar=$ac_cv_path_orig_target_ar
11576 if test -n "$orig_target_ar"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11578 $as_echo "$orig_target_ar" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11587 else
11588 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11589 set dummy ${aros_tool_prefix}ar; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if ${ac_cv_path_orig_target_ar+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 case $orig_target_ar in
11596 [\\/]* | ?:[\\/]*)
11597 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11607 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11611 done
11612 done
11613 IFS=$as_save_IFS
11616 esac
11618 orig_target_ar=$ac_cv_path_orig_target_ar
11619 if test -n "$orig_target_ar"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11621 $as_echo "$orig_target_ar" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11630 if test "$orig_target_ar" = ""; then
11631 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11634 if test "${aros_tool_prefix}ranlib" = ""; then
11635 if test "$cross_compiling" = "yes" ; then
11636 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11637 set dummy ${target_tool_prefix}ar; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 case $orig_target_ranlib in
11644 [\\/]* | ?:[\\/]*)
11645 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11659 done
11660 done
11661 IFS=$as_save_IFS
11664 esac
11666 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11667 if test -n "$orig_target_ranlib"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11669 $as_echo "$orig_target_ranlib" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11676 else
11677 if test "$GCC" = "yes"; then
11678 aros_gcc_ar=`$CC -print-prog-name=ar`
11679 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11680 set dummy `basename $aros_gcc_ar`; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 case $orig_target_ranlib in
11687 [\\/]* | ?:[\\/]*)
11688 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in `dirname $aros_gcc_ar`
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11707 esac
11709 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11710 if test -n "$orig_target_ranlib"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11712 $as_echo "$orig_target_ranlib" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11720 if test "$orig_target_ranlib" = ""; then
11721 # Extract the first word of "ar", so it can be a program name with args.
11722 set dummy ar; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 case $orig_target_ranlib in
11729 [\\/]* | ?:[\\/]*)
11730 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11744 done
11745 done
11746 IFS=$as_save_IFS
11749 esac
11751 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11752 if test -n "$orig_target_ranlib"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11754 $as_echo "$orig_target_ranlib" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11763 else
11764 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11765 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 case $orig_target_ranlib in
11772 [\\/]* | ?:[\\/]*)
11773 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11787 done
11788 done
11789 IFS=$as_save_IFS
11792 esac
11794 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11795 if test -n "$orig_target_ranlib"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11797 $as_echo "$orig_target_ranlib" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11806 if test "$orig_target_ranlib" = ""; then
11807 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11810 if test "${aros_tool_prefix}nm" = ""; then
11811 if test "$cross_compiling" = "yes" ; then
11812 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11813 set dummy ${target_tool_prefix}nm; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_path_orig_target_nm+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 case $orig_target_nm in
11820 [\\/]* | ?:[\\/]*)
11821 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11831 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833 break 2
11835 done
11836 done
11837 IFS=$as_save_IFS
11840 esac
11842 orig_target_nm=$ac_cv_path_orig_target_nm
11843 if test -n "$orig_target_nm"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11845 $as_echo "$orig_target_nm" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11852 else
11853 if test "$GCC" = "yes"; then
11854 aros_gcc_nm=`$CC -print-prog-name=nm`
11855 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11856 set dummy `basename $aros_gcc_nm`; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_orig_target_nm+:} false; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 case $orig_target_nm in
11863 [\\/]* | ?:[\\/]*)
11864 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in `dirname $aros_gcc_nm`
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11878 done
11879 done
11880 IFS=$as_save_IFS
11883 esac
11885 orig_target_nm=$ac_cv_path_orig_target_nm
11886 if test -n "$orig_target_nm"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11888 $as_echo "$orig_target_nm" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11896 if test "$orig_target_nm" = ""; then
11897 # Extract the first word of "nm", so it can be a program name with args.
11898 set dummy nm; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if ${ac_cv_path_orig_target_nm+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 case $orig_target_nm in
11905 [\\/]* | ?:[\\/]*)
11906 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11920 done
11921 done
11922 IFS=$as_save_IFS
11925 esac
11927 orig_target_nm=$ac_cv_path_orig_target_nm
11928 if test -n "$orig_target_nm"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11930 $as_echo "$orig_target_nm" >&6; }
11931 else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11939 else
11940 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
11941 set dummy ${aros_tool_prefix}nm; ac_word=$2
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943 $as_echo_n "checking for $ac_word... " >&6; }
11944 if ${ac_cv_path_orig_target_nm+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 case $orig_target_nm in
11948 [\\/]* | ?:[\\/]*)
11949 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH
11955 IFS=$as_save_IFS
11956 test -z "$as_dir" && as_dir=.
11957 for ac_exec_ext in '' $ac_executable_extensions; do
11958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11959 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11961 break 2
11963 done
11964 done
11965 IFS=$as_save_IFS
11968 esac
11970 orig_target_nm=$ac_cv_path_orig_target_nm
11971 if test -n "$orig_target_nm"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11973 $as_echo "$orig_target_nm" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11982 if test "$orig_target_nm" = ""; then
11983 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
11986 if test "${aros_tool_prefix}strip" = ""; then
11987 if test "$cross_compiling" = "yes" ; then
11988 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
11989 set dummy ${target_tool_prefix}strip; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_path_orig_target_strip+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 case $orig_target_strip in
11996 [\\/]* | ?:[\\/]*)
11997 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12007 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12011 done
12012 done
12013 IFS=$as_save_IFS
12016 esac
12018 orig_target_strip=$ac_cv_path_orig_target_strip
12019 if test -n "$orig_target_strip"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12021 $as_echo "$orig_target_strip" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12028 else
12029 if test "$GCC" = "yes"; then
12030 aros_gcc_strip=`$CC -print-prog-name=strip`
12031 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12032 set dummy `basename $aros_gcc_strip`; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_path_orig_target_strip+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 case $orig_target_strip in
12039 [\\/]* | ?:[\\/]*)
12040 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in `dirname $aros_gcc_strip`
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12054 done
12055 done
12056 IFS=$as_save_IFS
12059 esac
12061 orig_target_strip=$ac_cv_path_orig_target_strip
12062 if test -n "$orig_target_strip"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12064 $as_echo "$orig_target_strip" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12072 if test "$orig_target_strip" = ""; then
12073 # Extract the first word of "strip", so it can be a program name with args.
12074 set dummy strip; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if ${ac_cv_path_orig_target_strip+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 case $orig_target_strip in
12081 [\\/]* | ?:[\\/]*)
12082 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in $PATH
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12092 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 break 2
12096 done
12097 done
12098 IFS=$as_save_IFS
12101 esac
12103 orig_target_strip=$ac_cv_path_orig_target_strip
12104 if test -n "$orig_target_strip"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12106 $as_echo "$orig_target_strip" >&6; }
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12115 else
12116 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12117 set dummy ${aros_tool_prefix}strip; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_path_orig_target_strip+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 case $orig_target_strip in
12124 [\\/]* | ?:[\\/]*)
12125 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12135 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12139 done
12140 done
12141 IFS=$as_save_IFS
12144 esac
12146 orig_target_strip=$ac_cv_path_orig_target_strip
12147 if test -n "$orig_target_strip"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12149 $as_echo "$orig_target_strip" >&6; }
12150 else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12158 if test "$orig_target_strip" = ""; then
12159 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12162 if test "${aros_tool_prefix}objcopy" = ""; then
12163 if test "$cross_compiling" = "yes" ; then
12164 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12165 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 case $orig_target_objcopy in
12172 [\\/]* | ?:[\\/]*)
12173 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12187 done
12188 done
12189 IFS=$as_save_IFS
12192 esac
12194 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12195 if test -n "$orig_target_objcopy"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12197 $as_echo "$orig_target_objcopy" >&6; }
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12204 else
12205 if test "$GCC" = "yes"; then
12206 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12207 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12208 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 case $orig_target_objcopy in
12215 [\\/]* | ?:[\\/]*)
12216 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in `dirname $aros_gcc_objcopy`
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12230 done
12231 done
12232 IFS=$as_save_IFS
12235 esac
12237 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12238 if test -n "$orig_target_objcopy"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12240 $as_echo "$orig_target_objcopy" >&6; }
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12248 if test "$orig_target_objcopy" = ""; then
12249 # Extract the first word of "objcopy", so it can be a program name with args.
12250 set dummy objcopy; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 case $orig_target_objcopy in
12257 [\\/]* | ?:[\\/]*)
12258 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12272 done
12273 done
12274 IFS=$as_save_IFS
12277 esac
12279 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12280 if test -n "$orig_target_objcopy"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12282 $as_echo "$orig_target_objcopy" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12291 else
12292 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12293 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 case $orig_target_objcopy in
12300 [\\/]* | ?:[\\/]*)
12301 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12307 IFS=$as_save_IFS
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12311 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313 break 2
12315 done
12316 done
12317 IFS=$as_save_IFS
12320 esac
12322 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12323 if test -n "$orig_target_objcopy"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12325 $as_echo "$orig_target_objcopy" >&6; }
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12334 if test "$orig_target_objcopy" = ""; then
12335 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12338 if test "${aros_tool_prefix}objdump" = ""; then
12339 if test "$cross_compiling" = "yes" ; then
12340 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12341 set dummy ${target_tool_prefix}objdump; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_path_orig_target_objdump+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 case $orig_target_objdump in
12348 [\\/]* | ?:[\\/]*)
12349 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12363 done
12364 done
12365 IFS=$as_save_IFS
12368 esac
12370 orig_target_objdump=$ac_cv_path_orig_target_objdump
12371 if test -n "$orig_target_objdump"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12373 $as_echo "$orig_target_objdump" >&6; }
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12380 else
12381 if test "$GCC" = "yes"; then
12382 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12383 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12384 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if ${ac_cv_path_orig_target_objdump+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 case $orig_target_objdump in
12391 [\\/]* | ?:[\\/]*)
12392 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396 for as_dir in `dirname $aros_gcc_objdump`
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12402 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 break 2
12406 done
12407 done
12408 IFS=$as_save_IFS
12411 esac
12413 orig_target_objdump=$ac_cv_path_orig_target_objdump
12414 if test -n "$orig_target_objdump"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12416 $as_echo "$orig_target_objdump" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12424 if test "$orig_target_objdump" = ""; then
12425 # Extract the first word of "objdump", so it can be a program name with args.
12426 set dummy objdump; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_path_orig_target_objdump+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 case $orig_target_objdump in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2
12448 done
12449 done
12450 IFS=$as_save_IFS
12453 esac
12455 orig_target_objdump=$ac_cv_path_orig_target_objdump
12456 if test -n "$orig_target_objdump"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12458 $as_echo "$orig_target_objdump" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12467 else
12468 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12469 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_path_orig_target_objdump+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 case $orig_target_objdump in
12476 [\\/]* | ?:[\\/]*)
12477 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12496 esac
12498 orig_target_objdump=$ac_cv_path_orig_target_objdump
12499 if test -n "$orig_target_objdump"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12501 $as_echo "$orig_target_objdump" >&6; }
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12510 if test "$orig_target_objdump" = ""; then
12511 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12515 if test "$kernel_tool_prefix" = "none" ; then
12516 # No kernel tools specified
12517 # Assume target tools == kernel tools with ELF wrapper
12518 aros_kernel_cc=$orig_target_cc
12519 aros_kernel_cxx=$orig_target_cxx
12520 aros_kernel_cpp=$orig_target_cpp
12521 aros_kernel_ld=$orig_target_ld
12522 aros_kernel_as=$orig_target_as
12523 aros_kernel_ar=$orig_target_ar
12524 aros_kernel_ranlib=$orig_target_ranlib
12525 aros_kernel_nm=$orig_target_nm
12526 aros_kernel_strip=$orig_target_strip
12527 aros_kernel_objcopy=$orig_target_objcopy
12528 aros_kernel_objdump=$orig_target_objdump
12529 use_kernel_cc_wrapper=yes
12532 # At this point, all aros_kernel_* and aros_target_*
12533 # tools should be set up correctly
12535 CC="$aros_kernel_cc $kernel_tool_flags"
12536 CPP="$aros_kernel_cpp"
12538 #-----------------------------------------------------------------------------
12540 # Disable pointer-signedness warnings if the compiler recognises the option
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12543 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12544 save_cflags="$CFLAGS"
12545 if test "$crosstools" != "yes" ; then
12546 CFLAGS="$CFLAGS -Wno-pointer-sign"
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12551 main ()
12555 return 0;
12557 _ACEOF
12558 if ac_fn_c_try_compile "$LINENO"; then :
12559 use_no_sign_warning="yes"
12560 else
12561 use_no_sign_warning="no"
12563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 else
12565 # we do know it is supported for the smallest version of gcc we are going to build
12566 # we assume it's also supported by later versions
12567 use_no_sign_warning=yes
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12570 $as_echo "$use_no_sign_warning" >&6; }
12571 if test "x-$use_no_sign_warning" = "x-yes" ; then
12572 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12574 CFLAGS="$save_cflags"
12576 #-----------------------------------------------------------------------------
12578 # Find all the tools we need to compile. This could be cross-compiling
12579 # though! If that is the case we use the GNU form of the target and
12580 # simply add this to the front of the binary name. This is rather simple,
12581 # but it should work under most circumstances.
12583 # The default tools are to use the same as the host, but only if the
12584 # host and target CPU are the same. With GCC this is normally enough.
12587 aros_cc_pre=""
12588 aros_shared_ld="$aros_host_ld"
12590 aros_target_mkdep="$aros_host_mkdep"
12592 # The default tools executables to be linked to.
12593 if test "$rescomp" != ""; then
12594 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12595 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 case $aros_kernel_rescomp in
12602 [\\/]* | ?:[\\/]*)
12603 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12617 done
12618 done
12619 IFS=$as_save_IFS
12622 esac
12624 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12625 if test -n "$aros_kernel_rescomp"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12627 $as_echo "$aros_kernel_rescomp" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12634 if test "$aros_kernel_rescomp" = ""; then
12635 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12639 # Set up the sources for the symlink farm
12640 if test "$crosstools" = "yes"; then
12641 crosstools_target=tools-crosstools
12642 else
12643 crosstools_cxx_target=tools-crosstools
12646 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12647 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12650 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12651 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12652 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12653 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12654 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12655 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12656 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12658 # aros_cc_pre is a variable that is added to the front of the compiler name
12659 # in the generated aros-gcc shell script. We need this to enable the cache
12660 # to work across cleaned builds. Also, support DISTCC using the correct
12661 # environment variable.
12664 if test "x${DISTCC}" != "x" ; then
12665 if test "x${CCACHE}" != "x" ; then
12666 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12667 else
12668 aros_cc_pre="${DISTCC} "
12670 else
12671 if test "x${CCACHE}" != "x" ; then
12672 aros_cc_pre="${CCACHE} "
12676 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12678 aros_target_nostdinc_cflags=-nostdinc
12680 aros_target_nostartup_ldflags=-nostartfiles
12682 aros_target_nix_ldflags=-nix
12684 aros_target_detach_ldflags=-detach
12686 aros_target_nostdlib_ldflags=-nostdlib
12689 # Target tools
12690 if test "$crosstools" != "yes"; then
12691 if test "$GCC" = "yes"; then
12692 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12694 else
12695 # We do not know which gcc version we are going to build and what we need to know
12696 # here is different for different versions so this will be set later during the
12697 # build of crosstools.
12698 aros_target_cc_path=@aros_target_cc_path@
12700 aros_target_cpp="${prefix}cpp"
12701 aros_target_cc="${prefix}gcc"
12702 aros_target_cxx="${prefix}g++"
12703 aros_target_as="${prefix}as"
12704 aros_target_ld="${prefix}ld"
12705 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12706 aros_target_objcopy="${prefix}objcopy"
12707 aros_target_objdump="${prefix}objdump"
12708 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12709 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12710 aros_target_strip="${prefix}strip"
12711 aros_plain_nm="${prefix}nm"
12712 aros_plain_ar="${prefix}ar"
12714 if test "$aros_kernel_includes" != "" ; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12716 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12717 if test "$aros_kernel_cc_includes" = "" ; then
12718 # Try to guess where the directory is.
12719 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12720 if test -d $aros_kernel_cc_includes; then
12721 # Check if there is also an include-fixed directory and add it
12722 # to kernel compiler's include path as it may contain some of
12723 # the headers we need.
12724 if test -d "$aros_kernel_cc_includes"-fixed; then
12725 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12727 # Check for specific includes directory. Neede for Ubuntu 11.10
12728 if test -d "/usr/include/i386-linux-gnu"; then
12729 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12731 else
12732 # The directory doesn't exist, we need to do some more work.
12733 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12735 # These are the headers we're looking for.
12736 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12737 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12738 zutil.h stdint.h"
12740 dirs=
12741 for h in $headers; do
12742 # Which other headers are needed by each of the above?
12743 deps=$(echo "#include <$h>" | \
12744 $aros_kernel_cc -E -M - 2>/dev/null | \
12745 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12747 # Copy all the needed headers to a directory beneath gendir.
12748 for d in $deps; do
12749 h=$(basename $d)
12750 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12751 sed -n "s,^.*/include\(/.*\),\1,p")
12752 ! test -d $dir && mkdir -p $dir
12753 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12754 done
12755 done
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12759 $as_echo "$aros_kernel_cc_includes" >&6; }
12760 # Adding -nostdinc to kernel includes as they are always used together.
12761 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12764 if test "$crosstools" != "yes"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12766 $as_echo_n "checking for the target compiler's include path... " >&6; }
12767 if test "$aros_target_cc_includes" = "" ; then
12768 #try to guess where the directory is
12769 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12770 if ! test -d $aros_target_cc_includes; then
12771 #the directory doesn't exist, we need to do some more work
12772 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12774 #these are the headers we're looking for
12775 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12776 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12777 zutil.h"
12779 dirs=
12780 for h in $headers; do
12781 #which other headers each of the above headers needs?
12782 deps=$(echo "#include <$h>" | \
12783 $orig_target_cc -E -M - 2>/dev/null | \
12784 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12786 #copy all the needed headers to a directory beneath gendir
12787 for d in $deps; do
12788 h=$(basename $d)
12789 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12790 sed -n "s,^.*/include\(/.*\),\1,p")
12791 ! test -d $dir && mkdir -p $dir
12792 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12793 done
12794 done
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12798 $as_echo "$aros_target_cc_includes" >&6; }
12799 else
12800 # We do not know which gcc version we are going to build and what we need to know
12801 # here is different for different versions so this will be set later during the
12802 # build of crosstools.
12803 aros_target_cc_includes=@aros_target_cc_includes@
12807 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12808 # On GCC >= 4.0 -iquote should be used
12811 save_cc="$CC"
12812 save_cflags="$CFLAGS"
12813 CFLAGS="-iquote."
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12815 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12816 if test "x-$crosstools" != "x-yes"; then
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12821 main ()
12825 return 0;
12827 _ACEOF
12828 if ac_fn_c_try_compile "$LINENO"; then :
12829 has_iquote="yes"
12830 else
12831 has_iquote="no"
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 else
12835 # we do know it is supported for the smallest version of gcc we are going to build
12836 # we assume it's also supported by later versions
12837 has_iquote=yes
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12840 $as_echo "$has_iquote" >&6; }
12841 if test "x-$has_iquote" = "x-yes" ; then
12842 host_cflags_iquote=-iquote
12843 host_cflags_iquote_end=
12844 else
12845 host_cflags_iquote=-I
12846 host_cflags_iquote_end=-I-
12848 kernel_cflags_iquote=$host_cflags_iquote
12849 kernel_cflags_iquote_end=$host_cflags_iquote_end
12850 if test "x-$cross_compiling" = "x-yes"; then
12851 CC="$aros_kernel_cc"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12853 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12854 if test "x-$crosstools" != "x-yes"; then
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12859 main ()
12863 return 0;
12865 _ACEOF
12866 if ac_fn_c_try_compile "$LINENO"; then :
12867 use_no_stack_protector="yes"
12868 else
12869 use_no_stack_protector="no"
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 else
12873 # we do know it is supported for the smallest version of gcc we are going to build
12874 # we assume it's also supported by later versions
12875 use_no_stack_protector=yes
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12878 $as_echo "$use_no_stack_protector" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12880 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12881 if test "x-$crosstools" != "x-yes"; then
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12886 main ()
12890 return 0;
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"; then :
12894 has_iquote="yes"
12895 else
12896 has_iquote="no"
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 else
12900 # we do know it is supported for the smallest version of gcc we are going to build
12901 # we assume it's also supported by later versions
12902 has_iquote=yes
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12905 $as_echo "$has_iquote" >&6; }
12906 if test "x-$has_iquote" = "x-yes" ; then
12907 kernel_cflags_iquote=-iquote
12908 kernel_cflags_iquote_end=
12909 else
12910 kernel_cflags_iquote=-I
12911 kernel_cflags_iquote_end=-I-
12914 aros_cflags_iquote=$kernel_cflags_iquote
12915 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12916 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12917 CC="$orig_target_cc"
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12919 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12920 if test "x-$crosstools" != "x-yes"; then
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12925 main ()
12929 return 0;
12931 _ACEOF
12932 if ac_fn_c_try_compile "$LINENO"; then :
12933 has_iquote="yes"
12934 else
12935 has_iquote="no"
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938 else
12939 # we do know it is supported for the smallest version of gcc we are going to build
12940 # we assume it's also supported by later versions
12941 has_iquote=yes
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12944 $as_echo "$has_iquote" >&6; }
12945 if test "x-$has_iquote" = "x-yes" ; then
12946 aros_cflags_iquote=-iquote
12947 aros_cflags_iquote_end=
12948 else
12949 aros_cflags_iquote=-I
12950 aros_cflags_iquote_end=-I-
12953 if test "x-$use_no_stack_protector" = "x-yes" ; then
12954 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
12958 #-----------------------------------------------------------------------------
12960 # Check if the target compiler supports some options used for delinting:
12961 # -Wunused-but-set-variable
12962 # -Warray-bounds
12963 # -Wenum-compare
12964 # -Wstrict-overflow
12965 # -Wformat-security
12967 if test "x-$crosstools" != "x-yes"; then
12968 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12969 CC="$orig_target_cc"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
12972 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
12973 CFLAGS=-Wunused-but-set-variable
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12978 main ()
12982 return 0;
12984 _ACEOF
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 aros_unused_but_set_variable="yes"
12987 else
12988 aros_unused_but_set_variable="no"
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
12992 $as_echo "$aros_unused_but_set_variable" >&6; }
12993 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
12994 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
12998 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
12999 CFLAGS=-Warray-bounds
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13004 main ()
13008 return 0;
13010 _ACEOF
13011 if ac_fn_c_try_compile "$LINENO"; then :
13012 aros_array_bounds="yes"
13013 else
13014 aros_array_bounds="no"
13016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13018 $as_echo "$aros_array_bounds" >&6; }
13019 if test "x-$aros_array_bounds" = "x-yes" ; then
13020 aros_cflags_array_bounds=-Wno-array-bounds
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13024 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13025 CFLAGS=-Wenum-compare
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13030 main ()
13034 return 0;
13036 _ACEOF
13037 if ac_fn_c_try_compile "$LINENO"; then :
13038 aros_enum_compare="yes"
13039 else
13040 aros_enum_compare="no"
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13044 $as_echo "$aros_enum_compare" >&6; }
13045 if test "x-$aros_enum_compare" = "x-yes" ; then
13046 aros_cflags_enum_compare=-Wno-enum-compare
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13050 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13051 CFLAGS=-Wstrict-overflow
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13056 main ()
13060 return 0;
13062 _ACEOF
13063 if ac_fn_c_try_compile "$LINENO"; then :
13064 aros_strict_overflow="yes"
13065 else
13066 aros_strict_overflow="no"
13068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13070 $as_echo "$aros_strict_overflow" >&6; }
13071 if test "x-$aros_strict_overflow" = "x-yes" ; then
13072 aros_cflags_strict_overflow=-Wno-strict-overflow
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13076 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13077 CFLAGS=-Wformat-security
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13082 main ()
13086 return 0;
13088 _ACEOF
13089 if ac_fn_c_try_compile "$LINENO"; then :
13090 aros_format_security="yes"
13091 else
13092 aros_format_security="no"
13094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13096 $as_echo "$aros_format_security" >&6; }
13097 if test "x-$aros_format_security" = "x-yes" ; then
13098 aros_cflags_format_security=-Wno-format-security
13100 else
13101 # We do not know which gcc version we are going to build and what we need to know
13102 # here is different for different versions so this will be set later during the
13103 # build of crosstools.
13104 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13105 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13106 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13107 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13108 aros_cflags_format_security=@aros_cflags_format_security@
13111 #-----------------------------------------------------------------------------
13113 # Check if we can explicitly choose older version of symbol hashing
13115 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13116 CC="$aros_kernel_cc"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13118 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13123 main ()
13127 return 0;
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 use_hash_style="yes"
13132 else
13133 use_hash_style="no"
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13138 $as_echo "$use_hash_style" >&6; }
13139 if test "x-$use_hash_style" = "x-yes" ; then
13140 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13142 CC="$save_cc"
13143 CFLAGS="$save_cflags"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13154 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13156 # Check whether --with-resolution was given.
13157 if test "${with_resolution+set}" = set; then :
13158 withval=$with_resolution; resolution=$withval
13159 else
13160 resolution=none
13163 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13164 if test "$resolution" = "yes" ; then
13165 resolution="none"
13167 if test "$resolution" = "no" ; then
13168 resolution="none"
13170 if test "$resolution" != "none" ; then
13171 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13172 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13173 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13176 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13177 aros_cv_default_wbwidth=$aros_default_wbwidth
13178 aros_cv_default_wbheight=$aros_default_wbheight
13179 aros_cv_default_wbdepth=$aros_default_wbdepth
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13182 $as_echo_n "checking if serial debug is enabled... " >&6; }
13184 # Check whether --with-serial-debug was given.
13185 if test "${with_serial_debug+set}" = set; then :
13186 withval=$with_serial_debug; serial_debug=$withval
13187 else
13188 serial_debug=none
13191 if test "$aros_serial_debug" = 0 ; then
13192 serial_debug_forced=""
13193 if test "$serial_debug" = "yes" ; then
13194 serial_debug="1"
13196 if test "$serial_debug" = "no" ; then
13197 serial_debug="none"
13199 else
13200 serial_debug_forced="(forced)"
13201 serial_debug=$aros_serial_debug
13203 if test "$serial_debug" != "none" ; then
13204 aros_serial_debug=$serial_debug
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13206 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13213 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13214 # Check whether --enable-palm_debug_hack was given.
13215 if test "${enable_palm_debug_hack+set}" = set; then :
13216 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13217 else
13218 palm_debug_hack="no"
13221 if test "$palm_debug_hack" = "yes" ; then
13222 aros_palm_debug_hack="1"
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13225 $as_echo "$palm_debug_hack" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13228 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13229 # Check whether --enable-nesting_supervisor was given.
13230 if test "${enable_nesting_supervisor+set}" = set; then :
13231 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13232 else
13233 nesting_supervisor="no"
13236 if test "$nesting_supervisor" = "yes" ; then
13237 aros_nesting_supervisor="1"
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13240 $as_echo "$nesting_supervisor" >&6; }
13242 if test "$aros_enable_mmu" = "" ; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13244 $as_echo_n "checking if MMU support is enabled... " >&6; }
13245 # Check whether --enable-mmu was given.
13246 if test "${enable_mmu+set}" = set; then :
13247 enableval=$enable_mmu; aros_enable_mmu=$enableval
13248 else
13249 aros_enable_mmu="yes"
13252 if test "$aros_enable_mmu" = "" ; then
13253 aros_enable_mmu="yes"
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13256 $as_echo "$aros_enable_mmu" >&6; }
13258 if test "$aros_enable_mmu" = "no" ; then
13259 aros_enable_mmu="0"
13260 else
13261 aros_enable_mmu="1"
13265 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13267 if test "x-$need_dlopen" != "x-no" ; then
13268 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13269 if test "x$ac_cv_func_dlopen" = xyes; then :
13270 have_dl="yes"
13271 else
13272 have_dl="no"
13275 if test "x-$have_dl" = "x-no" ; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13277 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13278 if ${ac_cv_lib_dl_dlopen+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-ldl $LIBS"
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 char dlopen ();
13294 main ()
13296 return dlopen ();
13298 return 0;
13300 _ACEOF
13301 if ac_fn_c_try_link "$LINENO"; then :
13302 ac_cv_lib_dl_dlopen=yes
13303 else
13304 ac_cv_lib_dl_dlopen=no
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext conftest.$ac_ext
13308 LIBS=$ac_check_lib_save_LIBS
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13312 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13313 have_dl="yes"
13314 aros_host_ldflags="$aros_host_ldflags -ldl"
13315 else
13316 have_dl="no"
13320 if test "x-$have_dl" = "x-no" ; then
13321 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13326 # Check whether --enable-x11_hidd was given.
13327 if test "${enable_x11_hidd+set}" = set; then :
13328 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13329 else
13330 x11_hidd="$need_x11"
13333 case "x-$x11_hidd" in
13334 x-yes|x-no|x-auto) ;;
13335 *) x11_hidd="$need_x11" ;;
13336 esac
13338 ENABLE_X11=0
13340 if test "x-$x11_hidd" != "x-no" ; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13343 $as_echo_n "checking for X... " >&6; }
13346 # Check whether --with-x was given.
13347 if test "${with_x+set}" = set; then :
13348 withval=$with_x;
13351 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13352 if test "x$with_x" = xno; then
13353 # The user explicitly disabled X.
13354 have_x=disabled
13355 else
13356 case $x_includes,$x_libraries in #(
13357 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
13358 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 # One or both of the vars are not set, and there is no cached value.
13362 ac_x_includes=no ac_x_libraries=no
13363 rm -f -r conftest.dir
13364 if mkdir conftest.dir; then
13365 cd conftest.dir
13366 cat >Imakefile <<'_ACEOF'
13367 incroot:
13368 @echo incroot='${INCROOT}'
13369 usrlibdir:
13370 @echo usrlibdir='${USRLIBDIR}'
13371 libdir:
13372 @echo libdir='${LIBDIR}'
13373 _ACEOF
13374 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13375 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13376 for ac_var in incroot usrlibdir libdir; do
13377 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13378 done
13379 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13380 for ac_extension in a so sl dylib la dll; do
13381 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13382 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13383 ac_im_usrlibdir=$ac_im_libdir; break
13385 done
13386 # Screen out bogus values from the imake configuration. They are
13387 # bogus both because they are the default anyway, and because
13388 # using them would break gcc on systems where it needs fixed includes.
13389 case $ac_im_incroot in
13390 /usr/include) ac_x_includes= ;;
13391 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13392 esac
13393 case $ac_im_usrlibdir in
13394 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13395 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13396 esac
13398 cd ..
13399 rm -f -r conftest.dir
13402 # Standard set of common directories for X headers.
13403 # Check X11 before X11Rn because it is often a symlink to the current release.
13404 ac_x_header_dirs='
13405 /usr/X11/include
13406 /usr/X11R7/include
13407 /usr/X11R6/include
13408 /usr/X11R5/include
13409 /usr/X11R4/include
13411 /usr/include/X11
13412 /usr/include/X11R7
13413 /usr/include/X11R6
13414 /usr/include/X11R5
13415 /usr/include/X11R4
13417 /usr/local/X11/include
13418 /usr/local/X11R7/include
13419 /usr/local/X11R6/include
13420 /usr/local/X11R5/include
13421 /usr/local/X11R4/include
13423 /usr/local/include/X11
13424 /usr/local/include/X11R7
13425 /usr/local/include/X11R6
13426 /usr/local/include/X11R5
13427 /usr/local/include/X11R4
13429 /usr/X386/include
13430 /usr/x386/include
13431 /usr/XFree86/include/X11
13433 /usr/include
13434 /usr/local/include
13435 /usr/unsupported/include
13436 /usr/athena/include
13437 /usr/local/x11r5/include
13438 /usr/lpp/Xamples/include
13440 /usr/openwin/include
13441 /usr/openwin/share/include'
13443 if test "$ac_x_includes" = no; then
13444 # Guess where to find include files, by looking for Xlib.h.
13445 # First, try using that file with no special directory specified.
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <X11/Xlib.h>
13449 _ACEOF
13450 if ac_fn_c_try_cpp "$LINENO"; then :
13451 # We can compile using X headers with no special include directory.
13452 ac_x_includes=
13453 else
13454 for ac_dir in $ac_x_header_dirs; do
13455 if test -r "$ac_dir/X11/Xlib.h"; then
13456 ac_x_includes=$ac_dir
13457 break
13459 done
13461 rm -f conftest.err conftest.i conftest.$ac_ext
13462 fi # $ac_x_includes = no
13464 if test "$ac_x_libraries" = no; then
13465 # Check for the libraries.
13466 # See if we find them without any special options.
13467 # Don't add to $LIBS permanently.
13468 ac_save_LIBS=$LIBS
13469 LIBS="-lX11 $LIBS"
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472 #include <X11/Xlib.h>
13474 main ()
13476 XrmInitialize ()
13478 return 0;
13480 _ACEOF
13481 if ac_fn_c_try_link "$LINENO"; then :
13482 LIBS=$ac_save_LIBS
13483 # We can link X programs with no special library path.
13484 ac_x_libraries=
13485 else
13486 LIBS=$ac_save_LIBS
13487 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13489 # Don't even attempt the hair of trying to link an X program!
13490 for ac_extension in a so sl dylib la dll; do
13491 if test -r "$ac_dir/libX11.$ac_extension"; then
13492 ac_x_libraries=$ac_dir
13493 break 2
13495 done
13496 done
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 fi # $ac_x_libraries = no
13502 case $ac_x_includes,$ac_x_libraries in #(
13503 no,* | *,no | *\'*)
13504 # Didn't find X, or a directory has "'" in its name.
13505 ac_cv_have_x="have_x=no";; #(
13507 # Record where we found X for the cache.
13508 ac_cv_have_x="have_x=yes\
13509 ac_x_includes='$ac_x_includes'\
13510 ac_x_libraries='$ac_x_libraries'"
13511 esac
13513 ;; #(
13514 *) have_x=yes;;
13515 esac
13516 eval "$ac_cv_have_x"
13517 fi # $with_x != no
13519 if test "$have_x" != yes; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13521 $as_echo "$have_x" >&6; }
13522 no_x=yes
13523 else
13524 # If each of the values was on the command line, it overrides each guess.
13525 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13526 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13527 # Update the cache value to reflect the command line values.
13528 ac_cv_have_x="have_x=yes\
13529 ac_x_includes='$x_includes'\
13530 ac_x_libraries='$x_libraries'"
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13532 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13536 x_cflags=
13537 for path in $x_libraries
13539 x_cflags="$x_cflags -L$path"
13540 done
13542 for path in $x_includes
13544 x_cflags="$x_cflags -I$path"
13545 done
13547 if test "x-$no_x" = "x-yes" ; then
13549 if test "x-$x11_hidd" != "x-auto" ; then
13550 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13553 else
13554 x11_hidd_target=kernel-x11gfx-kobj
13555 ENABLE_X11=1
13557 # Check whether --enable-x11_shm was given.
13558 if test "${enable_x11_shm+set}" = set; then :
13559 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13560 else
13561 x11_hidd_shm="auto"
13564 case "x-$x11_hidd_shm" in
13565 x-yes|x-no|x-auto) ;;
13566 *) x11_hidd_shm="auto" ;;
13567 esac
13569 have_xshm=no
13571 if test "x-$x11_hidd_shm" != "x-no" ; then
13573 for ac_header in sys/ipc.h
13574 do :
13575 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13576 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13577 cat >>confdefs.h <<_ACEOF
13578 #define HAVE_SYS_IPC_H 1
13579 _ACEOF
13583 done
13585 for ac_header in sys/shm.h
13586 do :
13587 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13588 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13589 cat >>confdefs.h <<_ACEOF
13590 #define HAVE_SYS_SHM_H 1
13591 _ACEOF
13595 done
13598 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13600 save_cflags="$CFLAGS"
13601 CFLAGS="$CFLAGS $x_cflags"
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13603 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13604 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 ac_check_lib_save_LIBS=$LIBS
13608 LIBS="-lXext $LIBS"
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13612 /* Override any GCC internal prototype to avoid an error.
13613 Use char because int might match the return type of a GCC
13614 builtin and then its argument prototype would still apply. */
13615 #ifdef __cplusplus
13616 extern "C"
13617 #endif
13618 char XShmQueryExtension ();
13620 main ()
13622 return XShmQueryExtension ();
13624 return 0;
13626 _ACEOF
13627 if ac_fn_c_try_link "$LINENO"; then :
13628 ac_cv_lib_Xext_XShmQueryExtension=yes
13629 else
13630 ac_cv_lib_Xext_XShmQueryExtension=no
13632 rm -f core conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634 LIBS=$ac_check_lib_save_LIBS
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13637 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13638 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13639 have_xshm=yes
13642 CFLAGS="$save_cflags"
13646 if test "x-$have_xshm" = "x-yes" ; then
13647 DO_XSHM_SUPPORT="1"
13648 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13649 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13650 else
13651 DO_XSHM_SUPPORT="0"
13655 # Check whether --enable-x11_vidmode was given.
13656 if test "${enable_x11_vidmode+set}" = set; then :
13657 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13658 else
13659 x11_hidd_vidmode="auto"
13662 case "x-$x11_hidd_vidmode" in
13663 x-yes|x-no|x-auto) ;;
13664 *) x11_hidd_vidmode="auto" ;;
13665 esac
13667 have_vidmode=no
13669 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13671 save_cflags="$CFLAGS"
13672 CFLAGS="$CFLAGS $x_cflags"
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13674 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13675 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 ac_check_lib_save_LIBS=$LIBS
13679 LIBS="-lXxf86vm $LIBS"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13683 /* Override any GCC internal prototype to avoid an error.
13684 Use char because int might match the return type of a GCC
13685 builtin and then its argument prototype would still apply. */
13686 #ifdef __cplusplus
13687 extern "C"
13688 #endif
13689 char XF86VidModeQueryExtension ();
13691 main ()
13693 return XF86VidModeQueryExtension ();
13695 return 0;
13697 _ACEOF
13698 if ac_fn_c_try_link "$LINENO"; then :
13699 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13700 else
13701 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13708 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13709 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13710 have_vidmode=yes
13713 CFLAGS="$save_cflags"
13716 if test "x-$have_vidmode" = "x-yes" ; then
13717 DO_VIDMODE_SUPPORT="1"
13718 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13719 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13720 else
13721 DO_VIDMODE_SUPPORT="0"
13725 aros_host_x11_includes=$x_includes
13726 aros_host_x11_libdirs=$x_libraries
13730 # Check whether --enable-sdl_hidd was given.
13731 if test "${enable_sdl_hidd+set}" = set; then :
13732 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13733 else
13734 sdl_hidd="auto"
13737 case "x-$sdl_hidd" in
13738 x-yes|x-no|x-auto) ;;
13739 *) sdl_hidd="auto" ;;
13740 esac
13742 if test "x-$sdl_hidd" != "x-no" ; then
13745 # Check whether --with-sdl-prefix was given.
13746 if test "${with_sdl_prefix+set}" = set; then :
13747 withval=$with_sdl_prefix; sdl_prefix="$withval"
13748 else
13749 sdl_prefix=""
13753 # Check whether --with-sdl-exec-prefix was given.
13754 if test "${with_sdl_exec_prefix+set}" = set; then :
13755 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13756 else
13757 sdl_exec_prefix=""
13760 # Check whether --enable-sdltest was given.
13761 if test "${enable_sdltest+set}" = set; then :
13762 enableval=$enable_sdltest;
13763 else
13764 enable_sdltest=yes
13768 if test x$sdl_exec_prefix != x ; then
13769 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
13770 if test x${SDL_CONFIG+set} != xset ; then
13771 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13774 if test x$sdl_prefix != x ; then
13775 sdl_args="$sdl_args --prefix=$sdl_prefix"
13776 if test x${SDL_CONFIG+set} != xset ; then
13777 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13781 if test "x$prefix" != xNONE; then
13782 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13784 # Extract the first word of "sdl-config", so it can be a program name with args.
13785 set dummy sdl-config; ac_word=$2
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13787 $as_echo_n "checking for $ac_word... " >&6; }
13788 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 case $SDL_CONFIG in
13792 [\\/]* | ?:[\\/]*)
13793 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13799 IFS=$as_save_IFS
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13803 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 break 2
13807 done
13808 done
13809 IFS=$as_save_IFS
13811 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13813 esac
13815 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13816 if test -n "$SDL_CONFIG"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13818 $as_echo "$SDL_CONFIG" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13825 min_sdl_version=1.2.10
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13827 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13828 no_sdl=""
13829 if test "$SDL_CONFIG" = "no" ; then
13830 no_sdl=yes
13831 else
13832 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
13833 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
13835 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
13836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13837 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
13838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13839 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13841 if test "x$enable_sdltest" = "xyes" ; then
13842 ac_save_CFLAGS="$CFLAGS"
13843 ac_save_CXXFLAGS="$CXXFLAGS"
13844 ac_save_LIBS="$LIBS"
13845 CFLAGS="$CFLAGS $SDL_CFLAGS"
13846 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13847 LIBS="$LIBS $SDL_LIBS"
13848 rm -f conf.sdltest
13849 if test "$cross_compiling" = yes; then :
13850 echo $ac_n "cross compiling; assumed OK... $ac_c"
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13855 #include <stdio.h>
13856 #include <stdlib.h>
13857 #include <string.h>
13858 #include "SDL.h"
13860 char*
13861 my_strdup (char *str)
13863 char *new_str;
13865 if (str)
13867 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13868 strcpy (new_str, str);
13870 else
13871 new_str = NULL;
13873 return new_str;
13876 int main (int argc, char *argv[])
13878 int major, minor, micro;
13879 char *tmp_version;
13881 /* This hangs on some systems (?)
13882 system ("touch conf.sdltest");
13884 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13886 /* HP/UX 9 (%@#!) writes to sscanf strings */
13887 tmp_version = my_strdup("$min_sdl_version");
13888 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13889 printf("%s, bad version string\n", "$min_sdl_version");
13890 exit(1);
13893 if (($sdl_major_version > major) ||
13894 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13895 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13897 return 0;
13899 else
13901 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13902 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13903 printf("*** best to upgrade to the required version.\n");
13904 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13905 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13906 printf("*** config.cache before re-running configure\n");
13907 return 1;
13912 _ACEOF
13913 if ac_fn_c_try_run "$LINENO"; then :
13915 else
13916 no_sdl=yes
13918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13919 conftest.$ac_objext conftest.beam conftest.$ac_ext
13922 CFLAGS="$ac_save_CFLAGS"
13923 CXXFLAGS="$ac_save_CXXFLAGS"
13924 LIBS="$ac_save_LIBS"
13927 if test "x$no_sdl" = x ; then
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929 $as_echo "yes" >&6; }
13930 have_sdl="yes"
13931 else
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934 if test "$SDL_CONFIG" = "no" ; then
13935 echo "*** The sdl-config script installed by SDL could not be found"
13936 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13937 echo "*** your path, or set the SDL_CONFIG environment variable to the"
13938 echo "*** full path to sdl-config."
13939 else
13940 if test -f conf.sdltest ; then
13942 else
13943 echo "*** Could not run SDL test program, checking why..."
13944 CFLAGS="$CFLAGS $SDL_CFLAGS"
13945 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13946 LIBS="$LIBS $SDL_LIBS"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13950 #include <stdio.h>
13951 #include "SDL.h"
13953 int main(int argc, char *argv[])
13954 { return 0; }
13955 #undef main
13956 #define main K_and_R_C_main
13959 main ()
13961 return 0;
13963 return 0;
13965 _ACEOF
13966 if ac_fn_c_try_link "$LINENO"; then :
13967 echo "*** The test program compiled, but did not run. This usually means"
13968 echo "*** that the run-time linker is not finding SDL or finding the wrong"
13969 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13970 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13971 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13972 echo "*** is required on your system"
13973 echo "***"
13974 echo "*** If you have an old version installed, it is best to remove it, although"
13975 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13976 else
13977 echo "*** The test program failed to compile or link. See the file config.log for the"
13978 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13979 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13980 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 CFLAGS="$ac_save_CFLAGS"
13985 CXXFLAGS="$ac_save_CXXFLAGS"
13986 LIBS="$ac_save_LIBS"
13989 SDL_CFLAGS=""
13990 SDL_LIBS=""
13991 have_sdl="no"
13995 rm -f conf.sdltest
13998 if test "x-$have_sdl" != "x-yes" ; then
14000 if test "x-$sdl_hidd" != "x-auto" ; then
14001 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14004 else
14005 sdl_hidd_target=kernel-hidd-sdl
14006 aros_host_sdl_cflags=SDL_CFLAGS
14007 aros_host_sdl_libs=SDL_LIBS
14011 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14012 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14017 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14018 oss_library_target=workbench-libs-oss-unix
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14024 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14025 # Check whether --enable-dbus was given.
14026 if test "${enable_dbus+set}" = set; then :
14027 enableval=$enable_dbus; dbus="yes"
14028 else
14029 dbus="no"
14032 if test "$dbus" = "yes" ; then
14033 ENABLE_DBUS=1
14034 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14035 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14036 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14037 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14038 else
14039 ENABLE_DBUS=0
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14042 $as_echo "$dbus" >&6; }
14044 if test "$use_kernel_cc_wrapper" = "yes" ; then
14045 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14048 if test "${crosstools}" != "yes" ; then
14049 aros_target_toolchain=no
14050 else
14051 aros_target_toolchain=yes
14055 # Generic
14067 # Compatability with other Amiga-like operation systems
14070 # Host related
14098 # Target Related
14162 # Delinting target compiler flags
14169 # Graphics Related
14186 # Native version related
14189 # Palm native version related
14192 # Unix/Hosted version related
14195 # MMU related
14198 # Apple iOS related
14203 # Android related
14207 # DBUS related
14214 #X11 related
14217 # Debug related
14223 # Collect-aros stuff: "-ius" to ignore undefined symbols
14226 # C compiler related
14229 case "$aros_flavour" in
14230 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14231 aros_flavour="emulation" ;;
14232 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14233 aros_flavour="emulation" ;;
14234 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14235 aros_flavour="standalone";;
14236 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14237 aros_flavour="standalone";;
14238 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14239 aros_flavour="native" ;;
14240 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14241 aros_flavour="native" ;;
14242 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14243 aros_flavour="linklib" ;;
14244 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14245 aros_flavour="palmnative" ;;
14246 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14247 aros_flavour="mac68knative" ;;
14248 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14249 aros_flavour="ppcnative" ;;
14250 esac
14252 if test ! -d ${aros_inc_dir} ; then
14253 ${MKDIR} ${aros_inc_dir}
14255 if test ! -d ${aros_geninc_dir} ; then
14256 ${MKDIR} ${aros_geninc_dir}
14258 if test ! -d ${aros_hostcfg_dir} ; then
14259 ${MKDIR} ${aros_hostcfg_dir}
14261 if test ! -d ${aros_targetcfg_dir} ; then
14262 ${MKDIR} ${aros_targetcfg_dir}
14264 if test ! -d ${aros_tools_dir} ; then
14265 ${MKDIR} ${aros_tools_dir}
14267 if test ! -d ${aros_scripts_dir} ; then
14268 ${MKDIR} ${aros_scripts_dir}
14271 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14274 ac_config_commands="$ac_config_commands compiler_executable"
14276 ac_config_commands="$ac_config_commands genmf_executable"
14279 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"
14282 cat >confcache <<\_ACEOF
14283 # This file is a shell script that caches the results of configure
14284 # tests run on this system so they can be shared between configure
14285 # scripts and configure runs, see configure's option --config-cache.
14286 # It is not useful on other systems. If it contains results you don't
14287 # want to keep, you may remove or edit it.
14289 # config.status only pays attention to the cache file if you give it
14290 # the --recheck option to rerun configure.
14292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14294 # following values.
14296 _ACEOF
14298 # The following way of writing the cache mishandles newlines in values,
14299 # but we know of no workaround that is simple, portable, and efficient.
14300 # So, we kill variables containing newlines.
14301 # Ultrix sh set writes to stderr and can't be redirected directly,
14302 # and sets the high bit in the cache file unless we assign to the vars.
14304 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14305 eval ac_val=\$$ac_var
14306 case $ac_val in #(
14307 *${as_nl}*)
14308 case $ac_var in #(
14309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14311 esac
14312 case $ac_var in #(
14313 _ | IFS | as_nl) ;; #(
14314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14315 *) { eval $ac_var=; unset $ac_var;} ;;
14316 esac ;;
14317 esac
14318 done
14320 (set) 2>&1 |
14321 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14322 *${as_nl}ac_space=\ *)
14323 # `set' does not quote correctly, so add quotes: double-quote
14324 # substitution turns \\\\ into \\, and sed turns \\ into \.
14325 sed -n \
14326 "s/'/'\\\\''/g;
14327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14328 ;; #(
14330 # `set' quotes correctly as required by POSIX, so do not add quotes.
14331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14333 esac |
14334 sort
14336 sed '
14337 /^ac_cv_env_/b end
14338 t clear
14339 :clear
14340 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14341 t end
14342 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14343 :end' >>confcache
14344 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14345 if test -w "$cache_file"; then
14346 if test "x$cache_file" != "x/dev/null"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14348 $as_echo "$as_me: updating cache $cache_file" >&6;}
14349 if test ! -f "$cache_file" || test -h "$cache_file"; then
14350 cat confcache >"$cache_file"
14351 else
14352 case $cache_file in #(
14353 */* | ?:*)
14354 mv -f confcache "$cache_file"$$ &&
14355 mv -f "$cache_file"$$ "$cache_file" ;; #(
14357 mv -f confcache "$cache_file" ;;
14358 esac
14361 else
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14363 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14366 rm -f confcache
14368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14369 # Let make expand exec_prefix.
14370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14372 DEFS=-DHAVE_CONFIG_H
14374 ac_libobjs=
14375 ac_ltlibobjs=
14377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14378 # 1. Remove the extension, and $U if already installed.
14379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14380 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14382 # will be set to the directory where LIBOBJS objects are built.
14383 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14384 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14385 done
14386 LIBOBJS=$ac_libobjs
14388 LTLIBOBJS=$ac_ltlibobjs
14392 : "${CONFIG_STATUS=./config.status}"
14393 ac_write_fail=0
14394 ac_clean_files_save=$ac_clean_files
14395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14397 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14398 as_write_fail=0
14399 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14400 #! $SHELL
14401 # Generated by $as_me.
14402 # Run this file to recreate the current configuration.
14403 # Compiler output produced by configure, useful for debugging
14404 # configure, is in config.log if it exists.
14406 debug=false
14407 ac_cs_recheck=false
14408 ac_cs_silent=false
14410 SHELL=\${CONFIG_SHELL-$SHELL}
14411 export SHELL
14412 _ASEOF
14413 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14414 ## -------------------- ##
14415 ## M4sh Initialization. ##
14416 ## -------------------- ##
14418 # Be more Bourne compatible
14419 DUALCASE=1; export DUALCASE # for MKS sh
14420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14421 emulate sh
14422 NULLCMD=:
14423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14424 # is contrary to our usage. Disable this feature.
14425 alias -g '${1+"$@"}'='"$@"'
14426 setopt NO_GLOB_SUBST
14427 else
14428 case `(set -o) 2>/dev/null` in #(
14429 *posix*) :
14430 set -o posix ;; #(
14431 *) :
14433 esac
14437 as_nl='
14439 export as_nl
14440 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14441 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14444 # Prefer a ksh shell builtin over an external printf program on Solaris,
14445 # but without wasting forks for bash or zsh.
14446 if test -z "$BASH_VERSION$ZSH_VERSION" \
14447 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14448 as_echo='print -r --'
14449 as_echo_n='print -rn --'
14450 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14451 as_echo='printf %s\n'
14452 as_echo_n='printf %s'
14453 else
14454 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14455 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14456 as_echo_n='/usr/ucb/echo -n'
14457 else
14458 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14459 as_echo_n_body='eval
14460 arg=$1;
14461 case $arg in #(
14462 *"$as_nl"*)
14463 expr "X$arg" : "X\\(.*\\)$as_nl";
14464 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14465 esac;
14466 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14468 export as_echo_n_body
14469 as_echo_n='sh -c $as_echo_n_body as_echo'
14471 export as_echo_body
14472 as_echo='sh -c $as_echo_body as_echo'
14475 # The user is always right.
14476 if test "${PATH_SEPARATOR+set}" != set; then
14477 PATH_SEPARATOR=:
14478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14480 PATH_SEPARATOR=';'
14485 # IFS
14486 # We need space, tab and new line, in precisely that order. Quoting is
14487 # there to prevent editors from complaining about space-tab.
14488 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14489 # splitting by setting IFS to empty value.)
14490 IFS=" "" $as_nl"
14492 # Find who we are. Look in the path if we contain no directory separator.
14493 as_myself=
14494 case $0 in #((
14495 *[\\/]* ) as_myself=$0 ;;
14496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497 for as_dir in $PATH
14499 IFS=$as_save_IFS
14500 test -z "$as_dir" && as_dir=.
14501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14502 done
14503 IFS=$as_save_IFS
14506 esac
14507 # We did not find ourselves, most probably we were run as `sh COMMAND'
14508 # in which case we are not to be found in the path.
14509 if test "x$as_myself" = x; then
14510 as_myself=$0
14512 if test ! -f "$as_myself"; then
14513 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14514 exit 1
14517 # Unset variables that we do not need and which cause bugs (e.g. in
14518 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14519 # suppresses any "Segmentation fault" message there. '((' could
14520 # trigger a bug in pdksh 5.2.14.
14521 for as_var in BASH_ENV ENV MAIL MAILPATH
14522 do eval test x\${$as_var+set} = xset \
14523 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14524 done
14525 PS1='$ '
14526 PS2='> '
14527 PS4='+ '
14529 # NLS nuisances.
14530 LC_ALL=C
14531 export LC_ALL
14532 LANGUAGE=C
14533 export LANGUAGE
14535 # CDPATH.
14536 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14539 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14540 # ----------------------------------------
14541 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14542 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14543 # script with STATUS, using 1 if that was 0.
14544 as_fn_error ()
14546 as_status=$1; test $as_status -eq 0 && as_status=1
14547 if test "$4"; then
14548 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14549 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14551 $as_echo "$as_me: error: $2" >&2
14552 as_fn_exit $as_status
14553 } # as_fn_error
14556 # as_fn_set_status STATUS
14557 # -----------------------
14558 # Set $? to STATUS, without forking.
14559 as_fn_set_status ()
14561 return $1
14562 } # as_fn_set_status
14564 # as_fn_exit STATUS
14565 # -----------------
14566 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14567 as_fn_exit ()
14569 set +e
14570 as_fn_set_status $1
14571 exit $1
14572 } # as_fn_exit
14574 # as_fn_unset VAR
14575 # ---------------
14576 # Portably unset VAR.
14577 as_fn_unset ()
14579 { eval $1=; unset $1;}
14581 as_unset=as_fn_unset
14582 # as_fn_append VAR VALUE
14583 # ----------------------
14584 # Append the text in VALUE to the end of the definition contained in VAR. Take
14585 # advantage of any shell optimizations that allow amortized linear growth over
14586 # repeated appends, instead of the typical quadratic growth present in naive
14587 # implementations.
14588 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14589 eval 'as_fn_append ()
14591 eval $1+=\$2
14593 else
14594 as_fn_append ()
14596 eval $1=\$$1\$2
14598 fi # as_fn_append
14600 # as_fn_arith ARG...
14601 # ------------------
14602 # Perform arithmetic evaluation on the ARGs, and store the result in the
14603 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14604 # must be portable across $(()) and expr.
14605 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14606 eval 'as_fn_arith ()
14608 as_val=$(( $* ))
14610 else
14611 as_fn_arith ()
14613 as_val=`expr "$@" || test $? -eq 1`
14615 fi # as_fn_arith
14618 if expr a : '\(a\)' >/dev/null 2>&1 &&
14619 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14620 as_expr=expr
14621 else
14622 as_expr=false
14625 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14626 as_basename=basename
14627 else
14628 as_basename=false
14631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14632 as_dirname=dirname
14633 else
14634 as_dirname=false
14637 as_me=`$as_basename -- "$0" ||
14638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14639 X"$0" : 'X\(//\)$' \| \
14640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14641 $as_echo X/"$0" |
14642 sed '/^.*\/\([^/][^/]*\)\/*$/{
14643 s//\1/
14646 /^X\/\(\/\/\)$/{
14647 s//\1/
14650 /^X\/\(\/\).*/{
14651 s//\1/
14654 s/.*/./; q'`
14656 # Avoid depending upon Character Ranges.
14657 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14658 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14659 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14660 as_cr_digits='0123456789'
14661 as_cr_alnum=$as_cr_Letters$as_cr_digits
14663 ECHO_C= ECHO_N= ECHO_T=
14664 case `echo -n x` in #(((((
14665 -n*)
14666 case `echo 'xy\c'` in
14667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14668 xy) ECHO_C='\c';;
14669 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14670 ECHO_T=' ';;
14671 esac;;
14673 ECHO_N='-n';;
14674 esac
14676 rm -f conf$$ conf$$.exe conf$$.file
14677 if test -d conf$$.dir; then
14678 rm -f conf$$.dir/conf$$.file
14679 else
14680 rm -f conf$$.dir
14681 mkdir conf$$.dir 2>/dev/null
14683 if (echo >conf$$.file) 2>/dev/null; then
14684 if ln -s conf$$.file conf$$ 2>/dev/null; then
14685 as_ln_s='ln -s'
14686 # ... but there are two gotchas:
14687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14689 # In both cases, we have to default to `cp -p'.
14690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14691 as_ln_s='cp -p'
14692 elif ln conf$$.file conf$$ 2>/dev/null; then
14693 as_ln_s=ln
14694 else
14695 as_ln_s='cp -p'
14697 else
14698 as_ln_s='cp -p'
14700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14701 rmdir conf$$.dir 2>/dev/null
14704 # as_fn_mkdir_p
14705 # -------------
14706 # Create "$as_dir" as a directory, including parents if necessary.
14707 as_fn_mkdir_p ()
14710 case $as_dir in #(
14711 -*) as_dir=./$as_dir;;
14712 esac
14713 test -d "$as_dir" || eval $as_mkdir_p || {
14714 as_dirs=
14715 while :; do
14716 case $as_dir in #(
14717 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14718 *) as_qdir=$as_dir;;
14719 esac
14720 as_dirs="'$as_qdir' $as_dirs"
14721 as_dir=`$as_dirname -- "$as_dir" ||
14722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14723 X"$as_dir" : 'X\(//\)[^/]' \| \
14724 X"$as_dir" : 'X\(//\)$' \| \
14725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14726 $as_echo X"$as_dir" |
14727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14728 s//\1/
14731 /^X\(\/\/\)[^/].*/{
14732 s//\1/
14735 /^X\(\/\/\)$/{
14736 s//\1/
14739 /^X\(\/\).*/{
14740 s//\1/
14743 s/.*/./; q'`
14744 test -d "$as_dir" && break
14745 done
14746 test -z "$as_dirs" || eval "mkdir $as_dirs"
14747 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14750 } # as_fn_mkdir_p
14751 if mkdir -p . 2>/dev/null; then
14752 as_mkdir_p='mkdir -p "$as_dir"'
14753 else
14754 test -d ./-p && rmdir ./-p
14755 as_mkdir_p=false
14758 if test -x / >/dev/null 2>&1; then
14759 as_test_x='test -x'
14760 else
14761 if ls -dL / >/dev/null 2>&1; then
14762 as_ls_L_option=L
14763 else
14764 as_ls_L_option=
14766 as_test_x='
14767 eval sh -c '\''
14768 if test -d "$1"; then
14769 test -d "$1/.";
14770 else
14771 case $1 in #(
14772 -*)set "./$1";;
14773 esac;
14774 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14775 ???[sx]*):;;*)false;;esac;fi
14776 '\'' sh
14779 as_executable_p=$as_test_x
14781 # Sed expression to map a string onto a valid CPP name.
14782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14784 # Sed expression to map a string onto a valid variable name.
14785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14788 exec 6>&1
14789 ## ----------------------------------- ##
14790 ## Main body of $CONFIG_STATUS script. ##
14791 ## ----------------------------------- ##
14792 _ASEOF
14793 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14796 # Save the log message, to keep $0 and so on meaningful, and to
14797 # report actual input values of CONFIG_FILES etc. instead of their
14798 # values after options handling.
14799 ac_log="
14800 This file was extended by $as_me, which was
14801 generated by GNU Autoconf 2.68. Invocation command line was
14803 CONFIG_FILES = $CONFIG_FILES
14804 CONFIG_HEADERS = $CONFIG_HEADERS
14805 CONFIG_LINKS = $CONFIG_LINKS
14806 CONFIG_COMMANDS = $CONFIG_COMMANDS
14807 $ $0 $@
14809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14812 _ACEOF
14814 case $ac_config_files in *"
14815 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14816 esac
14818 case $ac_config_headers in *"
14819 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14820 esac
14823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14824 # Files that config.status was made for.
14825 config_files="$ac_config_files"
14826 config_headers="$ac_config_headers"
14827 config_commands="$ac_config_commands"
14829 _ACEOF
14831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14832 ac_cs_usage="\
14833 \`$as_me' instantiates files and other configuration actions
14834 from templates according to the current configuration. Unless the files
14835 and actions are specified as TAGs, all are instantiated by default.
14837 Usage: $0 [OPTION]... [TAG]...
14839 -h, --help print this help, then exit
14840 -V, --version print version number and configuration settings, then exit
14841 --config print configuration, then exit
14842 -q, --quiet, --silent
14843 do not print progress messages
14844 -d, --debug don't remove temporary files
14845 --recheck update $as_me by reconfiguring in the same conditions
14846 --file=FILE[:TEMPLATE]
14847 instantiate the configuration file FILE
14848 --header=FILE[:TEMPLATE]
14849 instantiate the configuration header FILE
14851 Configuration files:
14852 $config_files
14854 Configuration headers:
14855 $config_headers
14857 Configuration commands:
14858 $config_commands
14860 Report bugs to the package provider."
14862 _ACEOF
14863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14864 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14865 ac_cs_version="\\
14866 config.status
14867 configured by $0, generated by GNU Autoconf 2.68,
14868 with options \\"\$ac_cs_config\\"
14870 Copyright (C) 2010 Free Software Foundation, Inc.
14871 This config.status script is free software; the Free Software Foundation
14872 gives unlimited permission to copy, distribute and modify it."
14874 ac_pwd='$ac_pwd'
14875 srcdir='$srcdir'
14876 test -n "\$AWK" || AWK=awk
14877 _ACEOF
14879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14880 # The default lists apply if the user does not specify any file.
14881 ac_need_defaults=:
14882 while test $# != 0
14884 case $1 in
14885 --*=?*)
14886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14888 ac_shift=:
14890 --*=)
14891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14892 ac_optarg=
14893 ac_shift=:
14896 ac_option=$1
14897 ac_optarg=$2
14898 ac_shift=shift
14900 esac
14902 case $ac_option in
14903 # Handling of the options.
14904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14905 ac_cs_recheck=: ;;
14906 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14907 $as_echo "$ac_cs_version"; exit ;;
14908 --config | --confi | --conf | --con | --co | --c )
14909 $as_echo "$ac_cs_config"; exit ;;
14910 --debug | --debu | --deb | --de | --d | -d )
14911 debug=: ;;
14912 --file | --fil | --fi | --f )
14913 $ac_shift
14914 case $ac_optarg in
14915 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14916 '') as_fn_error $? "missing file argument" ;;
14917 esac
14918 as_fn_append CONFIG_FILES " '$ac_optarg'"
14919 ac_need_defaults=false;;
14920 --header | --heade | --head | --hea )
14921 $ac_shift
14922 case $ac_optarg in
14923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14924 esac
14925 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14926 ac_need_defaults=false;;
14927 --he | --h)
14928 # Conflict between --help and --header
14929 as_fn_error $? "ambiguous option: \`$1'
14930 Try \`$0 --help' for more information.";;
14931 --help | --hel | -h )
14932 $as_echo "$ac_cs_usage"; exit ;;
14933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14934 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14935 ac_cs_silent=: ;;
14937 # This is an error.
14938 -*) as_fn_error $? "unrecognized option: \`$1'
14939 Try \`$0 --help' for more information." ;;
14941 *) as_fn_append ac_config_targets " $1"
14942 ac_need_defaults=false ;;
14944 esac
14945 shift
14946 done
14948 ac_configure_extra_args=
14950 if $ac_cs_silent; then
14951 exec 6>/dev/null
14952 ac_configure_extra_args="$ac_configure_extra_args --silent"
14955 _ACEOF
14956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14957 if \$ac_cs_recheck; then
14958 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14959 shift
14960 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14961 CONFIG_SHELL='$SHELL'
14962 export CONFIG_SHELL
14963 exec "\$@"
14966 _ACEOF
14967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14968 exec 5>>config.log
14970 echo
14971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14972 ## Running $as_me. ##
14973 _ASBOX
14974 $as_echo "$ac_log"
14975 } >&5
14977 _ACEOF
14978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980 # INIT-COMMANDS
14983 aros_host_exe_suffix=${aros_host_exe_suffix}
14984 aros_tools_dir=${aros_tools_dir}
14985 aros_target_cpu=${aros_target_cpu}
14986 aros_target_arch=${aros_target_arch}
14987 aros_target_suffix=${aros_target_suffix}
14988 orig_target_nm=${orig_target_nm}
14989 orig_target_as=${orig_target_as}
14990 orig_target_ar=${orig_target_ar}
14991 orig_target_ranlib=${orig_target_ranlib}
14992 orig_target_objdump=${orig_target_objdump}
14993 orig_target_objcopy=${orig_target_objcopy}
14994 orig_target_strip=${orig_target_strip}
14995 aros_kernel_ld=${aros_kernel_ld}
14998 aros_tools_dir=${aros_tools_dir}
15001 _ACEOF
15003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15005 # Handling of arguments.
15006 for ac_config_target in $ac_config_targets
15008 case $ac_config_target in
15009 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15010 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15011 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15013 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15014 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15015 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15016 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15017 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15018 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15019 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15020 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15021 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15022 "${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" ;;
15023 "${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" ;;
15024 "${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" ;;
15025 "${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" ;;
15026 "${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" ;;
15027 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15028 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15029 "${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" ;;
15031 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15032 esac
15033 done
15036 # If the user did not use the arguments to specify the items to instantiate,
15037 # then the envvar interface is used. Set only those that are not.
15038 # We use the long form for the default assignment because of an extremely
15039 # bizarre bug on SunOS 4.1.3.
15040 if $ac_need_defaults; then
15041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15046 # Have a temporary directory for convenience. Make it in the build tree
15047 # simply because there is no reason against having it here, and in addition,
15048 # creating and moving files from /tmp can sometimes cause problems.
15049 # Hook for its removal unless debugging.
15050 # Note that there is a small window in which the directory will not be cleaned:
15051 # after its creation but before its name has been assigned to `$tmp'.
15052 $debug ||
15054 tmp= ac_tmp=
15055 trap 'exit_status=$?
15056 : "${ac_tmp:=$tmp}"
15057 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15059 trap 'as_fn_exit 1' 1 2 13 15
15061 # Create a (secure) tmp directory for tmp files.
15064 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15065 test -d "$tmp"
15066 } ||
15068 tmp=./conf$$-$RANDOM
15069 (umask 077 && mkdir "$tmp")
15070 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15071 ac_tmp=$tmp
15073 # Set up the scripts for CONFIG_FILES section.
15074 # No need to generate them if there are no CONFIG_FILES.
15075 # This happens for instance with `./config.status config.h'.
15076 if test -n "$CONFIG_FILES"; then
15079 ac_cr=`echo X | tr X '\015'`
15080 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15081 # But we know of no other shell where ac_cr would be empty at this
15082 # point, so we can use a bashism as a fallback.
15083 if test "x$ac_cr" = x; then
15084 eval ac_cr=\$\'\\r\'
15086 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15087 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15088 ac_cs_awk_cr='\\r'
15089 else
15090 ac_cs_awk_cr=$ac_cr
15093 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15094 _ACEOF
15098 echo "cat >conf$$subs.awk <<_ACEOF" &&
15099 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15100 echo "_ACEOF"
15101 } >conf$$subs.sh ||
15102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15103 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15104 ac_delim='%!_!# '
15105 for ac_last_try in false false false false false :; do
15106 . ./conf$$subs.sh ||
15107 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15109 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15110 if test $ac_delim_n = $ac_delim_num; then
15111 break
15112 elif $ac_last_try; then
15113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15114 else
15115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15117 done
15118 rm -f conf$$subs.sh
15120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15122 _ACEOF
15123 sed -n '
15125 s/^/S["/; s/!.*/"]=/
15128 s/^[^!]*!//
15129 :repl
15130 t repl
15131 s/'"$ac_delim"'$//
15132 t delim
15135 s/\(.\{148\}\)..*/\1/
15136 t more1
15137 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15140 b repl
15141 :more1
15142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15145 s/.\{148\}//
15146 t nl
15147 :delim
15149 s/\(.\{148\}\)..*/\1/
15150 t more2
15151 s/["\\]/\\&/g; s/^/"/; s/$/"/
15154 :more2
15155 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15158 s/.\{148\}//
15159 t delim
15160 ' <conf$$subs.awk | sed '
15161 /^[^""]/{
15163 s/\n//
15165 ' >>$CONFIG_STATUS || ac_write_fail=1
15166 rm -f conf$$subs.awk
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 _ACAWK
15169 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15170 for (key in S) S_is_set[key] = 1
15171 FS = "\a"
15175 line = $ 0
15176 nfields = split(line, field, "@")
15177 substed = 0
15178 len = length(field[1])
15179 for (i = 2; i < nfields; i++) {
15180 key = field[i]
15181 keylen = length(key)
15182 if (S_is_set[key]) {
15183 value = S[key]
15184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15185 len += length(value) + length(field[++i])
15186 substed = 1
15187 } else
15188 len += 1 + keylen
15191 print line
15194 _ACAWK
15195 _ACEOF
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15198 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15199 else
15201 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15202 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15203 _ACEOF
15205 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15206 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15207 # trailing colons and then remove the whole line if VPATH becomes empty
15208 # (actually we leave an empty line to preserve line numbers).
15209 if test "x$srcdir" = x.; then
15210 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15212 s///
15213 s/^/:/
15214 s/[ ]*$/:/
15215 s/:\$(srcdir):/:/g
15216 s/:\${srcdir}:/:/g
15217 s/:@srcdir@:/:/g
15218 s/^:*//
15219 s/:*$//
15221 s/\(=[ ]*\).*/\1/
15223 s/\n//
15224 s/^[^=]*=[ ]*$//
15228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15229 fi # test -n "$CONFIG_FILES"
15231 # Set up the scripts for CONFIG_HEADERS section.
15232 # No need to generate them if there are no CONFIG_HEADERS.
15233 # This happens for instance with `./config.status Makefile'.
15234 if test -n "$CONFIG_HEADERS"; then
15235 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15236 BEGIN {
15237 _ACEOF
15239 # Transform confdefs.h into an awk script `defines.awk', embedded as
15240 # here-document in config.status, that substitutes the proper values into
15241 # config.h.in to produce config.h.
15243 # Create a delimiter string that does not exist in confdefs.h, to ease
15244 # handling of long lines.
15245 ac_delim='%!_!# '
15246 for ac_last_try in false false :; do
15247 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15248 if test -z "$ac_tt"; then
15249 break
15250 elif $ac_last_try; then
15251 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15252 else
15253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15255 done
15257 # For the awk script, D is an array of macro values keyed by name,
15258 # likewise P contains macro parameters if any. Preserve backslash
15259 # newline sequences.
15261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15262 sed -n '
15263 s/.\{148\}/&'"$ac_delim"'/g
15264 t rset
15265 :rset
15266 s/^[ ]*#[ ]*define[ ][ ]*/ /
15267 t def
15269 :def
15270 s/\\$//
15271 t bsnl
15272 s/["\\]/\\&/g
15273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15274 D["\1"]=" \3"/p
15275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15277 :bsnl
15278 s/["\\]/\\&/g
15279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15280 D["\1"]=" \3\\\\\\n"\\/p
15281 t cont
15282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15283 t cont
15285 :cont
15287 s/.\{148\}/&'"$ac_delim"'/g
15288 t clear
15289 :clear
15290 s/\\$//
15291 t bsnlc
15292 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15294 :bsnlc
15295 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15296 b cont
15297 ' <confdefs.h | sed '
15298 s/'"$ac_delim"'/"\\\
15299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15302 for (key in D) D_is_set[key] = 1
15303 FS = "\a"
15305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15306 line = \$ 0
15307 split(line, arg, " ")
15308 if (arg[1] == "#") {
15309 defundef = arg[2]
15310 mac1 = arg[3]
15311 } else {
15312 defundef = substr(arg[1], 2)
15313 mac1 = arg[2]
15315 split(mac1, mac2, "(") #)
15316 macro = mac2[1]
15317 prefix = substr(line, 1, index(line, defundef) - 1)
15318 if (D_is_set[macro]) {
15319 # Preserve the white space surrounding the "#".
15320 print prefix "define", macro P[macro] D[macro]
15321 next
15322 } else {
15323 # Replace #undef with comments. This is necessary, for example,
15324 # in the case of _POSIX_SOURCE, which is predefined and required
15325 # on some systems where configure will not decide to define it.
15326 if (defundef == "undef") {
15327 print "/*", prefix defundef, macro, "*/"
15328 next
15332 { print }
15333 _ACAWK
15334 _ACEOF
15335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15336 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15337 fi # test -n "$CONFIG_HEADERS"
15340 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15341 shift
15342 for ac_tag
15344 case $ac_tag in
15345 :[FHLC]) ac_mode=$ac_tag; continue;;
15346 esac
15347 case $ac_mode$ac_tag in
15348 :[FHL]*:*);;
15349 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
15350 :[FH]-) ac_tag=-:-;;
15351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15352 esac
15353 ac_save_IFS=$IFS
15354 IFS=:
15355 set x $ac_tag
15356 IFS=$ac_save_IFS
15357 shift
15358 ac_file=$1
15359 shift
15361 case $ac_mode in
15362 :L) ac_source=$1;;
15363 :[FH])
15364 ac_file_inputs=
15365 for ac_f
15367 case $ac_f in
15368 -) ac_f="$ac_tmp/stdin";;
15369 *) # Look for the file first in the build tree, then in the source tree
15370 # (if the path is not absolute). The absolute path cannot be DOS-style,
15371 # because $ac_f cannot contain `:'.
15372 test -f "$ac_f" ||
15373 case $ac_f in
15374 [\\/$]*) false;;
15375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15376 esac ||
15377 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
15378 esac
15379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15380 as_fn_append ac_file_inputs " '$ac_f'"
15381 done
15383 # Let's still pretend it is `configure' which instantiates (i.e., don't
15384 # use $as_me), people would be surprised to read:
15385 # /* config.h. Generated by config.status. */
15386 configure_input='Generated from '`
15387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15388 `' by configure.'
15389 if test x"$ac_file" != x-; then
15390 configure_input="$ac_file. $configure_input"
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15392 $as_echo "$as_me: creating $ac_file" >&6;}
15394 # Neutralize special characters interpreted by sed in replacement strings.
15395 case $configure_input in #(
15396 *\&* | *\|* | *\\* )
15397 ac_sed_conf_input=`$as_echo "$configure_input" |
15398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15399 *) ac_sed_conf_input=$configure_input;;
15400 esac
15402 case $ac_tag in
15403 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15405 esac
15407 esac
15409 ac_dir=`$as_dirname -- "$ac_file" ||
15410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15411 X"$ac_file" : 'X\(//\)[^/]' \| \
15412 X"$ac_file" : 'X\(//\)$' \| \
15413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15414 $as_echo X"$ac_file" |
15415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15416 s//\1/
15419 /^X\(\/\/\)[^/].*/{
15420 s//\1/
15423 /^X\(\/\/\)$/{
15424 s//\1/
15427 /^X\(\/\).*/{
15428 s//\1/
15431 s/.*/./; q'`
15432 as_dir="$ac_dir"; as_fn_mkdir_p
15433 ac_builddir=.
15435 case "$ac_dir" in
15436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15439 # A ".." for each directory in $ac_dir_suffix.
15440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15441 case $ac_top_builddir_sub in
15442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15444 esac ;;
15445 esac
15446 ac_abs_top_builddir=$ac_pwd
15447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15448 # for backward compatibility:
15449 ac_top_builddir=$ac_top_build_prefix
15451 case $srcdir in
15452 .) # We are building in place.
15453 ac_srcdir=.
15454 ac_top_srcdir=$ac_top_builddir_sub
15455 ac_abs_top_srcdir=$ac_pwd ;;
15456 [\\/]* | ?:[\\/]* ) # Absolute name.
15457 ac_srcdir=$srcdir$ac_dir_suffix;
15458 ac_top_srcdir=$srcdir
15459 ac_abs_top_srcdir=$srcdir ;;
15460 *) # Relative name.
15461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15462 ac_top_srcdir=$ac_top_build_prefix$srcdir
15463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15464 esac
15465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15468 case $ac_mode in
15471 # CONFIG_FILE
15474 _ACEOF
15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15477 # If the template does not know about datarootdir, expand it.
15478 # FIXME: This hack should be removed a few years after 2.60.
15479 ac_datarootdir_hack=; ac_datarootdir_seen=
15480 ac_sed_dataroot='
15481 /datarootdir/ {
15485 /@datadir@/p
15486 /@docdir@/p
15487 /@infodir@/p
15488 /@localedir@/p
15489 /@mandir@/p'
15490 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15491 *datarootdir*) ac_datarootdir_seen=yes;;
15492 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15494 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15495 _ACEOF
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497 ac_datarootdir_hack='
15498 s&@datadir@&$datadir&g
15499 s&@docdir@&$docdir&g
15500 s&@infodir@&$infodir&g
15501 s&@localedir@&$localedir&g
15502 s&@mandir@&$mandir&g
15503 s&\\\${datarootdir}&$datarootdir&g' ;;
15504 esac
15505 _ACEOF
15507 # Neutralize VPATH when `$srcdir' = `.'.
15508 # Shell code in configure.ac might set extrasub.
15509 # FIXME: do we really want to maintain this feature?
15510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15511 ac_sed_extra="$ac_vpsub
15512 $extrasub
15513 _ACEOF
15514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15517 s|@configure_input@|$ac_sed_conf_input|;t t
15518 s&@top_builddir@&$ac_top_builddir_sub&;t t
15519 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15520 s&@srcdir@&$ac_srcdir&;t t
15521 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15522 s&@top_srcdir@&$ac_top_srcdir&;t t
15523 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15524 s&@builddir@&$ac_builddir&;t t
15525 s&@abs_builddir@&$ac_abs_builddir&;t t
15526 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15527 $ac_datarootdir_hack
15529 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15535 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15537 which seems to be undefined. Please make sure it is defined" >&5
15538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15539 which seems to be undefined. Please make sure it is defined" >&2;}
15541 rm -f "$ac_tmp/stdin"
15542 case $ac_file in
15543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15545 esac \
15546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15550 # CONFIG_HEADER
15552 if test x"$ac_file" != x-; then
15554 $as_echo "/* $configure_input */" \
15555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15556 } >"$ac_tmp/config.h" \
15557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15561 else
15562 rm -f "$ac_file"
15563 mv "$ac_tmp/config.h" "$ac_file" \
15564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15566 else
15567 $as_echo "/* $configure_input */" \
15568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15569 || as_fn_error $? "could not create -" "$LINENO" 5
15573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15574 $as_echo "$as_me: executing $ac_file commands" >&6;}
15576 esac
15579 case $ac_file$ac_mode in
15580 "compiler_executable":C)
15581 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15582 mkdir -p $prefix
15583 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15584 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15586 echo ${prefix2}
15587 echo ${prefix3}
15588 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15590 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15591 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15592 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15593 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15594 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15595 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15596 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15598 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15600 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15602 esac
15603 done # for ac_tag
15606 as_fn_exit 0
15607 _ACEOF
15608 ac_clean_files=$ac_clean_files_save
15610 test $ac_write_fail = 0 ||
15611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15614 # configure is writing to config.log, and then calls config.status.
15615 # config.status does its own redirection, appending to config.log.
15616 # Unfortunately, on DOS this fails, as config.log is still kept open
15617 # by configure, so config.status won't be able to write to it; its
15618 # output is simply discarded. So we exec the FD to /dev/null,
15619 # effectively closing config.log, so it can be properly (re)opened and
15620 # appended to by config.status. When coming back to configure, we
15621 # need to make the FD available again.
15622 if test "$no_create" != yes; then
15623 ac_cs_success=:
15624 ac_config_status_args=
15625 test "$silent" = yes &&
15626 ac_config_status_args="$ac_config_status_args --quiet"
15627 exec 5>/dev/null
15628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15629 exec 5>>config.log
15630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15631 # would make configure fail if this is the last instruction.
15632 $ac_cs_success || as_fn_exit 1
15634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15641 #XXX compatability...
15642 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15644 if test -n "$aros_shared_cflags" ; then
15645 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15646 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg