Build fixed. It looks like virtual metatargets have different rules than real metatar...
[AROS.git] / configure
blobe21318be8e1af392c03993a97f4a9948675bdb13
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_palm_debug_hack
623 aros_serial_debug
624 aros_host_sdl_libs
625 aros_host_sdl_cflags
626 aros_host_x11_libdirs
627 aros_host_x11_includes
628 DO_VIDMODE_SUPPORT
629 DO_XSHM_SUPPORT
630 aros_default_wbdepth
631 aros_default_wbheight
632 aros_default_wbwidth
633 oss_library_target
634 pci_hidd_target
635 sdl_hidd_target
636 x11_hidd_target
637 aros_cflags_format_security
638 aros_cflags_strict_overflow
639 aros_cflags_enum_compare
640 aros_cflags_array_bounds
641 aros_cflags_unused_but_set_variable
642 crosstools_cxx_target
643 crosstools_target
644 aros_target_strip_flags
645 aros_target_genmap
646 aros_debug_ldflags
647 aros_debug_aflags
648 aros_debug_cflags
649 aros_target_cflags
650 aros_kernel_ldflags
651 aros_kernel_objcflags
652 aros_kernel_includes
653 aros_kernel_cflags
654 aros_shared_ldflags
655 aros_shared_aflags
656 aros_shared_cflags
657 aros_config_ldflags
658 aros_config_aflags
659 aros_config_cflags
660 aros_arch_libs
661 aros_compiler_libs
662 aros_object_format
663 aros_shared_ld
664 aros_shared_default
665 aros_target_nm
666 aros_target_strip
667 aros_target_objcopy
668 aros_target_objdump
669 aros_target_cc_path
670 aros_target_cc_includes
671 aros_target_ld
672 aros_target_as
673 aros_target_cpp
674 aros_target_cxx
675 aros_target_cc
676 aros_plain_ar
677 aros_plain_nm
678 aros_target_ranlib
679 aros_target_ar
680 aros_target_suffix
681 aros_target_variant
682 aros_target_cpu
683 aros_target_family
684 aros_target_arch
685 aros_target_bootloader
686 aros_target_iconset
687 aros_target_guitheme
688 aros_tools_dir
689 aros_host_lib_suffix
690 aros_host_exe_suffix
691 aros_host_mkargs
692 aros_host_mkdep
693 aros_host_debug
694 aros_host_ldflags
695 gnu89_inline
696 aros_host_cxxflags
697 aros_host_cflags
698 aros_host_make
699 aros_host_cxx
700 aros_host_cc
701 aros_host_cpp
702 aros_host_cpu
703 aros_host_arch
704 aros_cc_pre
705 aros_amigaos_compliance
706 AROS_PORTSSRCDIR
707 AROS_CROSSTOOLSDIR
708 SRCDIR
709 AROS_BUILDDIR_UNIX
710 AROS_BUILDDIR
711 aros_target_toolchain
712 aros_flavour_uc
713 aros_flavour
714 aros_cpu
715 aros_arch
716 SDL_LIBS
717 SDL_CFLAGS
718 SDL_CONFIG
719 XMKMF
720 aros_cflags_iquote_end
721 aros_cflags_iquote
722 kernel_cflags_iquote_end
723 kernel_cflags_iquote
724 host_cflags_iquote_end
725 host_cflags_iquote
726 aros_target_nostdlib_ldflags
727 aros_target_detach_ldflags
728 aros_target_nix_ldflags
729 aros_target_nostartup_ldflags
730 aros_target_nostdinc_cflags
731 aros_kernel_rescomp
732 orig_target_objdump
733 orig_target_objcopy
734 orig_target_strip
735 orig_target_nm
736 orig_target_ranlib
737 orig_target_ar
738 orig_target_as
739 orig_target_ld
740 orig_target_cxx
741 orig_target_cc
742 orig_target_cpp
743 aros_kernel_objdump
744 aros_kernel_objcopy
745 aros_kernel_strip
746 aros_kernel_nm
747 aros_kernel_ranlib
748 aros_kernel_ar
749 aros_kernel_as
750 aros_kernel_ld
751 aros_kernel_cxx
752 aros_kernel_cc
753 aros_kernel_cpp
755 android_tool
756 CCACHE
757 DISTCC
758 LIBOBJS
759 EGREP
760 GREP
762 TEST
765 pkgpyexecdir
766 pyexecdir
767 pkgpythondir
768 pythondir
769 PYTHON_PLATFORM
770 PYTHON_EXEC_PREFIX
771 PYTHON_PREFIX
772 PYTHON_VERSION
773 PYTHON
774 PATCH
775 CHMOD
777 PPMTOILBM
778 PNGTOPNM
779 FLEX
780 BISON
783 UNIQ
784 SORT
785 TOUCH
786 MKDIR
787 ECHO
791 aros_host_strip
792 aros_host_ranlib
793 aros_host_ar
794 aros_host_automake
795 aros_host_autoheader
796 aros_host_autoconf
797 aros_host_aclocal
798 aros_host_ld
799 MMAKE
802 ac_ct_CXX
803 CXXFLAGS
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_build_type
862 enable_debug
863 enable_distcc
864 enable_ccache
865 with_gcc_version
866 with_optimization
867 with_paranoia
868 enable_target_variant
869 with_xcode
870 with_sdk_version
871 with_sdk
872 with_ndk
873 with_ndk_version
874 enable_amigaos_compliance
875 with_kernel_toolchain_prefix
876 with_elf_toolchain_prefix
877 with_aros_toolchain
878 enable_crosstools
879 with_aros_toolchain_install
880 with_cpu
881 with_fpu
882 with_float
883 with_aros_gcc
884 with_portssources
885 with_bootloader
886 with_iconset
887 with_theme
888 enable_includes
889 with_resolution
890 with_serial_debug
891 enable_palm_debug_hack
892 enable_nesting_supervisor
893 enable_mmu
894 enable_x11_hidd
895 with_x
896 enable_x11_shm
897 enable_x11_vidmode
898 enable_sdl_hidd
899 with_sdl_prefix
900 with_sdl_exec_prefix
901 enable_sdltest
902 enable_dbus
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
913 CXXFLAGS
916 PYTHON
917 XMKMF'
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
968 ac_prev=
969 ac_dashdash=
970 for ac_option
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
989 ac_dashdash=yes ;;
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 esac
1326 done
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used" >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1412 /^X\(\/\/\)$/{
1413 s//\1/
1416 /^X\(\/\).*/{
1417 s//\1/
1420 s/.*/./; q'`
1421 srcdir=$ac_confdir
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 srcdir=..
1425 else
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1469 Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1515 cat <<\_ACEOF
1517 X features:
1518 --x-includes=DIR X include files are in DIR
1519 --x-libraries=DIR X library files are in DIR
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 _ACEOF
1527 if test -n "$ac_init_help"; then
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-build-type=TYPE
1536 Select the build type. Available types are:
1537 personal, nightly, snapshot, milestone, release. Do
1538 NOT use this option unless you know what you are
1539 doing! (default=personal)
1540 --enable-debug=list Enable different types of debug. Commas or
1541 whitespaces can be used to separate the items in the
1542 list. Available types of debug are: all, none,
1543 messages, stack, mungwall, modules, symbols. If no
1544 list is provided then "all" is assumed.
1545 (default=none)
1546 --enable-distcc Use distcc as a front end to the compiler
1547 (default=no).
1548 --enable-ccache Use ccache as a front end to the compiler
1549 (default=no).
1550 --enable-target-variant=NAME
1551 Enable a specific target variant(default=none)
1552 --enable-amigaos-compliance=VERSION
1553 Enforce userspace AmigaOS compliance to a specific
1554 KickStart version (default=none).
1555 --disable-crosstools Do not build cross-compiler toolchain
1556 --enable-includes=dir Alternative system include directory
1557 --enable-palm-debug-hack
1558 Enable palm debug output hack in palm native
1559 (default=no)
1560 --enable-nesting-supervisor
1561 Enable nesting supervisor support in unix
1562 (default=no)
1563 --disable-mmu Disable MMU support (default=enabled)
1564 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1565 --enable-x11-shm use X11 shared memory (default=auto)
1566 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1567 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1568 --disable-sdltest Do not try to compile and run a test SDL program
1569 --enable-dbus Enable DBUS support via dbus.library (default=no)
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-kernel-gcc-version=VERSION
1575 Use host gcc-VERSION for building AROS
1576 --with-gcc-version=VERSION
1577 Use host gcc-VERSION for building AROS
1578 --with-optimization=FLAGS
1579 Use optimization flags FLAGS (default=-O2).
1580 --with-paranoia=FLAGS CC flags to enable paranoia
1581 --with-xcode=PATH Specify XCode path for iOS targets
1582 (default=/Developer).
1583 --with-sdk-version=VERSION
1584 Use iOS SDK version VERSION (default=4.1).
1585 --with-sdk=PATH Specify Android SDK path
1586 (default=$default_android_sdk).
1587 --with-ndk=PATH Specify Android NDK path (default=none).
1588 --with-sdk-version=LEVEL
1589 Use Android SDK for API LEVEL (default=12).
1590 --with-ndk-version=LEVEL
1591 Use Android NDK for API LEVEL (default=9).
1592 --with-kernel-toolchain-prefix=...
1593 Specify crosscompile toolchain prefix for kernel
1594 objects
1595 --with-elf-toolchain-prefix=...
1596 Specify crosscompile toolchain prefix to wrap for
1597 AROS objects
1598 --with-aros-toolchain=PREFIX
1599 Specify prebuilt AROS toolchain
1600 --with-aros-toolchain-install=DIR
1601 Where to install or search for cross tools binaries
1602 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1603 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1604 --with-float=<spec> Specify floating point ABI
1605 (default=$gcc_default_float_abi).
1606 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1607 --with-portssources=DIR Where to download sourcecode for external ports
1608 --with-bootloader=NAME Use a specific bootloader
1609 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1610 --with-theme=NAME Use a specific GUI Theme
1611 --with-resolution=XRESxYRESxDEPTH
1612 Default resolution of the initial WorkbenchScreen
1613 --with-serial-debug Enable serial debug output in native (default=no)
1614 --with-x use the X Window System
1615 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1616 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1618 Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
1623 LIBS libraries to pass to the linker, e.g. -l<library>
1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 CPP C preprocessor
1629 PYTHON the Python interpreter
1630 XMKMF Path to xmkmf, Makefile generator for X Window System
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.68
1701 Copyright (C) 2010 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_c_try_cpp LINENO
1789 # ----------------------
1790 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_cpp ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_cpp conftest.$ac_ext"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } > conftest.i && {
1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_cpp
1825 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1828 # the include files in INCLUDES and setting the cache variable VAR
1829 # accordingly.
1830 ac_fn_c_check_header_mongrel ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if eval \${$3+:} false; then :
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 else
1843 # Is the header compilable?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1845 $as_echo_n "checking $2 usability... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_header_compiler=yes
1853 else
1854 ac_header_compiler=no
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1858 $as_echo "$ac_header_compiler" >&6; }
1860 # Is the header present?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1862 $as_echo_n "checking $2 presence... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_cpp "$LINENO"; then :
1868 ac_header_preproc=yes
1869 else
1870 ac_header_preproc=no
1872 rm -f conftest.err conftest.i conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1874 $as_echo "$ac_header_preproc" >&6; }
1876 # So? What about this header?
1877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 yes:no: )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1880 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 no:yes:* )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1886 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1888 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1890 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1892 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 esac
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=\$ac_header_compiler"
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_header_mongrel
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1937 ac_status=$?
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1952 } # ac_fn_c_try_run
1954 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1955 # -------------------------------------------------------
1956 # Tests whether HEADER exists and can be compiled using the include files in
1957 # INCLUDES, setting the cache variable VAR accordingly.
1958 ac_fn_c_check_header_compile ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval \${$3+:} false; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_header_compile
1985 # ac_fn_c_try_link LINENO
1986 # -----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_c_try_link ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 $as_test_x conftest$ac_exeext
2013 }; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=1
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2029 } # ac_fn_c_try_link
2031 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2032 # ----------------------------------------------------
2033 # Tries to find if the field MEMBER exists in type AGGR, after including
2034 # INCLUDES, setting cache variable VAR accordingly.
2035 ac_fn_c_check_member ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2039 $as_echo_n "checking for $2.$3... " >&6; }
2040 if eval \${$4+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static $2 ac_aggr;
2050 if (ac_aggr.$3)
2051 return 0;
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 eval "$4=yes"
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static $2 ac_aggr;
2066 if (sizeof ac_aggr.$3)
2067 return 0;
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 eval "$4=yes"
2074 else
2075 eval "$4=no"
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$4
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_member
2088 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2089 # ---------------------------------------------
2090 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2091 # accordingly.
2092 ac_fn_c_check_decl ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 as_decl_name=`echo $2|sed 's/ *(.*//'`
2096 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2098 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 #ifndef $as_decl_name
2109 #ifdef __cplusplus
2110 (void) $as_decl_use;
2111 #else
2112 (void) $as_decl_name;
2113 #endif
2114 #endif
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$3=yes"
2122 else
2123 eval "$3=no"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_decl
2134 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2135 # -------------------------------------------
2136 # Tests whether TYPE exists after having included INCLUDES, setting cache
2137 # variable VAR accordingly.
2138 ac_fn_c_check_type ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 eval "$3=no"
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof ($2))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 if (sizeof (($2)))
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2174 else
2175 eval "$3=yes"
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_type
2188 # ac_fn_c_check_func LINENO FUNC VAR
2189 # ----------------------------------
2190 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2191 ac_fn_c_check_func ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2203 #define $2 innocuous_$2
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $2 (); below.
2207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2208 <limits.h> exists even on freestanding compilers. */
2210 #ifdef __STDC__
2211 # include <limits.h>
2212 #else
2213 # include <assert.h>
2214 #endif
2216 #undef $2
2218 /* Override any GCC internal prototype to avoid an error.
2219 Use char because int might match the return type of a GCC
2220 builtin and then its argument prototype would still apply. */
2221 #ifdef __cplusplus
2222 extern "C"
2223 #endif
2224 char $2 ();
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined __stub_$2 || defined __stub___$2
2229 choke me
2230 #endif
2233 main ()
2235 return $2 ();
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_link "$LINENO"; then :
2241 eval "$3=yes"
2242 else
2243 eval "$3=no"
2245 rm -f core conftest.err conftest.$ac_objext \
2246 conftest$ac_exeext conftest.$ac_ext
2248 eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_func
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by $as_me, which was
2259 generated by GNU Autoconf 2.68. Invocation command line was
2261 $ $0 $@
2263 _ACEOF
2264 exec 5>>config.log
2266 cat <<_ASUNAME
2267 ## --------- ##
2268 ## Platform. ##
2269 ## --------- ##
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288 _ASUNAME
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2296 done
2297 IFS=$as_save_IFS
2299 } >&5
2301 cat >&5 <<_ACEOF
2304 ## ----------- ##
2305 ## Core tests. ##
2306 ## ----------- ##
2308 _ACEOF
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_configure_args=
2317 ac_configure_args0=
2318 ac_configure_args1=
2319 ac_must_keep_next=false
2320 for ac_pass in 1 2
2322 for ac_arg
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 esac
2332 case $ac_pass in
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2351 as_fn_append ac_configure_args " '$ac_arg'"
2353 esac
2354 done
2355 done
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2367 echo
2369 $as_echo "## ---------------- ##
2370 ## Cache variables. ##
2371 ## ---------------- ##"
2372 echo
2373 # The following way of writing the cache mishandles newlines in values,
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in #(
2378 *${as_nl}*)
2379 case $ac_var in #(
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 esac
2383 case $ac_var in #(
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2387 esac ;;
2388 esac
2389 done
2390 (set) 2>&1 |
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
2393 sed -n \
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 ;; #(
2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 esac |
2401 sort
2403 echo
2405 $as_echo "## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##"
2408 echo
2409 for ac_var in $ac_subst_vars
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2419 if test -n "$ac_subst_files"; then
2420 $as_echo "## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##"
2423 echo
2424 for ac_var in $ac_subst_files
2426 eval ac_val=\$$ac_var
2427 case $ac_val in
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 esac
2430 $as_echo "$ac_var='\''$ac_val'\''"
2431 done | sort
2432 echo
2435 if test -s confdefs.h; then
2436 $as_echo "## ----------- ##
2437 ## confdefs.h. ##
2438 ## ----------- ##"
2439 echo
2440 cat confdefs.h
2441 echo
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2446 } >&5
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 exit $exit_status
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 done
2454 ac_signal=0
2456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2457 rm -f -r conftest* confdefs.h
2459 $as_echo "/* confdefs.h */" > confdefs.h
2461 # Predefined preprocessor variables.
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_NAME "$PACKAGE_NAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2485 _ACEOF
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2490 ac_site_file1=NONE
2491 ac_site_file2=NONE
2492 if test -n "$CONFIG_SITE"; then
2493 # We do not want a PATH search for config.site.
2494 case $CONFIG_SITE in #((
2495 -*) ac_site_file1=./$CONFIG_SITE;;
2496 */*) ac_site_file1=$CONFIG_SITE;;
2497 *) ac_site_file1=./$CONFIG_SITE;;
2498 esac
2499 elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2502 else
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508 test "x$ac_site_file" = xNONE && continue
2509 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2513 . "$ac_site_file" \
2514 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 as_fn_error $? "failed to load site script $ac_site_file
2517 See \`config.log' for more details" "$LINENO" 5; }
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special files
2523 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2524 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " stdlib.h"
2539 as_fn_append ac_header_list " unistd.h"
2540 as_fn_append ac_header_list " sys/param.h"
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 ac_aux_dir=
2611 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2612 if 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/install.sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install.sh -c"
2619 break
2620 elif test -f "$ac_dir/shtool"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/shtool install -c"
2623 break
2625 done
2626 if test -z "$ac_aux_dir"; then
2627 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640 # Check what host we are running on.
2641 # If a target is not suggested, we use this one.
2642 # Note that what we call a target, Autoconf calls a host.
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2645 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if ${ac_cv_build+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 ac_build_alias=$build_alias
2653 test "x$ac_build_alias" = x &&
2654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x &&
2656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2664 *-*-*) ;;
2665 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2666 esac
2667 build=$ac_cv_build
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_build
2670 shift
2671 build_cpu=$1
2672 build_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 build_os=$*
2677 IFS=$ac_save_IFS
2678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if ${ac_cv_host+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test "x$host_alias" = x; then
2687 ac_cv_host=$ac_cv_build
2688 else
2689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2696 case $ac_cv_host in
2697 *-*-*) ;;
2698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2699 esac
2700 host=$ac_cv_host
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_host
2703 shift
2704 host_cpu=$1
2705 host_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 host_os=$*
2710 IFS=$ac_save_IFS
2711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2715 # The AROS target is slightly different to the normal GNU style
2716 # format. We don't have the middle part, and we reverse the order
2717 # of the $(CPU) and $(OS) bits.
2719 # Don't strip the version of the target yet, it might be
2720 # useful on some systems.
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2723 $as_echo_n "checking for AROS style target... " >&6; }
2725 if test "$target" = "NONE" ; then
2726 target=$host_os-$host_cpu
2727 else
2728 if test "$target" = "" ; then
2729 target=$host_os-$host_cpu
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2733 $as_echo "$target" >&6; }
2735 if test "$host_os" = "mingw32" ; then
2736 PWDCMD="pwd -W"
2739 # Don't know where else to put this...
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2741 $as_echo_n "checking building AROS in... " >&6; }
2742 AROS_BUILDDIR=`${PWDCMD-pwd}`
2743 AROS_BUILDDIR_UNIX=${PWD}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2745 $as_echo "$AROS_BUILDDIR" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2748 $as_echo_n "checking AROS source in... " >&6; }
2749 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2750 SRCDIR=${srcpwd}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2752 $as_echo "$SRCDIR" >&6; }
2754 # Parse the target field into something useful.
2756 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2757 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2760 # Some debug output, to be removed again.
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2762 $as_echo_n "checking for target system (debug output)... " >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2764 $as_echo "$target_os" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2766 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2768 $as_echo "$target_cpu" >&6; }
2770 aros_default_wbwidth=800
2771 aros_default_wbheight=600
2772 aros_default_wbdepth=4
2775 # The first step is to find the host binaries.
2776 # Check for a compiler.
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2804 done
2805 done
2806 IFS=$as_save_IFS
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$ac_cv_prog_CC"; then
2822 ac_ct_CC=$CC
2823 # Extract the first word of "gcc", so it can be a program name with args.
2824 set dummy gcc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2846 IFS=$as_save_IFS
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2859 if test "x$ac_ct_CC" = x; then
2860 CC=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 CC=$ac_ct_CC
2870 else
2871 CC="$ac_cv_prog_CC"
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_CC="${ac_tool_prefix}cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2915 if test -z "$CC"; then
2916 # Extract the first word of "cc", so it can be a program name with args.
2917 set dummy cc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 ac_prog_rejected=no
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935 ac_prog_rejected=yes
2936 continue
2938 ac_cv_prog_CC="cc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2946 if test $ac_prog_rejected = yes; then
2947 # We found a bogon in the path, so make sure we never use it.
2948 set dummy $ac_cv_prog_CC
2949 shift
2950 if test $# != 0; then
2951 # We chose a different compiler from the bogus one.
2952 # However, it has the same basename, so the bogon will be chosen
2953 # first if we set CC to just the basename; use the full file name.
2954 shift
2955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$CC" && break
3013 done
3015 if test -z "$CC"; then
3016 ac_ct_CC=$CC
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_ac_ct_CC="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$ac_ct_CC" && break
3057 done
3059 if test "x$ac_ct_CC" = x; then
3060 CC=""
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 CC=$ac_ct_CC
3075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "no acceptable C compiler found in \$PATH
3078 See \`config.log' for more details" "$LINENO" 5; }
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3082 set X $ac_compile
3083 ac_compiler=$2
3084 for ac_option in --version -v -V -qversion; do
3085 { { ac_try="$ac_compiler $ac_option >&5"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093 ac_status=$?
3094 if test -s conftest.err; then
3095 sed '10a\
3096 ... rest of stderr output deleted ...
3097 10q' conftest.err >conftest.er1
3098 cat conftest.er1 >&5
3100 rm -f conftest.er1 conftest.err
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }
3103 done
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 ac_clean_files_save=$ac_clean_files
3117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118 # Try to create an executable without -o first, disregard a.out.
3119 # It will help us diagnose broken compilers, and finding out an intuition
3120 # of exeext.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122 $as_echo_n "checking whether the C compiler works... " >&6; }
3123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125 # The possible output files:
3126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128 ac_rmfiles=
3129 for ac_file in $ac_files
3131 case $ac_file in
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3134 esac
3135 done
3136 rm -f $ac_rmfiles
3138 if { { ac_try="$ac_link_default"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link_default") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3152 # so that the user can short-circuit this test for compilers unknown to
3153 # Autoconf.
3154 for ac_file in $ac_files ''
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 [ab].out )
3161 # We found the default executable, but exeext='' is most
3162 # certainly right.
3163 break;;
3164 *.* )
3165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3166 then :; else
3167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 # We set ac_cv_exeext here because the later test for it is not
3170 # safe: cross compilers may not add the suffix if given an `-o'
3171 # argument, so we may need to know it at that point already.
3172 # Even if this section looks crufty: it has the advantage of
3173 # actually working.
3174 break;;
3176 break;;
3177 esac
3178 done
3179 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181 else
3182 ac_file=''
3184 if test -z "$ac_file"; then :
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error 77 "C compiler cannot create executables
3193 See \`config.log' for more details" "$LINENO" 5; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 break;;
3229 * ) break;;
3230 esac
3231 done
3232 else
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3244 ac_exeext=$EXEEXT
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3247 #include <stdio.h>
3249 main ()
3251 FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3255 return 0;
3257 _ACEOF
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3286 cross_compiling=no
3287 else
3288 if test "$cross_compiling" = maybe; then
3289 cross_compiling=yes
3290 else
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details" "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if ${ac_cv_objext+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 main ()
3317 return 0;
3319 _ACEOF
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compile") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337 break;;
3338 esac
3339 done
3340 else
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3354 ac_objext=$OBJEXT
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if ${ac_cv_c_compiler_gnu+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3366 #ifndef __GNUC__
3367 choke me
3368 #endif
3371 return 0;
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_compiler_gnu=yes
3376 else
3377 ac_compiler_gnu=no
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3386 GCC=yes
3387 else
3388 GCC=
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if ${ac_cv_prog_cc_g+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3399 ac_cv_prog_cc_g=no
3400 CFLAGS="-g"
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main ()
3409 return 0;
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_cv_prog_cc_g=yes
3414 else
3415 CFLAGS=""
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3420 main ()
3424 return 0;
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"; then :
3429 else
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3431 CFLAGS="-g"
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_g=yes
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3459 CFLAGS="-g -O2"
3460 else
3461 CFLAGS="-g"
3463 else
3464 if test "$GCC" = yes; then
3465 CFLAGS="-O2"
3466 else
3467 CFLAGS=
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if ${ac_cv_prog_cc_c89+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_cv_prog_cc_c89=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #include <stdarg.h>
3480 #include <stdio.h>
3481 #include <sys/types.h>
3482 #include <sys/stat.h>
3483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484 struct buf { int x; };
3485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486 static char *e (p, i)
3487 char **p;
3488 int i;
3490 return p[i];
3492 static char *f (char * (*g) (char **, int), char **p, ...)
3494 char *s;
3495 va_list v;
3496 va_start (v,p);
3497 s = g (p, va_arg (v,int));
3498 va_end (v);
3499 return s;
3502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503 function prototypes and stuff, but not '\xHH' hex character constants.
3504 These don't provoke an error unfortunately, instead are silently treated
3505 as 'x'. The following induces an error, until -std is added to get
3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507 array size at least. It's necessary to write '\x00'==0 to get something
3508 that's true only with -std. */
3509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512 inside strings and character constants. */
3513 #define FOO(x) 'x'
3514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516 int test (int i, double x);
3517 struct s1 {int (*f) (int a);};
3518 struct s2 {int (*f) (double a);};
3519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520 int argc;
3521 char **argv;
3523 main ()
3525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 return 0;
3529 _ACEOF
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 CC="$ac_save_CC $ac_arg"
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_prog_cc_c89=$ac_arg
3537 rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3544 # AC_CACHE_VAL
3545 case "x$ac_cv_prog_cc_c89" in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 $as_echo "none needed" >&6; } ;;
3549 xno)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3551 $as_echo "unsupported" >&6; } ;;
3553 CC="$CC $ac_cv_prog_cc_c89"
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 esac
3557 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 case $ac_cv_prog_cc_stdc in #(
3568 no) :
3569 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3570 *) :
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3572 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3573 if ${ac_cv_prog_cc_c99+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_cv_prog_cc_c99=no
3577 ac_save_CC=$CC
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdbool.h>
3582 #include <stdlib.h>
3583 #include <wchar.h>
3584 #include <stdio.h>
3586 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3587 #define debug(...) fprintf (stderr, __VA_ARGS__)
3588 #define showlist(...) puts (#__VA_ARGS__)
3589 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3590 static void
3591 test_varargs_macros (void)
3593 int x = 1234;
3594 int y = 5678;
3595 debug ("Flag");
3596 debug ("X = %d\n", x);
3597 showlist (The first, second, and third items.);
3598 report (x>y, "x is %d but y is %d", x, y);
3601 // Check long long types.
3602 #define BIG64 18446744073709551615ull
3603 #define BIG32 4294967295ul
3604 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3605 #if !BIG_OK
3606 your preprocessor is broken;
3607 #endif
3608 #if BIG_OK
3609 #else
3610 your preprocessor is broken;
3611 #endif
3612 static long long int bignum = -9223372036854775807LL;
3613 static unsigned long long int ubignum = BIG64;
3615 struct incomplete_array
3617 int datasize;
3618 double data[];
3621 struct named_init {
3622 int number;
3623 const wchar_t *name;
3624 double average;
3627 typedef const char *ccp;
3629 static inline int
3630 test_restrict (ccp restrict text)
3632 // See if C++-style comments work.
3633 // Iterate through items via the restricted pointer.
3634 // Also check for declarations in for loops.
3635 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3636 continue;
3637 return 0;
3640 // Check varargs and va_copy.
3641 static void
3642 test_varargs (const char *format, ...)
3644 va_list args;
3645 va_start (args, format);
3646 va_list args_copy;
3647 va_copy (args_copy, args);
3649 const char *str;
3650 int number;
3651 float fnumber;
3653 while (*format)
3655 switch (*format++)
3657 case 's': // string
3658 str = va_arg (args_copy, const char *);
3659 break;
3660 case 'd': // int
3661 number = va_arg (args_copy, int);
3662 break;
3663 case 'f': // float
3664 fnumber = va_arg (args_copy, double);
3665 break;
3666 default:
3667 break;
3670 va_end (args_copy);
3671 va_end (args);
3675 main ()
3678 // Check bool.
3679 _Bool success = false;
3681 // Check restrict.
3682 if (test_restrict ("String literal") == 0)
3683 success = true;
3684 char *restrict newvar = "Another string";
3686 // Check varargs.
3687 test_varargs ("s, d' f .", "string", 65, 34.234);
3688 test_varargs_macros ();
3690 // Check flexible array members.
3691 struct incomplete_array *ia =
3692 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3693 ia->datasize = 10;
3694 for (int i = 0; i < ia->datasize; ++i)
3695 ia->data[i] = i * 1.234;
3697 // Check named initializers.
3698 struct named_init ni = {
3699 .number = 34,
3700 .name = L"Test wide string",
3701 .average = 543.34343,
3704 ni.number = 58;
3706 int dynamic_array[ni.number];
3707 dynamic_array[ni.number - 1] = 543;
3709 // work around unused variable warnings
3710 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3711 || dynamic_array[ni.number - 1] != 543);
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_c99=$ac_arg
3723 rm -f core conftest.err conftest.$ac_objext
3724 test "x$ac_cv_prog_cc_c99" != "xno" && break
3725 done
3726 rm -f conftest.$ac_ext
3727 CC=$ac_save_CC
3730 # AC_CACHE_VAL
3731 case "x$ac_cv_prog_cc_c99" in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 $as_echo "none needed" >&6; } ;;
3735 xno)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;;
3739 CC="$CC $ac_cv_prog_cc_c99"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3741 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3742 esac
3743 if test "x$ac_cv_prog_cc_c99" != xno; then :
3744 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748 if ${ac_cv_prog_cc_c89+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_cv_prog_cc_c89=no
3752 ac_save_CC=$CC
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdarg.h>
3756 #include <stdio.h>
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3763 char **p;
3764 int i;
3766 return p[i];
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3770 char *s;
3771 va_list v;
3772 va_start (v,p);
3773 s = g (p, va_arg (v,int));
3774 va_end (v);
3775 return s;
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3779 function prototypes and stuff, but not '\xHH' hex character constants.
3780 These don't provoke an error unfortunately, instead are silently treated
3781 as 'x'. The following induces an error, until -std is added to get
3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3783 array size at least. It's necessary to write '\x00'==0 to get something
3784 that's true only with -std. */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788 inside strings and character constants. */
3789 #define FOO(x) 'x'
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3796 int argc;
3797 char **argv;
3799 main ()
3801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 return 0;
3805 _ACEOF
3806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 CC="$ac_save_CC $ac_arg"
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_c89=$ac_arg
3813 rm -f core conftest.err conftest.$ac_objext
3814 test "x$ac_cv_prog_cc_c89" != "xno" && break
3815 done
3816 rm -f conftest.$ac_ext
3817 CC=$ac_save_CC
3820 # AC_CACHE_VAL
3821 case "x$ac_cv_prog_cc_c89" in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3825 xno)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3829 CC="$CC $ac_cv_prog_cc_c89"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3832 esac
3833 if test "x$ac_cv_prog_cc_c89" != xno; then :
3834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3835 else
3836 ac_cv_prog_cc_stdc=no
3841 esac
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3843 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3844 if ${ac_cv_prog_cc_stdc+:} false; then :
3845 $as_echo_n "(cached) " >&6
3848 case $ac_cv_prog_cc_stdc in #(
3849 no) :
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;; #(
3852 '') :
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;; #(
3855 *) :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3857 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3858 esac
3860 ac_ext=cpp
3861 ac_cpp='$CXXCPP $CPPFLAGS'
3862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3865 if test -z "$CXX"; then
3866 if test -n "$CCC"; then
3867 CXX=$CCC
3868 else
3869 if test -n "$ac_tool_prefix"; then
3870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_CXX+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$CXX"; then
3880 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3895 IFS=$as_save_IFS
3899 CXX=$ac_cv_prog_CXX
3900 if test -n "$CXX"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3902 $as_echo "$CXX" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3909 test -n "$CXX" && break
3910 done
3912 if test -z "$CXX"; then
3913 ac_ct_CXX=$CXX
3914 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$ac_ct_CXX"; then
3924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 ac_cv_prog_ac_ct_CXX="$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3939 IFS=$as_save_IFS
3943 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3944 if test -n "$ac_ct_CXX"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3946 $as_echo "$ac_ct_CXX" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 test -n "$ac_ct_CXX" && break
3954 done
3956 if test "x$ac_ct_CXX" = x; then
3957 CXX="g++"
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 CXX=$ac_ct_CXX
3971 # Provide some information about the compiler.
3972 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3973 set X $ac_compile
3974 ac_compiler=$2
3975 for ac_option in --version -v -V -qversion; do
3976 { { ac_try="$ac_compiler $ac_option >&5"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3984 ac_status=$?
3985 if test -s conftest.err; then
3986 sed '10a\
3987 ... rest of stderr output deleted ...
3988 10q' conftest.err >conftest.er1
3989 cat conftest.er1 >&5
3991 rm -f conftest.er1 conftest.err
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 done
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3997 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3998 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 main ()
4007 #ifndef __GNUC__
4008 choke me
4009 #endif
4012 return 0;
4014 _ACEOF
4015 if ac_fn_cxx_try_compile "$LINENO"; then :
4016 ac_compiler_gnu=yes
4017 else
4018 ac_compiler_gnu=no
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4025 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4026 if test $ac_compiler_gnu = yes; then
4027 GXX=yes
4028 else
4029 GXX=
4031 ac_test_CXXFLAGS=${CXXFLAGS+set}
4032 ac_save_CXXFLAGS=$CXXFLAGS
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4034 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4035 if ${ac_cv_prog_cxx_g+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4039 ac_cxx_werror_flag=yes
4040 ac_cv_prog_cxx_g=no
4041 CXXFLAGS="-g"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4046 main ()
4050 return 0;
4052 _ACEOF
4053 if ac_fn_cxx_try_compile "$LINENO"; then :
4054 ac_cv_prog_cxx_g=yes
4055 else
4056 CXXFLAGS=""
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_cxx_try_compile "$LINENO"; then :
4070 else
4071 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4072 CXXFLAGS="-g"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 if ac_fn_cxx_try_compile "$LINENO"; then :
4085 ac_cv_prog_cxx_g=yes
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4095 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4096 if test "$ac_test_CXXFLAGS" = set; then
4097 CXXFLAGS=$ac_save_CXXFLAGS
4098 elif test $ac_cv_prog_cxx_g = yes; then
4099 if test "$GXX" = yes; then
4100 CXXFLAGS="-g -O2"
4101 else
4102 CXXFLAGS="-g"
4104 else
4105 if test "$GXX" = yes; then
4106 CXXFLAGS="-O2"
4107 else
4108 CXXFLAGS=
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4124 # On Suns, sometimes $CPP names a directory.
4125 if test -n "$CPP" && test -d "$CPP"; then
4126 CPP=
4128 if test -z "$CPP"; then
4129 if ${ac_cv_prog_CPP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 # Double quotes because CPP needs to be expanded
4133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4135 ac_preproc_ok=false
4136 for ac_c_preproc_warn_flag in '' yes
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151 Syntax error
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4155 else
4156 # Broken: fails on valid input.
4157 continue
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4161 # OK, works on sane cases. Now check whether nonexistent headers
4162 # can be detected and how.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <ac_nonexistent.h>
4166 _ACEOF
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4168 # Broken: success on invalid input.
4169 continue
4170 else
4171 # Passes both tests.
4172 ac_preproc_ok=:
4173 break
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.i conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then :
4181 break
4184 done
4185 ac_cv_prog_CPP=$CPP
4188 CPP=$ac_cv_prog_CPP
4189 else
4190 ac_cv_prog_CPP=$CPP
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4193 $as_echo "$CPP" >&6; }
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210 Syntax error
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4214 else
4215 # Broken: fails on valid input.
4216 continue
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4220 # OK, works on sane cases. Now check whether nonexistent headers
4221 # can be detected and how.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <ac_nonexistent.h>
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: success on invalid input.
4228 continue
4229 else
4230 # Passes both tests.
4231 ac_preproc_ok=:
4232 break
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4236 done
4237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238 rm -f conftest.i conftest.err conftest.$ac_ext
4239 if $ac_preproc_ok; then :
4241 else
4242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4245 See \`config.log' for more details" "$LINENO" 5; }
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 # Check for a compatible awk
4256 for ac_prog in gawk nawk
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_AWK+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$AWK"; then
4266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_AWK="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 AWK=$ac_cv_prog_AWK
4286 if test -n "$AWK"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4288 $as_echo "$AWK" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$AWK" && break
4296 done
4298 if test "$AWK" = ""; then
4299 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4301 # Extract the first word of "mmake", so it can be a program name with args.
4302 set dummy mmake; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_MMAKE+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$MMAKE"; then
4309 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_MMAKE="mmake "
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 MMAKE=$ac_cv_prog_MMAKE
4329 if test -n "$MMAKE"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4331 $as_echo "$MMAKE" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4339 # Perform some default variable assignments. Note all of these will be
4340 # Regenerated from the script, so there is no need to cache them.
4342 aros_host_cpp="$CPP"
4343 aros_host_cc="$CC"
4344 aros_host_cxx="$CXX"
4345 if test "$GCC" = "yes"; then
4346 aros_gcc_ld=`$CC -print-prog-name=ld`
4347 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4348 set dummy `basename $aros_gcc_ld`; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if ${ac_cv_path_aros_host_ld+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 case $aros_host_ld in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in `dirname $aros_gcc_ld`
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4375 esac
4377 aros_host_ld=$ac_cv_path_aros_host_ld
4378 if test -n "$aros_host_ld"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4380 $as_echo "$aros_host_ld" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4388 if test "$aros_host_ld" = ""; then
4389 # Extract the first word of "ld", so it can be a program name with args.
4390 set dummy ld; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_path_aros_host_ld+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 case $aros_host_ld in
4397 [\\/]* | ?:[\\/]*)
4398 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4417 esac
4419 aros_host_ld=$ac_cv_path_aros_host_ld
4420 if test -n "$aros_host_ld"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4422 $as_echo "$aros_host_ld" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4430 if test "$aros_host_ld" = ""; then
4431 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4433 aros_host_make="make"
4434 aros_host_cflags=$CFLAGS
4435 aros_host_cxxflags=$CXXFLAGS
4436 aros_host_ldflags=$LDFLAGS
4437 aros_host_debug="-g -O0"
4438 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4439 aros_host_mkargs="--no-print-directory"
4440 aros_host_exe_suffix="$EXEEXT"
4441 aros_host_lib_suffix=""
4443 # Ignore all compliance, AROS ROMs = 0
4444 # KickStart v1.0 = 30
4445 # KickStart v1.3 = 34
4446 # KickStart v2.0 = 37
4447 # KickStart v3.0 = 39
4448 # KickStart v3.1 = 40
4449 # AmigaOS v3.5 = 44
4450 aros_amigaos_compliance=0
4452 for ac_prog in aclocal aclocal19 aclocal-1.9
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy $ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$aros_host_aclocal"; then
4462 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_aros_host_aclocal="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4482 if test -n "$aros_host_aclocal"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4484 $as_echo "$aros_host_aclocal" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$aros_host_aclocal" && break
4492 done
4494 for ac_prog in autoconf autoconf259 autoconf253
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$aros_host_autoconf"; then
4504 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_aros_host_autoconf="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4524 if test -n "$aros_host_autoconf"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4526 $as_echo "$aros_host_autoconf" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$aros_host_autoconf" && break
4534 done
4536 for ac_prog in autoheader autoheader259 autoheader253
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$aros_host_autoheader"; then
4546 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_aros_host_autoheader="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4566 if test -n "$aros_host_autoheader"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4568 $as_echo "$aros_host_autoheader" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$aros_host_autoheader" && break
4576 done
4578 for ac_prog in automake automake19 automake-1.9
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_aros_host_automake+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$aros_host_automake"; then
4588 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_aros_host_automake="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 aros_host_automake=$ac_cv_prog_aros_host_automake
4608 if test -n "$aros_host_automake"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4610 $as_echo "$aros_host_automake" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$aros_host_automake" && break
4618 done
4621 if test "$aros_host_aclocal" = ""; then
4622 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 if test "$aros_host_automake" = ""; then
4625 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4628 case "$aros_host_cc" in
4629 *gcc*)
4630 aros_host_cc_pipe="-pipe"
4632 icc)
4633 aros_host_cc_pipe=""
4636 aros_host_cc_pipe=""
4638 esac
4640 aros_kernel_cc_includes=""
4641 aros_target_cc_includes=""
4642 host_cc_elf=yes
4644 # ----------------------------------------------------------------------------------------
4645 # Host-specific defaults
4647 # This is the main host configuration section. It is where the host
4648 # can change the values of any variables it needs to change. We do
4649 # not look at anything that compiles to the target yet, we'll get
4650 # to that later.
4652 case "$host_os" in
4653 aros*)
4654 aros_host_arch="aros"
4655 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4656 case "$host_cpu" in
4657 *i?86*)
4658 aros_host_cpu="i386"
4660 *x86_64*)
4661 aros_host_cpu="x86_64"
4663 *powerpc*)
4664 aros_host_cpu="ppc"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4668 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4669 aros_host_cpu="$host_cpu"
4671 esac
4674 linux*)
4675 aros_host_arch="linux"
4676 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4677 android_build_os="linux-x86"
4678 android_tool="android"
4679 default_android_sdk="/opt/android-sdk-linux_x86"
4680 case "$host_cpu" in
4681 *i?86*)
4682 aros_host_cpu="i386"
4684 *x86_64*)
4685 aros_host_cpu="x86_64"
4687 *m68k*)
4688 aros_host_cpu="m68k"
4690 *powerpc*)
4691 aros_host_cpu="ppc"
4693 *arm*)
4694 aros_host_cpu="arm"
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4698 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4699 aros_host_cpu="$host_cpu"
4701 esac
4704 freebsd*)
4705 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4706 aros_host_make="gmake"
4707 aros_host_arch="freebsd"
4708 aros_host_cpu="i386"
4710 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4712 case $host_os in
4713 freebsd[234]*)
4714 aros_object_format="elf_i386"
4718 aros_object_format="elf_i386_fbsd"
4720 esac
4724 darwin*)
4725 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4726 aros_host_arch="darwin"
4727 host_cc_elf=no
4728 android_build_os="darwin-x86"
4729 android_tool="android"
4730 default_android_sdk="/android-sdk-mac_x86"
4731 case "$host_cpu" in
4732 *i?86*)
4733 aros_host_cpu="i386"
4735 *x86_64*)
4736 aros_host_cpu="x86_64"
4738 *powerpc*)
4739 aros_host_cpu="ppc"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4748 aros_host_ldflags="$aros_host_ldflags -liconv"
4752 dragonfly*)
4753 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4754 aros_host_make="gmake"
4755 aros_host_arch="dragonfly"
4756 case $host_cpu in
4757 *i?86*)
4758 aros_host_cpu="i386"
4760 *amd64*)
4761 aros_host_cpu="x86_64"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4765 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4766 aros_host_cpu="$host_cpu"
4768 esac
4771 netbsd*)
4772 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4773 aros_host_make="gmake"
4774 aros_host_arch="netbsd"
4775 case "$host_cpu" in
4776 *i?86*)
4777 aros_host_cpu="i386"
4779 *m68k*)
4780 aros_host_cpu="m68k"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu="$host_cpu"
4787 esac
4788 aros_host_lib_suffix=".0.0"
4791 openbsd*)
4792 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4793 aros_host_make="gmake"
4794 aros_host_arch="openbsd"
4795 case "$host_cpu" in
4796 *i?86*)
4797 aros_host_cpu="i386"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4801 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4802 aros_host_cpu="$host_cpu"
4804 esac
4807 solaris*)
4808 aros_host_arch="solaris"
4809 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4810 case "$host_cpu" in
4811 *i?86*)
4812 aros_host_cpu="i386"
4814 *sparc*)
4815 aros_host_cpu="sparc"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 morphos*)
4826 aros_host_arch="morphos"
4827 aros_host_cpu="ppc"
4828 host_cc_elf=no
4831 amiga*)
4832 aros_host_arch="amiga"
4833 host_cc_elf=no
4834 SORT="/gg/bin/sort"
4835 TEST="/gg/bin/test"
4836 UNIQ="/gg/bin/uniq"
4837 FOR="for"
4838 TOUCH="/gg/bin/touch"
4839 case "$host_cpu" in
4840 *m68k*)
4841 aros_host_cpu="m68k"
4843 *powerpc*)
4844 aros_host_cpu="ppc"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4848 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4849 aros_host_cpu="$host_cpu"
4851 esac
4854 cygwin*)
4855 aros_host_arch="cygwin"
4856 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4857 host_cc_elf=no
4858 android_build_os="windows"
4859 android_tool="android.bat"
4860 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4862 case "$host_cpu" in
4863 *i?86*)
4864 aros_host_cpu="i386"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4868 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4869 aros_host_cpu="$host_cpu"
4871 esac
4874 mingw32*)
4875 aros_host_arch="mingw32"
4876 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4877 host_cc_elf=no
4878 android_build_os="windows"
4879 android_tool="android.bat"
4880 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4882 case "$host_cpu" in
4883 *i?86*)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4886 $as_echo_n "checking for Windows native gcc target... " >&6; }
4887 host_cpu=`gcc -dumpmachine`
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4889 $as_echo "$host_cpu" >&6; }
4892 esac
4894 case "$host_cpu" in
4895 *i?86*)
4896 aros_host_cpu="i386"
4899 mingw32*)
4900 aros_host_cpu="i386"
4903 *x86_64*)
4904 aros_host_cpu="x86_64"
4905 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4910 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4911 aros_host_cpu="$host_cpu"
4913 esac
4916 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4918 esac
4920 # Extract the first word of "ar", so it can be a program name with args.
4921 set dummy ar; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_prog_aros_host_ar+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$aros_host_ar"; then
4928 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_aros_host_ar="ar cr"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4941 done
4942 done
4943 IFS=$as_save_IFS
4947 aros_host_ar=$ac_cv_prog_aros_host_ar
4948 if test -n "$aros_host_ar"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4950 $as_echo "$aros_host_ar" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 if test "$aros_host_ar" = ""; then
4958 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4960 # Extract the first word of "ranlib", so it can be a program name with args.
4961 set dummy ranlib; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$aros_host_ranlib"; then
4968 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_aros_host_ranlib="ranlib "
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4987 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4988 if test -n "$aros_host_ranlib"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4990 $as_echo "$aros_host_ranlib" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4997 if test "$aros_host_ranlib" = ""; then
4998 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5000 # Extract the first word of "strip", so it can be a program name with args.
5001 set dummy strip; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_aros_host_strip+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$aros_host_strip"; then
5008 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_aros_host_strip="strip "
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 aros_host_strip=$ac_cv_prog_aros_host_strip
5028 if test -n "$aros_host_strip"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5030 $as_echo "$aros_host_strip" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 if test "$aros_host_strip" = ""; then
5038 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5041 # Extract the first word of "rm", so it can be a program name with args.
5042 set dummy rm; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_RM+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$RM"; then
5049 ac_cv_prog_RM="$RM" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_RM="rm -rf"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 RM=$ac_cv_prog_RM
5069 if test -n "$RM"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5071 $as_echo "$RM" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 if test "$RM" = ""; then
5079 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5081 # Extract the first word of "cp", so it can be a program name with args.
5082 set dummy cp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_CP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$CP"; then
5089 ac_cv_prog_CP="$CP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_CP="cp "
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 CP=$ac_cv_prog_CP
5109 if test -n "$CP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5111 $as_echo "$CP" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 if test "$CP" = ""; then
5119 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5121 # Extract the first word of "mv", so it can be a program name with args.
5122 set dummy mv; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_prog_MV+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$MV"; then
5129 ac_cv_prog_MV="$MV" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_MV="mv "
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5148 MV=$ac_cv_prog_MV
5149 if test -n "$MV"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5151 $as_echo "$MV" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 if test "$MV" = ""; then
5159 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5161 # Extract the first word of "echo", so it can be a program name with args.
5162 set dummy echo; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_ECHO+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ECHO"; then
5169 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ECHO="echo "
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 ECHO=$ac_cv_prog_ECHO
5189 if test -n "$ECHO"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5191 $as_echo "$ECHO" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 if test "$ECHO" = ""; then
5199 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5201 # Extract the first word of "mkdir", so it can be a program name with args.
5202 set dummy mkdir; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_MKDIR+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$MKDIR"; then
5209 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_MKDIR="mkdir -p"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 MKDIR=$ac_cv_prog_MKDIR
5229 if test -n "$MKDIR"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5231 $as_echo "$MKDIR" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 if test "$MKDIR" = ""; then
5239 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5241 # Extract the first word of "touch", so it can be a program name with args.
5242 set dummy touch; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_TOUCH+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$TOUCH"; then
5249 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_TOUCH="touch "
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 TOUCH=$ac_cv_prog_TOUCH
5269 if test -n "$TOUCH"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5271 $as_echo "$TOUCH" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5278 if test "$TOUCH" = ""; then
5279 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5281 # Extract the first word of "sort", so it can be a program name with args.
5282 set dummy sort; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_SORT+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$SORT"; then
5289 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_SORT="sort "
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 SORT=$ac_cv_prog_SORT
5309 if test -n "$SORT"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5311 $as_echo "$SORT" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 if test "$SORT" = ""; then
5319 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5321 # Extract the first word of "uniq", so it can be a program name with args.
5322 set dummy uniq; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_UNIQ+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$UNIQ"; then
5329 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_UNIQ="uniq "
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 UNIQ=$ac_cv_prog_UNIQ
5349 if test -n "$UNIQ"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5351 $as_echo "$UNIQ" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 if test "$UNIQ" = ""; then
5359 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5361 # Extract the first word of "true", so it can be a program name with args.
5362 set dummy true; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_NOP+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$NOP"; then
5369 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_NOP="true "
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 NOP=$ac_cv_prog_NOP
5389 if test -n "$NOP"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5391 $as_echo "$NOP" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 if test "$NOP" = ""; then
5399 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5401 # Extract the first word of "cat", so it can be a program name with args.
5402 set dummy cat; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_CAT+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$CAT"; then
5409 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_CAT="cat "
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 CAT=$ac_cv_prog_CAT
5429 if test -n "$CAT"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5431 $as_echo "$CAT" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5438 if test "$CAT" = ""; then
5439 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5441 # Extract the first word of "bison", so it can be a program name with args.
5442 set dummy bison; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_BISON+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$BISON"; then
5449 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_BISON="bison "
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5464 IFS=$as_save_IFS
5468 BISON=$ac_cv_prog_BISON
5469 if test -n "$BISON"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5471 $as_echo "$BISON" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 if test "$BISON" = ""; then
5479 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5481 # Extract the first word of "flex", so it can be a program name with args.
5482 set dummy flex; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_FLEX+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$FLEX"; then
5489 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_FLEX="flex "
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 FLEX=$ac_cv_prog_FLEX
5509 if test -n "$FLEX"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5511 $as_echo "$FLEX" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test "$FLEX" = ""; then
5519 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5521 # Extract the first word of "pngtopnm", so it can be a program name with args.
5522 set dummy pngtopnm; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$PNGTOPNM"; then
5529 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_PNGTOPNM="pngtopnm "
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5549 if test -n "$PNGTOPNM"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5551 $as_echo "$PNGTOPNM" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 if test "$PNGTOPNM" = ""; then
5559 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5561 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5562 set dummy ppmtoilbm; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$PPMTOILBM"; then
5569 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5582 done
5583 done
5584 IFS=$as_save_IFS
5588 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5589 if test -n "$PPMTOILBM"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5591 $as_echo "$PPMTOILBM" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5598 if test "$PPMTOILBM" = ""; then
5599 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5601 # Extract the first word of "sed", so it can be a program name with args.
5602 set dummy sed; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_SED+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$SED"; then
5609 ac_cv_prog_SED="$SED" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_SED="sed "
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 SED=$ac_cv_prog_SED
5629 if test -n "$SED"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5631 $as_echo "$SED" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$SED" = ""; then
5639 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5641 # Extract the first word of "chmod", so it can be a program name with args.
5642 set dummy chmod; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_CHMOD+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$CHMOD"; then
5649 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_CHMOD="chmod "
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 CHMOD=$ac_cv_prog_CHMOD
5669 if test -n "$CHMOD"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5671 $as_echo "$CHMOD" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5678 if test "$CHMOD" = ""; then
5679 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5681 # Extract the first word of "patch", so it can be a program name with args.
5682 set dummy patch; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_PATCH+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$PATCH"; then
5689 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_PATCH="patch "
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 PATCH=$ac_cv_prog_PATCH
5709 if test -n "$PATCH"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5711 $as_echo "$PATCH" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5718 if test "$PATCH" = ""; then
5719 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5728 if test -n "$PYTHON"; then
5729 # If the user set $PYTHON, use it and don't search something else.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5731 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5732 prog="import sys
5733 # split strings by '.' and convert to numeric. Append some zeros
5734 # because we need at least 4 digits for the hex conversion.
5735 # map returns an iterator in Python 3.0 and a list in 2.x
5736 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5737 minverhex = 0
5738 # xrange is not present in Python 3.0 and range returns an iterator
5739 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5740 sys.exit(sys.hexversion < minverhex)"
5741 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5742 ($PYTHON -c "$prog") >&5 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; then :
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5747 $as_echo "yes" >&6; }
5748 else
5749 as_fn_error $? "too old" "$LINENO" 5
5751 am_display_PYTHON=$PYTHON
5752 else
5753 # Otherwise, try each interpreter until we find one that satisfies
5754 # VERSION.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5756 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5757 if ${am_cv_pathless_PYTHON+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5761 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5762 test "$am_cv_pathless_PYTHON" = none && break
5763 prog="import sys
5764 # split strings by '.' and convert to numeric. Append some zeros
5765 # because we need at least 4 digits for the hex conversion.
5766 # map returns an iterator in Python 3.0 and a list in 2.x
5767 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5768 minverhex = 0
5769 # xrange is not present in Python 3.0 and range returns an iterator
5770 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5771 sys.exit(sys.hexversion < minverhex)"
5772 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5773 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; then :
5777 break
5779 done
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5782 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5783 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5784 if test "$am_cv_pathless_PYTHON" = none; then
5785 PYTHON=:
5786 else
5787 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5788 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_path_PYTHON+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 case $PYTHON in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5815 esac
5817 PYTHON=$ac_cv_path_PYTHON
5818 if test -n "$PYTHON"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5820 $as_echo "$PYTHON" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 am_display_PYTHON=$am_cv_pathless_PYTHON
5832 if test "$PYTHON" = :; then
5833 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5834 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5838 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5839 if ${am_cv_python_version+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5845 $as_echo "$am_cv_python_version" >&6; }
5846 PYTHON_VERSION=$am_cv_python_version
5850 PYTHON_PREFIX='${prefix}'
5852 PYTHON_EXEC_PREFIX='${exec_prefix}'
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5857 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5858 if ${am_cv_python_platform+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5864 $as_echo "$am_cv_python_platform" >&6; }
5865 PYTHON_PLATFORM=$am_cv_python_platform
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5871 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5872 if ${am_cv_python_pythondir+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test "x$prefix" = xNONE
5876 then
5877 am_py_prefix=$ac_default_prefix
5878 else
5879 am_py_prefix=$prefix
5881 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5882 case $am_cv_python_pythondir in
5883 $am_py_prefix*)
5884 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5885 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5888 case $am_py_prefix in
5889 /usr|/System*) ;;
5891 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5893 esac
5895 esac
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5899 $as_echo "$am_cv_python_pythondir" >&6; }
5900 pythondir=$am_cv_python_pythondir
5904 pkgpythondir=\${pythondir}/$PACKAGE
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5908 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5909 if ${am_cv_python_pyexecdir+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test "x$exec_prefix" = xNONE
5913 then
5914 am_py_exec_prefix=$am_py_prefix
5915 else
5916 am_py_exec_prefix=$exec_prefix
5918 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5919 case $am_cv_python_pyexecdir in
5920 $am_py_exec_prefix*)
5921 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5922 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5925 case $am_py_exec_prefix in
5926 /usr|/System*) ;;
5928 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5930 esac
5932 esac
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5936 $as_echo "$am_cv_python_pyexecdir" >&6; }
5937 pyexecdir=$am_cv_python_pyexecdir
5941 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5949 FOR=for
5951 IF=if
5953 TEST=test
5955 CMP=cmp
5959 # Check for some includes for the X11 HIDD and the kernel
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5963 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5964 if ${ac_cv_path_GREP+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -z "$GREP"; then
5968 ac_path_GREP_found=false
5969 # Loop through the user's path and test for each of PROGNAME-LIST
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_prog in grep ggrep; do
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5979 # Check for GNU ac_path_GREP and select it if it is found.
5980 # Check for GNU $ac_path_GREP
5981 case `"$ac_path_GREP" --version 2>&1` in
5982 *GNU*)
5983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5985 ac_count=0
5986 $as_echo_n 0123456789 >"conftest.in"
5987 while :
5989 cat "conftest.in" "conftest.in" >"conftest.tmp"
5990 mv "conftest.tmp" "conftest.in"
5991 cp "conftest.in" "conftest.nl"
5992 $as_echo 'GREP' >> "conftest.nl"
5993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5995 as_fn_arith $ac_count + 1 && ac_count=$as_val
5996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5997 # Best one so far, save it but keep looking for a better one
5998 ac_cv_path_GREP="$ac_path_GREP"
5999 ac_path_GREP_max=$ac_count
6001 # 10*(2^10) chars as input seems more than enough
6002 test $ac_count -gt 10 && break
6003 done
6004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6005 esac
6007 $ac_path_GREP_found && break 3
6008 done
6009 done
6010 done
6011 IFS=$as_save_IFS
6012 if test -z "$ac_cv_path_GREP"; then
6013 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6015 else
6016 ac_cv_path_GREP=$GREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6021 $as_echo "$ac_cv_path_GREP" >&6; }
6022 GREP="$ac_cv_path_GREP"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6026 $as_echo_n "checking for egrep... " >&6; }
6027 if ${ac_cv_path_EGREP+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6031 then ac_cv_path_EGREP="$GREP -E"
6032 else
6033 if test -z "$EGREP"; then
6034 ac_path_EGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_prog in egrep; do
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6045 # Check for GNU ac_path_EGREP and select it if it is found.
6046 # Check for GNU $ac_path_EGREP
6047 case `"$ac_path_EGREP" --version 2>&1` in
6048 *GNU*)
6049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6051 ac_count=0
6052 $as_echo_n 0123456789 >"conftest.in"
6053 while :
6055 cat "conftest.in" "conftest.in" >"conftest.tmp"
6056 mv "conftest.tmp" "conftest.in"
6057 cp "conftest.in" "conftest.nl"
6058 $as_echo 'EGREP' >> "conftest.nl"
6059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6061 as_fn_arith $ac_count + 1 && ac_count=$as_val
6062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6063 # Best one so far, save it but keep looking for a better one
6064 ac_cv_path_EGREP="$ac_path_EGREP"
6065 ac_path_EGREP_max=$ac_count
6067 # 10*(2^10) chars as input seems more than enough
6068 test $ac_count -gt 10 && break
6069 done
6070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6071 esac
6073 $ac_path_EGREP_found && break 3
6074 done
6075 done
6076 done
6077 IFS=$as_save_IFS
6078 if test -z "$ac_cv_path_EGREP"; then
6079 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6081 else
6082 ac_cv_path_EGREP=$EGREP
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6088 $as_echo "$ac_cv_path_EGREP" >&6; }
6089 EGREP="$ac_cv_path_EGREP"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6093 $as_echo_n "checking for ANSI C header files... " >&6; }
6094 if ${ac_cv_header_stdc+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <stdlib.h>
6100 #include <stdarg.h>
6101 #include <string.h>
6102 #include <float.h>
6105 main ()
6109 return 0;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_header_stdc=yes
6114 else
6115 ac_cv_header_stdc=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <string.h>
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "memchr" >/dev/null 2>&1; then :
6129 else
6130 ac_cv_header_stdc=no
6132 rm -f conftest*
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <stdlib.h>
6142 _ACEOF
6143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144 $EGREP "free" >/dev/null 2>&1; then :
6146 else
6147 ac_cv_header_stdc=no
6149 rm -f conftest*
6153 if test $ac_cv_header_stdc = yes; then
6154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6155 if test "$cross_compiling" = yes; then :
6157 else
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 #include <ctype.h>
6161 #include <stdlib.h>
6162 #if ((' ' & 0x0FF) == 0x020)
6163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6165 #else
6166 # define ISLOWER(c) \
6167 (('a' <= (c) && (c) <= 'i') \
6168 || ('j' <= (c) && (c) <= 'r') \
6169 || ('s' <= (c) && (c) <= 'z'))
6170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6171 #endif
6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6175 main ()
6177 int i;
6178 for (i = 0; i < 256; i++)
6179 if (XOR (islower (i), ISLOWER (i))
6180 || toupper (i) != TOUPPER (i))
6181 return 2;
6182 return 0;
6184 _ACEOF
6185 if ac_fn_c_try_run "$LINENO"; then :
6187 else
6188 ac_cv_header_stdc=no
6190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6191 conftest.$ac_objext conftest.beam conftest.$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6197 $as_echo "$ac_cv_header_stdc" >&6; }
6198 if test $ac_cv_header_stdc = yes; then
6200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6206 inttypes.h stdint.h unistd.h
6207 do :
6208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214 _ACEOF
6218 done
6221 for ac_header in sys/ipc.h sys/shm.h \
6222 sys/mmap.h sys/mman.h sysexits.h \
6223 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6225 do :
6226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6229 cat >>confdefs.h <<_ACEOF
6230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 _ACEOF
6235 done
6238 for ac_header in sys/mount.h
6239 do :
6240 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6242 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_SYS_MOUNT_H 1
6245 _ACEOF
6249 done
6252 ac_header_dirent=no
6253 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6254 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6256 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6257 if eval \${$as_ac_Header+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6263 #include <$ac_hdr>
6266 main ()
6268 if ((DIR *) 0)
6269 return 0;
6271 return 0;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 eval "$as_ac_Header=yes"
6276 else
6277 eval "$as_ac_Header=no"
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 eval ac_res=\$$as_ac_Header
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6283 $as_echo "$ac_res" >&6; }
6284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6285 cat >>confdefs.h <<_ACEOF
6286 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6287 _ACEOF
6289 ac_header_dirent=$ac_hdr; break
6292 done
6293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6294 if test $ac_header_dirent = dirent.h; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6296 $as_echo_n "checking for library containing opendir... " >&6; }
6297 if ${ac_cv_search_opendir+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 ac_func_search_save_LIBS=$LIBS
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307 #ifdef __cplusplus
6308 extern "C"
6309 #endif
6310 char opendir ();
6312 main ()
6314 return opendir ();
6316 return 0;
6318 _ACEOF
6319 for ac_lib in '' dir; do
6320 if test -z "$ac_lib"; then
6321 ac_res="none required"
6322 else
6323 ac_res=-l$ac_lib
6324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 ac_cv_search_opendir=$ac_res
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext
6331 if ${ac_cv_search_opendir+:} false; then :
6332 break
6334 done
6335 if ${ac_cv_search_opendir+:} false; then :
6337 else
6338 ac_cv_search_opendir=no
6340 rm conftest.$ac_ext
6341 LIBS=$ac_func_search_save_LIBS
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6344 $as_echo "$ac_cv_search_opendir" >&6; }
6345 ac_res=$ac_cv_search_opendir
6346 if test "$ac_res" != no; then :
6347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6353 $as_echo_n "checking for library containing opendir... " >&6; }
6354 if ${ac_cv_search_opendir+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 ac_func_search_save_LIBS=$LIBS
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6361 /* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
6364 #ifdef __cplusplus
6365 extern "C"
6366 #endif
6367 char opendir ();
6369 main ()
6371 return opendir ();
6373 return 0;
6375 _ACEOF
6376 for ac_lib in '' x; do
6377 if test -z "$ac_lib"; then
6378 ac_res="none required"
6379 else
6380 ac_res=-l$ac_lib
6381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 ac_cv_search_opendir=$ac_res
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext
6388 if ${ac_cv_search_opendir+:} false; then :
6389 break
6391 done
6392 if ${ac_cv_search_opendir+:} false; then :
6394 else
6395 ac_cv_search_opendir=no
6397 rm conftest.$ac_ext
6398 LIBS=$ac_func_search_save_LIBS
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6401 $as_echo "$ac_cv_search_opendir" >&6; }
6402 ac_res=$ac_cv_search_opendir
6403 if test "$ac_res" != no; then :
6404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6411 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6412 if ${ac_cv_header_stat_broken+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <sys/types.h>
6418 #include <sys/stat.h>
6420 #if defined S_ISBLK && defined S_IFDIR
6421 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6422 #endif
6424 #if defined S_ISBLK && defined S_IFCHR
6425 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6426 #endif
6428 #if defined S_ISLNK && defined S_IFREG
6429 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6430 #endif
6432 #if defined S_ISSOCK && defined S_IFREG
6433 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6434 #endif
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_header_stat_broken=no
6439 else
6440 ac_cv_header_stat_broken=yes
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6445 $as_echo "$ac_cv_header_stat_broken" >&6; }
6446 if test $ac_cv_header_stat_broken = yes; then
6448 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6453 $as_echo_n "checking for ANSI C header files... " >&6; }
6454 if ${ac_cv_header_stdc+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #include <stdlib.h>
6460 #include <stdarg.h>
6461 #include <string.h>
6462 #include <float.h>
6465 main ()
6469 return 0;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 ac_cv_header_stdc=yes
6474 else
6475 ac_cv_header_stdc=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 if test $ac_cv_header_stdc = yes; then
6480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 #include <string.h>
6485 _ACEOF
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 $EGREP "memchr" >/dev/null 2>&1; then :
6489 else
6490 ac_cv_header_stdc=no
6492 rm -f conftest*
6496 if test $ac_cv_header_stdc = yes; then
6497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 #include <stdlib.h>
6502 _ACEOF
6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504 $EGREP "free" >/dev/null 2>&1; then :
6506 else
6507 ac_cv_header_stdc=no
6509 rm -f conftest*
6513 if test $ac_cv_header_stdc = yes; then
6514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6515 if test "$cross_compiling" = yes; then :
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <ctype.h>
6521 #include <stdlib.h>
6522 #if ((' ' & 0x0FF) == 0x020)
6523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6525 #else
6526 # define ISLOWER(c) \
6527 (('a' <= (c) && (c) <= 'i') \
6528 || ('j' <= (c) && (c) <= 'r') \
6529 || ('s' <= (c) && (c) <= 'z'))
6530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6531 #endif
6533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6535 main ()
6537 int i;
6538 for (i = 0; i < 256; i++)
6539 if (XOR (islower (i), ISLOWER (i))
6540 || toupper (i) != TOUPPER (i))
6541 return 2;
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_run "$LINENO"; then :
6547 else
6548 ac_cv_header_stdc=no
6550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6551 conftest.$ac_objext conftest.beam conftest.$ac_ext
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6557 $as_echo "$ac_cv_header_stdc" >&6; }
6558 if test $ac_cv_header_stdc = yes; then
6560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6565 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6566 if ${ac_cv_header_sys_wait_h+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 #include <sys/wait.h>
6573 #ifndef WEXITSTATUS
6574 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6575 #endif
6576 #ifndef WIFEXITED
6577 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6578 #endif
6581 main ()
6583 int s;
6584 wait (&s);
6585 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6587 return 0;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_header_sys_wait_h=yes
6592 else
6593 ac_cv_header_sys_wait_h=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6598 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6599 if test $ac_cv_header_sys_wait_h = yes; then
6601 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6606 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6607 if ${ac_cv_header_time+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6613 #include <sys/time.h>
6614 #include <time.h>
6617 main ()
6619 if ((struct tm *) 0)
6620 return 0;
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_header_time=yes
6627 else
6628 ac_cv_header_time=no
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6633 $as_echo "$ac_cv_header_time" >&6; }
6634 if test $ac_cv_header_time = yes; then
6636 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6640 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6641 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6645 _ACEOF
6648 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6653 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6654 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6656 cat >>confdefs.h <<_ACEOF
6657 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6658 _ACEOF
6661 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6663 else
6664 case " $LIBOBJS " in
6665 *" fileblocks.$ac_objext "* ) ;;
6666 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6668 esac
6673 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6674 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_STAT_ST_RDEV 1
6678 _ACEOF
6681 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6687 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6688 if ${ac_cv_struct_tm+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 #include <time.h>
6697 main ()
6699 struct tm tm;
6700 int *p = &tm.tm_sec;
6701 return !p;
6703 return 0;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 ac_cv_struct_tm=time.h
6708 else
6709 ac_cv_struct_tm=sys/time.h
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6714 $as_echo "$ac_cv_struct_tm" >&6; }
6715 if test $ac_cv_struct_tm = sys/time.h; then
6717 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6721 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6722 #include <$ac_cv_struct_tm>
6725 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6727 cat >>confdefs.h <<_ACEOF
6728 #define HAVE_STRUCT_TM_TM_ZONE 1
6729 _ACEOF
6734 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6736 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6738 else
6739 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6741 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6742 ac_have_decl=1
6743 else
6744 ac_have_decl=0
6747 cat >>confdefs.h <<_ACEOF
6748 #define HAVE_DECL_TZNAME $ac_have_decl
6749 _ACEOF
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6752 $as_echo_n "checking for tzname... " >&6; }
6753 if ${ac_cv_var_tzname+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #include <time.h>
6759 #if !HAVE_DECL_TZNAME
6760 extern char *tzname[];
6761 #endif
6764 main ()
6766 return tzname[0][0];
6768 return 0;
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772 ac_cv_var_tzname=yes
6773 else
6774 ac_cv_var_tzname=no
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6780 $as_echo "$ac_cv_var_tzname" >&6; }
6781 if test $ac_cv_var_tzname = yes; then
6783 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6788 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6789 if test "x$ac_cv_type_off_t" = xyes; then :
6791 else
6793 cat >>confdefs.h <<_ACEOF
6794 #define off_t long int
6795 _ACEOF
6799 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6800 if test "x$ac_cv_type_pid_t" = xyes; then :
6802 else
6804 cat >>confdefs.h <<_ACEOF
6805 #define pid_t int
6806 _ACEOF
6810 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6811 if test "x$ac_cv_type_size_t" = xyes; then :
6813 else
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6817 _ACEOF
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6822 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6823 if ${ac_cv_type_uid_t+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6830 _ACEOF
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 $EGREP "uid_t" >/dev/null 2>&1; then :
6833 ac_cv_type_uid_t=yes
6834 else
6835 ac_cv_type_uid_t=no
6837 rm -f conftest*
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6841 $as_echo "$ac_cv_type_uid_t" >&6; }
6842 if test $ac_cv_type_uid_t = no; then
6844 $as_echo "#define uid_t int" >>confdefs.h
6847 $as_echo "#define gid_t int" >>confdefs.h
6852 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6853 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6857 _ACEOF
6863 # Look for some functions
6864 for ac_func in getpagesize kqueue statfs statvfs \
6865 clone kse_create rfork_thread thr_create sa_register \
6866 getcontext makecontext setcontext sigaltstack swapcontext
6867 do :
6868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6873 _ACEOF
6876 done
6882 for ac_header in $ac_header_list
6883 do :
6884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6885 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6888 cat >>confdefs.h <<_ACEOF
6889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890 _ACEOF
6894 done
6903 for ac_func in getpagesize
6904 do :
6905 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6906 if test "x$ac_cv_func_getpagesize" = xyes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_GETPAGESIZE 1
6909 _ACEOF
6912 done
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6915 $as_echo_n "checking for working mmap... " >&6; }
6916 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test "$cross_compiling" = yes; then :
6920 ac_cv_func_mmap_fixed_mapped=no
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 $ac_includes_default
6925 /* malloc might have been renamed as rpl_malloc. */
6926 #undef malloc
6928 /* Thanks to Mike Haertel and Jim Avera for this test.
6929 Here is a matrix of mmap possibilities:
6930 mmap private not fixed
6931 mmap private fixed at somewhere currently unmapped
6932 mmap private fixed at somewhere already mapped
6933 mmap shared not fixed
6934 mmap shared fixed at somewhere currently unmapped
6935 mmap shared fixed at somewhere already mapped
6936 For private mappings, we should verify that changes cannot be read()
6937 back from the file, nor mmap's back from the file at a different
6938 address. (There have been systems where private was not correctly
6939 implemented like the infamous i386 svr4.0, and systems where the
6940 VM page cache was not coherent with the file system buffer cache
6941 like early versions of FreeBSD and possibly contemporary NetBSD.)
6942 For shared mappings, we should conversely verify that changes get
6943 propagated back to all the places they're supposed to be.
6945 Grep wants private fixed already mapped.
6946 The main things grep needs to know about mmap are:
6947 * does it exist and is it safe to write into the mmap'd area
6948 * how to use it (BSD variants) */
6950 #include <fcntl.h>
6951 #include <sys/mman.h>
6953 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6954 char *malloc ();
6955 #endif
6957 /* This mess was copied from the GNU getpagesize.h. */
6958 #ifndef HAVE_GETPAGESIZE
6959 # ifdef _SC_PAGESIZE
6960 # define getpagesize() sysconf(_SC_PAGESIZE)
6961 # else /* no _SC_PAGESIZE */
6962 # ifdef HAVE_SYS_PARAM_H
6963 # include <sys/param.h>
6964 # ifdef EXEC_PAGESIZE
6965 # define getpagesize() EXEC_PAGESIZE
6966 # else /* no EXEC_PAGESIZE */
6967 # ifdef NBPG
6968 # define getpagesize() NBPG * CLSIZE
6969 # ifndef CLSIZE
6970 # define CLSIZE 1
6971 # endif /* no CLSIZE */
6972 # else /* no NBPG */
6973 # ifdef NBPC
6974 # define getpagesize() NBPC
6975 # else /* no NBPC */
6976 # ifdef PAGESIZE
6977 # define getpagesize() PAGESIZE
6978 # endif /* PAGESIZE */
6979 # endif /* no NBPC */
6980 # endif /* no NBPG */
6981 # endif /* no EXEC_PAGESIZE */
6982 # else /* no HAVE_SYS_PARAM_H */
6983 # define getpagesize() 8192 /* punt totally */
6984 # endif /* no HAVE_SYS_PARAM_H */
6985 # endif /* no _SC_PAGESIZE */
6987 #endif /* no HAVE_GETPAGESIZE */
6990 main ()
6992 char *data, *data2, *data3;
6993 const char *cdata2;
6994 int i, pagesize;
6995 int fd, fd2;
6997 pagesize = getpagesize ();
6999 /* First, make a file with some known garbage in it. */
7000 data = (char *) malloc (pagesize);
7001 if (!data)
7002 return 1;
7003 for (i = 0; i < pagesize; ++i)
7004 *(data + i) = rand ();
7005 umask (0);
7006 fd = creat ("conftest.mmap", 0600);
7007 if (fd < 0)
7008 return 2;
7009 if (write (fd, data, pagesize) != pagesize)
7010 return 3;
7011 close (fd);
7013 /* Next, check that the tail of a page is zero-filled. File must have
7014 non-zero length, otherwise we risk SIGBUS for entire page. */
7015 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7016 if (fd2 < 0)
7017 return 4;
7018 cdata2 = "";
7019 if (write (fd2, cdata2, 1) != 1)
7020 return 5;
7021 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7022 if (data2 == MAP_FAILED)
7023 return 6;
7024 for (i = 0; i < pagesize; ++i)
7025 if (*(data2 + i))
7026 return 7;
7027 close (fd2);
7028 if (munmap (data2, pagesize))
7029 return 8;
7031 /* Next, try to mmap the file at a fixed address which already has
7032 something else allocated at it. If we can, also make sure that
7033 we see the same garbage. */
7034 fd = open ("conftest.mmap", O_RDWR);
7035 if (fd < 0)
7036 return 9;
7037 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7038 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7039 return 10;
7040 for (i = 0; i < pagesize; ++i)
7041 if (*(data + i) != *(data2 + i))
7042 return 11;
7044 /* Finally, make sure that changes to the mapped area do not
7045 percolate back to the file as seen by read(). (This is a bug on
7046 some variants of i386 svr4.0.) */
7047 for (i = 0; i < pagesize; ++i)
7048 *(data2 + i) = *(data2 + i) + 1;
7049 data3 = (char *) malloc (pagesize);
7050 if (!data3)
7051 return 12;
7052 if (read (fd, data3, pagesize) != pagesize)
7053 return 13;
7054 for (i = 0; i < pagesize; ++i)
7055 if (*(data + i) != *(data3 + i))
7056 return 14;
7057 close (fd);
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_run "$LINENO"; then :
7062 ac_cv_func_mmap_fixed_mapped=yes
7063 else
7064 ac_cv_func_mmap_fixed_mapped=no
7066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7067 conftest.$ac_objext conftest.beam conftest.$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7072 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7073 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7075 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7078 rm -f conftest.mmap conftest.txt
7083 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7084 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7085 aros_config_ldflags=""
7087 aros_shared_default=yes
7089 aros_shared_cflags="-fPIC"
7090 aros_shared_aflags=""
7091 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7092 aros_kernel_ldflags="-Wl,-rpath,./lib"
7094 aros_kernel_ar_flags="cr"
7095 aros_target_ar_flags="cr"
7096 aros_target_nm_flags="-C -ul"
7097 aros_target_strip_flags="--strip-unneeded -R.comment"
7099 aros_compiler_libs=
7100 aros_arch_libs=
7102 aros_target_genmap="-Wl,-Map -Xlinker"
7104 # Native flavour stuff
7105 aros_serial_debug="0"
7107 # Palm native flavour stuff
7108 aros_palm_debug_hack="0"
7110 # Unix flavour stuff
7111 aros_nesting_supervisor="0"
7113 # Collect-aros stuff: "-ius" to ignore undefined symbols
7114 ignore_undefined_symbols=""
7116 # Check for X11 by default
7117 need_x11="auto"
7119 #-----------------------------------------------------------------------------
7122 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7123 # it switched on by default, and we use the host compiler, so it compiles AROS
7124 # code with this enabled resulting in link failures as we don't have support
7125 # for it.
7127 # We use two methods to disable it. For the host compiler (used to compile
7128 # some hosted modules), we test to see if the compiler supports stack
7129 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7130 # work on all platforms.
7132 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7133 # (this is done unconditionally, as it should have no effect on compilers
7134 # without the stack protection feature). This may be specific to the way that
7135 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7136 # strong enough to disable it in a generic way though, so we'll live with it
7137 # until another vendor ships GCC with it enabled in a different way, and deal
7138 # with it then.
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7142 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7143 save_cflags="$CFLAGS"
7144 CFLAGS="$CFLAGS -fno-stack-protector"
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7149 main ()
7153 return 0;
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 use_no_stack_protector="yes"
7158 else
7159 use_no_stack_protector="no"
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7163 $as_echo "$use_no_stack_protector" >&6; }
7164 if test "x-$use_no_stack_protector" = "x-yes" ; then
7165 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7167 CFLAGS="$save_cflags"
7169 #-----------------------------------------------------------------------------
7171 # Disable pointer-signedness warnings if the compiler recognises the option
7172 # (this only works for the host compiler at the moment)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7175 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7176 save_cflags="$CFLAGS"
7177 CFLAGS="$CFLAGS -Wno-pointer-sign"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7182 main ()
7186 return 0;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 use_no_sign_warning="yes"
7191 else
7192 use_no_sign_warning="no"
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7196 $as_echo "$use_no_sign_warning" >&6; }
7197 if test "x-$use_no_sign_warning" = "x-yes" ; then
7198 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7200 CFLAGS="$save_cflags"
7202 #-----------------------------------------------------------------------------
7204 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7207 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7208 save_cflags="$CFLAGS"
7209 CFLAGS="$CFLAGS -fgnu89-inline"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 main ()
7218 return 0;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 use_gnu89_inline="yes"
7223 else
7224 use_gnu89_inline="no"
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7228 $as_echo "$use_gnu89_inline" >&6; }
7229 if test "x-$use_gnu89_inline" = "x-yes" ; then
7230 gnu89_inline="-fgnu89-inline"
7232 CFLAGS="$save_cflags"
7234 #-----------------------------------------------------------------------------
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7237 $as_echo_n "checking for type of build... " >&6; }
7238 # Check whether --enable-build_type was given.
7239 if test "${enable_build_type+set}" = set; then :
7240 enableval=$enable_build_type; build_type=$enableval
7241 else
7242 build_type="personal"
7246 if test "$build_type" = "nightly"; then
7247 build_type_string="NIGHTLY"
7248 elif test "$build_type" = "snapshot"; then
7249 build_type_string="SNAPSHOT"
7250 elif test "$build_type" = "milestone"; then
7251 build_type_string="MILESTONE"
7252 elif test "$build_type" = "release"; then
7253 build_type_string="RELEASE"
7254 else
7255 build_type_string="PERSONAL"
7256 build_type="personal"
7259 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7262 $as_echo "$build_type" >&6; }
7264 #-----------------------------------------------------------------------------
7265 all_debug_types="messages stack modules mungwall symbols"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7268 $as_echo_n "checking which debug types to enable... " >&6; }
7269 # Check whether --enable-debug was given.
7270 if test "${enable_debug+set}" = set; then :
7271 enableval=$enable_debug; debug="$enableval"
7272 else
7273 debug=""
7277 if test "$debug" = "" -o "$debug" = "no"; then
7278 debug="none"
7279 elif test "$debug" = "yes"; then
7280 debug="all"
7283 if test "$debug" = "all" ; then
7284 debug="messages stack modules symbols"
7285 for d in $all_debug_types; do
7286 export aros_${d}_debug="1"
7287 done
7288 else
7289 for d in $all_debug_types; do
7290 export aros_${d}_debug="0"
7291 done
7294 if test "$debug" != "none"; then
7295 debug=`echo $debug | sed s/,/\ /g`
7296 for d in $debug; do
7297 found="0"
7298 for d2 in $all_debug_types; do
7299 if test "$d2" = "$d"; then
7300 found="1"
7301 break
7303 done
7304 if test "$found" = "0"; then
7305 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7307 export aros_${d}_debug="1"
7308 done
7309 aros_debug="yes"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7312 $as_echo "$debug" >&6; }
7314 if test "$aros_messages_debug" = "1"; then
7315 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7316 else
7317 aros_messages_debug=""
7319 if test "$aros_symbols_debug" = "1"; then
7320 aros_symbols_debug="-g"
7321 else
7322 aros_symbols_debug=""
7325 # These are the flags to pass when compiling debugged programs
7326 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7327 aros_debug_aflags=""
7328 aros_debug_ldflags="$aros_symbols_debug"
7330 #-----------------------------------------------------------------------------
7331 # Checking for distcc and ccache.
7333 # Always apply the transforms in this particular order. Basically you should
7334 # always run 'ccache distcc compiler' in that order for the best performance.
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7337 $as_echo_n "checking whether to enable distcc... " >&6; }
7338 # Check whether --enable-distcc was given.
7339 if test "${enable_distcc+set}" = set; then :
7340 enableval=$enable_distcc; distcc="$enableval"
7341 else
7342 distcc="no"
7345 if test "$distcc" != "" -a "$distcc" != "no"; then
7346 # AC_CHECK_PROG will print out the result in this case
7347 # Extract the first word of "distcc", so it can be a program name with args.
7348 set dummy distcc; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_path_DISTCC+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 case $DISTCC in
7355 [\\/]* | ?:[\\/]*)
7356 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7372 IFS=$as_save_IFS
7374 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7376 esac
7378 DISTCC=$ac_cv_path_DISTCC
7379 if test -n "$DISTCC"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7381 $as_echo "$DISTCC" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7394 $as_echo_n "checking whether to enable ccache... " >&6; }
7395 # Check whether --enable-ccache was given.
7396 if test "${enable_ccache+set}" = set; then :
7397 enableval=$enable_ccache; ccache="$enableval"
7398 else
7399 ccache="no"
7402 if test "$ccache" != "" -a "$ccache" != "no"; then
7403 # AC_CHECK_PROG will print out the result in this case
7404 # Extract the first word of "ccache", so it can be a program name with args.
7405 set dummy ccache; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_CCACHE+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$CCACHE"; then
7412 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_CCACHE="ccache"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7425 done
7426 done
7427 IFS=$as_save_IFS
7431 CCACHE=$ac_cv_prog_CCACHE
7432 if test -n "$CCACHE"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7434 $as_echo "$CCACHE" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 #-----------------------------------------------------------------------------
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7448 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7450 # Check whether --with-gcc-version was given.
7451 if test "${with_gcc_version+set}" = set; then :
7452 withval=$with_gcc_version; kernel_tool_version="$withval"
7453 else
7454 kernel_tool_version="default"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7458 $as_echo "$kernel_tool_version" >&6; }
7460 #-----------------------------------------------------------------------------
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7462 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7464 # Check whether --with-gcc-version was given.
7465 if test "${with_gcc_version+set}" = set; then :
7466 withval=$with_gcc_version; target_tool_version="$withval"
7467 else
7468 target_tool_version="default"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7472 $as_echo "$target_tool_version" >&6; }
7474 #-----------------------------------------------------------------------------
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7476 $as_echo_n "checking what optimization flags to use... " >&6; }
7478 # Check whether --with-optimization was given.
7479 if test "${with_optimization+set}" = set; then :
7480 withval=$with_optimization; optimization="$withval"
7481 else
7482 optimization="unknown"
7485 if test "$optimization" = "unknown"; then
7486 if test "$debug" != "none"; then
7487 optimization="-O0"
7488 else
7489 optimization="-O2"
7492 aros_config_cflags="$aros_config_cflags $optimization"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7494 $as_echo "$optimization" >&6; }
7496 #-----------------------------------------------------------------------------
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7498 $as_echo_n "checking what paranoia flags to use... " >&6; }
7500 # Check whether --with-paranoia was given.
7501 if test "${with_paranoia+set}" = set; then :
7502 withval=$with_paranoia; paranoia_flags="$withval"
7503 else
7504 paranoia_flags="default"
7507 if test "$paranoia_flags" = "default"; then
7508 paranoia_flags=""
7509 else if test "$paranoia_flags" = "yes"; then
7510 paranoia_flags="-Wall -Werror"
7511 fi fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7513 $as_echo "$paranoia_flags" >&6; }
7514 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7516 #-----------------------------------------------------------------------------
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7518 $as_echo_n "checking what target variant to enable... " >&6; }
7519 # Check whether --enable-target_variant was given.
7520 if test "${enable_target_variant+set}" = set; then :
7521 enableval=$enable_target_variant; target_variant=$enableval
7522 else
7523 target_variant=""
7526 if test "$target_variant" = ""; then
7527 aros_target_variant=""
7528 aros_target_suffix=""
7529 enableval="none"
7530 else
7531 aros_target_variant="$target_variant"
7532 aros_target_suffix="-$target_variant"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7535 $as_echo "$enableval" >&6; }
7537 #-----------------------------------------------------------------------------
7538 # Target-specific defaults. You can override then on a per-target basis.
7540 # Bootloader name. Currently used by PC target.
7541 target_bootloader="none"
7543 #-----------------------------------------------------------------------------
7544 # Additional options for some specific targets
7546 case "$aros_target_variant" in
7547 ios)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7549 $as_echo_n "checking XCode path... " >&6; }
7551 # Check whether --with-xcode was given.
7552 if test "${with_xcode+set}" = set; then :
7553 withval=$with_xcode; aros_xcode_path="$withval"
7554 else
7555 aros_xcode_path="/Developer"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7559 $as_echo "$aros_xcode_path" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7562 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7564 # Check whether --with-sdk-version was given.
7565 if test "${with_sdk_version+set}" = set; then :
7566 withval=$with_sdk_version; aros_sdk_version="$withval"
7567 else
7568 aros_sdk_version="4.1"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7572 $as_echo "$aros_sdk_version" >&6; }
7576 "android")
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7578 $as_echo_n "checking Android SDK path... " >&6; }
7580 # Check whether --with-sdk was given.
7581 if test "${with_sdk+set}" = set; then :
7582 withval=$with_sdk; aros_android_sdk="$withval"
7583 else
7584 aros_android_sdk=$default_android_sdk
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7588 $as_echo "$aros_android_sdk" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7591 $as_echo_n "checking Android NDK path... " >&6; }
7593 # Check whether --with-ndk was given.
7594 if test "${with_ndk+set}" = set; then :
7595 withval=$with_ndk; aros_android_ndk="$withval"
7596 else
7597 aros_android_ndk="none"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7601 $as_echo "$aros_android_ndk" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7604 $as_echo_n "checking what Android SDK version to use... " >&6; }
7606 # Check whether --with-sdk-version was given.
7607 if test "${with_sdk_version+set}" = set; then :
7608 withval=$with_sdk_version; aros_sdk_version="$withval"
7609 else
7610 aros_sdk_version="12"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7614 $as_echo "$aros_sdk_version" >&6; }
7616 if test "$aros_android_ndk" != "none"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7618 $as_echo_n "checking what Android NDK version to use... " >&6; }
7620 # Check whether --with-ndk-version was given.
7621 if test "${with_ndk_version+set}" = set; then :
7622 withval=$with_ndk_version; aros_ndk_version="$withval"
7623 else
7624 aros_ndk_version="9"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7628 $as_echo "$aros_ndk_version" >&6; }
7631 export PATH="$aros_android_sdk/tools:$PATH"
7632 # Extract the first word of "$android_tool", so it can be a program name with args.
7633 set dummy $android_tool; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_path_android_tool+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $android_tool in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7655 done
7656 done
7657 IFS=$as_save_IFS
7660 esac
7662 android_tool=$ac_cv_path_android_tool
7663 if test -n "$android_tool"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7665 $as_echo "$android_tool" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7672 if test "$android_tool" = ""; then
7673 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7676 aros_android_level=android-$aros_sdk_version
7677 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7678 echo "Platform $aros_android_level is not installed in your SDK"
7679 echo "Use --with-sdk-version=<API level number> to select another platform version"
7680 echo "You can check what plaform versions are installed in your SDK"
7681 echo "by examining contents of $aros_android_sdk/platforms directory"
7682 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7685 # Extract the first word of "ant", so it can be a program name with args.
7686 set dummy ant; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_path_ant+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 case $ant in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7710 IFS=$as_save_IFS
7713 esac
7715 ant=$ac_cv_path_ant
7716 if test -n "$ant"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7718 $as_echo "$ant" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7725 if test "$ant" = ""; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7727 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7730 if test "$host_os" = "mingw32"; then
7731 android_tool="cmd //c $android_tool"
7735 esac
7737 #-----------------------------------------------------------------------------
7738 # External toolchains
7739 kernel_tool_prefix="none"
7740 aros_tool_prefix="none"
7741 elf_tool_prefix="${target_cpu}-elf-"
7743 # This is the target configuration switch.
7744 case "$target_os" in
7745 linux*)
7746 aros_target_arch="linux"
7747 aros_target_family="unix"
7748 case "$target_cpu" in
7749 *m68k*)
7750 aros_target_cpu="m68k"
7751 aros_object_format="m68kelf"
7752 aros_flavour="emulcompat"
7753 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7754 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7755 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7756 gcc_target_cpu="mc68000"
7758 *i?86*)
7759 aros_target_cpu="i386"
7760 aros_object_format="elf_i386"
7761 aros_flavour="emulation"
7762 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7763 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7764 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7765 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7766 aros_config_ldflags="-m32 -march=i486"
7767 aros_kernel_ldflags="-melf_i386"
7768 aros_default_wbdepth=8
7769 gcc_target_cpu="i386"
7770 pci_hidd_target="hidd-pci-linux"
7771 android_tool_dir_prefix="x86"
7772 android_tool_prefix="i686-android-linux"
7773 android_ndk_arch="x86"
7775 *x86_64*)
7776 aros_target_cpu="x86_64"
7777 aros_object_format="elf_x86_64"
7778 aros_flavour="emulation"
7779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7780 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7781 aros_default_wbdepth=8
7782 pci_hidd_target="hidd-pci-linux"
7784 *powerpc*)
7785 aros_target_cpu="ppc"
7786 aros_object_format="elf32ppc"
7787 aros_flavour="emulation"
7788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7789 aros_default_wbdepth=8
7790 gcc_target_cpu="ppc"
7792 # TODO
7793 # Same as powerpc, but I need this for the nightly build to work again.
7794 # Actually, the nightly should be made working with powerpc target.
7795 # That just was too much work for the moment, another week or two.
7796 *ppc*)
7797 aros_target_cpu="ppc"
7798 aros_object_format="elf32ppc"
7799 aros_flavour="emulation"
7800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7801 aros_default_wbdepth=8
7802 gcc_target_cpu="ppc"
7804 *arm*)
7805 aros_target_cpu="arm"
7806 aros_object_format="armelf_linux_eabi"
7807 aros_flavour="emulation"
7808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7809 gcc_target_cpu="arm"
7810 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7811 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7812 aros_arch_libs="-laeabi"
7813 android_tool_dir_prefix="arm-linux-androideabi"
7814 android_tool_prefix="arm-linux-androideabi"
7815 android_ndk_arch="arm"
7816 kernel_tool_prefix="arm-linux-gnueabi-"
7819 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7821 esac
7822 case "$aros_target_variant" in
7823 android)
7825 if test "$android_ndk_arch" = ""; then
7826 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7829 aros_default_wbwidth=320
7830 aros_default_wbheight=480
7831 if test "$aros_android_ndk" = "none"; then
7832 aros_kernel_cflags="-mandroid"
7833 aros_kernel_ldflags="-mandroid"
7834 CFLAGS="-mandroid"
7835 else
7836 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7837 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7838 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7839 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7840 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7841 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7843 need_x11=no
7844 x11_hidd_target=kernel-hidd-androidgfx-kobj
7845 # Disable implicit PIC mode
7846 aros_target_cflags="$aros_target_cflags -fno-pic"
7847 kernel_tool_prefix="$android_tool_prefix-"
7849 esac
7853 aros_target_arch="pc"
7854 aros_shared_default="no"
7855 target_bootloader="grub2"
7856 case "$target_cpu" in
7857 *i?86*)
7858 aros_target_cpu="i386"
7861 if test "$aros_object_format" = "" ; then
7862 aros_object_format="elf_i386"
7864 aros_flavour="standalone"
7865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7866 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7867 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7868 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7869 aros_config_ldflags="-m32 -march=i486"
7870 aros_kernel_ldflags="-melf_i386"
7871 aros_default_wbwidth=640
7872 aros_default_wbheight=480
7873 gcc_target_cpu="i386"
7875 *x86_64*)
7876 aros_target_cpu="x86_64"
7877 aros_serial_debug=1
7878 if test "$aros_object_format" = "" ; then
7879 aros_object_format="elf_x86_64"
7881 aros_flavour="standalone"
7882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7883 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7884 aros_kernel_ldflags=""
7885 aros_default_wbwidth=640
7886 aros_default_wbheight=480
7889 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7891 esac
7894 prep)
7895 aros_target_arch="prep"
7896 aros_shared_default="no"
7897 aros_target_cpu="ppc"
7898 aros_object_format="elf32ppc"
7899 aros_flavour="ppcnative"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7901 aros_kernel_ldflags=""
7902 aros_default_wbwidth=640
7903 aros_default_wbheight=480
7904 gcc_target_cpu="ppc"
7907 freebsd*)
7908 aros_target_arch="freebsd"
7909 aros_target_family="unix"
7910 aros_target_cpu="i386"
7911 aros_flavour="emulation"
7912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7913 gcc_target_cpu="i386"
7915 aros_target_strip_flags="-x"
7918 darwin*)
7919 aros_target_arch="darwin"
7920 aros_target_family="unix"
7921 aros_flavour="emulation"
7922 case "$target_cpu" in
7923 *i?86*)
7924 aros_ios_platform="iPhoneSimulator"
7925 aros_target_cpu="i386"
7926 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7927 aros_kernel_ldflags=""
7928 aros_macosx_version="10.4"
7929 aros_default_wbdepth=8
7930 gcc_target_cpu="i386"
7931 aros_object_format="elf_i386"
7932 aros_kernel_ar_flags="-cr"
7933 aros_target_strip_flags="-x"
7934 kernel_tool_flags="-m32"
7936 *x86_64*)
7937 aros_target_cpu="x86_64"
7938 aros_object_format="elf_x86_64"
7939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7940 aros_macosx_version="10.6"
7941 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7942 aros_kernel_cflags="-m64"
7943 aros_kernel_ldflags="-m64"
7944 aros_target_cflags="-mcmodel=large"
7945 aros_default_wbdepth=8
7946 aros_kernel_ar="ar"
7947 aros_kernel_ar_flags="-cr"
7948 aros_kernel_ld="ld"
7949 aros_kernel_ranlib="ranlib"
7951 *ppc*)
7952 aros_target_cpu="ppc"
7953 aros_object_format="elf32ppc"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7955 aros_kernel_ldflags=""
7956 aros_macosx_version="10.0"
7957 aros_default_wbdepth=8
7958 gcc_target_cpu="ppc"
7959 aros_kernel_ar="ar"
7960 aros_kernel_ar_flags="-cr"
7961 aros_kernel_ld="ld -arch ppc"
7962 aros_kernel_ranlib="ranlib -arch ppc"
7963 kernel_tool_prefix="powerpc-apple-darwin10-"
7965 *arm*)
7966 aros_ios_platform="iPhoneOS"
7967 aros_target_cpu="arm"
7968 aros_object_format="armelf_linux_eabi"
7969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7970 aros_arch_libs="-laeabi"
7971 aros_default_wbdepth=8
7972 gcc_target_cpu="arm"
7973 aros_kernel_ar="ar"
7974 aros_kernel_ar_flags="-cr"
7975 aros_kernel_ld="ld -arch arm"
7976 aros_kernel_ranlib="ranlib -arch arm"
7977 kernel_tool_prefix="arm-apple-darwin10-"
7978 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7981 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7983 esac
7984 case "$aros_target_variant" in
7985 ios)
7986 aros_ios_version="3.0"
7987 aros_default_wbwidth=320
7988 aros_default_wbheight=480
7989 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7990 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7991 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7992 need_x11=no
7993 # This is here because it may depend on iOS or SDK version
7994 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7995 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7996 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7999 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8000 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8002 esac
8005 dragonfly*)
8006 aros_target_arch="dragonfly"
8007 aros_target_family="unix"
8008 aros_flavour="emulation"
8009 case "$target_cpu" in
8010 *i?86*)
8011 aros_target_cpu="i386"
8012 aros_object_format="elf_i386"
8013 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8015 *x86_64*)
8016 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8017 aros_target_cpu="x86_64"
8018 aros_object_format="elf_x86_64"
8019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8022 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8024 esac
8027 netbsd*)
8028 aros_target_arch="netbsd"
8029 aros_target_family="unix"
8030 case "$target_cpu" in
8031 *m68k*)
8032 aros_target_cpu="m68k"
8033 aros_object_format="m68kelf"
8034 aros_flavour="emulcompat"
8035 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8036 gcc_target_cpu="mc68000"
8038 *i?86*)
8039 aros_target_cpu="i386"
8040 aros_object_format="elf_i386"
8041 aros_flavour="emulation"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8043 aros_default_wbdepth=8
8044 gcc_target_cpu="i386"
8047 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8049 esac
8050 aros_target_genmap="-Wl,-M -Xlinker >"
8051 aros_flavour="emulation"
8052 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8055 openbsd*)
8056 aros_target_arch="openbsd"
8057 aros_target_family="unix"
8058 case "$target_cpu" in
8059 *i?86*)
8060 aros_target_cpu="i386"
8061 aros_object_format="elf_i386"
8062 aros_flavour="emulation"
8063 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8064 gcc_target_cpu="i386"
8067 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8069 esac
8070 aros_target_genmap="-Wl,-M -Xlinker >"
8071 aros_target_nm_flags="-u"
8072 aros_flavour="emulation"
8075 solaris*)
8076 aros_target_arch="solaris"
8077 aros_target_family="unix"
8078 case "$target_cpu" in
8079 *i?86*)
8080 aros_target_cpu="i386"
8081 aros_object_format="elf_i386"
8082 aros_flavour="emulation"
8083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8084 aros_default_wbdepth=8
8085 gcc_target_cpu="i386"
8087 *sparc*)
8088 aros_target_cpu="sparc"
8089 aros_object_format="elf_sparc"
8090 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8091 gcc_target_cpu="sparc"
8094 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8096 esac
8097 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8098 aros_flavour="emulation"
8101 morphos*)
8102 aros_target_arch="morphos"
8103 aros_shared_default="no"
8104 aros_target_cpu="ppc"
8105 aros_object_format="elf_ppc"
8106 aros_flavour="nativecompat"
8107 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8108 gcc_target_cpu="ppc"
8111 sam440)
8112 aros_target_arch="sam440"
8113 aros_shared_default="no"
8114 aros_target_cpu="ppc"
8115 aros_object_format="elf32ppc"
8116 aros_flavour="ppcnative"
8117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8118 aros_kernel_ldflags=""
8119 aros_default_wbwidth=1024
8120 aros_default_wbheight=768
8121 aros_default_wbdepth=24
8122 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8123 gcc_target_cpu="powerpc"
8126 efika)
8127 aros_target_arch="efika"
8128 aros_shared_default="no"
8129 aros_target_cpu="arm"
8130 aros_object_format="armelf_linux_eabi"
8131 aros_flavour="standalone"
8132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8133 aros_kernel_ldflags=""
8134 aros_default_wbwidth=1024
8135 aros_default_wbheight=600
8136 aros_arch_libs="-laeabi"
8137 gcc_default_cpu="armv7-a"
8138 gcc_default_fpu="vfpv3"
8139 gcc_default_float_abi="softfp"
8140 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8141 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8144 chrp)
8145 aros_target_arch="chrp"
8146 aros_shared_default="no"
8147 aros_target_cpu="ppc"
8148 aros_object_format="elf32ppc"
8149 aros_flavour="ppcnative"
8150 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8151 aros_kernel_ldflags=""
8152 aros_default_wbwidth=640
8153 aros_default_wbheight=480
8154 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8155 gcc_target_cpu="powerpc"
8156 case "$aros_target_variant" in
8157 efika)
8158 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8160 esac
8163 amiga*)
8164 aros_target_arch="amiga"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8166 aros_shared_default="no"
8168 case "$target_cpu" in
8169 *m68k*)
8170 # Check whether --enable-amigaos_compliance was given.
8171 if test "${enable_amigaos_compliance+set}" = set; then :
8172 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8175 aros_enable_mmu=no
8176 aros_target_cpu="m68k"
8177 aros_object_format="m68kelf"
8178 aros_flavour="standcompat"
8179 gcc_target_cpu="m68000"
8180 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8181 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8182 # Needed to get the correct multilib
8183 aros_config_ldflags="-${gcc_target_cpu}"
8184 aros_shared_ldflags="-${gcc_target_cpu}"
8185 aros_kernel_ldflags="-${gcc_target_cpu}"
8186 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8187 aros_target_strip_flags="-R.comment --strip-debug"
8188 aros_default_wbwidth=640
8189 aros_default_wbheight=256
8190 aros_default_wbdepth=2
8192 *ppc*)
8193 aros_cpu="ppc"
8194 aros_flavour="native"
8195 gcc_target_cpu="ppc"
8198 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8200 esac
8203 mingw*)
8204 aros_target_arch="mingw32"
8205 aros_shared_default="no"
8206 aros_flavour="emulation"
8207 aros_shared_cflags=""
8208 need_crosstools="yes"
8209 need_dlopen="no"
8210 rescomp="windres"
8211 case "$target_cpu" in
8212 *i?86*)
8213 aros_target_cpu="i386"
8214 aros_object_format="elf_i386"
8215 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8216 aros_default_wbdepth=8
8217 gcc_target_cpu="i386"
8219 kernel_tool_prefix="i386-mingw32-"
8221 *x86_64*)
8222 aros_target_cpu="x86_64"
8223 aros_object_format="elf_x86_64"
8224 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8225 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8226 aros_default_wbdepth=8
8227 kernel_tool_prefix="x86_64-w64-mingw32-"
8229 *arm*)
8230 aros_target_cpu="arm"
8231 aros_object_format="armelf_linux_eabi"
8232 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8233 aros_arch_libs="-laeabi"
8234 aros_default_wbdepth=8
8235 gcc_target_cpu="arm"
8236 gcc_default_float_abi="soft"
8237 kernel_tool_prefix="arm-mingw32ce-"
8238 aros_default_wbwidth=160
8239 aros_default_wbheight=160
8242 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8244 esac
8245 if test $host_os = "cygwin"; then
8246 aros_kernel_cflags="-mno-cygwin"
8249 pp*)
8250 aros_target_arch="pp"
8251 aros_shared_default="no"
8252 case "$target_cpu" in
8253 *m68k*)
8254 aros_target_cpu="m68k"
8255 aros_object_format="m68kelf"
8256 aros_flavour="palmnative"
8257 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8258 aros_default_wbwidth=160
8259 aros_default_wbheight=160
8260 aros_default_wbdepth=1
8261 aros_target_ar_flags="cru"
8262 aros_compiler_libs="-lgcc1"
8263 aros_shared_default=no
8264 aros_shared_cflags="-fpic"
8265 aros_shared_aflags=""
8266 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8267 aros_kernel_ldflags="-Wl,-rpath,./lib"
8268 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8269 aros_debug_aflags=""
8270 aros_debug_ldflags="$aros_symbols_debug"
8271 aros_mungwall_debug="0"
8272 aros_modules_debug="0"
8273 gcc_target_cpu="mc68000"
8274 ignore_undefined_symbols="-ius"
8277 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8279 esac
8282 mac*)
8283 aros_target_arch="mac"
8284 aros_shared_default="no"
8285 case "$target_cpu" in
8286 *m68k*)
8287 aros_target_cpu="m68k"
8288 aros_object_format="m68kelf"
8289 aros_flavour="mac68knative"
8290 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8291 aros_default_wbwidth=512
8292 aros_default_wbheight=384
8293 aros_default_wbdepth=8
8294 aros_target_ar_flags="cru"
8295 aros_compiler_libs="-lgcc1"
8296 aros_shared_default=no
8297 aros_shared_cflags="-fpic"
8298 aros_shared_aflags=""
8299 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8300 aros_kernel_ldflags="-Wl,-rpath,./lib"
8301 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8302 aros_debug_aflags=""
8303 aros_debug_ldflags="$aros_symbols_debug"
8304 aros_mungwall_debug="0"
8305 aros_modules_debug="0"
8306 gcc_target_cpu="mc68000"
8307 ignore_undefined_symbols="-ius"
8310 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8312 esac
8316 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8318 esac
8320 #-----------------------------------------------------------------------------
8321 crosstools_guess=yes
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8324 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8326 # Check whether --with-kernel-toolchain-prefix was given.
8327 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8328 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8332 $as_echo "$kernel_tool_prefix" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8335 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8337 # Check whether --with-elf-toolchain-prefix was given.
8338 if test "${with_elf_toolchain_prefix+set}" = set; then :
8339 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8340 crosstools_guess=no
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8344 $as_echo "$elf_tool_prefix" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8347 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8349 # Check whether --with-aros-toolchain was given.
8350 if test "${with_aros_toolchain+set}" = set; then :
8351 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8352 crosstools_guess=no
8355 if test "$aros_tool_prefix" = "yes" ; then
8356 aros_tool_prefix=$aros_target_cpu-aros-
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8359 $as_echo "$aros_tool_prefix" >&6; }
8361 #-----------------------------------------------------------------------------
8362 # Checking if we should build crosstools..
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8364 $as_echo_n "checking whether to build crosstools... " >&6; }
8365 # Check whether --enable-crosstools was given.
8366 if test "${enable_crosstools+set}" = set; then :
8367 enableval=$enable_crosstools; crosstools="$enableval"
8368 else
8369 crosstools="$crosstools_guess"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8373 $as_echo "$crosstools" >&6; }
8375 if test "${crosstools}" = "yes"; then
8376 if test "${crosstools_guess}" = "no"; then
8377 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8382 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8384 # Check whether --with-aros-toolchain-install was given.
8385 if test "${with_aros_toolchain_install+set}" = set; then :
8386 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8389 if test "x$aros_toolchain_install" = "x"; then
8390 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8391 else
8392 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8393 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8396 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8399 # Now process extra architecture-specific options.
8400 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8401 # as well as floating-point ABI.
8402 case "$aros_target_cpu" in
8403 arm)
8404 if test "$gcc_default_cpu" = ""; then
8405 gcc_default_cpu="armv6"
8407 if test "$gcc_default_fpu" = ""; then
8408 gcc_default_fpu="vfp"
8410 if test "$gcc_default_float_abi" = ""; then
8411 gcc_default_float_abi="softfp"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8415 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8417 # Check whether --with-cpu was given.
8418 if test "${with_cpu+set}" = set; then :
8419 withval=$with_cpu; aros_gcc_cpu="$withval"
8420 else
8421 aros_gcc_cpu=$gcc_default_cpu
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8425 $as_echo "$aros_gcc_cpu" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8428 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8430 # Check whether --with-fpu was given.
8431 if test "${with_fpu+set}" = set; then :
8432 withval=$with_fpu; aros_gcc_fpu="$withval"
8433 else
8434 aros_gcc_fpu=$gcc_default_fpu
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8438 $as_echo "$aros_gcc_fpu" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8441 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8443 # Check whether --with-float was given.
8444 if test "${with_float+set}" = set; then :
8445 withval=$with_float; aros_gcc_float_abi="$withval"
8446 else
8447 aros_gcc_float_abi=$gcc_default_float_abi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8451 $as_echo "$aros_gcc_float_abi" >&6; }
8453 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"
8454 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"
8456 esac
8458 # Some formats need custom ELF specs.
8459 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8460 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8461 elf_specs_in=config/${aros_object_format}-specs.in
8462 else
8463 elf_specs_in=config/elf-specs.in
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8467 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8469 # Check whether --with-aros-gcc was given.
8470 if test "${with_aros_gcc+set}" = set; then :
8471 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8472 else
8473 aros_gcc_version=""
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8477 $as_echo "$aros_gcc_version" >&6; }
8479 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8480 # Since we override specs, we may need to put these defines there
8481 if test "$gcc_target_cpu" != ""; then
8482 gcc_target_cpu="-D__${gcc_target_cpu}__"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8486 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8488 # Check whether --with-portssources was given.
8489 if test "${with_portssources+set}" = set; then :
8490 withval=$with_portssources; with_portssrcdir=$withval
8491 else
8492 with_portssrcdir="default"
8495 if test "$with_portssrcdir" = "default"; then
8496 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8497 else
8498 AROS_PORTSSRCDIR="$with_portssrcdir"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8501 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8504 $as_echo_n "checking which bootloader to use... " >&6; }
8506 # Check whether --with-bootloader was given.
8507 if test "${with_bootloader+set}" = set; then :
8508 withval=$with_bootloader; target_bootloader=$withval
8509 else
8510 target_bootloader=$target_bootloader
8513 if test "$target_bootloader" = "none"; then
8514 aros_target_bootloader=""
8515 else
8516 aros_target_bootloader="$target_bootloader"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8519 $as_echo "$target_bootloader" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8522 $as_echo_n "checking which icon-set to use... " >&6; }
8524 # Check whether --with-iconset was given.
8525 if test "${with_iconset+set}" = set; then :
8526 withval=$with_iconset; target_iconset=$withval
8527 else
8528 target_iconset="default"
8531 if test "$target_iconset" = "default"; then
8532 aros_target_iconset="Gorilla"
8533 target_iconset="default (Gorilla)"
8534 else
8535 aros_target_iconset="$target_iconset"
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8538 $as_echo "$target_iconset" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8541 $as_echo_n "checking which GUI Theme to use... " >&6; }
8543 # Check whether --with-theme was given.
8544 if test "${with_theme+set}" = set; then :
8545 withval=$with_theme; target_guitheme=$withval
8546 else
8547 target_guitheme="default"
8550 if test "$target_guitheme" = "default"; then
8551 aros_target_guitheme="Ice"
8552 else
8553 aros_target_guitheme="$target_guitheme"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8556 $as_echo "$aros_target_guitheme" >&6; }
8558 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8559 # for target code)
8560 cross_compiling=no
8562 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8563 cross_compiling=yes
8566 if test "$aros_host_cpu" == "x86_64" ; then
8567 if test "$aros_target_cpu" == "i386" ; then
8568 cross_compiling=no
8572 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8573 if test "$aros_host_arch" != "$aros_target_arch" ; then
8574 cross_compiling=yes
8576 else
8577 if test "$host_cc_elf" = "no" ; then
8578 cross_compiling=yes
8582 if test "$cross_compiling" = "no" ; then
8583 kernel_tool_prefix=""
8584 if test "$host_cc_elf" = "yes" ; then
8585 elf_tool_prefix=""
8589 #######################################################################
8590 ## Compute what toolchains to use, and their paths ##
8591 #######################################################################
8593 # This takes, as input:
8594 # crosstools {yes,no}
8595 # aros_gcc_version {default,[version]}
8596 # kernel_tool_prefix {none,[some-arch-os-]}
8597 # aros_tool_prefix ${target_cpu}-aros-
8599 # The output is
8600 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8601 # Where the 'kernel' binaries are located
8602 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8603 # Where the 'target' binaries are located
8604 # (not the symlink farm - that is aros_target_*!)
8606 # The rules are:
8607 # if crosstools then
8608 # if kernel_tools_prefix = "no-kernel-prefix-"
8609 # aros_kernel_* = crosstools cc paths
8610 # aros_kernel_cc = elf cc wrapper around crosstools cc
8611 # else
8612 # VALIDATE(${kernel_tools_prefix}*)
8613 # aros_kernel_* = ${kernel_tools_prefix}*
8614 # if ${kernel_tools_prefix}cc is an AROS gcc
8615 # aros_kernel_cc = ${kernel_tools_prefix}cc
8616 # else
8617 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8618 # fi
8619 # fi
8621 # orig_target_* = aros built crosstools
8622 # orig_target_cc = elf cc wrapper around crosstools cc
8623 # else
8624 # VALIDATE(${kernel_tools_prefix}*)
8626 # orig_target_* = aros_kernel_*
8627 # if aros_kernel_cc is an AROS gcc
8628 # orig_target_cc = aros_kernel_cc
8629 # else
8630 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8631 # fi
8632 # fi
8634 target_tool_prefix="${target_cpu}-aros-"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8637 $as_echo_n "checking which kernel tools... " >&6; }
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8639 $as_echo "$kernel_tool_prefix" >&6; };
8641 if test "$kernel_tool_prefix" = "none" ; then
8642 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8643 as_fn_error $? "--with-kernel-tool-prefix= is required for this arch" "$LINENO" 5
8645 else
8646 # Kernel tools required - find them
8647 # Note that 'normally', aros_kernel_* overrides will
8648 # empty, unless specified in the per-arch sections above.
8650 if test "$aros_kernel_cpp" = ""; then
8651 if test "$cross_compiling" = "yes" ; then
8652 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8653 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 case $aros_kernel_cpp in
8660 [\\/]* | ?:[\\/]*)
8661 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8675 done
8676 done
8677 IFS=$as_save_IFS
8680 esac
8682 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8683 if test -n "$aros_kernel_cpp"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8685 $as_echo "$aros_kernel_cpp" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8692 else
8693 if test "$GCC" = "yes"; then
8694 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8695 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8696 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 case $aros_kernel_cpp in
8703 [\\/]* | ?:[\\/]*)
8704 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in `dirname $aros_gcc_cpp`
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8718 done
8719 done
8720 IFS=$as_save_IFS
8723 esac
8725 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8726 if test -n "$aros_kernel_cpp"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8728 $as_echo "$aros_kernel_cpp" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8736 if test "$aros_kernel_cpp" = ""; then
8737 # Extract the first word of "cpp", so it can be a program name with args.
8738 set dummy cpp; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 case $aros_kernel_cpp in
8745 [\\/]* | ?:[\\/]*)
8746 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 for as_dir in $PATH
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8756 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 break 2
8760 done
8761 done
8762 IFS=$as_save_IFS
8765 esac
8767 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8768 if test -n "$aros_kernel_cpp"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8770 $as_echo "$aros_kernel_cpp" >&6; }
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8779 else
8780 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8781 set dummy $aros_kernel_cpp; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 case $aros_kernel_cpp in
8788 [\\/]* | ?:[\\/]*)
8789 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8799 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8803 done
8804 done
8805 IFS=$as_save_IFS
8808 esac
8810 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8811 if test -n "$aros_kernel_cpp"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8813 $as_echo "$aros_kernel_cpp" >&6; }
8814 else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8822 if test "$aros_kernel_cpp" = ""; then
8823 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8825 if test "x$aros_kernel_cc" = "x"; then
8826 aros_kernel_cc=${kernel_tool_prefix}gcc
8829 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8830 if test "$cross_compiling" = "yes" ; then
8831 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8832 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 case $aros_kernel_cc in
8839 [\\/]* | ?:[\\/]*)
8840 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8854 done
8855 done
8856 IFS=$as_save_IFS
8859 esac
8861 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8862 if test -n "$aros_kernel_cc"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8864 $as_echo "$aros_kernel_cc" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8871 else
8872 if test "$GCC" = "yes"; then
8873 aros_gcc_cc=`$CC -print-prog-name=cc`
8874 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8875 set dummy `basename $aros_gcc_cc`; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 case $aros_kernel_cc in
8882 [\\/]* | ?:[\\/]*)
8883 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in `dirname $aros_gcc_cc`
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8897 done
8898 done
8899 IFS=$as_save_IFS
8902 esac
8904 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8905 if test -n "$aros_kernel_cc"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8907 $as_echo "$aros_kernel_cc" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test "$aros_kernel_cc" = ""; then
8916 # Extract the first word of "cc", so it can be a program name with args.
8917 set dummy cc; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 case $aros_kernel_cc in
8924 [\\/]* | ?:[\\/]*)
8925 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8939 done
8940 done
8941 IFS=$as_save_IFS
8944 esac
8946 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8947 if test -n "$aros_kernel_cc"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8949 $as_echo "$aros_kernel_cc" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8958 else
8959 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8960 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 case $aros_kernel_cc in
8967 [\\/]* | ?:[\\/]*)
8968 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8987 esac
8989 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8990 if test -n "$aros_kernel_cc"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8992 $as_echo "$aros_kernel_cc" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
9001 if test "$aros_kernel_cc" = ""; then
9002 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9004 if test "x$aros_kernel_cxx" = "x"; then
9005 aros_kernel_cxx=${kernel_tool_prefix}g++
9008 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
9009 if test "$cross_compiling" = "yes" ; then
9010 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9011 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 case $aros_kernel_cxx in
9018 [\\/]* | ?:[\\/]*)
9019 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9033 done
9034 done
9035 IFS=$as_save_IFS
9038 esac
9040 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9041 if test -n "$aros_kernel_cxx"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9043 $as_echo "$aros_kernel_cxx" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9050 else
9051 if test "$GCC" = "yes"; then
9052 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9053 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9054 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 case $aros_kernel_cxx in
9061 [\\/]* | ?:[\\/]*)
9062 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in `dirname $aros_gcc_cxx`
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9076 done
9077 done
9078 IFS=$as_save_IFS
9081 esac
9083 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9084 if test -n "$aros_kernel_cxx"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9086 $as_echo "$aros_kernel_cxx" >&6; }
9087 else
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9094 if test "$aros_kernel_cxx" = ""; then
9095 # Extract the first word of "cxx", so it can be a program name with args.
9096 set dummy cxx; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 case $aros_kernel_cxx in
9103 [\\/]* | ?:[\\/]*)
9104 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9118 done
9119 done
9120 IFS=$as_save_IFS
9123 esac
9125 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9126 if test -n "$aros_kernel_cxx"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9128 $as_echo "$aros_kernel_cxx" >&6; }
9129 else
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131 $as_echo "no" >&6; }
9137 else
9138 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9139 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 $as_echo_n "checking for $ac_word... " >&6; }
9142 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 case $aros_kernel_cxx in
9146 [\\/]* | ?:[\\/]*)
9147 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9161 done
9162 done
9163 IFS=$as_save_IFS
9166 esac
9168 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9169 if test -n "$aros_kernel_cxx"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9171 $as_echo "$aros_kernel_cxx" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9180 # If it's set, make sure it's really there
9181 if test "x$aros_kernel_cxx" != "x" ; then
9182 if test "$aros_kernel_cxx" = ""; then
9183 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9187 if test "$aros_kernel_ld" = ""; then
9188 if test "$cross_compiling" = "yes" ; then
9189 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9190 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 case $aros_kernel_ld in
9197 [\\/]* | ?:[\\/]*)
9198 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9212 done
9213 done
9214 IFS=$as_save_IFS
9217 esac
9219 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9220 if test -n "$aros_kernel_ld"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9222 $as_echo "$aros_kernel_ld" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9229 else
9230 if test "$GCC" = "yes"; then
9231 aros_gcc_ld=`$CC -print-prog-name=ld`
9232 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9233 set dummy `basename $aros_gcc_ld`; ac_word=$2
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235 $as_echo_n "checking for $ac_word... " >&6; }
9236 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 case $aros_kernel_ld in
9240 [\\/]* | ?:[\\/]*)
9241 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in `dirname $aros_gcc_ld`
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9251 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9255 done
9256 done
9257 IFS=$as_save_IFS
9260 esac
9262 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9263 if test -n "$aros_kernel_ld"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9265 $as_echo "$aros_kernel_ld" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9273 if test "$aros_kernel_ld" = ""; then
9274 # Extract the first word of "ld", so it can be a program name with args.
9275 set dummy ld; ac_word=$2
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277 $as_echo_n "checking for $ac_word... " >&6; }
9278 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 case $aros_kernel_ld in
9282 [\\/]* | ?:[\\/]*)
9283 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 break 2
9297 done
9298 done
9299 IFS=$as_save_IFS
9302 esac
9304 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9305 if test -n "$aros_kernel_ld"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9307 $as_echo "$aros_kernel_ld" >&6; }
9308 else
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9316 else
9317 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9318 set dummy $aros_kernel_ld; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 case $aros_kernel_ld in
9325 [\\/]* | ?:[\\/]*)
9326 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9340 done
9341 done
9342 IFS=$as_save_IFS
9345 esac
9347 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9348 if test -n "$aros_kernel_ld"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9350 $as_echo "$aros_kernel_ld" >&6; }
9351 else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9359 if test "$aros_kernel_ld" = ""; then
9360 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9363 if test "$aros_kernel_as" = ""; then
9364 if test "$cross_compiling" = "yes" ; then
9365 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9366 set dummy ${kernel_tool_prefix}as; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if ${ac_cv_path_aros_kernel_as+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 case $aros_kernel_as in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9388 done
9389 done
9390 IFS=$as_save_IFS
9393 esac
9395 aros_kernel_as=$ac_cv_path_aros_kernel_as
9396 if test -n "$aros_kernel_as"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9398 $as_echo "$aros_kernel_as" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9405 else
9406 if test "$GCC" = "yes"; then
9407 aros_gcc_as=`$CC -print-prog-name=as`
9408 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9409 set dummy `basename $aros_gcc_as`; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if ${ac_cv_path_aros_kernel_as+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 case $aros_kernel_as in
9416 [\\/]* | ?:[\\/]*)
9417 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in `dirname $aros_gcc_as`
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9431 done
9432 done
9433 IFS=$as_save_IFS
9436 esac
9438 aros_kernel_as=$ac_cv_path_aros_kernel_as
9439 if test -n "$aros_kernel_as"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9441 $as_echo "$aros_kernel_as" >&6; }
9442 else
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9449 if test "$aros_kernel_as" = ""; then
9450 # Extract the first word of "as", so it can be a program name with args.
9451 set dummy as; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_path_aros_kernel_as+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 case $aros_kernel_as in
9458 [\\/]* | ?:[\\/]*)
9459 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9473 done
9474 done
9475 IFS=$as_save_IFS
9478 esac
9480 aros_kernel_as=$ac_cv_path_aros_kernel_as
9481 if test -n "$aros_kernel_as"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9483 $as_echo "$aros_kernel_as" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9492 else
9493 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9494 set dummy $aros_kernel_as; ac_word=$2
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496 $as_echo_n "checking for $ac_word... " >&6; }
9497 if ${ac_cv_path_aros_kernel_as+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 case $aros_kernel_as in
9501 [\\/]* | ?:[\\/]*)
9502 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9508 IFS=$as_save_IFS
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9512 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 break 2
9516 done
9517 done
9518 IFS=$as_save_IFS
9521 esac
9523 aros_kernel_as=$ac_cv_path_aros_kernel_as
9524 if test -n "$aros_kernel_as"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9526 $as_echo "$aros_kernel_as" >&6; }
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9535 if test "$aros_kernel_as" = ""; then
9536 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9539 if test "$aros_kernel_ar" = ""; then
9540 if test "$cross_compiling" = "yes" ; then
9541 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9542 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 case $aros_kernel_ar in
9549 [\\/]* | ?:[\\/]*)
9550 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9560 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9564 done
9565 done
9566 IFS=$as_save_IFS
9569 esac
9571 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9572 if test -n "$aros_kernel_ar"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9574 $as_echo "$aros_kernel_ar" >&6; }
9575 else
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9581 else
9582 if test "$GCC" = "yes"; then
9583 aros_gcc_ar=`$CC -print-prog-name=ar`
9584 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9585 set dummy `basename $aros_gcc_ar`; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 case $aros_kernel_ar in
9592 [\\/]* | ?:[\\/]*)
9593 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in `dirname $aros_gcc_ar`
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 break 2
9607 done
9608 done
9609 IFS=$as_save_IFS
9612 esac
9614 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9615 if test -n "$aros_kernel_ar"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9617 $as_echo "$aros_kernel_ar" >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9625 if test "$aros_kernel_ar" = ""; then
9626 # Extract the first word of "ar", so it can be a program name with args.
9627 set dummy ar; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 case $aros_kernel_ar in
9634 [\\/]* | ?:[\\/]*)
9635 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9649 done
9650 done
9651 IFS=$as_save_IFS
9654 esac
9656 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9657 if test -n "$aros_kernel_ar"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9659 $as_echo "$aros_kernel_ar" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9668 else
9669 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9670 set dummy $aros_kernel_ar; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 case $aros_kernel_ar in
9677 [\\/]* | ?:[\\/]*)
9678 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9697 esac
9699 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9700 if test -n "$aros_kernel_ar"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9702 $as_echo "$aros_kernel_ar" >&6; }
9703 else
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9711 if test "$aros_kernel_ar" = ""; then
9712 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9715 if test "$aros_kernel_ranlib" = ""; then
9716 if test "$cross_compiling" = "yes" ; then
9717 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9718 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 case $aros_kernel_ranlib in
9725 [\\/]* | ?:[\\/]*)
9726 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9740 done
9741 done
9742 IFS=$as_save_IFS
9745 esac
9747 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9748 if test -n "$aros_kernel_ranlib"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9750 $as_echo "$aros_kernel_ranlib" >&6; }
9751 else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9757 else
9758 if test "$GCC" = "yes"; then
9759 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9760 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9761 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 case $aros_kernel_ranlib in
9768 [\\/]* | ?:[\\/]*)
9769 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in `dirname $aros_gcc_ranlib`
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9783 done
9784 done
9785 IFS=$as_save_IFS
9788 esac
9790 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9791 if test -n "$aros_kernel_ranlib"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9793 $as_echo "$aros_kernel_ranlib" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9801 if test "$aros_kernel_ranlib" = ""; then
9802 # Extract the first word of "ranlib", so it can be a program name with args.
9803 set dummy ranlib; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 case $aros_kernel_ranlib in
9810 [\\/]* | ?:[\\/]*)
9811 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9827 IFS=$as_save_IFS
9830 esac
9832 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9833 if test -n "$aros_kernel_ranlib"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9835 $as_echo "$aros_kernel_ranlib" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9844 else
9845 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9846 set dummy $aros_kernel_ranlib; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 case $aros_kernel_ranlib in
9853 [\\/]* | ?:[\\/]*)
9854 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9868 done
9869 done
9870 IFS=$as_save_IFS
9873 esac
9875 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9876 if test -n "$aros_kernel_ranlib"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9878 $as_echo "$aros_kernel_ranlib" >&6; }
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9887 if test "$aros_kernel_ranlib" = ""; then
9888 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9891 if test "$aros_kernel_nm" = ""; then
9892 if test "$cross_compiling" = "yes" ; then
9893 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9894 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 case $aros_kernel_nm in
9901 [\\/]* | ?:[\\/]*)
9902 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9912 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9916 done
9917 done
9918 IFS=$as_save_IFS
9921 esac
9923 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9924 if test -n "$aros_kernel_nm"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9926 $as_echo "$aros_kernel_nm" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9933 else
9934 if test "$GCC" = "yes"; then
9935 aros_gcc_nm=`$CC -print-prog-name=nm`
9936 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9937 set dummy `basename $aros_gcc_nm`; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 case $aros_kernel_nm in
9944 [\\/]* | ?:[\\/]*)
9945 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949 for as_dir in `dirname $aros_gcc_nm`
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9955 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957 break 2
9959 done
9960 done
9961 IFS=$as_save_IFS
9964 esac
9966 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9967 if test -n "$aros_kernel_nm"; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9969 $as_echo "$aros_kernel_nm" >&6; }
9970 else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9977 if test "$aros_kernel_nm" = ""; then
9978 # Extract the first word of "nm", so it can be a program name with args.
9979 set dummy nm; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 case $aros_kernel_nm in
9986 [\\/]* | ?:[\\/]*)
9987 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10001 done
10002 done
10003 IFS=$as_save_IFS
10006 esac
10008 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10009 if test -n "$aros_kernel_nm"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10011 $as_echo "$aros_kernel_nm" >&6; }
10012 else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10020 else
10021 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10022 set dummy $aros_kernel_nm; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 case $aros_kernel_nm in
10029 [\\/]* | ?:[\\/]*)
10030 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10044 done
10045 done
10046 IFS=$as_save_IFS
10049 esac
10051 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10052 if test -n "$aros_kernel_nm"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10054 $as_echo "$aros_kernel_nm" >&6; }
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10063 if test "$aros_kernel_nm" = ""; then
10064 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10067 if test "$aros_kernel_strip" = ""; then
10068 if test "$cross_compiling" = "yes" ; then
10069 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10070 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072 $as_echo_n "checking for $ac_word... " >&6; }
10073 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 case $aros_kernel_strip in
10077 [\\/]* | ?:[\\/]*)
10078 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10088 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 break 2
10092 done
10093 done
10094 IFS=$as_save_IFS
10097 esac
10099 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10100 if test -n "$aros_kernel_strip"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10102 $as_echo "$aros_kernel_strip" >&6; }
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10109 else
10110 if test "$GCC" = "yes"; then
10111 aros_gcc_strip=`$CC -print-prog-name=strip`
10112 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10113 set dummy `basename $aros_gcc_strip`; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 case $aros_kernel_strip in
10120 [\\/]* | ?:[\\/]*)
10121 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in `dirname $aros_gcc_strip`
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10135 done
10136 done
10137 IFS=$as_save_IFS
10140 esac
10142 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10143 if test -n "$aros_kernel_strip"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10145 $as_echo "$aros_kernel_strip" >&6; }
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10153 if test "$aros_kernel_strip" = ""; then
10154 # Extract the first word of "strip", so it can be a program name with args.
10155 set dummy strip; ac_word=$2
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 case $aros_kernel_strip in
10162 [\\/]* | ?:[\\/]*)
10163 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10177 done
10178 done
10179 IFS=$as_save_IFS
10182 esac
10184 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10185 if test -n "$aros_kernel_strip"; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10187 $as_echo "$aros_kernel_strip" >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10196 else
10197 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10198 set dummy $aros_kernel_strip; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 case $aros_kernel_strip in
10205 [\\/]* | ?:[\\/]*)
10206 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10220 done
10221 done
10222 IFS=$as_save_IFS
10225 esac
10227 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10228 if test -n "$aros_kernel_strip"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10230 $as_echo "$aros_kernel_strip" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10239 if test "$aros_kernel_strip" = ""; then
10240 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10243 # Objcopy and objdump are not required for the kernel
10244 # toolchain on many architectures.
10245 # So we'll look for them, but not make them strictly required.
10247 if test "$aros_kernel_objcopy" = ""; then
10248 if test "$cross_compiling" = "yes" ; then
10249 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10250 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 case $aros_kernel_objcopy in
10257 [\\/]* | ?:[\\/]*)
10258 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10272 done
10273 done
10274 IFS=$as_save_IFS
10277 esac
10279 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10280 if test -n "$aros_kernel_objcopy"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10282 $as_echo "$aros_kernel_objcopy" >&6; }
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10289 else
10290 if test "$GCC" = "yes"; then
10291 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10292 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10293 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 case $aros_kernel_objcopy in
10300 [\\/]* | ?:[\\/]*)
10301 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in `dirname $aros_gcc_objcopy`
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10311 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10315 done
10316 done
10317 IFS=$as_save_IFS
10320 esac
10322 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10323 if test -n "$aros_kernel_objcopy"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10325 $as_echo "$aros_kernel_objcopy" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10333 if test "$aros_kernel_objcopy" = ""; then
10334 # Extract the first word of "objcopy", so it can be a program name with args.
10335 set dummy objcopy; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 case $aros_kernel_objcopy in
10342 [\\/]* | ?:[\\/]*)
10343 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10353 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10357 done
10358 done
10359 IFS=$as_save_IFS
10362 esac
10364 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10365 if test -n "$aros_kernel_objcopy"; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10367 $as_echo "$aros_kernel_objcopy" >&6; }
10368 else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10376 else
10377 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10378 set dummy $aros_kernel_objcopy; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 case $aros_kernel_objcopy in
10385 [\\/]* | ?:[\\/]*)
10386 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10400 done
10401 done
10402 IFS=$as_save_IFS
10405 esac
10407 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10408 if test -n "$aros_kernel_objcopy"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10410 $as_echo "$aros_kernel_objcopy" >&6; }
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10420 if test "$aros_kernel_objdump" = ""; then
10421 if test "$cross_compiling" = "yes" ; then
10422 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10423 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 case $aros_kernel_objdump in
10430 [\\/]* | ?:[\\/]*)
10431 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10441 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10445 done
10446 done
10447 IFS=$as_save_IFS
10450 esac
10452 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10453 if test -n "$aros_kernel_objdump"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10455 $as_echo "$aros_kernel_objdump" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10462 else
10463 if test "$GCC" = "yes"; then
10464 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10465 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10466 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 case $aros_kernel_objdump in
10473 [\\/]* | ?:[\\/]*)
10474 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in `dirname $aros_gcc_objdump`
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10484 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10488 done
10489 done
10490 IFS=$as_save_IFS
10493 esac
10495 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10496 if test -n "$aros_kernel_objdump"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10498 $as_echo "$aros_kernel_objdump" >&6; }
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10506 if test "$aros_kernel_objdump" = ""; then
10507 # Extract the first word of "objdump", so it can be a program name with args.
10508 set dummy objdump; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 case $aros_kernel_objdump in
10515 [\\/]* | ?:[\\/]*)
10516 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10535 esac
10537 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10538 if test -n "$aros_kernel_objdump"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10540 $as_echo "$aros_kernel_objdump" >&6; }
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10549 else
10550 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10551 set dummy $aros_kernel_objdump; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 case $aros_kernel_objdump in
10558 [\\/]* | ?:[\\/]*)
10559 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10573 done
10574 done
10575 IFS=$as_save_IFS
10578 esac
10580 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10581 if test -n "$aros_kernel_objdump"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10583 $as_echo "$aros_kernel_objdump" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10592 if test "x${crosstools}" != "xyes" ; then
10593 if test "$aros_kernel_objcopy" = ""; then
10594 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10596 if test "$aros_kernel_objdump" = ""; then
10597 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10603 $as_echo_n "checking which target tools to use... " >&6; }
10604 if test "$crosstools" = "yes"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10606 $as_echo "$target_tool_prefix" >&6; }
10607 # We are are building AROS crosstools
10608 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10609 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10610 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10611 orig_target_cpp="${tmp_tool_prefix}cpp"
10612 orig_target_ld="${tmp_tool_prefix}ld"
10613 orig_target_as="${tmp_tool_prefix}as"
10614 orig_target_ar="${tmp_tool_prefix}ar"
10615 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10616 orig_target_nm="${tmp_tool_prefix}nm"
10617 orig_target_strip="${tmp_tool_prefix}strip"
10618 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10619 orig_target_objdump="${tmp_tool_prefix}objdump"
10620 else
10621 # Determine whether AROS or ELF tools should be used
10622 if test "$aros_tool_prefix" = "none"; then
10623 aros_tool_prefix="${elf_tool_prefix}"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10627 $as_echo "$aros_tool_prefix" >&6; }
10628 # We are *not* building AROS crosstools - use the AROS or ELF tools
10630 if test "${aros_tool_prefix}cpp" = ""; then
10631 if test "$cross_compiling" = "yes" ; then
10632 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10633 set dummy ${target_tool_prefix}cpp; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if ${ac_cv_path_orig_target_cpp+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 case $orig_target_cpp in
10640 [\\/]* | ?:[\\/]*)
10641 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10651 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10655 done
10656 done
10657 IFS=$as_save_IFS
10660 esac
10662 orig_target_cpp=$ac_cv_path_orig_target_cpp
10663 if test -n "$orig_target_cpp"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10665 $as_echo "$orig_target_cpp" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10672 else
10673 if test "$GCC" = "yes"; then
10674 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10675 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10676 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if ${ac_cv_path_orig_target_cpp+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 case $orig_target_cpp in
10683 [\\/]* | ?:[\\/]*)
10684 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in `dirname $aros_gcc_cpp`
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10694 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10698 done
10699 done
10700 IFS=$as_save_IFS
10703 esac
10705 orig_target_cpp=$ac_cv_path_orig_target_cpp
10706 if test -n "$orig_target_cpp"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10708 $as_echo "$orig_target_cpp" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10716 if test "$orig_target_cpp" = ""; then
10717 # Extract the first word of "cpp", so it can be a program name with args.
10718 set dummy cpp; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 $as_echo_n "checking for $ac_word... " >&6; }
10721 if ${ac_cv_path_orig_target_cpp+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 case $orig_target_cpp in
10725 [\\/]* | ?:[\\/]*)
10726 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10740 done
10741 done
10742 IFS=$as_save_IFS
10745 esac
10747 orig_target_cpp=$ac_cv_path_orig_target_cpp
10748 if test -n "$orig_target_cpp"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10750 $as_echo "$orig_target_cpp" >&6; }
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10759 else
10760 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10761 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_path_orig_target_cpp+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 case $orig_target_cpp in
10768 [\\/]* | ?:[\\/]*)
10769 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10779 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10785 IFS=$as_save_IFS
10788 esac
10790 orig_target_cpp=$ac_cv_path_orig_target_cpp
10791 if test -n "$orig_target_cpp"; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10793 $as_echo "$orig_target_cpp" >&6; }
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10802 if test "$orig_target_cpp" = ""; then
10803 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10806 if test "${aros_tool_prefix}gcc" = ""; then
10807 if test "$cross_compiling" = "yes" ; then
10808 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10809 set dummy ${target_tool_prefix}gcc; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if ${ac_cv_path_orig_target_cc+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 case $orig_target_cc in
10816 [\\/]* | ?:[\\/]*)
10817 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $PATH
10823 IFS=$as_save_IFS
10824 test -z "$as_dir" && as_dir=.
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10827 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10829 break 2
10831 done
10832 done
10833 IFS=$as_save_IFS
10836 esac
10838 orig_target_cc=$ac_cv_path_orig_target_cc
10839 if test -n "$orig_target_cc"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10841 $as_echo "$orig_target_cc" >&6; }
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10848 else
10849 if test "$GCC" = "yes"; then
10850 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10851 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10852 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if ${ac_cv_path_orig_target_cc+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 case $orig_target_cc in
10859 [\\/]* | ?:[\\/]*)
10860 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in `dirname $aros_gcc_gcc`
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10879 esac
10881 orig_target_cc=$ac_cv_path_orig_target_cc
10882 if test -n "$orig_target_cc"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10884 $as_echo "$orig_target_cc" >&6; }
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10892 if test "$orig_target_cc" = ""; then
10893 # Extract the first word of "gcc", so it can be a program name with args.
10894 set dummy gcc; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_path_orig_target_cc+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 case $orig_target_cc in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10916 done
10917 done
10918 IFS=$as_save_IFS
10921 esac
10923 orig_target_cc=$ac_cv_path_orig_target_cc
10924 if test -n "$orig_target_cc"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10926 $as_echo "$orig_target_cc" >&6; }
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10935 else
10936 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10937 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_path_orig_target_cc+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 case $orig_target_cc in
10944 [\\/]* | ?:[\\/]*)
10945 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10955 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10959 done
10960 done
10961 IFS=$as_save_IFS
10964 esac
10966 orig_target_cc=$ac_cv_path_orig_target_cc
10967 if test -n "$orig_target_cc"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10969 $as_echo "$orig_target_cc" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10978 if test "$orig_target_cc" = ""; then
10979 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10981 if test "x$orig_target_cxx" != "x" ; then
10983 if test "${aros_tool_prefix}g++" = ""; then
10984 if test "$cross_compiling" = "yes" ; then
10985 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
10986 set dummy ${target_tool_prefix}g++; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_path_orig_target_cxx+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 case $orig_target_cxx in
10993 [\\/]* | ?:[\\/]*)
10994 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11008 done
11009 done
11010 IFS=$as_save_IFS
11013 esac
11015 orig_target_cxx=$ac_cv_path_orig_target_cxx
11016 if test -n "$orig_target_cxx"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11018 $as_echo "$orig_target_cxx" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11025 else
11026 if test "$GCC" = "yes"; then
11027 aros_gcc_g++=`$CC -print-prog-name=g++`
11028 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11029 set dummy `basename $aros_gcc_g++`; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if ${ac_cv_path_orig_target_cxx+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 case $orig_target_cxx in
11036 [\\/]* | ?:[\\/]*)
11037 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in `dirname $aros_gcc_g++`
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11051 done
11052 done
11053 IFS=$as_save_IFS
11056 esac
11058 orig_target_cxx=$ac_cv_path_orig_target_cxx
11059 if test -n "$orig_target_cxx"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11061 $as_echo "$orig_target_cxx" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11069 if test "$orig_target_cxx" = ""; then
11070 # Extract the first word of "g++", so it can be a program name with args.
11071 set dummy g++; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if ${ac_cv_path_orig_target_cxx+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 case $orig_target_cxx in
11078 [\\/]* | ?:[\\/]*)
11079 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11093 done
11094 done
11095 IFS=$as_save_IFS
11098 esac
11100 orig_target_cxx=$ac_cv_path_orig_target_cxx
11101 if test -n "$orig_target_cxx"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11103 $as_echo "$orig_target_cxx" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11112 else
11113 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11114 set dummy ${aros_tool_prefix}g++; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_path_orig_target_cxx+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 case $orig_target_cxx in
11121 [\\/]* | ?:[\\/]*)
11122 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11136 done
11137 done
11138 IFS=$as_save_IFS
11141 esac
11143 orig_target_cxx=$ac_cv_path_orig_target_cxx
11144 if test -n "$orig_target_cxx"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11146 $as_echo "$orig_target_cxx" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11155 if test "$orig_target_cxx" = ""; then
11156 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11160 if test "${aros_tool_prefix}ld" = ""; then
11161 if test "$cross_compiling" = "yes" ; then
11162 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11163 set dummy ${target_tool_prefix}gcc; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_path_orig_target_ld+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 case $orig_target_ld in
11170 [\\/]* | ?:[\\/]*)
11171 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11185 done
11186 done
11187 IFS=$as_save_IFS
11190 esac
11192 orig_target_ld=$ac_cv_path_orig_target_ld
11193 if test -n "$orig_target_ld"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11195 $as_echo "$orig_target_ld" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11202 else
11203 if test "$GCC" = "yes"; then
11204 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11205 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11206 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_path_orig_target_ld+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 case $orig_target_ld in
11213 [\\/]* | ?:[\\/]*)
11214 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in `dirname $aros_gcc_gcc`
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11228 done
11229 done
11230 IFS=$as_save_IFS
11233 esac
11235 orig_target_ld=$ac_cv_path_orig_target_ld
11236 if test -n "$orig_target_ld"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11238 $as_echo "$orig_target_ld" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11246 if test "$orig_target_ld" = ""; then
11247 # Extract the first word of "gcc", so it can be a program name with args.
11248 set dummy gcc; ac_word=$2
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250 $as_echo_n "checking for $ac_word... " >&6; }
11251 if ${ac_cv_path_orig_target_ld+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 case $orig_target_ld in
11255 [\\/]* | ?:[\\/]*)
11256 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11270 done
11271 done
11272 IFS=$as_save_IFS
11275 esac
11277 orig_target_ld=$ac_cv_path_orig_target_ld
11278 if test -n "$orig_target_ld"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11280 $as_echo "$orig_target_ld" >&6; }
11281 else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11289 else
11290 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11291 set dummy ${aros_tool_prefix}ld; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_path_orig_target_ld+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 case $orig_target_ld in
11298 [\\/]* | ?:[\\/]*)
11299 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11309 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11313 done
11314 done
11315 IFS=$as_save_IFS
11318 esac
11320 orig_target_ld=$ac_cv_path_orig_target_ld
11321 if test -n "$orig_target_ld"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11323 $as_echo "$orig_target_ld" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11332 if test "$orig_target_ld" = ""; then
11333 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11336 if test "${aros_tool_prefix}as" = ""; then
11337 if test "$cross_compiling" = "yes" ; then
11338 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11339 set dummy ${target_tool_prefix}as; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_path_orig_target_as+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 case $orig_target_as in
11346 [\\/]* | ?:[\\/]*)
11347 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11361 done
11362 done
11363 IFS=$as_save_IFS
11366 esac
11368 orig_target_as=$ac_cv_path_orig_target_as
11369 if test -n "$orig_target_as"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11371 $as_echo "$orig_target_as" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11378 else
11379 if test "$GCC" = "yes"; then
11380 aros_gcc_as=`$CC -print-prog-name=as`
11381 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11382 set dummy `basename $aros_gcc_as`; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_path_orig_target_as+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 case $orig_target_as in
11389 [\\/]* | ?:[\\/]*)
11390 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in `dirname $aros_gcc_as`
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11404 done
11405 done
11406 IFS=$as_save_IFS
11409 esac
11411 orig_target_as=$ac_cv_path_orig_target_as
11412 if test -n "$orig_target_as"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11414 $as_echo "$orig_target_as" >&6; }
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11422 if test "$orig_target_as" = ""; then
11423 # Extract the first word of "as", so it can be a program name with args.
11424 set dummy as; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_path_orig_target_as+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 case $orig_target_as in
11431 [\\/]* | ?:[\\/]*)
11432 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11446 done
11447 done
11448 IFS=$as_save_IFS
11451 esac
11453 orig_target_as=$ac_cv_path_orig_target_as
11454 if test -n "$orig_target_as"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11456 $as_echo "$orig_target_as" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11465 else
11466 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11467 set dummy ${aros_tool_prefix}as; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_path_orig_target_as+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 case $orig_target_as in
11474 [\\/]* | ?:[\\/]*)
11475 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11489 done
11490 done
11491 IFS=$as_save_IFS
11494 esac
11496 orig_target_as=$ac_cv_path_orig_target_as
11497 if test -n "$orig_target_as"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11499 $as_echo "$orig_target_as" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11508 if test "$orig_target_as" = ""; then
11509 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11512 if test "${aros_tool_prefix}ar" = ""; then
11513 if test "$cross_compiling" = "yes" ; then
11514 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11515 set dummy ${target_tool_prefix}ar; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_path_orig_target_ar+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 case $orig_target_ar in
11522 [\\/]* | ?:[\\/]*)
11523 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11533 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11537 done
11538 done
11539 IFS=$as_save_IFS
11542 esac
11544 orig_target_ar=$ac_cv_path_orig_target_ar
11545 if test -n "$orig_target_ar"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11547 $as_echo "$orig_target_ar" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11554 else
11555 if test "$GCC" = "yes"; then
11556 aros_gcc_ar=`$CC -print-prog-name=ar`
11557 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11558 set dummy `basename $aros_gcc_ar`; ac_word=$2
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 $as_echo_n "checking for $ac_word... " >&6; }
11561 if ${ac_cv_path_orig_target_ar+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 case $orig_target_ar in
11565 [\\/]* | ?:[\\/]*)
11566 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in `dirname $aros_gcc_ar`
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11576 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 break 2
11580 done
11581 done
11582 IFS=$as_save_IFS
11585 esac
11587 orig_target_ar=$ac_cv_path_orig_target_ar
11588 if test -n "$orig_target_ar"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11590 $as_echo "$orig_target_ar" >&6; }
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11598 if test "$orig_target_ar" = ""; then
11599 # Extract the first word of "ar", so it can be a program name with args.
11600 set dummy ar; ac_word=$2
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11602 $as_echo_n "checking for $ac_word... " >&6; }
11603 if ${ac_cv_path_orig_target_ar+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 case $orig_target_ar in
11607 [\\/]* | ?:[\\/]*)
11608 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11614 IFS=$as_save_IFS
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 break 2
11622 done
11623 done
11624 IFS=$as_save_IFS
11627 esac
11629 orig_target_ar=$ac_cv_path_orig_target_ar
11630 if test -n "$orig_target_ar"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11632 $as_echo "$orig_target_ar" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11641 else
11642 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11643 set dummy ${aros_tool_prefix}ar; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if ${ac_cv_path_orig_target_ar+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 case $orig_target_ar in
11650 [\\/]* | ?:[\\/]*)
11651 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11665 done
11666 done
11667 IFS=$as_save_IFS
11670 esac
11672 orig_target_ar=$ac_cv_path_orig_target_ar
11673 if test -n "$orig_target_ar"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11675 $as_echo "$orig_target_ar" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11684 if test "$orig_target_ar" = ""; then
11685 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11688 if test "${aros_tool_prefix}ranlib" = ""; then
11689 if test "$cross_compiling" = "yes" ; then
11690 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11691 set dummy ${target_tool_prefix}ar; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $orig_target_ranlib in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11718 esac
11720 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11721 if test -n "$orig_target_ranlib"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11723 $as_echo "$orig_target_ranlib" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11730 else
11731 if test "$GCC" = "yes"; then
11732 aros_gcc_ar=`$CC -print-prog-name=ar`
11733 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11734 set dummy `basename $aros_gcc_ar`; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 case $orig_target_ranlib in
11741 [\\/]* | ?:[\\/]*)
11742 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in `dirname $aros_gcc_ar`
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11756 done
11757 done
11758 IFS=$as_save_IFS
11761 esac
11763 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11764 if test -n "$orig_target_ranlib"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11766 $as_echo "$orig_target_ranlib" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11774 if test "$orig_target_ranlib" = ""; then
11775 # Extract the first word of "ar", so it can be a program name with args.
11776 set dummy ar; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 case $orig_target_ranlib in
11783 [\\/]* | ?:[\\/]*)
11784 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11798 done
11799 done
11800 IFS=$as_save_IFS
11803 esac
11805 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11806 if test -n "$orig_target_ranlib"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11808 $as_echo "$orig_target_ranlib" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11817 else
11818 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11819 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 case $orig_target_ranlib in
11826 [\\/]* | ?:[\\/]*)
11827 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11837 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11841 done
11842 done
11843 IFS=$as_save_IFS
11846 esac
11848 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11849 if test -n "$orig_target_ranlib"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11851 $as_echo "$orig_target_ranlib" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11860 if test "$orig_target_ranlib" = ""; then
11861 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11864 if test "${aros_tool_prefix}nm" = ""; then
11865 if test "$cross_compiling" = "yes" ; then
11866 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11867 set dummy ${target_tool_prefix}nm; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if ${ac_cv_path_orig_target_nm+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 case $orig_target_nm in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11894 esac
11896 orig_target_nm=$ac_cv_path_orig_target_nm
11897 if test -n "$orig_target_nm"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11899 $as_echo "$orig_target_nm" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11906 else
11907 if test "$GCC" = "yes"; then
11908 aros_gcc_nm=`$CC -print-prog-name=nm`
11909 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11910 set dummy `basename $aros_gcc_nm`; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_path_orig_target_nm+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 case $orig_target_nm in
11917 [\\/]* | ?:[\\/]*)
11918 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in `dirname $aros_gcc_nm`
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11937 esac
11939 orig_target_nm=$ac_cv_path_orig_target_nm
11940 if test -n "$orig_target_nm"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11942 $as_echo "$orig_target_nm" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11950 if test "$orig_target_nm" = ""; then
11951 # Extract the first word of "nm", so it can be a program name with args.
11952 set dummy nm; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if ${ac_cv_path_orig_target_nm+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 case $orig_target_nm in
11959 [\\/]* | ?:[\\/]*)
11960 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11974 done
11975 done
11976 IFS=$as_save_IFS
11979 esac
11981 orig_target_nm=$ac_cv_path_orig_target_nm
11982 if test -n "$orig_target_nm"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11984 $as_echo "$orig_target_nm" >&6; }
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11993 else
11994 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
11995 set dummy ${aros_tool_prefix}nm; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_path_orig_target_nm+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 case $orig_target_nm in
12002 [\\/]* | ?:[\\/]*)
12003 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12017 done
12018 done
12019 IFS=$as_save_IFS
12022 esac
12024 orig_target_nm=$ac_cv_path_orig_target_nm
12025 if test -n "$orig_target_nm"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12027 $as_echo "$orig_target_nm" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12036 if test "$orig_target_nm" = ""; then
12037 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12040 if test "${aros_tool_prefix}strip" = ""; then
12041 if test "$cross_compiling" = "yes" ; then
12042 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12043 set dummy ${target_tool_prefix}strip; ac_word=$2
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12046 if ${ac_cv_path_orig_target_strip+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 case $orig_target_strip in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12065 done
12066 done
12067 IFS=$as_save_IFS
12070 esac
12072 orig_target_strip=$ac_cv_path_orig_target_strip
12073 if test -n "$orig_target_strip"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12075 $as_echo "$orig_target_strip" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12082 else
12083 if test "$GCC" = "yes"; then
12084 aros_gcc_strip=`$CC -print-prog-name=strip`
12085 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12086 set dummy `basename $aros_gcc_strip`; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_path_orig_target_strip+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 case $orig_target_strip in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in `dirname $aros_gcc_strip`
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12108 done
12109 done
12110 IFS=$as_save_IFS
12113 esac
12115 orig_target_strip=$ac_cv_path_orig_target_strip
12116 if test -n "$orig_target_strip"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12118 $as_echo "$orig_target_strip" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12126 if test "$orig_target_strip" = ""; then
12127 # Extract the first word of "strip", so it can be a program name with args.
12128 set dummy strip; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_path_orig_target_strip+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 case $orig_target_strip in
12135 [\\/]* | ?:[\\/]*)
12136 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12150 done
12151 done
12152 IFS=$as_save_IFS
12155 esac
12157 orig_target_strip=$ac_cv_path_orig_target_strip
12158 if test -n "$orig_target_strip"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12160 $as_echo "$orig_target_strip" >&6; }
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12169 else
12170 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12171 set dummy ${aros_tool_prefix}strip; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if ${ac_cv_path_orig_target_strip+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 case $orig_target_strip in
12178 [\\/]* | ?:[\\/]*)
12179 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12189 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12193 done
12194 done
12195 IFS=$as_save_IFS
12198 esac
12200 orig_target_strip=$ac_cv_path_orig_target_strip
12201 if test -n "$orig_target_strip"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12203 $as_echo "$orig_target_strip" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12212 if test "$orig_target_strip" = ""; then
12213 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12216 if test "${aros_tool_prefix}objcopy" = ""; then
12217 if test "$cross_compiling" = "yes" ; then
12218 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12219 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 case $orig_target_objcopy in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12241 done
12242 done
12243 IFS=$as_save_IFS
12246 esac
12248 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12249 if test -n "$orig_target_objcopy"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12251 $as_echo "$orig_target_objcopy" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12258 else
12259 if test "$GCC" = "yes"; then
12260 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12261 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12262 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 case $orig_target_objcopy in
12269 [\\/]* | ?:[\\/]*)
12270 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in `dirname $aros_gcc_objcopy`
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12284 done
12285 done
12286 IFS=$as_save_IFS
12289 esac
12291 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12292 if test -n "$orig_target_objcopy"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12294 $as_echo "$orig_target_objcopy" >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12302 if test "$orig_target_objcopy" = ""; then
12303 # Extract the first word of "objcopy", so it can be a program name with args.
12304 set dummy objcopy; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 case $orig_target_objcopy in
12311 [\\/]* | ?:[\\/]*)
12312 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 break 2
12326 done
12327 done
12328 IFS=$as_save_IFS
12331 esac
12333 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12334 if test -n "$orig_target_objcopy"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12336 $as_echo "$orig_target_objcopy" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12345 else
12346 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12347 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 case $orig_target_objcopy in
12354 [\\/]* | ?:[\\/]*)
12355 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12374 esac
12376 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12377 if test -n "$orig_target_objcopy"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12379 $as_echo "$orig_target_objcopy" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12388 if test "$orig_target_objcopy" = ""; then
12389 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12392 if test "${aros_tool_prefix}objdump" = ""; then
12393 if test "$cross_compiling" = "yes" ; then
12394 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12395 set dummy ${target_tool_prefix}objdump; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if ${ac_cv_path_orig_target_objdump+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 case $orig_target_objdump in
12402 [\\/]* | ?:[\\/]*)
12403 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407 for as_dir in $PATH
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12417 done
12418 done
12419 IFS=$as_save_IFS
12422 esac
12424 orig_target_objdump=$ac_cv_path_orig_target_objdump
12425 if test -n "$orig_target_objdump"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12427 $as_echo "$orig_target_objdump" >&6; }
12428 else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12434 else
12435 if test "$GCC" = "yes"; then
12436 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12437 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12438 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if ${ac_cv_path_orig_target_objdump+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 case $orig_target_objdump in
12445 [\\/]* | ?:[\\/]*)
12446 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in `dirname $aros_gcc_objdump`
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12460 done
12461 done
12462 IFS=$as_save_IFS
12465 esac
12467 orig_target_objdump=$ac_cv_path_orig_target_objdump
12468 if test -n "$orig_target_objdump"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12470 $as_echo "$orig_target_objdump" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12478 if test "$orig_target_objdump" = ""; then
12479 # Extract the first word of "objdump", so it can be a program name with args.
12480 set dummy objdump; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if ${ac_cv_path_orig_target_objdump+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 case $orig_target_objdump in
12487 [\\/]* | ?:[\\/]*)
12488 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12498 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 break 2
12502 done
12503 done
12504 IFS=$as_save_IFS
12507 esac
12509 orig_target_objdump=$ac_cv_path_orig_target_objdump
12510 if test -n "$orig_target_objdump"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12512 $as_echo "$orig_target_objdump" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12521 else
12522 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12523 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_path_orig_target_objdump+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 case $orig_target_objdump in
12530 [\\/]* | ?:[\\/]*)
12531 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12541 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12545 done
12546 done
12547 IFS=$as_save_IFS
12550 esac
12552 orig_target_objdump=$ac_cv_path_orig_target_objdump
12553 if test -n "$orig_target_objdump"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12555 $as_echo "$orig_target_objdump" >&6; }
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12564 if test "$orig_target_objdump" = ""; then
12565 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12569 if test "$kernel_tool_prefix" = "none" ; then
12570 # No kernel tools specified
12571 # Assume target tools == kernel tools with ELF wrapper
12572 aros_kernel_cc=$orig_target_cc
12573 aros_kernel_cxx=$orig_target_cxx
12574 aros_kernel_cpp=$orig_target_cpp
12575 aros_kernel_ld=$orig_target_ld
12576 aros_kernel_as=$orig_target_as
12577 aros_kernel_ar=$orig_target_ar
12578 aros_kernel_ranlib=$orig_target_ranlib
12579 aros_kernel_nm=$orig_target_nm
12580 aros_kernel_strip=$orig_target_strip
12581 aros_kernel_objcopy=$orig_target_objcopy
12582 aros_kernel_objdump=$orig_target_objdump
12583 use_kernel_cc_wrapper=yes
12586 # At this point, all aros_kernel_* and aros_target_*
12587 # tools should be set up correctly
12589 CC="$aros_kernel_cc $kernel_tool_flags"
12590 CPP="$aros_kernel_cpp"
12592 #-----------------------------------------------------------------------------
12594 # Disable pointer-signedness warnings if the compiler recognises the option
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12597 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12598 save_cflags="$CFLAGS"
12599 if test "$crosstools" != "yes" ; then
12600 CFLAGS="$CFLAGS -Wno-pointer-sign"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12605 main ()
12609 return 0;
12611 _ACEOF
12612 if ac_fn_c_try_compile "$LINENO"; then :
12613 use_no_sign_warning="yes"
12614 else
12615 use_no_sign_warning="no"
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 else
12619 # we do know it is supported for the smallest version of gcc we are going to build
12620 # we assume it's also supported by later versions
12621 use_no_sign_warning=yes
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12624 $as_echo "$use_no_sign_warning" >&6; }
12625 if test "x-$use_no_sign_warning" = "x-yes" ; then
12626 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12628 CFLAGS="$save_cflags"
12630 #-----------------------------------------------------------------------------
12632 # Find all the tools we need to compile. This could be cross-compiling
12633 # though! If that is the case we use the GNU form of the target and
12634 # simply add this to the front of the binary name. This is rather simple,
12635 # but it should work under most circumstances.
12637 # The default tools are to use the same as the host, but only if the
12638 # host and target CPU are the same. With GCC this is normally enough.
12641 aros_cc_pre=""
12642 aros_shared_ld="$aros_host_ld"
12644 aros_target_mkdep="$aros_host_mkdep"
12646 # The default tools executables to be linked to.
12647 if test "$rescomp" != ""; then
12648 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12649 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 case $aros_kernel_rescomp in
12656 [\\/]* | ?:[\\/]*)
12657 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12671 done
12672 done
12673 IFS=$as_save_IFS
12676 esac
12678 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12679 if test -n "$aros_kernel_rescomp"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12681 $as_echo "$aros_kernel_rescomp" >&6; }
12682 else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12688 if test "$aros_kernel_rescomp" = ""; then
12689 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12693 # Set up the sources for the symlink farm
12694 if test "$crosstools" = "yes"; then
12695 crosstools_target=tools-crosstools
12696 else
12697 crosstools_cxx_target=tools-crosstools
12700 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12701 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12704 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12705 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12706 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12707 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12708 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12709 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12710 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12712 # aros_cc_pre is a variable that is added to the front of the compiler name
12713 # in the generated aros-gcc shell script. We need this to enable the cache
12714 # to work across cleaned builds. Also, support DISTCC using the correct
12715 # environment variable.
12718 if test "x${DISTCC}" != "x" ; then
12719 if test "x${CCACHE}" != "x" ; then
12720 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12721 else
12722 aros_cc_pre="${DISTCC} "
12724 else
12725 if test "x${CCACHE}" != "x" ; then
12726 aros_cc_pre="${CCACHE} "
12730 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12732 aros_target_nostdinc_cflags=-nostdinc
12734 aros_target_nostartup_ldflags=-nostartfiles
12736 aros_target_nix_ldflags=-nix
12738 aros_target_detach_ldflags=-detach
12740 aros_target_nostdlib_ldflags=-nostdlib
12743 # Target tools
12744 if test "$crosstools" != "yes"; then
12745 if test "$GCC" = "yes"; then
12746 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12748 else
12749 # We do not know which gcc version we are going to build and what we need to know
12750 # here is different for different versions so this will be set later during the
12751 # build of crosstools.
12752 aros_target_cc_path=@aros_target_cc_path@
12754 aros_target_cpp="${prefix}cpp"
12755 aros_target_cc="${prefix}gcc"
12756 aros_target_cxx="${prefix}g++"
12757 aros_target_as="${prefix}as"
12758 aros_target_ld="${prefix}ld"
12759 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12760 aros_target_objcopy="${prefix}objcopy"
12761 aros_target_objdump="${prefix}objdump"
12762 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12763 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12764 aros_target_strip="${prefix}strip"
12765 aros_plain_nm="${prefix}nm"
12766 aros_plain_ar="${prefix}ar"
12768 # Check whether --enable-includes was given.
12769 if test "${enable_includes+set}" = set; then :
12770 enableval=$enable_includes; aros_target_incl=$enable_includes
12771 else
12772 aros_target_incl="/usr/include"
12776 if test "$aros_kernel_includes" = ""; then
12777 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12778 aros_kernel_includes="-isystem $aros_target_incl"
12782 if test "$aros_kernel_includes" != "" ; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12784 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12785 if test "$aros_kernel_cc_includes" = "" ; then
12786 # Try to guess where the directory is.
12787 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12788 if test -d $aros_kernel_cc_includes; then
12789 # Check if there is also an include-fixed directory and add it
12790 # to kernel compiler's include path as it may contain some of
12791 # the headers we need.
12792 if test -d "$aros_kernel_cc_includes"-fixed; then
12793 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12795 # Check for specific includes directory. Neede for Ubuntu 11.10
12796 if test -d "/usr/include/i386-linux-gnu"; then
12797 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12799 else
12800 # The directory doesn't exist, we need to do some more work.
12801 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12803 # These are the headers we're looking for.
12804 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12805 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12806 zutil.h stdint.h"
12808 dirs=
12809 for h in $headers; do
12810 # Which other headers are needed by each of the above?
12811 deps=$(echo "#include <$h>" | \
12812 $aros_kernel_cc -E -M - 2>/dev/null | \
12813 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12815 # Copy all the needed headers to a directory beneath gendir.
12816 for d in $deps; do
12817 h=$(basename $d)
12818 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12819 sed -n "s,^.*/include\(/.*\),\1,p")
12820 ! test -d $dir && mkdir -p $dir
12821 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12822 done
12823 done
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12827 $as_echo "$aros_kernel_cc_includes" >&6; }
12828 # Adding -nostdinc to kernel includes as they are always used together.
12829 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12832 if test "$crosstools" != "yes"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12834 $as_echo_n "checking for the target compiler's include path... " >&6; }
12835 if test "$aros_target_cc_includes" = "" ; then
12836 #try to guess where the directory is
12837 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12838 if ! test -d $aros_target_cc_includes; then
12839 #the directory doesn't exist, we need to do some more work
12840 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12842 #these are the headers we're looking for
12843 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12844 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12845 zutil.h"
12847 dirs=
12848 for h in $headers; do
12849 #which other headers each of the above headers needs?
12850 deps=$(echo "#include <$h>" | \
12851 $orig_target_cc -E -M - 2>/dev/null | \
12852 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12854 #copy all the needed headers to a directory beneath gendir
12855 for d in $deps; do
12856 h=$(basename $d)
12857 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12858 sed -n "s,^.*/include\(/.*\),\1,p")
12859 ! test -d $dir && mkdir -p $dir
12860 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12861 done
12862 done
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12866 $as_echo "$aros_target_cc_includes" >&6; }
12867 else
12868 # We do not know which gcc version we are going to build and what we need to know
12869 # here is different for different versions so this will be set later during the
12870 # build of crosstools.
12871 aros_target_cc_includes=@aros_target_cc_includes@
12875 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12876 # On GCC >= 4.0 -iquote should be used
12879 save_cc="$CC"
12880 save_cflags="$CFLAGS"
12881 CFLAGS="-iquote."
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12883 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12884 if test "x-$crosstools" != "x-yes"; then
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12889 main ()
12893 return 0;
12895 _ACEOF
12896 if ac_fn_c_try_compile "$LINENO"; then :
12897 has_iquote="yes"
12898 else
12899 has_iquote="no"
12901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902 else
12903 # we do know it is supported for the smallest version of gcc we are going to build
12904 # we assume it's also supported by later versions
12905 has_iquote=yes
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12908 $as_echo "$has_iquote" >&6; }
12909 if test "x-$has_iquote" = "x-yes" ; then
12910 host_cflags_iquote=-iquote
12911 host_cflags_iquote_end=
12912 else
12913 host_cflags_iquote=-I
12914 host_cflags_iquote_end=-I-
12916 kernel_cflags_iquote=$host_cflags_iquote
12917 kernel_cflags_iquote_end=$host_cflags_iquote_end
12918 if test "x-$cross_compiling" = "x-yes"; then
12919 CC="$aros_kernel_cc"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12921 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12922 if test "x-$crosstools" != "x-yes"; then
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12927 main ()
12931 return 0;
12933 _ACEOF
12934 if ac_fn_c_try_compile "$LINENO"; then :
12935 use_no_stack_protector="yes"
12936 else
12937 use_no_stack_protector="no"
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 else
12941 # we do know it is supported for the smallest version of gcc we are going to build
12942 # we assume it's also supported by later versions
12943 use_no_stack_protector=yes
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12946 $as_echo "$use_no_stack_protector" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12948 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12949 if test "x-$crosstools" != "x-yes"; then
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12954 main ()
12958 return 0;
12960 _ACEOF
12961 if ac_fn_c_try_compile "$LINENO"; then :
12962 has_iquote="yes"
12963 else
12964 has_iquote="no"
12966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 else
12968 # we do know it is supported for the smallest version of gcc we are going to build
12969 # we assume it's also supported by later versions
12970 has_iquote=yes
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12973 $as_echo "$has_iquote" >&6; }
12974 if test "x-$has_iquote" = "x-yes" ; then
12975 kernel_cflags_iquote=-iquote
12976 kernel_cflags_iquote_end=
12977 else
12978 kernel_cflags_iquote=-I
12979 kernel_cflags_iquote_end=-I-
12982 aros_cflags_iquote=$kernel_cflags_iquote
12983 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12984 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12985 CC="$orig_target_cc"
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12987 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12988 if test "x-$crosstools" != "x-yes"; then
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12993 main ()
12997 return 0;
12999 _ACEOF
13000 if ac_fn_c_try_compile "$LINENO"; then :
13001 has_iquote="yes"
13002 else
13003 has_iquote="no"
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 else
13007 # we do know it is supported for the smallest version of gcc we are going to build
13008 # we assume it's also supported by later versions
13009 has_iquote=yes
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13012 $as_echo "$has_iquote" >&6; }
13013 if test "x-$has_iquote" = "x-yes" ; then
13014 aros_cflags_iquote=-iquote
13015 aros_cflags_iquote_end=
13016 else
13017 aros_cflags_iquote=-I
13018 aros_cflags_iquote_end=-I-
13021 if test "x-$use_no_stack_protector" = "x-yes" ; then
13022 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13026 #-----------------------------------------------------------------------------
13028 # Check if the target compiler supports some options used for delinting:
13029 # -Wunused-but-set-variable
13030 # -Warray-bounds
13031 # -Wenum-compare
13032 # -Wstrict-overflow
13033 # -Wformat-security
13035 if test "x-$crosstools" != "x-yes"; then
13036 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13037 CC="$orig_target_cc"
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13040 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13041 CFLAGS=-Wunused-but-set-variable
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13046 main ()
13050 return 0;
13052 _ACEOF
13053 if ac_fn_c_try_compile "$LINENO"; then :
13054 aros_unused_but_set_variable="yes"
13055 else
13056 aros_unused_but_set_variable="no"
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13060 $as_echo "$aros_unused_but_set_variable" >&6; }
13061 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13062 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13066 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13067 CFLAGS=-Warray-bounds
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13072 main ()
13076 return 0;
13078 _ACEOF
13079 if ac_fn_c_try_compile "$LINENO"; then :
13080 aros_array_bounds="yes"
13081 else
13082 aros_array_bounds="no"
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13086 $as_echo "$aros_array_bounds" >&6; }
13087 if test "x-$aros_array_bounds" = "x-yes" ; then
13088 aros_cflags_array_bounds=-Wno-array-bounds
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13092 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13093 CFLAGS=-Wenum-compare
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13098 main ()
13102 return 0;
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"; then :
13106 aros_enum_compare="yes"
13107 else
13108 aros_enum_compare="no"
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13112 $as_echo "$aros_enum_compare" >&6; }
13113 if test "x-$aros_enum_compare" = "x-yes" ; then
13114 aros_cflags_enum_compare=-Wno-enum-compare
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13118 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13119 CFLAGS=-Wstrict-overflow
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13124 main ()
13128 return 0;
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132 aros_strict_overflow="yes"
13133 else
13134 aros_strict_overflow="no"
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13138 $as_echo "$aros_strict_overflow" >&6; }
13139 if test "x-$aros_strict_overflow" = "x-yes" ; then
13140 aros_cflags_strict_overflow=-Wno-strict-overflow
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13144 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13145 CFLAGS=-Wformat-security
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13150 main ()
13154 return 0;
13156 _ACEOF
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158 aros_format_security="yes"
13159 else
13160 aros_format_security="no"
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13164 $as_echo "$aros_format_security" >&6; }
13165 if test "x-$aros_format_security" = "x-yes" ; then
13166 aros_cflags_format_security=-Wno-format-security
13168 else
13169 # We do not know which gcc version we are going to build and what we need to know
13170 # here is different for different versions so this will be set later during the
13171 # build of crosstools.
13172 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13173 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13174 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13175 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13176 aros_cflags_format_security=@aros_cflags_format_security@
13179 #-----------------------------------------------------------------------------
13181 # Check if we can explicitly choose older version of symbol hashing
13183 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13184 CC="$aros_kernel_cc"
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13186 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13191 main ()
13195 return 0;
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 use_hash_style="yes"
13200 else
13201 use_hash_style="no"
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13206 $as_echo "$use_hash_style" >&6; }
13207 if test "x-$use_hash_style" = "x-yes" ; then
13208 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13210 CC="$save_cc"
13211 CFLAGS="$save_cflags"
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13222 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13224 # Check whether --with-resolution was given.
13225 if test "${with_resolution+set}" = set; then :
13226 withval=$with_resolution; resolution=$withval
13227 else
13228 resolution=none
13231 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13232 if test "$resolution" = "yes" ; then
13233 resolution="none"
13235 if test "$resolution" = "no" ; then
13236 resolution="none"
13238 if test "$resolution" != "none" ; then
13239 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13240 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13241 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13244 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13245 aros_cv_default_wbwidth=$aros_default_wbwidth
13246 aros_cv_default_wbheight=$aros_default_wbheight
13247 aros_cv_default_wbdepth=$aros_default_wbdepth
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13250 $as_echo_n "checking if serial debug is enabled... " >&6; }
13252 # Check whether --with-serial-debug was given.
13253 if test "${with_serial_debug+set}" = set; then :
13254 withval=$with_serial_debug; serial_debug=$withval
13255 else
13256 serial_debug=none
13259 if test "$aros_serial_debug" = 0 ; then
13260 serial_debug_forced=""
13261 if test "$serial_debug" = "yes" ; then
13262 serial_debug="1"
13264 if test "$serial_debug" = "no" ; then
13265 serial_debug="none"
13267 else
13268 serial_debug_forced="(forced)"
13269 serial_debug=$aros_serial_debug
13271 if test "$serial_debug" != "none" ; then
13272 aros_serial_debug=$serial_debug
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13274 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13281 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13282 # Check whether --enable-palm_debug_hack was given.
13283 if test "${enable_palm_debug_hack+set}" = set; then :
13284 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13285 else
13286 palm_debug_hack="no"
13289 if test "$palm_debug_hack" = "yes" ; then
13290 aros_palm_debug_hack="1"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13293 $as_echo "$palm_debug_hack" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13296 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13297 # Check whether --enable-nesting_supervisor was given.
13298 if test "${enable_nesting_supervisor+set}" = set; then :
13299 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13300 else
13301 nesting_supervisor="no"
13304 if test "$nesting_supervisor" = "yes" ; then
13305 aros_nesting_supervisor="1"
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13308 $as_echo "$nesting_supervisor" >&6; }
13310 if test "$aros_enable_mmu" = "" ; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13312 $as_echo_n "checking if MMU support is enabled... " >&6; }
13313 # Check whether --enable-mmu was given.
13314 if test "${enable_mmu+set}" = set; then :
13315 enableval=$enable_mmu; aros_enable_mmu=$enableval
13316 else
13317 aros_enable_mmu="yes"
13320 if test "$aros_enable_mmu" = "" ; then
13321 aros_enable_mmu="yes"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13324 $as_echo "$aros_enable_mmu" >&6; }
13326 if test "$aros_enable_mmu" = "no" ; then
13327 aros_enable_mmu="0"
13328 else
13329 aros_enable_mmu="1"
13333 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13335 if test "x-$need_dlopen" != "x-no" ; then
13336 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13337 if test "x$ac_cv_func_dlopen" = xyes; then :
13338 have_dl="yes"
13339 else
13340 have_dl="no"
13343 if test "x-$have_dl" = "x-no" ; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13346 if ${ac_cv_lib_dl_dlopen+:} false; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 ac_check_lib_save_LIBS=$LIBS
13350 LIBS="-ldl $LIBS"
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13354 /* Override any GCC internal prototype to avoid an error.
13355 Use char because int might match the return type of a GCC
13356 builtin and then its argument prototype would still apply. */
13357 #ifdef __cplusplus
13358 extern "C"
13359 #endif
13360 char dlopen ();
13362 main ()
13364 return dlopen ();
13366 return 0;
13368 _ACEOF
13369 if ac_fn_c_try_link "$LINENO"; then :
13370 ac_cv_lib_dl_dlopen=yes
13371 else
13372 ac_cv_lib_dl_dlopen=no
13374 rm -f core conftest.err conftest.$ac_objext \
13375 conftest$ac_exeext conftest.$ac_ext
13376 LIBS=$ac_check_lib_save_LIBS
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13380 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13381 have_dl="yes"
13382 aros_host_ldflags="$aros_host_ldflags -ldl"
13383 else
13384 have_dl="no"
13388 if test "x-$have_dl" = "x-no" ; then
13389 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13394 # Check whether --enable-x11_hidd was given.
13395 if test "${enable_x11_hidd+set}" = set; then :
13396 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13397 else
13398 x11_hidd="$need_x11"
13401 case "x-$x11_hidd" in
13402 x-yes|x-no|x-auto) ;;
13403 *) x11_hidd="$need_x11" ;;
13404 esac
13406 ENABLE_X11=0
13408 if test "x-$x11_hidd" != "x-no" ; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13411 $as_echo_n "checking for X... " >&6; }
13414 # Check whether --with-x was given.
13415 if test "${with_x+set}" = set; then :
13416 withval=$with_x;
13419 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13420 if test "x$with_x" = xno; then
13421 # The user explicitly disabled X.
13422 have_x=disabled
13423 else
13424 case $x_includes,$x_libraries in #(
13425 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13426 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 # One or both of the vars are not set, and there is no cached value.
13430 ac_x_includes=no ac_x_libraries=no
13431 rm -f -r conftest.dir
13432 if mkdir conftest.dir; then
13433 cd conftest.dir
13434 cat >Imakefile <<'_ACEOF'
13435 incroot:
13436 @echo incroot='${INCROOT}'
13437 usrlibdir:
13438 @echo usrlibdir='${USRLIBDIR}'
13439 libdir:
13440 @echo libdir='${LIBDIR}'
13441 _ACEOF
13442 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13443 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13444 for ac_var in incroot usrlibdir libdir; do
13445 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13446 done
13447 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13448 for ac_extension in a so sl dylib la dll; do
13449 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13450 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13451 ac_im_usrlibdir=$ac_im_libdir; break
13453 done
13454 # Screen out bogus values from the imake configuration. They are
13455 # bogus both because they are the default anyway, and because
13456 # using them would break gcc on systems where it needs fixed includes.
13457 case $ac_im_incroot in
13458 /usr/include) ac_x_includes= ;;
13459 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13460 esac
13461 case $ac_im_usrlibdir in
13462 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13463 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13464 esac
13466 cd ..
13467 rm -f -r conftest.dir
13470 # Standard set of common directories for X headers.
13471 # Check X11 before X11Rn because it is often a symlink to the current release.
13472 ac_x_header_dirs='
13473 /usr/X11/include
13474 /usr/X11R7/include
13475 /usr/X11R6/include
13476 /usr/X11R5/include
13477 /usr/X11R4/include
13479 /usr/include/X11
13480 /usr/include/X11R7
13481 /usr/include/X11R6
13482 /usr/include/X11R5
13483 /usr/include/X11R4
13485 /usr/local/X11/include
13486 /usr/local/X11R7/include
13487 /usr/local/X11R6/include
13488 /usr/local/X11R5/include
13489 /usr/local/X11R4/include
13491 /usr/local/include/X11
13492 /usr/local/include/X11R7
13493 /usr/local/include/X11R6
13494 /usr/local/include/X11R5
13495 /usr/local/include/X11R4
13497 /usr/X386/include
13498 /usr/x386/include
13499 /usr/XFree86/include/X11
13501 /usr/include
13502 /usr/local/include
13503 /usr/unsupported/include
13504 /usr/athena/include
13505 /usr/local/x11r5/include
13506 /usr/lpp/Xamples/include
13508 /usr/openwin/include
13509 /usr/openwin/share/include'
13511 if test "$ac_x_includes" = no; then
13512 # Guess where to find include files, by looking for Xlib.h.
13513 # First, try using that file with no special directory specified.
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 #include <X11/Xlib.h>
13517 _ACEOF
13518 if ac_fn_c_try_cpp "$LINENO"; then :
13519 # We can compile using X headers with no special include directory.
13520 ac_x_includes=
13521 else
13522 for ac_dir in $ac_x_header_dirs; do
13523 if test -r "$ac_dir/X11/Xlib.h"; then
13524 ac_x_includes=$ac_dir
13525 break
13527 done
13529 rm -f conftest.err conftest.i conftest.$ac_ext
13530 fi # $ac_x_includes = no
13532 if test "$ac_x_libraries" = no; then
13533 # Check for the libraries.
13534 # See if we find them without any special options.
13535 # Don't add to $LIBS permanently.
13536 ac_save_LIBS=$LIBS
13537 LIBS="-lX11 $LIBS"
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #include <X11/Xlib.h>
13542 main ()
13544 XrmInitialize ()
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 LIBS=$ac_save_LIBS
13551 # We can link X programs with no special library path.
13552 ac_x_libraries=
13553 else
13554 LIBS=$ac_save_LIBS
13555 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13557 # Don't even attempt the hair of trying to link an X program!
13558 for ac_extension in a so sl dylib la dll; do
13559 if test -r "$ac_dir/libX11.$ac_extension"; then
13560 ac_x_libraries=$ac_dir
13561 break 2
13563 done
13564 done
13566 rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13568 fi # $ac_x_libraries = no
13570 case $ac_x_includes,$ac_x_libraries in #(
13571 no,* | *,no | *\'*)
13572 # Didn't find X, or a directory has "'" in its name.
13573 ac_cv_have_x="have_x=no";; #(
13575 # Record where we found X for the cache.
13576 ac_cv_have_x="have_x=yes\
13577 ac_x_includes='$ac_x_includes'\
13578 ac_x_libraries='$ac_x_libraries'"
13579 esac
13581 ;; #(
13582 *) have_x=yes;;
13583 esac
13584 eval "$ac_cv_have_x"
13585 fi # $with_x != no
13587 if test "$have_x" != yes; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13589 $as_echo "$have_x" >&6; }
13590 no_x=yes
13591 else
13592 # If each of the values was on the command line, it overrides each guess.
13593 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13594 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13595 # Update the cache value to reflect the command line values.
13596 ac_cv_have_x="have_x=yes\
13597 ac_x_includes='$x_includes'\
13598 ac_x_libraries='$x_libraries'"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13600 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13604 x_cflags=
13605 for path in $x_libraries
13607 x_cflags="$x_cflags -L$path"
13608 done
13610 for path in $x_includes
13612 x_cflags="$x_cflags -I$path"
13613 done
13615 if test "x-$no_x" = "x-yes" ; then
13617 if test "x-$x11_hidd" != "x-auto" ; then
13618 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13621 else
13622 x11_hidd_target=kernel-x11gfx-kobj
13623 ENABLE_X11=1
13625 # Check whether --enable-x11_shm was given.
13626 if test "${enable_x11_shm+set}" = set; then :
13627 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13628 else
13629 x11_hidd_shm="auto"
13632 case "x-$x11_hidd_shm" in
13633 x-yes|x-no|x-auto) ;;
13634 *) x11_hidd_shm="auto" ;;
13635 esac
13637 have_xshm=no
13639 if test "x-$x11_hidd_shm" != "x-no" ; then
13641 for ac_header in sys/ipc.h
13642 do :
13643 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13644 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13645 cat >>confdefs.h <<_ACEOF
13646 #define HAVE_SYS_IPC_H 1
13647 _ACEOF
13651 done
13653 for ac_header in sys/shm.h
13654 do :
13655 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13656 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_SYS_SHM_H 1
13659 _ACEOF
13663 done
13666 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13668 save_cflags="$CFLAGS"
13669 CFLAGS="$CFLAGS $x_cflags"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13671 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13672 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 ac_check_lib_save_LIBS=$LIBS
13676 LIBS="-lXext $LIBS"
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char XShmQueryExtension ();
13688 main ()
13690 return XShmQueryExtension ();
13692 return 0;
13694 _ACEOF
13695 if ac_fn_c_try_link "$LINENO"; then :
13696 ac_cv_lib_Xext_XShmQueryExtension=yes
13697 else
13698 ac_cv_lib_Xext_XShmQueryExtension=no
13700 rm -f core conftest.err conftest.$ac_objext \
13701 conftest$ac_exeext conftest.$ac_ext
13702 LIBS=$ac_check_lib_save_LIBS
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13705 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13706 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13707 have_xshm=yes
13710 CFLAGS="$save_cflags"
13714 if test "x-$have_xshm" = "x-yes" ; then
13715 DO_XSHM_SUPPORT="1"
13716 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13717 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13718 else
13719 DO_XSHM_SUPPORT="0"
13723 # Check whether --enable-x11_vidmode was given.
13724 if test "${enable_x11_vidmode+set}" = set; then :
13725 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13726 else
13727 x11_hidd_vidmode="auto"
13730 case "x-$x11_hidd_vidmode" in
13731 x-yes|x-no|x-auto) ;;
13732 *) x11_hidd_vidmode="auto" ;;
13733 esac
13735 have_vidmode=no
13737 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13739 save_cflags="$CFLAGS"
13740 CFLAGS="$CFLAGS $x_cflags"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13742 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13743 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lXxf86vm $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13751 /* Override any GCC internal prototype to avoid an error.
13752 Use char because int might match the return type of a GCC
13753 builtin and then its argument prototype would still apply. */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 char XF86VidModeQueryExtension ();
13759 main ()
13761 return XF86VidModeQueryExtension ();
13763 return 0;
13765 _ACEOF
13766 if ac_fn_c_try_link "$LINENO"; then :
13767 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13768 else
13769 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13771 rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_check_lib_save_LIBS
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13776 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13777 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13778 have_vidmode=yes
13781 CFLAGS="$save_cflags"
13784 if test "x-$have_vidmode" = "x-yes" ; then
13785 DO_VIDMODE_SUPPORT="1"
13786 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13787 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13788 else
13789 DO_VIDMODE_SUPPORT="0"
13793 aros_host_x11_includes=$x_includes
13794 aros_host_x11_libdirs=$x_libraries
13798 # Check whether --enable-sdl_hidd was given.
13799 if test "${enable_sdl_hidd+set}" = set; then :
13800 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13801 else
13802 sdl_hidd="auto"
13805 case "x-$sdl_hidd" in
13806 x-yes|x-no|x-auto) ;;
13807 *) sdl_hidd="auto" ;;
13808 esac
13810 if test "x-$sdl_hidd" != "x-no" ; then
13813 # Check whether --with-sdl-prefix was given.
13814 if test "${with_sdl_prefix+set}" = set; then :
13815 withval=$with_sdl_prefix; sdl_prefix="$withval"
13816 else
13817 sdl_prefix=""
13821 # Check whether --with-sdl-exec-prefix was given.
13822 if test "${with_sdl_exec_prefix+set}" = set; then :
13823 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13824 else
13825 sdl_exec_prefix=""
13828 # Check whether --enable-sdltest was given.
13829 if test "${enable_sdltest+set}" = set; then :
13830 enableval=$enable_sdltest;
13831 else
13832 enable_sdltest=yes
13836 if test x$sdl_exec_prefix != x ; then
13837 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13838 if test x${SDL_CONFIG+set} != xset ; then
13839 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13842 if test x$sdl_prefix != x ; then
13843 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13844 if test x${SDL_CONFIG+set} != xset ; then
13845 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13849 as_save_PATH="$PATH"
13850 if test "x$prefix" != xNONE; then
13851 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13853 # Extract the first word of "sdl-config", so it can be a program name with args.
13854 set dummy sdl-config; ac_word=$2
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13856 $as_echo_n "checking for $ac_word... " >&6; }
13857 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 case $SDL_CONFIG in
13861 [\\/]* | ?:[\\/]*)
13862 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13872 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 break 2
13876 done
13877 done
13878 IFS=$as_save_IFS
13880 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13882 esac
13884 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13885 if test -n "$SDL_CONFIG"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13887 $as_echo "$SDL_CONFIG" >&6; }
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13894 PATH="$as_save_PATH"
13895 min_sdl_version=1.2.10
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13897 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13898 no_sdl=""
13899 if test "$SDL_CONFIG" = "no" ; then
13900 no_sdl=yes
13901 else
13902 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13903 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13905 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13906 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13907 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13909 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13911 if test "x$enable_sdltest" = "xyes" ; then
13912 ac_save_CFLAGS="$CFLAGS"
13913 ac_save_CXXFLAGS="$CXXFLAGS"
13914 ac_save_LIBS="$LIBS"
13915 CFLAGS="$CFLAGS $SDL_CFLAGS"
13916 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13917 LIBS="$LIBS $SDL_LIBS"
13918 rm -f conf.sdltest
13919 if test "$cross_compiling" = yes; then :
13920 echo $ac_n "cross compiling; assumed OK... $ac_c"
13921 else
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13925 #include <stdio.h>
13926 #include <stdlib.h>
13927 #include <string.h>
13928 #include "SDL.h"
13930 char*
13931 my_strdup (char *str)
13933 char *new_str;
13935 if (str)
13937 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13938 strcpy (new_str, str);
13940 else
13941 new_str = NULL;
13943 return new_str;
13946 int main (int argc, char *argv[])
13948 int major, minor, micro;
13949 char *tmp_version;
13951 /* This hangs on some systems (?)
13952 system ("touch conf.sdltest");
13954 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13956 /* HP/UX 9 (%@#!) writes to sscanf strings */
13957 tmp_version = my_strdup("$min_sdl_version");
13958 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13959 printf("%s, bad version string\n", "$min_sdl_version");
13960 exit(1);
13963 if (($sdl_major_version > major) ||
13964 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13965 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13967 return 0;
13969 else
13971 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13972 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13973 printf("*** best to upgrade to the required version.\n");
13974 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13975 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13976 printf("*** config.cache before re-running configure\n");
13977 return 1;
13982 _ACEOF
13983 if ac_fn_c_try_run "$LINENO"; then :
13985 else
13986 no_sdl=yes
13988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13989 conftest.$ac_objext conftest.beam conftest.$ac_ext
13992 CFLAGS="$ac_save_CFLAGS"
13993 CXXFLAGS="$ac_save_CXXFLAGS"
13994 LIBS="$ac_save_LIBS"
13997 if test "x$no_sdl" = x ; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14000 have_sdl="yes"
14001 else
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14004 if test "$SDL_CONFIG" = "no" ; then
14005 echo "*** The sdl-config script installed by SDL could not be found"
14006 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14007 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14008 echo "*** full path to sdl-config."
14009 else
14010 if test -f conf.sdltest ; then
14012 else
14013 echo "*** Could not run SDL test program, checking why..."
14014 CFLAGS="$CFLAGS $SDL_CFLAGS"
14015 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14016 LIBS="$LIBS $SDL_LIBS"
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14020 #include <stdio.h>
14021 #include "SDL.h"
14023 int main(int argc, char *argv[])
14024 { return 0; }
14025 #undef main
14026 #define main K_and_R_C_main
14029 main ()
14031 return 0;
14033 return 0;
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"; then :
14037 echo "*** The test program compiled, but did not run. This usually means"
14038 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14039 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14040 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14041 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14042 echo "*** is required on your system"
14043 echo "***"
14044 echo "*** If you have an old version installed, it is best to remove it, although"
14045 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14046 else
14047 echo "*** The test program failed to compile or link. See the file config.log for the"
14048 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14049 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14050 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 CFLAGS="$ac_save_CFLAGS"
14055 CXXFLAGS="$ac_save_CXXFLAGS"
14056 LIBS="$ac_save_LIBS"
14059 SDL_CFLAGS=""
14060 SDL_LIBS=""
14061 have_sdl="no"
14065 rm -f conf.sdltest
14068 if test "x-$have_sdl" != "x-yes" ; then
14070 if test "x-$sdl_hidd" != "x-auto" ; then
14071 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14074 else
14075 sdl_hidd_target=kernel-hidd-sdl
14076 aros_host_sdl_cflags=SDL_CFLAGS
14077 aros_host_sdl_libs=SDL_LIBS
14081 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14082 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14087 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14088 oss_library_target=workbench-libs-oss-unix
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14094 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14095 # Check whether --enable-dbus was given.
14096 if test "${enable_dbus+set}" = set; then :
14097 enableval=$enable_dbus; dbus="yes"
14098 else
14099 dbus="no"
14102 if test "$dbus" = "yes" ; then
14103 ENABLE_DBUS=1
14104 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14105 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14106 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14107 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14108 else
14109 ENABLE_DBUS=0
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14112 $as_echo "$dbus" >&6; }
14114 if test "$use_kernel_cc_wrapper" = "yes" ; then
14115 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14118 if test "${crosstools}" != "yes" ; then
14119 aros_target_toolchain=no
14120 else
14121 aros_target_toolchain=yes
14125 # Generic
14137 # Compatability with other Amiga-like operation systems
14140 # Host related
14168 # Target Related
14232 # Delinting target compiler flags
14239 # Graphics Related
14256 # Native version related
14259 # Palm native version related
14262 # Unix/Hosted version related
14265 # MMU related
14268 # Apple iOS related
14273 # Android related
14277 # DBUS related
14284 #X11 related
14287 # Debug related
14293 # Collect-aros stuff: "-ius" to ignore undefined symbols
14296 # C compiler related
14299 case "$aros_flavour" in
14300 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14301 aros_flavour="emulation" ;;
14302 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14303 aros_flavour="emulation" ;;
14304 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14305 aros_flavour="standalone";;
14306 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14307 aros_flavour="standalone";;
14308 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14309 aros_flavour="native" ;;
14310 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14311 aros_flavour="native" ;;
14312 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14313 aros_flavour="linklib" ;;
14314 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14315 aros_flavour="palmnative" ;;
14316 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14317 aros_flavour="mac68knative" ;;
14318 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14319 aros_flavour="ppcnative" ;;
14320 esac
14322 if test ! -d ${aros_inc_dir} ; then
14323 ${MKDIR} ${aros_inc_dir}
14325 if test ! -d ${aros_geninc_dir} ; then
14326 ${MKDIR} ${aros_geninc_dir}
14328 if test ! -d ${aros_hostcfg_dir} ; then
14329 ${MKDIR} ${aros_hostcfg_dir}
14331 if test ! -d ${aros_targetcfg_dir} ; then
14332 ${MKDIR} ${aros_targetcfg_dir}
14334 if test ! -d ${aros_tools_dir} ; then
14335 ${MKDIR} ${aros_tools_dir}
14337 if test ! -d ${aros_scripts_dir} ; then
14338 ${MKDIR} ${aros_scripts_dir}
14341 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14344 ac_config_commands="$ac_config_commands compiler_executable"
14346 ac_config_commands="$ac_config_commands genmf_executable"
14349 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"
14352 cat >confcache <<\_ACEOF
14353 # This file is a shell script that caches the results of configure
14354 # tests run on this system so they can be shared between configure
14355 # scripts and configure runs, see configure's option --config-cache.
14356 # It is not useful on other systems. If it contains results you don't
14357 # want to keep, you may remove or edit it.
14359 # config.status only pays attention to the cache file if you give it
14360 # the --recheck option to rerun configure.
14362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14364 # following values.
14366 _ACEOF
14368 # The following way of writing the cache mishandles newlines in values,
14369 # but we know of no workaround that is simple, portable, and efficient.
14370 # So, we kill variables containing newlines.
14371 # Ultrix sh set writes to stderr and can't be redirected directly,
14372 # and sets the high bit in the cache file unless we assign to the vars.
14374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14375 eval ac_val=\$$ac_var
14376 case $ac_val in #(
14377 *${as_nl}*)
14378 case $ac_var in #(
14379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14381 esac
14382 case $ac_var in #(
14383 _ | IFS | as_nl) ;; #(
14384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14385 *) { eval $ac_var=; unset $ac_var;} ;;
14386 esac ;;
14387 esac
14388 done
14390 (set) 2>&1 |
14391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14392 *${as_nl}ac_space=\ *)
14393 # `set' does not quote correctly, so add quotes: double-quote
14394 # substitution turns \\\\ into \\, and sed turns \\ into \.
14395 sed -n \
14396 "s/'/'\\\\''/g;
14397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14398 ;; #(
14400 # `set' quotes correctly as required by POSIX, so do not add quotes.
14401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14403 esac |
14404 sort
14406 sed '
14407 /^ac_cv_env_/b end
14408 t clear
14409 :clear
14410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14411 t end
14412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14413 :end' >>confcache
14414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14415 if test -w "$cache_file"; then
14416 if test "x$cache_file" != "x/dev/null"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14418 $as_echo "$as_me: updating cache $cache_file" >&6;}
14419 if test ! -f "$cache_file" || test -h "$cache_file"; then
14420 cat confcache >"$cache_file"
14421 else
14422 case $cache_file in #(
14423 */* | ?:*)
14424 mv -f confcache "$cache_file"$$ &&
14425 mv -f "$cache_file"$$ "$cache_file" ;; #(
14427 mv -f confcache "$cache_file" ;;
14428 esac
14431 else
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14433 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14436 rm -f confcache
14438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14439 # Let make expand exec_prefix.
14440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14442 DEFS=-DHAVE_CONFIG_H
14444 ac_libobjs=
14445 ac_ltlibobjs=
14447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14448 # 1. Remove the extension, and $U if already installed.
14449 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14450 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14452 # will be set to the directory where LIBOBJS objects are built.
14453 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14454 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14455 done
14456 LIBOBJS=$ac_libobjs
14458 LTLIBOBJS=$ac_ltlibobjs
14462 : "${CONFIG_STATUS=./config.status}"
14463 ac_write_fail=0
14464 ac_clean_files_save=$ac_clean_files
14465 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14467 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14468 as_write_fail=0
14469 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14470 #! $SHELL
14471 # Generated by $as_me.
14472 # Run this file to recreate the current configuration.
14473 # Compiler output produced by configure, useful for debugging
14474 # configure, is in config.log if it exists.
14476 debug=false
14477 ac_cs_recheck=false
14478 ac_cs_silent=false
14480 SHELL=\${CONFIG_SHELL-$SHELL}
14481 export SHELL
14482 _ASEOF
14483 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14484 ## -------------------- ##
14485 ## M4sh Initialization. ##
14486 ## -------------------- ##
14488 # Be more Bourne compatible
14489 DUALCASE=1; export DUALCASE # for MKS sh
14490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14491 emulate sh
14492 NULLCMD=:
14493 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14494 # is contrary to our usage. Disable this feature.
14495 alias -g '${1+"$@"}'='"$@"'
14496 setopt NO_GLOB_SUBST
14497 else
14498 case `(set -o) 2>/dev/null` in #(
14499 *posix*) :
14500 set -o posix ;; #(
14501 *) :
14503 esac
14507 as_nl='
14509 export as_nl
14510 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14511 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14512 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14513 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14514 # Prefer a ksh shell builtin over an external printf program on Solaris,
14515 # but without wasting forks for bash or zsh.
14516 if test -z "$BASH_VERSION$ZSH_VERSION" \
14517 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14518 as_echo='print -r --'
14519 as_echo_n='print -rn --'
14520 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14521 as_echo='printf %s\n'
14522 as_echo_n='printf %s'
14523 else
14524 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14525 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14526 as_echo_n='/usr/ucb/echo -n'
14527 else
14528 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14529 as_echo_n_body='eval
14530 arg=$1;
14531 case $arg in #(
14532 *"$as_nl"*)
14533 expr "X$arg" : "X\\(.*\\)$as_nl";
14534 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14535 esac;
14536 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14538 export as_echo_n_body
14539 as_echo_n='sh -c $as_echo_n_body as_echo'
14541 export as_echo_body
14542 as_echo='sh -c $as_echo_body as_echo'
14545 # The user is always right.
14546 if test "${PATH_SEPARATOR+set}" != set; then
14547 PATH_SEPARATOR=:
14548 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14549 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14550 PATH_SEPARATOR=';'
14555 # IFS
14556 # We need space, tab and new line, in precisely that order. Quoting is
14557 # there to prevent editors from complaining about space-tab.
14558 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14559 # splitting by setting IFS to empty value.)
14560 IFS=" "" $as_nl"
14562 # Find who we are. Look in the path if we contain no directory separator.
14563 as_myself=
14564 case $0 in #((
14565 *[\\/]* ) as_myself=$0 ;;
14566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14572 done
14573 IFS=$as_save_IFS
14576 esac
14577 # We did not find ourselves, most probably we were run as `sh COMMAND'
14578 # in which case we are not to be found in the path.
14579 if test "x$as_myself" = x; then
14580 as_myself=$0
14582 if test ! -f "$as_myself"; then
14583 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14584 exit 1
14587 # Unset variables that we do not need and which cause bugs (e.g. in
14588 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14589 # suppresses any "Segmentation fault" message there. '((' could
14590 # trigger a bug in pdksh 5.2.14.
14591 for as_var in BASH_ENV ENV MAIL MAILPATH
14592 do eval test x\${$as_var+set} = xset \
14593 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14594 done
14595 PS1='$ '
14596 PS2='> '
14597 PS4='+ '
14599 # NLS nuisances.
14600 LC_ALL=C
14601 export LC_ALL
14602 LANGUAGE=C
14603 export LANGUAGE
14605 # CDPATH.
14606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14609 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14610 # ----------------------------------------
14611 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14612 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14613 # script with STATUS, using 1 if that was 0.
14614 as_fn_error ()
14616 as_status=$1; test $as_status -eq 0 && as_status=1
14617 if test "$4"; then
14618 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14619 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14621 $as_echo "$as_me: error: $2" >&2
14622 as_fn_exit $as_status
14623 } # as_fn_error
14626 # as_fn_set_status STATUS
14627 # -----------------------
14628 # Set $? to STATUS, without forking.
14629 as_fn_set_status ()
14631 return $1
14632 } # as_fn_set_status
14634 # as_fn_exit STATUS
14635 # -----------------
14636 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14637 as_fn_exit ()
14639 set +e
14640 as_fn_set_status $1
14641 exit $1
14642 } # as_fn_exit
14644 # as_fn_unset VAR
14645 # ---------------
14646 # Portably unset VAR.
14647 as_fn_unset ()
14649 { eval $1=; unset $1;}
14651 as_unset=as_fn_unset
14652 # as_fn_append VAR VALUE
14653 # ----------------------
14654 # Append the text in VALUE to the end of the definition contained in VAR. Take
14655 # advantage of any shell optimizations that allow amortized linear growth over
14656 # repeated appends, instead of the typical quadratic growth present in naive
14657 # implementations.
14658 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14659 eval 'as_fn_append ()
14661 eval $1+=\$2
14663 else
14664 as_fn_append ()
14666 eval $1=\$$1\$2
14668 fi # as_fn_append
14670 # as_fn_arith ARG...
14671 # ------------------
14672 # Perform arithmetic evaluation on the ARGs, and store the result in the
14673 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14674 # must be portable across $(()) and expr.
14675 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14676 eval 'as_fn_arith ()
14678 as_val=$(( $* ))
14680 else
14681 as_fn_arith ()
14683 as_val=`expr "$@" || test $? -eq 1`
14685 fi # as_fn_arith
14688 if expr a : '\(a\)' >/dev/null 2>&1 &&
14689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14690 as_expr=expr
14691 else
14692 as_expr=false
14695 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14696 as_basename=basename
14697 else
14698 as_basename=false
14701 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14702 as_dirname=dirname
14703 else
14704 as_dirname=false
14707 as_me=`$as_basename -- "$0" ||
14708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14709 X"$0" : 'X\(//\)$' \| \
14710 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14711 $as_echo X/"$0" |
14712 sed '/^.*\/\([^/][^/]*\)\/*$/{
14713 s//\1/
14716 /^X\/\(\/\/\)$/{
14717 s//\1/
14720 /^X\/\(\/\).*/{
14721 s//\1/
14724 s/.*/./; q'`
14726 # Avoid depending upon Character Ranges.
14727 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14728 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14729 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14730 as_cr_digits='0123456789'
14731 as_cr_alnum=$as_cr_Letters$as_cr_digits
14733 ECHO_C= ECHO_N= ECHO_T=
14734 case `echo -n x` in #(((((
14735 -n*)
14736 case `echo 'xy\c'` in
14737 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14738 xy) ECHO_C='\c';;
14739 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14740 ECHO_T=' ';;
14741 esac;;
14743 ECHO_N='-n';;
14744 esac
14746 rm -f conf$$ conf$$.exe conf$$.file
14747 if test -d conf$$.dir; then
14748 rm -f conf$$.dir/conf$$.file
14749 else
14750 rm -f conf$$.dir
14751 mkdir conf$$.dir 2>/dev/null
14753 if (echo >conf$$.file) 2>/dev/null; then
14754 if ln -s conf$$.file conf$$ 2>/dev/null; then
14755 as_ln_s='ln -s'
14756 # ... but there are two gotchas:
14757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14759 # In both cases, we have to default to `cp -p'.
14760 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14761 as_ln_s='cp -p'
14762 elif ln conf$$.file conf$$ 2>/dev/null; then
14763 as_ln_s=ln
14764 else
14765 as_ln_s='cp -p'
14767 else
14768 as_ln_s='cp -p'
14770 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14771 rmdir conf$$.dir 2>/dev/null
14774 # as_fn_mkdir_p
14775 # -------------
14776 # Create "$as_dir" as a directory, including parents if necessary.
14777 as_fn_mkdir_p ()
14780 case $as_dir in #(
14781 -*) as_dir=./$as_dir;;
14782 esac
14783 test -d "$as_dir" || eval $as_mkdir_p || {
14784 as_dirs=
14785 while :; do
14786 case $as_dir in #(
14787 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14788 *) as_qdir=$as_dir;;
14789 esac
14790 as_dirs="'$as_qdir' $as_dirs"
14791 as_dir=`$as_dirname -- "$as_dir" ||
14792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14793 X"$as_dir" : 'X\(//\)[^/]' \| \
14794 X"$as_dir" : 'X\(//\)$' \| \
14795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14796 $as_echo X"$as_dir" |
14797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14798 s//\1/
14801 /^X\(\/\/\)[^/].*/{
14802 s//\1/
14805 /^X\(\/\/\)$/{
14806 s//\1/
14809 /^X\(\/\).*/{
14810 s//\1/
14813 s/.*/./; q'`
14814 test -d "$as_dir" && break
14815 done
14816 test -z "$as_dirs" || eval "mkdir $as_dirs"
14817 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14820 } # as_fn_mkdir_p
14821 if mkdir -p . 2>/dev/null; then
14822 as_mkdir_p='mkdir -p "$as_dir"'
14823 else
14824 test -d ./-p && rmdir ./-p
14825 as_mkdir_p=false
14828 if test -x / >/dev/null 2>&1; then
14829 as_test_x='test -x'
14830 else
14831 if ls -dL / >/dev/null 2>&1; then
14832 as_ls_L_option=L
14833 else
14834 as_ls_L_option=
14836 as_test_x='
14837 eval sh -c '\''
14838 if test -d "$1"; then
14839 test -d "$1/.";
14840 else
14841 case $1 in #(
14842 -*)set "./$1";;
14843 esac;
14844 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14845 ???[sx]*):;;*)false;;esac;fi
14846 '\'' sh
14849 as_executable_p=$as_test_x
14851 # Sed expression to map a string onto a valid CPP name.
14852 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14854 # Sed expression to map a string onto a valid variable name.
14855 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14858 exec 6>&1
14859 ## ----------------------------------- ##
14860 ## Main body of $CONFIG_STATUS script. ##
14861 ## ----------------------------------- ##
14862 _ASEOF
14863 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14866 # Save the log message, to keep $0 and so on meaningful, and to
14867 # report actual input values of CONFIG_FILES etc. instead of their
14868 # values after options handling.
14869 ac_log="
14870 This file was extended by $as_me, which was
14871 generated by GNU Autoconf 2.68. Invocation command line was
14873 CONFIG_FILES = $CONFIG_FILES
14874 CONFIG_HEADERS = $CONFIG_HEADERS
14875 CONFIG_LINKS = $CONFIG_LINKS
14876 CONFIG_COMMANDS = $CONFIG_COMMANDS
14877 $ $0 $@
14879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14882 _ACEOF
14884 case $ac_config_files in *"
14885 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14886 esac
14888 case $ac_config_headers in *"
14889 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14890 esac
14893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14894 # Files that config.status was made for.
14895 config_files="$ac_config_files"
14896 config_headers="$ac_config_headers"
14897 config_commands="$ac_config_commands"
14899 _ACEOF
14901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14902 ac_cs_usage="\
14903 \`$as_me' instantiates files and other configuration actions
14904 from templates according to the current configuration. Unless the files
14905 and actions are specified as TAGs, all are instantiated by default.
14907 Usage: $0 [OPTION]... [TAG]...
14909 -h, --help print this help, then exit
14910 -V, --version print version number and configuration settings, then exit
14911 --config print configuration, then exit
14912 -q, --quiet, --silent
14913 do not print progress messages
14914 -d, --debug don't remove temporary files
14915 --recheck update $as_me by reconfiguring in the same conditions
14916 --file=FILE[:TEMPLATE]
14917 instantiate the configuration file FILE
14918 --header=FILE[:TEMPLATE]
14919 instantiate the configuration header FILE
14921 Configuration files:
14922 $config_files
14924 Configuration headers:
14925 $config_headers
14927 Configuration commands:
14928 $config_commands
14930 Report bugs to the package provider."
14932 _ACEOF
14933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14935 ac_cs_version="\\
14936 config.status
14937 configured by $0, generated by GNU Autoconf 2.68,
14938 with options \\"\$ac_cs_config\\"
14940 Copyright (C) 2010 Free Software Foundation, Inc.
14941 This config.status script is free software; the Free Software Foundation
14942 gives unlimited permission to copy, distribute and modify it."
14944 ac_pwd='$ac_pwd'
14945 srcdir='$srcdir'
14946 test -n "\$AWK" || AWK=awk
14947 _ACEOF
14949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14950 # The default lists apply if the user does not specify any file.
14951 ac_need_defaults=:
14952 while test $# != 0
14954 case $1 in
14955 --*=?*)
14956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14957 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14958 ac_shift=:
14960 --*=)
14961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14962 ac_optarg=
14963 ac_shift=:
14966 ac_option=$1
14967 ac_optarg=$2
14968 ac_shift=shift
14970 esac
14972 case $ac_option in
14973 # Handling of the options.
14974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14975 ac_cs_recheck=: ;;
14976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14977 $as_echo "$ac_cs_version"; exit ;;
14978 --config | --confi | --conf | --con | --co | --c )
14979 $as_echo "$ac_cs_config"; exit ;;
14980 --debug | --debu | --deb | --de | --d | -d )
14981 debug=: ;;
14982 --file | --fil | --fi | --f )
14983 $ac_shift
14984 case $ac_optarg in
14985 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14986 '') as_fn_error $? "missing file argument" ;;
14987 esac
14988 as_fn_append CONFIG_FILES " '$ac_optarg'"
14989 ac_need_defaults=false;;
14990 --header | --heade | --head | --hea )
14991 $ac_shift
14992 case $ac_optarg in
14993 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14994 esac
14995 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14996 ac_need_defaults=false;;
14997 --he | --h)
14998 # Conflict between --help and --header
14999 as_fn_error $? "ambiguous option: \`$1'
15000 Try \`$0 --help' for more information.";;
15001 --help | --hel | -h )
15002 $as_echo "$ac_cs_usage"; exit ;;
15003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15005 ac_cs_silent=: ;;
15007 # This is an error.
15008 -*) as_fn_error $? "unrecognized option: \`$1'
15009 Try \`$0 --help' for more information." ;;
15011 *) as_fn_append ac_config_targets " $1"
15012 ac_need_defaults=false ;;
15014 esac
15015 shift
15016 done
15018 ac_configure_extra_args=
15020 if $ac_cs_silent; then
15021 exec 6>/dev/null
15022 ac_configure_extra_args="$ac_configure_extra_args --silent"
15025 _ACEOF
15026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027 if \$ac_cs_recheck; then
15028 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15029 shift
15030 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15031 CONFIG_SHELL='$SHELL'
15032 export CONFIG_SHELL
15033 exec "\$@"
15036 _ACEOF
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 exec 5>>config.log
15040 echo
15041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15042 ## Running $as_me. ##
15043 _ASBOX
15044 $as_echo "$ac_log"
15045 } >&5
15047 _ACEOF
15048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15050 # INIT-COMMANDS
15053 aros_host_exe_suffix=${aros_host_exe_suffix}
15054 aros_tools_dir=${aros_tools_dir}
15055 aros_target_cpu=${aros_target_cpu}
15056 aros_target_arch=${aros_target_arch}
15057 aros_target_suffix=${aros_target_suffix}
15058 orig_target_nm=${orig_target_nm}
15059 orig_target_as=${orig_target_as}
15060 orig_target_ar=${orig_target_ar}
15061 orig_target_ranlib=${orig_target_ranlib}
15062 orig_target_objdump=${orig_target_objdump}
15063 orig_target_objcopy=${orig_target_objcopy}
15064 orig_target_strip=${orig_target_strip}
15065 aros_kernel_ld=${aros_kernel_ld}
15068 aros_tools_dir=${aros_tools_dir}
15071 _ACEOF
15073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15075 # Handling of arguments.
15076 for ac_config_target in $ac_config_targets
15078 case $ac_config_target in
15079 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15080 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15081 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15083 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15084 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15085 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15086 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15087 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15088 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15089 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15090 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15091 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15092 "${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" ;;
15093 "${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" ;;
15094 "${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" ;;
15095 "${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" ;;
15096 "${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" ;;
15097 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15098 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15099 "${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" ;;
15101 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15102 esac
15103 done
15106 # If the user did not use the arguments to specify the items to instantiate,
15107 # then the envvar interface is used. Set only those that are not.
15108 # We use the long form for the default assignment because of an extremely
15109 # bizarre bug on SunOS 4.1.3.
15110 if $ac_need_defaults; then
15111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15116 # Have a temporary directory for convenience. Make it in the build tree
15117 # simply because there is no reason against having it here, and in addition,
15118 # creating and moving files from /tmp can sometimes cause problems.
15119 # Hook for its removal unless debugging.
15120 # Note that there is a small window in which the directory will not be cleaned:
15121 # after its creation but before its name has been assigned to `$tmp'.
15122 $debug ||
15124 tmp= ac_tmp=
15125 trap 'exit_status=$?
15126 : "${ac_tmp:=$tmp}"
15127 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15129 trap 'as_fn_exit 1' 1 2 13 15
15131 # Create a (secure) tmp directory for tmp files.
15134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15135 test -d "$tmp"
15136 } ||
15138 tmp=./conf$$-$RANDOM
15139 (umask 077 && mkdir "$tmp")
15140 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15141 ac_tmp=$tmp
15143 # Set up the scripts for CONFIG_FILES section.
15144 # No need to generate them if there are no CONFIG_FILES.
15145 # This happens for instance with `./config.status config.h'.
15146 if test -n "$CONFIG_FILES"; then
15149 ac_cr=`echo X | tr X '\015'`
15150 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15151 # But we know of no other shell where ac_cr would be empty at this
15152 # point, so we can use a bashism as a fallback.
15153 if test "x$ac_cr" = x; then
15154 eval ac_cr=\$\'\\r\'
15156 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15157 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15158 ac_cs_awk_cr='\\r'
15159 else
15160 ac_cs_awk_cr=$ac_cr
15163 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15164 _ACEOF
15168 echo "cat >conf$$subs.awk <<_ACEOF" &&
15169 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15170 echo "_ACEOF"
15171 } >conf$$subs.sh ||
15172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15173 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15174 ac_delim='%!_!# '
15175 for ac_last_try in false false false false false :; do
15176 . ./conf$$subs.sh ||
15177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15179 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15180 if test $ac_delim_n = $ac_delim_num; then
15181 break
15182 elif $ac_last_try; then
15183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15184 else
15185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15187 done
15188 rm -f conf$$subs.sh
15190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15192 _ACEOF
15193 sed -n '
15195 s/^/S["/; s/!.*/"]=/
15198 s/^[^!]*!//
15199 :repl
15200 t repl
15201 s/'"$ac_delim"'$//
15202 t delim
15205 s/\(.\{148\}\)..*/\1/
15206 t more1
15207 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15210 b repl
15211 :more1
15212 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15215 s/.\{148\}//
15216 t nl
15217 :delim
15219 s/\(.\{148\}\)..*/\1/
15220 t more2
15221 s/["\\]/\\&/g; s/^/"/; s/$/"/
15224 :more2
15225 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15228 s/.\{148\}//
15229 t delim
15230 ' <conf$$subs.awk | sed '
15231 /^[^""]/{
15233 s/\n//
15235 ' >>$CONFIG_STATUS || ac_write_fail=1
15236 rm -f conf$$subs.awk
15237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15238 _ACAWK
15239 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15240 for (key in S) S_is_set[key] = 1
15241 FS = "\a"
15245 line = $ 0
15246 nfields = split(line, field, "@")
15247 substed = 0
15248 len = length(field[1])
15249 for (i = 2; i < nfields; i++) {
15250 key = field[i]
15251 keylen = length(key)
15252 if (S_is_set[key]) {
15253 value = S[key]
15254 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15255 len += length(value) + length(field[++i])
15256 substed = 1
15257 } else
15258 len += 1 + keylen
15261 print line
15264 _ACAWK
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15268 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15269 else
15271 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15272 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15273 _ACEOF
15275 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15276 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15277 # trailing colons and then remove the whole line if VPATH becomes empty
15278 # (actually we leave an empty line to preserve line numbers).
15279 if test "x$srcdir" = x.; then
15280 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15282 s///
15283 s/^/:/
15284 s/[ ]*$/:/
15285 s/:\$(srcdir):/:/g
15286 s/:\${srcdir}:/:/g
15287 s/:@srcdir@:/:/g
15288 s/^:*//
15289 s/:*$//
15291 s/\(=[ ]*\).*/\1/
15293 s/\n//
15294 s/^[^=]*=[ ]*$//
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299 fi # test -n "$CONFIG_FILES"
15301 # Set up the scripts for CONFIG_HEADERS section.
15302 # No need to generate them if there are no CONFIG_HEADERS.
15303 # This happens for instance with `./config.status Makefile'.
15304 if test -n "$CONFIG_HEADERS"; then
15305 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15306 BEGIN {
15307 _ACEOF
15309 # Transform confdefs.h into an awk script `defines.awk', embedded as
15310 # here-document in config.status, that substitutes the proper values into
15311 # config.h.in to produce config.h.
15313 # Create a delimiter string that does not exist in confdefs.h, to ease
15314 # handling of long lines.
15315 ac_delim='%!_!# '
15316 for ac_last_try in false false :; do
15317 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15318 if test -z "$ac_tt"; then
15319 break
15320 elif $ac_last_try; then
15321 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15322 else
15323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15325 done
15327 # For the awk script, D is an array of macro values keyed by name,
15328 # likewise P contains macro parameters if any. Preserve backslash
15329 # newline sequences.
15331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15332 sed -n '
15333 s/.\{148\}/&'"$ac_delim"'/g
15334 t rset
15335 :rset
15336 s/^[ ]*#[ ]*define[ ][ ]*/ /
15337 t def
15339 :def
15340 s/\\$//
15341 t bsnl
15342 s/["\\]/\\&/g
15343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15344 D["\1"]=" \3"/p
15345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15347 :bsnl
15348 s/["\\]/\\&/g
15349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15350 D["\1"]=" \3\\\\\\n"\\/p
15351 t cont
15352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15353 t cont
15355 :cont
15357 s/.\{148\}/&'"$ac_delim"'/g
15358 t clear
15359 :clear
15360 s/\\$//
15361 t bsnlc
15362 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15364 :bsnlc
15365 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15366 b cont
15367 ' <confdefs.h | sed '
15368 s/'"$ac_delim"'/"\\\
15369 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15372 for (key in D) D_is_set[key] = 1
15373 FS = "\a"
15375 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15376 line = \$ 0
15377 split(line, arg, " ")
15378 if (arg[1] == "#") {
15379 defundef = arg[2]
15380 mac1 = arg[3]
15381 } else {
15382 defundef = substr(arg[1], 2)
15383 mac1 = arg[2]
15385 split(mac1, mac2, "(") #)
15386 macro = mac2[1]
15387 prefix = substr(line, 1, index(line, defundef) - 1)
15388 if (D_is_set[macro]) {
15389 # Preserve the white space surrounding the "#".
15390 print prefix "define", macro P[macro] D[macro]
15391 next
15392 } else {
15393 # Replace #undef with comments. This is necessary, for example,
15394 # in the case of _POSIX_SOURCE, which is predefined and required
15395 # on some systems where configure will not decide to define it.
15396 if (defundef == "undef") {
15397 print "/*", prefix defundef, macro, "*/"
15398 next
15402 { print }
15403 _ACAWK
15404 _ACEOF
15405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15406 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15407 fi # test -n "$CONFIG_HEADERS"
15410 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15411 shift
15412 for ac_tag
15414 case $ac_tag in
15415 :[FHLC]) ac_mode=$ac_tag; continue;;
15416 esac
15417 case $ac_mode$ac_tag in
15418 :[FHL]*:*);;
15419 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15420 :[FH]-) ac_tag=-:-;;
15421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15422 esac
15423 ac_save_IFS=$IFS
15424 IFS=:
15425 set x $ac_tag
15426 IFS=$ac_save_IFS
15427 shift
15428 ac_file=$1
15429 shift
15431 case $ac_mode in
15432 :L) ac_source=$1;;
15433 :[FH])
15434 ac_file_inputs=
15435 for ac_f
15437 case $ac_f in
15438 -) ac_f="$ac_tmp/stdin";;
15439 *) # Look for the file first in the build tree, then in the source tree
15440 # (if the path is not absolute). The absolute path cannot be DOS-style,
15441 # because $ac_f cannot contain `:'.
15442 test -f "$ac_f" ||
15443 case $ac_f in
15444 [\\/$]*) false;;
15445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15446 esac ||
15447 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15448 esac
15449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15450 as_fn_append ac_file_inputs " '$ac_f'"
15451 done
15453 # Let's still pretend it is `configure' which instantiates (i.e., don't
15454 # use $as_me), people would be surprised to read:
15455 # /* config.h. Generated by config.status. */
15456 configure_input='Generated from '`
15457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15458 `' by configure.'
15459 if test x"$ac_file" != x-; then
15460 configure_input="$ac_file. $configure_input"
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15462 $as_echo "$as_me: creating $ac_file" >&6;}
15464 # Neutralize special characters interpreted by sed in replacement strings.
15465 case $configure_input in #(
15466 *\&* | *\|* | *\\* )
15467 ac_sed_conf_input=`$as_echo "$configure_input" |
15468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15469 *) ac_sed_conf_input=$configure_input;;
15470 esac
15472 case $ac_tag in
15473 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15475 esac
15477 esac
15479 ac_dir=`$as_dirname -- "$ac_file" ||
15480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15481 X"$ac_file" : 'X\(//\)[^/]' \| \
15482 X"$ac_file" : 'X\(//\)$' \| \
15483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15484 $as_echo X"$ac_file" |
15485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15486 s//\1/
15489 /^X\(\/\/\)[^/].*/{
15490 s//\1/
15493 /^X\(\/\/\)$/{
15494 s//\1/
15497 /^X\(\/\).*/{
15498 s//\1/
15501 s/.*/./; q'`
15502 as_dir="$ac_dir"; as_fn_mkdir_p
15503 ac_builddir=.
15505 case "$ac_dir" in
15506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15509 # A ".." for each directory in $ac_dir_suffix.
15510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15511 case $ac_top_builddir_sub in
15512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15514 esac ;;
15515 esac
15516 ac_abs_top_builddir=$ac_pwd
15517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15518 # for backward compatibility:
15519 ac_top_builddir=$ac_top_build_prefix
15521 case $srcdir in
15522 .) # We are building in place.
15523 ac_srcdir=.
15524 ac_top_srcdir=$ac_top_builddir_sub
15525 ac_abs_top_srcdir=$ac_pwd ;;
15526 [\\/]* | ?:[\\/]* ) # Absolute name.
15527 ac_srcdir=$srcdir$ac_dir_suffix;
15528 ac_top_srcdir=$srcdir
15529 ac_abs_top_srcdir=$srcdir ;;
15530 *) # Relative name.
15531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15532 ac_top_srcdir=$ac_top_build_prefix$srcdir
15533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15534 esac
15535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15538 case $ac_mode in
15541 # CONFIG_FILE
15544 _ACEOF
15546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547 # If the template does not know about datarootdir, expand it.
15548 # FIXME: This hack should be removed a few years after 2.60.
15549 ac_datarootdir_hack=; ac_datarootdir_seen=
15550 ac_sed_dataroot='
15551 /datarootdir/ {
15555 /@datadir@/p
15556 /@docdir@/p
15557 /@infodir@/p
15558 /@localedir@/p
15559 /@mandir@/p'
15560 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15561 *datarootdir*) ac_datarootdir_seen=yes;;
15562 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15564 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15565 _ACEOF
15566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15567 ac_datarootdir_hack='
15568 s&@datadir@&$datadir&g
15569 s&@docdir@&$docdir&g
15570 s&@infodir@&$infodir&g
15571 s&@localedir@&$localedir&g
15572 s&@mandir@&$mandir&g
15573 s&\\\${datarootdir}&$datarootdir&g' ;;
15574 esac
15575 _ACEOF
15577 # Neutralize VPATH when `$srcdir' = `.'.
15578 # Shell code in configure.ac might set extrasub.
15579 # FIXME: do we really want to maintain this feature?
15580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15581 ac_sed_extra="$ac_vpsub
15582 $extrasub
15583 _ACEOF
15584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15587 s|@configure_input@|$ac_sed_conf_input|;t t
15588 s&@top_builddir@&$ac_top_builddir_sub&;t t
15589 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15590 s&@srcdir@&$ac_srcdir&;t t
15591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15592 s&@top_srcdir@&$ac_top_srcdir&;t t
15593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15594 s&@builddir@&$ac_builddir&;t t
15595 s&@abs_builddir@&$ac_abs_builddir&;t t
15596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15597 $ac_datarootdir_hack
15599 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15600 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15603 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15605 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15607 which seems to be undefined. Please make sure it is defined" >&5
15608 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15609 which seems to be undefined. Please make sure it is defined" >&2;}
15611 rm -f "$ac_tmp/stdin"
15612 case $ac_file in
15613 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15614 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15615 esac \
15616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15620 # CONFIG_HEADER
15622 if test x"$ac_file" != x-; then
15624 $as_echo "/* $configure_input */" \
15625 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15626 } >"$ac_tmp/config.h" \
15627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15628 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15630 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15631 else
15632 rm -f "$ac_file"
15633 mv "$ac_tmp/config.h" "$ac_file" \
15634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15636 else
15637 $as_echo "/* $configure_input */" \
15638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15639 || as_fn_error $? "could not create -" "$LINENO" 5
15643 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15644 $as_echo "$as_me: executing $ac_file commands" >&6;}
15646 esac
15649 case $ac_file$ac_mode in
15650 "compiler_executable":C)
15651 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15652 mkdir -p $prefix
15653 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15654 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15656 echo ${prefix2}
15657 echo ${prefix3}
15658 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15660 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15661 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15662 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15663 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15664 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15665 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15666 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15668 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15670 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15672 esac
15673 done # for ac_tag
15676 as_fn_exit 0
15677 _ACEOF
15678 ac_clean_files=$ac_clean_files_save
15680 test $ac_write_fail = 0 ||
15681 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15684 # configure is writing to config.log, and then calls config.status.
15685 # config.status does its own redirection, appending to config.log.
15686 # Unfortunately, on DOS this fails, as config.log is still kept open
15687 # by configure, so config.status won't be able to write to it; its
15688 # output is simply discarded. So we exec the FD to /dev/null,
15689 # effectively closing config.log, so it can be properly (re)opened and
15690 # appended to by config.status. When coming back to configure, we
15691 # need to make the FD available again.
15692 if test "$no_create" != yes; then
15693 ac_cs_success=:
15694 ac_config_status_args=
15695 test "$silent" = yes &&
15696 ac_config_status_args="$ac_config_status_args --quiet"
15697 exec 5>/dev/null
15698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15699 exec 5>>config.log
15700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15701 # would make configure fail if this is the last instruction.
15702 $ac_cs_success || as_fn_exit 1
15704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15706 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15711 #XXX compatability...
15712 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15714 if test -n "$aros_shared_cflags" ; then
15715 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15716 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg