Build fix, all libpng variants depend on z.library.
[AROS.git] / configure
blob4c53ec7ebf2dba3106dfeb65e2b387f67f315e23
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_prefix
878 enable_crosstools
879 with_aros_toolchain_install
880 with_cpu
881 with_fpu
882 with_float
883 with_aros_gcc
884 with_portssources
885 with_bootloader
886 with_iconset
887 with_theme
888 with_resolution
889 with_serial_debug
890 enable_palm_debug_hack
891 enable_nesting_supervisor
892 enable_mmu
893 enable_x11_hidd
894 with_x
895 enable_x11_shm
896 enable_x11_vidmode
897 enable_sdl_hidd
898 with_sdl_prefix
899 with_sdl_exec_prefix
900 enable_sdltest
901 enable_dbus
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
912 CXXFLAGS
915 XMKMF'
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
966 ac_prev=
967 ac_dashdash=
968 for ac_option
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
977 case $ac_option in
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *=) ac_optarg= ;;
980 *) ac_optarg=yes ;;
981 esac
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
987 ac_dashdash=yes ;;
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1251 -with-* | --with-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=no ;;
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 esac
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 esac
1324 done
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used" >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1410 /^X\(\/\/\)$/{
1411 s//\1/
1414 /^X\(\/\).*/{
1415 s//\1/
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1423 else
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458 \`configure' configures this package to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1467 Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1511 _ACEOF
1513 cat <<\_ACEOF
1515 X features:
1516 --x-includes=DIR X include files are in DIR
1517 --x-libraries=DIR X library files are in DIR
1519 System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1527 cat <<\_ACEOF
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-build-type=TYPE
1534 Select the build type. Available types are:
1535 personal, nightly, snapshot, milestone, release. Do
1536 NOT use this option unless you know what you are
1537 doing! (default=personal)
1538 --enable-debug=list Enable different types of debug. Commas or
1539 whitespaces can be used to separate the items in the
1540 list. Available types of debug are: all, none,
1541 messages, stack, mungwall, modules, symbols. If no
1542 list is provided then "all" is assumed.
1543 (default=none)
1544 --enable-distcc Use distcc as a front end to the compiler
1545 (default=no).
1546 --enable-ccache Use ccache as a front end to the compiler
1547 (default=no).
1548 --enable-target-variant=NAME
1549 Enable a specific target variant(default=none)
1550 --enable-amigaos-compliance=VERSION
1551 Enforce userspace AmigaOS compliance to a specific
1552 KickStart version (default=none).
1553 --disable-crosstools Do not build cross-compiler toolchain
1554 --enable-palm-debug-hack
1555 Enable palm debug output hack in palm native
1556 (default=no)
1557 --enable-nesting-supervisor
1558 Enable nesting supervisor support in unix
1559 (default=no)
1560 --disable-mmu Disable MMU support (default=enabled)
1561 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1562 --enable-x11-shm use X11 shared memory (default=auto)
1563 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1564 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1565 --disable-sdltest Do not try to compile and run a test SDL program
1566 --enable-dbus Enable DBUS support via dbus.library (default=no)
1568 Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1571 --with-kernel-gcc-version=VERSION
1572 Use host gcc-VERSION for building AROS
1573 --with-gcc-version=VERSION
1574 Use host gcc-VERSION for building AROS
1575 --with-optimization=FLAGS
1576 Use optimization flags FLAGS (default=-O2).
1577 --with-paranoia=FLAGS CC flags to enable paranoia
1578 --with-xcode=PATH Specify XCode path for iOS targets
1579 (default=/Developer).
1580 --with-sdk-version=VERSION
1581 Use iOS SDK version VERSION (default=4.1).
1582 --with-sdk=PATH Specify Android SDK path
1583 (default=$default_android_sdk).
1584 --with-ndk=PATH Specify Android NDK path (default=none).
1585 --with-sdk-version=LEVEL
1586 Use Android SDK for API LEVEL (default=12).
1587 --with-ndk-version=LEVEL
1588 Use Android NDK for API LEVEL (default=9).
1589 --with-kernel-toolchain-prefix=...
1590 Specify crosscompile toolchain prefix for kernel
1591 objects
1592 --with-elf-toolchain-prefix=...
1593 Specify crosscompile toolchain prefix to wrap for
1594 AROS objects
1595 --with-aros-toolchain-prefix=...
1596 Specify prebuilt AROS toolchain
1597 --with-aros-toolchain-install=DIR
1598 Where to install or search for cross tools binaries
1599 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1600 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1601 --with-float=<spec> Specify floating point ABI
1602 (default=$gcc_default_float_abi).
1603 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1604 --with-portssources=DIR Where to download sourcecode for external ports
1605 --with-bootloader=NAME Use a specific bootloader
1606 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1607 --with-theme=NAME Use a specific GUI Theme
1608 --with-resolution=XRESxYRESxDEPTH
1609 Default resolution of the initial WorkbenchScreen
1610 --with-serial-debug Enable serial debug output in native (default=no)
1611 --with-x use the X Window System
1612 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1613 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1615 Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 CPP C preprocessor
1626 XMKMF Path to xmkmf, Makefile generator for X Window System
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to the package provider.
1632 _ACEOF
1633 ac_status=$?
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 continue
1642 ac_builddir=.
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1660 case $srcdir in
1661 .) # We are building in place.
1662 ac_srcdir=.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1669 *) # Relative name.
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1684 else
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 fi || ac_status=$?
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1688 done
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693 cat <<\_ACEOF
1694 configure
1695 generated by GNU Autoconf 2.68
1697 Copyright (C) 2010 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_compile
1746 # ac_fn_cxx_try_compile LINENO
1747 # ----------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_cxx_try_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_cxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_cxx_try_compile
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_cpp
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if eval \${$3+:} false; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839 # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1849 else
1850 ac_header_compiler=no
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1865 else
1866 ac_header_preproc=no
1868 rm -f conftest.err conftest.i conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1872 # So? What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 yes:no: )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 no:yes:* )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 esac
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 eval "$3=\$ac_header_compiler"
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_header_mongrel
1908 # ac_fn_c_try_run LINENO
1909 # ----------------------
1910 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1911 # that executables *can* be run.
1912 ac_fn_c_try_run ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_link") 2>&5
1923 ac_status=$?
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1926 { { case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_try") 2>&5
1933 ac_status=$?
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; }; }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: program exited with status $ac_status" >&5
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=$ac_status
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1948 } # ac_fn_c_try_run
1950 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists and can be compiled using the include files in
1953 # INCLUDES, setting the cache variable VAR accordingly.
1954 ac_fn_c_check_header_compile ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 eval "$3=yes"
1969 else
1970 eval "$3=no"
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 eval ac_res=\$$3
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_compile
1981 # ac_fn_c_try_link LINENO
1982 # -----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_c_try_link ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_c_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 $as_test_x conftest$ac_exeext
2009 }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_retval=1
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2025 } # ac_fn_c_try_link
2027 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2028 # ----------------------------------------------------
2029 # Tries to find if the field MEMBER exists in type AGGR, after including
2030 # INCLUDES, setting cache variable VAR accordingly.
2031 ac_fn_c_check_member ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2035 $as_echo_n "checking for $2.$3... " >&6; }
2036 if eval \${$4+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 static $2 ac_aggr;
2046 if (ac_aggr.$3)
2047 return 0;
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$4=yes"
2054 else
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 static $2 ac_aggr;
2062 if (sizeof ac_aggr.$3)
2063 return 0;
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 eval "$4=yes"
2070 else
2071 eval "$4=no"
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 eval ac_res=\$$4
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_member
2084 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2085 # ---------------------------------------------
2086 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2087 # accordingly.
2088 ac_fn_c_check_decl ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 as_decl_name=`echo $2|sed 's/ *(.*//'`
2092 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2094 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 #ifndef $as_decl_name
2105 #ifdef __cplusplus
2106 (void) $as_decl_use;
2107 #else
2108 (void) $as_decl_name;
2109 #endif
2110 #endif
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_decl
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 eval "$3=no"
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 if (sizeof ($2))
2150 return 0;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 if (sizeof (($2)))
2163 return 0;
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2170 else
2171 eval "$3=yes"
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2184 # ac_fn_c_check_func LINENO FUNC VAR
2185 # ----------------------------------
2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2187 ac_fn_c_check_func ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2199 #define $2 innocuous_$2
2201 /* System header to define __stub macros and hopefully few prototypes,
2202 which can conflict with char $2 (); below.
2203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2204 <limits.h> exists even on freestanding compilers. */
2206 #ifdef __STDC__
2207 # include <limits.h>
2208 #else
2209 # include <assert.h>
2210 #endif
2212 #undef $2
2214 /* Override any GCC internal prototype to avoid an error.
2215 Use char because int might match the return type of a GCC
2216 builtin and then its argument prototype would still apply. */
2217 #ifdef __cplusplus
2218 extern "C"
2219 #endif
2220 char $2 ();
2221 /* The GNU C library defines this for functions which it implements
2222 to always fail with ENOSYS. Some functions are actually named
2223 something starting with __ and the normal name is an alias. */
2224 #if defined __stub_$2 || defined __stub___$2
2225 choke me
2226 #endif
2229 main ()
2231 return $2 ();
2233 return 0;
2235 _ACEOF
2236 if ac_fn_c_try_link "$LINENO"; then :
2237 eval "$3=yes"
2238 else
2239 eval "$3=no"
2241 rm -f core conftest.err conftest.$ac_objext \
2242 conftest$ac_exeext conftest.$ac_ext
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_c_check_func
2250 cat >config.log <<_ACEOF
2251 This file contains any messages produced by compilers while
2252 running configure, to aid debugging if configure makes a mistake.
2254 It was created by $as_me, which was
2255 generated by GNU Autoconf 2.68. Invocation command line was
2257 $ $0 $@
2259 _ACEOF
2260 exec 5>>config.log
2262 cat <<_ASUNAME
2263 ## --------- ##
2264 ## Platform. ##
2265 ## --------- ##
2267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2284 _ASUNAME
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 $as_echo "PATH: $as_dir"
2292 done
2293 IFS=$as_save_IFS
2295 } >&5
2297 cat >&5 <<_ACEOF
2300 ## ----------- ##
2301 ## Core tests. ##
2302 ## ----------- ##
2304 _ACEOF
2307 # Keep a trace of the command line.
2308 # Strip out --no-create and --no-recursion so they do not pile up.
2309 # Strip out --silent because we don't want to record it for future runs.
2310 # Also quote any args containing shell meta-characters.
2311 # Make two passes to allow for proper duplicate-argument suppression.
2312 ac_configure_args=
2313 ac_configure_args0=
2314 ac_configure_args1=
2315 ac_must_keep_next=false
2316 for ac_pass in 1 2
2318 for ac_arg
2320 case $ac_arg in
2321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323 | -silent | --silent | --silen | --sile | --sil)
2324 continue ;;
2325 *\'*)
2326 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 esac
2328 case $ac_pass in
2329 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331 as_fn_append ac_configure_args1 " '$ac_arg'"
2332 if test $ac_must_keep_next = true; then
2333 ac_must_keep_next=false # Got value, back to normal.
2334 else
2335 case $ac_arg in
2336 *=* | --config-cache | -C | -disable-* | --disable-* \
2337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339 | -with-* | --with-* | -without-* | --without-* | --x)
2340 case "$ac_configure_args0 " in
2341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 esac
2344 -* ) ac_must_keep_next=true ;;
2345 esac
2347 as_fn_append ac_configure_args " '$ac_arg'"
2349 esac
2350 done
2351 done
2352 { ac_configure_args0=; unset ac_configure_args0;}
2353 { ac_configure_args1=; unset ac_configure_args1;}
2355 # When interrupted or exit'd, cleanup temporary files, and complete
2356 # config.log. We remove comments because anyway the quotes in there
2357 # would cause problems or look ugly.
2358 # WARNING: Use '\'' to represent an apostrophe within the trap.
2359 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360 trap 'exit_status=$?
2361 # Save into config.log some information that might help in debugging.
2363 echo
2365 $as_echo "## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##"
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
2376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac ;;
2384 esac
2385 done
2386 (set) 2>&1 |
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2389 sed -n \
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2396 esac |
2397 sort
2399 echo
2401 $as_echo "## ----------------- ##
2402 ## Output variables. ##
2403 ## ----------------- ##"
2404 echo
2405 for ac_var in $ac_subst_vars
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 $as_echo "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2415 if test -n "$ac_subst_files"; then
2416 $as_echo "## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##"
2419 echo
2420 for ac_var in $ac_subst_files
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2431 if test -s confdefs.h; then
2432 $as_echo "## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##"
2435 echo
2436 cat confdefs.h
2437 echo
2439 test "$ac_signal" != 0 &&
2440 $as_echo "$as_me: caught signal $ac_signal"
2441 $as_echo "$as_me: exit $exit_status"
2442 } >&5
2443 rm -f core *.core core.conftest.* &&
2444 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 exit $exit_status
2447 for ac_signal in 1 2 13 15; do
2448 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 done
2450 ac_signal=0
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2455 $as_echo "/* confdefs.h */" > confdefs.h
2457 # Predefined preprocessor variables.
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_NAME "$PACKAGE_NAME"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_STRING "$PACKAGE_STRING"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_URL "$PACKAGE_URL"
2481 _ACEOF
2484 # Let the site file select an alternate cache file if it wants to.
2485 # Prefer an explicitly selected file to automatically selected ones.
2486 ac_site_file1=NONE
2487 ac_site_file2=NONE
2488 if test -n "$CONFIG_SITE"; then
2489 # We do not want a PATH search for config.site.
2490 case $CONFIG_SITE in #((
2491 -*) ac_site_file1=./$CONFIG_SITE;;
2492 */*) ac_site_file1=$CONFIG_SITE;;
2493 *) ac_site_file1=./$CONFIG_SITE;;
2494 esac
2495 elif test "x$prefix" != xNONE; then
2496 ac_site_file1=$prefix/share/config.site
2497 ac_site_file2=$prefix/etc/config.site
2498 else
2499 ac_site_file1=$ac_default_prefix/share/config.site
2500 ac_site_file2=$ac_default_prefix/etc/config.site
2502 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2504 test "x$ac_site_file" = xNONE && continue
2505 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2508 sed 's/^/| /' "$ac_site_file" >&5
2509 . "$ac_site_file" \
2510 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 as_fn_error $? "failed to load site script $ac_site_file
2513 See \`config.log' for more details" "$LINENO" 5; }
2515 done
2517 if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special files
2519 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2520 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 case $cache_file in
2524 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525 *) . "./$cache_file";;
2526 esac
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531 >$cache_file
2534 as_fn_append ac_header_list " stdlib.h"
2535 as_fn_append ac_header_list " unistd.h"
2536 as_fn_append ac_header_list " sys/param.h"
2537 # Check that the precious variables saved in the cache have kept the same
2538 # value.
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2546 set,)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,set)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,);;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 esac
2586 done
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 ac_aux_dir=
2607 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2608 if test -f "$ac_dir/install-sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install-sh -c"
2611 break
2612 elif test -f "$ac_dir/install.sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install.sh -c"
2615 break
2616 elif test -f "$ac_dir/shtool"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/shtool install -c"
2619 break
2621 done
2622 if test -z "$ac_aux_dir"; then
2623 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2626 # These three variables are undocumented and unsupported,
2627 # and are intended to be withdrawn in a future Autoconf release.
2628 # They can cause serious problems if a builder's source tree is in a directory
2629 # whose full name contains unusual characters.
2630 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2631 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2632 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Check what host we are running on.
2637 # If a target is not suggested, we use this one.
2638 # Note that what we call a target, Autoconf calls a host.
2639 # Make sure we can run config.sub.
2640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2644 $as_echo_n "checking build system type... " >&6; }
2645 if ${ac_cv_build+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 ac_build_alias=$build_alias
2649 test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2651 test "x$ac_build_alias" = x &&
2652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2658 $as_echo "$ac_cv_build" >&6; }
2659 case $ac_cv_build in
2660 *-*-*) ;;
2661 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2662 esac
2663 build=$ac_cv_build
2664 ac_save_IFS=$IFS; IFS='-'
2665 set x $ac_cv_build
2666 shift
2667 build_cpu=$1
2668 build_vendor=$2
2669 shift; shift
2670 # Remember, the first character of IFS is used to create $*,
2671 # except with old shells:
2672 build_os=$*
2673 IFS=$ac_save_IFS
2674 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2678 $as_echo_n "checking host system type... " >&6; }
2679 if ${ac_cv_host+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test "x$host_alias" = x; then
2683 ac_cv_host=$ac_cv_build
2684 else
2685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2686 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2691 $as_echo "$ac_cv_host" >&6; }
2692 case $ac_cv_host in
2693 *-*-*) ;;
2694 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2695 esac
2696 host=$ac_cv_host
2697 ac_save_IFS=$IFS; IFS='-'
2698 set x $ac_cv_host
2699 shift
2700 host_cpu=$1
2701 host_vendor=$2
2702 shift; shift
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2705 host_os=$*
2706 IFS=$ac_save_IFS
2707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2711 # The AROS target is slightly different to the normal GNU style
2712 # format. We don't have the middle part, and we reverse the order
2713 # of the $(CPU) and $(OS) bits.
2715 # Don't strip the version of the target yet, it might be
2716 # useful on some systems.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2719 $as_echo_n "checking for AROS style target... " >&6; }
2721 if test "$target" = "NONE" ; then
2722 target=$host_os-$host_cpu
2723 else
2724 if test "$target" = "" ; then
2725 target=$host_os-$host_cpu
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2729 $as_echo "$target" >&6; }
2731 if test "$host_os" = "mingw32" ; then
2732 PWDCMD="pwd -W"
2735 # Don't know where else to put this...
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2737 $as_echo_n "checking building AROS in... " >&6; }
2738 AROS_BUILDDIR=`${PWDCMD-pwd}`
2739 AROS_BUILDDIR_UNIX=${PWD}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2741 $as_echo "$AROS_BUILDDIR" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2744 $as_echo_n "checking AROS source in... " >&6; }
2745 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746 SRCDIR=${srcpwd}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2748 $as_echo "$SRCDIR" >&6; }
2750 # Parse the target field into something useful.
2752 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2753 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2756 # Some debug output, to be removed again.
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2758 $as_echo_n "checking for target system (debug output)... " >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2760 $as_echo "$target_os" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2762 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2764 $as_echo "$target_cpu" >&6; }
2766 aros_default_wbwidth=800
2767 aros_default_wbheight=600
2768 aros_default_wbdepth=4
2771 # The first step is to find the host binaries.
2772 # Check for a compiler.
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$ac_cv_prog_CC"; then
2818 ac_ct_CC=$CC
2819 # Extract the first word of "gcc", so it can be a program name with args.
2820 set dummy gcc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CC="gcc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 $as_echo "$ac_ct_CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2855 if test "x$ac_ct_CC" = x; then
2856 CC=""
2857 else
2858 case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864 CC=$ac_ct_CC
2866 else
2867 CC="$ac_cv_prog_CC"
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="${ac_tool_prefix}cc"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2911 if test -z "$CC"; then
2912 # Extract the first word of "cc", so it can be a program name with args.
2913 set dummy cc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 ac_prog_rejected=no
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2931 ac_prog_rejected=yes
2932 continue
2934 ac_cv_prog_CC="cc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2942 if test $ac_prog_rejected = yes; then
2943 # We found a bogon in the path, so make sure we never use it.
2944 set dummy $ac_cv_prog_CC
2945 shift
2946 if test $# != 0; then
2947 # We chose a different compiler from the bogus one.
2948 # However, it has the same basename, so the bogon will be chosen
2949 # first if we set CC to just the basename; use the full file name.
2950 shift
2951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$CC"; then
2968 if test -n "$ac_tool_prefix"; then
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3008 test -n "$CC" && break
3009 done
3011 if test -z "$CC"; then
3012 ac_ct_CC=$CC
3013 for ac_prog in cl.exe
3015 # Extract the first word of "$ac_prog", so it can be a program name with args.
3016 set dummy $ac_prog; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$ac_ct_CC"; then
3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_ac_ct_CC="$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043 if test -n "$ac_ct_CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3045 $as_echo "$ac_ct_CC" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3052 test -n "$ac_ct_CC" && break
3053 done
3055 if test "x$ac_ct_CC" = x; then
3056 CC=""
3057 else
3058 case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3063 esac
3064 CC=$ac_ct_CC
3071 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $? "no acceptable C compiler found in \$PATH
3074 See \`config.log' for more details" "$LINENO" 5; }
3076 # Provide some information about the compiler.
3077 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3078 set X $ac_compile
3079 ac_compiler=$2
3080 for ac_option in --version -v -V -qversion; do
3081 { { ac_try="$ac_compiler $ac_option >&5"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3089 ac_status=$?
3090 if test -s conftest.err; then
3091 sed '10a\
3092 ... rest of stderr output deleted ...
3093 10q' conftest.err >conftest.er1
3094 cat conftest.er1 >&5
3096 rm -f conftest.er1 conftest.err
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }
3099 done
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 ac_clean_files_save=$ac_clean_files
3113 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3114 # Try to create an executable without -o first, disregard a.out.
3115 # It will help us diagnose broken compilers, and finding out an intuition
3116 # of exeext.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3118 $as_echo_n "checking whether the C compiler works... " >&6; }
3119 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121 # The possible output files:
3122 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3124 ac_rmfiles=
3125 for ac_file in $ac_files
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3130 esac
3131 done
3132 rm -f $ac_rmfiles
3134 if { { ac_try="$ac_link_default"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_link_default") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3146 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3147 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3148 # so that the user can short-circuit this test for compilers unknown to
3149 # Autoconf.
3150 for ac_file in $ac_files ''
3152 test -f "$ac_file" || continue
3153 case $ac_file in
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3156 [ab].out )
3157 # We found the default executable, but exeext='' is most
3158 # certainly right.
3159 break;;
3160 *.* )
3161 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3162 then :; else
3163 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 # We set ac_cv_exeext here because the later test for it is not
3166 # safe: cross compilers may not add the suffix if given an `-o'
3167 # argument, so we may need to know it at that point already.
3168 # Even if this section looks crufty: it has the advantage of
3169 # actually working.
3170 break;;
3172 break;;
3173 esac
3174 done
3175 test "$ac_cv_exeext" = no && ac_cv_exeext=
3177 else
3178 ac_file=''
3180 if test -z "$ac_file"; then :
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error 77 "C compiler cannot create executables
3189 See \`config.log' for more details" "$LINENO" 5; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3195 $as_echo_n "checking for C compiler default output file name... " >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3197 $as_echo "$ac_file" >&6; }
3198 ac_exeext=$ac_cv_exeext
3200 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3201 ac_clean_files=$ac_clean_files_save
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3203 $as_echo_n "checking for suffix of executables... " >&6; }
3204 if { { ac_try="$ac_link"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link") 2>&5
3212 ac_status=$?
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217 # work properly (i.e., refer to `conftest.exe'), while it won't with
3218 # `rm'.
3219 for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3221 case $ac_file in
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 break;;
3225 * ) break;;
3226 esac
3227 done
3228 else
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details" "$LINENO" 5; }
3234 rm -f conftest conftest$ac_cv_exeext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3236 $as_echo "$ac_cv_exeext" >&6; }
3238 rm -f conftest.$ac_ext
3239 EXEEXT=$ac_cv_exeext
3240 ac_exeext=$EXEEXT
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3243 #include <stdio.h>
3245 main ()
3247 FILE *f = fopen ("conftest.out", "w");
3248 return ferror (f) || fclose (f) != 0;
3251 return 0;
3253 _ACEOF
3254 ac_clean_files="$ac_clean_files conftest.out"
3255 # Check that the compiler produces executables we can run. If not, either
3256 # the compiler is broken, or we cross compile.
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3258 $as_echo_n "checking whether we are cross compiling... " >&6; }
3259 if test "$cross_compiling" != yes; then
3260 { { ac_try="$ac_link"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 if { ac_try='./conftest$ac_cv_exeext'
3272 { { case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_try") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; }; then
3282 cross_compiling=no
3283 else
3284 if test "$cross_compiling" = maybe; then
3285 cross_compiling=yes
3286 else
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot run C compiled programs.
3290 If you meant to cross compile, use \`--host'.
3291 See \`config.log' for more details" "$LINENO" 5; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3296 $as_echo "$cross_compiling" >&6; }
3298 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3299 ac_clean_files=$ac_clean_files_save
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3301 $as_echo_n "checking for suffix of object files... " >&6; }
3302 if ${ac_cv_objext+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 rm -f conftest.o conftest.obj
3317 if { { ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_compile") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335 done
3336 else
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of object files: cannot compile
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3348 $as_echo "$ac_cv_objext" >&6; }
3349 OBJEXT=$ac_cv_objext
3350 ac_objext=$OBJEXT
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3352 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3353 if ${ac_cv_c_compiler_gnu+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3360 main ()
3362 #ifndef __GNUC__
3363 choke me
3364 #endif
3367 return 0;
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_compiler_gnu=yes
3372 else
3373 ac_compiler_gnu=no
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3381 if test $ac_compiler_gnu = yes; then
3382 GCC=yes
3383 else
3384 GCC=
3386 ac_test_CFLAGS=${CFLAGS+set}
3387 ac_save_CFLAGS=$CFLAGS
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3389 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3390 if ${ac_cv_prog_cc_g+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 ac_save_c_werror_flag=$ac_c_werror_flag
3394 ac_c_werror_flag=yes
3395 ac_cv_prog_cc_g=no
3396 CFLAGS="-g"
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3409 ac_cv_prog_cc_g=yes
3410 else
3411 CFLAGS=""
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3425 else
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_g=yes
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 $as_echo "$ac_cv_prog_cc_g" >&6; }
3451 if test "$ac_test_CFLAGS" = set; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3455 CFLAGS="-g -O2"
3456 else
3457 CFLAGS="-g"
3459 else
3460 if test "$GCC" = yes; then
3461 CFLAGS="-O2"
3462 else
3463 CFLAGS=
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3467 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3468 if ${ac_cv_prog_cc_c89+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 ac_cv_prog_cc_c89=no
3472 ac_save_CC=$CC
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475 #include <stdarg.h>
3476 #include <stdio.h>
3477 #include <sys/types.h>
3478 #include <sys/stat.h>
3479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3480 struct buf { int x; };
3481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3482 static char *e (p, i)
3483 char **p;
3484 int i;
3486 return p[i];
3488 static char *f (char * (*g) (char **, int), char **p, ...)
3490 char *s;
3491 va_list v;
3492 va_start (v,p);
3493 s = g (p, va_arg (v,int));
3494 va_end (v);
3495 return s;
3498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3499 function prototypes and stuff, but not '\xHH' hex character constants.
3500 These don't provoke an error unfortunately, instead are silently treated
3501 as 'x'. The following induces an error, until -std is added to get
3502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3503 array size at least. It's necessary to write '\x00'==0 to get something
3504 that's true only with -std. */
3505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3508 inside strings and character constants. */
3509 #define FOO(x) 'x'
3510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3512 int test (int i, double x);
3513 struct s1 {int (*f) (int a);};
3514 struct s2 {int (*f) (double a);};
3515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3516 int argc;
3517 char **argv;
3519 main ()
3521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3523 return 0;
3525 _ACEOF
3526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_c89=$ac_arg
3533 rm -f core conftest.err conftest.$ac_objext
3534 test "x$ac_cv_prog_cc_c89" != "xno" && break
3535 done
3536 rm -f conftest.$ac_ext
3537 CC=$ac_save_CC
3540 # AC_CACHE_VAL
3541 case "x$ac_cv_prog_cc_c89" in
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544 $as_echo "none needed" >&6; } ;;
3545 xno)
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547 $as_echo "unsupported" >&6; } ;;
3549 CC="$CC $ac_cv_prog_cc_c89"
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3552 esac
3553 if test "x$ac_cv_prog_cc_c89" != xno; then :
3557 ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 case $ac_cv_prog_cc_stdc in #(
3564 no) :
3565 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3566 *) :
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3569 if ${ac_cv_prog_cc_c99+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 ac_cv_prog_cc_c99=no
3573 ac_save_CC=$CC
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <stdarg.h>
3577 #include <stdbool.h>
3578 #include <stdlib.h>
3579 #include <wchar.h>
3580 #include <stdio.h>
3582 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3583 #define debug(...) fprintf (stderr, __VA_ARGS__)
3584 #define showlist(...) puts (#__VA_ARGS__)
3585 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3586 static void
3587 test_varargs_macros (void)
3589 int x = 1234;
3590 int y = 5678;
3591 debug ("Flag");
3592 debug ("X = %d\n", x);
3593 showlist (The first, second, and third items.);
3594 report (x>y, "x is %d but y is %d", x, y);
3597 // Check long long types.
3598 #define BIG64 18446744073709551615ull
3599 #define BIG32 4294967295ul
3600 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3601 #if !BIG_OK
3602 your preprocessor is broken;
3603 #endif
3604 #if BIG_OK
3605 #else
3606 your preprocessor is broken;
3607 #endif
3608 static long long int bignum = -9223372036854775807LL;
3609 static unsigned long long int ubignum = BIG64;
3611 struct incomplete_array
3613 int datasize;
3614 double data[];
3617 struct named_init {
3618 int number;
3619 const wchar_t *name;
3620 double average;
3623 typedef const char *ccp;
3625 static inline int
3626 test_restrict (ccp restrict text)
3628 // See if C++-style comments work.
3629 // Iterate through items via the restricted pointer.
3630 // Also check for declarations in for loops.
3631 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3632 continue;
3633 return 0;
3636 // Check varargs and va_copy.
3637 static void
3638 test_varargs (const char *format, ...)
3640 va_list args;
3641 va_start (args, format);
3642 va_list args_copy;
3643 va_copy (args_copy, args);
3645 const char *str;
3646 int number;
3647 float fnumber;
3649 while (*format)
3651 switch (*format++)
3653 case 's': // string
3654 str = va_arg (args_copy, const char *);
3655 break;
3656 case 'd': // int
3657 number = va_arg (args_copy, int);
3658 break;
3659 case 'f': // float
3660 fnumber = va_arg (args_copy, double);
3661 break;
3662 default:
3663 break;
3666 va_end (args_copy);
3667 va_end (args);
3671 main ()
3674 // Check bool.
3675 _Bool success = false;
3677 // Check restrict.
3678 if (test_restrict ("String literal") == 0)
3679 success = true;
3680 char *restrict newvar = "Another string";
3682 // Check varargs.
3683 test_varargs ("s, d' f .", "string", 65, 34.234);
3684 test_varargs_macros ();
3686 // Check flexible array members.
3687 struct incomplete_array *ia =
3688 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3689 ia->datasize = 10;
3690 for (int i = 0; i < ia->datasize; ++i)
3691 ia->data[i] = i * 1.234;
3693 // Check named initializers.
3694 struct named_init ni = {
3695 .number = 34,
3696 .name = L"Test wide string",
3697 .average = 543.34343,
3700 ni.number = 58;
3702 int dynamic_array[ni.number];
3703 dynamic_array[ni.number - 1] = 543;
3705 // work around unused variable warnings
3706 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3707 || dynamic_array[ni.number - 1] != 543);
3710 return 0;
3712 _ACEOF
3713 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c99=$ac_arg
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c99" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3726 # AC_CACHE_VAL
3727 case "x$ac_cv_prog_cc_c99" in
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 $as_echo "none needed" >&6; } ;;
3731 xno)
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 $as_echo "unsupported" >&6; } ;;
3735 CC="$CC $ac_cv_prog_cc_c99"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3737 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3738 esac
3739 if test "x$ac_cv_prog_cc_c99" != xno; then :
3740 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744 if ${ac_cv_prog_cc_c89+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 ac_cv_prog_cc_c89=no
3748 ac_save_CC=$CC
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <stdarg.h>
3752 #include <stdio.h>
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3756 struct buf { int x; };
3757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758 static char *e (p, i)
3759 char **p;
3760 int i;
3762 return p[i];
3764 static char *f (char * (*g) (char **, int), char **p, ...)
3766 char *s;
3767 va_list v;
3768 va_start (v,p);
3769 s = g (p, va_arg (v,int));
3770 va_end (v);
3771 return s;
3774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3775 function prototypes and stuff, but not '\xHH' hex character constants.
3776 These don't provoke an error unfortunately, instead are silently treated
3777 as 'x'. The following induces an error, until -std is added to get
3778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3779 array size at least. It's necessary to write '\x00'==0 to get something
3780 that's true only with -std. */
3781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3784 inside strings and character constants. */
3785 #define FOO(x) 'x'
3786 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788 int test (int i, double x);
3789 struct s1 {int (*f) (int a);};
3790 struct s2 {int (*f) (double a);};
3791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3792 int argc;
3793 char **argv;
3795 main ()
3797 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3799 return 0;
3801 _ACEOF
3802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3803 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 CC="$ac_save_CC $ac_arg"
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_c89=$ac_arg
3809 rm -f core conftest.err conftest.$ac_objext
3810 test "x$ac_cv_prog_cc_c89" != "xno" && break
3811 done
3812 rm -f conftest.$ac_ext
3813 CC=$ac_save_CC
3816 # AC_CACHE_VAL
3817 case "x$ac_cv_prog_cc_c89" in
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3820 $as_echo "none needed" >&6; } ;;
3821 xno)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3823 $as_echo "unsupported" >&6; } ;;
3825 CC="$CC $ac_cv_prog_cc_c89"
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3827 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3828 esac
3829 if test "x$ac_cv_prog_cc_c89" != xno; then :
3830 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3831 else
3832 ac_cv_prog_cc_stdc=no
3837 esac
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3839 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3840 if ${ac_cv_prog_cc_stdc+:} false; then :
3841 $as_echo_n "(cached) " >&6
3844 case $ac_cv_prog_cc_stdc in #(
3845 no) :
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847 $as_echo "unsupported" >&6; } ;; #(
3848 '') :
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850 $as_echo "none needed" >&6; } ;; #(
3851 *) :
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3853 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3854 esac
3856 ac_ext=cpp
3857 ac_cpp='$CXXCPP $CPPFLAGS'
3858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3861 if test -z "$CXX"; then
3862 if test -n "$CCC"; then
3863 CXX=$CCC
3864 else
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CXX+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$CXX"; then
3876 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3889 done
3890 done
3891 IFS=$as_save_IFS
3895 CXX=$ac_cv_prog_CXX
3896 if test -n "$CXX"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3898 $as_echo "$CXX" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$CXX" && break
3906 done
3908 if test -z "$CXX"; then
3909 ac_ct_CXX=$CXX
3910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$ac_ct_CXX"; then
3920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_ac_ct_CXX="$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3935 IFS=$as_save_IFS
3939 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3940 if test -n "$ac_ct_CXX"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3942 $as_echo "$ac_ct_CXX" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$ac_ct_CXX" && break
3950 done
3952 if test "x$ac_ct_CXX" = x; then
3953 CXX="g++"
3954 else
3955 case $cross_compiling:$ac_tool_warned in
3956 yes:)
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3960 esac
3961 CXX=$ac_ct_CXX
3967 # Provide some information about the compiler.
3968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3969 set X $ac_compile
3970 ac_compiler=$2
3971 for ac_option in --version -v -V -qversion; do
3972 { { ac_try="$ac_compiler $ac_option >&5"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3980 ac_status=$?
3981 if test -s conftest.err; then
3982 sed '10a\
3983 ... rest of stderr output deleted ...
3984 10q' conftest.err >conftest.er1
3985 cat conftest.er1 >&5
3987 rm -f conftest.er1 conftest.err
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }
3990 done
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3994 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 main ()
4003 #ifndef __GNUC__
4004 choke me
4005 #endif
4008 return 0;
4010 _ACEOF
4011 if ac_fn_cxx_try_compile "$LINENO"; then :
4012 ac_compiler_gnu=yes
4013 else
4014 ac_compiler_gnu=no
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4021 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4023 GXX=yes
4024 else
4025 GXX=
4027 ac_test_CXXFLAGS=${CXXFLAGS+set}
4028 ac_save_CXXFLAGS=$CXXFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4030 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4031 if ${ac_cv_prog_cxx_g+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4035 ac_cxx_werror_flag=yes
4036 ac_cv_prog_cxx_g=no
4037 CXXFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 if ac_fn_cxx_try_compile "$LINENO"; then :
4050 ac_cv_prog_cxx_g=yes
4051 else
4052 CXXFLAGS=""
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4061 return 0;
4063 _ACEOF
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4066 else
4067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4068 CXXFLAGS="-g"
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 if ac_fn_cxx_try_compile "$LINENO"; then :
4081 ac_cv_prog_cxx_g=yes
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4091 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4092 if test "$ac_test_CXXFLAGS" = set; then
4093 CXXFLAGS=$ac_save_CXXFLAGS
4094 elif test $ac_cv_prog_cxx_g = yes; then
4095 if test "$GXX" = yes; then
4096 CXXFLAGS="-g -O2"
4097 else
4098 CXXFLAGS="-g"
4100 else
4101 if test "$GXX" = yes; then
4102 CXXFLAGS="-O2"
4103 else
4104 CXXFLAGS=
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4119 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4120 # On Suns, sometimes $CPP names a directory.
4121 if test -n "$CPP" && test -d "$CPP"; then
4122 CPP=
4124 if test -z "$CPP"; then
4125 if ${ac_cv_prog_CPP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 # Double quotes because CPP needs to be expanded
4129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147 Syntax error
4148 _ACEOF
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4151 else
4152 # Broken: fails on valid input.
4153 continue
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4177 break
4180 done
4181 ac_cv_prog_CPP=$CPP
4184 CPP=$ac_cv_prog_CPP
4185 else
4186 ac_cv_prog_CPP=$CPP
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4189 $as_echo "$CPP" >&6; }
4190 ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206 Syntax error
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4210 else
4211 # Broken: fails on valid input.
4212 continue
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4224 continue
4225 else
4226 # Passes both tests.
4227 ac_preproc_ok=:
4228 break
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4232 done
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4241 See \`config.log' for more details" "$LINENO" 5; }
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 # Check for a compatible awk
4252 for ac_prog in gawk nawk
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy $ac_prog; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_prog_AWK+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$AWK"; then
4262 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_AWK="$ac_prog"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4275 done
4276 done
4277 IFS=$as_save_IFS
4281 AWK=$ac_cv_prog_AWK
4282 if test -n "$AWK"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4284 $as_echo "$AWK" >&6; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4291 test -n "$AWK" && break
4292 done
4294 if test "$AWK" = ""; then
4295 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4297 # Extract the first word of "mmake", so it can be a program name with args.
4298 set dummy mmake; ac_word=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_prog_MMAKE+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test -n "$MMAKE"; then
4305 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_prog_MMAKE="mmake "
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4318 done
4319 done
4320 IFS=$as_save_IFS
4324 MMAKE=$ac_cv_prog_MMAKE
4325 if test -n "$MMAKE"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4327 $as_echo "$MMAKE" >&6; }
4328 else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4335 # Perform some default variable assignments. Note all of these will be
4336 # Regenerated from the script, so there is no need to cache them.
4338 aros_host_cpp="$CPP"
4339 aros_host_cc="$CC"
4340 aros_host_cxx="$CXX"
4341 if test "$GCC" = "yes"; then
4342 aros_gcc_ld=`$CC -print-prog-name=ld`
4343 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4344 set dummy `basename $aros_gcc_ld`; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_path_aros_host_ld+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 case $aros_host_ld in
4351 [\\/]* | ?:[\\/]*)
4352 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in `dirname $aros_gcc_ld`
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4368 IFS=$as_save_IFS
4371 esac
4373 aros_host_ld=$ac_cv_path_aros_host_ld
4374 if test -n "$aros_host_ld"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4376 $as_echo "$aros_host_ld" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4384 if test "$aros_host_ld" = ""; then
4385 # Extract the first word of "ld", so it can be a program name with args.
4386 set dummy ld; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_path_aros_host_ld+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 case $aros_host_ld in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4413 esac
4415 aros_host_ld=$ac_cv_path_aros_host_ld
4416 if test -n "$aros_host_ld"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4418 $as_echo "$aros_host_ld" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test "$aros_host_ld" = ""; then
4427 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4429 aros_host_make="make"
4430 aros_host_cflags=$CFLAGS
4431 aros_host_cxxflags=$CXXFLAGS
4432 aros_host_ldflags=$LDFLAGS
4433 aros_host_debug="-g -O0"
4434 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4435 aros_host_mkargs="--no-print-directory"
4436 aros_host_exe_suffix="$EXEEXT"
4437 aros_host_lib_suffix=""
4439 # Ignore all compliance, AROS ROMs = 0
4440 # KickStart v1.0 = 30
4441 # KickStart v1.3 = 34
4442 # KickStart v2.0 = 37
4443 # KickStart v3.0 = 39
4444 # KickStart v3.1 = 40
4445 # AmigaOS v3.5 = 44
4446 aros_amigaos_compliance=0
4448 for ac_prog in aclocal aclocal19 aclocal-1.9
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$aros_host_aclocal"; then
4458 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_aros_host_aclocal="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4478 if test -n "$aros_host_aclocal"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4480 $as_echo "$aros_host_aclocal" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4487 test -n "$aros_host_aclocal" && break
4488 done
4490 for ac_prog in autoconf autoconf259 autoconf253
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$aros_host_autoconf"; then
4500 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_aros_host_autoconf="$ac_prog"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4520 if test -n "$aros_host_autoconf"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4522 $as_echo "$aros_host_autoconf" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4529 test -n "$aros_host_autoconf" && break
4530 done
4532 for ac_prog in autoheader autoheader259 autoheader253
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$aros_host_autoheader"; then
4542 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_aros_host_autoheader="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4562 if test -n "$aros_host_autoheader"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4564 $as_echo "$aros_host_autoheader" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 test -n "$aros_host_autoheader" && break
4572 done
4574 for ac_prog in automake automake19 automake-1.9
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_aros_host_automake+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$aros_host_automake"; then
4584 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_aros_host_automake="$ac_prog"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 aros_host_automake=$ac_cv_prog_aros_host_automake
4604 if test -n "$aros_host_automake"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4606 $as_echo "$aros_host_automake" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 test -n "$aros_host_automake" && break
4614 done
4617 if test "$aros_host_aclocal" = ""; then
4618 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4620 if test "$aros_host_automake" = ""; then
4621 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 case "$aros_host_cc" in
4625 *gcc*)
4626 aros_host_cc_pipe="-pipe"
4628 icc)
4629 aros_host_cc_pipe=""
4632 aros_host_cc_pipe=""
4634 esac
4636 aros_kernel_cc_includes=""
4637 aros_target_cc_includes=""
4639 # ----------------------------------------------------------------------------------------
4640 # Host-specific defaults
4642 # This is the main host configuration section. It is where the host
4643 # can change the values of any variables it needs to change. We do
4644 # not look at anything that compiles to the target yet, we'll get
4645 # to that later.
4647 case "$host_os" in
4648 aros*)
4649 aros_host_arch="aros"
4650 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4651 case "$host_cpu" in
4652 *i?86*)
4653 aros_host_cpu="i386"
4655 *x86_64*)
4656 aros_host_cpu="x86_64"
4658 *powerpc*)
4659 aros_host_cpu="ppc"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4663 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4664 aros_host_cpu="$host_cpu"
4666 esac
4669 linux*)
4670 aros_host_arch="linux"
4671 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4672 android_build_os="linux-x86"
4673 android_tool="android"
4674 default_android_sdk="/opt/android-sdk-linux_x86"
4675 case "$host_cpu" in
4676 *i?86*)
4677 aros_host_cpu="i386"
4679 *x86_64*)
4680 aros_host_cpu="x86_64"
4682 *m68k*)
4683 aros_host_cpu="m68k"
4685 *powerpc*)
4686 aros_host_cpu="ppc"
4688 *arm*)
4689 aros_host_cpu="arm"
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4693 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4694 aros_host_cpu="$host_cpu"
4696 esac
4699 freebsd*)
4700 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4701 aros_host_make="gmake"
4702 aros_host_arch="freebsd"
4703 aros_host_cpu="i386"
4705 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4707 case $host_os in
4708 freebsd[234]*)
4709 aros_object_format="elf_i386"
4713 aros_object_format="elf_i386_fbsd"
4715 esac
4719 darwin*)
4720 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4721 aros_host_arch="darwin"
4722 android_build_os="darwin-x86"
4723 android_tool="android"
4724 default_android_sdk="/android-sdk-mac_x86"
4725 case "$host_cpu" in
4726 *i?86*)
4727 aros_host_cpu="i386"
4729 *x86_64*)
4730 aros_host_cpu="x86_64"
4732 *powerpc*)
4733 aros_host_cpu="ppc"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4737 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4738 aros_host_cpu="$host_cpu"
4740 esac
4742 aros_host_ldflags="$aros_host_ldflags -liconv"
4746 dragonfly*)
4747 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4748 aros_host_make="gmake"
4749 aros_host_arch="dragonfly"
4750 case $host_cpu in
4751 *i?86*)
4752 aros_host_cpu="i386"
4754 *amd64*)
4755 aros_host_cpu="x86_64"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4759 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4760 aros_host_cpu="$host_cpu"
4762 esac
4765 netbsd*)
4766 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4767 aros_host_make="gmake"
4768 aros_host_arch="netbsd"
4769 case "$host_cpu" in
4770 *i?86*)
4771 aros_host_cpu="i386"
4773 *m68k*)
4774 aros_host_cpu="m68k"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4778 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4779 aros_host_cpu="$host_cpu"
4781 esac
4782 aros_host_lib_suffix=".0.0"
4785 openbsd*)
4786 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4787 aros_host_make="gmake"
4788 aros_host_arch="openbsd"
4789 case "$host_cpu" in
4790 *i?86*)
4791 aros_host_cpu="i386"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4795 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4796 aros_host_cpu="$host_cpu"
4798 esac
4801 solaris*)
4802 aros_host_arch="solaris"
4803 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4804 case "$host_cpu" in
4805 *i?86*)
4806 aros_host_cpu="i386"
4808 *sparc*)
4809 aros_host_cpu="sparc"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4813 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4814 aros_host_cpu="$host_cpu"
4816 esac
4819 morphos*)
4820 aros_host_arch="morphos"
4821 aros_host_cpu="ppc"
4824 amiga*)
4825 aros_host_arch="amiga"
4826 SORT="/gg/bin/sort"
4827 TEST="/gg/bin/test"
4828 UNIQ="/gg/bin/uniq"
4829 FOR="for"
4830 TOUCH="/gg/bin/touch"
4831 case "$host_cpu" in
4832 *m68k*)
4833 aros_host_cpu="m68k"
4835 *powerpc*)
4836 aros_host_cpu="ppc"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4840 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4841 aros_host_cpu="$host_cpu"
4843 esac
4846 cygwin*)
4847 aros_host_arch="cygwin"
4848 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4849 android_build_os="windows"
4850 android_tool="android.bat"
4851 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4853 case "$host_cpu" in
4854 *i?86*)
4855 aros_host_cpu="i386"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4859 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4860 aros_host_cpu="$host_cpu"
4862 esac
4865 mingw32*)
4866 aros_host_arch="mingw32"
4867 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4868 android_build_os="windows"
4869 android_tool="android.bat"
4870 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4872 case "$host_cpu" in
4873 *i?86*)
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4876 $as_echo_n "checking for Windows native gcc target... " >&6; }
4877 host_cpu=`gcc -dumpmachine`
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4879 $as_echo "$host_cpu" >&6; }
4882 esac
4884 case "$host_cpu" in
4885 *i?86*)
4886 aros_host_cpu="i386"
4889 mingw32*)
4890 aros_host_cpu="i386"
4893 *x86_64*)
4894 aros_host_cpu="x86_64"
4895 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4900 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4901 aros_host_cpu="$host_cpu"
4903 esac
4906 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4908 esac
4910 # Extract the first word of "ar", so it can be a program name with args.
4911 set dummy ar; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_aros_host_ar+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$aros_host_ar"; then
4918 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_aros_host_ar="ar cr"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 aros_host_ar=$ac_cv_prog_aros_host_ar
4938 if test -n "$aros_host_ar"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4940 $as_echo "$aros_host_ar" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 if test "$aros_host_ar" = ""; then
4948 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$aros_host_ranlib"; then
4958 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_aros_host_ranlib="ranlib "
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4978 if test -n "$aros_host_ranlib"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4980 $as_echo "$aros_host_ranlib" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 if test "$aros_host_ranlib" = ""; then
4988 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4990 # Extract the first word of "strip", so it can be a program name with args.
4991 set dummy strip; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_aros_host_strip+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$aros_host_strip"; then
4998 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_aros_host_strip="strip "
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 aros_host_strip=$ac_cv_prog_aros_host_strip
5018 if test -n "$aros_host_strip"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5020 $as_echo "$aros_host_strip" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 if test "$aros_host_strip" = ""; then
5028 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5031 # Extract the first word of "rm", so it can be a program name with args.
5032 set dummy rm; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_RM+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$RM"; then
5039 ac_cv_prog_RM="$RM" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_RM="rm -rf"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 RM=$ac_cv_prog_RM
5059 if test -n "$RM"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5061 $as_echo "$RM" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 if test "$RM" = ""; then
5069 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5071 # Extract the first word of "cp", so it can be a program name with args.
5072 set dummy cp; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_CP+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$CP"; then
5079 ac_cv_prog_CP="$CP" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_CP="cp "
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5098 CP=$ac_cv_prog_CP
5099 if test -n "$CP"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5101 $as_echo "$CP" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 if test "$CP" = ""; then
5109 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5111 # Extract the first word of "mv", so it can be a program name with args.
5112 set dummy mv; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_MV+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$MV"; then
5119 ac_cv_prog_MV="$MV" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_MV="mv "
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5138 MV=$ac_cv_prog_MV
5139 if test -n "$MV"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5141 $as_echo "$MV" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 if test "$MV" = ""; then
5149 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5151 # Extract the first word of "echo", so it can be a program name with args.
5152 set dummy echo; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ECHO+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ECHO"; then
5159 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ECHO="echo "
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 ECHO=$ac_cv_prog_ECHO
5179 if test -n "$ECHO"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5181 $as_echo "$ECHO" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 if test "$ECHO" = ""; then
5189 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5191 # Extract the first word of "mkdir", so it can be a program name with args.
5192 set dummy mkdir; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_MKDIR+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$MKDIR"; then
5199 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_MKDIR="mkdir -p"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5218 MKDIR=$ac_cv_prog_MKDIR
5219 if test -n "$MKDIR"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5221 $as_echo "$MKDIR" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 if test "$MKDIR" = ""; then
5229 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5231 # Extract the first word of "touch", so it can be a program name with args.
5232 set dummy touch; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_TOUCH+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if test -n "$TOUCH"; then
5239 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_prog_TOUCH="touch "
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5252 done
5253 done
5254 IFS=$as_save_IFS
5258 TOUCH=$ac_cv_prog_TOUCH
5259 if test -n "$TOUCH"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5261 $as_echo "$TOUCH" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5268 if test "$TOUCH" = ""; then
5269 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5271 # Extract the first word of "sort", so it can be a program name with args.
5272 set dummy sort; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_SORT+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$SORT"; then
5279 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_SORT="sort "
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5298 SORT=$ac_cv_prog_SORT
5299 if test -n "$SORT"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5301 $as_echo "$SORT" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5308 if test "$SORT" = ""; then
5309 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5311 # Extract the first word of "uniq", so it can be a program name with args.
5312 set dummy uniq; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_UNIQ+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$UNIQ"; then
5319 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_UNIQ="uniq "
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 UNIQ=$ac_cv_prog_UNIQ
5339 if test -n "$UNIQ"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5341 $as_echo "$UNIQ" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5348 if test "$UNIQ" = ""; then
5349 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5351 # Extract the first word of "true", so it can be a program name with args.
5352 set dummy true; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_NOP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$NOP"; then
5359 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_NOP="true "
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 NOP=$ac_cv_prog_NOP
5379 if test -n "$NOP"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5381 $as_echo "$NOP" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 if test "$NOP" = ""; then
5389 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5391 # Extract the first word of "cat", so it can be a program name with args.
5392 set dummy cat; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_CAT+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -n "$CAT"; then
5399 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_CAT="cat "
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5412 done
5413 done
5414 IFS=$as_save_IFS
5418 CAT=$ac_cv_prog_CAT
5419 if test -n "$CAT"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5421 $as_echo "$CAT" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5428 if test "$CAT" = ""; then
5429 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5431 # Extract the first word of "bison", so it can be a program name with args.
5432 set dummy bison; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_BISON+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$BISON"; then
5439 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_BISON="bison "
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5452 done
5453 done
5454 IFS=$as_save_IFS
5458 BISON=$ac_cv_prog_BISON
5459 if test -n "$BISON"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5461 $as_echo "$BISON" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 if test "$BISON" = ""; then
5469 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5471 # Extract the first word of "flex", so it can be a program name with args.
5472 set dummy flex; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_FLEX+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$FLEX"; then
5479 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 ac_cv_prog_FLEX="flex "
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5492 done
5493 done
5494 IFS=$as_save_IFS
5498 FLEX=$ac_cv_prog_FLEX
5499 if test -n "$FLEX"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5501 $as_echo "$FLEX" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5508 if test "$FLEX" = ""; then
5509 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5511 # Extract the first word of "pngtopnm", so it can be a program name with args.
5512 set dummy pngtopnm; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$PNGTOPNM"; then
5519 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_PNGTOPNM="pngtopnm "
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5532 done
5533 done
5534 IFS=$as_save_IFS
5538 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5539 if test -n "$PNGTOPNM"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5541 $as_echo "$PNGTOPNM" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5548 if test "$PNGTOPNM" = ""; then
5549 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5551 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5552 set dummy ppmtoilbm; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if test -n "$PPMTOILBM"; then
5559 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5572 done
5573 done
5574 IFS=$as_save_IFS
5578 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5579 if test -n "$PPMTOILBM"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5581 $as_echo "$PPMTOILBM" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5588 if test "$PPMTOILBM" = ""; then
5589 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5591 # Extract the first word of "sed", so it can be a program name with args.
5592 set dummy sed; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_SED+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$SED"; then
5599 ac_cv_prog_SED="$SED" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_SED="sed "
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5612 done
5613 done
5614 IFS=$as_save_IFS
5618 SED=$ac_cv_prog_SED
5619 if test -n "$SED"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5621 $as_echo "$SED" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5628 if test "$SED" = ""; then
5629 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5631 # Extract the first word of "chmod", so it can be a program name with args.
5632 set dummy chmod; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_CHMOD+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$CHMOD"; then
5639 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_CHMOD="chmod "
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 CHMOD=$ac_cv_prog_CHMOD
5659 if test -n "$CHMOD"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5661 $as_echo "$CHMOD" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5668 if test "$CHMOD" = ""; then
5669 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5671 # Extract the first word of "patch", so it can be a program name with args.
5672 set dummy patch; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_PATCH+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$PATCH"; then
5679 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_PATCH="patch "
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5698 PATCH=$ac_cv_prog_PATCH
5699 if test -n "$PATCH"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5701 $as_echo "$PATCH" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5708 if test "$PATCH" = ""; then
5709 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5716 if test -n "$PYTHON"; then
5717 # If the user set $PYTHON, use it and don't search something else.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5719 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5720 prog="import sys, string
5721 # split strings by '.' and convert to numeric. Append some zeros
5722 # because we need at least 4 digits for the hex conversion.
5723 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5724 minverhex = 0
5725 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5726 sys.exit(sys.hexversion < minverhex)"
5727 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5728 ($PYTHON -c "$prog") >&5 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5734 else
5735 as_fn_error $? "too old" "$LINENO" 5
5737 am_display_PYTHON=$PYTHON
5738 else
5739 # Otherwise, try each interpreter until we find one that satisfies
5740 # VERSION.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5742 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5743 if ${am_cv_pathless_PYTHON+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5747 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5748 test "$am_cv_pathless_PYTHON" = none && break
5749 prog="import sys, string
5750 # split strings by '.' and convert to numeric. Append some zeros
5751 # because we need at least 4 digits for the hex conversion.
5752 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5753 minverhex = 0
5754 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5755 sys.exit(sys.hexversion < minverhex)"
5756 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5757 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; then :
5761 break
5763 done
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5766 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5767 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5768 if test "$am_cv_pathless_PYTHON" = none; then
5769 PYTHON=:
5770 else
5771 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5772 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_path_PYTHON+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 case $PYTHON in
5779 [\\/]* | ?:[\\/]*)
5780 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5794 done
5795 done
5796 IFS=$as_save_IFS
5799 esac
5801 PYTHON=$ac_cv_path_PYTHON
5802 if test -n "$PYTHON"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5804 $as_echo "$PYTHON" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5812 am_display_PYTHON=$am_cv_pathless_PYTHON
5816 if test "$PYTHON" = :; then
5817 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5818 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5822 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5823 if ${am_cv_python_version+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5829 $as_echo "$am_cv_python_version" >&6; }
5830 PYTHON_VERSION=$am_cv_python_version
5834 PYTHON_PREFIX='${prefix}'
5836 PYTHON_EXEC_PREFIX='${exec_prefix}'
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5841 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5842 if ${am_cv_python_platform+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5848 $as_echo "$am_cv_python_platform" >&6; }
5849 PYTHON_PLATFORM=$am_cv_python_platform
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5855 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5856 if ${am_cv_python_pythondir+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5860 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5863 $as_echo "$am_cv_python_pythondir" >&6; }
5864 pythondir=$am_cv_python_pythondir
5868 pkgpythondir=\${pythondir}/$PACKAGE
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5872 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5873 if ${am_cv_python_pyexecdir+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5877 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5880 $as_echo "$am_cv_python_pyexecdir" >&6; }
5881 pyexecdir=$am_cv_python_pyexecdir
5885 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5893 FOR=for
5895 IF=if
5897 TEST=test
5899 CMP=cmp
5903 # Check for some includes for the X11 HIDD and the kernel
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5907 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5908 if ${ac_cv_path_GREP+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -z "$GREP"; then
5912 ac_path_GREP_found=false
5913 # Loop through the user's path and test for each of PROGNAME-LIST
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_prog in grep ggrep; do
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5922 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5923 # Check for GNU ac_path_GREP and select it if it is found.
5924 # Check for GNU $ac_path_GREP
5925 case `"$ac_path_GREP" --version 2>&1` in
5926 *GNU*)
5927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5929 ac_count=0
5930 $as_echo_n 0123456789 >"conftest.in"
5931 while :
5933 cat "conftest.in" "conftest.in" >"conftest.tmp"
5934 mv "conftest.tmp" "conftest.in"
5935 cp "conftest.in" "conftest.nl"
5936 $as_echo 'GREP' >> "conftest.nl"
5937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5939 as_fn_arith $ac_count + 1 && ac_count=$as_val
5940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5941 # Best one so far, save it but keep looking for a better one
5942 ac_cv_path_GREP="$ac_path_GREP"
5943 ac_path_GREP_max=$ac_count
5945 # 10*(2^10) chars as input seems more than enough
5946 test $ac_count -gt 10 && break
5947 done
5948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5949 esac
5951 $ac_path_GREP_found && break 3
5952 done
5953 done
5954 done
5955 IFS=$as_save_IFS
5956 if test -z "$ac_cv_path_GREP"; then
5957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5959 else
5960 ac_cv_path_GREP=$GREP
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5965 $as_echo "$ac_cv_path_GREP" >&6; }
5966 GREP="$ac_cv_path_GREP"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5970 $as_echo_n "checking for egrep... " >&6; }
5971 if ${ac_cv_path_EGREP+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5975 then ac_cv_path_EGREP="$GREP -E"
5976 else
5977 if test -z "$EGREP"; then
5978 ac_path_EGREP_found=false
5979 # Loop through the user's path and test for each of PROGNAME-LIST
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_prog in egrep; do
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5989 # Check for GNU ac_path_EGREP and select it if it is found.
5990 # Check for GNU $ac_path_EGREP
5991 case `"$ac_path_EGREP" --version 2>&1` in
5992 *GNU*)
5993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5995 ac_count=0
5996 $as_echo_n 0123456789 >"conftest.in"
5997 while :
5999 cat "conftest.in" "conftest.in" >"conftest.tmp"
6000 mv "conftest.tmp" "conftest.in"
6001 cp "conftest.in" "conftest.nl"
6002 $as_echo 'EGREP' >> "conftest.nl"
6003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6005 as_fn_arith $ac_count + 1 && ac_count=$as_val
6006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6007 # Best one so far, save it but keep looking for a better one
6008 ac_cv_path_EGREP="$ac_path_EGREP"
6009 ac_path_EGREP_max=$ac_count
6011 # 10*(2^10) chars as input seems more than enough
6012 test $ac_count -gt 10 && break
6013 done
6014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6015 esac
6017 $ac_path_EGREP_found && break 3
6018 done
6019 done
6020 done
6021 IFS=$as_save_IFS
6022 if test -z "$ac_cv_path_EGREP"; then
6023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6025 else
6026 ac_cv_path_EGREP=$EGREP
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6032 $as_echo "$ac_cv_path_EGREP" >&6; }
6033 EGREP="$ac_cv_path_EGREP"
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6037 $as_echo_n "checking for ANSI C header files... " >&6; }
6038 if ${ac_cv_header_stdc+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <stdlib.h>
6044 #include <stdarg.h>
6045 #include <string.h>
6046 #include <float.h>
6049 main ()
6053 return 0;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 ac_cv_header_stdc=yes
6058 else
6059 ac_cv_header_stdc=no
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 if test $ac_cv_header_stdc = yes; then
6064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <string.h>
6069 _ACEOF
6070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6071 $EGREP "memchr" >/dev/null 2>&1; then :
6073 else
6074 ac_cv_header_stdc=no
6076 rm -f conftest*
6080 if test $ac_cv_header_stdc = yes; then
6081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <stdlib.h>
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev/null 2>&1; then :
6090 else
6091 ac_cv_header_stdc=no
6093 rm -f conftest*
6097 if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then :
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <ctype.h>
6105 #include <stdlib.h>
6106 #if ((' ' & 0x0FF) == 0x020)
6107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6109 #else
6110 # define ISLOWER(c) \
6111 (('a' <= (c) && (c) <= 'i') \
6112 || ('j' <= (c) && (c) <= 'r') \
6113 || ('s' <= (c) && (c) <= 'z'))
6114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6115 #endif
6117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6119 main ()
6121 int i;
6122 for (i = 0; i < 256; i++)
6123 if (XOR (islower (i), ISLOWER (i))
6124 || toupper (i) != TOUPPER (i))
6125 return 2;
6126 return 0;
6128 _ACEOF
6129 if ac_fn_c_try_run "$LINENO"; then :
6131 else
6132 ac_cv_header_stdc=no
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6141 $as_echo "$ac_cv_header_stdc" >&6; }
6142 if test $ac_cv_header_stdc = yes; then
6144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6148 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6150 inttypes.h stdint.h unistd.h
6151 do :
6152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6156 cat >>confdefs.h <<_ACEOF
6157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6158 _ACEOF
6162 done
6165 for ac_header in sys/ipc.h sys/shm.h \
6166 sys/mmap.h sys/mman.h sysexits.h \
6167 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6169 do :
6170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6171 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6173 cat >>confdefs.h <<_ACEOF
6174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6175 _ACEOF
6179 done
6182 for ac_header in sys/mount.h
6183 do :
6184 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6186 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_SYS_MOUNT_H 1
6189 _ACEOF
6193 done
6196 ac_header_dirent=no
6197 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6198 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6200 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6201 if eval \${$as_ac_Header+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #include <sys/types.h>
6207 #include <$ac_hdr>
6210 main ()
6212 if ((DIR *) 0)
6213 return 0;
6215 return 0;
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 eval "$as_ac_Header=yes"
6220 else
6221 eval "$as_ac_Header=no"
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 eval ac_res=\$$as_ac_Header
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6227 $as_echo "$ac_res" >&6; }
6228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6229 cat >>confdefs.h <<_ACEOF
6230 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6231 _ACEOF
6233 ac_header_dirent=$ac_hdr; break
6236 done
6237 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6238 if test $ac_header_dirent = dirent.h; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6240 $as_echo_n "checking for library containing opendir... " >&6; }
6241 if ${ac_cv_search_opendir+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 ac_func_search_save_LIBS=$LIBS
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6248 /* Override any GCC internal prototype to avoid an error.
6249 Use char because int might match the return type of a GCC
6250 builtin and then its argument prototype would still apply. */
6251 #ifdef __cplusplus
6252 extern "C"
6253 #endif
6254 char opendir ();
6256 main ()
6258 return opendir ();
6260 return 0;
6262 _ACEOF
6263 for ac_lib in '' dir; do
6264 if test -z "$ac_lib"; then
6265 ac_res="none required"
6266 else
6267 ac_res=-l$ac_lib
6268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6270 if ac_fn_c_try_link "$LINENO"; then :
6271 ac_cv_search_opendir=$ac_res
6273 rm -f core conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext
6275 if ${ac_cv_search_opendir+:} false; then :
6276 break
6278 done
6279 if ${ac_cv_search_opendir+:} false; then :
6281 else
6282 ac_cv_search_opendir=no
6284 rm conftest.$ac_ext
6285 LIBS=$ac_func_search_save_LIBS
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6288 $as_echo "$ac_cv_search_opendir" >&6; }
6289 ac_res=$ac_cv_search_opendir
6290 if test "$ac_res" != no; then :
6291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6297 $as_echo_n "checking for library containing opendir... " >&6; }
6298 if ${ac_cv_search_opendir+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 ac_func_search_save_LIBS=$LIBS
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6305 /* Override any GCC internal prototype to avoid an error.
6306 Use char because int might match the return type of a GCC
6307 builtin and then its argument prototype would still apply. */
6308 #ifdef __cplusplus
6309 extern "C"
6310 #endif
6311 char opendir ();
6313 main ()
6315 return opendir ();
6317 return 0;
6319 _ACEOF
6320 for ac_lib in '' x; do
6321 if test -z "$ac_lib"; then
6322 ac_res="none required"
6323 else
6324 ac_res=-l$ac_lib
6325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6327 if ac_fn_c_try_link "$LINENO"; then :
6328 ac_cv_search_opendir=$ac_res
6330 rm -f core conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext
6332 if ${ac_cv_search_opendir+:} false; then :
6333 break
6335 done
6336 if ${ac_cv_search_opendir+:} false; then :
6338 else
6339 ac_cv_search_opendir=no
6341 rm conftest.$ac_ext
6342 LIBS=$ac_func_search_save_LIBS
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6345 $as_echo "$ac_cv_search_opendir" >&6; }
6346 ac_res=$ac_cv_search_opendir
6347 if test "$ac_res" != no; then :
6348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6355 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6356 if ${ac_cv_header_stat_broken+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #include <sys/types.h>
6362 #include <sys/stat.h>
6364 #if defined S_ISBLK && defined S_IFDIR
6365 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6366 #endif
6368 #if defined S_ISBLK && defined S_IFCHR
6369 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6370 #endif
6372 #if defined S_ISLNK && defined S_IFREG
6373 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6374 #endif
6376 #if defined S_ISSOCK && defined S_IFREG
6377 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6378 #endif
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 ac_cv_header_stat_broken=no
6383 else
6384 ac_cv_header_stat_broken=yes
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6389 $as_echo "$ac_cv_header_stat_broken" >&6; }
6390 if test $ac_cv_header_stat_broken = yes; then
6392 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6397 $as_echo_n "checking for ANSI C header files... " >&6; }
6398 if ${ac_cv_header_stdc+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 #include <stdlib.h>
6404 #include <stdarg.h>
6405 #include <string.h>
6406 #include <float.h>
6409 main ()
6413 return 0;
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 ac_cv_header_stdc=yes
6418 else
6419 ac_cv_header_stdc=no
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 if test $ac_cv_header_stdc = yes; then
6424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 #include <string.h>
6429 _ACEOF
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 $EGREP "memchr" >/dev/null 2>&1; then :
6433 else
6434 ac_cv_header_stdc=no
6436 rm -f conftest*
6440 if test $ac_cv_header_stdc = yes; then
6441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 #include <stdlib.h>
6446 _ACEOF
6447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6448 $EGREP "free" >/dev/null 2>&1; then :
6450 else
6451 ac_cv_header_stdc=no
6453 rm -f conftest*
6457 if test $ac_cv_header_stdc = yes; then
6458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6459 if test "$cross_compiling" = yes; then :
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <ctype.h>
6465 #include <stdlib.h>
6466 #if ((' ' & 0x0FF) == 0x020)
6467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6469 #else
6470 # define ISLOWER(c) \
6471 (('a' <= (c) && (c) <= 'i') \
6472 || ('j' <= (c) && (c) <= 'r') \
6473 || ('s' <= (c) && (c) <= 'z'))
6474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6475 #endif
6477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6479 main ()
6481 int i;
6482 for (i = 0; i < 256; i++)
6483 if (XOR (islower (i), ISLOWER (i))
6484 || toupper (i) != TOUPPER (i))
6485 return 2;
6486 return 0;
6488 _ACEOF
6489 if ac_fn_c_try_run "$LINENO"; then :
6491 else
6492 ac_cv_header_stdc=no
6494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6495 conftest.$ac_objext conftest.beam conftest.$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6501 $as_echo "$ac_cv_header_stdc" >&6; }
6502 if test $ac_cv_header_stdc = yes; then
6504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6509 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6510 if ${ac_cv_header_sys_wait_h+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 #include <sys/wait.h>
6517 #ifndef WEXITSTATUS
6518 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6519 #endif
6520 #ifndef WIFEXITED
6521 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6522 #endif
6525 main ()
6527 int s;
6528 wait (&s);
6529 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6531 return 0;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 ac_cv_header_sys_wait_h=yes
6536 else
6537 ac_cv_header_sys_wait_h=no
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6542 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6543 if test $ac_cv_header_sys_wait_h = yes; then
6545 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6550 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6551 if ${ac_cv_header_time+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6557 #include <sys/time.h>
6558 #include <time.h>
6561 main ()
6563 if ((struct tm *) 0)
6564 return 0;
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 ac_cv_header_time=yes
6571 else
6572 ac_cv_header_time=no
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6577 $as_echo "$ac_cv_header_time" >&6; }
6578 if test $ac_cv_header_time = yes; then
6580 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6584 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6585 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6587 cat >>confdefs.h <<_ACEOF
6588 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6589 _ACEOF
6592 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6597 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6598 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6600 cat >>confdefs.h <<_ACEOF
6601 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6602 _ACEOF
6605 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6607 else
6608 case " $LIBOBJS " in
6609 *" fileblocks.$ac_objext "* ) ;;
6610 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6612 esac
6617 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6618 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6620 cat >>confdefs.h <<_ACEOF
6621 #define HAVE_STRUCT_STAT_ST_RDEV 1
6622 _ACEOF
6625 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6631 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6632 if ${ac_cv_struct_tm+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <sys/types.h>
6638 #include <time.h>
6641 main ()
6643 struct tm tm;
6644 int *p = &tm.tm_sec;
6645 return !p;
6647 return 0;
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 ac_cv_struct_tm=time.h
6652 else
6653 ac_cv_struct_tm=sys/time.h
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6658 $as_echo "$ac_cv_struct_tm" >&6; }
6659 if test $ac_cv_struct_tm = sys/time.h; then
6661 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6665 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6666 #include <$ac_cv_struct_tm>
6669 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6671 cat >>confdefs.h <<_ACEOF
6672 #define HAVE_STRUCT_TM_TM_ZONE 1
6673 _ACEOF
6678 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6680 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6682 else
6683 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6685 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6686 ac_have_decl=1
6687 else
6688 ac_have_decl=0
6691 cat >>confdefs.h <<_ACEOF
6692 #define HAVE_DECL_TZNAME $ac_have_decl
6693 _ACEOF
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6696 $as_echo_n "checking for tzname... " >&6; }
6697 if ${ac_cv_var_tzname+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <time.h>
6703 #if !HAVE_DECL_TZNAME
6704 extern char *tzname[];
6705 #endif
6708 main ()
6710 return tzname[0][0];
6712 return 0;
6714 _ACEOF
6715 if ac_fn_c_try_link "$LINENO"; then :
6716 ac_cv_var_tzname=yes
6717 else
6718 ac_cv_var_tzname=no
6720 rm -f core conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6724 $as_echo "$ac_cv_var_tzname" >&6; }
6725 if test $ac_cv_var_tzname = yes; then
6727 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6732 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6733 if test "x$ac_cv_type_off_t" = xyes; then :
6735 else
6737 cat >>confdefs.h <<_ACEOF
6738 #define off_t long int
6739 _ACEOF
6743 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6744 if test "x$ac_cv_type_pid_t" = xyes; then :
6746 else
6748 cat >>confdefs.h <<_ACEOF
6749 #define pid_t int
6750 _ACEOF
6754 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6755 if test "x$ac_cv_type_size_t" = xyes; then :
6757 else
6759 cat >>confdefs.h <<_ACEOF
6760 #define size_t unsigned int
6761 _ACEOF
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6766 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6767 if ${ac_cv_type_uid_t+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 #include <sys/types.h>
6774 _ACEOF
6775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6776 $EGREP "uid_t" >/dev/null 2>&1; then :
6777 ac_cv_type_uid_t=yes
6778 else
6779 ac_cv_type_uid_t=no
6781 rm -f conftest*
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6785 $as_echo "$ac_cv_type_uid_t" >&6; }
6786 if test $ac_cv_type_uid_t = no; then
6788 $as_echo "#define uid_t int" >>confdefs.h
6791 $as_echo "#define gid_t int" >>confdefs.h
6796 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6797 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6801 _ACEOF
6807 # Look for some functions
6808 for ac_func in getpagesize kqueue statfs statvfs \
6809 clone kse_create rfork_thread thr_create sa_register \
6810 getcontext makecontext setcontext sigaltstack swapcontext
6811 do :
6812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6815 cat >>confdefs.h <<_ACEOF
6816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6817 _ACEOF
6820 done
6826 for ac_header in $ac_header_list
6827 do :
6828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6832 cat >>confdefs.h <<_ACEOF
6833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6834 _ACEOF
6838 done
6847 for ac_func in getpagesize
6848 do :
6849 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6850 if test "x$ac_cv_func_getpagesize" = xyes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_GETPAGESIZE 1
6853 _ACEOF
6856 done
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6859 $as_echo_n "checking for working mmap... " >&6; }
6860 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test "$cross_compiling" = yes; then :
6864 ac_cv_func_mmap_fixed_mapped=no
6865 else
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 $ac_includes_default
6869 /* malloc might have been renamed as rpl_malloc. */
6870 #undef malloc
6872 /* Thanks to Mike Haertel and Jim Avera for this test.
6873 Here is a matrix of mmap possibilities:
6874 mmap private not fixed
6875 mmap private fixed at somewhere currently unmapped
6876 mmap private fixed at somewhere already mapped
6877 mmap shared not fixed
6878 mmap shared fixed at somewhere currently unmapped
6879 mmap shared fixed at somewhere already mapped
6880 For private mappings, we should verify that changes cannot be read()
6881 back from the file, nor mmap's back from the file at a different
6882 address. (There have been systems where private was not correctly
6883 implemented like the infamous i386 svr4.0, and systems where the
6884 VM page cache was not coherent with the file system buffer cache
6885 like early versions of FreeBSD and possibly contemporary NetBSD.)
6886 For shared mappings, we should conversely verify that changes get
6887 propagated back to all the places they're supposed to be.
6889 Grep wants private fixed already mapped.
6890 The main things grep needs to know about mmap are:
6891 * does it exist and is it safe to write into the mmap'd area
6892 * how to use it (BSD variants) */
6894 #include <fcntl.h>
6895 #include <sys/mman.h>
6897 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6898 char *malloc ();
6899 #endif
6901 /* This mess was copied from the GNU getpagesize.h. */
6902 #ifndef HAVE_GETPAGESIZE
6903 # ifdef _SC_PAGESIZE
6904 # define getpagesize() sysconf(_SC_PAGESIZE)
6905 # else /* no _SC_PAGESIZE */
6906 # ifdef HAVE_SYS_PARAM_H
6907 # include <sys/param.h>
6908 # ifdef EXEC_PAGESIZE
6909 # define getpagesize() EXEC_PAGESIZE
6910 # else /* no EXEC_PAGESIZE */
6911 # ifdef NBPG
6912 # define getpagesize() NBPG * CLSIZE
6913 # ifndef CLSIZE
6914 # define CLSIZE 1
6915 # endif /* no CLSIZE */
6916 # else /* no NBPG */
6917 # ifdef NBPC
6918 # define getpagesize() NBPC
6919 # else /* no NBPC */
6920 # ifdef PAGESIZE
6921 # define getpagesize() PAGESIZE
6922 # endif /* PAGESIZE */
6923 # endif /* no NBPC */
6924 # endif /* no NBPG */
6925 # endif /* no EXEC_PAGESIZE */
6926 # else /* no HAVE_SYS_PARAM_H */
6927 # define getpagesize() 8192 /* punt totally */
6928 # endif /* no HAVE_SYS_PARAM_H */
6929 # endif /* no _SC_PAGESIZE */
6931 #endif /* no HAVE_GETPAGESIZE */
6934 main ()
6936 char *data, *data2, *data3;
6937 const char *cdata2;
6938 int i, pagesize;
6939 int fd, fd2;
6941 pagesize = getpagesize ();
6943 /* First, make a file with some known garbage in it. */
6944 data = (char *) malloc (pagesize);
6945 if (!data)
6946 return 1;
6947 for (i = 0; i < pagesize; ++i)
6948 *(data + i) = rand ();
6949 umask (0);
6950 fd = creat ("conftest.mmap", 0600);
6951 if (fd < 0)
6952 return 2;
6953 if (write (fd, data, pagesize) != pagesize)
6954 return 3;
6955 close (fd);
6957 /* Next, check that the tail of a page is zero-filled. File must have
6958 non-zero length, otherwise we risk SIGBUS for entire page. */
6959 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6960 if (fd2 < 0)
6961 return 4;
6962 cdata2 = "";
6963 if (write (fd2, cdata2, 1) != 1)
6964 return 5;
6965 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6966 if (data2 == MAP_FAILED)
6967 return 6;
6968 for (i = 0; i < pagesize; ++i)
6969 if (*(data2 + i))
6970 return 7;
6971 close (fd2);
6972 if (munmap (data2, pagesize))
6973 return 8;
6975 /* Next, try to mmap the file at a fixed address which already has
6976 something else allocated at it. If we can, also make sure that
6977 we see the same garbage. */
6978 fd = open ("conftest.mmap", O_RDWR);
6979 if (fd < 0)
6980 return 9;
6981 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6982 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6983 return 10;
6984 for (i = 0; i < pagesize; ++i)
6985 if (*(data + i) != *(data2 + i))
6986 return 11;
6988 /* Finally, make sure that changes to the mapped area do not
6989 percolate back to the file as seen by read(). (This is a bug on
6990 some variants of i386 svr4.0.) */
6991 for (i = 0; i < pagesize; ++i)
6992 *(data2 + i) = *(data2 + i) + 1;
6993 data3 = (char *) malloc (pagesize);
6994 if (!data3)
6995 return 12;
6996 if (read (fd, data3, pagesize) != pagesize)
6997 return 13;
6998 for (i = 0; i < pagesize; ++i)
6999 if (*(data + i) != *(data3 + i))
7000 return 14;
7001 close (fd);
7002 return 0;
7004 _ACEOF
7005 if ac_fn_c_try_run "$LINENO"; then :
7006 ac_cv_func_mmap_fixed_mapped=yes
7007 else
7008 ac_cv_func_mmap_fixed_mapped=no
7010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7011 conftest.$ac_objext conftest.beam conftest.$ac_ext
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7016 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7017 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7019 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7022 rm -f conftest.mmap conftest.txt
7027 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7028 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7029 aros_config_ldflags=""
7031 aros_shared_default=yes
7033 aros_shared_cflags="-fPIC"
7034 aros_shared_aflags=""
7035 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7036 aros_kernel_ldflags="-Wl,-rpath,./lib"
7038 aros_kernel_ar_flags="cr"
7039 aros_target_ar_flags="cr"
7040 aros_target_nm_flags="-C -ul"
7041 aros_target_strip_flags="--strip-unneeded -R.comment"
7043 aros_compiler_libs=
7044 aros_arch_libs=
7046 aros_target_genmap="-Wl,-Map -Xlinker"
7048 # Native flavour stuff
7049 aros_serial_debug="0"
7051 # Palm native flavour stuff
7052 aros_palm_debug_hack="0"
7054 # Unix flavour stuff
7055 aros_nesting_supervisor="0"
7057 # Collect-aros stuff: "-ius" to ignore undefined symbols
7058 ignore_undefined_symbols=""
7060 # Check for X11 by default
7061 need_x11="auto"
7063 #-----------------------------------------------------------------------------
7066 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7067 # it switched on by default, and we use the host compiler, so it compiles AROS
7068 # code with this enabled resulting in link failures as we don't have support
7069 # for it.
7071 # We use two methods to disable it. For the host compiler (used to compile
7072 # some hosted modules), we test to see if the compiler supports stack
7073 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7074 # work on all platforms.
7076 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7077 # (this is done unconditionally, as it should have no effect on compilers
7078 # without the stack protection feature). This may be specific to the way that
7079 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7080 # strong enough to disable it in a generic way though, so we'll live with it
7081 # until another vendor ships GCC with it enabled in a different way, and deal
7082 # with it then.
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7086 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7087 save_cflags="$CFLAGS"
7088 CFLAGS="$CFLAGS -fno-stack-protector"
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7093 main ()
7097 return 0;
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"; then :
7101 use_no_stack_protector="yes"
7102 else
7103 use_no_stack_protector="no"
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7107 $as_echo "$use_no_stack_protector" >&6; }
7108 if test "x-$use_no_stack_protector" = "x-yes" ; then
7109 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7111 CFLAGS="$save_cflags"
7113 #-----------------------------------------------------------------------------
7115 # Disable pointer-signedness warnings if the compiler recognises the option
7116 # (this only works for the host compiler at the moment)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7119 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7120 save_cflags="$CFLAGS"
7121 CFLAGS="$CFLAGS -Wno-pointer-sign"
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7126 main ()
7130 return 0;
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"; then :
7134 use_no_sign_warning="yes"
7135 else
7136 use_no_sign_warning="no"
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7140 $as_echo "$use_no_sign_warning" >&6; }
7141 if test "x-$use_no_sign_warning" = "x-yes" ; then
7142 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7144 CFLAGS="$save_cflags"
7146 #-----------------------------------------------------------------------------
7148 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7151 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7152 save_cflags="$CFLAGS"
7153 CFLAGS="$CFLAGS -fgnu89-inline"
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7158 main ()
7162 return 0;
7164 _ACEOF
7165 if ac_fn_c_try_compile "$LINENO"; then :
7166 use_gnu89_inline="yes"
7167 else
7168 use_gnu89_inline="no"
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7172 $as_echo "$use_gnu89_inline" >&6; }
7173 if test "x-$use_gnu89_inline" = "x-yes" ; then
7174 gnu89_inline="-fgnu89-inline"
7176 CFLAGS="$save_cflags"
7178 #-----------------------------------------------------------------------------
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7181 $as_echo_n "checking for type of build... " >&6; }
7182 # Check whether --enable-build_type was given.
7183 if test "${enable_build_type+set}" = set; then :
7184 enableval=$enable_build_type; build_type=$enableval
7185 else
7186 build_type="personal"
7190 if test "$build_type" = "nightly"; then
7191 build_type_string="NIGHTLY"
7192 elif test "$build_type" = "snapshot"; then
7193 build_type_string="SNAPSHOT"
7194 elif test "$build_type" = "milestone"; then
7195 build_type_string="MILESTONE"
7196 elif test "$build_type" = "release"; then
7197 build_type_string="RELEASE"
7198 else
7199 build_type_string="PERSONAL"
7200 build_type="personal"
7203 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7206 $as_echo "$build_type" >&6; }
7208 #-----------------------------------------------------------------------------
7209 all_debug_types="messages stack modules mungwall symbols"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7212 $as_echo_n "checking which debug types to enable... " >&6; }
7213 # Check whether --enable-debug was given.
7214 if test "${enable_debug+set}" = set; then :
7215 enableval=$enable_debug; debug="$enableval"
7216 else
7217 debug=""
7221 if test "$debug" = "" -o "$debug" = "no"; then
7222 debug="none"
7223 elif test "$debug" = "yes"; then
7224 debug="all"
7227 if test "$debug" = "all" ; then
7228 debug="messages stack modules symbols"
7229 for d in $all_debug_types; do
7230 export aros_${d}_debug="1"
7231 done
7232 else
7233 for d in $all_debug_types; do
7234 export aros_${d}_debug="0"
7235 done
7238 if test "$debug" != "none"; then
7239 debug=`echo $debug | sed s/,/\ /g`
7240 for d in $debug; do
7241 found="0"
7242 for d2 in $all_debug_types; do
7243 if test "$d2" = "$d"; then
7244 found="1"
7245 break
7247 done
7248 if test "$found" = "0"; then
7249 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7251 export aros_${d}_debug="1"
7252 done
7253 aros_debug="yes"
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7256 $as_echo "$debug" >&6; }
7258 if test "$aros_messages_debug" = "1"; then
7259 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7260 else
7261 aros_messages_debug=""
7263 if test "$aros_symbols_debug" = "1"; then
7264 aros_symbols_debug="-g"
7265 else
7266 aros_symbols_debug=""
7269 # These are the flags to pass when compiling debugged programs
7270 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7271 aros_debug_aflags=""
7272 aros_debug_ldflags="$aros_symbols_debug"
7274 #-----------------------------------------------------------------------------
7275 # Checking for distcc and ccache.
7277 # Always apply the transforms in this particular order. Basically you should
7278 # always run 'ccache distcc compiler' in that order for the best performance.
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7281 $as_echo_n "checking whether to enable distcc... " >&6; }
7282 # Check whether --enable-distcc was given.
7283 if test "${enable_distcc+set}" = set; then :
7284 enableval=$enable_distcc; distcc="$enableval"
7285 else
7286 distcc="no"
7289 if test "$distcc" != "" -a "$distcc" != "no"; then
7290 # AC_CHECK_PROG will print out the result in this case
7291 # Extract the first word of "distcc", so it can be a program name with args.
7292 set dummy distcc; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_path_DISTCC+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 case $DISTCC in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7314 done
7315 done
7316 IFS=$as_save_IFS
7318 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7320 esac
7322 DISTCC=$ac_cv_path_DISTCC
7323 if test -n "$DISTCC"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7325 $as_echo "$DISTCC" >&6; }
7326 else
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7338 $as_echo_n "checking whether to enable ccache... " >&6; }
7339 # Check whether --enable-ccache was given.
7340 if test "${enable_ccache+set}" = set; then :
7341 enableval=$enable_ccache; ccache="$enableval"
7342 else
7343 ccache="no"
7346 if test "$ccache" != "" -a "$ccache" != "no"; then
7347 # AC_CHECK_PROG will print out the result in this case
7348 # Extract the first word of "ccache", so it can be a program name with args.
7349 set dummy ccache; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_CCACHE+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 if test -n "$CCACHE"; then
7356 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_prog_CCACHE="ccache"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 break 2
7369 done
7370 done
7371 IFS=$as_save_IFS
7375 CCACHE=$ac_cv_prog_CCACHE
7376 if test -n "$CCACHE"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7378 $as_echo "$CCACHE" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7390 #-----------------------------------------------------------------------------
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7392 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7394 # Check whether --with-gcc-version was given.
7395 if test "${with_gcc_version+set}" = set; then :
7396 withval=$with_gcc_version; kernel_tool_version="$withval"
7397 else
7398 kernel_tool_version="default"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7402 $as_echo "$kernel_tool_version" >&6; }
7404 #-----------------------------------------------------------------------------
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7406 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7408 # Check whether --with-gcc-version was given.
7409 if test "${with_gcc_version+set}" = set; then :
7410 withval=$with_gcc_version; target_tool_version="$withval"
7411 else
7412 target_tool_version="default"
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7416 $as_echo "$target_tool_version" >&6; }
7418 #-----------------------------------------------------------------------------
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7420 $as_echo_n "checking what optimization flags to use... " >&6; }
7422 # Check whether --with-optimization was given.
7423 if test "${with_optimization+set}" = set; then :
7424 withval=$with_optimization; optimization="$withval"
7425 else
7426 optimization="unknown"
7429 if test "$optimization" = "unknown"; then
7430 if test "$debug" != "none"; then
7431 optimization="-O0"
7432 else
7433 optimization="-O2"
7436 aros_config_cflags="$aros_config_cflags $optimization"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7438 $as_echo "$optimization" >&6; }
7440 #-----------------------------------------------------------------------------
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7442 $as_echo_n "checking what paranoia flags to use... " >&6; }
7444 # Check whether --with-paranoia was given.
7445 if test "${with_paranoia+set}" = set; then :
7446 withval=$with_paranoia; paranoia_flags="$withval"
7447 else
7448 paranoia_flags="default"
7451 if test "$paranoia_flags" = "default"; then
7452 paranoia_flags=""
7453 else if test "$paranoia_flags" = "yes"; then
7454 paranoia_flags="-Wall -Werror"
7455 fi fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7457 $as_echo "$paranoia_flags" >&6; }
7458 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7460 #-----------------------------------------------------------------------------
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7462 $as_echo_n "checking what target variant to enable... " >&6; }
7463 # Check whether --enable-target_variant was given.
7464 if test "${enable_target_variant+set}" = set; then :
7465 enableval=$enable_target_variant; target_variant=$enableval
7466 else
7467 target_variant=""
7470 if test "$target_variant" = ""; then
7471 aros_target_variant=""
7472 aros_target_suffix=""
7473 enableval="none"
7474 else
7475 aros_target_variant="$target_variant"
7476 aros_target_suffix="-$target_variant"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7479 $as_echo "$enableval" >&6; }
7481 #-----------------------------------------------------------------------------
7482 # Target-specific defaults. You can override then on a per-target basis.
7484 # Bootloader name. Currently used by PC target.
7485 target_bootloader="none"
7487 #-----------------------------------------------------------------------------
7488 # Additional options for some specific targets
7490 case "$aros_target_variant" in
7491 ios)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7493 $as_echo_n "checking XCode path... " >&6; }
7495 # Check whether --with-xcode was given.
7496 if test "${with_xcode+set}" = set; then :
7497 withval=$with_xcode; aros_xcode_path="$withval"
7498 else
7499 aros_xcode_path="/Developer"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7503 $as_echo "$aros_xcode_path" >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7506 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7508 # Check whether --with-sdk-version was given.
7509 if test "${with_sdk_version+set}" = set; then :
7510 withval=$with_sdk_version; aros_sdk_version="$withval"
7511 else
7512 aros_sdk_version="4.1"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7516 $as_echo "$aros_sdk_version" >&6; }
7520 "android")
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7522 $as_echo_n "checking Android SDK path... " >&6; }
7524 # Check whether --with-sdk was given.
7525 if test "${with_sdk+set}" = set; then :
7526 withval=$with_sdk; aros_android_sdk="$withval"
7527 else
7528 aros_android_sdk=$default_android_sdk
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7532 $as_echo "$aros_android_sdk" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7535 $as_echo_n "checking Android NDK path... " >&6; }
7537 # Check whether --with-ndk was given.
7538 if test "${with_ndk+set}" = set; then :
7539 withval=$with_ndk; aros_android_ndk="$withval"
7540 else
7541 aros_android_ndk="none"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7545 $as_echo "$aros_android_ndk" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7548 $as_echo_n "checking what Android SDK version to use... " >&6; }
7550 # Check whether --with-sdk-version was given.
7551 if test "${with_sdk_version+set}" = set; then :
7552 withval=$with_sdk_version; aros_sdk_version="$withval"
7553 else
7554 aros_sdk_version="12"
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7558 $as_echo "$aros_sdk_version" >&6; }
7560 if test "$aros_android_ndk" != "none"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7562 $as_echo_n "checking what Android NDK version to use... " >&6; }
7564 # Check whether --with-ndk-version was given.
7565 if test "${with_ndk_version+set}" = set; then :
7566 withval=$with_ndk_version; aros_ndk_version="$withval"
7567 else
7568 aros_ndk_version="9"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7572 $as_echo "$aros_ndk_version" >&6; }
7575 export PATH="$aros_android_sdk/tools:$PATH"
7576 # Extract the first word of "$android_tool", so it can be a program name with args.
7577 set dummy $android_tool; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_path_android_tool+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 case $android_tool in
7584 [\\/]* | ?:[\\/]*)
7585 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7604 esac
7606 android_tool=$ac_cv_path_android_tool
7607 if test -n "$android_tool"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7609 $as_echo "$android_tool" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7616 if test "$android_tool" = ""; then
7617 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7620 aros_android_level=android-$aros_sdk_version
7621 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7622 echo "Platform $aros_android_level is not installed in your SDK"
7623 echo "Use --with-sdk-version=<API level number> to select another platform version"
7624 echo "You can check what plaform versions are installed in your SDK"
7625 echo "by examining contents of $aros_android_sdk/platforms directory"
7626 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7629 # Extract the first word of "ant", so it can be a program name with args.
7630 set dummy ant; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_path_ant+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 case $ant in
7637 [\\/]* | ?:[\\/]*)
7638 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7652 done
7653 done
7654 IFS=$as_save_IFS
7657 esac
7659 ant=$ac_cv_path_ant
7660 if test -n "$ant"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7662 $as_echo "$ant" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7669 if test "$ant" = ""; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7671 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7674 if test "$host_os" = "mingw32"; then
7675 android_tool="cmd //c $android_tool"
7679 esac
7681 #-----------------------------------------------------------------------------
7682 # External toolchains
7683 kernel_tool_prefix="none"
7684 aros_tool_prefix="none"
7685 elf_tool_prefix="${target_cpu}-elf-"
7687 # This is the target configuration switch.
7688 case "$target_os" in
7689 linux*)
7690 aros_target_arch="linux"
7691 aros_target_family="unix"
7692 case "$target_cpu" in
7693 *m68k*)
7694 aros_target_cpu="m68k"
7695 aros_object_format="m68kelf"
7696 aros_flavour="emulcompat"
7697 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7698 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7699 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7700 gcc_target_cpu="mc68000"
7702 *i?86*)
7703 aros_target_cpu="i386"
7704 aros_object_format="elf_i386"
7705 aros_flavour="emulation"
7706 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7707 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7708 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7709 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7710 aros_config_ldflags="-m32 -march=i486"
7711 aros_kernel_ldflags="-melf_i386"
7712 aros_default_wbdepth=8
7713 gcc_target_cpu="i386"
7714 pci_hidd_target="hidd-pci-linux"
7715 android_tool_dir_prefix="x86"
7716 android_tool_prefix="i686-android-linux"
7717 android_ndk_arch="x86"
7719 *x86_64*)
7720 aros_target_cpu="x86_64"
7721 aros_object_format="elf_x86_64"
7722 aros_flavour="emulation"
7723 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7724 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7725 aros_default_wbdepth=8
7726 pci_hidd_target="hidd-pci-linux"
7728 *powerpc*)
7729 aros_target_cpu="ppc"
7730 aros_object_format="elf32ppc"
7731 aros_flavour="emulation"
7732 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7733 aros_default_wbdepth=8
7734 gcc_target_cpu="ppc"
7736 # TODO
7737 # Same as powerpc, but I need this for the nightly build to work again.
7738 # Actually, the nightly should be made working with powerpc target.
7739 # That just was too much work for the moment, another week or two.
7740 *ppc*)
7741 aros_target_cpu="ppc"
7742 aros_object_format="elf32ppc"
7743 aros_flavour="emulation"
7744 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7745 aros_default_wbdepth=8
7746 gcc_target_cpu="ppc"
7748 *arm*)
7749 aros_target_cpu="arm"
7750 aros_object_format="armelf_linux_eabi"
7751 aros_flavour="emulation"
7752 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7753 gcc_target_cpu="arm"
7754 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7755 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7756 aros_arch_libs="-laeabi"
7757 android_tool_dir_prefix="arm-linux-androideabi"
7758 android_tool_prefix="arm-linux-androideabi"
7759 android_ndk_arch="arm"
7760 if test "$aros_host_cpu" != "arm" ; then
7761 kernel_tool_prefix="arm-linux-gnueabi-"
7765 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7767 esac
7768 case "$aros_target_variant" in
7769 android)
7771 if test "$android_ndk_arch" = ""; then
7772 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7775 aros_default_wbwidth=320
7776 aros_default_wbheight=480
7777 if test "$aros_android_ndk" = "none"; then
7778 aros_kernel_cflags="-mandroid"
7779 aros_kernel_ldflags="-mandroid"
7780 CFLAGS="-mandroid"
7781 else
7782 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7783 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7784 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7785 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7786 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7787 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7789 need_x11=no
7790 x11_hidd_target=kernel-hidd-androidgfx-kobj
7791 # Disable implicit PIC mode
7792 aros_target_cflags="$aros_target_cflags -fno-pic"
7793 kernel_tool_prefix="$android_tool_prefix-"
7795 esac
7799 aros_target_arch="pc"
7800 aros_shared_default="no"
7801 target_bootloader="grub2"
7802 case "$target_cpu" in
7803 *i?86*)
7804 aros_target_cpu="i386"
7807 if test "$aros_object_format" = "" ; then
7808 aros_object_format="elf_i386"
7810 aros_flavour="standalone"
7811 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7812 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7813 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7814 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7815 aros_config_ldflags="-m32 -march=i486"
7816 aros_kernel_ldflags="-melf_i386"
7817 aros_default_wbwidth=640
7818 aros_default_wbheight=480
7819 gcc_target_cpu="i386"
7821 *x86_64*)
7822 aros_target_cpu="x86_64"
7823 aros_serial_debug=1
7824 if test "$aros_object_format" = "" ; then
7825 aros_object_format="elf_x86_64"
7827 aros_flavour="standalone"
7828 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7829 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7830 aros_kernel_ldflags=""
7831 aros_default_wbwidth=640
7832 aros_default_wbheight=480
7835 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7837 esac
7840 prep)
7841 aros_target_arch="prep"
7842 aros_shared_default="no"
7843 aros_target_cpu="ppc"
7844 aros_object_format="elf32ppc"
7845 aros_flavour="ppcnative"
7846 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7847 aros_kernel_ldflags=""
7848 aros_default_wbwidth=640
7849 aros_default_wbheight=480
7850 gcc_target_cpu="ppc"
7853 freebsd*)
7854 aros_target_arch="freebsd"
7855 aros_target_family="unix"
7856 aros_target_cpu="i386"
7857 aros_flavour="emulation"
7858 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7859 gcc_target_cpu="i386"
7861 aros_target_strip_flags="-x"
7864 darwin*)
7865 aros_target_arch="darwin"
7866 aros_target_family="unix"
7867 aros_flavour="emulation"
7868 case "$target_cpu" in
7869 *i?86*)
7870 aros_ios_platform="iPhoneSimulator"
7871 aros_target_cpu="i386"
7872 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7873 aros_kernel_ldflags=""
7874 aros_macosx_version="10.4"
7875 aros_default_wbdepth=8
7876 gcc_target_cpu="i386"
7877 aros_object_format="elf_i386"
7878 aros_kernel_ar_flags="-cr"
7879 aros_target_strip_flags="-x"
7880 kernel_tool_flags="-m32"
7882 *x86_64*)
7883 aros_target_cpu="x86_64"
7884 aros_object_format="elf_x86_64"
7885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7886 aros_macosx_version="10.6"
7887 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7888 aros_kernel_cflags="-m64"
7889 aros_kernel_ldflags="-m64"
7890 aros_target_cflags="-mcmodel=large"
7891 aros_default_wbdepth=8
7892 aros_kernel_ar="ar"
7893 aros_kernel_ar_flags="-cr"
7894 aros_kernel_ld="ld"
7895 aros_kernel_ranlib="ranlib"
7897 *ppc*)
7898 aros_target_cpu="ppc"
7899 aros_object_format="elf32ppc"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7901 aros_kernel_ldflags=""
7902 aros_macosx_version="10.0"
7903 aros_default_wbdepth=8
7904 gcc_target_cpu="ppc"
7905 aros_kernel_ar="ar"
7906 aros_kernel_ar_flags="-cr"
7907 aros_kernel_ld="ld -arch ppc"
7908 aros_kernel_ranlib="ranlib -arch ppc"
7909 kernel_tool_prefix="powerpc-apple-darwin10-"
7911 *arm*)
7912 aros_ios_platform="iPhoneOS"
7913 aros_target_cpu="arm"
7914 aros_object_format="armelf_linux_eabi"
7915 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7916 aros_arch_libs="-laeabi"
7917 aros_default_wbdepth=8
7918 gcc_target_cpu="arm"
7919 aros_kernel_ar="ar"
7920 aros_kernel_ar_flags="-cr"
7921 aros_kernel_ld="ld -arch arm"
7922 aros_kernel_ranlib="ranlib -arch arm"
7923 kernel_tool_prefix="arm-apple-darwin10-"
7924 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7927 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7929 esac
7930 case "$aros_target_variant" in
7931 ios)
7932 aros_ios_version="3.0"
7933 aros_default_wbwidth=320
7934 aros_default_wbheight=480
7935 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7936 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7937 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7938 need_x11=no
7939 # This is here because it may depend on iOS or SDK version
7940 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7941 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7942 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7945 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7946 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7948 esac
7951 dragonfly*)
7952 aros_target_arch="dragonfly"
7953 aros_target_family="unix"
7954 aros_flavour="emulation"
7955 case "$target_cpu" in
7956 *i?86*)
7957 aros_target_cpu="i386"
7958 aros_object_format="elf_i386"
7959 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7961 *x86_64*)
7962 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7963 aros_target_cpu="x86_64"
7964 aros_object_format="elf_x86_64"
7965 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7968 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7970 esac
7973 netbsd*)
7974 aros_target_arch="netbsd"
7975 aros_target_family="unix"
7976 case "$target_cpu" in
7977 *m68k*)
7978 aros_target_cpu="m68k"
7979 aros_object_format="m68kelf"
7980 aros_flavour="emulcompat"
7981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7982 gcc_target_cpu="mc68000"
7984 *i?86*)
7985 aros_target_cpu="i386"
7986 aros_object_format="elf_i386"
7987 aros_flavour="emulation"
7988 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7989 aros_default_wbdepth=8
7990 gcc_target_cpu="i386"
7993 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7995 esac
7996 aros_target_genmap="-Wl,-M -Xlinker >"
7997 aros_flavour="emulation"
7998 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8001 openbsd*)
8002 aros_target_arch="openbsd"
8003 aros_target_family="unix"
8004 case "$target_cpu" in
8005 *i?86*)
8006 aros_target_cpu="i386"
8007 aros_object_format="elf_i386"
8008 aros_flavour="emulation"
8009 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8010 gcc_target_cpu="i386"
8013 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8015 esac
8016 aros_target_genmap="-Wl,-M -Xlinker >"
8017 aros_target_nm_flags="-u"
8018 aros_flavour="emulation"
8021 solaris*)
8022 aros_target_arch="solaris"
8023 aros_target_family="unix"
8024 case "$target_cpu" in
8025 *i?86*)
8026 aros_target_cpu="i386"
8027 aros_object_format="elf_i386"
8028 aros_flavour="emulation"
8029 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8030 aros_default_wbdepth=8
8031 gcc_target_cpu="i386"
8033 *sparc*)
8034 aros_target_cpu="sparc"
8035 aros_object_format="elf_sparc"
8036 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8037 gcc_target_cpu="sparc"
8040 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8042 esac
8043 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8044 aros_flavour="emulation"
8047 morphos*)
8048 aros_target_arch="morphos"
8049 aros_shared_default="no"
8050 aros_target_cpu="ppc"
8051 aros_object_format="elf_ppc"
8052 aros_flavour="nativecompat"
8053 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8054 gcc_target_cpu="ppc"
8057 sam440)
8058 aros_target_arch="sam440"
8059 aros_shared_default="no"
8060 aros_target_cpu="ppc"
8061 aros_object_format="elf32ppc"
8062 aros_flavour="ppcnative"
8063 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8064 aros_kernel_ldflags=""
8065 aros_default_wbwidth=1024
8066 aros_default_wbheight=768
8067 aros_default_wbdepth=24
8068 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8069 gcc_target_cpu="powerpc"
8072 efika)
8073 aros_target_arch="efika"
8074 aros_shared_default="no"
8075 aros_target_cpu="arm"
8076 aros_object_format="armelf_linux_eabi"
8077 aros_flavour="standalone"
8078 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8079 aros_kernel_ldflags=""
8080 aros_default_wbwidth=1024
8081 aros_default_wbheight=600
8082 aros_arch_libs="-laeabi"
8083 gcc_default_cpu="armv7-a"
8084 gcc_default_fpu="vfpv3"
8085 gcc_default_float_abi="softfp"
8086 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8087 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8090 chrp)
8091 aros_target_arch="chrp"
8092 aros_shared_default="no"
8093 aros_target_cpu="ppc"
8094 aros_object_format="elf32ppc"
8095 aros_flavour="ppcnative"
8096 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8097 aros_kernel_ldflags=""
8098 aros_default_wbwidth=640
8099 aros_default_wbheight=480
8100 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8101 gcc_target_cpu="powerpc"
8102 case "$aros_target_variant" in
8103 efika)
8104 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8106 esac
8109 amiga*)
8110 aros_target_arch="amiga"
8111 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8112 aros_shared_default="no"
8114 case "$target_cpu" in
8115 *m68k*)
8116 # Check whether --enable-amigaos_compliance was given.
8117 if test "${enable_amigaos_compliance+set}" = set; then :
8118 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8121 aros_enable_mmu=no
8122 aros_target_cpu="m68k"
8123 aros_object_format="m68kelf"
8124 aros_flavour="standcompat"
8125 gcc_target_cpu="m68000"
8126 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8127 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8128 # Needed to get the correct multilib
8129 aros_config_ldflags="-${gcc_target_cpu}"
8130 aros_shared_ldflags="-${gcc_target_cpu}"
8131 aros_kernel_ldflags="-${gcc_target_cpu}"
8132 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8133 aros_target_strip_flags="-R.comment --strip-debug"
8134 aros_default_wbwidth=640
8135 aros_default_wbheight=256
8136 aros_default_wbdepth=2
8138 *ppc*)
8139 aros_cpu="ppc"
8140 aros_flavour="native"
8141 gcc_target_cpu="ppc"
8144 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8146 esac
8149 mingw*)
8150 aros_target_arch="mingw32"
8151 aros_shared_default="no"
8152 aros_flavour="emulation"
8153 aros_shared_cflags=""
8154 need_crosstools="yes"
8155 need_dlopen="no"
8156 rescomp="windres"
8157 case "$target_cpu" in
8158 *i?86*)
8159 aros_target_cpu="i386"
8160 aros_object_format="elf_i386"
8161 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8162 aros_default_wbdepth=8
8163 gcc_target_cpu="i386"
8165 kernel_tool_prefix="i386-mingw32-"
8167 *x86_64*)
8168 aros_target_cpu="x86_64"
8169 aros_object_format="elf_x86_64"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8171 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8172 aros_default_wbdepth=8
8173 kernel_tool_prefix="x86_64-w64-mingw32-"
8175 *arm*)
8176 aros_target_cpu="arm"
8177 aros_object_format="armelf_linux_eabi"
8178 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8179 aros_arch_libs="-laeabi"
8180 aros_default_wbdepth=8
8181 gcc_target_cpu="arm"
8182 gcc_default_float_abi="soft"
8183 kernel_tool_prefix="arm-mingw32ce-"
8184 aros_default_wbwidth=160
8185 aros_default_wbheight=160
8188 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8190 esac
8191 if test $host_os = "cygwin"; then
8192 aros_kernel_cflags="-mno-cygwin"
8195 pp*)
8196 aros_target_arch="pp"
8197 aros_shared_default="no"
8198 case "$target_cpu" in
8199 *m68k*)
8200 aros_target_cpu="m68k"
8201 aros_object_format="m68kelf"
8202 aros_flavour="palmnative"
8203 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8204 aros_default_wbwidth=160
8205 aros_default_wbheight=160
8206 aros_default_wbdepth=1
8207 aros_target_ar_flags="cru"
8208 aros_compiler_libs="-lgcc1"
8209 aros_shared_default=no
8210 aros_shared_cflags="-fpic"
8211 aros_shared_aflags=""
8212 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8213 aros_kernel_ldflags="-Wl,-rpath,./lib"
8214 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8215 aros_debug_aflags=""
8216 aros_debug_ldflags="$aros_symbols_debug"
8217 aros_mungwall_debug="0"
8218 aros_modules_debug="0"
8219 gcc_target_cpu="mc68000"
8220 ignore_undefined_symbols="-ius"
8223 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8225 esac
8228 mac*)
8229 aros_target_arch="mac"
8230 aros_shared_default="no"
8231 case "$target_cpu" in
8232 *m68k*)
8233 aros_target_cpu="m68k"
8234 aros_object_format="m68kelf"
8235 aros_flavour="mac68knative"
8236 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8237 aros_default_wbwidth=512
8238 aros_default_wbheight=384
8239 aros_default_wbdepth=8
8240 aros_target_ar_flags="cru"
8241 aros_compiler_libs="-lgcc1"
8242 aros_shared_default=no
8243 aros_shared_cflags="-fpic"
8244 aros_shared_aflags=""
8245 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8246 aros_kernel_ldflags="-Wl,-rpath,./lib"
8247 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8248 aros_debug_aflags=""
8249 aros_debug_ldflags="$aros_symbols_debug"
8250 aros_mungwall_debug="0"
8251 aros_modules_debug="0"
8252 gcc_target_cpu="mc68000"
8253 ignore_undefined_symbols="-ius"
8256 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8258 esac
8262 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8264 esac
8266 #-----------------------------------------------------------------------------
8267 crosstools_guess=yes
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8270 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8272 # Check whether --with-kernel-toolchain-prefix was given.
8273 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8274 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8278 $as_echo "$kernel_tool_prefix" >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8281 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8283 # Check whether --with-elf-toolchain-prefix was given.
8284 if test "${with_elf_toolchain_prefix+set}" = set; then :
8285 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8286 crosstools_guess=no
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8290 $as_echo "$elf_tool_prefix" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8293 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8295 # Check whether --with-aros-toolchain-prefix was given.
8296 if test "${with_aros_toolchain_prefix+set}" = set; then :
8297 withval=$with_aros_toolchain_prefix; aros_tool_prefix="$withval"
8298 crosstools_guess=no
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8302 $as_echo "$aros_tool_prefix" >&6; }
8304 #-----------------------------------------------------------------------------
8305 # Checking if we should build crosstools..
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8307 $as_echo_n "checking whether to build crosstools... " >&6; }
8308 # Check whether --enable-crosstools was given.
8309 if test "${enable_crosstools+set}" = set; then :
8310 enableval=$enable_crosstools; crosstools="$enableval"
8311 else
8312 crosstools="$crosstools_guess"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8316 $as_echo "$crosstools" >&6; }
8318 if test "${crosstools}" = "yes"; then
8319 if test "${crosstools_guess}" = "no"; then
8320 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8324 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8326 # Check whether --with-aros-toolchain-install was given.
8327 if test "${with_aros_toolchain_install+set}" = set; then :
8328 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8331 if test "x$aros_toolchain_install" = "x"; then
8332 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8333 else
8334 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8335 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8338 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8342 # Now process extra architecture-specific options.
8343 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8344 # as well as floating-point ABI.
8345 case "$aros_target_cpu" in
8346 arm)
8347 if test "$gcc_default_cpu" = ""; then
8348 gcc_default_cpu="armv6"
8350 if test "$gcc_default_fpu" = ""; then
8351 gcc_default_fpu="vfp"
8353 if test "$gcc_default_float_abi" = ""; then
8354 gcc_default_float_abi="softfp"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8358 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8360 # Check whether --with-cpu was given.
8361 if test "${with_cpu+set}" = set; then :
8362 withval=$with_cpu; aros_gcc_cpu="$withval"
8363 else
8364 aros_gcc_cpu=$gcc_default_cpu
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8368 $as_echo "$aros_gcc_cpu" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8371 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8373 # Check whether --with-fpu was given.
8374 if test "${with_fpu+set}" = set; then :
8375 withval=$with_fpu; aros_gcc_fpu="$withval"
8376 else
8377 aros_gcc_fpu=$gcc_default_fpu
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8381 $as_echo "$aros_gcc_fpu" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8384 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8386 # Check whether --with-float was given.
8387 if test "${with_float+set}" = set; then :
8388 withval=$with_float; aros_gcc_float_abi="$withval"
8389 else
8390 aros_gcc_float_abi=$gcc_default_float_abi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8394 $as_echo "$aros_gcc_float_abi" >&6; }
8396 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"
8397 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"
8399 esac
8401 # Some formats need custom ELF specs.
8402 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8403 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8404 elf_specs_in=config/${aros_object_format}-specs.in
8405 else
8406 elf_specs_in=config/elf-specs.in
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8410 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8412 # Check whether --with-aros-gcc was given.
8413 if test "${with_aros_gcc+set}" = set; then :
8414 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8415 else
8416 aros_gcc_version=""
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8420 $as_echo "$aros_gcc_version" >&6; }
8422 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8423 # Since we override specs, we may need to put these defines there
8424 if test "$gcc_target_cpu" != ""; then
8425 gcc_target_cpu="-D__${gcc_target_cpu}__"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8429 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8431 # Check whether --with-portssources was given.
8432 if test "${with_portssources+set}" = set; then :
8433 withval=$with_portssources; with_portssrcdir=$withval
8434 else
8435 with_portssrcdir="default"
8438 if test "$with_portssrcdir" = "default"; then
8439 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8440 else
8441 AROS_PORTSSRCDIR="$with_portssrcdir"
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8444 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8447 $as_echo_n "checking which bootloader to use... " >&6; }
8449 # Check whether --with-bootloader was given.
8450 if test "${with_bootloader+set}" = set; then :
8451 withval=$with_bootloader; target_bootloader=$withval
8452 else
8453 target_bootloader=$target_bootloader
8456 if test "$target_bootloader" = "none"; then
8457 aros_target_bootloader=""
8458 else
8459 aros_target_bootloader="$target_bootloader"
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8462 $as_echo "$target_bootloader" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8465 $as_echo_n "checking which icon-set to use... " >&6; }
8467 # Check whether --with-iconset was given.
8468 if test "${with_iconset+set}" = set; then :
8469 withval=$with_iconset; target_iconset=$withval
8470 else
8471 target_iconset="default"
8474 if test "$target_iconset" = "default"; then
8475 aros_target_iconset="Gorilla"
8476 target_iconset="default (Gorilla)"
8477 else
8478 aros_target_iconset="$target_iconset"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8481 $as_echo "$target_iconset" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8484 $as_echo_n "checking which GUI Theme to use... " >&6; }
8486 # Check whether --with-theme was given.
8487 if test "${with_theme+set}" = set; then :
8488 withval=$with_theme; target_guitheme=$withval
8489 else
8490 target_guitheme="default"
8493 if test "$target_guitheme" = "default"; then
8494 aros_target_guitheme="Ice"
8495 else
8496 aros_target_guitheme="$target_guitheme"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8499 $as_echo "$aros_target_guitheme" >&6; }
8501 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8502 # for target code)
8503 cross_compiling=no
8504 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8505 # If host = target CPU, let's try to use the
8506 # host's toolchains if no others were requested
8507 if test "$kernel_tool_prefix" = "none" ; then
8508 kernel_tool_prefix=""
8510 else
8511 cross_compiling=yes
8514 if test "$aros_host_cpu" == "x86_64" ; then
8515 if test "$aros_target_cpu" == "i386" ; then
8516 if test "$aros_target_arch" != "mingw32"; then
8517 cross_compiling=no
8518 kernel_tool_prefix=""
8523 if test "$aros_host_arch" == "darwin" ; then
8524 if test "$aros_target_arch" != "darwin" ; then
8525 cross_compiling=yes
8526 else
8527 cross_compiling=no
8528 kernel_tool_prefix=""
8532 if test "$aros_host_arch" == "mingw32" ; then
8533 if test "$aros_target_arch" != "mingw32" ; then
8534 cross_compiling=yes
8535 else
8536 cross_compiling=no
8537 kernel_tool_prefix=""
8541 #######################################################################
8542 ## Compute what toolchains to use, and their paths ##
8543 #######################################################################
8545 # This takes, as input:
8546 # crosstools {yes,no}
8547 # aros_gcc_version {default,[version]}
8548 # kernel_tool_prefix {none,[some-arch-os-]}
8549 # aros_tool_prefix ${target_cpu}-aros-
8551 # The output is
8552 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8553 # Where the 'kernel' binaries are located
8554 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8555 # Where the 'target' binaries are located
8556 # (not the symlink farm - that is aros_target_*!)
8558 # The rules are:
8559 # if crosstools then
8560 # if kernel_tools_prefix = "no-kernel-prefix-"
8561 # aros_kernel_* = crosstools cc paths
8562 # aros_kernel_cc = elf cc wrapper around crosstools cc
8563 # else
8564 # VALIDATE(${kernel_tools_prefix}*)
8565 # aros_kernel_* = ${kernel_tools_prefix}*
8566 # if ${kernel_tools_prefix}cc is an AROS gcc
8567 # aros_kernel_cc = ${kernel_tools_prefix}cc
8568 # else
8569 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8570 # fi
8571 # fi
8573 # orig_target_* = aros built crosstools
8574 # orig_target_cc = elf cc wrapper around crosstools cc
8575 # else
8576 # VALIDATE(${kernel_tools_prefix}*)
8578 # orig_target_* = aros_kernel_*
8579 # if aros_kernel_cc is an AROS gcc
8580 # orig_target_cc = aros_kernel_cc
8581 # else
8582 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8583 # fi
8584 # fi
8586 target_tool_prefix="${target_cpu}-aros-"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8589 $as_echo_n "checking which kernel tools... " >&6; }
8590 if test "$kernel_tool_prefix" = "none" ; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: target" >&5
8592 $as_echo "target" >&6; };
8593 # We are building AROS crosstools, and no kernel
8594 # tools specified - assume target tools == kernel tools
8595 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8596 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8597 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8598 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8599 aros_kernel_ld="${tmp_tool_prefix}ld"
8600 aros_kernel_as="${tmp_tool_prefix}as"
8601 aros_kernel_ar="${tmp_tool_prefix}ar"
8602 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8603 aros_kernel_nm="${tmp_tool_prefix}nm"
8604 aros_kernel_strip="${tmp_tool_prefix}strip"
8605 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8606 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8609 $as_echo "$kernel_tool_prefix" >&6; };
8610 # Kernel tools required - find them
8611 # Note that 'normally', aros_kernel_* overrides will
8612 # empty, unless specified in the per-arch sections above.
8614 if test "$aros_kernel_cpp" = ""; then
8615 if test "$cross_compiling" = "yes" ; then
8616 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8617 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 case $aros_kernel_cpp in
8624 [\\/]* | ?:[\\/]*)
8625 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8639 done
8640 done
8641 IFS=$as_save_IFS
8644 esac
8646 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8647 if test -n "$aros_kernel_cpp"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8649 $as_echo "$aros_kernel_cpp" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8656 else
8657 if test "$GCC" = "yes"; then
8658 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8659 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8660 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 case $aros_kernel_cpp in
8667 [\\/]* | ?:[\\/]*)
8668 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in `dirname $aros_gcc_cpp`
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8682 done
8683 done
8684 IFS=$as_save_IFS
8687 esac
8689 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8690 if test -n "$aros_kernel_cpp"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8692 $as_echo "$aros_kernel_cpp" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8700 if test "$aros_kernel_cpp" = ""; then
8701 # Extract the first word of "cpp", so it can be a program name with args.
8702 set dummy cpp; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 case $aros_kernel_cpp in
8709 [\\/]* | ?:[\\/]*)
8710 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8724 done
8725 done
8726 IFS=$as_save_IFS
8729 esac
8731 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8732 if test -n "$aros_kernel_cpp"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8734 $as_echo "$aros_kernel_cpp" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8743 else
8744 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8745 set dummy $aros_kernel_cpp; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 case $aros_kernel_cpp in
8752 [\\/]* | ?:[\\/]*)
8753 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8763 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8767 done
8768 done
8769 IFS=$as_save_IFS
8772 esac
8774 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8775 if test -n "$aros_kernel_cpp"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8777 $as_echo "$aros_kernel_cpp" >&6; }
8778 else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8786 if test "$aros_kernel_cpp" = ""; then
8787 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8789 if test "x$aros_kernel_cc" = "x"; then
8790 aros_kernel_cc=${kernel_tool_prefix}gcc
8793 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8794 if test "$cross_compiling" = "yes" ; then
8795 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8796 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 case $aros_kernel_cc in
8803 [\\/]* | ?:[\\/]*)
8804 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8818 done
8819 done
8820 IFS=$as_save_IFS
8823 esac
8825 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8826 if test -n "$aros_kernel_cc"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8828 $as_echo "$aros_kernel_cc" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8835 else
8836 if test "$GCC" = "yes"; then
8837 aros_gcc_cc=`$CC -print-prog-name=cc`
8838 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8839 set dummy `basename $aros_gcc_cc`; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 case $aros_kernel_cc in
8846 [\\/]* | ?:[\\/]*)
8847 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in `dirname $aros_gcc_cc`
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8857 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8861 done
8862 done
8863 IFS=$as_save_IFS
8866 esac
8868 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8869 if test -n "$aros_kernel_cc"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8871 $as_echo "$aros_kernel_cc" >&6; }
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8879 if test "$aros_kernel_cc" = ""; then
8880 # Extract the first word of "cc", so it can be a program name with args.
8881 set dummy cc; ac_word=$2
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883 $as_echo_n "checking for $ac_word... " >&6; }
8884 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 case $aros_kernel_cc in
8888 [\\/]* | ?:[\\/]*)
8889 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8903 done
8904 done
8905 IFS=$as_save_IFS
8908 esac
8910 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8911 if test -n "$aros_kernel_cc"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8913 $as_echo "$aros_kernel_cc" >&6; }
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8922 else
8923 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8924 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 case $aros_kernel_cc in
8931 [\\/]* | ?:[\\/]*)
8932 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8942 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8946 done
8947 done
8948 IFS=$as_save_IFS
8951 esac
8953 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8954 if test -n "$aros_kernel_cc"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8956 $as_echo "$aros_kernel_cc" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8965 if test "$aros_kernel_cc" = ""; then
8966 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8968 if test "x$aros_kernel_cxx" = "x"; then
8969 aros_kernel_cxx=${kernel_tool_prefix}g++
8972 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8973 if test "$cross_compiling" = "yes" ; then
8974 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8975 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 case $aros_kernel_cxx in
8982 [\\/]* | ?:[\\/]*)
8983 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9002 esac
9004 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9005 if test -n "$aros_kernel_cxx"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9007 $as_echo "$aros_kernel_cxx" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9014 else
9015 if test "$GCC" = "yes"; then
9016 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9017 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9018 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 case $aros_kernel_cxx in
9025 [\\/]* | ?:[\\/]*)
9026 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in `dirname $aros_gcc_cxx`
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9040 done
9041 done
9042 IFS=$as_save_IFS
9045 esac
9047 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9048 if test -n "$aros_kernel_cxx"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9050 $as_echo "$aros_kernel_cxx" >&6; }
9051 else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9058 if test "$aros_kernel_cxx" = ""; then
9059 # Extract the first word of "cxx", so it can be a program name with args.
9060 set dummy cxx; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 case $aros_kernel_cxx in
9067 [\\/]* | ?:[\\/]*)
9068 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9082 done
9083 done
9084 IFS=$as_save_IFS
9087 esac
9089 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9090 if test -n "$aros_kernel_cxx"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9092 $as_echo "$aros_kernel_cxx" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9101 else
9102 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9103 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 case $aros_kernel_cxx in
9110 [\\/]* | ?:[\\/]*)
9111 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9121 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 break 2
9125 done
9126 done
9127 IFS=$as_save_IFS
9130 esac
9132 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9133 if test -n "$aros_kernel_cxx"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9135 $as_echo "$aros_kernel_cxx" >&6; }
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9144 # If it's set, make sure it's really there
9145 if test "x$aros_kernel_cxx" != "x" ; then
9146 if test "$aros_kernel_cxx" = ""; then
9147 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9151 if test "$aros_kernel_ld" = ""; then
9152 if test "$cross_compiling" = "yes" ; then
9153 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9154 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 case $aros_kernel_ld in
9161 [\\/]* | ?:[\\/]*)
9162 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9181 esac
9183 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9184 if test -n "$aros_kernel_ld"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9186 $as_echo "$aros_kernel_ld" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9193 else
9194 if test "$GCC" = "yes"; then
9195 aros_gcc_ld=`$CC -print-prog-name=ld`
9196 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9197 set dummy `basename $aros_gcc_ld`; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 case $aros_kernel_ld in
9204 [\\/]* | ?:[\\/]*)
9205 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in `dirname $aros_gcc_ld`
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9224 esac
9226 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9227 if test -n "$aros_kernel_ld"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9229 $as_echo "$aros_kernel_ld" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9237 if test "$aros_kernel_ld" = ""; then
9238 # Extract the first word of "ld", so it can be a program name with args.
9239 set dummy ld; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 case $aros_kernel_ld in
9246 [\\/]* | ?:[\\/]*)
9247 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9261 done
9262 done
9263 IFS=$as_save_IFS
9266 esac
9268 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9269 if test -n "$aros_kernel_ld"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9271 $as_echo "$aros_kernel_ld" >&6; }
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9280 else
9281 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9282 set dummy $aros_kernel_ld; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 case $aros_kernel_ld in
9289 [\\/]* | ?:[\\/]*)
9290 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 for as_dir in $PATH
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9300 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9302 break 2
9304 done
9305 done
9306 IFS=$as_save_IFS
9309 esac
9311 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9312 if test -n "$aros_kernel_ld"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9314 $as_echo "$aros_kernel_ld" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9323 if test "$aros_kernel_ld" = ""; then
9324 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9327 if test "$aros_kernel_as" = ""; then
9328 if test "$cross_compiling" = "yes" ; then
9329 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9330 set dummy ${kernel_tool_prefix}as; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if ${ac_cv_path_aros_kernel_as+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 case $aros_kernel_as in
9337 [\\/]* | ?:[\\/]*)
9338 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9352 done
9353 done
9354 IFS=$as_save_IFS
9357 esac
9359 aros_kernel_as=$ac_cv_path_aros_kernel_as
9360 if test -n "$aros_kernel_as"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9362 $as_echo "$aros_kernel_as" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9369 else
9370 if test "$GCC" = "yes"; then
9371 aros_gcc_as=`$CC -print-prog-name=as`
9372 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9373 set dummy `basename $aros_gcc_as`; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if ${ac_cv_path_aros_kernel_as+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 case $aros_kernel_as in
9380 [\\/]* | ?:[\\/]*)
9381 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in `dirname $aros_gcc_as`
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9395 done
9396 done
9397 IFS=$as_save_IFS
9400 esac
9402 aros_kernel_as=$ac_cv_path_aros_kernel_as
9403 if test -n "$aros_kernel_as"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9405 $as_echo "$aros_kernel_as" >&6; }
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9413 if test "$aros_kernel_as" = ""; then
9414 # Extract the first word of "as", so it can be a program name with args.
9415 set dummy as; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if ${ac_cv_path_aros_kernel_as+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 case $aros_kernel_as in
9422 [\\/]* | ?:[\\/]*)
9423 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9442 esac
9444 aros_kernel_as=$ac_cv_path_aros_kernel_as
9445 if test -n "$aros_kernel_as"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9447 $as_echo "$aros_kernel_as" >&6; }
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9456 else
9457 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9458 set dummy $aros_kernel_as; ac_word=$2
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9460 $as_echo_n "checking for $ac_word... " >&6; }
9461 if ${ac_cv_path_aros_kernel_as+:} false; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 case $aros_kernel_as in
9465 [\\/]* | ?:[\\/]*)
9466 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9480 done
9481 done
9482 IFS=$as_save_IFS
9485 esac
9487 aros_kernel_as=$ac_cv_path_aros_kernel_as
9488 if test -n "$aros_kernel_as"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9490 $as_echo "$aros_kernel_as" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9499 if test "$aros_kernel_as" = ""; then
9500 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9503 if test "$aros_kernel_ar" = ""; then
9504 if test "$cross_compiling" = "yes" ; then
9505 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9506 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 case $aros_kernel_ar in
9513 [\\/]* | ?:[\\/]*)
9514 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9528 done
9529 done
9530 IFS=$as_save_IFS
9533 esac
9535 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9536 if test -n "$aros_kernel_ar"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9538 $as_echo "$aros_kernel_ar" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9545 else
9546 if test "$GCC" = "yes"; then
9547 aros_gcc_ar=`$CC -print-prog-name=ar`
9548 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9549 set dummy `basename $aros_gcc_ar`; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 case $aros_kernel_ar in
9556 [\\/]* | ?:[\\/]*)
9557 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in `dirname $aros_gcc_ar`
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9571 done
9572 done
9573 IFS=$as_save_IFS
9576 esac
9578 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9579 if test -n "$aros_kernel_ar"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9581 $as_echo "$aros_kernel_ar" >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9589 if test "$aros_kernel_ar" = ""; then
9590 # Extract the first word of "ar", so it can be a program name with args.
9591 set dummy ar; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 case $aros_kernel_ar in
9598 [\\/]* | ?:[\\/]*)
9599 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $PATH
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9613 done
9614 done
9615 IFS=$as_save_IFS
9618 esac
9620 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9621 if test -n "$aros_kernel_ar"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9623 $as_echo "$aros_kernel_ar" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9632 else
9633 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9634 set dummy $aros_kernel_ar; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 case $aros_kernel_ar in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in $PATH
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9656 done
9657 done
9658 IFS=$as_save_IFS
9661 esac
9663 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9664 if test -n "$aros_kernel_ar"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9666 $as_echo "$aros_kernel_ar" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9675 if test "$aros_kernel_ar" = ""; then
9676 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9679 if test "$aros_kernel_ranlib" = ""; then
9680 if test "$cross_compiling" = "yes" ; then
9681 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9682 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 case $aros_kernel_ranlib in
9689 [\\/]* | ?:[\\/]*)
9690 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9704 done
9705 done
9706 IFS=$as_save_IFS
9709 esac
9711 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9712 if test -n "$aros_kernel_ranlib"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9714 $as_echo "$aros_kernel_ranlib" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9721 else
9722 if test "$GCC" = "yes"; then
9723 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9724 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9725 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 case $aros_kernel_ranlib in
9732 [\\/]* | ?:[\\/]*)
9733 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in `dirname $aros_gcc_ranlib`
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9743 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9747 done
9748 done
9749 IFS=$as_save_IFS
9752 esac
9754 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9755 if test -n "$aros_kernel_ranlib"; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9757 $as_echo "$aros_kernel_ranlib" >&6; }
9758 else
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9765 if test "$aros_kernel_ranlib" = ""; then
9766 # Extract the first word of "ranlib", so it can be a program name with args.
9767 set dummy ranlib; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 case $aros_kernel_ranlib in
9774 [\\/]* | ?:[\\/]*)
9775 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9785 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9789 done
9790 done
9791 IFS=$as_save_IFS
9794 esac
9796 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9797 if test -n "$aros_kernel_ranlib"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9799 $as_echo "$aros_kernel_ranlib" >&6; }
9800 else
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9808 else
9809 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9810 set dummy $aros_kernel_ranlib; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 case $aros_kernel_ranlib in
9817 [\\/]* | ?:[\\/]*)
9818 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9832 done
9833 done
9834 IFS=$as_save_IFS
9837 esac
9839 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9840 if test -n "$aros_kernel_ranlib"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9842 $as_echo "$aros_kernel_ranlib" >&6; }
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9851 if test "$aros_kernel_ranlib" = ""; then
9852 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9855 if test "$aros_kernel_nm" = ""; then
9856 if test "$cross_compiling" = "yes" ; then
9857 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9858 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860 $as_echo_n "checking for $ac_word... " >&6; }
9861 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 case $aros_kernel_nm in
9865 [\\/]* | ?:[\\/]*)
9866 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9880 done
9881 done
9882 IFS=$as_save_IFS
9885 esac
9887 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9888 if test -n "$aros_kernel_nm"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9890 $as_echo "$aros_kernel_nm" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9897 else
9898 if test "$GCC" = "yes"; then
9899 aros_gcc_nm=`$CC -print-prog-name=nm`
9900 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9901 set dummy `basename $aros_gcc_nm`; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 case $aros_kernel_nm in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in `dirname $aros_gcc_nm`
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9923 done
9924 done
9925 IFS=$as_save_IFS
9928 esac
9930 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9931 if test -n "$aros_kernel_nm"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9933 $as_echo "$aros_kernel_nm" >&6; }
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9941 if test "$aros_kernel_nm" = ""; then
9942 # Extract the first word of "nm", so it can be a program name with args.
9943 set dummy nm; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 case $aros_kernel_nm in
9950 [\\/]* | ?:[\\/]*)
9951 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955 for as_dir in $PATH
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9961 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9965 done
9966 done
9967 IFS=$as_save_IFS
9970 esac
9972 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9973 if test -n "$aros_kernel_nm"; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9975 $as_echo "$aros_kernel_nm" >&6; }
9976 else
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9984 else
9985 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9986 set dummy $aros_kernel_nm; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 case $aros_kernel_nm in
9993 [\\/]* | ?:[\\/]*)
9994 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10004 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10008 done
10009 done
10010 IFS=$as_save_IFS
10013 esac
10015 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10016 if test -n "$aros_kernel_nm"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10018 $as_echo "$aros_kernel_nm" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10027 if test "$aros_kernel_nm" = ""; then
10028 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10031 if test "$aros_kernel_strip" = ""; then
10032 if test "$cross_compiling" = "yes" ; then
10033 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10034 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 case $aros_kernel_strip in
10041 [\\/]* | ?:[\\/]*)
10042 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10052 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 break 2
10056 done
10057 done
10058 IFS=$as_save_IFS
10061 esac
10063 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10064 if test -n "$aros_kernel_strip"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10066 $as_echo "$aros_kernel_strip" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10073 else
10074 if test "$GCC" = "yes"; then
10075 aros_gcc_strip=`$CC -print-prog-name=strip`
10076 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10077 set dummy `basename $aros_gcc_strip`; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 case $aros_kernel_strip in
10084 [\\/]* | ?:[\\/]*)
10085 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in `dirname $aros_gcc_strip`
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10099 done
10100 done
10101 IFS=$as_save_IFS
10104 esac
10106 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10107 if test -n "$aros_kernel_strip"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10109 $as_echo "$aros_kernel_strip" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10117 if test "$aros_kernel_strip" = ""; then
10118 # Extract the first word of "strip", so it can be a program name with args.
10119 set dummy strip; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 case $aros_kernel_strip in
10126 [\\/]* | ?:[\\/]*)
10127 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10137 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10141 done
10142 done
10143 IFS=$as_save_IFS
10146 esac
10148 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10149 if test -n "$aros_kernel_strip"; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10151 $as_echo "$aros_kernel_strip" >&6; }
10152 else
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10160 else
10161 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10162 set dummy $aros_kernel_strip; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 case $aros_kernel_strip in
10169 [\\/]* | ?:[\\/]*)
10170 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10180 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 break 2
10184 done
10185 done
10186 IFS=$as_save_IFS
10189 esac
10191 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10192 if test -n "$aros_kernel_strip"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10194 $as_echo "$aros_kernel_strip" >&6; }
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10203 if test "$aros_kernel_strip" = ""; then
10204 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10207 # Objcopy and objdump are not required for the kernel
10208 # toolchain on many architectures.
10209 # So we'll look for them, but not make them strictly required.
10211 if test "$aros_kernel_objcopy" = ""; then
10212 if test "$cross_compiling" = "yes" ; then
10213 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10214 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216 $as_echo_n "checking for $ac_word... " >&6; }
10217 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 case $aros_kernel_objcopy in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10236 done
10237 done
10238 IFS=$as_save_IFS
10241 esac
10243 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10244 if test -n "$aros_kernel_objcopy"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10246 $as_echo "$aros_kernel_objcopy" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10253 else
10254 if test "$GCC" = "yes"; then
10255 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10256 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10257 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 case $aros_kernel_objcopy in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in `dirname $aros_gcc_objcopy`
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10284 esac
10286 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10287 if test -n "$aros_kernel_objcopy"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10289 $as_echo "$aros_kernel_objcopy" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10297 if test "$aros_kernel_objcopy" = ""; then
10298 # Extract the first word of "objcopy", so it can be a program name with args.
10299 set dummy objcopy; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 case $aros_kernel_objcopy in
10306 [\\/]* | ?:[\\/]*)
10307 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10321 done
10322 done
10323 IFS=$as_save_IFS
10326 esac
10328 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10329 if test -n "$aros_kernel_objcopy"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10331 $as_echo "$aros_kernel_objcopy" >&6; }
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10340 else
10341 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10342 set dummy $aros_kernel_objcopy; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 case $aros_kernel_objcopy in
10349 [\\/]* | ?:[\\/]*)
10350 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354 for as_dir in $PATH
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
10358 for ac_exec_ext in '' $ac_executable_extensions; do
10359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10360 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 break 2
10364 done
10365 done
10366 IFS=$as_save_IFS
10369 esac
10371 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10372 if test -n "$aros_kernel_objcopy"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10374 $as_echo "$aros_kernel_objcopy" >&6; }
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10384 if test "$aros_kernel_objdump" = ""; then
10385 if test "$cross_compiling" = "yes" ; then
10386 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10387 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 case $aros_kernel_objdump in
10394 [\\/]* | ?:[\\/]*)
10395 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10405 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 break 2
10409 done
10410 done
10411 IFS=$as_save_IFS
10414 esac
10416 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10417 if test -n "$aros_kernel_objdump"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10419 $as_echo "$aros_kernel_objdump" >&6; }
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10426 else
10427 if test "$GCC" = "yes"; then
10428 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10429 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10430 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 case $aros_kernel_objdump in
10437 [\\/]* | ?:[\\/]*)
10438 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in `dirname $aros_gcc_objdump`
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450 break 2
10452 done
10453 done
10454 IFS=$as_save_IFS
10457 esac
10459 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10460 if test -n "$aros_kernel_objdump"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10462 $as_echo "$aros_kernel_objdump" >&6; }
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10470 if test "$aros_kernel_objdump" = ""; then
10471 # Extract the first word of "objdump", so it can be a program name with args.
10472 set dummy objdump; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 case $aros_kernel_objdump in
10479 [\\/]* | ?:[\\/]*)
10480 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10496 IFS=$as_save_IFS
10499 esac
10501 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10502 if test -n "$aros_kernel_objdump"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10504 $as_echo "$aros_kernel_objdump" >&6; }
10505 else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10513 else
10514 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10515 set dummy $aros_kernel_objdump; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 case $aros_kernel_objdump in
10522 [\\/]* | ?:[\\/]*)
10523 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10537 done
10538 done
10539 IFS=$as_save_IFS
10542 esac
10544 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10545 if test -n "$aros_kernel_objdump"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10547 $as_echo "$aros_kernel_objdump" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10556 if test "x${crosstools}" != "xyes" ; then
10557 if test "$aros_kernel_objcopy" = ""; then
10558 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10560 if test "$aros_kernel_objdump" = ""; then
10561 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10567 $as_echo_n "checking which target tools to use... " >&6; }
10568 if test "$crosstools" = "yes"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10570 $as_echo "$target_tool_prefix" >&6; }
10571 # We are are building AROS crosstools
10572 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10573 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10574 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10575 orig_target_cpp="${tmp_tool_prefix}cpp"
10576 orig_target_ld="${tmp_tool_prefix}ld"
10577 orig_target_as="${tmp_tool_prefix}as"
10578 orig_target_ar="${tmp_tool_prefix}ar"
10579 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10580 orig_target_nm="${tmp_tool_prefix}nm"
10581 orig_target_strip="${tmp_tool_prefix}strip"
10582 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10583 orig_target_objdump="${tmp_tool_prefix}objdump"
10584 else
10585 # Determine whether AROS or ELF tools should be used
10586 if test "$aros_tool_prefix" = "none"; then
10587 aros_tool_prefix="${elf_tool_prefix}"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10591 $as_echo "$aros_tool_prefix" >&6; }
10592 # We are *not* building AROS crosstools - use the AROS or ELF tools
10594 if test "${aros_tool_prefix}cpp" = ""; then
10595 if test "$cross_compiling" = "yes" ; then
10596 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10597 set dummy ${target_tool_prefix}cpp; ac_word=$2
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599 $as_echo_n "checking for $ac_word... " >&6; }
10600 if ${ac_cv_path_orig_target_cpp+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 case $orig_target_cpp in
10604 [\\/]* | ?:[\\/]*)
10605 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10619 done
10620 done
10621 IFS=$as_save_IFS
10624 esac
10626 orig_target_cpp=$ac_cv_path_orig_target_cpp
10627 if test -n "$orig_target_cpp"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10629 $as_echo "$orig_target_cpp" >&6; }
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10636 else
10637 if test "$GCC" = "yes"; then
10638 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10639 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10640 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if ${ac_cv_path_orig_target_cpp+:} false; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 case $orig_target_cpp in
10647 [\\/]* | ?:[\\/]*)
10648 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in `dirname $aros_gcc_cpp`
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10662 done
10663 done
10664 IFS=$as_save_IFS
10667 esac
10669 orig_target_cpp=$ac_cv_path_orig_target_cpp
10670 if test -n "$orig_target_cpp"; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10672 $as_echo "$orig_target_cpp" >&6; }
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10680 if test "$orig_target_cpp" = ""; then
10681 # Extract the first word of "cpp", so it can be a program name with args.
10682 set dummy cpp; ac_word=$2
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684 $as_echo_n "checking for $ac_word... " >&6; }
10685 if ${ac_cv_path_orig_target_cpp+:} false; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 case $orig_target_cpp in
10689 [\\/]* | ?:[\\/]*)
10690 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10696 IFS=$as_save_IFS
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10700 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 break 2
10704 done
10705 done
10706 IFS=$as_save_IFS
10709 esac
10711 orig_target_cpp=$ac_cv_path_orig_target_cpp
10712 if test -n "$orig_target_cpp"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10714 $as_echo "$orig_target_cpp" >&6; }
10715 else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10723 else
10724 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10725 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10727 $as_echo_n "checking for $ac_word... " >&6; }
10728 if ${ac_cv_path_orig_target_cpp+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 case $orig_target_cpp in
10732 [\\/]* | ?:[\\/]*)
10733 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10747 done
10748 done
10749 IFS=$as_save_IFS
10752 esac
10754 orig_target_cpp=$ac_cv_path_orig_target_cpp
10755 if test -n "$orig_target_cpp"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10757 $as_echo "$orig_target_cpp" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10766 if test "$orig_target_cpp" = ""; then
10767 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10770 if test "${aros_tool_prefix}gcc" = ""; then
10771 if test "$cross_compiling" = "yes" ; then
10772 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10773 set dummy ${target_tool_prefix}gcc; ac_word=$2
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775 $as_echo_n "checking for $ac_word... " >&6; }
10776 if ${ac_cv_path_orig_target_cc+:} false; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 case $orig_target_cc in
10780 [\\/]* | ?:[\\/]*)
10781 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10791 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10795 done
10796 done
10797 IFS=$as_save_IFS
10800 esac
10802 orig_target_cc=$ac_cv_path_orig_target_cc
10803 if test -n "$orig_target_cc"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10805 $as_echo "$orig_target_cc" >&6; }
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10812 else
10813 if test "$GCC" = "yes"; then
10814 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10815 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10816 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_path_orig_target_cc+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 case $orig_target_cc in
10823 [\\/]* | ?:[\\/]*)
10824 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in `dirname $aros_gcc_gcc`
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10838 done
10839 done
10840 IFS=$as_save_IFS
10843 esac
10845 orig_target_cc=$ac_cv_path_orig_target_cc
10846 if test -n "$orig_target_cc"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10848 $as_echo "$orig_target_cc" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10856 if test "$orig_target_cc" = ""; then
10857 # Extract the first word of "gcc", so it can be a program name with args.
10858 set dummy gcc; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if ${ac_cv_path_orig_target_cc+:} false; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 case $orig_target_cc in
10865 [\\/]* | ?:[\\/]*)
10866 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10872 IFS=$as_save_IFS
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10876 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878 break 2
10880 done
10881 done
10882 IFS=$as_save_IFS
10885 esac
10887 orig_target_cc=$ac_cv_path_orig_target_cc
10888 if test -n "$orig_target_cc"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10890 $as_echo "$orig_target_cc" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10899 else
10900 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10901 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if ${ac_cv_path_orig_target_cc+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 case $orig_target_cc in
10908 [\\/]* | ?:[\\/]*)
10909 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10923 done
10924 done
10925 IFS=$as_save_IFS
10928 esac
10930 orig_target_cc=$ac_cv_path_orig_target_cc
10931 if test -n "$orig_target_cc"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10933 $as_echo "$orig_target_cc" >&6; }
10934 else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; }
10942 if test "$orig_target_cc" = ""; then
10943 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10945 if test "x$orig_target_cxx" != "x" ; then
10947 if test "${aros_tool_prefix}g++" = ""; then
10948 if test "$cross_compiling" = "yes" ; then
10949 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
10950 set dummy ${target_tool_prefix}g++; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952 $as_echo_n "checking for $ac_word... " >&6; }
10953 if ${ac_cv_path_orig_target_cxx+:} false; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 case $orig_target_cxx in
10957 [\\/]* | ?:[\\/]*)
10958 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10968 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 break 2
10972 done
10973 done
10974 IFS=$as_save_IFS
10977 esac
10979 orig_target_cxx=$ac_cv_path_orig_target_cxx
10980 if test -n "$orig_target_cxx"; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
10982 $as_echo "$orig_target_cxx" >&6; }
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10989 else
10990 if test "$GCC" = "yes"; then
10991 aros_gcc_g++=`$CC -print-prog-name=g++`
10992 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
10993 set dummy `basename $aros_gcc_g++`; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_path_orig_target_cxx+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 case $orig_target_cxx in
11000 [\\/]* | ?:[\\/]*)
11001 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in `dirname $aros_gcc_g++`
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11011 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11015 done
11016 done
11017 IFS=$as_save_IFS
11020 esac
11022 orig_target_cxx=$ac_cv_path_orig_target_cxx
11023 if test -n "$orig_target_cxx"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11025 $as_echo "$orig_target_cxx" >&6; }
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11033 if test "$orig_target_cxx" = ""; then
11034 # Extract the first word of "g++", so it can be a program name with args.
11035 set dummy g++; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_orig_target_cxx+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 case $orig_target_cxx in
11042 [\\/]* | ?:[\\/]*)
11043 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11053 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11057 done
11058 done
11059 IFS=$as_save_IFS
11062 esac
11064 orig_target_cxx=$ac_cv_path_orig_target_cxx
11065 if test -n "$orig_target_cxx"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11067 $as_echo "$orig_target_cxx" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11076 else
11077 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11078 set dummy ${aros_tool_prefix}g++; ac_word=$2
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11080 $as_echo_n "checking for $ac_word... " >&6; }
11081 if ${ac_cv_path_orig_target_cxx+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 case $orig_target_cxx in
11085 [\\/]* | ?:[\\/]*)
11086 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090 for as_dir in $PATH
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11096 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11100 done
11101 done
11102 IFS=$as_save_IFS
11105 esac
11107 orig_target_cxx=$ac_cv_path_orig_target_cxx
11108 if test -n "$orig_target_cxx"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11110 $as_echo "$orig_target_cxx" >&6; }
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11119 if test "$orig_target_cxx" = ""; then
11120 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11124 if test "${aros_tool_prefix}ld" = ""; then
11125 if test "$cross_compiling" = "yes" ; then
11126 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11127 set dummy ${target_tool_prefix}gcc; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_orig_target_ld+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $orig_target_ld in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11154 esac
11156 orig_target_ld=$ac_cv_path_orig_target_ld
11157 if test -n "$orig_target_ld"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11159 $as_echo "$orig_target_ld" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 else
11167 if test "$GCC" = "yes"; then
11168 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11169 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11170 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if ${ac_cv_path_orig_target_ld+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $orig_target_ld in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in `dirname $aros_gcc_gcc`
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11192 done
11193 done
11194 IFS=$as_save_IFS
11197 esac
11199 orig_target_ld=$ac_cv_path_orig_target_ld
11200 if test -n "$orig_target_ld"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11202 $as_echo "$orig_target_ld" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11210 if test "$orig_target_ld" = ""; then
11211 # Extract the first word of "gcc", so it can be a program name with args.
11212 set dummy gcc; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if ${ac_cv_path_orig_target_ld+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 case $orig_target_ld in
11219 [\\/]* | ?:[\\/]*)
11220 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11234 done
11235 done
11236 IFS=$as_save_IFS
11239 esac
11241 orig_target_ld=$ac_cv_path_orig_target_ld
11242 if test -n "$orig_target_ld"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11244 $as_echo "$orig_target_ld" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11253 else
11254 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11255 set dummy ${aros_tool_prefix}ld; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if ${ac_cv_path_orig_target_ld+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 case $orig_target_ld in
11262 [\\/]* | ?:[\\/]*)
11263 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11273 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11277 done
11278 done
11279 IFS=$as_save_IFS
11282 esac
11284 orig_target_ld=$ac_cv_path_orig_target_ld
11285 if test -n "$orig_target_ld"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11287 $as_echo "$orig_target_ld" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11296 if test "$orig_target_ld" = ""; then
11297 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11300 if test "${aros_tool_prefix}as" = ""; then
11301 if test "$cross_compiling" = "yes" ; then
11302 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11303 set dummy ${target_tool_prefix}as; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if ${ac_cv_path_orig_target_as+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 case $orig_target_as in
11310 [\\/]* | ?:[\\/]*)
11311 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11325 done
11326 done
11327 IFS=$as_save_IFS
11330 esac
11332 orig_target_as=$ac_cv_path_orig_target_as
11333 if test -n "$orig_target_as"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11335 $as_echo "$orig_target_as" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11342 else
11343 if test "$GCC" = "yes"; then
11344 aros_gcc_as=`$CC -print-prog-name=as`
11345 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11346 set dummy `basename $aros_gcc_as`; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_path_orig_target_as+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 case $orig_target_as in
11353 [\\/]* | ?:[\\/]*)
11354 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in `dirname $aros_gcc_as`
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11364 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11368 done
11369 done
11370 IFS=$as_save_IFS
11373 esac
11375 orig_target_as=$ac_cv_path_orig_target_as
11376 if test -n "$orig_target_as"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11378 $as_echo "$orig_target_as" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11386 if test "$orig_target_as" = ""; then
11387 # Extract the first word of "as", so it can be a program name with args.
11388 set dummy as; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_path_orig_target_as+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 case $orig_target_as in
11395 [\\/]* | ?:[\\/]*)
11396 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11406 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11410 done
11411 done
11412 IFS=$as_save_IFS
11415 esac
11417 orig_target_as=$ac_cv_path_orig_target_as
11418 if test -n "$orig_target_as"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11420 $as_echo "$orig_target_as" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11429 else
11430 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11431 set dummy ${aros_tool_prefix}as; ac_word=$2
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 $as_echo_n "checking for $ac_word... " >&6; }
11434 if ${ac_cv_path_orig_target_as+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 case $orig_target_as in
11438 [\\/]* | ?:[\\/]*)
11439 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11453 done
11454 done
11455 IFS=$as_save_IFS
11458 esac
11460 orig_target_as=$ac_cv_path_orig_target_as
11461 if test -n "$orig_target_as"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11463 $as_echo "$orig_target_as" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11472 if test "$orig_target_as" = ""; then
11473 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11476 if test "${aros_tool_prefix}ar" = ""; then
11477 if test "$cross_compiling" = "yes" ; then
11478 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11479 set dummy ${target_tool_prefix}ar; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_path_orig_target_ar+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 case $orig_target_ar in
11486 [\\/]* | ?:[\\/]*)
11487 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11503 IFS=$as_save_IFS
11506 esac
11508 orig_target_ar=$ac_cv_path_orig_target_ar
11509 if test -n "$orig_target_ar"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11511 $as_echo "$orig_target_ar" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11518 else
11519 if test "$GCC" = "yes"; then
11520 aros_gcc_ar=`$CC -print-prog-name=ar`
11521 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11522 set dummy `basename $aros_gcc_ar`; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_path_orig_target_ar+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 case $orig_target_ar in
11529 [\\/]* | ?:[\\/]*)
11530 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in `dirname $aros_gcc_ar`
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11544 done
11545 done
11546 IFS=$as_save_IFS
11549 esac
11551 orig_target_ar=$ac_cv_path_orig_target_ar
11552 if test -n "$orig_target_ar"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11554 $as_echo "$orig_target_ar" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11562 if test "$orig_target_ar" = ""; then
11563 # Extract the first word of "ar", so it can be a program name with args.
11564 set dummy ar; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_path_orig_target_ar+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 case $orig_target_ar in
11571 [\\/]* | ?:[\\/]*)
11572 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11586 done
11587 done
11588 IFS=$as_save_IFS
11591 esac
11593 orig_target_ar=$ac_cv_path_orig_target_ar
11594 if test -n "$orig_target_ar"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11596 $as_echo "$orig_target_ar" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11605 else
11606 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11607 set dummy ${aros_tool_prefix}ar; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_path_orig_target_ar+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 case $orig_target_ar in
11614 [\\/]* | ?:[\\/]*)
11615 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11629 done
11630 done
11631 IFS=$as_save_IFS
11634 esac
11636 orig_target_ar=$ac_cv_path_orig_target_ar
11637 if test -n "$orig_target_ar"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11639 $as_echo "$orig_target_ar" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11648 if test "$orig_target_ar" = ""; then
11649 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11652 if test "${aros_tool_prefix}ranlib" = ""; then
11653 if test "$cross_compiling" = "yes" ; then
11654 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11655 set dummy ${target_tool_prefix}ar; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 case $orig_target_ranlib in
11662 [\\/]* | ?:[\\/]*)
11663 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 break 2
11677 done
11678 done
11679 IFS=$as_save_IFS
11682 esac
11684 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11685 if test -n "$orig_target_ranlib"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11687 $as_echo "$orig_target_ranlib" >&6; }
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11694 else
11695 if test "$GCC" = "yes"; then
11696 aros_gcc_ar=`$CC -print-prog-name=ar`
11697 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11698 set dummy `basename $aros_gcc_ar`; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 case $orig_target_ranlib in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in `dirname $aros_gcc_ar`
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11725 esac
11727 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11728 if test -n "$orig_target_ranlib"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11730 $as_echo "$orig_target_ranlib" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11738 if test "$orig_target_ranlib" = ""; then
11739 # Extract the first word of "ar", so it can be a program name with args.
11740 set dummy ar; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 case $orig_target_ranlib in
11747 [\\/]* | ?:[\\/]*)
11748 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11762 done
11763 done
11764 IFS=$as_save_IFS
11767 esac
11769 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11770 if test -n "$orig_target_ranlib"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11772 $as_echo "$orig_target_ranlib" >&6; }
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11781 else
11782 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11783 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 case $orig_target_ranlib in
11790 [\\/]* | ?:[\\/]*)
11791 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11805 done
11806 done
11807 IFS=$as_save_IFS
11810 esac
11812 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11813 if test -n "$orig_target_ranlib"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11815 $as_echo "$orig_target_ranlib" >&6; }
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11824 if test "$orig_target_ranlib" = ""; then
11825 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11828 if test "${aros_tool_prefix}nm" = ""; then
11829 if test "$cross_compiling" = "yes" ; then
11830 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11831 set dummy ${target_tool_prefix}nm; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_path_orig_target_nm+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 case $orig_target_nm in
11838 [\\/]* | ?:[\\/]*)
11839 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11853 done
11854 done
11855 IFS=$as_save_IFS
11858 esac
11860 orig_target_nm=$ac_cv_path_orig_target_nm
11861 if test -n "$orig_target_nm"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11863 $as_echo "$orig_target_nm" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11870 else
11871 if test "$GCC" = "yes"; then
11872 aros_gcc_nm=`$CC -print-prog-name=nm`
11873 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11874 set dummy `basename $aros_gcc_nm`; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_orig_target_nm+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 case $orig_target_nm in
11881 [\\/]* | ?:[\\/]*)
11882 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in `dirname $aros_gcc_nm`
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11896 done
11897 done
11898 IFS=$as_save_IFS
11901 esac
11903 orig_target_nm=$ac_cv_path_orig_target_nm
11904 if test -n "$orig_target_nm"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11906 $as_echo "$orig_target_nm" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11914 if test "$orig_target_nm" = ""; then
11915 # Extract the first word of "nm", so it can be a program name with args.
11916 set dummy nm; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_path_orig_target_nm+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 case $orig_target_nm in
11923 [\\/]* | ?:[\\/]*)
11924 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11938 done
11939 done
11940 IFS=$as_save_IFS
11943 esac
11945 orig_target_nm=$ac_cv_path_orig_target_nm
11946 if test -n "$orig_target_nm"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11948 $as_echo "$orig_target_nm" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11957 else
11958 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
11959 set dummy ${aros_tool_prefix}nm; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_orig_target_nm+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 case $orig_target_nm in
11966 [\\/]* | ?:[\\/]*)
11967 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11977 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11981 done
11982 done
11983 IFS=$as_save_IFS
11986 esac
11988 orig_target_nm=$ac_cv_path_orig_target_nm
11989 if test -n "$orig_target_nm"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11991 $as_echo "$orig_target_nm" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
12000 if test "$orig_target_nm" = ""; then
12001 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12004 if test "${aros_tool_prefix}strip" = ""; then
12005 if test "$cross_compiling" = "yes" ; then
12006 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12007 set dummy ${target_tool_prefix}strip; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if ${ac_cv_path_orig_target_strip+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 case $orig_target_strip in
12014 [\\/]* | ?:[\\/]*)
12015 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12034 esac
12036 orig_target_strip=$ac_cv_path_orig_target_strip
12037 if test -n "$orig_target_strip"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12039 $as_echo "$orig_target_strip" >&6; }
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12046 else
12047 if test "$GCC" = "yes"; then
12048 aros_gcc_strip=`$CC -print-prog-name=strip`
12049 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12050 set dummy `basename $aros_gcc_strip`; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_orig_target_strip+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 case $orig_target_strip in
12057 [\\/]* | ?:[\\/]*)
12058 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in `dirname $aros_gcc_strip`
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12068 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12072 done
12073 done
12074 IFS=$as_save_IFS
12077 esac
12079 orig_target_strip=$ac_cv_path_orig_target_strip
12080 if test -n "$orig_target_strip"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12082 $as_echo "$orig_target_strip" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12090 if test "$orig_target_strip" = ""; then
12091 # Extract the first word of "strip", so it can be a program name with args.
12092 set dummy strip; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_path_orig_target_strip+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 case $orig_target_strip in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12114 done
12115 done
12116 IFS=$as_save_IFS
12119 esac
12121 orig_target_strip=$ac_cv_path_orig_target_strip
12122 if test -n "$orig_target_strip"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12124 $as_echo "$orig_target_strip" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12133 else
12134 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12135 set dummy ${aros_tool_prefix}strip; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_path_orig_target_strip+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 case $orig_target_strip in
12142 [\\/]* | ?:[\\/]*)
12143 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12157 done
12158 done
12159 IFS=$as_save_IFS
12162 esac
12164 orig_target_strip=$ac_cv_path_orig_target_strip
12165 if test -n "$orig_target_strip"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12167 $as_echo "$orig_target_strip" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12176 if test "$orig_target_strip" = ""; then
12177 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12180 if test "${aros_tool_prefix}objcopy" = ""; then
12181 if test "$cross_compiling" = "yes" ; then
12182 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12183 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 case $orig_target_objcopy in
12190 [\\/]* | ?:[\\/]*)
12191 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12205 done
12206 done
12207 IFS=$as_save_IFS
12210 esac
12212 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12213 if test -n "$orig_target_objcopy"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12215 $as_echo "$orig_target_objcopy" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12222 else
12223 if test "$GCC" = "yes"; then
12224 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12225 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12226 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 case $orig_target_objcopy in
12233 [\\/]* | ?:[\\/]*)
12234 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in `dirname $aros_gcc_objcopy`
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12244 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12248 done
12249 done
12250 IFS=$as_save_IFS
12253 esac
12255 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12256 if test -n "$orig_target_objcopy"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12258 $as_echo "$orig_target_objcopy" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 if test "$orig_target_objcopy" = ""; then
12267 # Extract the first word of "objcopy", so it can be a program name with args.
12268 set dummy objcopy; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 case $orig_target_objcopy in
12275 [\\/]* | ?:[\\/]*)
12276 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12290 done
12291 done
12292 IFS=$as_save_IFS
12295 esac
12297 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12298 if test -n "$orig_target_objcopy"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12300 $as_echo "$orig_target_objcopy" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12309 else
12310 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12311 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 case $orig_target_objcopy in
12318 [\\/]* | ?:[\\/]*)
12319 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12338 esac
12340 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12341 if test -n "$orig_target_objcopy"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12343 $as_echo "$orig_target_objcopy" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12352 if test "$orig_target_objcopy" = ""; then
12353 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12356 if test "${aros_tool_prefix}objdump" = ""; then
12357 if test "$cross_compiling" = "yes" ; then
12358 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12359 set dummy ${target_tool_prefix}objdump; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_path_orig_target_objdump+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 case $orig_target_objdump in
12366 [\\/]* | ?:[\\/]*)
12367 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 break 2
12381 done
12382 done
12383 IFS=$as_save_IFS
12386 esac
12388 orig_target_objdump=$ac_cv_path_orig_target_objdump
12389 if test -n "$orig_target_objdump"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12391 $as_echo "$orig_target_objdump" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12398 else
12399 if test "$GCC" = "yes"; then
12400 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12401 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12402 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_path_orig_target_objdump+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 case $orig_target_objdump in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in `dirname $aros_gcc_objdump`
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12424 done
12425 done
12426 IFS=$as_save_IFS
12429 esac
12431 orig_target_objdump=$ac_cv_path_orig_target_objdump
12432 if test -n "$orig_target_objdump"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12434 $as_echo "$orig_target_objdump" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12442 if test "$orig_target_objdump" = ""; then
12443 # Extract the first word of "objdump", so it can be a program name with args.
12444 set dummy objdump; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if ${ac_cv_path_orig_target_objdump+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 case $orig_target_objdump in
12451 [\\/]* | ?:[\\/]*)
12452 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 break 2
12466 done
12467 done
12468 IFS=$as_save_IFS
12471 esac
12473 orig_target_objdump=$ac_cv_path_orig_target_objdump
12474 if test -n "$orig_target_objdump"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12476 $as_echo "$orig_target_objdump" >&6; }
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12485 else
12486 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12487 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if ${ac_cv_path_orig_target_objdump+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 case $orig_target_objdump in
12494 [\\/]* | ?:[\\/]*)
12495 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 break 2
12509 done
12510 done
12511 IFS=$as_save_IFS
12514 esac
12516 orig_target_objdump=$ac_cv_path_orig_target_objdump
12517 if test -n "$orig_target_objdump"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12519 $as_echo "$orig_target_objdump" >&6; }
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12528 if test "$orig_target_objdump" = ""; then
12529 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12533 # At this point, all aros_kernel_* and aros_target_*
12534 # tools should be set up correctly
12536 CC="$aros_kernel_cc $kernel_tool_flags"
12537 CPP="$aros_kernel_cpp"
12539 #-----------------------------------------------------------------------------
12541 # Disable pointer-signedness warnings if the compiler recognises the option
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12544 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12545 save_cflags="$CFLAGS"
12546 if test "$crosstools" != "yes" ; then
12547 CFLAGS="$CFLAGS -Wno-pointer-sign"
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12552 main ()
12556 return 0;
12558 _ACEOF
12559 if ac_fn_c_try_compile "$LINENO"; then :
12560 use_no_sign_warning="yes"
12561 else
12562 use_no_sign_warning="no"
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565 else
12566 # we do know it is supported for the smallest version of gcc we are going to build
12567 # we assume it's also supported by later versions
12568 use_no_sign_warning=yes
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12571 $as_echo "$use_no_sign_warning" >&6; }
12572 if test "x-$use_no_sign_warning" = "x-yes" ; then
12573 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12575 CFLAGS="$save_cflags"
12577 #-----------------------------------------------------------------------------
12579 # Find all the tools we need to compile. This could be cross-compiling
12580 # though! If that is the case we use the GNU form of the target and
12581 # simply add this to the front of the binary name. This is rather simple,
12582 # but it should work under most circumstances.
12584 # The default tools are to use the same as the host, but only if the
12585 # host and target CPU are the same. With GCC this is normally enough.
12588 aros_cc_pre=""
12589 aros_shared_ld="$aros_host_ld"
12591 aros_target_mkdep="$aros_host_mkdep"
12593 # The default tools executables to be linked to.
12594 if test "$rescomp" != ""; then
12595 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12596 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 case $aros_kernel_rescomp in
12603 [\\/]* | ?:[\\/]*)
12604 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12623 esac
12625 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12626 if test -n "$aros_kernel_rescomp"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12628 $as_echo "$aros_kernel_rescomp" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12635 if test "$aros_kernel_rescomp" = ""; then
12636 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12640 # Set up the sources for the symlink farm
12641 if test "$crosstools" = "yes"; then
12642 crosstools_target=tools-crosstools
12643 else
12644 crosstools_cxx_target=tools-crosstools
12647 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12648 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12651 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12652 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12653 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12654 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12655 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12656 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12657 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12659 # aros_cc_pre is a variable that is added to the front of the compiler name
12660 # in the generated aros-gcc shell script. We need this to enable the cache
12661 # to work across cleaned builds. Also, support DISTCC using the correct
12662 # environment variable.
12665 if test "x${DISTCC}" != "x" ; then
12666 if test "x${CCACHE}" != "x" ; then
12667 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12668 else
12669 aros_cc_pre="${DISTCC} "
12671 else
12672 if test "x${CCACHE}" != "x" ; then
12673 aros_cc_pre="${CCACHE} "
12677 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12679 aros_target_nostdinc_cflags=-nostdinc
12681 aros_target_nostartup_ldflags=-nostartfiles
12683 aros_target_nix_ldflags=-nix
12685 aros_target_detach_ldflags=-detach
12687 aros_target_nostdlib_ldflags=-nostdlib
12690 # Target tools
12691 if test "$crosstools" != "yes"; then
12692 if test "$GCC" = "yes"; then
12693 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12695 else
12696 # We do not know which gcc version we are going to build and what we need to know
12697 # here is different for different versions so this will be set later during the
12698 # build of crosstools.
12699 aros_target_cc_path=@aros_target_cc_path@
12701 aros_target_cpp="${prefix}cpp"
12702 aros_target_cc="${prefix}gcc"
12703 aros_target_cxx="${prefix}g++"
12704 aros_target_as="${prefix}as"
12705 aros_target_ld="${prefix}ld"
12706 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12707 aros_target_objcopy="${prefix}objcopy"
12708 aros_target_objdump="${prefix}objdump"
12709 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12710 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12711 aros_target_strip="${prefix}strip"
12712 aros_plain_nm="${prefix}nm"
12713 aros_plain_ar="${prefix}ar"
12715 if test "$aros_kernel_includes" != "" ; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12717 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12718 if test "$aros_kernel_cc_includes" = "" ; then
12719 # Try to guess where the directory is.
12720 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12721 if test -d $aros_kernel_cc_includes; then
12722 # Check if there is also an include-fixed directory and add it
12723 # to kernel compiler's include path as it may contain some of
12724 # the headers we need.
12725 if test -d "$aros_kernel_cc_includes"-fixed; then
12726 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12728 # Check for specific includes directory. Neede for Ubuntu 11.10
12729 if test -d "/usr/include/i386-linux-gnu"; then
12730 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12732 else
12733 # The directory doesn't exist, we need to do some more work.
12734 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12736 # These are the headers we're looking for.
12737 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12738 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12739 zutil.h stdint.h"
12741 dirs=
12742 for h in $headers; do
12743 # Which other headers are needed by each of the above?
12744 deps=$(echo "#include <$h>" | \
12745 $aros_kernel_cc -E -M - 2>/dev/null | \
12746 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12748 # Copy all the needed headers to a directory beneath gendir.
12749 for d in $deps; do
12750 h=$(basename $d)
12751 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12752 sed -n "s,^.*/include\(/.*\),\1,p")
12753 ! test -d $dir && mkdir -p $dir
12754 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12755 done
12756 done
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12760 $as_echo "$aros_kernel_cc_includes" >&6; }
12761 # Adding -nostdinc to kernel includes as they are always used together.
12762 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12765 if test "$crosstools" != "yes"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12767 $as_echo_n "checking for the target compiler's include path... " >&6; }
12768 if test "$aros_target_cc_includes" = "" ; then
12769 #try to guess where the directory is
12770 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12771 if ! test -d $aros_target_cc_includes; then
12772 #the directory doesn't exist, we need to do some more work
12773 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12775 #these are the headers we're looking for
12776 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12777 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12778 zutil.h"
12780 dirs=
12781 for h in $headers; do
12782 #which other headers each of the above headers needs?
12783 deps=$(echo "#include <$h>" | \
12784 $orig_target_cc -E -M - 2>/dev/null | \
12785 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12787 #copy all the needed headers to a directory beneath gendir
12788 for d in $deps; do
12789 h=$(basename $d)
12790 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12791 sed -n "s,^.*/include\(/.*\),\1,p")
12792 ! test -d $dir && mkdir -p $dir
12793 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12794 done
12795 done
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12799 $as_echo "$aros_target_cc_includes" >&6; }
12800 else
12801 # We do not know which gcc version we are going to build and what we need to know
12802 # here is different for different versions so this will be set later during the
12803 # build of crosstools.
12804 aros_target_cc_includes=@aros_target_cc_includes@
12808 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12809 # On GCC >= 4.0 -iquote should be used
12812 save_cc="$CC"
12813 save_cflags="$CFLAGS"
12814 CFLAGS="-iquote."
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12816 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12817 if test "x-$crosstools" != "x-yes"; then
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12822 main ()
12826 return 0;
12828 _ACEOF
12829 if ac_fn_c_try_compile "$LINENO"; then :
12830 has_iquote="yes"
12831 else
12832 has_iquote="no"
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 else
12836 # we do know it is supported for the smallest version of gcc we are going to build
12837 # we assume it's also supported by later versions
12838 has_iquote=yes
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12841 $as_echo "$has_iquote" >&6; }
12842 if test "x-$has_iquote" = "x-yes" ; then
12843 host_cflags_iquote=-iquote
12844 host_cflags_iquote_end=
12845 else
12846 host_cflags_iquote=-I
12847 host_cflags_iquote_end=-I-
12849 kernel_cflags_iquote=$host_cflags_iquote
12850 kernel_cflags_iquote_end=$host_cflags_iquote_end
12851 if test "x-$cross_compiling" = "x-yes"; then
12852 CC="$aros_kernel_cc"
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12854 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12855 if test "x-$crosstools" != "x-yes"; then
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12860 main ()
12864 return 0;
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 use_no_stack_protector="yes"
12869 else
12870 use_no_stack_protector="no"
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 else
12874 # we do know it is supported for the smallest version of gcc we are going to build
12875 # we assume it's also supported by later versions
12876 use_no_stack_protector=yes
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12879 $as_echo "$use_no_stack_protector" >&6; }
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12881 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12882 if test "x-$crosstools" != "x-yes"; then
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12887 main ()
12891 return 0;
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"; then :
12895 has_iquote="yes"
12896 else
12897 has_iquote="no"
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 else
12901 # we do know it is supported for the smallest version of gcc we are going to build
12902 # we assume it's also supported by later versions
12903 has_iquote=yes
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12906 $as_echo "$has_iquote" >&6; }
12907 if test "x-$has_iquote" = "x-yes" ; then
12908 kernel_cflags_iquote=-iquote
12909 kernel_cflags_iquote_end=
12910 else
12911 kernel_cflags_iquote=-I
12912 kernel_cflags_iquote_end=-I-
12915 aros_cflags_iquote=$kernel_cflags_iquote
12916 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12917 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12918 CC="$orig_target_cc"
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12920 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12921 if test "x-$crosstools" != "x-yes"; then
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12926 main ()
12930 return 0;
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934 has_iquote="yes"
12935 else
12936 has_iquote="no"
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 else
12940 # we do know it is supported for the smallest version of gcc we are going to build
12941 # we assume it's also supported by later versions
12942 has_iquote=yes
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12945 $as_echo "$has_iquote" >&6; }
12946 if test "x-$has_iquote" = "x-yes" ; then
12947 aros_cflags_iquote=-iquote
12948 aros_cflags_iquote_end=
12949 else
12950 aros_cflags_iquote=-I
12951 aros_cflags_iquote_end=-I-
12954 if test "x-$use_no_stack_protector" = "x-yes" ; then
12955 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
12959 #-----------------------------------------------------------------------------
12961 # Check if the target compiler supports some options used for delinting:
12962 # -Wunused-but-set-variable
12963 # -Warray-bounds
12964 # -Wenum-compare
12965 # -Wstrict-overflow
12966 # -Wformat-security
12968 if test "x-$crosstools" != "x-yes"; then
12969 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12970 CC="$orig_target_cc"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
12973 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
12974 CFLAGS=-Wunused-but-set-variable
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12979 main ()
12983 return 0;
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 aros_unused_but_set_variable="yes"
12988 else
12989 aros_unused_but_set_variable="no"
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
12993 $as_echo "$aros_unused_but_set_variable" >&6; }
12994 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
12995 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
12999 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13000 CFLAGS=-Warray-bounds
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13005 main ()
13009 return 0;
13011 _ACEOF
13012 if ac_fn_c_try_compile "$LINENO"; then :
13013 aros_array_bounds="yes"
13014 else
13015 aros_array_bounds="no"
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13019 $as_echo "$aros_array_bounds" >&6; }
13020 if test "x-$aros_array_bounds" = "x-yes" ; then
13021 aros_cflags_array_bounds=-Wno-array-bounds
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13025 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13026 CFLAGS=-Wenum-compare
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13031 main ()
13035 return 0;
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 aros_enum_compare="yes"
13040 else
13041 aros_enum_compare="no"
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13045 $as_echo "$aros_enum_compare" >&6; }
13046 if test "x-$aros_enum_compare" = "x-yes" ; then
13047 aros_cflags_enum_compare=-Wno-enum-compare
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13051 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13052 CFLAGS=-Wstrict-overflow
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13057 main ()
13061 return 0;
13063 _ACEOF
13064 if ac_fn_c_try_compile "$LINENO"; then :
13065 aros_strict_overflow="yes"
13066 else
13067 aros_strict_overflow="no"
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13071 $as_echo "$aros_strict_overflow" >&6; }
13072 if test "x-$aros_strict_overflow" = "x-yes" ; then
13073 aros_cflags_strict_overflow=-Wno-strict-overflow
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13077 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13078 CFLAGS=-Wformat-security
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13083 main ()
13087 return 0;
13089 _ACEOF
13090 if ac_fn_c_try_compile "$LINENO"; then :
13091 aros_format_security="yes"
13092 else
13093 aros_format_security="no"
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13097 $as_echo "$aros_format_security" >&6; }
13098 if test "x-$aros_format_security" = "x-yes" ; then
13099 aros_cflags_format_security=-Wno-format-security
13101 else
13102 # We do not know which gcc version we are going to build and what we need to know
13103 # here is different for different versions so this will be set later during the
13104 # build of crosstools.
13105 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13106 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13107 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13108 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13109 aros_cflags_format_security=@aros_cflags_format_security@
13112 #-----------------------------------------------------------------------------
13114 # Check if we can explicitly choose older version of symbol hashing
13116 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13117 CC="$aros_kernel_cc"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13119 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
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_link "$LINENO"; then :
13132 use_hash_style="yes"
13133 else
13134 use_hash_style="no"
13136 rm -f core conftest.err conftest.$ac_objext \
13137 conftest$ac_exeext conftest.$ac_ext
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13139 $as_echo "$use_hash_style" >&6; }
13140 if test "x-$use_hash_style" = "x-yes" ; then
13141 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13143 CC="$save_cc"
13144 CFLAGS="$save_cflags"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13155 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13157 # Check whether --with-resolution was given.
13158 if test "${with_resolution+set}" = set; then :
13159 withval=$with_resolution; resolution=$withval
13160 else
13161 resolution=none
13164 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13165 if test "$resolution" = "yes" ; then
13166 resolution="none"
13168 if test "$resolution" = "no" ; then
13169 resolution="none"
13171 if test "$resolution" != "none" ; then
13172 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13173 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13174 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13177 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13178 aros_cv_default_wbwidth=$aros_default_wbwidth
13179 aros_cv_default_wbheight=$aros_default_wbheight
13180 aros_cv_default_wbdepth=$aros_default_wbdepth
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13183 $as_echo_n "checking if serial debug is enabled... " >&6; }
13185 # Check whether --with-serial-debug was given.
13186 if test "${with_serial_debug+set}" = set; then :
13187 withval=$with_serial_debug; serial_debug=$withval
13188 else
13189 serial_debug=none
13192 if test "$aros_serial_debug" = 0 ; then
13193 serial_debug_forced=""
13194 if test "$serial_debug" = "yes" ; then
13195 serial_debug="1"
13197 if test "$serial_debug" = "no" ; then
13198 serial_debug="none"
13200 else
13201 serial_debug_forced="(forced)"
13202 serial_debug=$aros_serial_debug
13204 if test "$serial_debug" != "none" ; then
13205 aros_serial_debug=$serial_debug
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13207 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13214 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13215 # Check whether --enable-palm_debug_hack was given.
13216 if test "${enable_palm_debug_hack+set}" = set; then :
13217 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13218 else
13219 palm_debug_hack="no"
13222 if test "$palm_debug_hack" = "yes" ; then
13223 aros_palm_debug_hack="1"
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13226 $as_echo "$palm_debug_hack" >&6; }
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13229 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13230 # Check whether --enable-nesting_supervisor was given.
13231 if test "${enable_nesting_supervisor+set}" = set; then :
13232 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13233 else
13234 nesting_supervisor="no"
13237 if test "$nesting_supervisor" = "yes" ; then
13238 aros_nesting_supervisor="1"
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13241 $as_echo "$nesting_supervisor" >&6; }
13243 if test "$aros_enable_mmu" = "" ; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13245 $as_echo_n "checking if MMU support is enabled... " >&6; }
13246 # Check whether --enable-mmu was given.
13247 if test "${enable_mmu+set}" = set; then :
13248 enableval=$enable_mmu; aros_enable_mmu=$enableval
13249 else
13250 aros_enable_mmu="yes"
13253 if test "$aros_enable_mmu" = "" ; then
13254 aros_enable_mmu="yes"
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13257 $as_echo "$aros_enable_mmu" >&6; }
13259 if test "$aros_enable_mmu" = "no" ; then
13260 aros_enable_mmu="0"
13261 else
13262 aros_enable_mmu="1"
13266 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13268 if test "x-$need_dlopen" != "x-no" ; then
13269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13270 if test "x$ac_cv_func_dlopen" = xyes; then :
13271 have_dl="yes"
13272 else
13273 have_dl="no"
13276 if test "x-$have_dl" = "x-no" ; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13279 if ${ac_cv_lib_dl_dlopen+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-ldl $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char dlopen ();
13295 main ()
13297 return dlopen ();
13299 return 0;
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_dl_dlopen=yes
13304 else
13305 ac_cv_lib_dl_dlopen=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13314 have_dl="yes"
13315 aros_host_ldflags="$aros_host_ldflags -ldl"
13316 else
13317 have_dl="no"
13321 if test "x-$have_dl" = "x-no" ; then
13322 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13327 # Check whether --enable-x11_hidd was given.
13328 if test "${enable_x11_hidd+set}" = set; then :
13329 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13330 else
13331 x11_hidd="$need_x11"
13334 case "x-$x11_hidd" in
13335 x-yes|x-no|x-auto) ;;
13336 *) x11_hidd="$need_x11" ;;
13337 esac
13339 ENABLE_X11=0
13341 if test "x-$x11_hidd" != "x-no" ; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13344 $as_echo_n "checking for X... " >&6; }
13347 # Check whether --with-x was given.
13348 if test "${with_x+set}" = set; then :
13349 withval=$with_x;
13352 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13353 if test "x$with_x" = xno; then
13354 # The user explicitly disabled X.
13355 have_x=disabled
13356 else
13357 case $x_includes,$x_libraries in #(
13358 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13359 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 # One or both of the vars are not set, and there is no cached value.
13363 ac_x_includes=no ac_x_libraries=no
13364 rm -f -r conftest.dir
13365 if mkdir conftest.dir; then
13366 cd conftest.dir
13367 cat >Imakefile <<'_ACEOF'
13368 incroot:
13369 @echo incroot='${INCROOT}'
13370 usrlibdir:
13371 @echo usrlibdir='${USRLIBDIR}'
13372 libdir:
13373 @echo libdir='${LIBDIR}'
13374 _ACEOF
13375 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13376 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13377 for ac_var in incroot usrlibdir libdir; do
13378 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13379 done
13380 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13381 for ac_extension in a so sl dylib la dll; do
13382 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13383 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13384 ac_im_usrlibdir=$ac_im_libdir; break
13386 done
13387 # Screen out bogus values from the imake configuration. They are
13388 # bogus both because they are the default anyway, and because
13389 # using them would break gcc on systems where it needs fixed includes.
13390 case $ac_im_incroot in
13391 /usr/include) ac_x_includes= ;;
13392 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13393 esac
13394 case $ac_im_usrlibdir in
13395 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13396 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13397 esac
13399 cd ..
13400 rm -f -r conftest.dir
13403 # Standard set of common directories for X headers.
13404 # Check X11 before X11Rn because it is often a symlink to the current release.
13405 ac_x_header_dirs='
13406 /usr/X11/include
13407 /usr/X11R7/include
13408 /usr/X11R6/include
13409 /usr/X11R5/include
13410 /usr/X11R4/include
13412 /usr/include/X11
13413 /usr/include/X11R7
13414 /usr/include/X11R6
13415 /usr/include/X11R5
13416 /usr/include/X11R4
13418 /usr/local/X11/include
13419 /usr/local/X11R7/include
13420 /usr/local/X11R6/include
13421 /usr/local/X11R5/include
13422 /usr/local/X11R4/include
13424 /usr/local/include/X11
13425 /usr/local/include/X11R7
13426 /usr/local/include/X11R6
13427 /usr/local/include/X11R5
13428 /usr/local/include/X11R4
13430 /usr/X386/include
13431 /usr/x386/include
13432 /usr/XFree86/include/X11
13434 /usr/include
13435 /usr/local/include
13436 /usr/unsupported/include
13437 /usr/athena/include
13438 /usr/local/x11r5/include
13439 /usr/lpp/Xamples/include
13441 /usr/openwin/include
13442 /usr/openwin/share/include'
13444 if test "$ac_x_includes" = no; then
13445 # Guess where to find include files, by looking for Xlib.h.
13446 # First, try using that file with no special directory specified.
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 #include <X11/Xlib.h>
13450 _ACEOF
13451 if ac_fn_c_try_cpp "$LINENO"; then :
13452 # We can compile using X headers with no special include directory.
13453 ac_x_includes=
13454 else
13455 for ac_dir in $ac_x_header_dirs; do
13456 if test -r "$ac_dir/X11/Xlib.h"; then
13457 ac_x_includes=$ac_dir
13458 break
13460 done
13462 rm -f conftest.err conftest.i conftest.$ac_ext
13463 fi # $ac_x_includes = no
13465 if test "$ac_x_libraries" = no; then
13466 # Check for the libraries.
13467 # See if we find them without any special options.
13468 # Don't add to $LIBS permanently.
13469 ac_save_LIBS=$LIBS
13470 LIBS="-lX11 $LIBS"
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13473 #include <X11/Xlib.h>
13475 main ()
13477 XrmInitialize ()
13479 return 0;
13481 _ACEOF
13482 if ac_fn_c_try_link "$LINENO"; then :
13483 LIBS=$ac_save_LIBS
13484 # We can link X programs with no special library path.
13485 ac_x_libraries=
13486 else
13487 LIBS=$ac_save_LIBS
13488 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13490 # Don't even attempt the hair of trying to link an X program!
13491 for ac_extension in a so sl dylib la dll; do
13492 if test -r "$ac_dir/libX11.$ac_extension"; then
13493 ac_x_libraries=$ac_dir
13494 break 2
13496 done
13497 done
13499 rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501 fi # $ac_x_libraries = no
13503 case $ac_x_includes,$ac_x_libraries in #(
13504 no,* | *,no | *\'*)
13505 # Didn't find X, or a directory has "'" in its name.
13506 ac_cv_have_x="have_x=no";; #(
13508 # Record where we found X for the cache.
13509 ac_cv_have_x="have_x=yes\
13510 ac_x_includes='$ac_x_includes'\
13511 ac_x_libraries='$ac_x_libraries'"
13512 esac
13514 ;; #(
13515 *) have_x=yes;;
13516 esac
13517 eval "$ac_cv_have_x"
13518 fi # $with_x != no
13520 if test "$have_x" != yes; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13522 $as_echo "$have_x" >&6; }
13523 no_x=yes
13524 else
13525 # If each of the values was on the command line, it overrides each guess.
13526 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13527 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13528 # Update the cache value to reflect the command line values.
13529 ac_cv_have_x="have_x=yes\
13530 ac_x_includes='$x_includes'\
13531 ac_x_libraries='$x_libraries'"
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13533 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13537 x_cflags=
13538 for path in $x_libraries
13540 x_cflags="$x_cflags -L$path"
13541 done
13543 for path in $x_includes
13545 x_cflags="$x_cflags -I$path"
13546 done
13548 if test "x-$no_x" = "x-yes" ; then
13550 if test "x-$x11_hidd" != "x-auto" ; then
13551 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13554 else
13555 x11_hidd_target=kernel-x11gfx-kobj
13556 ENABLE_X11=1
13558 # Check whether --enable-x11_shm was given.
13559 if test "${enable_x11_shm+set}" = set; then :
13560 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13561 else
13562 x11_hidd_shm="auto"
13565 case "x-$x11_hidd_shm" in
13566 x-yes|x-no|x-auto) ;;
13567 *) x11_hidd_shm="auto" ;;
13568 esac
13570 have_xshm=no
13572 if test "x-$x11_hidd_shm" != "x-no" ; then
13574 for ac_header in sys/ipc.h
13575 do :
13576 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13577 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13578 cat >>confdefs.h <<_ACEOF
13579 #define HAVE_SYS_IPC_H 1
13580 _ACEOF
13584 done
13586 for ac_header in sys/shm.h
13587 do :
13588 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13589 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13590 cat >>confdefs.h <<_ACEOF
13591 #define HAVE_SYS_SHM_H 1
13592 _ACEOF
13596 done
13599 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13601 save_cflags="$CFLAGS"
13602 CFLAGS="$CFLAGS $x_cflags"
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13604 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13605 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 ac_check_lib_save_LIBS=$LIBS
13609 LIBS="-lXext $LIBS"
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13613 /* Override any GCC internal prototype to avoid an error.
13614 Use char because int might match the return type of a GCC
13615 builtin and then its argument prototype would still apply. */
13616 #ifdef __cplusplus
13617 extern "C"
13618 #endif
13619 char XShmQueryExtension ();
13621 main ()
13623 return XShmQueryExtension ();
13625 return 0;
13627 _ACEOF
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 ac_cv_lib_Xext_XShmQueryExtension=yes
13630 else
13631 ac_cv_lib_Xext_XShmQueryExtension=no
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13638 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13639 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13640 have_xshm=yes
13643 CFLAGS="$save_cflags"
13647 if test "x-$have_xshm" = "x-yes" ; then
13648 DO_XSHM_SUPPORT="1"
13649 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13650 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13651 else
13652 DO_XSHM_SUPPORT="0"
13656 # Check whether --enable-x11_vidmode was given.
13657 if test "${enable_x11_vidmode+set}" = set; then :
13658 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13659 else
13660 x11_hidd_vidmode="auto"
13663 case "x-$x11_hidd_vidmode" in
13664 x-yes|x-no|x-auto) ;;
13665 *) x11_hidd_vidmode="auto" ;;
13666 esac
13668 have_vidmode=no
13670 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13672 save_cflags="$CFLAGS"
13673 CFLAGS="$CFLAGS $x_cflags"
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13675 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13676 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 ac_check_lib_save_LIBS=$LIBS
13680 LIBS="-lXxf86vm $LIBS"
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13684 /* Override any GCC internal prototype to avoid an error.
13685 Use char because int might match the return type of a GCC
13686 builtin and then its argument prototype would still apply. */
13687 #ifdef __cplusplus
13688 extern "C"
13689 #endif
13690 char XF86VidModeQueryExtension ();
13692 main ()
13694 return XF86VidModeQueryExtension ();
13696 return 0;
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13701 else
13702 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13709 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13710 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13711 have_vidmode=yes
13714 CFLAGS="$save_cflags"
13717 if test "x-$have_vidmode" = "x-yes" ; then
13718 DO_VIDMODE_SUPPORT="1"
13719 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13720 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13721 else
13722 DO_VIDMODE_SUPPORT="0"
13726 aros_host_x11_includes=$x_includes
13727 aros_host_x11_libdirs=$x_libraries
13731 # Check whether --enable-sdl_hidd was given.
13732 if test "${enable_sdl_hidd+set}" = set; then :
13733 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13734 else
13735 sdl_hidd="auto"
13738 case "x-$sdl_hidd" in
13739 x-yes|x-no|x-auto) ;;
13740 *) sdl_hidd="auto" ;;
13741 esac
13743 if test "x-$sdl_hidd" != "x-no" ; then
13746 # Check whether --with-sdl-prefix was given.
13747 if test "${with_sdl_prefix+set}" = set; then :
13748 withval=$with_sdl_prefix; sdl_prefix="$withval"
13749 else
13750 sdl_prefix=""
13754 # Check whether --with-sdl-exec-prefix was given.
13755 if test "${with_sdl_exec_prefix+set}" = set; then :
13756 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13757 else
13758 sdl_exec_prefix=""
13761 # Check whether --enable-sdltest was given.
13762 if test "${enable_sdltest+set}" = set; then :
13763 enableval=$enable_sdltest;
13764 else
13765 enable_sdltest=yes
13769 if test x$sdl_exec_prefix != x ; then
13770 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
13771 if test x${SDL_CONFIG+set} != xset ; then
13772 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13775 if test x$sdl_prefix != x ; then
13776 sdl_args="$sdl_args --prefix=$sdl_prefix"
13777 if test x${SDL_CONFIG+set} != xset ; then
13778 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13782 if test "x$prefix" != xNONE; then
13783 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13785 # Extract the first word of "sdl-config", so it can be a program name with args.
13786 set dummy sdl-config; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 case $SDL_CONFIG in
13793 [\\/]* | ?:[\\/]*)
13794 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13804 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13808 done
13809 done
13810 IFS=$as_save_IFS
13812 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13814 esac
13816 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13817 if test -n "$SDL_CONFIG"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13819 $as_echo "$SDL_CONFIG" >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
13826 min_sdl_version=1.2.10
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13828 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13829 no_sdl=""
13830 if test "$SDL_CONFIG" = "no" ; then
13831 no_sdl=yes
13832 else
13833 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
13834 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
13836 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
13837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13838 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
13839 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13840 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13842 if test "x$enable_sdltest" = "xyes" ; then
13843 ac_save_CFLAGS="$CFLAGS"
13844 ac_save_CXXFLAGS="$CXXFLAGS"
13845 ac_save_LIBS="$LIBS"
13846 CFLAGS="$CFLAGS $SDL_CFLAGS"
13847 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13848 LIBS="$LIBS $SDL_LIBS"
13849 rm -f conf.sdltest
13850 if test "$cross_compiling" = yes; then :
13851 echo $ac_n "cross compiling; assumed OK... $ac_c"
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13856 #include <stdio.h>
13857 #include <stdlib.h>
13858 #include <string.h>
13859 #include "SDL.h"
13861 char*
13862 my_strdup (char *str)
13864 char *new_str;
13866 if (str)
13868 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13869 strcpy (new_str, str);
13871 else
13872 new_str = NULL;
13874 return new_str;
13877 int main (int argc, char *argv[])
13879 int major, minor, micro;
13880 char *tmp_version;
13882 /* This hangs on some systems (?)
13883 system ("touch conf.sdltest");
13885 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13887 /* HP/UX 9 (%@#!) writes to sscanf strings */
13888 tmp_version = my_strdup("$min_sdl_version");
13889 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13890 printf("%s, bad version string\n", "$min_sdl_version");
13891 exit(1);
13894 if (($sdl_major_version > major) ||
13895 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13896 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13898 return 0;
13900 else
13902 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13903 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13904 printf("*** best to upgrade to the required version.\n");
13905 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13906 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13907 printf("*** config.cache before re-running configure\n");
13908 return 1;
13913 _ACEOF
13914 if ac_fn_c_try_run "$LINENO"; then :
13916 else
13917 no_sdl=yes
13919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13920 conftest.$ac_objext conftest.beam conftest.$ac_ext
13923 CFLAGS="$ac_save_CFLAGS"
13924 CXXFLAGS="$ac_save_CXXFLAGS"
13925 LIBS="$ac_save_LIBS"
13928 if test "x$no_sdl" = x ; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13930 $as_echo "yes" >&6; }
13931 have_sdl="yes"
13932 else
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934 $as_echo "no" >&6; }
13935 if test "$SDL_CONFIG" = "no" ; then
13936 echo "*** The sdl-config script installed by SDL could not be found"
13937 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13938 echo "*** your path, or set the SDL_CONFIG environment variable to the"
13939 echo "*** full path to sdl-config."
13940 else
13941 if test -f conf.sdltest ; then
13943 else
13944 echo "*** Could not run SDL test program, checking why..."
13945 CFLAGS="$CFLAGS $SDL_CFLAGS"
13946 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13947 LIBS="$LIBS $SDL_LIBS"
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13951 #include <stdio.h>
13952 #include "SDL.h"
13954 int main(int argc, char *argv[])
13955 { return 0; }
13956 #undef main
13957 #define main K_and_R_C_main
13960 main ()
13962 return 0;
13964 return 0;
13966 _ACEOF
13967 if ac_fn_c_try_link "$LINENO"; then :
13968 echo "*** The test program compiled, but did not run. This usually means"
13969 echo "*** that the run-time linker is not finding SDL or finding the wrong"
13970 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13971 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13972 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13973 echo "*** is required on your system"
13974 echo "***"
13975 echo "*** If you have an old version installed, it is best to remove it, although"
13976 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13977 else
13978 echo "*** The test program failed to compile or link. See the file config.log for the"
13979 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13980 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13981 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13985 CFLAGS="$ac_save_CFLAGS"
13986 CXXFLAGS="$ac_save_CXXFLAGS"
13987 LIBS="$ac_save_LIBS"
13990 SDL_CFLAGS=""
13991 SDL_LIBS=""
13992 have_sdl="no"
13996 rm -f conf.sdltest
13999 if test "x-$have_sdl" != "x-yes" ; then
14001 if test "x-$sdl_hidd" != "x-auto" ; then
14002 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14005 else
14006 sdl_hidd_target=kernel-hidd-sdl
14007 aros_host_sdl_cflags=SDL_CFLAGS
14008 aros_host_sdl_libs=SDL_LIBS
14012 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14013 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14018 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14019 oss_library_target=workbench-libs-oss-unix
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14025 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14026 # Check whether --enable-dbus was given.
14027 if test "${enable_dbus+set}" = set; then :
14028 enableval=$enable_dbus; dbus="yes"
14029 else
14030 dbus="no"
14033 if test "$dbus" = "yes" ; then
14034 ENABLE_DBUS=1
14035 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14036 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14037 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14038 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14039 else
14040 ENABLE_DBUS=0
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14043 $as_echo "$dbus" >&6; }
14045 if test "$use_kernel_cc_wrapper" = "yes" ; then
14046 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14049 if test "${crosstools}" != "yes" ; then
14050 aros_target_toolchain=no
14051 else
14052 aros_target_toolchain=yes
14056 # Generic
14068 # Compatability with other Amiga-like operation systems
14071 # Host related
14099 # Target Related
14163 # Delinting target compiler flags
14170 # Graphics Related
14187 # Native version related
14190 # Palm native version related
14193 # Unix/Hosted version related
14196 # MMU related
14199 # Apple iOS related
14204 # Android related
14208 # DBUS related
14215 #X11 related
14218 # Debug related
14224 # Collect-aros stuff: "-ius" to ignore undefined symbols
14227 # C compiler related
14230 case "$aros_flavour" in
14231 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14232 aros_flavour="emulation" ;;
14233 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14234 aros_flavour="emulation" ;;
14235 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14236 aros_flavour="standalone";;
14237 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14238 aros_flavour="standalone";;
14239 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14240 aros_flavour="native" ;;
14241 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14242 aros_flavour="native" ;;
14243 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14244 aros_flavour="linklib" ;;
14245 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14246 aros_flavour="palmnative" ;;
14247 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14248 aros_flavour="mac68knative" ;;
14249 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14250 aros_flavour="ppcnative" ;;
14251 esac
14253 if test ! -d ${aros_inc_dir} ; then
14254 ${MKDIR} ${aros_inc_dir}
14256 if test ! -d ${aros_geninc_dir} ; then
14257 ${MKDIR} ${aros_geninc_dir}
14259 if test ! -d ${aros_hostcfg_dir} ; then
14260 ${MKDIR} ${aros_hostcfg_dir}
14262 if test ! -d ${aros_targetcfg_dir} ; then
14263 ${MKDIR} ${aros_targetcfg_dir}
14265 if test ! -d ${aros_tools_dir} ; then
14266 ${MKDIR} ${aros_tools_dir}
14268 if test ! -d ${aros_scripts_dir} ; then
14269 ${MKDIR} ${aros_scripts_dir}
14272 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14275 ac_config_commands="$ac_config_commands compiler_executable"
14277 ac_config_commands="$ac_config_commands genmf_executable"
14280 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"
14283 cat >confcache <<\_ACEOF
14284 # This file is a shell script that caches the results of configure
14285 # tests run on this system so they can be shared between configure
14286 # scripts and configure runs, see configure's option --config-cache.
14287 # It is not useful on other systems. If it contains results you don't
14288 # want to keep, you may remove or edit it.
14290 # config.status only pays attention to the cache file if you give it
14291 # the --recheck option to rerun configure.
14293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14295 # following values.
14297 _ACEOF
14299 # The following way of writing the cache mishandles newlines in values,
14300 # but we know of no workaround that is simple, portable, and efficient.
14301 # So, we kill variables containing newlines.
14302 # Ultrix sh set writes to stderr and can't be redirected directly,
14303 # and sets the high bit in the cache file unless we assign to the vars.
14305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14306 eval ac_val=\$$ac_var
14307 case $ac_val in #(
14308 *${as_nl}*)
14309 case $ac_var in #(
14310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14311 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14312 esac
14313 case $ac_var in #(
14314 _ | IFS | as_nl) ;; #(
14315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14316 *) { eval $ac_var=; unset $ac_var;} ;;
14317 esac ;;
14318 esac
14319 done
14321 (set) 2>&1 |
14322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14323 *${as_nl}ac_space=\ *)
14324 # `set' does not quote correctly, so add quotes: double-quote
14325 # substitution turns \\\\ into \\, and sed turns \\ into \.
14326 sed -n \
14327 "s/'/'\\\\''/g;
14328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14329 ;; #(
14331 # `set' quotes correctly as required by POSIX, so do not add quotes.
14332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14334 esac |
14335 sort
14337 sed '
14338 /^ac_cv_env_/b end
14339 t clear
14340 :clear
14341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14342 t end
14343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14344 :end' >>confcache
14345 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14346 if test -w "$cache_file"; then
14347 if test "x$cache_file" != "x/dev/null"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14349 $as_echo "$as_me: updating cache $cache_file" >&6;}
14350 if test ! -f "$cache_file" || test -h "$cache_file"; then
14351 cat confcache >"$cache_file"
14352 else
14353 case $cache_file in #(
14354 */* | ?:*)
14355 mv -f confcache "$cache_file"$$ &&
14356 mv -f "$cache_file"$$ "$cache_file" ;; #(
14358 mv -f confcache "$cache_file" ;;
14359 esac
14362 else
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14364 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14367 rm -f confcache
14369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14370 # Let make expand exec_prefix.
14371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14373 DEFS=-DHAVE_CONFIG_H
14375 ac_libobjs=
14376 ac_ltlibobjs=
14378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14379 # 1. Remove the extension, and $U if already installed.
14380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14381 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14383 # will be set to the directory where LIBOBJS objects are built.
14384 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14385 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14386 done
14387 LIBOBJS=$ac_libobjs
14389 LTLIBOBJS=$ac_ltlibobjs
14393 : "${CONFIG_STATUS=./config.status}"
14394 ac_write_fail=0
14395 ac_clean_files_save=$ac_clean_files
14396 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14398 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14399 as_write_fail=0
14400 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14401 #! $SHELL
14402 # Generated by $as_me.
14403 # Run this file to recreate the current configuration.
14404 # Compiler output produced by configure, useful for debugging
14405 # configure, is in config.log if it exists.
14407 debug=false
14408 ac_cs_recheck=false
14409 ac_cs_silent=false
14411 SHELL=\${CONFIG_SHELL-$SHELL}
14412 export SHELL
14413 _ASEOF
14414 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14415 ## -------------------- ##
14416 ## M4sh Initialization. ##
14417 ## -------------------- ##
14419 # Be more Bourne compatible
14420 DUALCASE=1; export DUALCASE # for MKS sh
14421 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14422 emulate sh
14423 NULLCMD=:
14424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14425 # is contrary to our usage. Disable this feature.
14426 alias -g '${1+"$@"}'='"$@"'
14427 setopt NO_GLOB_SUBST
14428 else
14429 case `(set -o) 2>/dev/null` in #(
14430 *posix*) :
14431 set -o posix ;; #(
14432 *) :
14434 esac
14438 as_nl='
14440 export as_nl
14441 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14442 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14445 # Prefer a ksh shell builtin over an external printf program on Solaris,
14446 # but without wasting forks for bash or zsh.
14447 if test -z "$BASH_VERSION$ZSH_VERSION" \
14448 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14449 as_echo='print -r --'
14450 as_echo_n='print -rn --'
14451 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14452 as_echo='printf %s\n'
14453 as_echo_n='printf %s'
14454 else
14455 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14456 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14457 as_echo_n='/usr/ucb/echo -n'
14458 else
14459 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14460 as_echo_n_body='eval
14461 arg=$1;
14462 case $arg in #(
14463 *"$as_nl"*)
14464 expr "X$arg" : "X\\(.*\\)$as_nl";
14465 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14466 esac;
14467 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14469 export as_echo_n_body
14470 as_echo_n='sh -c $as_echo_n_body as_echo'
14472 export as_echo_body
14473 as_echo='sh -c $as_echo_body as_echo'
14476 # The user is always right.
14477 if test "${PATH_SEPARATOR+set}" != set; then
14478 PATH_SEPARATOR=:
14479 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14480 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14481 PATH_SEPARATOR=';'
14486 # IFS
14487 # We need space, tab and new line, in precisely that order. Quoting is
14488 # there to prevent editors from complaining about space-tab.
14489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14490 # splitting by setting IFS to empty value.)
14491 IFS=" "" $as_nl"
14493 # Find who we are. Look in the path if we contain no directory separator.
14494 as_myself=
14495 case $0 in #((
14496 *[\\/]* ) as_myself=$0 ;;
14497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14503 done
14504 IFS=$as_save_IFS
14507 esac
14508 # We did not find ourselves, most probably we were run as `sh COMMAND'
14509 # in which case we are not to be found in the path.
14510 if test "x$as_myself" = x; then
14511 as_myself=$0
14513 if test ! -f "$as_myself"; then
14514 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14515 exit 1
14518 # Unset variables that we do not need and which cause bugs (e.g. in
14519 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14520 # suppresses any "Segmentation fault" message there. '((' could
14521 # trigger a bug in pdksh 5.2.14.
14522 for as_var in BASH_ENV ENV MAIL MAILPATH
14523 do eval test x\${$as_var+set} = xset \
14524 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14525 done
14526 PS1='$ '
14527 PS2='> '
14528 PS4='+ '
14530 # NLS nuisances.
14531 LC_ALL=C
14532 export LC_ALL
14533 LANGUAGE=C
14534 export LANGUAGE
14536 # CDPATH.
14537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14540 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14541 # ----------------------------------------
14542 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14543 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14544 # script with STATUS, using 1 if that was 0.
14545 as_fn_error ()
14547 as_status=$1; test $as_status -eq 0 && as_status=1
14548 if test "$4"; then
14549 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14550 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14552 $as_echo "$as_me: error: $2" >&2
14553 as_fn_exit $as_status
14554 } # as_fn_error
14557 # as_fn_set_status STATUS
14558 # -----------------------
14559 # Set $? to STATUS, without forking.
14560 as_fn_set_status ()
14562 return $1
14563 } # as_fn_set_status
14565 # as_fn_exit STATUS
14566 # -----------------
14567 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14568 as_fn_exit ()
14570 set +e
14571 as_fn_set_status $1
14572 exit $1
14573 } # as_fn_exit
14575 # as_fn_unset VAR
14576 # ---------------
14577 # Portably unset VAR.
14578 as_fn_unset ()
14580 { eval $1=; unset $1;}
14582 as_unset=as_fn_unset
14583 # as_fn_append VAR VALUE
14584 # ----------------------
14585 # Append the text in VALUE to the end of the definition contained in VAR. Take
14586 # advantage of any shell optimizations that allow amortized linear growth over
14587 # repeated appends, instead of the typical quadratic growth present in naive
14588 # implementations.
14589 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14590 eval 'as_fn_append ()
14592 eval $1+=\$2
14594 else
14595 as_fn_append ()
14597 eval $1=\$$1\$2
14599 fi # as_fn_append
14601 # as_fn_arith ARG...
14602 # ------------------
14603 # Perform arithmetic evaluation on the ARGs, and store the result in the
14604 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14605 # must be portable across $(()) and expr.
14606 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14607 eval 'as_fn_arith ()
14609 as_val=$(( $* ))
14611 else
14612 as_fn_arith ()
14614 as_val=`expr "$@" || test $? -eq 1`
14616 fi # as_fn_arith
14619 if expr a : '\(a\)' >/dev/null 2>&1 &&
14620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14621 as_expr=expr
14622 else
14623 as_expr=false
14626 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14627 as_basename=basename
14628 else
14629 as_basename=false
14632 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14633 as_dirname=dirname
14634 else
14635 as_dirname=false
14638 as_me=`$as_basename -- "$0" ||
14639 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14640 X"$0" : 'X\(//\)$' \| \
14641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14642 $as_echo X/"$0" |
14643 sed '/^.*\/\([^/][^/]*\)\/*$/{
14644 s//\1/
14647 /^X\/\(\/\/\)$/{
14648 s//\1/
14651 /^X\/\(\/\).*/{
14652 s//\1/
14655 s/.*/./; q'`
14657 # Avoid depending upon Character Ranges.
14658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14661 as_cr_digits='0123456789'
14662 as_cr_alnum=$as_cr_Letters$as_cr_digits
14664 ECHO_C= ECHO_N= ECHO_T=
14665 case `echo -n x` in #(((((
14666 -n*)
14667 case `echo 'xy\c'` in
14668 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14669 xy) ECHO_C='\c';;
14670 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14671 ECHO_T=' ';;
14672 esac;;
14674 ECHO_N='-n';;
14675 esac
14677 rm -f conf$$ conf$$.exe conf$$.file
14678 if test -d conf$$.dir; then
14679 rm -f conf$$.dir/conf$$.file
14680 else
14681 rm -f conf$$.dir
14682 mkdir conf$$.dir 2>/dev/null
14684 if (echo >conf$$.file) 2>/dev/null; then
14685 if ln -s conf$$.file conf$$ 2>/dev/null; then
14686 as_ln_s='ln -s'
14687 # ... but there are two gotchas:
14688 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14689 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14690 # In both cases, we have to default to `cp -p'.
14691 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14692 as_ln_s='cp -p'
14693 elif ln conf$$.file conf$$ 2>/dev/null; then
14694 as_ln_s=ln
14695 else
14696 as_ln_s='cp -p'
14698 else
14699 as_ln_s='cp -p'
14701 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14702 rmdir conf$$.dir 2>/dev/null
14705 # as_fn_mkdir_p
14706 # -------------
14707 # Create "$as_dir" as a directory, including parents if necessary.
14708 as_fn_mkdir_p ()
14711 case $as_dir in #(
14712 -*) as_dir=./$as_dir;;
14713 esac
14714 test -d "$as_dir" || eval $as_mkdir_p || {
14715 as_dirs=
14716 while :; do
14717 case $as_dir in #(
14718 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14719 *) as_qdir=$as_dir;;
14720 esac
14721 as_dirs="'$as_qdir' $as_dirs"
14722 as_dir=`$as_dirname -- "$as_dir" ||
14723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14724 X"$as_dir" : 'X\(//\)[^/]' \| \
14725 X"$as_dir" : 'X\(//\)$' \| \
14726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14727 $as_echo X"$as_dir" |
14728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14729 s//\1/
14732 /^X\(\/\/\)[^/].*/{
14733 s//\1/
14736 /^X\(\/\/\)$/{
14737 s//\1/
14740 /^X\(\/\).*/{
14741 s//\1/
14744 s/.*/./; q'`
14745 test -d "$as_dir" && break
14746 done
14747 test -z "$as_dirs" || eval "mkdir $as_dirs"
14748 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14751 } # as_fn_mkdir_p
14752 if mkdir -p . 2>/dev/null; then
14753 as_mkdir_p='mkdir -p "$as_dir"'
14754 else
14755 test -d ./-p && rmdir ./-p
14756 as_mkdir_p=false
14759 if test -x / >/dev/null 2>&1; then
14760 as_test_x='test -x'
14761 else
14762 if ls -dL / >/dev/null 2>&1; then
14763 as_ls_L_option=L
14764 else
14765 as_ls_L_option=
14767 as_test_x='
14768 eval sh -c '\''
14769 if test -d "$1"; then
14770 test -d "$1/.";
14771 else
14772 case $1 in #(
14773 -*)set "./$1";;
14774 esac;
14775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14776 ???[sx]*):;;*)false;;esac;fi
14777 '\'' sh
14780 as_executable_p=$as_test_x
14782 # Sed expression to map a string onto a valid CPP name.
14783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14785 # Sed expression to map a string onto a valid variable name.
14786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14789 exec 6>&1
14790 ## ----------------------------------- ##
14791 ## Main body of $CONFIG_STATUS script. ##
14792 ## ----------------------------------- ##
14793 _ASEOF
14794 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 # Save the log message, to keep $0 and so on meaningful, and to
14798 # report actual input values of CONFIG_FILES etc. instead of their
14799 # values after options handling.
14800 ac_log="
14801 This file was extended by $as_me, which was
14802 generated by GNU Autoconf 2.68. Invocation command line was
14804 CONFIG_FILES = $CONFIG_FILES
14805 CONFIG_HEADERS = $CONFIG_HEADERS
14806 CONFIG_LINKS = $CONFIG_LINKS
14807 CONFIG_COMMANDS = $CONFIG_COMMANDS
14808 $ $0 $@
14810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14813 _ACEOF
14815 case $ac_config_files in *"
14816 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14817 esac
14819 case $ac_config_headers in *"
14820 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14821 esac
14824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14825 # Files that config.status was made for.
14826 config_files="$ac_config_files"
14827 config_headers="$ac_config_headers"
14828 config_commands="$ac_config_commands"
14830 _ACEOF
14832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14833 ac_cs_usage="\
14834 \`$as_me' instantiates files and other configuration actions
14835 from templates according to the current configuration. Unless the files
14836 and actions are specified as TAGs, all are instantiated by default.
14838 Usage: $0 [OPTION]... [TAG]...
14840 -h, --help print this help, then exit
14841 -V, --version print version number and configuration settings, then exit
14842 --config print configuration, then exit
14843 -q, --quiet, --silent
14844 do not print progress messages
14845 -d, --debug don't remove temporary files
14846 --recheck update $as_me by reconfiguring in the same conditions
14847 --file=FILE[:TEMPLATE]
14848 instantiate the configuration file FILE
14849 --header=FILE[:TEMPLATE]
14850 instantiate the configuration header FILE
14852 Configuration files:
14853 $config_files
14855 Configuration headers:
14856 $config_headers
14858 Configuration commands:
14859 $config_commands
14861 Report bugs to the package provider."
14863 _ACEOF
14864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14865 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14866 ac_cs_version="\\
14867 config.status
14868 configured by $0, generated by GNU Autoconf 2.68,
14869 with options \\"\$ac_cs_config\\"
14871 Copyright (C) 2010 Free Software Foundation, Inc.
14872 This config.status script is free software; the Free Software Foundation
14873 gives unlimited permission to copy, distribute and modify it."
14875 ac_pwd='$ac_pwd'
14876 srcdir='$srcdir'
14877 test -n "\$AWK" || AWK=awk
14878 _ACEOF
14880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14881 # The default lists apply if the user does not specify any file.
14882 ac_need_defaults=:
14883 while test $# != 0
14885 case $1 in
14886 --*=?*)
14887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14889 ac_shift=:
14891 --*=)
14892 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14893 ac_optarg=
14894 ac_shift=:
14897 ac_option=$1
14898 ac_optarg=$2
14899 ac_shift=shift
14901 esac
14903 case $ac_option in
14904 # Handling of the options.
14905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14906 ac_cs_recheck=: ;;
14907 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14908 $as_echo "$ac_cs_version"; exit ;;
14909 --config | --confi | --conf | --con | --co | --c )
14910 $as_echo "$ac_cs_config"; exit ;;
14911 --debug | --debu | --deb | --de | --d | -d )
14912 debug=: ;;
14913 --file | --fil | --fi | --f )
14914 $ac_shift
14915 case $ac_optarg in
14916 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14917 '') as_fn_error $? "missing file argument" ;;
14918 esac
14919 as_fn_append CONFIG_FILES " '$ac_optarg'"
14920 ac_need_defaults=false;;
14921 --header | --heade | --head | --hea )
14922 $ac_shift
14923 case $ac_optarg in
14924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14925 esac
14926 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14927 ac_need_defaults=false;;
14928 --he | --h)
14929 # Conflict between --help and --header
14930 as_fn_error $? "ambiguous option: \`$1'
14931 Try \`$0 --help' for more information.";;
14932 --help | --hel | -h )
14933 $as_echo "$ac_cs_usage"; exit ;;
14934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14936 ac_cs_silent=: ;;
14938 # This is an error.
14939 -*) as_fn_error $? "unrecognized option: \`$1'
14940 Try \`$0 --help' for more information." ;;
14942 *) as_fn_append ac_config_targets " $1"
14943 ac_need_defaults=false ;;
14945 esac
14946 shift
14947 done
14949 ac_configure_extra_args=
14951 if $ac_cs_silent; then
14952 exec 6>/dev/null
14953 ac_configure_extra_args="$ac_configure_extra_args --silent"
14956 _ACEOF
14957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14958 if \$ac_cs_recheck; then
14959 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14960 shift
14961 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14962 CONFIG_SHELL='$SHELL'
14963 export CONFIG_SHELL
14964 exec "\$@"
14967 _ACEOF
14968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969 exec 5>>config.log
14971 echo
14972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14973 ## Running $as_me. ##
14974 _ASBOX
14975 $as_echo "$ac_log"
14976 } >&5
14978 _ACEOF
14979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14981 # INIT-COMMANDS
14984 aros_host_exe_suffix=${aros_host_exe_suffix}
14985 aros_tools_dir=${aros_tools_dir}
14986 aros_target_cpu=${aros_target_cpu}
14987 aros_target_arch=${aros_target_arch}
14988 aros_target_suffix=${aros_target_suffix}
14989 orig_target_nm=${orig_target_nm}
14990 orig_target_as=${orig_target_as}
14991 orig_target_ar=${orig_target_ar}
14992 orig_target_ranlib=${orig_target_ranlib}
14993 orig_target_objdump=${orig_target_objdump}
14994 orig_target_objcopy=${orig_target_objcopy}
14995 orig_target_strip=${orig_target_strip}
14996 aros_kernel_ld=${aros_kernel_ld}
14999 aros_tools_dir=${aros_tools_dir}
15002 _ACEOF
15004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15006 # Handling of arguments.
15007 for ac_config_target in $ac_config_targets
15009 case $ac_config_target in
15010 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15011 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15012 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15014 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15015 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15016 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15017 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15018 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15019 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15020 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15021 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15022 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15023 "${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" ;;
15024 "${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" ;;
15025 "${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" ;;
15026 "${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" ;;
15027 "${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" ;;
15028 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15029 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15030 "${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" ;;
15032 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15033 esac
15034 done
15037 # If the user did not use the arguments to specify the items to instantiate,
15038 # then the envvar interface is used. Set only those that are not.
15039 # We use the long form for the default assignment because of an extremely
15040 # bizarre bug on SunOS 4.1.3.
15041 if $ac_need_defaults; then
15042 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15043 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15044 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15047 # Have a temporary directory for convenience. Make it in the build tree
15048 # simply because there is no reason against having it here, and in addition,
15049 # creating and moving files from /tmp can sometimes cause problems.
15050 # Hook for its removal unless debugging.
15051 # Note that there is a small window in which the directory will not be cleaned:
15052 # after its creation but before its name has been assigned to `$tmp'.
15053 $debug ||
15055 tmp= ac_tmp=
15056 trap 'exit_status=$?
15057 : "${ac_tmp:=$tmp}"
15058 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15060 trap 'as_fn_exit 1' 1 2 13 15
15062 # Create a (secure) tmp directory for tmp files.
15065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15066 test -d "$tmp"
15067 } ||
15069 tmp=./conf$$-$RANDOM
15070 (umask 077 && mkdir "$tmp")
15071 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15072 ac_tmp=$tmp
15074 # Set up the scripts for CONFIG_FILES section.
15075 # No need to generate them if there are no CONFIG_FILES.
15076 # This happens for instance with `./config.status config.h'.
15077 if test -n "$CONFIG_FILES"; then
15080 ac_cr=`echo X | tr X '\015'`
15081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15082 # But we know of no other shell where ac_cr would be empty at this
15083 # point, so we can use a bashism as a fallback.
15084 if test "x$ac_cr" = x; then
15085 eval ac_cr=\$\'\\r\'
15087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15089 ac_cs_awk_cr='\\r'
15090 else
15091 ac_cs_awk_cr=$ac_cr
15094 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15095 _ACEOF
15099 echo "cat >conf$$subs.awk <<_ACEOF" &&
15100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15101 echo "_ACEOF"
15102 } >conf$$subs.sh ||
15103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15105 ac_delim='%!_!# '
15106 for ac_last_try in false false false false false :; do
15107 . ./conf$$subs.sh ||
15108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15111 if test $ac_delim_n = $ac_delim_num; then
15112 break
15113 elif $ac_last_try; then
15114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15115 else
15116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15118 done
15119 rm -f conf$$subs.sh
15121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15122 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15123 _ACEOF
15124 sed -n '
15126 s/^/S["/; s/!.*/"]=/
15129 s/^[^!]*!//
15130 :repl
15131 t repl
15132 s/'"$ac_delim"'$//
15133 t delim
15136 s/\(.\{148\}\)..*/\1/
15137 t more1
15138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15141 b repl
15142 :more1
15143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15146 s/.\{148\}//
15147 t nl
15148 :delim
15150 s/\(.\{148\}\)..*/\1/
15151 t more2
15152 s/["\\]/\\&/g; s/^/"/; s/$/"/
15155 :more2
15156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15159 s/.\{148\}//
15160 t delim
15161 ' <conf$$subs.awk | sed '
15162 /^[^""]/{
15164 s/\n//
15166 ' >>$CONFIG_STATUS || ac_write_fail=1
15167 rm -f conf$$subs.awk
15168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15169 _ACAWK
15170 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15171 for (key in S) S_is_set[key] = 1
15172 FS = "\a"
15176 line = $ 0
15177 nfields = split(line, field, "@")
15178 substed = 0
15179 len = length(field[1])
15180 for (i = 2; i < nfields; i++) {
15181 key = field[i]
15182 keylen = length(key)
15183 if (S_is_set[key]) {
15184 value = S[key]
15185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15186 len += length(value) + length(field[++i])
15187 substed = 1
15188 } else
15189 len += 1 + keylen
15192 print line
15195 _ACAWK
15196 _ACEOF
15197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15200 else
15202 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15203 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15204 _ACEOF
15206 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15207 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15208 # trailing colons and then remove the whole line if VPATH becomes empty
15209 # (actually we leave an empty line to preserve line numbers).
15210 if test "x$srcdir" = x.; then
15211 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15213 s///
15214 s/^/:/
15215 s/[ ]*$/:/
15216 s/:\$(srcdir):/:/g
15217 s/:\${srcdir}:/:/g
15218 s/:@srcdir@:/:/g
15219 s/^:*//
15220 s/:*$//
15222 s/\(=[ ]*\).*/\1/
15224 s/\n//
15225 s/^[^=]*=[ ]*$//
15229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15230 fi # test -n "$CONFIG_FILES"
15232 # Set up the scripts for CONFIG_HEADERS section.
15233 # No need to generate them if there are no CONFIG_HEADERS.
15234 # This happens for instance with `./config.status Makefile'.
15235 if test -n "$CONFIG_HEADERS"; then
15236 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15237 BEGIN {
15238 _ACEOF
15240 # Transform confdefs.h into an awk script `defines.awk', embedded as
15241 # here-document in config.status, that substitutes the proper values into
15242 # config.h.in to produce config.h.
15244 # Create a delimiter string that does not exist in confdefs.h, to ease
15245 # handling of long lines.
15246 ac_delim='%!_!# '
15247 for ac_last_try in false false :; do
15248 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15249 if test -z "$ac_tt"; then
15250 break
15251 elif $ac_last_try; then
15252 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15253 else
15254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15256 done
15258 # For the awk script, D is an array of macro values keyed by name,
15259 # likewise P contains macro parameters if any. Preserve backslash
15260 # newline sequences.
15262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15263 sed -n '
15264 s/.\{148\}/&'"$ac_delim"'/g
15265 t rset
15266 :rset
15267 s/^[ ]*#[ ]*define[ ][ ]*/ /
15268 t def
15270 :def
15271 s/\\$//
15272 t bsnl
15273 s/["\\]/\\&/g
15274 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15275 D["\1"]=" \3"/p
15276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15278 :bsnl
15279 s/["\\]/\\&/g
15280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15281 D["\1"]=" \3\\\\\\n"\\/p
15282 t cont
15283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15284 t cont
15286 :cont
15288 s/.\{148\}/&'"$ac_delim"'/g
15289 t clear
15290 :clear
15291 s/\\$//
15292 t bsnlc
15293 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15295 :bsnlc
15296 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15297 b cont
15298 ' <confdefs.h | sed '
15299 s/'"$ac_delim"'/"\\\
15300 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303 for (key in D) D_is_set[key] = 1
15304 FS = "\a"
15306 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15307 line = \$ 0
15308 split(line, arg, " ")
15309 if (arg[1] == "#") {
15310 defundef = arg[2]
15311 mac1 = arg[3]
15312 } else {
15313 defundef = substr(arg[1], 2)
15314 mac1 = arg[2]
15316 split(mac1, mac2, "(") #)
15317 macro = mac2[1]
15318 prefix = substr(line, 1, index(line, defundef) - 1)
15319 if (D_is_set[macro]) {
15320 # Preserve the white space surrounding the "#".
15321 print prefix "define", macro P[macro] D[macro]
15322 next
15323 } else {
15324 # Replace #undef with comments. This is necessary, for example,
15325 # in the case of _POSIX_SOURCE, which is predefined and required
15326 # on some systems where configure will not decide to define it.
15327 if (defundef == "undef") {
15328 print "/*", prefix defundef, macro, "*/"
15329 next
15333 { print }
15334 _ACAWK
15335 _ACEOF
15336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15337 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15338 fi # test -n "$CONFIG_HEADERS"
15341 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15342 shift
15343 for ac_tag
15345 case $ac_tag in
15346 :[FHLC]) ac_mode=$ac_tag; continue;;
15347 esac
15348 case $ac_mode$ac_tag in
15349 :[FHL]*:*);;
15350 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15351 :[FH]-) ac_tag=-:-;;
15352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15353 esac
15354 ac_save_IFS=$IFS
15355 IFS=:
15356 set x $ac_tag
15357 IFS=$ac_save_IFS
15358 shift
15359 ac_file=$1
15360 shift
15362 case $ac_mode in
15363 :L) ac_source=$1;;
15364 :[FH])
15365 ac_file_inputs=
15366 for ac_f
15368 case $ac_f in
15369 -) ac_f="$ac_tmp/stdin";;
15370 *) # Look for the file first in the build tree, then in the source tree
15371 # (if the path is not absolute). The absolute path cannot be DOS-style,
15372 # because $ac_f cannot contain `:'.
15373 test -f "$ac_f" ||
15374 case $ac_f in
15375 [\\/$]*) false;;
15376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15377 esac ||
15378 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15379 esac
15380 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15381 as_fn_append ac_file_inputs " '$ac_f'"
15382 done
15384 # Let's still pretend it is `configure' which instantiates (i.e., don't
15385 # use $as_me), people would be surprised to read:
15386 # /* config.h. Generated by config.status. */
15387 configure_input='Generated from '`
15388 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15389 `' by configure.'
15390 if test x"$ac_file" != x-; then
15391 configure_input="$ac_file. $configure_input"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15393 $as_echo "$as_me: creating $ac_file" >&6;}
15395 # Neutralize special characters interpreted by sed in replacement strings.
15396 case $configure_input in #(
15397 *\&* | *\|* | *\\* )
15398 ac_sed_conf_input=`$as_echo "$configure_input" |
15399 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15400 *) ac_sed_conf_input=$configure_input;;
15401 esac
15403 case $ac_tag in
15404 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15406 esac
15408 esac
15410 ac_dir=`$as_dirname -- "$ac_file" ||
15411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$ac_file" : 'X\(//\)[^/]' \| \
15413 X"$ac_file" : 'X\(//\)$' \| \
15414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X"$ac_file" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15417 s//\1/
15420 /^X\(\/\/\)[^/].*/{
15421 s//\1/
15424 /^X\(\/\/\)$/{
15425 s//\1/
15428 /^X\(\/\).*/{
15429 s//\1/
15432 s/.*/./; q'`
15433 as_dir="$ac_dir"; as_fn_mkdir_p
15434 ac_builddir=.
15436 case "$ac_dir" in
15437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15440 # A ".." for each directory in $ac_dir_suffix.
15441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15442 case $ac_top_builddir_sub in
15443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15445 esac ;;
15446 esac
15447 ac_abs_top_builddir=$ac_pwd
15448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15449 # for backward compatibility:
15450 ac_top_builddir=$ac_top_build_prefix
15452 case $srcdir in
15453 .) # We are building in place.
15454 ac_srcdir=.
15455 ac_top_srcdir=$ac_top_builddir_sub
15456 ac_abs_top_srcdir=$ac_pwd ;;
15457 [\\/]* | ?:[\\/]* ) # Absolute name.
15458 ac_srcdir=$srcdir$ac_dir_suffix;
15459 ac_top_srcdir=$srcdir
15460 ac_abs_top_srcdir=$srcdir ;;
15461 *) # Relative name.
15462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15463 ac_top_srcdir=$ac_top_build_prefix$srcdir
15464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15465 esac
15466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15469 case $ac_mode in
15472 # CONFIG_FILE
15475 _ACEOF
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478 # If the template does not know about datarootdir, expand it.
15479 # FIXME: This hack should be removed a few years after 2.60.
15480 ac_datarootdir_hack=; ac_datarootdir_seen=
15481 ac_sed_dataroot='
15482 /datarootdir/ {
15486 /@datadir@/p
15487 /@docdir@/p
15488 /@infodir@/p
15489 /@localedir@/p
15490 /@mandir@/p'
15491 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15492 *datarootdir*) ac_datarootdir_seen=yes;;
15493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15495 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15496 _ACEOF
15497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498 ac_datarootdir_hack='
15499 s&@datadir@&$datadir&g
15500 s&@docdir@&$docdir&g
15501 s&@infodir@&$infodir&g
15502 s&@localedir@&$localedir&g
15503 s&@mandir@&$mandir&g
15504 s&\\\${datarootdir}&$datarootdir&g' ;;
15505 esac
15506 _ACEOF
15508 # Neutralize VPATH when `$srcdir' = `.'.
15509 # Shell code in configure.ac might set extrasub.
15510 # FIXME: do we really want to maintain this feature?
15511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512 ac_sed_extra="$ac_vpsub
15513 $extrasub
15514 _ACEOF
15515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15518 s|@configure_input@|$ac_sed_conf_input|;t t
15519 s&@top_builddir@&$ac_top_builddir_sub&;t t
15520 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15521 s&@srcdir@&$ac_srcdir&;t t
15522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15523 s&@top_srcdir@&$ac_top_srcdir&;t t
15524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15525 s&@builddir@&$ac_builddir&;t t
15526 s&@abs_builddir@&$ac_abs_builddir&;t t
15527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15528 $ac_datarootdir_hack
15530 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15531 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15533 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15534 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15536 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15538 which seems to be undefined. Please make sure it is defined" >&5
15539 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15540 which seems to be undefined. Please make sure it is defined" >&2;}
15542 rm -f "$ac_tmp/stdin"
15543 case $ac_file in
15544 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15545 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15546 esac \
15547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15551 # CONFIG_HEADER
15553 if test x"$ac_file" != x-; then
15555 $as_echo "/* $configure_input */" \
15556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15557 } >"$ac_tmp/config.h" \
15558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15559 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15561 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15562 else
15563 rm -f "$ac_file"
15564 mv "$ac_tmp/config.h" "$ac_file" \
15565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15567 else
15568 $as_echo "/* $configure_input */" \
15569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15570 || as_fn_error $? "could not create -" "$LINENO" 5
15574 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15575 $as_echo "$as_me: executing $ac_file commands" >&6;}
15577 esac
15580 case $ac_file$ac_mode in
15581 "compiler_executable":C)
15582 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15583 mkdir -p $prefix
15584 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15585 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15587 echo ${prefix2}
15588 echo ${prefix3}
15589 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15591 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15592 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15593 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15594 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15595 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15596 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15597 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15599 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15601 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15603 esac
15604 done # for ac_tag
15607 as_fn_exit 0
15608 _ACEOF
15609 ac_clean_files=$ac_clean_files_save
15611 test $ac_write_fail = 0 ||
15612 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15615 # configure is writing to config.log, and then calls config.status.
15616 # config.status does its own redirection, appending to config.log.
15617 # Unfortunately, on DOS this fails, as config.log is still kept open
15618 # by configure, so config.status won't be able to write to it; its
15619 # output is simply discarded. So we exec the FD to /dev/null,
15620 # effectively closing config.log, so it can be properly (re)opened and
15621 # appended to by config.status. When coming back to configure, we
15622 # need to make the FD available again.
15623 if test "$no_create" != yes; then
15624 ac_cs_success=:
15625 ac_config_status_args=
15626 test "$silent" = yes &&
15627 ac_config_status_args="$ac_config_status_args --quiet"
15628 exec 5>/dev/null
15629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15630 exec 5>>config.log
15631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15632 # would make configure fail if this is the last instruction.
15633 $ac_cs_success || as_fn_exit 1
15635 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15637 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15642 #XXX compatability...
15643 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15645 if test -n "$aros_shared_cflags" ; then
15646 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15647 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg