Reapplied r44288:
[AROS.git] / configure
blob1a2af5767ce0995307a0d26973bf81650acfbbc3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_palm_debug_hack
623 aros_serial_debug
624 aros_host_sdl_libs
625 aros_host_sdl_cflags
626 aros_host_x11_libdirs
627 aros_host_x11_includes
628 DO_VIDMODE_SUPPORT
629 DO_XSHM_SUPPORT
630 aros_default_wbdepth
631 aros_default_wbheight
632 aros_default_wbwidth
633 oss_library_target
634 pci_hidd_target
635 sdl_hidd_target
636 x11_hidd_target
637 aros_cflags_format_security
638 aros_cflags_strict_overflow
639 aros_cflags_enum_compare
640 aros_cflags_array_bounds
641 aros_cflags_unused_but_set_variable
642 crosstools_cxx_target
643 crosstools_target
644 aros_target_strip_flags
645 aros_target_genmap
646 aros_debug_ldflags
647 aros_debug_aflags
648 aros_debug_cflags
649 aros_target_cflags
650 aros_kernel_ldflags
651 aros_kernel_objcflags
652 aros_kernel_includes
653 aros_kernel_cflags
654 aros_shared_ldflags
655 aros_shared_aflags
656 aros_shared_cflags
657 aros_config_ldflags
658 aros_config_aflags
659 aros_config_cflags
660 aros_arch_libs
661 aros_compiler_libs
662 aros_object_format
663 aros_shared_ld
664 aros_shared_default
665 aros_target_nm
666 aros_target_strip
667 aros_target_objcopy
668 aros_target_objdump
669 aros_target_cc_path
670 aros_target_cc_includes
671 aros_target_ld
672 aros_target_as
673 aros_target_cpp
674 aros_target_cxx
675 aros_target_cc
676 aros_plain_ar
677 aros_plain_nm
678 aros_target_ranlib
679 aros_target_ar
680 aros_target_suffix
681 aros_target_variant
682 aros_target_cpu
683 aros_target_family
684 aros_target_arch
685 aros_target_bootloader
686 aros_target_iconset
687 aros_target_guitheme
688 aros_tools_dir
689 aros_host_lib_suffix
690 aros_host_exe_suffix
691 aros_host_mkargs
692 aros_host_mkdep
693 aros_host_debug
694 aros_host_ldflags
695 gnu89_inline
696 aros_host_cxxflags
697 aros_host_cflags
698 aros_host_make
699 aros_host_cxx
700 aros_host_cc
701 aros_host_cpp
702 aros_host_cpu
703 aros_host_arch
704 aros_cc_pre
705 aros_amigaos_compliance
706 AROS_PORTSSRCDIR
707 AROS_CROSSTOOLSDIR
708 SRCDIR
709 AROS_BUILDDIR_UNIX
710 AROS_BUILDDIR
711 aros_target_toolchain
712 aros_flavour_uc
713 aros_flavour
714 aros_cpu
715 aros_arch
716 SDL_LIBS
717 SDL_CFLAGS
718 SDL_CONFIG
719 XMKMF
720 aros_cflags_iquote_end
721 aros_cflags_iquote
722 kernel_cflags_iquote_end
723 kernel_cflags_iquote
724 host_cflags_iquote_end
725 host_cflags_iquote
726 aros_target_nostdlib_ldflags
727 aros_target_detach_ldflags
728 aros_target_nix_ldflags
729 aros_target_nostartup_ldflags
730 aros_target_nostdinc_cflags
731 aros_kernel_rescomp
732 orig_target_objdump
733 orig_target_objcopy
734 orig_target_strip
735 orig_target_nm
736 orig_target_ranlib
737 orig_target_ar
738 orig_target_as
739 orig_target_ld
740 orig_target_cxx
741 orig_target_cc
742 orig_target_cpp
743 aros_kernel_objdump
744 aros_kernel_objcopy
745 aros_kernel_strip
746 aros_kernel_nm
747 aros_kernel_ranlib
748 aros_kernel_ar
749 aros_kernel_as
750 aros_kernel_ld
751 aros_kernel_cxx
752 aros_kernel_cc
753 aros_kernel_cpp
755 android_tool
756 CCACHE
757 DISTCC
758 LIBOBJS
759 EGREP
760 GREP
762 TEST
765 pkgpyexecdir
766 pyexecdir
767 pkgpythondir
768 pythondir
769 PYTHON_PLATFORM
770 PYTHON_EXEC_PREFIX
771 PYTHON_PREFIX
772 PYTHON_VERSION
773 PYTHON
774 PATCH
775 CHMOD
777 PPMTOILBM
778 PNGTOPNM
779 FLEX
780 BISON
783 UNIQ
784 SORT
785 TOUCH
786 MKDIR
787 ECHO
791 aros_host_strip
792 aros_host_ranlib
793 aros_host_ar
794 aros_host_automake
795 aros_host_autoheader
796 aros_host_autoconf
797 aros_host_aclocal
798 aros_host_ld
799 MMAKE
802 ac_ct_CXX
803 CXXFLAGS
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_build_type
862 enable_debug
863 enable_distcc
864 enable_ccache
865 with_gcc_version
866 with_optimization
867 with_paranoia
868 enable_target_variant
869 with_xcode
870 with_sdk_version
871 with_sdk
872 with_ndk
873 with_ndk_version
874 enable_amigaos_compliance
875 with_kernel_toolchain_prefix
876 with_elf_toolchain_prefix
877 with_aros_toolchain
878 enable_crosstools
879 with_aros_toolchain_install
880 with_cpu
881 with_fpu
882 with_float
883 with_aros_gcc
884 with_portssources
885 with_bootloader
886 with_iconset
887 with_theme
888 enable_includes
889 with_resolution
890 with_serial_debug
891 enable_palm_debug_hack
892 enable_nesting_supervisor
893 enable_mmu
894 enable_x11_hidd
895 with_x
896 enable_x11_shm
897 enable_x11_vidmode
898 enable_sdl_hidd
899 with_sdl_prefix
900 with_sdl_exec_prefix
901 enable_sdltest
902 enable_dbus
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
913 CXXFLAGS
916 PYTHON
917 XMKMF'
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
968 ac_prev=
969 ac_dashdash=
970 for ac_option
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
989 ac_dashdash=yes ;;
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 esac
1326 done
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used" >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1412 /^X\(\/\/\)$/{
1413 s//\1/
1416 /^X\(\/\).*/{
1417 s//\1/
1420 s/.*/./; q'`
1421 srcdir=$ac_confdir
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 srcdir=..
1425 else
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1469 Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1515 cat <<\_ACEOF
1517 X features:
1518 --x-includes=DIR X include files are in DIR
1519 --x-libraries=DIR X library files are in DIR
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 _ACEOF
1527 if test -n "$ac_init_help"; then
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-build-type=TYPE
1536 Select the build type. Available types are:
1537 personal, nightly, snapshot, milestone, release. Do
1538 NOT use this option unless you know what you are
1539 doing! (default=personal)
1540 --enable-debug=list Enable different types of debug. Commas or
1541 whitespaces can be used to separate the items in the
1542 list. Available types of debug are: all, none,
1543 messages, stack, mungwall, modules, symbols. If no
1544 list is provided then "all" is assumed.
1545 (default=none)
1546 --enable-distcc Use distcc as a front end to the compiler
1547 (default=no).
1548 --enable-ccache Use ccache as a front end to the compiler
1549 (default=no).
1550 --enable-target-variant=NAME
1551 Enable a specific target variant(default=none)
1552 --enable-amigaos-compliance=VERSION
1553 Enforce userspace AmigaOS compliance to a specific
1554 KickStart version (default=none).
1555 --disable-crosstools Do not build cross-compiler toolchain
1556 --enable-includes=dir Alternative system include directory
1557 --enable-palm-debug-hack
1558 Enable palm debug output hack in palm native
1559 (default=no)
1560 --enable-nesting-supervisor
1561 Enable nesting supervisor support in unix
1562 (default=no)
1563 --disable-mmu Disable MMU support (default=enabled)
1564 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1565 --enable-x11-shm use X11 shared memory (default=auto)
1566 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1567 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1568 --disable-sdltest Do not try to compile and run a test SDL program
1569 --enable-dbus Enable DBUS support via dbus.library (default=no)
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-kernel-gcc-version=VERSION
1575 Use host gcc-VERSION for building AROS
1576 --with-gcc-version=VERSION
1577 Use host gcc-VERSION for building AROS
1578 --with-optimization=FLAGS
1579 Use optimization flags FLAGS (default=-O2).
1580 --with-paranoia=FLAGS CC flags to enable paranoia
1581 --with-xcode=PATH Specify XCode path for iOS targets
1582 (default=/Developer).
1583 --with-sdk-version=VERSION
1584 Use iOS SDK version VERSION (default=4.1).
1585 --with-sdk=PATH Specify Android SDK path
1586 (default=$default_android_sdk).
1587 --with-ndk=PATH Specify Android NDK path (default=none).
1588 --with-sdk-version=LEVEL
1589 Use Android SDK for API LEVEL (default=12).
1590 --with-ndk-version=LEVEL
1591 Use Android NDK for API LEVEL (default=9).
1592 --with-kernel-toolchain-prefix=...
1593 Specify crosscompile toolchain prefix for kernel
1594 objects
1595 --with-elf-toolchain-prefix=...
1596 Specify crosscompile toolchain prefix to wrap for
1597 AROS objects
1598 --with-aros-toolchain=PREFIX
1599 Specify prebuilt AROS toolchain
1600 --with-aros-toolchain-install=DIR
1601 Where to install or search for cross tools binaries
1602 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1603 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1604 --with-float=<spec> Specify floating point ABI
1605 (default=$gcc_default_float_abi).
1606 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1607 --with-portssources=DIR Where to download sourcecode for external ports
1608 --with-bootloader=NAME Use a specific bootloader
1609 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1610 --with-theme=NAME Use a specific GUI Theme
1611 --with-resolution=XRESxYRESxDEPTH
1612 Default resolution of the initial WorkbenchScreen
1613 --with-serial-debug Enable serial debug output in native (default=no)
1614 --with-x use the X Window System
1615 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1616 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1618 Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
1623 LIBS libraries to pass to the linker, e.g. -l<library>
1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 CPP C preprocessor
1629 PYTHON the Python interpreter
1630 XMKMF Path to xmkmf, Makefile generator for X Window System
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.68
1701 Copyright (C) 2010 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_c_try_cpp LINENO
1789 # ----------------------
1790 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_cpp ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_cpp conftest.$ac_ext"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } > conftest.i && {
1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_cpp
1825 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1828 # the include files in INCLUDES and setting the cache variable VAR
1829 # accordingly.
1830 ac_fn_c_check_header_mongrel ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if eval \${$3+:} false; then :
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 else
1843 # Is the header compilable?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1845 $as_echo_n "checking $2 usability... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_header_compiler=yes
1853 else
1854 ac_header_compiler=no
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1858 $as_echo "$ac_header_compiler" >&6; }
1860 # Is the header present?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1862 $as_echo_n "checking $2 presence... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_cpp "$LINENO"; then :
1868 ac_header_preproc=yes
1869 else
1870 ac_header_preproc=no
1872 rm -f conftest.err conftest.i conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1874 $as_echo "$ac_header_preproc" >&6; }
1876 # So? What about this header?
1877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 yes:no: )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1880 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 no:yes:* )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1886 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1888 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1890 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1892 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 esac
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=\$ac_header_compiler"
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_header_mongrel
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1937 ac_status=$?
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1952 } # ac_fn_c_try_run
1954 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1955 # -------------------------------------------------------
1956 # Tests whether HEADER exists and can be compiled using the include files in
1957 # INCLUDES, setting the cache variable VAR accordingly.
1958 ac_fn_c_check_header_compile ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval \${$3+:} false; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_header_compile
1985 # ac_fn_c_try_link LINENO
1986 # -----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_c_try_link ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 $as_test_x conftest$ac_exeext
2013 }; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=1
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2029 } # ac_fn_c_try_link
2031 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2032 # ----------------------------------------------------
2033 # Tries to find if the field MEMBER exists in type AGGR, after including
2034 # INCLUDES, setting cache variable VAR accordingly.
2035 ac_fn_c_check_member ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2039 $as_echo_n "checking for $2.$3... " >&6; }
2040 if eval \${$4+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static $2 ac_aggr;
2050 if (ac_aggr.$3)
2051 return 0;
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 eval "$4=yes"
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static $2 ac_aggr;
2066 if (sizeof ac_aggr.$3)
2067 return 0;
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 eval "$4=yes"
2074 else
2075 eval "$4=no"
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$4
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_member
2088 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2089 # ---------------------------------------------
2090 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2091 # accordingly.
2092 ac_fn_c_check_decl ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 as_decl_name=`echo $2|sed 's/ *(.*//'`
2096 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2098 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 #ifndef $as_decl_name
2109 #ifdef __cplusplus
2110 (void) $as_decl_use;
2111 #else
2112 (void) $as_decl_name;
2113 #endif
2114 #endif
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$3=yes"
2122 else
2123 eval "$3=no"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_decl
2134 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2135 # -------------------------------------------
2136 # Tests whether TYPE exists after having included INCLUDES, setting cache
2137 # variable VAR accordingly.
2138 ac_fn_c_check_type ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 eval "$3=no"
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof ($2))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 if (sizeof (($2)))
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2174 else
2175 eval "$3=yes"
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_type
2188 # ac_fn_c_check_func LINENO FUNC VAR
2189 # ----------------------------------
2190 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2191 ac_fn_c_check_func ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2203 #define $2 innocuous_$2
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $2 (); below.
2207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2208 <limits.h> exists even on freestanding compilers. */
2210 #ifdef __STDC__
2211 # include <limits.h>
2212 #else
2213 # include <assert.h>
2214 #endif
2216 #undef $2
2218 /* Override any GCC internal prototype to avoid an error.
2219 Use char because int might match the return type of a GCC
2220 builtin and then its argument prototype would still apply. */
2221 #ifdef __cplusplus
2222 extern "C"
2223 #endif
2224 char $2 ();
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined __stub_$2 || defined __stub___$2
2229 choke me
2230 #endif
2233 main ()
2235 return $2 ();
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_link "$LINENO"; then :
2241 eval "$3=yes"
2242 else
2243 eval "$3=no"
2245 rm -f core conftest.err conftest.$ac_objext \
2246 conftest$ac_exeext conftest.$ac_ext
2248 eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_func
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by $as_me, which was
2259 generated by GNU Autoconf 2.68. Invocation command line was
2261 $ $0 $@
2263 _ACEOF
2264 exec 5>>config.log
2266 cat <<_ASUNAME
2267 ## --------- ##
2268 ## Platform. ##
2269 ## --------- ##
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288 _ASUNAME
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2296 done
2297 IFS=$as_save_IFS
2299 } >&5
2301 cat >&5 <<_ACEOF
2304 ## ----------- ##
2305 ## Core tests. ##
2306 ## ----------- ##
2308 _ACEOF
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_configure_args=
2317 ac_configure_args0=
2318 ac_configure_args1=
2319 ac_must_keep_next=false
2320 for ac_pass in 1 2
2322 for ac_arg
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 esac
2332 case $ac_pass in
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2351 as_fn_append ac_configure_args " '$ac_arg'"
2353 esac
2354 done
2355 done
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2367 echo
2369 $as_echo "## ---------------- ##
2370 ## Cache variables. ##
2371 ## ---------------- ##"
2372 echo
2373 # The following way of writing the cache mishandles newlines in values,
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in #(
2378 *${as_nl}*)
2379 case $ac_var in #(
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 esac
2383 case $ac_var in #(
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2387 esac ;;
2388 esac
2389 done
2390 (set) 2>&1 |
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
2393 sed -n \
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 ;; #(
2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 esac |
2401 sort
2403 echo
2405 $as_echo "## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##"
2408 echo
2409 for ac_var in $ac_subst_vars
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2419 if test -n "$ac_subst_files"; then
2420 $as_echo "## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##"
2423 echo
2424 for ac_var in $ac_subst_files
2426 eval ac_val=\$$ac_var
2427 case $ac_val in
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 esac
2430 $as_echo "$ac_var='\''$ac_val'\''"
2431 done | sort
2432 echo
2435 if test -s confdefs.h; then
2436 $as_echo "## ----------- ##
2437 ## confdefs.h. ##
2438 ## ----------- ##"
2439 echo
2440 cat confdefs.h
2441 echo
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2446 } >&5
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 exit $exit_status
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 done
2454 ac_signal=0
2456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2457 rm -f -r conftest* confdefs.h
2459 $as_echo "/* confdefs.h */" > confdefs.h
2461 # Predefined preprocessor variables.
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_NAME "$PACKAGE_NAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2485 _ACEOF
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2490 ac_site_file1=NONE
2491 ac_site_file2=NONE
2492 if test -n "$CONFIG_SITE"; then
2493 # We do not want a PATH search for config.site.
2494 case $CONFIG_SITE in #((
2495 -*) ac_site_file1=./$CONFIG_SITE;;
2496 */*) ac_site_file1=$CONFIG_SITE;;
2497 *) ac_site_file1=./$CONFIG_SITE;;
2498 esac
2499 elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2502 else
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508 test "x$ac_site_file" = xNONE && continue
2509 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2513 . "$ac_site_file" \
2514 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 as_fn_error $? "failed to load site script $ac_site_file
2517 See \`config.log' for more details" "$LINENO" 5; }
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special files
2523 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2524 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " stdlib.h"
2539 as_fn_append ac_header_list " unistd.h"
2540 as_fn_append ac_header_list " sys/param.h"
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 ac_aux_dir=
2611 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2612 if test -f "$ac_dir/install-sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install-sh -c"
2615 break
2616 elif test -f "$ac_dir/install.sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install.sh -c"
2619 break
2620 elif test -f "$ac_dir/shtool"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/shtool install -c"
2623 break
2625 done
2626 if test -z "$ac_aux_dir"; then
2627 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640 # Check what host we are running on.
2641 # If a target is not suggested, we use this one.
2642 # Note that what we call a target, Autoconf calls a host.
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2645 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if ${ac_cv_build+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 ac_build_alias=$build_alias
2653 test "x$ac_build_alias" = x &&
2654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x &&
2656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2664 *-*-*) ;;
2665 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2666 esac
2667 build=$ac_cv_build
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_build
2670 shift
2671 build_cpu=$1
2672 build_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 build_os=$*
2677 IFS=$ac_save_IFS
2678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if ${ac_cv_host+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test "x$host_alias" = x; then
2687 ac_cv_host=$ac_cv_build
2688 else
2689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2696 case $ac_cv_host in
2697 *-*-*) ;;
2698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2699 esac
2700 host=$ac_cv_host
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_host
2703 shift
2704 host_cpu=$1
2705 host_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 host_os=$*
2710 IFS=$ac_save_IFS
2711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2715 # The AROS target is slightly different to the normal GNU style
2716 # format. We don't have the middle part, and we reverse the order
2717 # of the $(CPU) and $(OS) bits.
2719 # Don't strip the version of the target yet, it might be
2720 # useful on some systems.
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2723 $as_echo_n "checking for AROS style target... " >&6; }
2725 if test "$target" = "NONE" ; then
2726 target=$host_os-$host_cpu
2727 else
2728 if test "$target" = "" ; then
2729 target=$host_os-$host_cpu
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2733 $as_echo "$target" >&6; }
2735 if test "$host_os" = "mingw32" ; then
2736 PWDCMD="pwd -W"
2739 # Don't know where else to put this...
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2741 $as_echo_n "checking building AROS in... " >&6; }
2742 AROS_BUILDDIR=`${PWDCMD-pwd}`
2743 AROS_BUILDDIR_UNIX=${PWD}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2745 $as_echo "$AROS_BUILDDIR" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2748 $as_echo_n "checking AROS source in... " >&6; }
2749 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2750 SRCDIR=${srcpwd}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2752 $as_echo "$SRCDIR" >&6; }
2754 # Parse the target field into something useful.
2756 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2757 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2760 # Some debug output, to be removed again.
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2762 $as_echo_n "checking for target system (debug output)... " >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2764 $as_echo "$target_os" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2766 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2768 $as_echo "$target_cpu" >&6; }
2770 aros_default_wbwidth=800
2771 aros_default_wbheight=600
2772 aros_default_wbdepth=4
2775 # The first step is to find the host binaries.
2776 # Check for a compiler.
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2804 done
2805 done
2806 IFS=$as_save_IFS
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$ac_cv_prog_CC"; then
2822 ac_ct_CC=$CC
2823 # Extract the first word of "gcc", so it can be a program name with args.
2824 set dummy gcc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2846 IFS=$as_save_IFS
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2859 if test "x$ac_ct_CC" = x; then
2860 CC=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 CC=$ac_ct_CC
2870 else
2871 CC="$ac_cv_prog_CC"
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_CC="${ac_tool_prefix}cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2915 if test -z "$CC"; then
2916 # Extract the first word of "cc", so it can be a program name with args.
2917 set dummy cc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 ac_prog_rejected=no
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935 ac_prog_rejected=yes
2936 continue
2938 ac_cv_prog_CC="cc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2946 if test $ac_prog_rejected = yes; then
2947 # We found a bogon in the path, so make sure we never use it.
2948 set dummy $ac_cv_prog_CC
2949 shift
2950 if test $# != 0; then
2951 # We chose a different compiler from the bogus one.
2952 # However, it has the same basename, so the bogon will be chosen
2953 # first if we set CC to just the basename; use the full file name.
2954 shift
2955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$CC" && break
3013 done
3015 if test -z "$CC"; then
3016 ac_ct_CC=$CC
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_ac_ct_CC="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$ac_ct_CC" && break
3057 done
3059 if test "x$ac_ct_CC" = x; then
3060 CC=""
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 CC=$ac_ct_CC
3075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "no acceptable C compiler found in \$PATH
3078 See \`config.log' for more details" "$LINENO" 5; }
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3082 set X $ac_compile
3083 ac_compiler=$2
3084 for ac_option in --version -v -V -qversion; do
3085 { { ac_try="$ac_compiler $ac_option >&5"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093 ac_status=$?
3094 if test -s conftest.err; then
3095 sed '10a\
3096 ... rest of stderr output deleted ...
3097 10q' conftest.err >conftest.er1
3098 cat conftest.er1 >&5
3100 rm -f conftest.er1 conftest.err
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }
3103 done
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 ac_clean_files_save=$ac_clean_files
3117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118 # Try to create an executable without -o first, disregard a.out.
3119 # It will help us diagnose broken compilers, and finding out an intuition
3120 # of exeext.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122 $as_echo_n "checking whether the C compiler works... " >&6; }
3123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125 # The possible output files:
3126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128 ac_rmfiles=
3129 for ac_file in $ac_files
3131 case $ac_file in
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3134 esac
3135 done
3136 rm -f $ac_rmfiles
3138 if { { ac_try="$ac_link_default"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link_default") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3152 # so that the user can short-circuit this test for compilers unknown to
3153 # Autoconf.
3154 for ac_file in $ac_files ''
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 [ab].out )
3161 # We found the default executable, but exeext='' is most
3162 # certainly right.
3163 break;;
3164 *.* )
3165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3166 then :; else
3167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 # We set ac_cv_exeext here because the later test for it is not
3170 # safe: cross compilers may not add the suffix if given an `-o'
3171 # argument, so we may need to know it at that point already.
3172 # Even if this section looks crufty: it has the advantage of
3173 # actually working.
3174 break;;
3176 break;;
3177 esac
3178 done
3179 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181 else
3182 ac_file=''
3184 if test -z "$ac_file"; then :
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error 77 "C compiler cannot create executables
3193 See \`config.log' for more details" "$LINENO" 5; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 break;;
3229 * ) break;;
3230 esac
3231 done
3232 else
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3244 ac_exeext=$EXEEXT
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3247 #include <stdio.h>
3249 main ()
3251 FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3255 return 0;
3257 _ACEOF
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3286 cross_compiling=no
3287 else
3288 if test "$cross_compiling" = maybe; then
3289 cross_compiling=yes
3290 else
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details" "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if ${ac_cv_objext+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 main ()
3317 return 0;
3319 _ACEOF
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compile") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337 break;;
3338 esac
3339 done
3340 else
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3354 ac_objext=$OBJEXT
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if ${ac_cv_c_compiler_gnu+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3366 #ifndef __GNUC__
3367 choke me
3368 #endif
3371 return 0;
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_compiler_gnu=yes
3376 else
3377 ac_compiler_gnu=no
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3386 GCC=yes
3387 else
3388 GCC=
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if ${ac_cv_prog_cc_g+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3399 ac_cv_prog_cc_g=no
3400 CFLAGS="-g"
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main ()
3409 return 0;
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_cv_prog_cc_g=yes
3414 else
3415 CFLAGS=""
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3420 main ()
3424 return 0;
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"; then :
3429 else
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3431 CFLAGS="-g"
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_g=yes
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3459 CFLAGS="-g -O2"
3460 else
3461 CFLAGS="-g"
3463 else
3464 if test "$GCC" = yes; then
3465 CFLAGS="-O2"
3466 else
3467 CFLAGS=
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if ${ac_cv_prog_cc_c89+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_cv_prog_cc_c89=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #include <stdarg.h>
3480 #include <stdio.h>
3481 #include <sys/types.h>
3482 #include <sys/stat.h>
3483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484 struct buf { int x; };
3485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486 static char *e (p, i)
3487 char **p;
3488 int i;
3490 return p[i];
3492 static char *f (char * (*g) (char **, int), char **p, ...)
3494 char *s;
3495 va_list v;
3496 va_start (v,p);
3497 s = g (p, va_arg (v,int));
3498 va_end (v);
3499 return s;
3502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503 function prototypes and stuff, but not '\xHH' hex character constants.
3504 These don't provoke an error unfortunately, instead are silently treated
3505 as 'x'. The following induces an error, until -std is added to get
3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507 array size at least. It's necessary to write '\x00'==0 to get something
3508 that's true only with -std. */
3509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512 inside strings and character constants. */
3513 #define FOO(x) 'x'
3514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516 int test (int i, double x);
3517 struct s1 {int (*f) (int a);};
3518 struct s2 {int (*f) (double a);};
3519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520 int argc;
3521 char **argv;
3523 main ()
3525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 return 0;
3529 _ACEOF
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 CC="$ac_save_CC $ac_arg"
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_prog_cc_c89=$ac_arg
3537 rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3544 # AC_CACHE_VAL
3545 case "x$ac_cv_prog_cc_c89" in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 $as_echo "none needed" >&6; } ;;
3549 xno)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3551 $as_echo "unsupported" >&6; } ;;
3553 CC="$CC $ac_cv_prog_cc_c89"
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 esac
3557 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 case $ac_cv_prog_cc_stdc in #(
3568 no) :
3569 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3570 *) :
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3572 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3573 if ${ac_cv_prog_cc_c99+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_cv_prog_cc_c99=no
3577 ac_save_CC=$CC
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdbool.h>
3582 #include <stdlib.h>
3583 #include <wchar.h>
3584 #include <stdio.h>
3586 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3587 #define debug(...) fprintf (stderr, __VA_ARGS__)
3588 #define showlist(...) puts (#__VA_ARGS__)
3589 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3590 static void
3591 test_varargs_macros (void)
3593 int x = 1234;
3594 int y = 5678;
3595 debug ("Flag");
3596 debug ("X = %d\n", x);
3597 showlist (The first, second, and third items.);
3598 report (x>y, "x is %d but y is %d", x, y);
3601 // Check long long types.
3602 #define BIG64 18446744073709551615ull
3603 #define BIG32 4294967295ul
3604 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3605 #if !BIG_OK
3606 your preprocessor is broken;
3607 #endif
3608 #if BIG_OK
3609 #else
3610 your preprocessor is broken;
3611 #endif
3612 static long long int bignum = -9223372036854775807LL;
3613 static unsigned long long int ubignum = BIG64;
3615 struct incomplete_array
3617 int datasize;
3618 double data[];
3621 struct named_init {
3622 int number;
3623 const wchar_t *name;
3624 double average;
3627 typedef const char *ccp;
3629 static inline int
3630 test_restrict (ccp restrict text)
3632 // See if C++-style comments work.
3633 // Iterate through items via the restricted pointer.
3634 // Also check for declarations in for loops.
3635 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3636 continue;
3637 return 0;
3640 // Check varargs and va_copy.
3641 static void
3642 test_varargs (const char *format, ...)
3644 va_list args;
3645 va_start (args, format);
3646 va_list args_copy;
3647 va_copy (args_copy, args);
3649 const char *str;
3650 int number;
3651 float fnumber;
3653 while (*format)
3655 switch (*format++)
3657 case 's': // string
3658 str = va_arg (args_copy, const char *);
3659 break;
3660 case 'd': // int
3661 number = va_arg (args_copy, int);
3662 break;
3663 case 'f': // float
3664 fnumber = va_arg (args_copy, double);
3665 break;
3666 default:
3667 break;
3670 va_end (args_copy);
3671 va_end (args);
3675 main ()
3678 // Check bool.
3679 _Bool success = false;
3681 // Check restrict.
3682 if (test_restrict ("String literal") == 0)
3683 success = true;
3684 char *restrict newvar = "Another string";
3686 // Check varargs.
3687 test_varargs ("s, d' f .", "string", 65, 34.234);
3688 test_varargs_macros ();
3690 // Check flexible array members.
3691 struct incomplete_array *ia =
3692 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3693 ia->datasize = 10;
3694 for (int i = 0; i < ia->datasize; ++i)
3695 ia->data[i] = i * 1.234;
3697 // Check named initializers.
3698 struct named_init ni = {
3699 .number = 34,
3700 .name = L"Test wide string",
3701 .average = 543.34343,
3704 ni.number = 58;
3706 int dynamic_array[ni.number];
3707 dynamic_array[ni.number - 1] = 543;
3709 // work around unused variable warnings
3710 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3711 || dynamic_array[ni.number - 1] != 543);
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_c99=$ac_arg
3723 rm -f core conftest.err conftest.$ac_objext
3724 test "x$ac_cv_prog_cc_c99" != "xno" && break
3725 done
3726 rm -f conftest.$ac_ext
3727 CC=$ac_save_CC
3730 # AC_CACHE_VAL
3731 case "x$ac_cv_prog_cc_c99" in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 $as_echo "none needed" >&6; } ;;
3735 xno)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;;
3739 CC="$CC $ac_cv_prog_cc_c99"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3741 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3742 esac
3743 if test "x$ac_cv_prog_cc_c99" != xno; then :
3744 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748 if ${ac_cv_prog_cc_c89+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_cv_prog_cc_c89=no
3752 ac_save_CC=$CC
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdarg.h>
3756 #include <stdio.h>
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3763 char **p;
3764 int i;
3766 return p[i];
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3770 char *s;
3771 va_list v;
3772 va_start (v,p);
3773 s = g (p, va_arg (v,int));
3774 va_end (v);
3775 return s;
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3779 function prototypes and stuff, but not '\xHH' hex character constants.
3780 These don't provoke an error unfortunately, instead are silently treated
3781 as 'x'. The following induces an error, until -std is added to get
3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3783 array size at least. It's necessary to write '\x00'==0 to get something
3784 that's true only with -std. */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788 inside strings and character constants. */
3789 #define FOO(x) 'x'
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3796 int argc;
3797 char **argv;
3799 main ()
3801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 return 0;
3805 _ACEOF
3806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 CC="$ac_save_CC $ac_arg"
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_c89=$ac_arg
3813 rm -f core conftest.err conftest.$ac_objext
3814 test "x$ac_cv_prog_cc_c89" != "xno" && break
3815 done
3816 rm -f conftest.$ac_ext
3817 CC=$ac_save_CC
3820 # AC_CACHE_VAL
3821 case "x$ac_cv_prog_cc_c89" in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3825 xno)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3829 CC="$CC $ac_cv_prog_cc_c89"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3832 esac
3833 if test "x$ac_cv_prog_cc_c89" != xno; then :
3834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3835 else
3836 ac_cv_prog_cc_stdc=no
3841 esac
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3843 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3844 if ${ac_cv_prog_cc_stdc+:} false; then :
3845 $as_echo_n "(cached) " >&6
3848 case $ac_cv_prog_cc_stdc in #(
3849 no) :
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;; #(
3852 '') :
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;; #(
3855 *) :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3857 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3858 esac
3860 ac_ext=cpp
3861 ac_cpp='$CXXCPP $CPPFLAGS'
3862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3865 if test -z "$CXX"; then
3866 if test -n "$CCC"; then
3867 CXX=$CCC
3868 else
3869 if test -n "$ac_tool_prefix"; then
3870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_CXX+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$CXX"; then
3880 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3895 IFS=$as_save_IFS
3899 CXX=$ac_cv_prog_CXX
3900 if test -n "$CXX"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3902 $as_echo "$CXX" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3909 test -n "$CXX" && break
3910 done
3912 if test -z "$CXX"; then
3913 ac_ct_CXX=$CXX
3914 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$ac_ct_CXX"; then
3924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 ac_cv_prog_ac_ct_CXX="$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3939 IFS=$as_save_IFS
3943 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3944 if test -n "$ac_ct_CXX"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3946 $as_echo "$ac_ct_CXX" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 test -n "$ac_ct_CXX" && break
3954 done
3956 if test "x$ac_ct_CXX" = x; then
3957 CXX="g++"
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 CXX=$ac_ct_CXX
3971 # Provide some information about the compiler.
3972 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3973 set X $ac_compile
3974 ac_compiler=$2
3975 for ac_option in --version -v -V -qversion; do
3976 { { ac_try="$ac_compiler $ac_option >&5"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3984 ac_status=$?
3985 if test -s conftest.err; then
3986 sed '10a\
3987 ... rest of stderr output deleted ...
3988 10q' conftest.err >conftest.er1
3989 cat conftest.er1 >&5
3991 rm -f conftest.er1 conftest.err
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 done
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3997 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3998 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 main ()
4007 #ifndef __GNUC__
4008 choke me
4009 #endif
4012 return 0;
4014 _ACEOF
4015 if ac_fn_cxx_try_compile "$LINENO"; then :
4016 ac_compiler_gnu=yes
4017 else
4018 ac_compiler_gnu=no
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4025 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4026 if test $ac_compiler_gnu = yes; then
4027 GXX=yes
4028 else
4029 GXX=
4031 ac_test_CXXFLAGS=${CXXFLAGS+set}
4032 ac_save_CXXFLAGS=$CXXFLAGS
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4034 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4035 if ${ac_cv_prog_cxx_g+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4039 ac_cxx_werror_flag=yes
4040 ac_cv_prog_cxx_g=no
4041 CXXFLAGS="-g"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4046 main ()
4050 return 0;
4052 _ACEOF
4053 if ac_fn_cxx_try_compile "$LINENO"; then :
4054 ac_cv_prog_cxx_g=yes
4055 else
4056 CXXFLAGS=""
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_cxx_try_compile "$LINENO"; then :
4070 else
4071 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4072 CXXFLAGS="-g"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 if ac_fn_cxx_try_compile "$LINENO"; then :
4085 ac_cv_prog_cxx_g=yes
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4095 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4096 if test "$ac_test_CXXFLAGS" = set; then
4097 CXXFLAGS=$ac_save_CXXFLAGS
4098 elif test $ac_cv_prog_cxx_g = yes; then
4099 if test "$GXX" = yes; then
4100 CXXFLAGS="-g -O2"
4101 else
4102 CXXFLAGS="-g"
4104 else
4105 if test "$GXX" = yes; then
4106 CXXFLAGS="-O2"
4107 else
4108 CXXFLAGS=
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4124 # On Suns, sometimes $CPP names a directory.
4125 if test -n "$CPP" && test -d "$CPP"; then
4126 CPP=
4128 if test -z "$CPP"; then
4129 if ${ac_cv_prog_CPP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 # Double quotes because CPP needs to be expanded
4133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4135 ac_preproc_ok=false
4136 for ac_c_preproc_warn_flag in '' yes
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151 Syntax error
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4155 else
4156 # Broken: fails on valid input.
4157 continue
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4161 # OK, works on sane cases. Now check whether nonexistent headers
4162 # can be detected and how.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <ac_nonexistent.h>
4166 _ACEOF
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4168 # Broken: success on invalid input.
4169 continue
4170 else
4171 # Passes both tests.
4172 ac_preproc_ok=:
4173 break
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.i conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then :
4181 break
4184 done
4185 ac_cv_prog_CPP=$CPP
4188 CPP=$ac_cv_prog_CPP
4189 else
4190 ac_cv_prog_CPP=$CPP
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4193 $as_echo "$CPP" >&6; }
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210 Syntax error
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4214 else
4215 # Broken: fails on valid input.
4216 continue
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4220 # OK, works on sane cases. Now check whether nonexistent headers
4221 # can be detected and how.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <ac_nonexistent.h>
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: success on invalid input.
4228 continue
4229 else
4230 # Passes both tests.
4231 ac_preproc_ok=:
4232 break
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4236 done
4237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238 rm -f conftest.i conftest.err conftest.$ac_ext
4239 if $ac_preproc_ok; then :
4241 else
4242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4245 See \`config.log' for more details" "$LINENO" 5; }
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 # Check for a compatible awk
4256 for ac_prog in gawk nawk
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_AWK+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$AWK"; then
4266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_AWK="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 AWK=$ac_cv_prog_AWK
4286 if test -n "$AWK"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4288 $as_echo "$AWK" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$AWK" && break
4296 done
4298 if test "$AWK" = ""; then
4299 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4301 # Extract the first word of "mmake", so it can be a program name with args.
4302 set dummy mmake; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_MMAKE+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$MMAKE"; then
4309 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_MMAKE="mmake "
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 MMAKE=$ac_cv_prog_MMAKE
4329 if test -n "$MMAKE"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4331 $as_echo "$MMAKE" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4339 # Perform some default variable assignments. Note all of these will be
4340 # Regenerated from the script, so there is no need to cache them.
4342 aros_host_cpp="$CPP"
4343 aros_host_cc="$CC"
4344 aros_host_cxx="$CXX"
4345 if test "$GCC" = "yes"; then
4346 aros_gcc_ld=`$CC -print-prog-name=ld`
4347 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4348 set dummy `basename $aros_gcc_ld`; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if ${ac_cv_path_aros_host_ld+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 case $aros_host_ld in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in `dirname $aros_gcc_ld`
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4375 esac
4377 aros_host_ld=$ac_cv_path_aros_host_ld
4378 if test -n "$aros_host_ld"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4380 $as_echo "$aros_host_ld" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4388 if test "$aros_host_ld" = ""; then
4389 # Extract the first word of "ld", so it can be a program name with args.
4390 set dummy ld; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_path_aros_host_ld+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 case $aros_host_ld in
4397 [\\/]* | ?:[\\/]*)
4398 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4417 esac
4419 aros_host_ld=$ac_cv_path_aros_host_ld
4420 if test -n "$aros_host_ld"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4422 $as_echo "$aros_host_ld" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4430 if test "$aros_host_ld" = ""; then
4431 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4433 aros_host_make="make"
4434 aros_host_cflags=$CFLAGS
4435 aros_host_cxxflags=$CXXFLAGS
4436 aros_host_ldflags=$LDFLAGS
4437 aros_host_debug="-g -O0"
4438 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4439 aros_host_mkargs="--no-print-directory"
4440 aros_host_exe_suffix="$EXEEXT"
4441 aros_host_lib_suffix=""
4443 # Ignore all compliance, AROS ROMs = 0
4444 # KickStart v1.0 = 30
4445 # KickStart v1.3 = 34
4446 # KickStart v2.0 = 37
4447 # KickStart v3.0 = 39
4448 # KickStart v3.1 = 40
4449 # AmigaOS v3.5 = 44
4450 aros_amigaos_compliance=0
4452 for ac_prog in aclocal aclocal19 aclocal-1.9
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy $ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$aros_host_aclocal"; then
4462 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_aros_host_aclocal="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4482 if test -n "$aros_host_aclocal"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4484 $as_echo "$aros_host_aclocal" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$aros_host_aclocal" && break
4492 done
4494 for ac_prog in autoconf autoconf259 autoconf253
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$aros_host_autoconf"; then
4504 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_aros_host_autoconf="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4524 if test -n "$aros_host_autoconf"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4526 $as_echo "$aros_host_autoconf" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$aros_host_autoconf" && break
4534 done
4536 for ac_prog in autoheader autoheader259 autoheader253
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$aros_host_autoheader"; then
4546 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_aros_host_autoheader="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4566 if test -n "$aros_host_autoheader"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4568 $as_echo "$aros_host_autoheader" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$aros_host_autoheader" && break
4576 done
4578 for ac_prog in automake automake19 automake-1.9
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_aros_host_automake+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$aros_host_automake"; then
4588 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_aros_host_automake="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 aros_host_automake=$ac_cv_prog_aros_host_automake
4608 if test -n "$aros_host_automake"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4610 $as_echo "$aros_host_automake" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$aros_host_automake" && break
4618 done
4621 if test "$aros_host_aclocal" = ""; then
4622 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 if test "$aros_host_automake" = ""; then
4625 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4628 case "$aros_host_cc" in
4629 *gcc*)
4630 aros_host_cc_pipe="-pipe"
4632 icc)
4633 aros_host_cc_pipe=""
4636 aros_host_cc_pipe=""
4638 esac
4640 aros_kernel_cc_includes=""
4641 aros_target_cc_includes=""
4642 host_cc_elf=yes
4644 # ----------------------------------------------------------------------------------------
4645 # Host-specific defaults
4647 # This is the main host configuration section. It is where the host
4648 # can change the values of any variables it needs to change. We do
4649 # not look at anything that compiles to the target yet, we'll get
4650 # to that later.
4652 case "$host_os" in
4653 aros*)
4654 aros_host_arch="aros"
4655 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4656 case "$host_cpu" in
4657 *i?86*)
4658 aros_host_cpu="i386"
4660 *x86_64*)
4661 aros_host_cpu="x86_64"
4663 *powerpc*)
4664 aros_host_cpu="ppc"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4668 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4669 aros_host_cpu="$host_cpu"
4671 esac
4674 linux*)
4675 aros_host_arch="linux"
4676 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4677 android_build_os="linux-x86"
4678 android_tool="android"
4679 default_android_sdk="/opt/android-sdk-linux_x86"
4680 case "$host_cpu" in
4681 *i?86*)
4682 aros_host_cpu="i386"
4684 *x86_64*)
4685 aros_host_cpu="x86_64"
4687 *m68k*)
4688 aros_host_cpu="m68k"
4690 *powerpc*)
4691 aros_host_cpu="ppc"
4693 *arm*)
4694 aros_host_cpu="arm"
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4698 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4699 aros_host_cpu="$host_cpu"
4701 esac
4704 freebsd*)
4705 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4706 aros_host_make="gmake"
4707 aros_host_arch="freebsd"
4708 aros_host_cpu="i386"
4710 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4712 case $host_os in
4713 freebsd[234]*)
4714 aros_object_format="elf_i386"
4718 aros_object_format="elf_i386_fbsd"
4720 esac
4724 darwin*)
4725 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4726 aros_host_arch="darwin"
4727 host_cc_elf=no
4728 android_build_os="darwin-x86"
4729 android_tool="android"
4730 default_android_sdk="/android-sdk-mac_x86"
4731 case "$host_cpu" in
4732 *i?86*)
4733 aros_host_cpu="i386"
4735 *x86_64*)
4736 aros_host_cpu="x86_64"
4738 *powerpc*)
4739 aros_host_cpu="ppc"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4748 aros_host_ldflags="$aros_host_ldflags -liconv"
4752 dragonfly*)
4753 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4754 aros_host_make="gmake"
4755 aros_host_arch="dragonfly"
4756 case $host_cpu in
4757 *i?86*)
4758 aros_host_cpu="i386"
4760 *amd64*)
4761 aros_host_cpu="x86_64"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4765 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4766 aros_host_cpu="$host_cpu"
4768 esac
4771 netbsd*)
4772 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4773 aros_host_make="gmake"
4774 aros_host_arch="netbsd"
4775 case "$host_cpu" in
4776 *i?86*)
4777 aros_host_cpu="i386"
4779 *m68k*)
4780 aros_host_cpu="m68k"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu="$host_cpu"
4787 esac
4788 aros_host_lib_suffix=".0.0"
4791 openbsd*)
4792 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4793 aros_host_make="gmake"
4794 aros_host_arch="openbsd"
4795 case "$host_cpu" in
4796 *i?86*)
4797 aros_host_cpu="i386"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4801 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4802 aros_host_cpu="$host_cpu"
4804 esac
4807 solaris*)
4808 aros_host_arch="solaris"
4809 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4810 case "$host_cpu" in
4811 *i?86*)
4812 aros_host_cpu="i386"
4814 *sparc*)
4815 aros_host_cpu="sparc"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 morphos*)
4826 aros_host_arch="morphos"
4827 aros_host_cpu="ppc"
4828 host_cc_elf=no
4831 amiga*)
4832 aros_host_arch="amiga"
4833 host_cc_elf=no
4834 SORT="/gg/bin/sort"
4835 TEST="/gg/bin/test"
4836 UNIQ="/gg/bin/uniq"
4837 FOR="for"
4838 TOUCH="/gg/bin/touch"
4839 case "$host_cpu" in
4840 *m68k*)
4841 aros_host_cpu="m68k"
4843 *powerpc*)
4844 aros_host_cpu="ppc"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4848 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4849 aros_host_cpu="$host_cpu"
4851 esac
4854 cygwin*)
4855 aros_host_arch="cygwin"
4856 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4857 host_cc_elf=no
4858 android_build_os="windows"
4859 android_tool="android.bat"
4860 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4862 case "$host_cpu" in
4863 *i?86*)
4864 aros_host_cpu="i386"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4868 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4869 aros_host_cpu="$host_cpu"
4871 esac
4874 mingw32*)
4875 aros_host_arch="mingw32"
4876 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4877 host_cc_elf=no
4878 android_build_os="windows"
4879 android_tool="android.bat"
4880 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4882 case "$host_cpu" in
4883 *i?86*)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4886 $as_echo_n "checking for Windows native gcc target... " >&6; }
4887 host_cpu=`gcc -dumpmachine`
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4889 $as_echo "$host_cpu" >&6; }
4892 esac
4894 case "$host_cpu" in
4895 *i?86*)
4896 aros_host_cpu="i386"
4899 mingw32*)
4900 aros_host_cpu="i386"
4903 *x86_64*)
4904 aros_host_cpu="x86_64"
4905 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4910 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4911 aros_host_cpu="$host_cpu"
4913 esac
4916 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4918 esac
4920 # Extract the first word of "ar", so it can be a program name with args.
4921 set dummy ar; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_prog_aros_host_ar+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$aros_host_ar"; then
4928 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_aros_host_ar="ar cr"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4941 done
4942 done
4943 IFS=$as_save_IFS
4947 aros_host_ar=$ac_cv_prog_aros_host_ar
4948 if test -n "$aros_host_ar"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4950 $as_echo "$aros_host_ar" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 if test "$aros_host_ar" = ""; then
4958 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4960 # Extract the first word of "ranlib", so it can be a program name with args.
4961 set dummy ranlib; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$aros_host_ranlib"; then
4968 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_aros_host_ranlib="ranlib "
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4987 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4988 if test -n "$aros_host_ranlib"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4990 $as_echo "$aros_host_ranlib" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4997 if test "$aros_host_ranlib" = ""; then
4998 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5000 # Extract the first word of "strip", so it can be a program name with args.
5001 set dummy strip; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_aros_host_strip+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$aros_host_strip"; then
5008 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_aros_host_strip="strip "
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 aros_host_strip=$ac_cv_prog_aros_host_strip
5028 if test -n "$aros_host_strip"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5030 $as_echo "$aros_host_strip" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 if test "$aros_host_strip" = ""; then
5038 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5041 # Extract the first word of "rm", so it can be a program name with args.
5042 set dummy rm; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_RM+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$RM"; then
5049 ac_cv_prog_RM="$RM" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_RM="rm -rf"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 RM=$ac_cv_prog_RM
5069 if test -n "$RM"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5071 $as_echo "$RM" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 if test "$RM" = ""; then
5079 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5081 # Extract the first word of "cp", so it can be a program name with args.
5082 set dummy cp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_CP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$CP"; then
5089 ac_cv_prog_CP="$CP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_CP="cp "
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 CP=$ac_cv_prog_CP
5109 if test -n "$CP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5111 $as_echo "$CP" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 if test "$CP" = ""; then
5119 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5121 # Extract the first word of "mv", so it can be a program name with args.
5122 set dummy mv; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_prog_MV+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$MV"; then
5129 ac_cv_prog_MV="$MV" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_MV="mv "
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5148 MV=$ac_cv_prog_MV
5149 if test -n "$MV"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5151 $as_echo "$MV" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 if test "$MV" = ""; then
5159 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5161 # Extract the first word of "echo", so it can be a program name with args.
5162 set dummy echo; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_ECHO+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ECHO"; then
5169 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ECHO="echo "
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 ECHO=$ac_cv_prog_ECHO
5189 if test -n "$ECHO"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5191 $as_echo "$ECHO" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 if test "$ECHO" = ""; then
5199 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5201 # Extract the first word of "mkdir", so it can be a program name with args.
5202 set dummy mkdir; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_MKDIR+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$MKDIR"; then
5209 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_MKDIR="mkdir -p"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 MKDIR=$ac_cv_prog_MKDIR
5229 if test -n "$MKDIR"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5231 $as_echo "$MKDIR" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 if test "$MKDIR" = ""; then
5239 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5241 # Extract the first word of "touch", so it can be a program name with args.
5242 set dummy touch; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_TOUCH+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$TOUCH"; then
5249 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_TOUCH="touch "
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 TOUCH=$ac_cv_prog_TOUCH
5269 if test -n "$TOUCH"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5271 $as_echo "$TOUCH" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5278 if test "$TOUCH" = ""; then
5279 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5281 # Extract the first word of "sort", so it can be a program name with args.
5282 set dummy sort; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_SORT+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$SORT"; then
5289 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_SORT="sort "
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 SORT=$ac_cv_prog_SORT
5309 if test -n "$SORT"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5311 $as_echo "$SORT" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 if test "$SORT" = ""; then
5319 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5321 # Extract the first word of "uniq", so it can be a program name with args.
5322 set dummy uniq; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_UNIQ+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$UNIQ"; then
5329 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_UNIQ="uniq "
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 UNIQ=$ac_cv_prog_UNIQ
5349 if test -n "$UNIQ"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5351 $as_echo "$UNIQ" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 if test "$UNIQ" = ""; then
5359 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5361 # Extract the first word of "true", so it can be a program name with args.
5362 set dummy true; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_NOP+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$NOP"; then
5369 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_NOP="true "
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 NOP=$ac_cv_prog_NOP
5389 if test -n "$NOP"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5391 $as_echo "$NOP" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 if test "$NOP" = ""; then
5399 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5401 # Extract the first word of "cat", so it can be a program name with args.
5402 set dummy cat; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_CAT+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$CAT"; then
5409 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_CAT="cat "
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 CAT=$ac_cv_prog_CAT
5429 if test -n "$CAT"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5431 $as_echo "$CAT" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5438 if test "$CAT" = ""; then
5439 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5441 # Extract the first word of "bison", so it can be a program name with args.
5442 set dummy bison; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_BISON+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$BISON"; then
5449 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_BISON="bison "
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5464 IFS=$as_save_IFS
5468 BISON=$ac_cv_prog_BISON
5469 if test -n "$BISON"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5471 $as_echo "$BISON" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 if test "$BISON" = ""; then
5479 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5481 # Extract the first word of "flex", so it can be a program name with args.
5482 set dummy flex; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_FLEX+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$FLEX"; then
5489 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_FLEX="flex "
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 FLEX=$ac_cv_prog_FLEX
5509 if test -n "$FLEX"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5511 $as_echo "$FLEX" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test "$FLEX" = ""; then
5519 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5521 # Extract the first word of "pngtopnm", so it can be a program name with args.
5522 set dummy pngtopnm; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$PNGTOPNM"; then
5529 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_PNGTOPNM="pngtopnm "
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5549 if test -n "$PNGTOPNM"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5551 $as_echo "$PNGTOPNM" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 if test "$PNGTOPNM" = ""; then
5559 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5561 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5562 set dummy ppmtoilbm; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$PPMTOILBM"; then
5569 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5582 done
5583 done
5584 IFS=$as_save_IFS
5588 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5589 if test -n "$PPMTOILBM"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5591 $as_echo "$PPMTOILBM" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5598 if test "$PPMTOILBM" = ""; then
5599 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5601 # Extract the first word of "sed", so it can be a program name with args.
5602 set dummy sed; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_SED+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$SED"; then
5609 ac_cv_prog_SED="$SED" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_SED="sed "
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 SED=$ac_cv_prog_SED
5629 if test -n "$SED"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5631 $as_echo "$SED" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$SED" = ""; then
5639 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5641 # Extract the first word of "chmod", so it can be a program name with args.
5642 set dummy chmod; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_CHMOD+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$CHMOD"; then
5649 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_CHMOD="chmod "
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 CHMOD=$ac_cv_prog_CHMOD
5669 if test -n "$CHMOD"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5671 $as_echo "$CHMOD" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5678 if test "$CHMOD" = ""; then
5679 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5681 # Extract the first word of "patch", so it can be a program name with args.
5682 set dummy patch; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_PATCH+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$PATCH"; then
5689 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_PATCH="patch "
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 PATCH=$ac_cv_prog_PATCH
5709 if test -n "$PATCH"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5711 $as_echo "$PATCH" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5718 if test "$PATCH" = ""; then
5719 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5728 if test -n "$PYTHON"; then
5729 # If the user set $PYTHON, use it and don't search something else.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5731 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5732 prog="import sys
5733 # split strings by '.' and convert to numeric. Append some zeros
5734 # because we need at least 4 digits for the hex conversion.
5735 # map returns an iterator in Python 3.0 and a list in 2.x
5736 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5737 minverhex = 0
5738 # xrange is not present in Python 3.0 and range returns an iterator
5739 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5740 sys.exit(sys.hexversion < minverhex)"
5741 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5742 ($PYTHON -c "$prog") >&5 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; then :
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5747 $as_echo "yes" >&6; }
5748 else
5749 as_fn_error $? "too old" "$LINENO" 5
5751 am_display_PYTHON=$PYTHON
5752 else
5753 # Otherwise, try each interpreter until we find one that satisfies
5754 # VERSION.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5756 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5757 if ${am_cv_pathless_PYTHON+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5761 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5762 test "$am_cv_pathless_PYTHON" = none && break
5763 prog="import sys
5764 # split strings by '.' and convert to numeric. Append some zeros
5765 # because we need at least 4 digits for the hex conversion.
5766 # map returns an iterator in Python 3.0 and a list in 2.x
5767 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5768 minverhex = 0
5769 # xrange is not present in Python 3.0 and range returns an iterator
5770 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5771 sys.exit(sys.hexversion < minverhex)"
5772 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5773 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; then :
5777 break
5779 done
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5782 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5783 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5784 if test "$am_cv_pathless_PYTHON" = none; then
5785 PYTHON=:
5786 else
5787 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5788 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_path_PYTHON+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 case $PYTHON in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5815 esac
5817 PYTHON=$ac_cv_path_PYTHON
5818 if test -n "$PYTHON"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5820 $as_echo "$PYTHON" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 am_display_PYTHON=$am_cv_pathless_PYTHON
5832 if test "$PYTHON" = :; then
5833 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5834 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5838 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5839 if ${am_cv_python_version+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5845 $as_echo "$am_cv_python_version" >&6; }
5846 PYTHON_VERSION=$am_cv_python_version
5850 PYTHON_PREFIX='${prefix}'
5852 PYTHON_EXEC_PREFIX='${exec_prefix}'
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5857 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5858 if ${am_cv_python_platform+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5864 $as_echo "$am_cv_python_platform" >&6; }
5865 PYTHON_PLATFORM=$am_cv_python_platform
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5871 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5872 if ${am_cv_python_pythondir+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test "x$prefix" = xNONE
5876 then
5877 am_py_prefix=$ac_default_prefix
5878 else
5879 am_py_prefix=$prefix
5881 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5882 case $am_cv_python_pythondir in
5883 $am_py_prefix*)
5884 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5885 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5888 case $am_py_prefix in
5889 /usr|/System*) ;;
5891 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5893 esac
5895 esac
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5899 $as_echo "$am_cv_python_pythondir" >&6; }
5900 pythondir=$am_cv_python_pythondir
5904 pkgpythondir=\${pythondir}/$PACKAGE
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5908 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5909 if ${am_cv_python_pyexecdir+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test "x$exec_prefix" = xNONE
5913 then
5914 am_py_exec_prefix=$am_py_prefix
5915 else
5916 am_py_exec_prefix=$exec_prefix
5918 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5919 case $am_cv_python_pyexecdir in
5920 $am_py_exec_prefix*)
5921 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5922 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5925 case $am_py_exec_prefix in
5926 /usr|/System*) ;;
5928 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5930 esac
5932 esac
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5936 $as_echo "$am_cv_python_pyexecdir" >&6; }
5937 pyexecdir=$am_cv_python_pyexecdir
5941 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5949 FOR=for
5951 IF=if
5953 TEST=test
5955 CMP=cmp
5959 # Check for some includes for the X11 HIDD and the kernel
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5963 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5964 if ${ac_cv_path_GREP+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -z "$GREP"; then
5968 ac_path_GREP_found=false
5969 # Loop through the user's path and test for each of PROGNAME-LIST
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_prog in grep ggrep; do
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5979 # Check for GNU ac_path_GREP and select it if it is found.
5980 # Check for GNU $ac_path_GREP
5981 case `"$ac_path_GREP" --version 2>&1` in
5982 *GNU*)
5983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5985 ac_count=0
5986 $as_echo_n 0123456789 >"conftest.in"
5987 while :
5989 cat "conftest.in" "conftest.in" >"conftest.tmp"
5990 mv "conftest.tmp" "conftest.in"
5991 cp "conftest.in" "conftest.nl"
5992 $as_echo 'GREP' >> "conftest.nl"
5993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5995 as_fn_arith $ac_count + 1 && ac_count=$as_val
5996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5997 # Best one so far, save it but keep looking for a better one
5998 ac_cv_path_GREP="$ac_path_GREP"
5999 ac_path_GREP_max=$ac_count
6001 # 10*(2^10) chars as input seems more than enough
6002 test $ac_count -gt 10 && break
6003 done
6004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6005 esac
6007 $ac_path_GREP_found && break 3
6008 done
6009 done
6010 done
6011 IFS=$as_save_IFS
6012 if test -z "$ac_cv_path_GREP"; then
6013 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6015 else
6016 ac_cv_path_GREP=$GREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6021 $as_echo "$ac_cv_path_GREP" >&6; }
6022 GREP="$ac_cv_path_GREP"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6026 $as_echo_n "checking for egrep... " >&6; }
6027 if ${ac_cv_path_EGREP+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6031 then ac_cv_path_EGREP="$GREP -E"
6032 else
6033 if test -z "$EGREP"; then
6034 ac_path_EGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_prog in egrep; do
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6045 # Check for GNU ac_path_EGREP and select it if it is found.
6046 # Check for GNU $ac_path_EGREP
6047 case `"$ac_path_EGREP" --version 2>&1` in
6048 *GNU*)
6049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6051 ac_count=0
6052 $as_echo_n 0123456789 >"conftest.in"
6053 while :
6055 cat "conftest.in" "conftest.in" >"conftest.tmp"
6056 mv "conftest.tmp" "conftest.in"
6057 cp "conftest.in" "conftest.nl"
6058 $as_echo 'EGREP' >> "conftest.nl"
6059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6061 as_fn_arith $ac_count + 1 && ac_count=$as_val
6062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6063 # Best one so far, save it but keep looking for a better one
6064 ac_cv_path_EGREP="$ac_path_EGREP"
6065 ac_path_EGREP_max=$ac_count
6067 # 10*(2^10) chars as input seems more than enough
6068 test $ac_count -gt 10 && break
6069 done
6070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6071 esac
6073 $ac_path_EGREP_found && break 3
6074 done
6075 done
6076 done
6077 IFS=$as_save_IFS
6078 if test -z "$ac_cv_path_EGREP"; then
6079 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6081 else
6082 ac_cv_path_EGREP=$EGREP
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6088 $as_echo "$ac_cv_path_EGREP" >&6; }
6089 EGREP="$ac_cv_path_EGREP"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6093 $as_echo_n "checking for ANSI C header files... " >&6; }
6094 if ${ac_cv_header_stdc+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <stdlib.h>
6100 #include <stdarg.h>
6101 #include <string.h>
6102 #include <float.h>
6105 main ()
6109 return 0;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_header_stdc=yes
6114 else
6115 ac_cv_header_stdc=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <string.h>
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "memchr" >/dev/null 2>&1; then :
6129 else
6130 ac_cv_header_stdc=no
6132 rm -f conftest*
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <stdlib.h>
6142 _ACEOF
6143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144 $EGREP "free" >/dev/null 2>&1; then :
6146 else
6147 ac_cv_header_stdc=no
6149 rm -f conftest*
6153 if test $ac_cv_header_stdc = yes; then
6154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6155 if test "$cross_compiling" = yes; then :
6157 else
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 #include <ctype.h>
6161 #include <stdlib.h>
6162 #if ((' ' & 0x0FF) == 0x020)
6163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6165 #else
6166 # define ISLOWER(c) \
6167 (('a' <= (c) && (c) <= 'i') \
6168 || ('j' <= (c) && (c) <= 'r') \
6169 || ('s' <= (c) && (c) <= 'z'))
6170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6171 #endif
6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6175 main ()
6177 int i;
6178 for (i = 0; i < 256; i++)
6179 if (XOR (islower (i), ISLOWER (i))
6180 || toupper (i) != TOUPPER (i))
6181 return 2;
6182 return 0;
6184 _ACEOF
6185 if ac_fn_c_try_run "$LINENO"; then :
6187 else
6188 ac_cv_header_stdc=no
6190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6191 conftest.$ac_objext conftest.beam conftest.$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6197 $as_echo "$ac_cv_header_stdc" >&6; }
6198 if test $ac_cv_header_stdc = yes; then
6200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6206 inttypes.h stdint.h unistd.h
6207 do :
6208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214 _ACEOF
6218 done
6221 for ac_header in sys/ipc.h sys/shm.h \
6222 sys/mmap.h sys/mman.h sysexits.h \
6223 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6225 do :
6226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6229 cat >>confdefs.h <<_ACEOF
6230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 _ACEOF
6235 done
6238 for ac_header in sys/mount.h
6239 do :
6240 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6242 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_SYS_MOUNT_H 1
6245 _ACEOF
6249 done
6252 ac_header_dirent=no
6253 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6254 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6256 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6257 if eval \${$as_ac_Header+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6263 #include <$ac_hdr>
6266 main ()
6268 if ((DIR *) 0)
6269 return 0;
6271 return 0;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 eval "$as_ac_Header=yes"
6276 else
6277 eval "$as_ac_Header=no"
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 eval ac_res=\$$as_ac_Header
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6283 $as_echo "$ac_res" >&6; }
6284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6285 cat >>confdefs.h <<_ACEOF
6286 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6287 _ACEOF
6289 ac_header_dirent=$ac_hdr; break
6292 done
6293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6294 if test $ac_header_dirent = dirent.h; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6296 $as_echo_n "checking for library containing opendir... " >&6; }
6297 if ${ac_cv_search_opendir+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 ac_func_search_save_LIBS=$LIBS
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307 #ifdef __cplusplus
6308 extern "C"
6309 #endif
6310 char opendir ();
6312 main ()
6314 return opendir ();
6316 return 0;
6318 _ACEOF
6319 for ac_lib in '' dir; do
6320 if test -z "$ac_lib"; then
6321 ac_res="none required"
6322 else
6323 ac_res=-l$ac_lib
6324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 ac_cv_search_opendir=$ac_res
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext
6331 if ${ac_cv_search_opendir+:} false; then :
6332 break
6334 done
6335 if ${ac_cv_search_opendir+:} false; then :
6337 else
6338 ac_cv_search_opendir=no
6340 rm conftest.$ac_ext
6341 LIBS=$ac_func_search_save_LIBS
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6344 $as_echo "$ac_cv_search_opendir" >&6; }
6345 ac_res=$ac_cv_search_opendir
6346 if test "$ac_res" != no; then :
6347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6353 $as_echo_n "checking for library containing opendir... " >&6; }
6354 if ${ac_cv_search_opendir+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 ac_func_search_save_LIBS=$LIBS
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6361 /* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
6364 #ifdef __cplusplus
6365 extern "C"
6366 #endif
6367 char opendir ();
6369 main ()
6371 return opendir ();
6373 return 0;
6375 _ACEOF
6376 for ac_lib in '' x; do
6377 if test -z "$ac_lib"; then
6378 ac_res="none required"
6379 else
6380 ac_res=-l$ac_lib
6381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 ac_cv_search_opendir=$ac_res
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext
6388 if ${ac_cv_search_opendir+:} false; then :
6389 break
6391 done
6392 if ${ac_cv_search_opendir+:} false; then :
6394 else
6395 ac_cv_search_opendir=no
6397 rm conftest.$ac_ext
6398 LIBS=$ac_func_search_save_LIBS
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6401 $as_echo "$ac_cv_search_opendir" >&6; }
6402 ac_res=$ac_cv_search_opendir
6403 if test "$ac_res" != no; then :
6404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6411 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6412 if ${ac_cv_header_stat_broken+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <sys/types.h>
6418 #include <sys/stat.h>
6420 #if defined S_ISBLK && defined S_IFDIR
6421 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6422 #endif
6424 #if defined S_ISBLK && defined S_IFCHR
6425 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6426 #endif
6428 #if defined S_ISLNK && defined S_IFREG
6429 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6430 #endif
6432 #if defined S_ISSOCK && defined S_IFREG
6433 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6434 #endif
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_header_stat_broken=no
6439 else
6440 ac_cv_header_stat_broken=yes
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6445 $as_echo "$ac_cv_header_stat_broken" >&6; }
6446 if test $ac_cv_header_stat_broken = yes; then
6448 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6453 $as_echo_n "checking for ANSI C header files... " >&6; }
6454 if ${ac_cv_header_stdc+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #include <stdlib.h>
6460 #include <stdarg.h>
6461 #include <string.h>
6462 #include <float.h>
6465 main ()
6469 return 0;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 ac_cv_header_stdc=yes
6474 else
6475 ac_cv_header_stdc=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 if test $ac_cv_header_stdc = yes; then
6480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 #include <string.h>
6485 _ACEOF
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 $EGREP "memchr" >/dev/null 2>&1; then :
6489 else
6490 ac_cv_header_stdc=no
6492 rm -f conftest*
6496 if test $ac_cv_header_stdc = yes; then
6497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 #include <stdlib.h>
6502 _ACEOF
6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504 $EGREP "free" >/dev/null 2>&1; then :
6506 else
6507 ac_cv_header_stdc=no
6509 rm -f conftest*
6513 if test $ac_cv_header_stdc = yes; then
6514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6515 if test "$cross_compiling" = yes; then :
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <ctype.h>
6521 #include <stdlib.h>
6522 #if ((' ' & 0x0FF) == 0x020)
6523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6525 #else
6526 # define ISLOWER(c) \
6527 (('a' <= (c) && (c) <= 'i') \
6528 || ('j' <= (c) && (c) <= 'r') \
6529 || ('s' <= (c) && (c) <= 'z'))
6530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6531 #endif
6533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6535 main ()
6537 int i;
6538 for (i = 0; i < 256; i++)
6539 if (XOR (islower (i), ISLOWER (i))
6540 || toupper (i) != TOUPPER (i))
6541 return 2;
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_run "$LINENO"; then :
6547 else
6548 ac_cv_header_stdc=no
6550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6551 conftest.$ac_objext conftest.beam conftest.$ac_ext
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6557 $as_echo "$ac_cv_header_stdc" >&6; }
6558 if test $ac_cv_header_stdc = yes; then
6560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6565 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6566 if ${ac_cv_header_sys_wait_h+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 #include <sys/wait.h>
6573 #ifndef WEXITSTATUS
6574 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6575 #endif
6576 #ifndef WIFEXITED
6577 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6578 #endif
6581 main ()
6583 int s;
6584 wait (&s);
6585 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6587 return 0;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_header_sys_wait_h=yes
6592 else
6593 ac_cv_header_sys_wait_h=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6598 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6599 if test $ac_cv_header_sys_wait_h = yes; then
6601 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6606 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6607 if ${ac_cv_header_time+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6613 #include <sys/time.h>
6614 #include <time.h>
6617 main ()
6619 if ((struct tm *) 0)
6620 return 0;
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_header_time=yes
6627 else
6628 ac_cv_header_time=no
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6633 $as_echo "$ac_cv_header_time" >&6; }
6634 if test $ac_cv_header_time = yes; then
6636 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6640 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6641 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6645 _ACEOF
6648 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6653 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6654 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6656 cat >>confdefs.h <<_ACEOF
6657 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6658 _ACEOF
6661 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6663 else
6664 case " $LIBOBJS " in
6665 *" fileblocks.$ac_objext "* ) ;;
6666 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6668 esac
6673 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6674 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_STAT_ST_RDEV 1
6678 _ACEOF
6681 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6687 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6688 if ${ac_cv_struct_tm+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 #include <time.h>
6697 main ()
6699 struct tm tm;
6700 int *p = &tm.tm_sec;
6701 return !p;
6703 return 0;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 ac_cv_struct_tm=time.h
6708 else
6709 ac_cv_struct_tm=sys/time.h
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6714 $as_echo "$ac_cv_struct_tm" >&6; }
6715 if test $ac_cv_struct_tm = sys/time.h; then
6717 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6721 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6722 #include <$ac_cv_struct_tm>
6725 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6727 cat >>confdefs.h <<_ACEOF
6728 #define HAVE_STRUCT_TM_TM_ZONE 1
6729 _ACEOF
6734 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6736 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6738 else
6739 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6741 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6742 ac_have_decl=1
6743 else
6744 ac_have_decl=0
6747 cat >>confdefs.h <<_ACEOF
6748 #define HAVE_DECL_TZNAME $ac_have_decl
6749 _ACEOF
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6752 $as_echo_n "checking for tzname... " >&6; }
6753 if ${ac_cv_var_tzname+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #include <time.h>
6759 #if !HAVE_DECL_TZNAME
6760 extern char *tzname[];
6761 #endif
6764 main ()
6766 return tzname[0][0];
6768 return 0;
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772 ac_cv_var_tzname=yes
6773 else
6774 ac_cv_var_tzname=no
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6780 $as_echo "$ac_cv_var_tzname" >&6; }
6781 if test $ac_cv_var_tzname = yes; then
6783 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6788 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6789 if test "x$ac_cv_type_off_t" = xyes; then :
6791 else
6793 cat >>confdefs.h <<_ACEOF
6794 #define off_t long int
6795 _ACEOF
6799 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6800 if test "x$ac_cv_type_pid_t" = xyes; then :
6802 else
6804 cat >>confdefs.h <<_ACEOF
6805 #define pid_t int
6806 _ACEOF
6810 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6811 if test "x$ac_cv_type_size_t" = xyes; then :
6813 else
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6817 _ACEOF
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6822 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6823 if ${ac_cv_type_uid_t+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6830 _ACEOF
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 $EGREP "uid_t" >/dev/null 2>&1; then :
6833 ac_cv_type_uid_t=yes
6834 else
6835 ac_cv_type_uid_t=no
6837 rm -f conftest*
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6841 $as_echo "$ac_cv_type_uid_t" >&6; }
6842 if test $ac_cv_type_uid_t = no; then
6844 $as_echo "#define uid_t int" >>confdefs.h
6847 $as_echo "#define gid_t int" >>confdefs.h
6852 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6853 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6857 _ACEOF
6863 # Look for some functions
6864 for ac_func in getpagesize kqueue statfs statvfs \
6865 clone kse_create rfork_thread thr_create sa_register \
6866 getcontext makecontext setcontext sigaltstack swapcontext
6867 do :
6868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6873 _ACEOF
6876 done
6882 for ac_header in $ac_header_list
6883 do :
6884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6885 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6888 cat >>confdefs.h <<_ACEOF
6889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890 _ACEOF
6894 done
6903 for ac_func in getpagesize
6904 do :
6905 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6906 if test "x$ac_cv_func_getpagesize" = xyes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_GETPAGESIZE 1
6909 _ACEOF
6912 done
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6915 $as_echo_n "checking for working mmap... " >&6; }
6916 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test "$cross_compiling" = yes; then :
6920 ac_cv_func_mmap_fixed_mapped=no
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 $ac_includes_default
6925 /* malloc might have been renamed as rpl_malloc. */
6926 #undef malloc
6928 /* Thanks to Mike Haertel and Jim Avera for this test.
6929 Here is a matrix of mmap possibilities:
6930 mmap private not fixed
6931 mmap private fixed at somewhere currently unmapped
6932 mmap private fixed at somewhere already mapped
6933 mmap shared not fixed
6934 mmap shared fixed at somewhere currently unmapped
6935 mmap shared fixed at somewhere already mapped
6936 For private mappings, we should verify that changes cannot be read()
6937 back from the file, nor mmap's back from the file at a different
6938 address. (There have been systems where private was not correctly
6939 implemented like the infamous i386 svr4.0, and systems where the
6940 VM page cache was not coherent with the file system buffer cache
6941 like early versions of FreeBSD and possibly contemporary NetBSD.)
6942 For shared mappings, we should conversely verify that changes get
6943 propagated back to all the places they're supposed to be.
6945 Grep wants private fixed already mapped.
6946 The main things grep needs to know about mmap are:
6947 * does it exist and is it safe to write into the mmap'd area
6948 * how to use it (BSD variants) */
6950 #include <fcntl.h>
6951 #include <sys/mman.h>
6953 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6954 char *malloc ();
6955 #endif
6957 /* This mess was copied from the GNU getpagesize.h. */
6958 #ifndef HAVE_GETPAGESIZE
6959 # ifdef _SC_PAGESIZE
6960 # define getpagesize() sysconf(_SC_PAGESIZE)
6961 # else /* no _SC_PAGESIZE */
6962 # ifdef HAVE_SYS_PARAM_H
6963 # include <sys/param.h>
6964 # ifdef EXEC_PAGESIZE
6965 # define getpagesize() EXEC_PAGESIZE
6966 # else /* no EXEC_PAGESIZE */
6967 # ifdef NBPG
6968 # define getpagesize() NBPG * CLSIZE
6969 # ifndef CLSIZE
6970 # define CLSIZE 1
6971 # endif /* no CLSIZE */
6972 # else /* no NBPG */
6973 # ifdef NBPC
6974 # define getpagesize() NBPC
6975 # else /* no NBPC */
6976 # ifdef PAGESIZE
6977 # define getpagesize() PAGESIZE
6978 # endif /* PAGESIZE */
6979 # endif /* no NBPC */
6980 # endif /* no NBPG */
6981 # endif /* no EXEC_PAGESIZE */
6982 # else /* no HAVE_SYS_PARAM_H */
6983 # define getpagesize() 8192 /* punt totally */
6984 # endif /* no HAVE_SYS_PARAM_H */
6985 # endif /* no _SC_PAGESIZE */
6987 #endif /* no HAVE_GETPAGESIZE */
6990 main ()
6992 char *data, *data2, *data3;
6993 const char *cdata2;
6994 int i, pagesize;
6995 int fd, fd2;
6997 pagesize = getpagesize ();
6999 /* First, make a file with some known garbage in it. */
7000 data = (char *) malloc (pagesize);
7001 if (!data)
7002 return 1;
7003 for (i = 0; i < pagesize; ++i)
7004 *(data + i) = rand ();
7005 umask (0);
7006 fd = creat ("conftest.mmap", 0600);
7007 if (fd < 0)
7008 return 2;
7009 if (write (fd, data, pagesize) != pagesize)
7010 return 3;
7011 close (fd);
7013 /* Next, check that the tail of a page is zero-filled. File must have
7014 non-zero length, otherwise we risk SIGBUS for entire page. */
7015 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7016 if (fd2 < 0)
7017 return 4;
7018 cdata2 = "";
7019 if (write (fd2, cdata2, 1) != 1)
7020 return 5;
7021 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7022 if (data2 == MAP_FAILED)
7023 return 6;
7024 for (i = 0; i < pagesize; ++i)
7025 if (*(data2 + i))
7026 return 7;
7027 close (fd2);
7028 if (munmap (data2, pagesize))
7029 return 8;
7031 /* Next, try to mmap the file at a fixed address which already has
7032 something else allocated at it. If we can, also make sure that
7033 we see the same garbage. */
7034 fd = open ("conftest.mmap", O_RDWR);
7035 if (fd < 0)
7036 return 9;
7037 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7038 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7039 return 10;
7040 for (i = 0; i < pagesize; ++i)
7041 if (*(data + i) != *(data2 + i))
7042 return 11;
7044 /* Finally, make sure that changes to the mapped area do not
7045 percolate back to the file as seen by read(). (This is a bug on
7046 some variants of i386 svr4.0.) */
7047 for (i = 0; i < pagesize; ++i)
7048 *(data2 + i) = *(data2 + i) + 1;
7049 data3 = (char *) malloc (pagesize);
7050 if (!data3)
7051 return 12;
7052 if (read (fd, data3, pagesize) != pagesize)
7053 return 13;
7054 for (i = 0; i < pagesize; ++i)
7055 if (*(data + i) != *(data3 + i))
7056 return 14;
7057 close (fd);
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_run "$LINENO"; then :
7062 ac_cv_func_mmap_fixed_mapped=yes
7063 else
7064 ac_cv_func_mmap_fixed_mapped=no
7066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7067 conftest.$ac_objext conftest.beam conftest.$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7072 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7073 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7075 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7078 rm -f conftest.mmap conftest.txt
7083 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7084 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7085 aros_config_ldflags=""
7087 aros_shared_default=yes
7089 aros_shared_cflags="-fPIC"
7090 aros_shared_aflags=""
7091 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7092 aros_kernel_ldflags="-Wl,-rpath,./lib"
7094 aros_kernel_ar_flags="cr"
7095 aros_target_ar_flags="cr"
7096 aros_target_nm_flags="-C -ul"
7097 aros_target_strip_flags="--strip-unneeded -R.comment"
7099 aros_compiler_libs=
7100 aros_arch_libs=
7102 aros_target_genmap="-Wl,-Map -Xlinker"
7104 # Native flavour stuff
7105 aros_serial_debug="0"
7107 # Palm native flavour stuff
7108 aros_palm_debug_hack="0"
7110 # Unix flavour stuff
7111 aros_nesting_supervisor="0"
7113 # Collect-aros stuff: "-ius" to ignore undefined symbols
7114 ignore_undefined_symbols=""
7116 # Check for X11 by default
7117 need_x11="auto"
7119 #-----------------------------------------------------------------------------
7122 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7123 # it switched on by default, and we use the host compiler, so it compiles AROS
7124 # code with this enabled resulting in link failures as we don't have support
7125 # for it.
7127 # We use two methods to disable it. For the host compiler (used to compile
7128 # some hosted modules), we test to see if the compiler supports stack
7129 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7130 # work on all platforms.
7132 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7133 # (this is done unconditionally, as it should have no effect on compilers
7134 # without the stack protection feature). This may be specific to the way that
7135 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7136 # strong enough to disable it in a generic way though, so we'll live with it
7137 # until another vendor ships GCC with it enabled in a different way, and deal
7138 # with it then.
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7142 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7143 save_cflags="$CFLAGS"
7144 CFLAGS="$CFLAGS -fno-stack-protector"
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7149 main ()
7153 return 0;
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 use_no_stack_protector="yes"
7158 else
7159 use_no_stack_protector="no"
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7163 $as_echo "$use_no_stack_protector" >&6; }
7164 if test "x-$use_no_stack_protector" = "x-yes" ; then
7165 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7167 CFLAGS="$save_cflags"
7169 #-----------------------------------------------------------------------------
7171 # Disable pointer-signedness warnings if the compiler recognises the option
7172 # (this only works for the host compiler at the moment)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7175 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7176 save_cflags="$CFLAGS"
7177 CFLAGS="$CFLAGS -Wno-pointer-sign"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7182 main ()
7186 return 0;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 use_no_sign_warning="yes"
7191 else
7192 use_no_sign_warning="no"
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7196 $as_echo "$use_no_sign_warning" >&6; }
7197 if test "x-$use_no_sign_warning" = "x-yes" ; then
7198 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7200 CFLAGS="$save_cflags"
7202 #-----------------------------------------------------------------------------
7204 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7207 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7208 save_cflags="$CFLAGS"
7209 CFLAGS="$CFLAGS -fgnu89-inline"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 main ()
7218 return 0;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 use_gnu89_inline="yes"
7223 else
7224 use_gnu89_inline="no"
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7228 $as_echo "$use_gnu89_inline" >&6; }
7229 if test "x-$use_gnu89_inline" = "x-yes" ; then
7230 gnu89_inline="-fgnu89-inline"
7232 CFLAGS="$save_cflags"
7234 #-----------------------------------------------------------------------------
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7237 $as_echo_n "checking for type of build... " >&6; }
7238 # Check whether --enable-build_type was given.
7239 if test "${enable_build_type+set}" = set; then :
7240 enableval=$enable_build_type; build_type=$enableval
7241 else
7242 build_type="personal"
7246 if test "$build_type" = "nightly"; then
7247 build_type_string="NIGHTLY"
7248 elif test "$build_type" = "snapshot"; then
7249 build_type_string="SNAPSHOT"
7250 elif test "$build_type" = "milestone"; then
7251 build_type_string="MILESTONE"
7252 elif test "$build_type" = "release"; then
7253 build_type_string="RELEASE"
7254 else
7255 build_type_string="PERSONAL"
7256 build_type="personal"
7259 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7262 $as_echo "$build_type" >&6; }
7264 #-----------------------------------------------------------------------------
7265 all_debug_types="messages stack modules mungwall symbols"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7268 $as_echo_n "checking which debug types to enable... " >&6; }
7269 # Check whether --enable-debug was given.
7270 if test "${enable_debug+set}" = set; then :
7271 enableval=$enable_debug; debug="$enableval"
7272 else
7273 debug=""
7277 if test "$debug" = "" -o "$debug" = "no"; then
7278 debug="none"
7279 elif test "$debug" = "yes"; then
7280 debug="all"
7283 if test "$debug" = "all" ; then
7284 debug="messages stack modules symbols"
7285 for d in $all_debug_types; do
7286 export aros_${d}_debug="1"
7287 done
7288 else
7289 for d in $all_debug_types; do
7290 export aros_${d}_debug="0"
7291 done
7294 if test "$debug" != "none"; then
7295 debug=`echo $debug | sed s/,/\ /g`
7296 for d in $debug; do
7297 found="0"
7298 for d2 in $all_debug_types; do
7299 if test "$d2" = "$d"; then
7300 found="1"
7301 break
7303 done
7304 if test "$found" = "0"; then
7305 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7307 export aros_${d}_debug="1"
7308 done
7309 aros_debug="yes"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7312 $as_echo "$debug" >&6; }
7314 if test "$aros_messages_debug" = "1"; then
7315 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7316 else
7317 aros_messages_debug=""
7319 if test "$aros_symbols_debug" = "1"; then
7320 aros_symbols_debug="-g"
7321 else
7322 aros_symbols_debug=""
7325 # These are the flags to pass when compiling debugged programs
7326 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7327 aros_debug_aflags=""
7328 aros_debug_ldflags="$aros_symbols_debug"
7330 #-----------------------------------------------------------------------------
7331 # Checking for distcc and ccache.
7333 # Always apply the transforms in this particular order. Basically you should
7334 # always run 'ccache distcc compiler' in that order for the best performance.
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7337 $as_echo_n "checking whether to enable distcc... " >&6; }
7338 # Check whether --enable-distcc was given.
7339 if test "${enable_distcc+set}" = set; then :
7340 enableval=$enable_distcc; distcc="$enableval"
7341 else
7342 distcc="no"
7345 if test "$distcc" != "" -a "$distcc" != "no"; then
7346 # AC_CHECK_PROG will print out the result in this case
7347 # Extract the first word of "distcc", so it can be a program name with args.
7348 set dummy distcc; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_path_DISTCC+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 case $DISTCC in
7355 [\\/]* | ?:[\\/]*)
7356 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7372 IFS=$as_save_IFS
7374 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7376 esac
7378 DISTCC=$ac_cv_path_DISTCC
7379 if test -n "$DISTCC"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7381 $as_echo "$DISTCC" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7394 $as_echo_n "checking whether to enable ccache... " >&6; }
7395 # Check whether --enable-ccache was given.
7396 if test "${enable_ccache+set}" = set; then :
7397 enableval=$enable_ccache; ccache="$enableval"
7398 else
7399 ccache="no"
7402 if test "$ccache" != "" -a "$ccache" != "no"; then
7403 # AC_CHECK_PROG will print out the result in this case
7404 # Extract the first word of "ccache", so it can be a program name with args.
7405 set dummy ccache; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_CCACHE+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$CCACHE"; then
7412 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_CCACHE="ccache"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7425 done
7426 done
7427 IFS=$as_save_IFS
7431 CCACHE=$ac_cv_prog_CCACHE
7432 if test -n "$CCACHE"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7434 $as_echo "$CCACHE" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 #-----------------------------------------------------------------------------
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7448 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7450 # Check whether --with-gcc-version was given.
7451 if test "${with_gcc_version+set}" = set; then :
7452 withval=$with_gcc_version; kernel_tool_version="$withval"
7453 else
7454 kernel_tool_version="default"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7458 $as_echo "$kernel_tool_version" >&6; }
7460 #-----------------------------------------------------------------------------
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7462 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7464 # Check whether --with-gcc-version was given.
7465 if test "${with_gcc_version+set}" = set; then :
7466 withval=$with_gcc_version; target_tool_version="$withval"
7467 else
7468 target_tool_version="default"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7472 $as_echo "$target_tool_version" >&6; }
7474 #-----------------------------------------------------------------------------
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7476 $as_echo_n "checking what optimization flags to use... " >&6; }
7478 # Check whether --with-optimization was given.
7479 if test "${with_optimization+set}" = set; then :
7480 withval=$with_optimization; optimization="$withval"
7481 else
7482 optimization="unknown"
7485 if test "$optimization" = "unknown"; then
7486 if test "$debug" != "none"; then
7487 optimization="-O0"
7488 else
7489 optimization="-O2"
7492 aros_config_cflags="$aros_config_cflags $optimization"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7494 $as_echo "$optimization" >&6; }
7496 #-----------------------------------------------------------------------------
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7498 $as_echo_n "checking what paranoia flags to use... " >&6; }
7500 # Check whether --with-paranoia was given.
7501 if test "${with_paranoia+set}" = set; then :
7502 withval=$with_paranoia; paranoia_flags="$withval"
7503 else
7504 paranoia_flags="default"
7507 if test "$paranoia_flags" = "default"; then
7508 paranoia_flags=""
7509 else if test "$paranoia_flags" = "yes"; then
7510 paranoia_flags="-Wall -Werror"
7511 fi fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7513 $as_echo "$paranoia_flags" >&6; }
7514 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7516 #-----------------------------------------------------------------------------
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7518 $as_echo_n "checking what target variant to enable... " >&6; }
7519 # Check whether --enable-target_variant was given.
7520 if test "${enable_target_variant+set}" = set; then :
7521 enableval=$enable_target_variant; target_variant=$enableval
7522 else
7523 target_variant=""
7526 if test "$target_variant" = ""; then
7527 aros_target_variant=""
7528 aros_target_suffix=""
7529 enableval="none"
7530 else
7531 aros_target_variant="$target_variant"
7532 aros_target_suffix="-$target_variant"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7535 $as_echo "$enableval" >&6; }
7537 #-----------------------------------------------------------------------------
7538 # Target-specific defaults. You can override then on a per-target basis.
7540 # Bootloader name. Currently used by PC target.
7541 target_bootloader="none"
7543 #-----------------------------------------------------------------------------
7544 # Additional options for some specific targets
7546 case "$aros_target_variant" in
7547 ios)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7549 $as_echo_n "checking XCode path... " >&6; }
7551 # Check whether --with-xcode was given.
7552 if test "${with_xcode+set}" = set; then :
7553 withval=$with_xcode; aros_xcode_path="$withval"
7554 else
7555 aros_xcode_path="/Developer"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7559 $as_echo "$aros_xcode_path" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7562 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7564 # Check whether --with-sdk-version was given.
7565 if test "${with_sdk_version+set}" = set; then :
7566 withval=$with_sdk_version; aros_sdk_version="$withval"
7567 else
7568 aros_sdk_version="4.1"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7572 $as_echo "$aros_sdk_version" >&6; }
7576 "android")
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7578 $as_echo_n "checking Android SDK path... " >&6; }
7580 # Check whether --with-sdk was given.
7581 if test "${with_sdk+set}" = set; then :
7582 withval=$with_sdk; aros_android_sdk="$withval"
7583 else
7584 aros_android_sdk=$default_android_sdk
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7588 $as_echo "$aros_android_sdk" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7591 $as_echo_n "checking Android NDK path... " >&6; }
7593 # Check whether --with-ndk was given.
7594 if test "${with_ndk+set}" = set; then :
7595 withval=$with_ndk; aros_android_ndk="$withval"
7596 else
7597 aros_android_ndk="none"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7601 $as_echo "$aros_android_ndk" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7604 $as_echo_n "checking what Android SDK version to use... " >&6; }
7606 # Check whether --with-sdk-version was given.
7607 if test "${with_sdk_version+set}" = set; then :
7608 withval=$with_sdk_version; aros_sdk_version="$withval"
7609 else
7610 aros_sdk_version="12"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7614 $as_echo "$aros_sdk_version" >&6; }
7616 if test "$aros_android_ndk" != "none"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7618 $as_echo_n "checking what Android NDK version to use... " >&6; }
7620 # Check whether --with-ndk-version was given.
7621 if test "${with_ndk_version+set}" = set; then :
7622 withval=$with_ndk_version; aros_ndk_version="$withval"
7623 else
7624 aros_ndk_version="9"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7628 $as_echo "$aros_ndk_version" >&6; }
7631 export PATH="$aros_android_sdk/tools:$PATH"
7632 # Extract the first word of "$android_tool", so it can be a program name with args.
7633 set dummy $android_tool; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_path_android_tool+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $android_tool in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7655 done
7656 done
7657 IFS=$as_save_IFS
7660 esac
7662 android_tool=$ac_cv_path_android_tool
7663 if test -n "$android_tool"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7665 $as_echo "$android_tool" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7672 if test "$android_tool" = ""; then
7673 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7676 aros_android_level=android-$aros_sdk_version
7677 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7678 echo "Platform $aros_android_level is not installed in your SDK"
7679 echo "Use --with-sdk-version=<API level number> to select another platform version"
7680 echo "You can check what plaform versions are installed in your SDK"
7681 echo "by examining contents of $aros_android_sdk/platforms directory"
7682 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7685 # Extract the first word of "ant", so it can be a program name with args.
7686 set dummy ant; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_path_ant+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 case $ant in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7710 IFS=$as_save_IFS
7713 esac
7715 ant=$ac_cv_path_ant
7716 if test -n "$ant"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7718 $as_echo "$ant" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7725 if test "$ant" = ""; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7727 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7730 if test "$host_os" = "mingw32"; then
7731 android_tool="cmd //c $android_tool"
7735 esac
7737 #-----------------------------------------------------------------------------
7738 # External toolchains
7739 kernel_tool_prefix="none"
7740 aros_tool_prefix="none"
7741 elf_tool_prefix="${target_cpu}-elf-"
7743 # This is the target configuration switch.
7744 case "$target_os" in
7745 linux*)
7746 aros_target_arch="linux"
7747 aros_target_family="unix"
7748 case "$target_cpu" in
7749 *m68k*)
7750 aros_target_cpu="m68k"
7751 aros_object_format="m68kelf"
7752 aros_flavour="emulcompat"
7753 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7754 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7755 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7756 gcc_target_cpu="mc68000"
7758 *i?86*)
7759 aros_target_cpu="i386"
7760 aros_object_format="elf_i386"
7761 aros_flavour="emulation"
7762 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7763 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7764 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7765 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7766 aros_config_ldflags="-m32 -march=i486"
7767 aros_kernel_ldflags="-melf_i386"
7768 aros_default_wbdepth=8
7769 gcc_target_cpu="i386"
7770 pci_hidd_target="hidd-pci-linux"
7771 android_tool_dir_prefix="x86"
7772 android_tool_prefix="i686-android-linux"
7773 android_ndk_arch="x86"
7775 *x86_64*)
7776 aros_target_cpu="x86_64"
7777 aros_object_format="elf_x86_64"
7778 aros_flavour="emulation"
7779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7780 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7781 aros_default_wbdepth=8
7782 pci_hidd_target="hidd-pci-linux"
7784 *powerpc*)
7785 aros_target_cpu="ppc"
7786 aros_object_format="elf32ppc"
7787 aros_flavour="emulation"
7788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7789 aros_default_wbdepth=8
7790 gcc_target_cpu="ppc"
7792 # TODO
7793 # Same as powerpc, but I need this for the nightly build to work again.
7794 # Actually, the nightly should be made working with powerpc target.
7795 # That just was too much work for the moment, another week or two.
7796 *ppc*)
7797 aros_target_cpu="ppc"
7798 aros_object_format="elf32ppc"
7799 aros_flavour="emulation"
7800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7801 aros_default_wbdepth=8
7802 gcc_target_cpu="ppc"
7804 *arm*)
7805 aros_target_cpu="arm"
7806 aros_object_format="armelf_linux_eabi"
7807 aros_flavour="emulation"
7808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7809 gcc_target_cpu="arm"
7810 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7811 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7812 aros_arch_libs="-laeabi"
7813 android_tool_dir_prefix="arm-linux-androideabi"
7814 android_tool_prefix="arm-linux-androideabi"
7815 android_ndk_arch="arm"
7816 kernel_tool_prefix="arm-linux-gnueabi-"
7819 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7821 esac
7822 case "$aros_target_variant" in
7823 android)
7825 if test "$android_ndk_arch" = ""; then
7826 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7829 aros_default_wbwidth=320
7830 aros_default_wbheight=480
7831 if test "$aros_android_ndk" = "none"; then
7832 aros_kernel_cflags="-mandroid"
7833 aros_kernel_ldflags="-mandroid"
7834 CFLAGS="-mandroid"
7835 else
7836 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7837 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7838 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7839 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7840 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7841 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7843 need_x11=no
7844 x11_hidd_target=kernel-hidd-androidgfx-kobj
7845 # Disable implicit PIC mode
7846 aros_target_cflags="$aros_target_cflags -fno-pic"
7847 kernel_tool_prefix="$android_tool_prefix-"
7849 esac
7853 aros_target_arch="pc"
7854 aros_shared_default="no"
7855 target_bootloader="grub2"
7856 case "$target_cpu" in
7857 *i?86*)
7858 aros_target_cpu="i386"
7861 if test "$aros_object_format" = "" ; then
7862 aros_object_format="elf_i386"
7864 aros_flavour="standalone"
7865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7866 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7867 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7868 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7869 aros_config_ldflags="-m32 -march=i486"
7870 aros_kernel_ldflags="-melf_i386"
7871 aros_default_wbwidth=640
7872 aros_default_wbheight=480
7873 gcc_target_cpu="i386"
7875 *x86_64*)
7876 aros_target_cpu="x86_64"
7877 aros_serial_debug=1
7878 if test "$aros_object_format" = "" ; then
7879 aros_object_format="elf_x86_64"
7881 aros_flavour="standalone"
7882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7883 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7884 aros_kernel_ldflags=""
7885 aros_default_wbwidth=640
7886 aros_default_wbheight=480
7889 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7891 esac
7894 prep)
7895 aros_target_arch="prep"
7896 aros_shared_default="no"
7897 aros_target_cpu="ppc"
7898 aros_object_format="elf32ppc"
7899 aros_flavour="ppcnative"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7901 aros_kernel_ldflags=""
7902 aros_default_wbwidth=640
7903 aros_default_wbheight=480
7904 gcc_target_cpu="ppc"
7907 freebsd*)
7908 aros_target_arch="freebsd"
7909 aros_target_family="unix"
7910 aros_target_cpu="i386"
7911 aros_flavour="emulation"
7912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7913 gcc_target_cpu="i386"
7915 aros_target_strip_flags="-x"
7918 darwin*)
7919 aros_target_arch="darwin"
7920 aros_target_family="unix"
7921 aros_flavour="emulation"
7922 case "$target_cpu" in
7923 *i?86*)
7924 aros_ios_platform="iPhoneSimulator"
7925 aros_target_cpu="i386"
7926 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7927 aros_kernel_ldflags=""
7928 aros_macosx_version="10.4"
7929 aros_default_wbdepth=8
7930 gcc_target_cpu="i386"
7931 aros_object_format="elf_i386"
7932 aros_kernel_ar_flags="-cr"
7933 aros_target_strip_flags="-x"
7934 kernel_tool_flags="-m32"
7936 *x86_64*)
7937 aros_target_cpu="x86_64"
7938 aros_object_format="elf_x86_64"
7939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7940 aros_macosx_version="10.6"
7941 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7942 aros_kernel_cflags="-m64"
7943 aros_kernel_ldflags="-m64"
7944 aros_target_cflags="-mcmodel=large"
7945 aros_default_wbdepth=8
7946 aros_kernel_ar="ar"
7947 aros_kernel_ar_flags="-cr"
7948 aros_kernel_ld="ld"
7949 aros_kernel_ranlib="ranlib"
7951 *ppc*)
7952 aros_target_cpu="ppc"
7953 aros_object_format="elf32ppc"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7955 aros_kernel_ldflags=""
7956 aros_macosx_version="10.0"
7957 aros_default_wbdepth=8
7958 gcc_target_cpu="ppc"
7959 aros_kernel_ar="ar"
7960 aros_kernel_ar_flags="-cr"
7961 aros_kernel_ld="ld -arch ppc"
7962 aros_kernel_ranlib="ranlib -arch ppc"
7963 kernel_tool_prefix="powerpc-apple-darwin10-"
7965 *arm*)
7966 aros_ios_platform="iPhoneOS"
7967 aros_target_cpu="arm"
7968 aros_object_format="armelf_linux_eabi"
7969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7970 aros_arch_libs="-laeabi"
7971 aros_default_wbdepth=8
7972 gcc_target_cpu="arm"
7973 aros_kernel_ar="ar"
7974 aros_kernel_ar_flags="-cr"
7975 aros_kernel_ld="ld -arch arm"
7976 aros_kernel_ranlib="ranlib -arch arm"
7977 kernel_tool_prefix="arm-apple-darwin10-"
7978 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7981 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7983 esac
7984 case "$aros_target_variant" in
7985 ios)
7986 aros_ios_version="3.0"
7987 aros_default_wbwidth=320
7988 aros_default_wbheight=480
7989 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7990 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7991 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7992 need_x11=no
7993 # This is here because it may depend on iOS or SDK version
7994 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7995 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7996 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7999 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8000 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8002 esac
8005 dragonfly*)
8006 aros_target_arch="dragonfly"
8007 aros_target_family="unix"
8008 aros_flavour="emulation"
8009 case "$target_cpu" in
8010 *i?86*)
8011 aros_target_cpu="i386"
8012 aros_object_format="elf_i386"
8013 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8015 *x86_64*)
8016 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8017 aros_target_cpu="x86_64"
8018 aros_object_format="elf_x86_64"
8019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8022 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8024 esac
8027 netbsd*)
8028 aros_target_arch="netbsd"
8029 aros_target_family="unix"
8030 case "$target_cpu" in
8031 *m68k*)
8032 aros_target_cpu="m68k"
8033 aros_object_format="m68kelf"
8034 aros_flavour="emulcompat"
8035 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8036 gcc_target_cpu="mc68000"
8038 *i?86*)
8039 aros_target_cpu="i386"
8040 aros_object_format="elf_i386"
8041 aros_flavour="emulation"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8043 aros_default_wbdepth=8
8044 gcc_target_cpu="i386"
8047 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8049 esac
8050 aros_target_genmap="-Wl,-M -Xlinker >"
8051 aros_flavour="emulation"
8052 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8055 openbsd*)
8056 aros_target_arch="openbsd"
8057 aros_target_family="unix"
8058 case "$target_cpu" in
8059 *i?86*)
8060 aros_target_cpu="i386"
8061 aros_object_format="elf_i386"
8062 aros_flavour="emulation"
8063 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8064 gcc_target_cpu="i386"
8067 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8069 esac
8070 aros_target_genmap="-Wl,-M -Xlinker >"
8071 aros_target_nm_flags="-u"
8072 aros_flavour="emulation"
8075 solaris*)
8076 aros_target_arch="solaris"
8077 aros_target_family="unix"
8078 case "$target_cpu" in
8079 *i?86*)
8080 aros_target_cpu="i386"
8081 aros_object_format="elf_i386"
8082 aros_flavour="emulation"
8083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8084 aros_default_wbdepth=8
8085 gcc_target_cpu="i386"
8087 *sparc*)
8088 aros_target_cpu="sparc"
8089 aros_object_format="elf_sparc"
8090 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8091 gcc_target_cpu="sparc"
8094 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8096 esac
8097 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8098 aros_flavour="emulation"
8101 morphos*)
8102 aros_target_arch="morphos"
8103 aros_shared_default="no"
8104 aros_target_cpu="ppc"
8105 aros_object_format="elf_ppc"
8106 aros_flavour="nativecompat"
8107 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8108 gcc_target_cpu="ppc"
8111 sam440)
8112 aros_target_arch="sam440"
8113 aros_shared_default="no"
8114 aros_target_cpu="ppc"
8115 aros_object_format="elf32ppc"
8116 aros_flavour="ppcnative"
8117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8118 aros_kernel_ldflags=""
8119 aros_default_wbwidth=1024
8120 aros_default_wbheight=768
8121 aros_default_wbdepth=24
8122 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8123 gcc_target_cpu="powerpc"
8126 efika)
8127 aros_target_arch="efika"
8128 aros_shared_default="no"
8129 aros_target_cpu="arm"
8130 aros_object_format="armelf_linux_eabi"
8131 aros_flavour="standalone"
8132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8133 aros_kernel_ldflags=""
8134 aros_default_wbwidth=1024
8135 aros_default_wbheight=600
8136 aros_arch_libs="-laeabi"
8137 gcc_default_cpu="armv7-a"
8138 gcc_default_fpu="vfpv3"
8139 gcc_default_float_abi="softfp"
8140 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8141 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8144 chrp)
8145 aros_target_arch="chrp"
8146 aros_shared_default="no"
8147 aros_target_cpu="ppc"
8148 aros_object_format="elf32ppc"
8149 aros_flavour="ppcnative"
8150 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8151 aros_kernel_ldflags=""
8152 aros_default_wbwidth=640
8153 aros_default_wbheight=480
8154 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8155 gcc_target_cpu="powerpc"
8156 case "$aros_target_variant" in
8157 efika)
8158 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8160 esac
8163 amiga*)
8164 aros_target_arch="amiga"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8166 aros_shared_default="no"
8168 case "$target_cpu" in
8169 *m68k*)
8170 # Check whether --enable-amigaos_compliance was given.
8171 if test "${enable_amigaos_compliance+set}" = set; then :
8172 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8175 aros_enable_mmu=no
8176 aros_target_cpu="m68k"
8177 aros_object_format="m68kelf"
8178 aros_flavour="standcompat"
8179 gcc_target_cpu="m68000"
8180 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os"
8181 aros_config_aflags="$aros_config_aflags"
8182 aros_target_strip_flags="-R.comment --strip-debug"
8183 aros_default_wbwidth=640
8184 aros_default_wbheight=256
8185 aros_default_wbdepth=2
8187 *ppc*)
8188 aros_cpu="ppc"
8189 aros_flavour="native"
8190 gcc_target_cpu="ppc"
8193 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8195 esac
8198 mingw*)
8199 aros_target_arch="mingw32"
8200 aros_shared_default="no"
8201 aros_flavour="emulation"
8202 aros_shared_cflags=""
8203 need_crosstools="yes"
8204 need_dlopen="no"
8205 rescomp="windres"
8206 case "$target_cpu" in
8207 *i?86*)
8208 aros_target_cpu="i386"
8209 aros_object_format="elf_i386"
8210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8211 aros_default_wbdepth=8
8212 gcc_target_cpu="i386"
8214 kernel_tool_prefix="i386-mingw32-"
8216 *x86_64*)
8217 aros_target_cpu="x86_64"
8218 aros_object_format="elf_x86_64"
8219 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8220 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8221 aros_default_wbdepth=8
8222 kernel_tool_prefix="x86_64-w64-mingw32-"
8224 *arm*)
8225 aros_target_cpu="arm"
8226 aros_object_format="armelf_linux_eabi"
8227 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8228 aros_arch_libs="-laeabi"
8229 aros_default_wbdepth=8
8230 gcc_target_cpu="arm"
8231 gcc_default_float_abi="soft"
8232 kernel_tool_prefix="arm-mingw32ce-"
8233 aros_default_wbwidth=160
8234 aros_default_wbheight=160
8237 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8239 esac
8240 if test $host_os = "cygwin"; then
8241 aros_kernel_cflags="-mno-cygwin"
8244 pp*)
8245 aros_target_arch="pp"
8246 aros_shared_default="no"
8247 case "$target_cpu" in
8248 *m68k*)
8249 aros_target_cpu="m68k"
8250 aros_object_format="m68kelf"
8251 aros_flavour="palmnative"
8252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8253 aros_default_wbwidth=160
8254 aros_default_wbheight=160
8255 aros_default_wbdepth=1
8256 aros_target_ar_flags="cru"
8257 aros_compiler_libs="-lgcc1"
8258 aros_shared_default=no
8259 aros_shared_cflags="-fpic"
8260 aros_shared_aflags=""
8261 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8262 aros_kernel_ldflags="-Wl,-rpath,./lib"
8263 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8264 aros_debug_aflags=""
8265 aros_debug_ldflags="$aros_symbols_debug"
8266 aros_mungwall_debug="0"
8267 aros_modules_debug="0"
8268 gcc_target_cpu="mc68000"
8269 ignore_undefined_symbols="-ius"
8272 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8274 esac
8277 mac*)
8278 aros_target_arch="mac"
8279 aros_shared_default="no"
8280 case "$target_cpu" in
8281 *m68k*)
8282 aros_target_cpu="m68k"
8283 aros_object_format="m68kelf"
8284 aros_flavour="mac68knative"
8285 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8286 aros_default_wbwidth=512
8287 aros_default_wbheight=384
8288 aros_default_wbdepth=8
8289 aros_target_ar_flags="cru"
8290 aros_compiler_libs="-lgcc1"
8291 aros_shared_default=no
8292 aros_shared_cflags="-fpic"
8293 aros_shared_aflags=""
8294 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8295 aros_kernel_ldflags="-Wl,-rpath,./lib"
8296 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8297 aros_debug_aflags=""
8298 aros_debug_ldflags="$aros_symbols_debug"
8299 aros_mungwall_debug="0"
8300 aros_modules_debug="0"
8301 gcc_target_cpu="mc68000"
8302 ignore_undefined_symbols="-ius"
8305 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8307 esac
8311 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8313 esac
8315 #-----------------------------------------------------------------------------
8316 crosstools_guess=yes
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8319 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8321 # Check whether --with-kernel-toolchain-prefix was given.
8322 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8323 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8327 $as_echo "$kernel_tool_prefix" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8330 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8332 # Check whether --with-elf-toolchain-prefix was given.
8333 if test "${with_elf_toolchain_prefix+set}" = set; then :
8334 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8335 crosstools_guess=no
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8339 $as_echo "$elf_tool_prefix" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8342 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8344 # Check whether --with-aros-toolchain was given.
8345 if test "${with_aros_toolchain+set}" = set; then :
8346 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8347 crosstools_guess=no
8350 if test "$aros_tool_prefix" = "yes" ; then
8351 aros_tool_prefix=$aros_target_cpu-aros-
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8354 $as_echo "$aros_tool_prefix" >&6; }
8356 #-----------------------------------------------------------------------------
8357 # Checking if we should build crosstools..
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8359 $as_echo_n "checking whether to build crosstools... " >&6; }
8360 # Check whether --enable-crosstools was given.
8361 if test "${enable_crosstools+set}" = set; then :
8362 enableval=$enable_crosstools; crosstools="$enableval"
8363 else
8364 crosstools="$crosstools_guess"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8368 $as_echo "$crosstools" >&6; }
8370 if test "${crosstools}" = "yes"; then
8371 if test "${crosstools_guess}" = "no"; then
8372 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8377 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8379 # Check whether --with-aros-toolchain-install was given.
8380 if test "${with_aros_toolchain_install+set}" = set; then :
8381 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8384 if test "x$aros_toolchain_install" = "x"; then
8385 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8386 else
8387 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8388 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8391 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8394 # Now process extra architecture-specific options.
8395 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8396 # as well as floating-point ABI.
8397 case "$aros_target_cpu" in
8398 arm)
8399 if test "$gcc_default_cpu" = ""; then
8400 gcc_default_cpu="armv6"
8402 if test "$gcc_default_fpu" = ""; then
8403 gcc_default_fpu="vfp"
8405 if test "$gcc_default_float_abi" = ""; then
8406 gcc_default_float_abi="softfp"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8410 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8412 # Check whether --with-cpu was given.
8413 if test "${with_cpu+set}" = set; then :
8414 withval=$with_cpu; aros_gcc_cpu="$withval"
8415 else
8416 aros_gcc_cpu=$gcc_default_cpu
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8420 $as_echo "$aros_gcc_cpu" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8423 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8425 # Check whether --with-fpu was given.
8426 if test "${with_fpu+set}" = set; then :
8427 withval=$with_fpu; aros_gcc_fpu="$withval"
8428 else
8429 aros_gcc_fpu=$gcc_default_fpu
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8433 $as_echo "$aros_gcc_fpu" >&6; }
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8436 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8438 # Check whether --with-float was given.
8439 if test "${with_float+set}" = set; then :
8440 withval=$with_float; aros_gcc_float_abi="$withval"
8441 else
8442 aros_gcc_float_abi=$gcc_default_float_abi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8446 $as_echo "$aros_gcc_float_abi" >&6; }
8448 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"
8449 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"
8451 esac
8453 # Some formats need custom ELF specs.
8454 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8455 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8456 elf_specs_in=config/${aros_object_format}-specs.in
8457 else
8458 elf_specs_in=config/elf-specs.in
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8462 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8464 # Check whether --with-aros-gcc was given.
8465 if test "${with_aros_gcc+set}" = set; then :
8466 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8467 else
8468 aros_gcc_version=""
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8472 $as_echo "$aros_gcc_version" >&6; }
8474 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8475 # Since we override specs, we may need to put these defines there
8476 if test "$gcc_target_cpu" != ""; then
8477 gcc_target_cpu="-D__${gcc_target_cpu}__"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8481 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8483 # Check whether --with-portssources was given.
8484 if test "${with_portssources+set}" = set; then :
8485 withval=$with_portssources; with_portssrcdir=$withval
8486 else
8487 with_portssrcdir="default"
8490 if test "$with_portssrcdir" = "default"; then
8491 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8492 else
8493 AROS_PORTSSRCDIR="$with_portssrcdir"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8496 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8499 $as_echo_n "checking which bootloader to use... " >&6; }
8501 # Check whether --with-bootloader was given.
8502 if test "${with_bootloader+set}" = set; then :
8503 withval=$with_bootloader; target_bootloader=$withval
8504 else
8505 target_bootloader=$target_bootloader
8508 if test "$target_bootloader" = "none"; then
8509 aros_target_bootloader=""
8510 else
8511 aros_target_bootloader="$target_bootloader"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8514 $as_echo "$target_bootloader" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8517 $as_echo_n "checking which icon-set to use... " >&6; }
8519 # Check whether --with-iconset was given.
8520 if test "${with_iconset+set}" = set; then :
8521 withval=$with_iconset; target_iconset=$withval
8522 else
8523 target_iconset="default"
8526 if test "$target_iconset" = "default"; then
8527 aros_target_iconset="Gorilla"
8528 target_iconset="default (Gorilla)"
8529 else
8530 aros_target_iconset="$target_iconset"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8533 $as_echo "$target_iconset" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8536 $as_echo_n "checking which GUI Theme to use... " >&6; }
8538 # Check whether --with-theme was given.
8539 if test "${with_theme+set}" = set; then :
8540 withval=$with_theme; target_guitheme=$withval
8541 else
8542 target_guitheme="default"
8545 if test "$target_guitheme" = "default"; then
8546 aros_target_guitheme="Ice"
8547 else
8548 aros_target_guitheme="$target_guitheme"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8551 $as_echo "$aros_target_guitheme" >&6; }
8553 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8554 # for target code)
8555 cross_compiling=no
8557 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8558 cross_compiling=yes
8561 if test "$aros_host_cpu" == "x86_64" ; then
8562 if test "$aros_target_cpu" == "i386" ; then
8563 cross_compiling=no
8567 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8568 if test "$aros_host_arch" != "$aros_target_arch" ; then
8569 cross_compiling=yes
8571 else
8572 if test "$host_cc_elf" = "no" ; then
8573 cross_compiling=yes
8577 if test "$cross_compiling" = "no" ; then
8578 kernel_tool_prefix=""
8579 if test "$host_cc_elf" = "yes" ; then
8580 elf_tool_prefix=""
8584 #######################################################################
8585 ## Compute what toolchains to use, and their paths ##
8586 #######################################################################
8588 # This takes, as input:
8589 # crosstools {yes,no}
8590 # aros_gcc_version {default,[version]}
8591 # kernel_tool_prefix {none,[some-arch-os-]}
8592 # aros_tool_prefix ${target_cpu}-aros-
8594 # The output is
8595 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8596 # Where the 'kernel' binaries are located
8597 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8598 # Where the 'target' binaries are located
8599 # (not the symlink farm - that is aros_target_*!)
8601 # The rules are:
8602 # if crosstools then
8603 # if kernel_tools_prefix = "no-kernel-prefix-"
8604 # aros_kernel_* = crosstools cc paths
8605 # aros_kernel_cc = elf cc wrapper around crosstools cc
8606 # else
8607 # VALIDATE(${kernel_tools_prefix}*)
8608 # aros_kernel_* = ${kernel_tools_prefix}*
8609 # if ${kernel_tools_prefix}cc is an AROS gcc
8610 # aros_kernel_cc = ${kernel_tools_prefix}cc
8611 # else
8612 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8613 # fi
8614 # fi
8616 # orig_target_* = aros built crosstools
8617 # orig_target_cc = elf cc wrapper around crosstools cc
8618 # else
8619 # VALIDATE(${kernel_tools_prefix}*)
8621 # orig_target_* = aros_kernel_*
8622 # if aros_kernel_cc is an AROS gcc
8623 # orig_target_cc = aros_kernel_cc
8624 # else
8625 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8626 # fi
8627 # fi
8629 target_tool_prefix="${target_cpu}-aros-"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8632 $as_echo_n "checking which kernel tools... " >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8634 $as_echo "$kernel_tool_prefix" >&6; };
8636 if test "$kernel_tool_prefix" = "none" ; then
8637 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8638 as_fn_error $? "--with-kernel-tool-prefix= is required for this arch" "$LINENO" 5
8640 else
8641 # Kernel tools required - find them
8642 # Note that 'normally', aros_kernel_* overrides will
8643 # empty, unless specified in the per-arch sections above.
8645 if test "$aros_kernel_cpp" = ""; then
8646 if test "$cross_compiling" = "yes" ; then
8647 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8648 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $aros_kernel_cpp in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8675 esac
8677 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8678 if test -n "$aros_kernel_cpp"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8680 $as_echo "$aros_kernel_cpp" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8687 else
8688 if test "$GCC" = "yes"; then
8689 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8690 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8691 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 case $aros_kernel_cpp in
8698 [\\/]* | ?:[\\/]*)
8699 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in `dirname $aros_gcc_cpp`
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8713 done
8714 done
8715 IFS=$as_save_IFS
8718 esac
8720 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8721 if test -n "$aros_kernel_cpp"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8723 $as_echo "$aros_kernel_cpp" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8731 if test "$aros_kernel_cpp" = ""; then
8732 # Extract the first word of "cpp", so it can be a program name with args.
8733 set dummy cpp; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 case $aros_kernel_cpp in
8740 [\\/]* | ?:[\\/]*)
8741 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8760 esac
8762 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8763 if test -n "$aros_kernel_cpp"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8765 $as_echo "$aros_kernel_cpp" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8774 else
8775 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8776 set dummy $aros_kernel_cpp; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 case $aros_kernel_cpp in
8783 [\\/]* | ?:[\\/]*)
8784 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8798 done
8799 done
8800 IFS=$as_save_IFS
8803 esac
8805 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8806 if test -n "$aros_kernel_cpp"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8808 $as_echo "$aros_kernel_cpp" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8817 if test "$aros_kernel_cpp" = ""; then
8818 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8820 if test "x$aros_kernel_cc" = "x"; then
8821 aros_kernel_cc=${kernel_tool_prefix}gcc
8824 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8825 if test "$cross_compiling" = "yes" ; then
8826 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8827 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 case $aros_kernel_cc in
8834 [\\/]* | ?:[\\/]*)
8835 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8854 esac
8856 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8857 if test -n "$aros_kernel_cc"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8859 $as_echo "$aros_kernel_cc" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8866 else
8867 if test "$GCC" = "yes"; then
8868 aros_gcc_cc=`$CC -print-prog-name=cc`
8869 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8870 set dummy `basename $aros_gcc_cc`; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 case $aros_kernel_cc in
8877 [\\/]* | ?:[\\/]*)
8878 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in `dirname $aros_gcc_cc`
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8897 esac
8899 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8900 if test -n "$aros_kernel_cc"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8902 $as_echo "$aros_kernel_cc" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8910 if test "$aros_kernel_cc" = ""; then
8911 # Extract the first word of "cc", so it can be a program name with args.
8912 set dummy cc; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 case $aros_kernel_cc in
8919 [\\/]* | ?:[\\/]*)
8920 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8939 esac
8941 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8942 if test -n "$aros_kernel_cc"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8944 $as_echo "$aros_kernel_cc" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8953 else
8954 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8955 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 case $aros_kernel_cc in
8962 [\\/]* | ?:[\\/]*)
8963 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8973 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8977 done
8978 done
8979 IFS=$as_save_IFS
8982 esac
8984 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8985 if test -n "$aros_kernel_cc"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8987 $as_echo "$aros_kernel_cc" >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8996 if test "$aros_kernel_cc" = ""; then
8997 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8999 if test "x$aros_kernel_cxx" = "x"; then
9000 aros_kernel_cxx=${kernel_tool_prefix}g++
9003 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
9004 if test "$cross_compiling" = "yes" ; then
9005 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9006 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 case $aros_kernel_cxx in
9013 [\\/]* | ?:[\\/]*)
9014 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9030 IFS=$as_save_IFS
9033 esac
9035 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9036 if test -n "$aros_kernel_cxx"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9038 $as_echo "$aros_kernel_cxx" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9045 else
9046 if test "$GCC" = "yes"; then
9047 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9048 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9049 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 case $aros_kernel_cxx in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in `dirname $aros_gcc_cxx`
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9067 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9071 done
9072 done
9073 IFS=$as_save_IFS
9076 esac
9078 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9079 if test -n "$aros_kernel_cxx"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9081 $as_echo "$aros_kernel_cxx" >&6; }
9082 else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9089 if test "$aros_kernel_cxx" = ""; then
9090 # Extract the first word of "cxx", so it can be a program name with args.
9091 set dummy cxx; ac_word=$2
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 $as_echo_n "checking for $ac_word... " >&6; }
9094 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 case $aros_kernel_cxx in
9098 [\\/]* | ?:[\\/]*)
9099 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9109 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111 break 2
9113 done
9114 done
9115 IFS=$as_save_IFS
9118 esac
9120 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9121 if test -n "$aros_kernel_cxx"; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9123 $as_echo "$aros_kernel_cxx" >&6; }
9124 else
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }
9132 else
9133 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9134 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 case $aros_kernel_cxx in
9141 [\\/]* | ?:[\\/]*)
9142 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9156 done
9157 done
9158 IFS=$as_save_IFS
9161 esac
9163 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9164 if test -n "$aros_kernel_cxx"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9166 $as_echo "$aros_kernel_cxx" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9175 # If it's set, make sure it's really there
9176 if test "x$aros_kernel_cxx" != "x" ; then
9177 if test "$aros_kernel_cxx" = ""; then
9178 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9182 if test "$aros_kernel_ld" = ""; then
9183 if test "$cross_compiling" = "yes" ; then
9184 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9185 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 case $aros_kernel_ld in
9192 [\\/]* | ?:[\\/]*)
9193 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9207 done
9208 done
9209 IFS=$as_save_IFS
9212 esac
9214 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9215 if test -n "$aros_kernel_ld"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9217 $as_echo "$aros_kernel_ld" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9224 else
9225 if test "$GCC" = "yes"; then
9226 aros_gcc_ld=`$CC -print-prog-name=ld`
9227 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9228 set dummy `basename $aros_gcc_ld`; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 case $aros_kernel_ld in
9235 [\\/]* | ?:[\\/]*)
9236 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in `dirname $aros_gcc_ld`
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9250 done
9251 done
9252 IFS=$as_save_IFS
9255 esac
9257 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9258 if test -n "$aros_kernel_ld"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9260 $as_echo "$aros_kernel_ld" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9268 if test "$aros_kernel_ld" = ""; then
9269 # Extract the first word of "ld", so it can be a program name with args.
9270 set dummy ld; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 case $aros_kernel_ld in
9277 [\\/]* | ?:[\\/]*)
9278 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9292 done
9293 done
9294 IFS=$as_save_IFS
9297 esac
9299 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9300 if test -n "$aros_kernel_ld"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9302 $as_echo "$aros_kernel_ld" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9311 else
9312 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9313 set dummy $aros_kernel_ld; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 case $aros_kernel_ld in
9320 [\\/]* | ?:[\\/]*)
9321 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9340 esac
9342 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9343 if test -n "$aros_kernel_ld"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9345 $as_echo "$aros_kernel_ld" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9354 if test "$aros_kernel_ld" = ""; then
9355 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9358 if test "$aros_kernel_as" = ""; then
9359 if test "$cross_compiling" = "yes" ; then
9360 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9361 set dummy ${kernel_tool_prefix}as; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if ${ac_cv_path_aros_kernel_as+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $aros_kernel_as in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9388 esac
9390 aros_kernel_as=$ac_cv_path_aros_kernel_as
9391 if test -n "$aros_kernel_as"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9393 $as_echo "$aros_kernel_as" >&6; }
9394 else
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9400 else
9401 if test "$GCC" = "yes"; then
9402 aros_gcc_as=`$CC -print-prog-name=as`
9403 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9404 set dummy `basename $aros_gcc_as`; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_aros_kernel_as+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $aros_kernel_as in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in `dirname $aros_gcc_as`
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9431 esac
9433 aros_kernel_as=$ac_cv_path_aros_kernel_as
9434 if test -n "$aros_kernel_as"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9436 $as_echo "$aros_kernel_as" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9444 if test "$aros_kernel_as" = ""; then
9445 # Extract the first word of "as", so it can be a program name with args.
9446 set dummy as; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_path_aros_kernel_as+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 case $aros_kernel_as in
9453 [\\/]* | ?:[\\/]*)
9454 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9464 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9473 esac
9475 aros_kernel_as=$ac_cv_path_aros_kernel_as
9476 if test -n "$aros_kernel_as"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9478 $as_echo "$aros_kernel_as" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9487 else
9488 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9489 set dummy $aros_kernel_as; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_path_aros_kernel_as+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 case $aros_kernel_as in
9496 [\\/]* | ?:[\\/]*)
9497 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9511 done
9512 done
9513 IFS=$as_save_IFS
9516 esac
9518 aros_kernel_as=$ac_cv_path_aros_kernel_as
9519 if test -n "$aros_kernel_as"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9521 $as_echo "$aros_kernel_as" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9530 if test "$aros_kernel_as" = ""; then
9531 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9534 if test "$aros_kernel_ar" = ""; then
9535 if test "$cross_compiling" = "yes" ; then
9536 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9537 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9539 $as_echo_n "checking for $ac_word... " >&6; }
9540 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 case $aros_kernel_ar in
9544 [\\/]* | ?:[\\/]*)
9545 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9564 esac
9566 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9567 if test -n "$aros_kernel_ar"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9569 $as_echo "$aros_kernel_ar" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9576 else
9577 if test "$GCC" = "yes"; then
9578 aros_gcc_ar=`$CC -print-prog-name=ar`
9579 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9580 set dummy `basename $aros_gcc_ar`; ac_word=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 case $aros_kernel_ar in
9587 [\\/]* | ?:[\\/]*)
9588 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in `dirname $aros_gcc_ar`
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9602 done
9603 done
9604 IFS=$as_save_IFS
9607 esac
9609 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9610 if test -n "$aros_kernel_ar"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9612 $as_echo "$aros_kernel_ar" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9620 if test "$aros_kernel_ar" = ""; then
9621 # Extract the first word of "ar", so it can be a program name with args.
9622 set dummy ar; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 case $aros_kernel_ar in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9644 done
9645 done
9646 IFS=$as_save_IFS
9649 esac
9651 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9652 if test -n "$aros_kernel_ar"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9654 $as_echo "$aros_kernel_ar" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9663 else
9664 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9665 set dummy $aros_kernel_ar; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 case $aros_kernel_ar in
9672 [\\/]* | ?:[\\/]*)
9673 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9683 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9687 done
9688 done
9689 IFS=$as_save_IFS
9692 esac
9694 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9695 if test -n "$aros_kernel_ar"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9697 $as_echo "$aros_kernel_ar" >&6; }
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9706 if test "$aros_kernel_ar" = ""; then
9707 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9710 if test "$aros_kernel_ranlib" = ""; then
9711 if test "$cross_compiling" = "yes" ; then
9712 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9713 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 case $aros_kernel_ranlib in
9720 [\\/]* | ?:[\\/]*)
9721 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9735 done
9736 done
9737 IFS=$as_save_IFS
9740 esac
9742 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9743 if test -n "$aros_kernel_ranlib"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9745 $as_echo "$aros_kernel_ranlib" >&6; }
9746 else
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9752 else
9753 if test "$GCC" = "yes"; then
9754 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9755 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9756 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 case $aros_kernel_ranlib in
9763 [\\/]* | ?:[\\/]*)
9764 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in `dirname $aros_gcc_ranlib`
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9778 done
9779 done
9780 IFS=$as_save_IFS
9783 esac
9785 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9786 if test -n "$aros_kernel_ranlib"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9788 $as_echo "$aros_kernel_ranlib" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9796 if test "$aros_kernel_ranlib" = ""; then
9797 # Extract the first word of "ranlib", so it can be a program name with args.
9798 set dummy ranlib; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 case $aros_kernel_ranlib in
9805 [\\/]* | ?:[\\/]*)
9806 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 for as_dir in $PATH
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9816 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 break 2
9820 done
9821 done
9822 IFS=$as_save_IFS
9825 esac
9827 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9828 if test -n "$aros_kernel_ranlib"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9830 $as_echo "$aros_kernel_ranlib" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9839 else
9840 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9841 set dummy $aros_kernel_ranlib; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 case $aros_kernel_ranlib in
9848 [\\/]* | ?:[\\/]*)
9849 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 break 2
9863 done
9864 done
9865 IFS=$as_save_IFS
9868 esac
9870 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9871 if test -n "$aros_kernel_ranlib"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9873 $as_echo "$aros_kernel_ranlib" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9882 if test "$aros_kernel_ranlib" = ""; then
9883 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9886 if test "$aros_kernel_nm" = ""; then
9887 if test "$cross_compiling" = "yes" ; then
9888 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9889 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 case $aros_kernel_nm in
9896 [\\/]* | ?:[\\/]*)
9897 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9916 esac
9918 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9919 if test -n "$aros_kernel_nm"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9921 $as_echo "$aros_kernel_nm" >&6; }
9922 else
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9928 else
9929 if test "$GCC" = "yes"; then
9930 aros_gcc_nm=`$CC -print-prog-name=nm`
9931 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9932 set dummy `basename $aros_gcc_nm`; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 case $aros_kernel_nm in
9939 [\\/]* | ?:[\\/]*)
9940 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in `dirname $aros_gcc_nm`
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9950 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9959 esac
9961 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9962 if test -n "$aros_kernel_nm"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9964 $as_echo "$aros_kernel_nm" >&6; }
9965 else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9972 if test "$aros_kernel_nm" = ""; then
9973 # Extract the first word of "nm", so it can be a program name with args.
9974 set dummy nm; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 case $aros_kernel_nm in
9981 [\\/]* | ?:[\\/]*)
9982 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9996 done
9997 done
9998 IFS=$as_save_IFS
10001 esac
10003 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10004 if test -n "$aros_kernel_nm"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10006 $as_echo "$aros_kernel_nm" >&6; }
10007 else
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10015 else
10016 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10017 set dummy $aros_kernel_nm; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 case $aros_kernel_nm in
10024 [\\/]* | ?:[\\/]*)
10025 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10039 done
10040 done
10041 IFS=$as_save_IFS
10044 esac
10046 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10047 if test -n "$aros_kernel_nm"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10049 $as_echo "$aros_kernel_nm" >&6; }
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10058 if test "$aros_kernel_nm" = ""; then
10059 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10062 if test "$aros_kernel_strip" = ""; then
10063 if test "$cross_compiling" = "yes" ; then
10064 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10065 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 case $aros_kernel_strip in
10072 [\\/]* | ?:[\\/]*)
10073 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10083 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10087 done
10088 done
10089 IFS=$as_save_IFS
10092 esac
10094 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10095 if test -n "$aros_kernel_strip"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10097 $as_echo "$aros_kernel_strip" >&6; }
10098 else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10104 else
10105 if test "$GCC" = "yes"; then
10106 aros_gcc_strip=`$CC -print-prog-name=strip`
10107 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10108 set dummy `basename $aros_gcc_strip`; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 case $aros_kernel_strip in
10115 [\\/]* | ?:[\\/]*)
10116 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in `dirname $aros_gcc_strip`
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10126 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10130 done
10131 done
10132 IFS=$as_save_IFS
10135 esac
10137 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10138 if test -n "$aros_kernel_strip"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10140 $as_echo "$aros_kernel_strip" >&6; }
10141 else
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10148 if test "$aros_kernel_strip" = ""; then
10149 # Extract the first word of "strip", so it can be a program name with args.
10150 set dummy strip; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 case $aros_kernel_strip in
10157 [\\/]* | ?:[\\/]*)
10158 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10177 esac
10179 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10180 if test -n "$aros_kernel_strip"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10182 $as_echo "$aros_kernel_strip" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10191 else
10192 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10193 set dummy $aros_kernel_strip; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 case $aros_kernel_strip in
10200 [\\/]* | ?:[\\/]*)
10201 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10211 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10215 done
10216 done
10217 IFS=$as_save_IFS
10220 esac
10222 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10223 if test -n "$aros_kernel_strip"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10225 $as_echo "$aros_kernel_strip" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10234 if test "$aros_kernel_strip" = ""; then
10235 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10238 # Objcopy and objdump are not required for the kernel
10239 # toolchain on many architectures.
10240 # So we'll look for them, but not make them strictly required.
10242 if test "$aros_kernel_objcopy" = ""; then
10243 if test "$cross_compiling" = "yes" ; then
10244 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10245 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 case $aros_kernel_objcopy in
10252 [\\/]* | ?:[\\/]*)
10253 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10263 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10272 esac
10274 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10275 if test -n "$aros_kernel_objcopy"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10277 $as_echo "$aros_kernel_objcopy" >&6; }
10278 else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10284 else
10285 if test "$GCC" = "yes"; then
10286 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10287 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10288 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 case $aros_kernel_objcopy in
10295 [\\/]* | ?:[\\/]*)
10296 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in `dirname $aros_gcc_objcopy`
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10306 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10310 done
10311 done
10312 IFS=$as_save_IFS
10315 esac
10317 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10318 if test -n "$aros_kernel_objcopy"; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10320 $as_echo "$aros_kernel_objcopy" >&6; }
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10328 if test "$aros_kernel_objcopy" = ""; then
10329 # Extract the first word of "objcopy", so it can be a program name with args.
10330 set dummy objcopy; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 case $aros_kernel_objcopy in
10337 [\\/]* | ?:[\\/]*)
10338 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10352 done
10353 done
10354 IFS=$as_save_IFS
10357 esac
10359 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10360 if test -n "$aros_kernel_objcopy"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10362 $as_echo "$aros_kernel_objcopy" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10371 else
10372 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10373 set dummy $aros_kernel_objcopy; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 case $aros_kernel_objcopy in
10380 [\\/]* | ?:[\\/]*)
10381 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10395 done
10396 done
10397 IFS=$as_save_IFS
10400 esac
10402 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10403 if test -n "$aros_kernel_objcopy"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10405 $as_echo "$aros_kernel_objcopy" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10415 if test "$aros_kernel_objdump" = ""; then
10416 if test "$cross_compiling" = "yes" ; then
10417 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10418 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 case $aros_kernel_objdump in
10425 [\\/]* | ?:[\\/]*)
10426 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10436 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10440 done
10441 done
10442 IFS=$as_save_IFS
10445 esac
10447 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10448 if test -n "$aros_kernel_objdump"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10450 $as_echo "$aros_kernel_objdump" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10457 else
10458 if test "$GCC" = "yes"; then
10459 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10460 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10461 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 case $aros_kernel_objdump in
10468 [\\/]* | ?:[\\/]*)
10469 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in `dirname $aros_gcc_objdump`
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10483 done
10484 done
10485 IFS=$as_save_IFS
10488 esac
10490 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10491 if test -n "$aros_kernel_objdump"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10493 $as_echo "$aros_kernel_objdump" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10501 if test "$aros_kernel_objdump" = ""; then
10502 # Extract the first word of "objdump", so it can be a program name with args.
10503 set dummy objdump; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 case $aros_kernel_objdump in
10510 [\\/]* | ?:[\\/]*)
10511 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10521 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 break 2
10525 done
10526 done
10527 IFS=$as_save_IFS
10530 esac
10532 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10533 if test -n "$aros_kernel_objdump"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10535 $as_echo "$aros_kernel_objdump" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10544 else
10545 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10546 set dummy $aros_kernel_objdump; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 case $aros_kernel_objdump in
10553 [\\/]* | ?:[\\/]*)
10554 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10564 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10570 IFS=$as_save_IFS
10573 esac
10575 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10576 if test -n "$aros_kernel_objdump"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10578 $as_echo "$aros_kernel_objdump" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10587 if test "x${crosstools}" != "xyes" ; then
10588 if test "$aros_kernel_objcopy" = ""; then
10589 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10591 if test "$aros_kernel_objdump" = ""; then
10592 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10598 $as_echo_n "checking which target tools to use... " >&6; }
10599 if test "$crosstools" = "yes"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10601 $as_echo "$target_tool_prefix" >&6; }
10602 # We are are building AROS crosstools
10603 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10604 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10605 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10606 orig_target_cpp="${tmp_tool_prefix}cpp"
10607 orig_target_ld="${tmp_tool_prefix}ld"
10608 orig_target_as="${tmp_tool_prefix}as"
10609 orig_target_ar="${tmp_tool_prefix}ar"
10610 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10611 orig_target_nm="${tmp_tool_prefix}nm"
10612 orig_target_strip="${tmp_tool_prefix}strip"
10613 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10614 orig_target_objdump="${tmp_tool_prefix}objdump"
10615 else
10616 # Determine whether AROS or ELF tools should be used
10617 if test "$aros_tool_prefix" = "none"; then
10618 aros_tool_prefix="${elf_tool_prefix}"
10619 crosstools_cxx_target=tools-crosstools
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10623 $as_echo "$aros_tool_prefix" >&6; }
10624 # We are *not* building AROS crosstools - use the AROS or ELF tools
10626 if test "${aros_tool_prefix}cpp" = ""; then
10627 if test "$cross_compiling" = "yes" ; then
10628 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10629 set dummy ${target_tool_prefix}cpp; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_path_orig_target_cpp+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 case $orig_target_cpp in
10636 [\\/]* | ?:[\\/]*)
10637 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10647 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10651 done
10652 done
10653 IFS=$as_save_IFS
10656 esac
10658 orig_target_cpp=$ac_cv_path_orig_target_cpp
10659 if test -n "$orig_target_cpp"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10661 $as_echo "$orig_target_cpp" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10668 else
10669 if test "$GCC" = "yes"; then
10670 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10671 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10672 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_path_orig_target_cpp+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 case $orig_target_cpp in
10679 [\\/]* | ?:[\\/]*)
10680 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in `dirname $aros_gcc_cpp`
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10690 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10694 done
10695 done
10696 IFS=$as_save_IFS
10699 esac
10701 orig_target_cpp=$ac_cv_path_orig_target_cpp
10702 if test -n "$orig_target_cpp"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10704 $as_echo "$orig_target_cpp" >&6; }
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10712 if test "$orig_target_cpp" = ""; then
10713 # Extract the first word of "cpp", so it can be a program name with args.
10714 set dummy cpp; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if ${ac_cv_path_orig_target_cpp+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 case $orig_target_cpp in
10721 [\\/]* | ?:[\\/]*)
10722 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10732 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10736 done
10737 done
10738 IFS=$as_save_IFS
10741 esac
10743 orig_target_cpp=$ac_cv_path_orig_target_cpp
10744 if test -n "$orig_target_cpp"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10746 $as_echo "$orig_target_cpp" >&6; }
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10755 else
10756 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10757 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if ${ac_cv_path_orig_target_cpp+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 case $orig_target_cpp in
10764 [\\/]* | ?:[\\/]*)
10765 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10775 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10779 done
10780 done
10781 IFS=$as_save_IFS
10784 esac
10786 orig_target_cpp=$ac_cv_path_orig_target_cpp
10787 if test -n "$orig_target_cpp"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10789 $as_echo "$orig_target_cpp" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10798 if test "$orig_target_cpp" = ""; then
10799 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10802 if test "${aros_tool_prefix}gcc" = ""; then
10803 if test "$cross_compiling" = "yes" ; then
10804 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10805 set dummy ${target_tool_prefix}gcc; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_orig_target_cc+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 case $orig_target_cc in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10827 done
10828 done
10829 IFS=$as_save_IFS
10832 esac
10834 orig_target_cc=$ac_cv_path_orig_target_cc
10835 if test -n "$orig_target_cc"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10837 $as_echo "$orig_target_cc" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10844 else
10845 if test "$GCC" = "yes"; then
10846 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10847 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10848 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_path_orig_target_cc+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 case $orig_target_cc in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in `dirname $aros_gcc_gcc`
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10875 esac
10877 orig_target_cc=$ac_cv_path_orig_target_cc
10878 if test -n "$orig_target_cc"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10880 $as_echo "$orig_target_cc" >&6; }
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10888 if test "$orig_target_cc" = ""; then
10889 # Extract the first word of "gcc", so it can be a program name with args.
10890 set dummy gcc; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_orig_target_cc+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 case $orig_target_cc in
10897 [\\/]* | ?:[\\/]*)
10898 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10908 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10912 done
10913 done
10914 IFS=$as_save_IFS
10917 esac
10919 orig_target_cc=$ac_cv_path_orig_target_cc
10920 if test -n "$orig_target_cc"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10922 $as_echo "$orig_target_cc" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10931 else
10932 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10933 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_path_orig_target_cc+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 case $orig_target_cc in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10955 done
10956 done
10957 IFS=$as_save_IFS
10960 esac
10962 orig_target_cc=$ac_cv_path_orig_target_cc
10963 if test -n "$orig_target_cc"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10965 $as_echo "$orig_target_cc" >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10974 if test "$orig_target_cc" = ""; then
10975 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10977 if test "x${crosstools_cxx_target}" = "x" ; then
10979 if test "${aros_tool_prefix}g++" = ""; then
10980 if test "$cross_compiling" = "yes" ; then
10981 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
10982 set dummy ${target_tool_prefix}g++; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if ${ac_cv_path_orig_target_cxx+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 case $orig_target_cxx in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11004 done
11005 done
11006 IFS=$as_save_IFS
11009 esac
11011 orig_target_cxx=$ac_cv_path_orig_target_cxx
11012 if test -n "$orig_target_cxx"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11014 $as_echo "$orig_target_cxx" >&6; }
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11021 else
11022 if test "$GCC" = "yes"; then
11023 aros_gcc_g++=`$CC -print-prog-name=g++`
11024 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11025 set dummy `basename $aros_gcc_g++`; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if ${ac_cv_path_orig_target_cxx+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 case $orig_target_cxx in
11032 [\\/]* | ?:[\\/]*)
11033 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in `dirname $aros_gcc_g++`
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11047 done
11048 done
11049 IFS=$as_save_IFS
11052 esac
11054 orig_target_cxx=$ac_cv_path_orig_target_cxx
11055 if test -n "$orig_target_cxx"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11057 $as_echo "$orig_target_cxx" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11065 if test "$orig_target_cxx" = ""; then
11066 # Extract the first word of "g++", so it can be a program name with args.
11067 set dummy g++; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_path_orig_target_cxx+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 case $orig_target_cxx in
11074 [\\/]* | ?:[\\/]*)
11075 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11085 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11089 done
11090 done
11091 IFS=$as_save_IFS
11094 esac
11096 orig_target_cxx=$ac_cv_path_orig_target_cxx
11097 if test -n "$orig_target_cxx"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11099 $as_echo "$orig_target_cxx" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11108 else
11109 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11110 set dummy ${aros_tool_prefix}g++; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if ${ac_cv_path_orig_target_cxx+:} false; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 case $orig_target_cxx in
11117 [\\/]* | ?:[\\/]*)
11118 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11132 done
11133 done
11134 IFS=$as_save_IFS
11137 esac
11139 orig_target_cxx=$ac_cv_path_orig_target_cxx
11140 if test -n "$orig_target_cxx"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11142 $as_echo "$orig_target_cxx" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11151 if test "$orig_target_cxx" = ""; then
11152 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11156 if test "${aros_tool_prefix}ld" = ""; then
11157 if test "$cross_compiling" = "yes" ; then
11158 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11159 set dummy ${target_tool_prefix}gcc; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if ${ac_cv_path_orig_target_ld+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 case $orig_target_ld in
11166 [\\/]* | ?:[\\/]*)
11167 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11177 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11181 done
11182 done
11183 IFS=$as_save_IFS
11186 esac
11188 orig_target_ld=$ac_cv_path_orig_target_ld
11189 if test -n "$orig_target_ld"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11191 $as_echo "$orig_target_ld" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11198 else
11199 if test "$GCC" = "yes"; then
11200 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11201 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11202 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_path_orig_target_ld+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 case $orig_target_ld in
11209 [\\/]* | ?:[\\/]*)
11210 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in `dirname $aros_gcc_gcc`
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11224 done
11225 done
11226 IFS=$as_save_IFS
11229 esac
11231 orig_target_ld=$ac_cv_path_orig_target_ld
11232 if test -n "$orig_target_ld"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11234 $as_echo "$orig_target_ld" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11242 if test "$orig_target_ld" = ""; then
11243 # Extract the first word of "gcc", so it can be a program name with args.
11244 set dummy gcc; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if ${ac_cv_path_orig_target_ld+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 case $orig_target_ld in
11251 [\\/]* | ?:[\\/]*)
11252 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11266 done
11267 done
11268 IFS=$as_save_IFS
11271 esac
11273 orig_target_ld=$ac_cv_path_orig_target_ld
11274 if test -n "$orig_target_ld"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11276 $as_echo "$orig_target_ld" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11285 else
11286 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11287 set dummy ${aros_tool_prefix}ld; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_orig_target_ld+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 case $orig_target_ld in
11294 [\\/]* | ?:[\\/]*)
11295 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11301 IFS=$as_save_IFS
11302 test -z "$as_dir" && as_dir=.
11303 for ac_exec_ext in '' $ac_executable_extensions; do
11304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 break 2
11309 done
11310 done
11311 IFS=$as_save_IFS
11314 esac
11316 orig_target_ld=$ac_cv_path_orig_target_ld
11317 if test -n "$orig_target_ld"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11319 $as_echo "$orig_target_ld" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11328 if test "$orig_target_ld" = ""; then
11329 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11332 if test "${aros_tool_prefix}as" = ""; then
11333 if test "$cross_compiling" = "yes" ; then
11334 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11335 set dummy ${target_tool_prefix}as; ac_word=$2
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337 $as_echo_n "checking for $ac_word... " >&6; }
11338 if ${ac_cv_path_orig_target_as+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 case $orig_target_as in
11342 [\\/]* | ?:[\\/]*)
11343 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11353 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11357 done
11358 done
11359 IFS=$as_save_IFS
11362 esac
11364 orig_target_as=$ac_cv_path_orig_target_as
11365 if test -n "$orig_target_as"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11367 $as_echo "$orig_target_as" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11374 else
11375 if test "$GCC" = "yes"; then
11376 aros_gcc_as=`$CC -print-prog-name=as`
11377 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11378 set dummy `basename $aros_gcc_as`; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_path_orig_target_as+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 case $orig_target_as in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in `dirname $aros_gcc_as`
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11400 done
11401 done
11402 IFS=$as_save_IFS
11405 esac
11407 orig_target_as=$ac_cv_path_orig_target_as
11408 if test -n "$orig_target_as"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11410 $as_echo "$orig_target_as" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11418 if test "$orig_target_as" = ""; then
11419 # Extract the first word of "as", so it can be a program name with args.
11420 set dummy as; ac_word=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if ${ac_cv_path_orig_target_as+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 case $orig_target_as in
11427 [\\/]* | ?:[\\/]*)
11428 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11442 done
11443 done
11444 IFS=$as_save_IFS
11447 esac
11449 orig_target_as=$ac_cv_path_orig_target_as
11450 if test -n "$orig_target_as"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11452 $as_echo "$orig_target_as" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11461 else
11462 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11463 set dummy ${aros_tool_prefix}as; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_orig_target_as+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 case $orig_target_as in
11470 [\\/]* | ?:[\\/]*)
11471 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11485 done
11486 done
11487 IFS=$as_save_IFS
11490 esac
11492 orig_target_as=$ac_cv_path_orig_target_as
11493 if test -n "$orig_target_as"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11495 $as_echo "$orig_target_as" >&6; }
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11504 if test "$orig_target_as" = ""; then
11505 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11508 if test "${aros_tool_prefix}ar" = ""; then
11509 if test "$cross_compiling" = "yes" ; then
11510 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11511 set dummy ${target_tool_prefix}ar; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if ${ac_cv_path_orig_target_ar+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 case $orig_target_ar in
11518 [\\/]* | ?:[\\/]*)
11519 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11533 done
11534 done
11535 IFS=$as_save_IFS
11538 esac
11540 orig_target_ar=$ac_cv_path_orig_target_ar
11541 if test -n "$orig_target_ar"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11543 $as_echo "$orig_target_ar" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11550 else
11551 if test "$GCC" = "yes"; then
11552 aros_gcc_ar=`$CC -print-prog-name=ar`
11553 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11554 set dummy `basename $aros_gcc_ar`; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_path_orig_target_ar+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 case $orig_target_ar in
11561 [\\/]* | ?:[\\/]*)
11562 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in `dirname $aros_gcc_ar`
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11572 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11576 done
11577 done
11578 IFS=$as_save_IFS
11581 esac
11583 orig_target_ar=$ac_cv_path_orig_target_ar
11584 if test -n "$orig_target_ar"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11586 $as_echo "$orig_target_ar" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11594 if test "$orig_target_ar" = ""; then
11595 # Extract the first word of "ar", so it can be a program name with args.
11596 set dummy ar; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_path_orig_target_ar+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 case $orig_target_ar in
11603 [\\/]* | ?:[\\/]*)
11604 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11614 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11618 done
11619 done
11620 IFS=$as_save_IFS
11623 esac
11625 orig_target_ar=$ac_cv_path_orig_target_ar
11626 if test -n "$orig_target_ar"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11628 $as_echo "$orig_target_ar" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11637 else
11638 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11639 set dummy ${aros_tool_prefix}ar; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_path_orig_target_ar+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 case $orig_target_ar in
11646 [\\/]* | ?:[\\/]*)
11647 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11661 done
11662 done
11663 IFS=$as_save_IFS
11666 esac
11668 orig_target_ar=$ac_cv_path_orig_target_ar
11669 if test -n "$orig_target_ar"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11671 $as_echo "$orig_target_ar" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11680 if test "$orig_target_ar" = ""; then
11681 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11684 if test "${aros_tool_prefix}ranlib" = ""; then
11685 if test "$cross_compiling" = "yes" ; then
11686 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11687 set dummy ${target_tool_prefix}ar; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 case $orig_target_ranlib in
11694 [\\/]* | ?:[\\/]*)
11695 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11705 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11709 done
11710 done
11711 IFS=$as_save_IFS
11714 esac
11716 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11717 if test -n "$orig_target_ranlib"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11719 $as_echo "$orig_target_ranlib" >&6; }
11720 else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11726 else
11727 if test "$GCC" = "yes"; then
11728 aros_gcc_ar=`$CC -print-prog-name=ar`
11729 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11730 set dummy `basename $aros_gcc_ar`; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 case $orig_target_ranlib in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in `dirname $aros_gcc_ar`
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11748 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11752 done
11753 done
11754 IFS=$as_save_IFS
11757 esac
11759 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11760 if test -n "$orig_target_ranlib"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11762 $as_echo "$orig_target_ranlib" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11770 if test "$orig_target_ranlib" = ""; then
11771 # Extract the first word of "ar", so it can be a program name with args.
11772 set dummy ar; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 case $orig_target_ranlib in
11779 [\\/]* | ?:[\\/]*)
11780 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11794 done
11795 done
11796 IFS=$as_save_IFS
11799 esac
11801 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11802 if test -n "$orig_target_ranlib"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11804 $as_echo "$orig_target_ranlib" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11813 else
11814 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11815 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 case $orig_target_ranlib in
11822 [\\/]* | ?:[\\/]*)
11823 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11833 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11837 done
11838 done
11839 IFS=$as_save_IFS
11842 esac
11844 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11845 if test -n "$orig_target_ranlib"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11847 $as_echo "$orig_target_ranlib" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11856 if test "$orig_target_ranlib" = ""; then
11857 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11860 if test "${aros_tool_prefix}nm" = ""; then
11861 if test "$cross_compiling" = "yes" ; then
11862 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11863 set dummy ${target_tool_prefix}nm; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if ${ac_cv_path_orig_target_nm+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 case $orig_target_nm in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11887 IFS=$as_save_IFS
11890 esac
11892 orig_target_nm=$ac_cv_path_orig_target_nm
11893 if test -n "$orig_target_nm"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11895 $as_echo "$orig_target_nm" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11902 else
11903 if test "$GCC" = "yes"; then
11904 aros_gcc_nm=`$CC -print-prog-name=nm`
11905 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11906 set dummy `basename $aros_gcc_nm`; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_orig_target_nm+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $orig_target_nm in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in `dirname $aros_gcc_nm`
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11933 esac
11935 orig_target_nm=$ac_cv_path_orig_target_nm
11936 if test -n "$orig_target_nm"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11938 $as_echo "$orig_target_nm" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11946 if test "$orig_target_nm" = ""; then
11947 # Extract the first word of "nm", so it can be a program name with args.
11948 set dummy nm; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_path_orig_target_nm+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 case $orig_target_nm in
11955 [\\/]* | ?:[\\/]*)
11956 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11966 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11970 done
11971 done
11972 IFS=$as_save_IFS
11975 esac
11977 orig_target_nm=$ac_cv_path_orig_target_nm
11978 if test -n "$orig_target_nm"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11980 $as_echo "$orig_target_nm" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11989 else
11990 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
11991 set dummy ${aros_tool_prefix}nm; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_orig_target_nm+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 case $orig_target_nm in
11998 [\\/]* | ?:[\\/]*)
11999 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12013 done
12014 done
12015 IFS=$as_save_IFS
12018 esac
12020 orig_target_nm=$ac_cv_path_orig_target_nm
12021 if test -n "$orig_target_nm"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12023 $as_echo "$orig_target_nm" >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12032 if test "$orig_target_nm" = ""; then
12033 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12036 if test "${aros_tool_prefix}strip" = ""; then
12037 if test "$cross_compiling" = "yes" ; then
12038 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12039 set dummy ${target_tool_prefix}strip; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_path_orig_target_strip+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 case $orig_target_strip in
12046 [\\/]* | ?:[\\/]*)
12047 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12057 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 break 2
12061 done
12062 done
12063 IFS=$as_save_IFS
12066 esac
12068 orig_target_strip=$ac_cv_path_orig_target_strip
12069 if test -n "$orig_target_strip"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12071 $as_echo "$orig_target_strip" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12078 else
12079 if test "$GCC" = "yes"; then
12080 aros_gcc_strip=`$CC -print-prog-name=strip`
12081 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12082 set dummy `basename $aros_gcc_strip`; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_orig_target_strip+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 case $orig_target_strip in
12089 [\\/]* | ?:[\\/]*)
12090 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in `dirname $aros_gcc_strip`
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12104 done
12105 done
12106 IFS=$as_save_IFS
12109 esac
12111 orig_target_strip=$ac_cv_path_orig_target_strip
12112 if test -n "$orig_target_strip"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12114 $as_echo "$orig_target_strip" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12122 if test "$orig_target_strip" = ""; then
12123 # Extract the first word of "strip", so it can be a program name with args.
12124 set dummy strip; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_path_orig_target_strip+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 case $orig_target_strip in
12131 [\\/]* | ?:[\\/]*)
12132 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12146 done
12147 done
12148 IFS=$as_save_IFS
12151 esac
12153 orig_target_strip=$ac_cv_path_orig_target_strip
12154 if test -n "$orig_target_strip"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12156 $as_echo "$orig_target_strip" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12165 else
12166 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12167 set dummy ${aros_tool_prefix}strip; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if ${ac_cv_path_orig_target_strip+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 case $orig_target_strip in
12174 [\\/]* | ?:[\\/]*)
12175 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12185 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12189 done
12190 done
12191 IFS=$as_save_IFS
12194 esac
12196 orig_target_strip=$ac_cv_path_orig_target_strip
12197 if test -n "$orig_target_strip"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12199 $as_echo "$orig_target_strip" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12208 if test "$orig_target_strip" = ""; then
12209 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12212 if test "${aros_tool_prefix}objcopy" = ""; then
12213 if test "$cross_compiling" = "yes" ; then
12214 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12215 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 case $orig_target_objcopy in
12222 [\\/]* | ?:[\\/]*)
12223 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12233 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 break 2
12237 done
12238 done
12239 IFS=$as_save_IFS
12242 esac
12244 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12245 if test -n "$orig_target_objcopy"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12247 $as_echo "$orig_target_objcopy" >&6; }
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; }
12254 else
12255 if test "$GCC" = "yes"; then
12256 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12257 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12258 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 case $orig_target_objcopy in
12265 [\\/]* | ?:[\\/]*)
12266 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in `dirname $aros_gcc_objcopy`
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12280 done
12281 done
12282 IFS=$as_save_IFS
12285 esac
12287 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12288 if test -n "$orig_target_objcopy"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12290 $as_echo "$orig_target_objcopy" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12298 if test "$orig_target_objcopy" = ""; then
12299 # Extract the first word of "objcopy", so it can be a program name with args.
12300 set dummy objcopy; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 case $orig_target_objcopy in
12307 [\\/]* | ?:[\\/]*)
12308 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12322 done
12323 done
12324 IFS=$as_save_IFS
12327 esac
12329 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12330 if test -n "$orig_target_objcopy"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12332 $as_echo "$orig_target_objcopy" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12341 else
12342 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12343 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 case $orig_target_objcopy in
12350 [\\/]* | ?:[\\/]*)
12351 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12370 esac
12372 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12373 if test -n "$orig_target_objcopy"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12375 $as_echo "$orig_target_objcopy" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12384 if test "$orig_target_objcopy" = ""; then
12385 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12388 if test "${aros_tool_prefix}objdump" = ""; then
12389 if test "$cross_compiling" = "yes" ; then
12390 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12391 set dummy ${target_tool_prefix}objdump; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if ${ac_cv_path_orig_target_objdump+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 case $orig_target_objdump in
12398 [\\/]* | ?:[\\/]*)
12399 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12413 done
12414 done
12415 IFS=$as_save_IFS
12418 esac
12420 orig_target_objdump=$ac_cv_path_orig_target_objdump
12421 if test -n "$orig_target_objdump"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12423 $as_echo "$orig_target_objdump" >&6; }
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12430 else
12431 if test "$GCC" = "yes"; then
12432 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12433 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12434 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_path_orig_target_objdump+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $orig_target_objdump in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in `dirname $aros_gcc_objdump`
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12452 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12456 done
12457 done
12458 IFS=$as_save_IFS
12461 esac
12463 orig_target_objdump=$ac_cv_path_orig_target_objdump
12464 if test -n "$orig_target_objdump"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12466 $as_echo "$orig_target_objdump" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12474 if test "$orig_target_objdump" = ""; then
12475 # Extract the first word of "objdump", so it can be a program name with args.
12476 set dummy objdump; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if ${ac_cv_path_orig_target_objdump+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 case $orig_target_objdump in
12483 [\\/]* | ?:[\\/]*)
12484 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in $PATH
12490 IFS=$as_save_IFS
12491 test -z "$as_dir" && as_dir=.
12492 for ac_exec_ext in '' $ac_executable_extensions; do
12493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12494 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 break 2
12498 done
12499 done
12500 IFS=$as_save_IFS
12503 esac
12505 orig_target_objdump=$ac_cv_path_orig_target_objdump
12506 if test -n "$orig_target_objdump"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12508 $as_echo "$orig_target_objdump" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12517 else
12518 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12519 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if ${ac_cv_path_orig_target_objdump+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 case $orig_target_objdump in
12526 [\\/]* | ?:[\\/]*)
12527 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
12536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12537 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539 break 2
12541 done
12542 done
12543 IFS=$as_save_IFS
12546 esac
12548 orig_target_objdump=$ac_cv_path_orig_target_objdump
12549 if test -n "$orig_target_objdump"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12551 $as_echo "$orig_target_objdump" >&6; }
12552 else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12560 if test "$orig_target_objdump" = ""; then
12561 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12565 if test "$kernel_tool_prefix" = "none" ; then
12566 # No kernel tools specified
12567 # Assume target tools == kernel tools with ELF wrapper
12568 aros_kernel_cc=$orig_target_cc
12569 aros_kernel_cxx=$orig_target_cxx
12570 aros_kernel_cpp=$orig_target_cpp
12571 aros_kernel_ld=$orig_target_ld
12572 aros_kernel_as=$orig_target_as
12573 aros_kernel_ar=$orig_target_ar
12574 aros_kernel_ranlib=$orig_target_ranlib
12575 aros_kernel_nm=$orig_target_nm
12576 aros_kernel_strip=$orig_target_strip
12577 aros_kernel_objcopy=$orig_target_objcopy
12578 aros_kernel_objdump=$orig_target_objdump
12579 use_kernel_cc_wrapper=yes
12582 # At this point, all aros_kernel_* and aros_target_*
12583 # tools should be set up correctly
12585 CC="$aros_kernel_cc $kernel_tool_flags"
12586 CPP="$aros_kernel_cpp"
12588 #-----------------------------------------------------------------------------
12590 # Disable pointer-signedness warnings if the compiler recognises the option
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12593 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12594 save_cflags="$CFLAGS"
12595 if test "$crosstools" != "yes" ; then
12596 CFLAGS="$CFLAGS -Wno-pointer-sign"
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12601 main ()
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609 use_no_sign_warning="yes"
12610 else
12611 use_no_sign_warning="no"
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 else
12615 # we do know it is supported for the smallest version of gcc we are going to build
12616 # we assume it's also supported by later versions
12617 use_no_sign_warning=yes
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12620 $as_echo "$use_no_sign_warning" >&6; }
12621 if test "x-$use_no_sign_warning" = "x-yes" ; then
12622 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12624 CFLAGS="$save_cflags"
12626 #-----------------------------------------------------------------------------
12628 # Find all the tools we need to compile. This could be cross-compiling
12629 # though! If that is the case we use the GNU form of the target and
12630 # simply add this to the front of the binary name. This is rather simple,
12631 # but it should work under most circumstances.
12633 # The default tools are to use the same as the host, but only if the
12634 # host and target CPU are the same. With GCC this is normally enough.
12637 aros_cc_pre=""
12638 aros_shared_ld="$aros_host_ld"
12640 aros_target_mkdep="$aros_host_mkdep"
12642 # The default tools executables to be linked to.
12643 if test "$rescomp" != ""; then
12644 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12645 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 case $aros_kernel_rescomp in
12652 [\\/]* | ?:[\\/]*)
12653 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12667 done
12668 done
12669 IFS=$as_save_IFS
12672 esac
12674 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12675 if test -n "$aros_kernel_rescomp"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12677 $as_echo "$aros_kernel_rescomp" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12684 if test "$aros_kernel_rescomp" = ""; then
12685 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12689 # Set up the sources for the symlink farm
12690 if test "$crosstools" = "yes"; then
12691 crosstools_target=tools-crosstools
12694 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12695 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12698 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12699 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12700 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12701 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12702 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12703 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12704 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12706 # aros_cc_pre is a variable that is added to the front of the compiler name
12707 # in the generated aros-gcc shell script. We need this to enable the cache
12708 # to work across cleaned builds. Also, support DISTCC using the correct
12709 # environment variable.
12712 if test "x${DISTCC}" != "x" ; then
12713 if test "x${CCACHE}" != "x" ; then
12714 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12715 else
12716 aros_cc_pre="${DISTCC} "
12718 else
12719 if test "x${CCACHE}" != "x" ; then
12720 aros_cc_pre="${CCACHE} "
12724 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12726 aros_target_nostdinc_cflags=-nostdinc
12728 aros_target_nostartup_ldflags=-nostartfiles
12730 aros_target_nix_ldflags=-nix
12732 aros_target_detach_ldflags=-detach
12734 aros_target_nostdlib_ldflags=-nostdlib
12737 # Target tools
12738 if test "$crosstools" != "yes"; then
12739 if test "$GCC" = "yes"; then
12740 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12742 else
12743 # We do not know which gcc version we are going to build and what we need to know
12744 # here is different for different versions so this will be set later during the
12745 # build of crosstools.
12746 aros_target_cc_path=@aros_target_cc_path@
12748 aros_target_cpp="${prefix}cpp"
12749 aros_target_cc="${prefix}gcc"
12750 aros_target_cxx="${prefix}g++"
12751 aros_target_as="${prefix}as"
12752 aros_target_ld="${prefix}ld"
12753 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12754 aros_target_objcopy="${prefix}objcopy"
12755 aros_target_objdump="${prefix}objdump"
12756 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12757 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12758 aros_target_strip="${prefix}strip"
12759 aros_plain_nm="${prefix}nm"
12760 aros_plain_ar="${prefix}ar"
12762 # Check whether --enable-includes was given.
12763 if test "${enable_includes+set}" = set; then :
12764 enableval=$enable_includes; aros_target_incl=$enable_includes
12765 else
12766 aros_target_incl="/usr/include"
12770 if test "$aros_kernel_includes" = ""; then
12771 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12772 aros_kernel_includes="-isystem $aros_target_incl"
12776 if test "$aros_kernel_includes" != "" ; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12778 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12779 if test "$aros_kernel_cc_includes" = "" ; then
12780 # Try to guess where the directory is.
12781 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12782 if test -d $aros_kernel_cc_includes; then
12783 # Check if there is also an include-fixed directory and add it
12784 # to kernel compiler's include path as it may contain some of
12785 # the headers we need.
12786 if test -d "$aros_kernel_cc_includes"-fixed; then
12787 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12789 # Check for specific includes directory. Neede for Ubuntu 11.10
12790 if test -d "/usr/include/i386-linux-gnu"; then
12791 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12793 else
12794 # The directory doesn't exist, we need to do some more work.
12795 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12797 # These are the headers we're looking for.
12798 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12799 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12800 zutil.h stdint.h"
12802 dirs=
12803 for h in $headers; do
12804 # Which other headers are needed by each of the above?
12805 deps=$(echo "#include <$h>" | \
12806 $aros_kernel_cc -E -M - 2>/dev/null | \
12807 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12809 # Copy all the needed headers to a directory beneath gendir.
12810 for d in $deps; do
12811 h=$(basename $d)
12812 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12813 sed -n "s,^.*/include\(/.*\),\1,p")
12814 ! test -d $dir && mkdir -p $dir
12815 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12816 done
12817 done
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12821 $as_echo "$aros_kernel_cc_includes" >&6; }
12822 # Adding -nostdinc to kernel includes as they are always used together.
12823 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12826 if test "$crosstools" != "yes"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12828 $as_echo_n "checking for the target compiler's include path... " >&6; }
12829 if test "$aros_target_cc_includes" = "" ; then
12830 #try to guess where the directory is
12831 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12832 if ! test -d $aros_target_cc_includes; then
12833 #the directory doesn't exist, we need to do some more work
12834 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12836 #these are the headers we're looking for
12837 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12838 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12839 zutil.h"
12841 dirs=
12842 for h in $headers; do
12843 #which other headers each of the above headers needs?
12844 deps=$(echo "#include <$h>" | \
12845 $orig_target_cc -E -M - 2>/dev/null | \
12846 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12848 #copy all the needed headers to a directory beneath gendir
12849 for d in $deps; do
12850 h=$(basename $d)
12851 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12852 sed -n "s,^.*/include\(/.*\),\1,p")
12853 ! test -d $dir && mkdir -p $dir
12854 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12855 done
12856 done
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12860 $as_echo "$aros_target_cc_includes" >&6; }
12861 else
12862 # We do not know which gcc version we are going to build and what we need to know
12863 # here is different for different versions so this will be set later during the
12864 # build of crosstools.
12865 aros_target_cc_includes=@aros_target_cc_includes@
12869 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12870 # On GCC >= 4.0 -iquote should be used
12873 save_cc="$CC"
12874 save_cflags="$CFLAGS"
12875 CFLAGS="-iquote."
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12877 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12878 if test "x-$crosstools" != "x-yes"; then
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12883 main ()
12887 return 0;
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 has_iquote="yes"
12892 else
12893 has_iquote="no"
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 else
12897 # we do know it is supported for the smallest version of gcc we are going to build
12898 # we assume it's also supported by later versions
12899 has_iquote=yes
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12902 $as_echo "$has_iquote" >&6; }
12903 if test "x-$has_iquote" = "x-yes" ; then
12904 host_cflags_iquote=-iquote
12905 host_cflags_iquote_end=
12906 else
12907 host_cflags_iquote=-I
12908 host_cflags_iquote_end=-I-
12910 kernel_cflags_iquote=$host_cflags_iquote
12911 kernel_cflags_iquote_end=$host_cflags_iquote_end
12912 if test "x-$cross_compiling" = "x-yes"; then
12913 CC="$aros_kernel_cc"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12915 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12916 if test "x-$crosstools" != "x-yes"; then
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12921 main ()
12925 return 0;
12927 _ACEOF
12928 if ac_fn_c_try_compile "$LINENO"; then :
12929 use_no_stack_protector="yes"
12930 else
12931 use_no_stack_protector="no"
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 else
12935 # we do know it is supported for the smallest version of gcc we are going to build
12936 # we assume it's also supported by later versions
12937 use_no_stack_protector=yes
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12940 $as_echo "$use_no_stack_protector" >&6; }
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12942 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12943 if test "x-$crosstools" != "x-yes"; then
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12948 main ()
12952 return 0;
12954 _ACEOF
12955 if ac_fn_c_try_compile "$LINENO"; then :
12956 has_iquote="yes"
12957 else
12958 has_iquote="no"
12960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 else
12962 # we do know it is supported for the smallest version of gcc we are going to build
12963 # we assume it's also supported by later versions
12964 has_iquote=yes
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12967 $as_echo "$has_iquote" >&6; }
12968 if test "x-$has_iquote" = "x-yes" ; then
12969 kernel_cflags_iquote=-iquote
12970 kernel_cflags_iquote_end=
12971 else
12972 kernel_cflags_iquote=-I
12973 kernel_cflags_iquote_end=-I-
12976 aros_cflags_iquote=$kernel_cflags_iquote
12977 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12978 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12979 CC="$orig_target_cc"
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12981 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12982 if test "x-$crosstools" != "x-yes"; then
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12987 main ()
12991 return 0;
12993 _ACEOF
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995 has_iquote="yes"
12996 else
12997 has_iquote="no"
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 else
13001 # we do know it is supported for the smallest version of gcc we are going to build
13002 # we assume it's also supported by later versions
13003 has_iquote=yes
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13006 $as_echo "$has_iquote" >&6; }
13007 if test "x-$has_iquote" = "x-yes" ; then
13008 aros_cflags_iquote=-iquote
13009 aros_cflags_iquote_end=
13010 else
13011 aros_cflags_iquote=-I
13012 aros_cflags_iquote_end=-I-
13015 if test "x-$use_no_stack_protector" = "x-yes" ; then
13016 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13020 #-----------------------------------------------------------------------------
13022 # Check if the target compiler supports some options used for delinting:
13023 # -Wunused-but-set-variable
13024 # -Warray-bounds
13025 # -Wenum-compare
13026 # -Wstrict-overflow
13027 # -Wformat-security
13029 if test "x-$crosstools" != "x-yes"; then
13030 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13031 CC="$orig_target_cc"
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13034 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13035 CFLAGS=-Wunused-but-set-variable
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13040 main ()
13044 return 0;
13046 _ACEOF
13047 if ac_fn_c_try_compile "$LINENO"; then :
13048 aros_unused_but_set_variable="yes"
13049 else
13050 aros_unused_but_set_variable="no"
13052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13054 $as_echo "$aros_unused_but_set_variable" >&6; }
13055 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13056 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13060 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13061 CFLAGS=-Warray-bounds
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13066 main ()
13070 return 0;
13072 _ACEOF
13073 if ac_fn_c_try_compile "$LINENO"; then :
13074 aros_array_bounds="yes"
13075 else
13076 aros_array_bounds="no"
13078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13080 $as_echo "$aros_array_bounds" >&6; }
13081 if test "x-$aros_array_bounds" = "x-yes" ; then
13082 aros_cflags_array_bounds=-Wno-array-bounds
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13086 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13087 CFLAGS=-Wenum-compare
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13092 main ()
13096 return 0;
13098 _ACEOF
13099 if ac_fn_c_try_compile "$LINENO"; then :
13100 aros_enum_compare="yes"
13101 else
13102 aros_enum_compare="no"
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13106 $as_echo "$aros_enum_compare" >&6; }
13107 if test "x-$aros_enum_compare" = "x-yes" ; then
13108 aros_cflags_enum_compare=-Wno-enum-compare
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13112 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13113 CFLAGS=-Wstrict-overflow
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13118 main ()
13122 return 0;
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126 aros_strict_overflow="yes"
13127 else
13128 aros_strict_overflow="no"
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13132 $as_echo "$aros_strict_overflow" >&6; }
13133 if test "x-$aros_strict_overflow" = "x-yes" ; then
13134 aros_cflags_strict_overflow=-Wno-strict-overflow
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13138 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13139 CFLAGS=-Wformat-security
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13144 main ()
13148 return 0;
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152 aros_format_security="yes"
13153 else
13154 aros_format_security="no"
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13158 $as_echo "$aros_format_security" >&6; }
13159 if test "x-$aros_format_security" = "x-yes" ; then
13160 aros_cflags_format_security=-Wno-format-security
13162 else
13163 # We do not know which gcc version we are going to build and what we need to know
13164 # here is different for different versions so this will be set later during the
13165 # build of crosstools.
13166 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13167 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13168 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13169 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13170 aros_cflags_format_security=@aros_cflags_format_security@
13173 #-----------------------------------------------------------------------------
13175 # Check if we can explicitly choose older version of symbol hashing
13177 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13178 CC="$aros_kernel_cc"
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13180 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13185 main ()
13189 return 0;
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"; then :
13193 use_hash_style="yes"
13194 else
13195 use_hash_style="no"
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13200 $as_echo "$use_hash_style" >&6; }
13201 if test "x-$use_hash_style" = "x-yes" ; then
13202 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13204 CC="$save_cc"
13205 CFLAGS="$save_cflags"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13216 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13218 # Check whether --with-resolution was given.
13219 if test "${with_resolution+set}" = set; then :
13220 withval=$with_resolution; resolution=$withval
13221 else
13222 resolution=none
13225 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13226 if test "$resolution" = "yes" ; then
13227 resolution="none"
13229 if test "$resolution" = "no" ; then
13230 resolution="none"
13232 if test "$resolution" != "none" ; then
13233 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13234 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13235 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13238 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13239 aros_cv_default_wbwidth=$aros_default_wbwidth
13240 aros_cv_default_wbheight=$aros_default_wbheight
13241 aros_cv_default_wbdepth=$aros_default_wbdepth
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13244 $as_echo_n "checking if serial debug is enabled... " >&6; }
13246 # Check whether --with-serial-debug was given.
13247 if test "${with_serial_debug+set}" = set; then :
13248 withval=$with_serial_debug; serial_debug=$withval
13249 else
13250 serial_debug=none
13253 if test "$aros_serial_debug" = 0 ; then
13254 serial_debug_forced=""
13255 if test "$serial_debug" = "yes" ; then
13256 serial_debug="1"
13258 if test "$serial_debug" = "no" ; then
13259 serial_debug="none"
13261 else
13262 serial_debug_forced="(forced)"
13263 serial_debug=$aros_serial_debug
13265 if test "$serial_debug" != "none" ; then
13266 aros_serial_debug=$serial_debug
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13268 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13275 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13276 # Check whether --enable-palm_debug_hack was given.
13277 if test "${enable_palm_debug_hack+set}" = set; then :
13278 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13279 else
13280 palm_debug_hack="no"
13283 if test "$palm_debug_hack" = "yes" ; then
13284 aros_palm_debug_hack="1"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13287 $as_echo "$palm_debug_hack" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13290 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13291 # Check whether --enable-nesting_supervisor was given.
13292 if test "${enable_nesting_supervisor+set}" = set; then :
13293 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13294 else
13295 nesting_supervisor="no"
13298 if test "$nesting_supervisor" = "yes" ; then
13299 aros_nesting_supervisor="1"
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13302 $as_echo "$nesting_supervisor" >&6; }
13304 if test "$aros_enable_mmu" = "" ; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13306 $as_echo_n "checking if MMU support is enabled... " >&6; }
13307 # Check whether --enable-mmu was given.
13308 if test "${enable_mmu+set}" = set; then :
13309 enableval=$enable_mmu; aros_enable_mmu=$enableval
13310 else
13311 aros_enable_mmu="yes"
13314 if test "$aros_enable_mmu" = "" ; then
13315 aros_enable_mmu="yes"
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13318 $as_echo "$aros_enable_mmu" >&6; }
13320 if test "$aros_enable_mmu" = "no" ; then
13321 aros_enable_mmu="0"
13322 else
13323 aros_enable_mmu="1"
13327 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13329 if test "x-$need_dlopen" != "x-no" ; then
13330 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13331 if test "x$ac_cv_func_dlopen" = xyes; then :
13332 have_dl="yes"
13333 else
13334 have_dl="no"
13337 if test "x-$have_dl" = "x-no" ; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13340 if ${ac_cv_lib_dl_dlopen+:} false; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 ac_check_lib_save_LIBS=$LIBS
13344 LIBS="-ldl $LIBS"
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13348 /* Override any GCC internal prototype to avoid an error.
13349 Use char because int might match the return type of a GCC
13350 builtin and then its argument prototype would still apply. */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 char dlopen ();
13356 main ()
13358 return dlopen ();
13360 return 0;
13362 _ACEOF
13363 if ac_fn_c_try_link "$LINENO"; then :
13364 ac_cv_lib_dl_dlopen=yes
13365 else
13366 ac_cv_lib_dl_dlopen=no
13368 rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13374 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13375 have_dl="yes"
13376 aros_host_ldflags="$aros_host_ldflags -ldl"
13377 else
13378 have_dl="no"
13382 if test "x-$have_dl" = "x-no" ; then
13383 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13388 # Check whether --enable-x11_hidd was given.
13389 if test "${enable_x11_hidd+set}" = set; then :
13390 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13391 else
13392 x11_hidd="$need_x11"
13395 case "x-$x11_hidd" in
13396 x-yes|x-no|x-auto) ;;
13397 *) x11_hidd="$need_x11" ;;
13398 esac
13400 ENABLE_X11=0
13402 if test "x-$x11_hidd" != "x-no" ; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13405 $as_echo_n "checking for X... " >&6; }
13408 # Check whether --with-x was given.
13409 if test "${with_x+set}" = set; then :
13410 withval=$with_x;
13413 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13414 if test "x$with_x" = xno; then
13415 # The user explicitly disabled X.
13416 have_x=disabled
13417 else
13418 case $x_includes,$x_libraries in #(
13419 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13420 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 # One or both of the vars are not set, and there is no cached value.
13424 ac_x_includes=no ac_x_libraries=no
13425 rm -f -r conftest.dir
13426 if mkdir conftest.dir; then
13427 cd conftest.dir
13428 cat >Imakefile <<'_ACEOF'
13429 incroot:
13430 @echo incroot='${INCROOT}'
13431 usrlibdir:
13432 @echo usrlibdir='${USRLIBDIR}'
13433 libdir:
13434 @echo libdir='${LIBDIR}'
13435 _ACEOF
13436 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13437 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13438 for ac_var in incroot usrlibdir libdir; do
13439 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13440 done
13441 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13442 for ac_extension in a so sl dylib la dll; do
13443 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13444 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13445 ac_im_usrlibdir=$ac_im_libdir; break
13447 done
13448 # Screen out bogus values from the imake configuration. They are
13449 # bogus both because they are the default anyway, and because
13450 # using them would break gcc on systems where it needs fixed includes.
13451 case $ac_im_incroot in
13452 /usr/include) ac_x_includes= ;;
13453 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13454 esac
13455 case $ac_im_usrlibdir in
13456 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13457 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13458 esac
13460 cd ..
13461 rm -f -r conftest.dir
13464 # Standard set of common directories for X headers.
13465 # Check X11 before X11Rn because it is often a symlink to the current release.
13466 ac_x_header_dirs='
13467 /usr/X11/include
13468 /usr/X11R7/include
13469 /usr/X11R6/include
13470 /usr/X11R5/include
13471 /usr/X11R4/include
13473 /usr/include/X11
13474 /usr/include/X11R7
13475 /usr/include/X11R6
13476 /usr/include/X11R5
13477 /usr/include/X11R4
13479 /usr/local/X11/include
13480 /usr/local/X11R7/include
13481 /usr/local/X11R6/include
13482 /usr/local/X11R5/include
13483 /usr/local/X11R4/include
13485 /usr/local/include/X11
13486 /usr/local/include/X11R7
13487 /usr/local/include/X11R6
13488 /usr/local/include/X11R5
13489 /usr/local/include/X11R4
13491 /usr/X386/include
13492 /usr/x386/include
13493 /usr/XFree86/include/X11
13495 /usr/include
13496 /usr/local/include
13497 /usr/unsupported/include
13498 /usr/athena/include
13499 /usr/local/x11r5/include
13500 /usr/lpp/Xamples/include
13502 /usr/openwin/include
13503 /usr/openwin/share/include'
13505 if test "$ac_x_includes" = no; then
13506 # Guess where to find include files, by looking for Xlib.h.
13507 # First, try using that file with no special directory specified.
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 #include <X11/Xlib.h>
13511 _ACEOF
13512 if ac_fn_c_try_cpp "$LINENO"; then :
13513 # We can compile using X headers with no special include directory.
13514 ac_x_includes=
13515 else
13516 for ac_dir in $ac_x_header_dirs; do
13517 if test -r "$ac_dir/X11/Xlib.h"; then
13518 ac_x_includes=$ac_dir
13519 break
13521 done
13523 rm -f conftest.err conftest.i conftest.$ac_ext
13524 fi # $ac_x_includes = no
13526 if test "$ac_x_libraries" = no; then
13527 # Check for the libraries.
13528 # See if we find them without any special options.
13529 # Don't add to $LIBS permanently.
13530 ac_save_LIBS=$LIBS
13531 LIBS="-lX11 $LIBS"
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #include <X11/Xlib.h>
13536 main ()
13538 XrmInitialize ()
13540 return 0;
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 LIBS=$ac_save_LIBS
13545 # We can link X programs with no special library path.
13546 ac_x_libraries=
13547 else
13548 LIBS=$ac_save_LIBS
13549 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13551 # Don't even attempt the hair of trying to link an X program!
13552 for ac_extension in a so sl dylib la dll; do
13553 if test -r "$ac_dir/libX11.$ac_extension"; then
13554 ac_x_libraries=$ac_dir
13555 break 2
13557 done
13558 done
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 fi # $ac_x_libraries = no
13564 case $ac_x_includes,$ac_x_libraries in #(
13565 no,* | *,no | *\'*)
13566 # Didn't find X, or a directory has "'" in its name.
13567 ac_cv_have_x="have_x=no";; #(
13569 # Record where we found X for the cache.
13570 ac_cv_have_x="have_x=yes\
13571 ac_x_includes='$ac_x_includes'\
13572 ac_x_libraries='$ac_x_libraries'"
13573 esac
13575 ;; #(
13576 *) have_x=yes;;
13577 esac
13578 eval "$ac_cv_have_x"
13579 fi # $with_x != no
13581 if test "$have_x" != yes; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13583 $as_echo "$have_x" >&6; }
13584 no_x=yes
13585 else
13586 # If each of the values was on the command line, it overrides each guess.
13587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13589 # Update the cache value to reflect the command line values.
13590 ac_cv_have_x="have_x=yes\
13591 ac_x_includes='$x_includes'\
13592 ac_x_libraries='$x_libraries'"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13594 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13598 x_cflags=
13599 for path in $x_libraries
13601 x_cflags="$x_cflags -L$path"
13602 done
13604 for path in $x_includes
13606 x_cflags="$x_cflags -I$path"
13607 done
13609 if test "x-$no_x" = "x-yes" ; then
13611 if test "x-$x11_hidd" != "x-auto" ; then
13612 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13615 else
13616 x11_hidd_target=kernel-x11gfx-kobj
13617 ENABLE_X11=1
13619 # Check whether --enable-x11_shm was given.
13620 if test "${enable_x11_shm+set}" = set; then :
13621 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13622 else
13623 x11_hidd_shm="auto"
13626 case "x-$x11_hidd_shm" in
13627 x-yes|x-no|x-auto) ;;
13628 *) x11_hidd_shm="auto" ;;
13629 esac
13631 have_xshm=no
13633 if test "x-$x11_hidd_shm" != "x-no" ; then
13635 for ac_header in sys/ipc.h
13636 do :
13637 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13638 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13639 cat >>confdefs.h <<_ACEOF
13640 #define HAVE_SYS_IPC_H 1
13641 _ACEOF
13645 done
13647 for ac_header in sys/shm.h
13648 do :
13649 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13650 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13651 cat >>confdefs.h <<_ACEOF
13652 #define HAVE_SYS_SHM_H 1
13653 _ACEOF
13657 done
13660 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13662 save_cflags="$CFLAGS"
13663 CFLAGS="$CFLAGS $x_cflags"
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13665 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13666 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-lXext $LIBS"
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char XShmQueryExtension ();
13682 main ()
13684 return XShmQueryExtension ();
13686 return 0;
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 ac_cv_lib_Xext_XShmQueryExtension=yes
13691 else
13692 ac_cv_lib_Xext_XShmQueryExtension=no
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 LIBS=$ac_check_lib_save_LIBS
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13699 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13700 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13701 have_xshm=yes
13704 CFLAGS="$save_cflags"
13708 if test "x-$have_xshm" = "x-yes" ; then
13709 DO_XSHM_SUPPORT="1"
13710 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13711 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13712 else
13713 DO_XSHM_SUPPORT="0"
13717 # Check whether --enable-x11_vidmode was given.
13718 if test "${enable_x11_vidmode+set}" = set; then :
13719 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13720 else
13721 x11_hidd_vidmode="auto"
13724 case "x-$x11_hidd_vidmode" in
13725 x-yes|x-no|x-auto) ;;
13726 *) x11_hidd_vidmode="auto" ;;
13727 esac
13729 have_vidmode=no
13731 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13733 save_cflags="$CFLAGS"
13734 CFLAGS="$CFLAGS $x_cflags"
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13736 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13737 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 ac_check_lib_save_LIBS=$LIBS
13741 LIBS="-lXxf86vm $LIBS"
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13745 /* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
13748 #ifdef __cplusplus
13749 extern "C"
13750 #endif
13751 char XF86VidModeQueryExtension ();
13753 main ()
13755 return XF86VidModeQueryExtension ();
13757 return 0;
13759 _ACEOF
13760 if ac_fn_c_try_link "$LINENO"; then :
13761 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13762 else
13763 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13765 rm -f core conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
13767 LIBS=$ac_check_lib_save_LIBS
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13770 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13771 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13772 have_vidmode=yes
13775 CFLAGS="$save_cflags"
13778 if test "x-$have_vidmode" = "x-yes" ; then
13779 DO_VIDMODE_SUPPORT="1"
13780 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13781 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13782 else
13783 DO_VIDMODE_SUPPORT="0"
13787 aros_host_x11_includes=$x_includes
13788 aros_host_x11_libdirs=$x_libraries
13792 # Check whether --enable-sdl_hidd was given.
13793 if test "${enable_sdl_hidd+set}" = set; then :
13794 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13795 else
13796 sdl_hidd="auto"
13799 case "x-$sdl_hidd" in
13800 x-yes|x-no|x-auto) ;;
13801 *) sdl_hidd="auto" ;;
13802 esac
13804 if test "x-$sdl_hidd" != "x-no" ; then
13807 # Check whether --with-sdl-prefix was given.
13808 if test "${with_sdl_prefix+set}" = set; then :
13809 withval=$with_sdl_prefix; sdl_prefix="$withval"
13810 else
13811 sdl_prefix=""
13815 # Check whether --with-sdl-exec-prefix was given.
13816 if test "${with_sdl_exec_prefix+set}" = set; then :
13817 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13818 else
13819 sdl_exec_prefix=""
13822 # Check whether --enable-sdltest was given.
13823 if test "${enable_sdltest+set}" = set; then :
13824 enableval=$enable_sdltest;
13825 else
13826 enable_sdltest=yes
13830 if test x$sdl_exec_prefix != x ; then
13831 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13832 if test x${SDL_CONFIG+set} != xset ; then
13833 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13836 if test x$sdl_prefix != x ; then
13837 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13838 if test x${SDL_CONFIG+set} != xset ; then
13839 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13843 as_save_PATH="$PATH"
13844 if test "x$prefix" != xNONE; then
13845 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13847 # Extract the first word of "sdl-config", so it can be a program name with args.
13848 set dummy sdl-config; ac_word=$2
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13850 $as_echo_n "checking for $ac_word... " >&6; }
13851 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13852 $as_echo_n "(cached) " >&6
13853 else
13854 case $SDL_CONFIG in
13855 [\\/]* | ?:[\\/]*)
13856 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13862 IFS=$as_save_IFS
13863 test -z "$as_dir" && as_dir=.
13864 for ac_exec_ext in '' $ac_executable_extensions; do
13865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13866 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13868 break 2
13870 done
13871 done
13872 IFS=$as_save_IFS
13874 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13876 esac
13878 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13879 if test -n "$SDL_CONFIG"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13881 $as_echo "$SDL_CONFIG" >&6; }
13882 else
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13888 PATH="$as_save_PATH"
13889 min_sdl_version=1.2.10
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13891 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13892 no_sdl=""
13893 if test "$SDL_CONFIG" = "no" ; then
13894 no_sdl=yes
13895 else
13896 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13897 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13899 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13900 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13901 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13902 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13903 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13904 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13905 if test "x$enable_sdltest" = "xyes" ; then
13906 ac_save_CFLAGS="$CFLAGS"
13907 ac_save_CXXFLAGS="$CXXFLAGS"
13908 ac_save_LIBS="$LIBS"
13909 CFLAGS="$CFLAGS $SDL_CFLAGS"
13910 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13911 LIBS="$LIBS $SDL_LIBS"
13912 rm -f conf.sdltest
13913 if test "$cross_compiling" = yes; then :
13914 echo $ac_n "cross compiling; assumed OK... $ac_c"
13915 else
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13919 #include <stdio.h>
13920 #include <stdlib.h>
13921 #include <string.h>
13922 #include "SDL.h"
13924 char*
13925 my_strdup (char *str)
13927 char *new_str;
13929 if (str)
13931 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13932 strcpy (new_str, str);
13934 else
13935 new_str = NULL;
13937 return new_str;
13940 int main (int argc, char *argv[])
13942 int major, minor, micro;
13943 char *tmp_version;
13945 /* This hangs on some systems (?)
13946 system ("touch conf.sdltest");
13948 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13950 /* HP/UX 9 (%@#!) writes to sscanf strings */
13951 tmp_version = my_strdup("$min_sdl_version");
13952 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13953 printf("%s, bad version string\n", "$min_sdl_version");
13954 exit(1);
13957 if (($sdl_major_version > major) ||
13958 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13959 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13961 return 0;
13963 else
13965 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13966 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13967 printf("*** best to upgrade to the required version.\n");
13968 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13969 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13970 printf("*** config.cache before re-running configure\n");
13971 return 1;
13976 _ACEOF
13977 if ac_fn_c_try_run "$LINENO"; then :
13979 else
13980 no_sdl=yes
13982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13983 conftest.$ac_objext conftest.beam conftest.$ac_ext
13986 CFLAGS="$ac_save_CFLAGS"
13987 CXXFLAGS="$ac_save_CXXFLAGS"
13988 LIBS="$ac_save_LIBS"
13991 if test "x$no_sdl" = x ; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13993 $as_echo "yes" >&6; }
13994 have_sdl="yes"
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13997 $as_echo "no" >&6; }
13998 if test "$SDL_CONFIG" = "no" ; then
13999 echo "*** The sdl-config script installed by SDL could not be found"
14000 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14001 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14002 echo "*** full path to sdl-config."
14003 else
14004 if test -f conf.sdltest ; then
14006 else
14007 echo "*** Could not run SDL test program, checking why..."
14008 CFLAGS="$CFLAGS $SDL_CFLAGS"
14009 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14010 LIBS="$LIBS $SDL_LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14014 #include <stdio.h>
14015 #include "SDL.h"
14017 int main(int argc, char *argv[])
14018 { return 0; }
14019 #undef main
14020 #define main K_and_R_C_main
14023 main ()
14025 return 0;
14027 return 0;
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 echo "*** The test program compiled, but did not run. This usually means"
14032 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14033 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14034 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14035 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14036 echo "*** is required on your system"
14037 echo "***"
14038 echo "*** If you have an old version installed, it is best to remove it, although"
14039 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14040 else
14041 echo "*** The test program failed to compile or link. See the file config.log for the"
14042 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14043 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14044 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14046 rm -f core conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048 CFLAGS="$ac_save_CFLAGS"
14049 CXXFLAGS="$ac_save_CXXFLAGS"
14050 LIBS="$ac_save_LIBS"
14053 SDL_CFLAGS=""
14054 SDL_LIBS=""
14055 have_sdl="no"
14059 rm -f conf.sdltest
14062 if test "x-$have_sdl" != "x-yes" ; then
14064 if test "x-$sdl_hidd" != "x-auto" ; then
14065 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14068 else
14069 sdl_hidd_target=kernel-hidd-sdl
14070 aros_host_sdl_cflags=SDL_CFLAGS
14071 aros_host_sdl_libs=SDL_LIBS
14075 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14076 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14081 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14082 oss_library_target=workbench-libs-oss-unix
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14088 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14089 # Check whether --enable-dbus was given.
14090 if test "${enable_dbus+set}" = set; then :
14091 enableval=$enable_dbus; dbus="yes"
14092 else
14093 dbus="no"
14096 if test "$dbus" = "yes" ; then
14097 ENABLE_DBUS=1
14098 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14099 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14100 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14101 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14102 else
14103 ENABLE_DBUS=0
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14106 $as_echo "$dbus" >&6; }
14108 if test "$use_kernel_cc_wrapper" = "yes" ; then
14109 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14112 if test "${crosstools}" != "yes" ; then
14113 aros_target_toolchain=no
14114 else
14115 aros_target_toolchain=yes
14119 # Generic
14131 # Compatability with other Amiga-like operation systems
14134 # Host related
14162 # Target Related
14226 # Delinting target compiler flags
14233 # Graphics Related
14250 # Native version related
14253 # Palm native version related
14256 # Unix/Hosted version related
14259 # MMU related
14262 # Apple iOS related
14267 # Android related
14271 # DBUS related
14278 #X11 related
14281 # Debug related
14287 # Collect-aros stuff: "-ius" to ignore undefined symbols
14290 # C compiler related
14293 case "$aros_flavour" in
14294 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14295 aros_flavour="emulation" ;;
14296 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14297 aros_flavour="emulation" ;;
14298 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14299 aros_flavour="standalone";;
14300 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14301 aros_flavour="standalone";;
14302 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14303 aros_flavour="native" ;;
14304 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14305 aros_flavour="native" ;;
14306 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14307 aros_flavour="linklib" ;;
14308 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14309 aros_flavour="palmnative" ;;
14310 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14311 aros_flavour="mac68knative" ;;
14312 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14313 aros_flavour="ppcnative" ;;
14314 esac
14316 if test ! -d ${aros_inc_dir} ; then
14317 ${MKDIR} ${aros_inc_dir}
14319 if test ! -d ${aros_geninc_dir} ; then
14320 ${MKDIR} ${aros_geninc_dir}
14322 if test ! -d ${aros_hostcfg_dir} ; then
14323 ${MKDIR} ${aros_hostcfg_dir}
14325 if test ! -d ${aros_targetcfg_dir} ; then
14326 ${MKDIR} ${aros_targetcfg_dir}
14328 if test ! -d ${aros_tools_dir} ; then
14329 ${MKDIR} ${aros_tools_dir}
14331 if test ! -d ${aros_scripts_dir} ; then
14332 ${MKDIR} ${aros_scripts_dir}
14335 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14338 ac_config_commands="$ac_config_commands compiler_executable"
14340 ac_config_commands="$ac_config_commands genmf_executable"
14343 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"
14346 cat >confcache <<\_ACEOF
14347 # This file is a shell script that caches the results of configure
14348 # tests run on this system so they can be shared between configure
14349 # scripts and configure runs, see configure's option --config-cache.
14350 # It is not useful on other systems. If it contains results you don't
14351 # want to keep, you may remove or edit it.
14353 # config.status only pays attention to the cache file if you give it
14354 # the --recheck option to rerun configure.
14356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14358 # following values.
14360 _ACEOF
14362 # The following way of writing the cache mishandles newlines in values,
14363 # but we know of no workaround that is simple, portable, and efficient.
14364 # So, we kill variables containing newlines.
14365 # Ultrix sh set writes to stderr and can't be redirected directly,
14366 # and sets the high bit in the cache file unless we assign to the vars.
14368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14369 eval ac_val=\$$ac_var
14370 case $ac_val in #(
14371 *${as_nl}*)
14372 case $ac_var in #(
14373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14375 esac
14376 case $ac_var in #(
14377 _ | IFS | as_nl) ;; #(
14378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14379 *) { eval $ac_var=; unset $ac_var;} ;;
14380 esac ;;
14381 esac
14382 done
14384 (set) 2>&1 |
14385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14386 *${as_nl}ac_space=\ *)
14387 # `set' does not quote correctly, so add quotes: double-quote
14388 # substitution turns \\\\ into \\, and sed turns \\ into \.
14389 sed -n \
14390 "s/'/'\\\\''/g;
14391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14392 ;; #(
14394 # `set' quotes correctly as required by POSIX, so do not add quotes.
14395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14397 esac |
14398 sort
14400 sed '
14401 /^ac_cv_env_/b end
14402 t clear
14403 :clear
14404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14405 t end
14406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14407 :end' >>confcache
14408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14409 if test -w "$cache_file"; then
14410 if test "x$cache_file" != "x/dev/null"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14412 $as_echo "$as_me: updating cache $cache_file" >&6;}
14413 if test ! -f "$cache_file" || test -h "$cache_file"; then
14414 cat confcache >"$cache_file"
14415 else
14416 case $cache_file in #(
14417 */* | ?:*)
14418 mv -f confcache "$cache_file"$$ &&
14419 mv -f "$cache_file"$$ "$cache_file" ;; #(
14421 mv -f confcache "$cache_file" ;;
14422 esac
14425 else
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14427 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14430 rm -f confcache
14432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14433 # Let make expand exec_prefix.
14434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14436 DEFS=-DHAVE_CONFIG_H
14438 ac_libobjs=
14439 ac_ltlibobjs=
14441 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14442 # 1. Remove the extension, and $U if already installed.
14443 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14444 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14445 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14446 # will be set to the directory where LIBOBJS objects are built.
14447 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14448 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14449 done
14450 LIBOBJS=$ac_libobjs
14452 LTLIBOBJS=$ac_ltlibobjs
14456 : "${CONFIG_STATUS=./config.status}"
14457 ac_write_fail=0
14458 ac_clean_files_save=$ac_clean_files
14459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14461 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14462 as_write_fail=0
14463 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14464 #! $SHELL
14465 # Generated by $as_me.
14466 # Run this file to recreate the current configuration.
14467 # Compiler output produced by configure, useful for debugging
14468 # configure, is in config.log if it exists.
14470 debug=false
14471 ac_cs_recheck=false
14472 ac_cs_silent=false
14474 SHELL=\${CONFIG_SHELL-$SHELL}
14475 export SHELL
14476 _ASEOF
14477 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14478 ## -------------------- ##
14479 ## M4sh Initialization. ##
14480 ## -------------------- ##
14482 # Be more Bourne compatible
14483 DUALCASE=1; export DUALCASE # for MKS sh
14484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14485 emulate sh
14486 NULLCMD=:
14487 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14488 # is contrary to our usage. Disable this feature.
14489 alias -g '${1+"$@"}'='"$@"'
14490 setopt NO_GLOB_SUBST
14491 else
14492 case `(set -o) 2>/dev/null` in #(
14493 *posix*) :
14494 set -o posix ;; #(
14495 *) :
14497 esac
14501 as_nl='
14503 export as_nl
14504 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14505 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14506 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14508 # Prefer a ksh shell builtin over an external printf program on Solaris,
14509 # but without wasting forks for bash or zsh.
14510 if test -z "$BASH_VERSION$ZSH_VERSION" \
14511 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14512 as_echo='print -r --'
14513 as_echo_n='print -rn --'
14514 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14515 as_echo='printf %s\n'
14516 as_echo_n='printf %s'
14517 else
14518 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14519 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14520 as_echo_n='/usr/ucb/echo -n'
14521 else
14522 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14523 as_echo_n_body='eval
14524 arg=$1;
14525 case $arg in #(
14526 *"$as_nl"*)
14527 expr "X$arg" : "X\\(.*\\)$as_nl";
14528 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14529 esac;
14530 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14532 export as_echo_n_body
14533 as_echo_n='sh -c $as_echo_n_body as_echo'
14535 export as_echo_body
14536 as_echo='sh -c $as_echo_body as_echo'
14539 # The user is always right.
14540 if test "${PATH_SEPARATOR+set}" != set; then
14541 PATH_SEPARATOR=:
14542 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14543 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14544 PATH_SEPARATOR=';'
14549 # IFS
14550 # We need space, tab and new line, in precisely that order. Quoting is
14551 # there to prevent editors from complaining about space-tab.
14552 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14553 # splitting by setting IFS to empty value.)
14554 IFS=" "" $as_nl"
14556 # Find who we are. Look in the path if we contain no directory separator.
14557 as_myself=
14558 case $0 in #((
14559 *[\\/]* ) as_myself=$0 ;;
14560 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561 for as_dir in $PATH
14563 IFS=$as_save_IFS
14564 test -z "$as_dir" && as_dir=.
14565 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14566 done
14567 IFS=$as_save_IFS
14570 esac
14571 # We did not find ourselves, most probably we were run as `sh COMMAND'
14572 # in which case we are not to be found in the path.
14573 if test "x$as_myself" = x; then
14574 as_myself=$0
14576 if test ! -f "$as_myself"; then
14577 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14578 exit 1
14581 # Unset variables that we do not need and which cause bugs (e.g. in
14582 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14583 # suppresses any "Segmentation fault" message there. '((' could
14584 # trigger a bug in pdksh 5.2.14.
14585 for as_var in BASH_ENV ENV MAIL MAILPATH
14586 do eval test x\${$as_var+set} = xset \
14587 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14588 done
14589 PS1='$ '
14590 PS2='> '
14591 PS4='+ '
14593 # NLS nuisances.
14594 LC_ALL=C
14595 export LC_ALL
14596 LANGUAGE=C
14597 export LANGUAGE
14599 # CDPATH.
14600 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14603 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14604 # ----------------------------------------
14605 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14606 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14607 # script with STATUS, using 1 if that was 0.
14608 as_fn_error ()
14610 as_status=$1; test $as_status -eq 0 && as_status=1
14611 if test "$4"; then
14612 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14613 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14615 $as_echo "$as_me: error: $2" >&2
14616 as_fn_exit $as_status
14617 } # as_fn_error
14620 # as_fn_set_status STATUS
14621 # -----------------------
14622 # Set $? to STATUS, without forking.
14623 as_fn_set_status ()
14625 return $1
14626 } # as_fn_set_status
14628 # as_fn_exit STATUS
14629 # -----------------
14630 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14631 as_fn_exit ()
14633 set +e
14634 as_fn_set_status $1
14635 exit $1
14636 } # as_fn_exit
14638 # as_fn_unset VAR
14639 # ---------------
14640 # Portably unset VAR.
14641 as_fn_unset ()
14643 { eval $1=; unset $1;}
14645 as_unset=as_fn_unset
14646 # as_fn_append VAR VALUE
14647 # ----------------------
14648 # Append the text in VALUE to the end of the definition contained in VAR. Take
14649 # advantage of any shell optimizations that allow amortized linear growth over
14650 # repeated appends, instead of the typical quadratic growth present in naive
14651 # implementations.
14652 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14653 eval 'as_fn_append ()
14655 eval $1+=\$2
14657 else
14658 as_fn_append ()
14660 eval $1=\$$1\$2
14662 fi # as_fn_append
14664 # as_fn_arith ARG...
14665 # ------------------
14666 # Perform arithmetic evaluation on the ARGs, and store the result in the
14667 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14668 # must be portable across $(()) and expr.
14669 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14670 eval 'as_fn_arith ()
14672 as_val=$(( $* ))
14674 else
14675 as_fn_arith ()
14677 as_val=`expr "$@" || test $? -eq 1`
14679 fi # as_fn_arith
14682 if expr a : '\(a\)' >/dev/null 2>&1 &&
14683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14684 as_expr=expr
14685 else
14686 as_expr=false
14689 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14690 as_basename=basename
14691 else
14692 as_basename=false
14695 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14696 as_dirname=dirname
14697 else
14698 as_dirname=false
14701 as_me=`$as_basename -- "$0" ||
14702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14703 X"$0" : 'X\(//\)$' \| \
14704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X/"$0" |
14706 sed '/^.*\/\([^/][^/]*\)\/*$/{
14707 s//\1/
14710 /^X\/\(\/\/\)$/{
14711 s//\1/
14714 /^X\/\(\/\).*/{
14715 s//\1/
14718 s/.*/./; q'`
14720 # Avoid depending upon Character Ranges.
14721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14724 as_cr_digits='0123456789'
14725 as_cr_alnum=$as_cr_Letters$as_cr_digits
14727 ECHO_C= ECHO_N= ECHO_T=
14728 case `echo -n x` in #(((((
14729 -n*)
14730 case `echo 'xy\c'` in
14731 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14732 xy) ECHO_C='\c';;
14733 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14734 ECHO_T=' ';;
14735 esac;;
14737 ECHO_N='-n';;
14738 esac
14740 rm -f conf$$ conf$$.exe conf$$.file
14741 if test -d conf$$.dir; then
14742 rm -f conf$$.dir/conf$$.file
14743 else
14744 rm -f conf$$.dir
14745 mkdir conf$$.dir 2>/dev/null
14747 if (echo >conf$$.file) 2>/dev/null; then
14748 if ln -s conf$$.file conf$$ 2>/dev/null; then
14749 as_ln_s='ln -s'
14750 # ... but there are two gotchas:
14751 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14752 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14753 # In both cases, we have to default to `cp -p'.
14754 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14755 as_ln_s='cp -p'
14756 elif ln conf$$.file conf$$ 2>/dev/null; then
14757 as_ln_s=ln
14758 else
14759 as_ln_s='cp -p'
14761 else
14762 as_ln_s='cp -p'
14764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14765 rmdir conf$$.dir 2>/dev/null
14768 # as_fn_mkdir_p
14769 # -------------
14770 # Create "$as_dir" as a directory, including parents if necessary.
14771 as_fn_mkdir_p ()
14774 case $as_dir in #(
14775 -*) as_dir=./$as_dir;;
14776 esac
14777 test -d "$as_dir" || eval $as_mkdir_p || {
14778 as_dirs=
14779 while :; do
14780 case $as_dir in #(
14781 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14782 *) as_qdir=$as_dir;;
14783 esac
14784 as_dirs="'$as_qdir' $as_dirs"
14785 as_dir=`$as_dirname -- "$as_dir" ||
14786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14787 X"$as_dir" : 'X\(//\)[^/]' \| \
14788 X"$as_dir" : 'X\(//\)$' \| \
14789 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14790 $as_echo X"$as_dir" |
14791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14792 s//\1/
14795 /^X\(\/\/\)[^/].*/{
14796 s//\1/
14799 /^X\(\/\/\)$/{
14800 s//\1/
14803 /^X\(\/\).*/{
14804 s//\1/
14807 s/.*/./; q'`
14808 test -d "$as_dir" && break
14809 done
14810 test -z "$as_dirs" || eval "mkdir $as_dirs"
14811 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14814 } # as_fn_mkdir_p
14815 if mkdir -p . 2>/dev/null; then
14816 as_mkdir_p='mkdir -p "$as_dir"'
14817 else
14818 test -d ./-p && rmdir ./-p
14819 as_mkdir_p=false
14822 if test -x / >/dev/null 2>&1; then
14823 as_test_x='test -x'
14824 else
14825 if ls -dL / >/dev/null 2>&1; then
14826 as_ls_L_option=L
14827 else
14828 as_ls_L_option=
14830 as_test_x='
14831 eval sh -c '\''
14832 if test -d "$1"; then
14833 test -d "$1/.";
14834 else
14835 case $1 in #(
14836 -*)set "./$1";;
14837 esac;
14838 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14839 ???[sx]*):;;*)false;;esac;fi
14840 '\'' sh
14843 as_executable_p=$as_test_x
14845 # Sed expression to map a string onto a valid CPP name.
14846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14848 # Sed expression to map a string onto a valid variable name.
14849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14852 exec 6>&1
14853 ## ----------------------------------- ##
14854 ## Main body of $CONFIG_STATUS script. ##
14855 ## ----------------------------------- ##
14856 _ASEOF
14857 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860 # Save the log message, to keep $0 and so on meaningful, and to
14861 # report actual input values of CONFIG_FILES etc. instead of their
14862 # values after options handling.
14863 ac_log="
14864 This file was extended by $as_me, which was
14865 generated by GNU Autoconf 2.68. Invocation command line was
14867 CONFIG_FILES = $CONFIG_FILES
14868 CONFIG_HEADERS = $CONFIG_HEADERS
14869 CONFIG_LINKS = $CONFIG_LINKS
14870 CONFIG_COMMANDS = $CONFIG_COMMANDS
14871 $ $0 $@
14873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14876 _ACEOF
14878 case $ac_config_files in *"
14879 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14880 esac
14882 case $ac_config_headers in *"
14883 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14884 esac
14887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888 # Files that config.status was made for.
14889 config_files="$ac_config_files"
14890 config_headers="$ac_config_headers"
14891 config_commands="$ac_config_commands"
14893 _ACEOF
14895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14896 ac_cs_usage="\
14897 \`$as_me' instantiates files and other configuration actions
14898 from templates according to the current configuration. Unless the files
14899 and actions are specified as TAGs, all are instantiated by default.
14901 Usage: $0 [OPTION]... [TAG]...
14903 -h, --help print this help, then exit
14904 -V, --version print version number and configuration settings, then exit
14905 --config print configuration, then exit
14906 -q, --quiet, --silent
14907 do not print progress messages
14908 -d, --debug don't remove temporary files
14909 --recheck update $as_me by reconfiguring in the same conditions
14910 --file=FILE[:TEMPLATE]
14911 instantiate the configuration file FILE
14912 --header=FILE[:TEMPLATE]
14913 instantiate the configuration header FILE
14915 Configuration files:
14916 $config_files
14918 Configuration headers:
14919 $config_headers
14921 Configuration commands:
14922 $config_commands
14924 Report bugs to the package provider."
14926 _ACEOF
14927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14929 ac_cs_version="\\
14930 config.status
14931 configured by $0, generated by GNU Autoconf 2.68,
14932 with options \\"\$ac_cs_config\\"
14934 Copyright (C) 2010 Free Software Foundation, Inc.
14935 This config.status script is free software; the Free Software Foundation
14936 gives unlimited permission to copy, distribute and modify it."
14938 ac_pwd='$ac_pwd'
14939 srcdir='$srcdir'
14940 test -n "\$AWK" || AWK=awk
14941 _ACEOF
14943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14944 # The default lists apply if the user does not specify any file.
14945 ac_need_defaults=:
14946 while test $# != 0
14948 case $1 in
14949 --*=?*)
14950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14951 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14952 ac_shift=:
14954 --*=)
14955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14956 ac_optarg=
14957 ac_shift=:
14960 ac_option=$1
14961 ac_optarg=$2
14962 ac_shift=shift
14964 esac
14966 case $ac_option in
14967 # Handling of the options.
14968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14969 ac_cs_recheck=: ;;
14970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14971 $as_echo "$ac_cs_version"; exit ;;
14972 --config | --confi | --conf | --con | --co | --c )
14973 $as_echo "$ac_cs_config"; exit ;;
14974 --debug | --debu | --deb | --de | --d | -d )
14975 debug=: ;;
14976 --file | --fil | --fi | --f )
14977 $ac_shift
14978 case $ac_optarg in
14979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14980 '') as_fn_error $? "missing file argument" ;;
14981 esac
14982 as_fn_append CONFIG_FILES " '$ac_optarg'"
14983 ac_need_defaults=false;;
14984 --header | --heade | --head | --hea )
14985 $ac_shift
14986 case $ac_optarg in
14987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14988 esac
14989 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14990 ac_need_defaults=false;;
14991 --he | --h)
14992 # Conflict between --help and --header
14993 as_fn_error $? "ambiguous option: \`$1'
14994 Try \`$0 --help' for more information.";;
14995 --help | --hel | -h )
14996 $as_echo "$ac_cs_usage"; exit ;;
14997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14999 ac_cs_silent=: ;;
15001 # This is an error.
15002 -*) as_fn_error $? "unrecognized option: \`$1'
15003 Try \`$0 --help' for more information." ;;
15005 *) as_fn_append ac_config_targets " $1"
15006 ac_need_defaults=false ;;
15008 esac
15009 shift
15010 done
15012 ac_configure_extra_args=
15014 if $ac_cs_silent; then
15015 exec 6>/dev/null
15016 ac_configure_extra_args="$ac_configure_extra_args --silent"
15019 _ACEOF
15020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15021 if \$ac_cs_recheck; then
15022 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15023 shift
15024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15025 CONFIG_SHELL='$SHELL'
15026 export CONFIG_SHELL
15027 exec "\$@"
15030 _ACEOF
15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032 exec 5>>config.log
15034 echo
15035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15036 ## Running $as_me. ##
15037 _ASBOX
15038 $as_echo "$ac_log"
15039 } >&5
15041 _ACEOF
15042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044 # INIT-COMMANDS
15047 aros_host_exe_suffix=${aros_host_exe_suffix}
15048 aros_tools_dir=${aros_tools_dir}
15049 aros_target_cpu=${aros_target_cpu}
15050 aros_target_arch=${aros_target_arch}
15051 aros_target_suffix=${aros_target_suffix}
15052 orig_target_nm=${orig_target_nm}
15053 orig_target_as=${orig_target_as}
15054 orig_target_ar=${orig_target_ar}
15055 orig_target_ranlib=${orig_target_ranlib}
15056 orig_target_objdump=${orig_target_objdump}
15057 orig_target_objcopy=${orig_target_objcopy}
15058 orig_target_strip=${orig_target_strip}
15059 aros_kernel_ld=${aros_kernel_ld}
15062 aros_tools_dir=${aros_tools_dir}
15065 _ACEOF
15067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15069 # Handling of arguments.
15070 for ac_config_target in $ac_config_targets
15072 case $ac_config_target in
15073 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15074 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15075 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15077 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15078 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15079 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15080 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15081 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15082 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15083 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15084 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15085 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15086 "${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" ;;
15087 "${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" ;;
15088 "${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" ;;
15089 "${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" ;;
15090 "${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" ;;
15091 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15092 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15093 "${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" ;;
15095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15096 esac
15097 done
15100 # If the user did not use the arguments to specify the items to instantiate,
15101 # then the envvar interface is used. Set only those that are not.
15102 # We use the long form for the default assignment because of an extremely
15103 # bizarre bug on SunOS 4.1.3.
15104 if $ac_need_defaults; then
15105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15110 # Have a temporary directory for convenience. Make it in the build tree
15111 # simply because there is no reason against having it here, and in addition,
15112 # creating and moving files from /tmp can sometimes cause problems.
15113 # Hook for its removal unless debugging.
15114 # Note that there is a small window in which the directory will not be cleaned:
15115 # after its creation but before its name has been assigned to `$tmp'.
15116 $debug ||
15118 tmp= ac_tmp=
15119 trap 'exit_status=$?
15120 : "${ac_tmp:=$tmp}"
15121 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15123 trap 'as_fn_exit 1' 1 2 13 15
15125 # Create a (secure) tmp directory for tmp files.
15128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15129 test -d "$tmp"
15130 } ||
15132 tmp=./conf$$-$RANDOM
15133 (umask 077 && mkdir "$tmp")
15134 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15135 ac_tmp=$tmp
15137 # Set up the scripts for CONFIG_FILES section.
15138 # No need to generate them if there are no CONFIG_FILES.
15139 # This happens for instance with `./config.status config.h'.
15140 if test -n "$CONFIG_FILES"; then
15143 ac_cr=`echo X | tr X '\015'`
15144 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15145 # But we know of no other shell where ac_cr would be empty at this
15146 # point, so we can use a bashism as a fallback.
15147 if test "x$ac_cr" = x; then
15148 eval ac_cr=\$\'\\r\'
15150 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15151 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15152 ac_cs_awk_cr='\\r'
15153 else
15154 ac_cs_awk_cr=$ac_cr
15157 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15158 _ACEOF
15162 echo "cat >conf$$subs.awk <<_ACEOF" &&
15163 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15164 echo "_ACEOF"
15165 } >conf$$subs.sh ||
15166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15167 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15168 ac_delim='%!_!# '
15169 for ac_last_try in false false false false false :; do
15170 . ./conf$$subs.sh ||
15171 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15173 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15174 if test $ac_delim_n = $ac_delim_num; then
15175 break
15176 elif $ac_last_try; then
15177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15178 else
15179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15181 done
15182 rm -f conf$$subs.sh
15184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15185 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15186 _ACEOF
15187 sed -n '
15189 s/^/S["/; s/!.*/"]=/
15192 s/^[^!]*!//
15193 :repl
15194 t repl
15195 s/'"$ac_delim"'$//
15196 t delim
15199 s/\(.\{148\}\)..*/\1/
15200 t more1
15201 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15204 b repl
15205 :more1
15206 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15209 s/.\{148\}//
15210 t nl
15211 :delim
15213 s/\(.\{148\}\)..*/\1/
15214 t more2
15215 s/["\\]/\\&/g; s/^/"/; s/$/"/
15218 :more2
15219 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15222 s/.\{148\}//
15223 t delim
15224 ' <conf$$subs.awk | sed '
15225 /^[^""]/{
15227 s/\n//
15229 ' >>$CONFIG_STATUS || ac_write_fail=1
15230 rm -f conf$$subs.awk
15231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15232 _ACAWK
15233 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15234 for (key in S) S_is_set[key] = 1
15235 FS = "\a"
15239 line = $ 0
15240 nfields = split(line, field, "@")
15241 substed = 0
15242 len = length(field[1])
15243 for (i = 2; i < nfields; i++) {
15244 key = field[i]
15245 keylen = length(key)
15246 if (S_is_set[key]) {
15247 value = S[key]
15248 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15249 len += length(value) + length(field[++i])
15250 substed = 1
15251 } else
15252 len += 1 + keylen
15255 print line
15258 _ACAWK
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15261 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15263 else
15265 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15266 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15267 _ACEOF
15269 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15270 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15271 # trailing colons and then remove the whole line if VPATH becomes empty
15272 # (actually we leave an empty line to preserve line numbers).
15273 if test "x$srcdir" = x.; then
15274 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15276 s///
15277 s/^/:/
15278 s/[ ]*$/:/
15279 s/:\$(srcdir):/:/g
15280 s/:\${srcdir}:/:/g
15281 s/:@srcdir@:/:/g
15282 s/^:*//
15283 s/:*$//
15285 s/\(=[ ]*\).*/\1/
15287 s/\n//
15288 s/^[^=]*=[ ]*$//
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293 fi # test -n "$CONFIG_FILES"
15295 # Set up the scripts for CONFIG_HEADERS section.
15296 # No need to generate them if there are no CONFIG_HEADERS.
15297 # This happens for instance with `./config.status Makefile'.
15298 if test -n "$CONFIG_HEADERS"; then
15299 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15300 BEGIN {
15301 _ACEOF
15303 # Transform confdefs.h into an awk script `defines.awk', embedded as
15304 # here-document in config.status, that substitutes the proper values into
15305 # config.h.in to produce config.h.
15307 # Create a delimiter string that does not exist in confdefs.h, to ease
15308 # handling of long lines.
15309 ac_delim='%!_!# '
15310 for ac_last_try in false false :; do
15311 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15312 if test -z "$ac_tt"; then
15313 break
15314 elif $ac_last_try; then
15315 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15316 else
15317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15319 done
15321 # For the awk script, D is an array of macro values keyed by name,
15322 # likewise P contains macro parameters if any. Preserve backslash
15323 # newline sequences.
15325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15326 sed -n '
15327 s/.\{148\}/&'"$ac_delim"'/g
15328 t rset
15329 :rset
15330 s/^[ ]*#[ ]*define[ ][ ]*/ /
15331 t def
15333 :def
15334 s/\\$//
15335 t bsnl
15336 s/["\\]/\\&/g
15337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15338 D["\1"]=" \3"/p
15339 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15341 :bsnl
15342 s/["\\]/\\&/g
15343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15344 D["\1"]=" \3\\\\\\n"\\/p
15345 t cont
15346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15347 t cont
15349 :cont
15351 s/.\{148\}/&'"$ac_delim"'/g
15352 t clear
15353 :clear
15354 s/\\$//
15355 t bsnlc
15356 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15358 :bsnlc
15359 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15360 b cont
15361 ' <confdefs.h | sed '
15362 s/'"$ac_delim"'/"\\\
15363 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 for (key in D) D_is_set[key] = 1
15367 FS = "\a"
15369 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15370 line = \$ 0
15371 split(line, arg, " ")
15372 if (arg[1] == "#") {
15373 defundef = arg[2]
15374 mac1 = arg[3]
15375 } else {
15376 defundef = substr(arg[1], 2)
15377 mac1 = arg[2]
15379 split(mac1, mac2, "(") #)
15380 macro = mac2[1]
15381 prefix = substr(line, 1, index(line, defundef) - 1)
15382 if (D_is_set[macro]) {
15383 # Preserve the white space surrounding the "#".
15384 print prefix "define", macro P[macro] D[macro]
15385 next
15386 } else {
15387 # Replace #undef with comments. This is necessary, for example,
15388 # in the case of _POSIX_SOURCE, which is predefined and required
15389 # on some systems where configure will not decide to define it.
15390 if (defundef == "undef") {
15391 print "/*", prefix defundef, macro, "*/"
15392 next
15396 { print }
15397 _ACAWK
15398 _ACEOF
15399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15401 fi # test -n "$CONFIG_HEADERS"
15404 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15405 shift
15406 for ac_tag
15408 case $ac_tag in
15409 :[FHLC]) ac_mode=$ac_tag; continue;;
15410 esac
15411 case $ac_mode$ac_tag in
15412 :[FHL]*:*);;
15413 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15414 :[FH]-) ac_tag=-:-;;
15415 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15416 esac
15417 ac_save_IFS=$IFS
15418 IFS=:
15419 set x $ac_tag
15420 IFS=$ac_save_IFS
15421 shift
15422 ac_file=$1
15423 shift
15425 case $ac_mode in
15426 :L) ac_source=$1;;
15427 :[FH])
15428 ac_file_inputs=
15429 for ac_f
15431 case $ac_f in
15432 -) ac_f="$ac_tmp/stdin";;
15433 *) # Look for the file first in the build tree, then in the source tree
15434 # (if the path is not absolute). The absolute path cannot be DOS-style,
15435 # because $ac_f cannot contain `:'.
15436 test -f "$ac_f" ||
15437 case $ac_f in
15438 [\\/$]*) false;;
15439 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15440 esac ||
15441 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15442 esac
15443 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15444 as_fn_append ac_file_inputs " '$ac_f'"
15445 done
15447 # Let's still pretend it is `configure' which instantiates (i.e., don't
15448 # use $as_me), people would be surprised to read:
15449 # /* config.h. Generated by config.status. */
15450 configure_input='Generated from '`
15451 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15452 `' by configure.'
15453 if test x"$ac_file" != x-; then
15454 configure_input="$ac_file. $configure_input"
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15456 $as_echo "$as_me: creating $ac_file" >&6;}
15458 # Neutralize special characters interpreted by sed in replacement strings.
15459 case $configure_input in #(
15460 *\&* | *\|* | *\\* )
15461 ac_sed_conf_input=`$as_echo "$configure_input" |
15462 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15463 *) ac_sed_conf_input=$configure_input;;
15464 esac
15466 case $ac_tag in
15467 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15469 esac
15471 esac
15473 ac_dir=`$as_dirname -- "$ac_file" ||
15474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15475 X"$ac_file" : 'X\(//\)[^/]' \| \
15476 X"$ac_file" : 'X\(//\)$' \| \
15477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15478 $as_echo X"$ac_file" |
15479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15480 s//\1/
15483 /^X\(\/\/\)[^/].*/{
15484 s//\1/
15487 /^X\(\/\/\)$/{
15488 s//\1/
15491 /^X\(\/\).*/{
15492 s//\1/
15495 s/.*/./; q'`
15496 as_dir="$ac_dir"; as_fn_mkdir_p
15497 ac_builddir=.
15499 case "$ac_dir" in
15500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15503 # A ".." for each directory in $ac_dir_suffix.
15504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15505 case $ac_top_builddir_sub in
15506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15508 esac ;;
15509 esac
15510 ac_abs_top_builddir=$ac_pwd
15511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15512 # for backward compatibility:
15513 ac_top_builddir=$ac_top_build_prefix
15515 case $srcdir in
15516 .) # We are building in place.
15517 ac_srcdir=.
15518 ac_top_srcdir=$ac_top_builddir_sub
15519 ac_abs_top_srcdir=$ac_pwd ;;
15520 [\\/]* | ?:[\\/]* ) # Absolute name.
15521 ac_srcdir=$srcdir$ac_dir_suffix;
15522 ac_top_srcdir=$srcdir
15523 ac_abs_top_srcdir=$srcdir ;;
15524 *) # Relative name.
15525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15526 ac_top_srcdir=$ac_top_build_prefix$srcdir
15527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15528 esac
15529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15532 case $ac_mode in
15535 # CONFIG_FILE
15538 _ACEOF
15540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15541 # If the template does not know about datarootdir, expand it.
15542 # FIXME: This hack should be removed a few years after 2.60.
15543 ac_datarootdir_hack=; ac_datarootdir_seen=
15544 ac_sed_dataroot='
15545 /datarootdir/ {
15549 /@datadir@/p
15550 /@docdir@/p
15551 /@infodir@/p
15552 /@localedir@/p
15553 /@mandir@/p'
15554 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15555 *datarootdir*) ac_datarootdir_seen=yes;;
15556 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15558 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15559 _ACEOF
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 ac_datarootdir_hack='
15562 s&@datadir@&$datadir&g
15563 s&@docdir@&$docdir&g
15564 s&@infodir@&$infodir&g
15565 s&@localedir@&$localedir&g
15566 s&@mandir@&$mandir&g
15567 s&\\\${datarootdir}&$datarootdir&g' ;;
15568 esac
15569 _ACEOF
15571 # Neutralize VPATH when `$srcdir' = `.'.
15572 # Shell code in configure.ac might set extrasub.
15573 # FIXME: do we really want to maintain this feature?
15574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 ac_sed_extra="$ac_vpsub
15576 $extrasub
15577 _ACEOF
15578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15581 s|@configure_input@|$ac_sed_conf_input|;t t
15582 s&@top_builddir@&$ac_top_builddir_sub&;t t
15583 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15584 s&@srcdir@&$ac_srcdir&;t t
15585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15586 s&@top_srcdir@&$ac_top_srcdir&;t t
15587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15588 s&@builddir@&$ac_builddir&;t t
15589 s&@abs_builddir@&$ac_abs_builddir&;t t
15590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15591 $ac_datarootdir_hack
15593 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15594 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15596 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15597 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15599 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15601 which seems to be undefined. Please make sure it is defined" >&5
15602 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15603 which seems to be undefined. Please make sure it is defined" >&2;}
15605 rm -f "$ac_tmp/stdin"
15606 case $ac_file in
15607 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15608 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15609 esac \
15610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15614 # CONFIG_HEADER
15616 if test x"$ac_file" != x-; then
15618 $as_echo "/* $configure_input */" \
15619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15620 } >"$ac_tmp/config.h" \
15621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15622 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15624 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15625 else
15626 rm -f "$ac_file"
15627 mv "$ac_tmp/config.h" "$ac_file" \
15628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15630 else
15631 $as_echo "/* $configure_input */" \
15632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15633 || as_fn_error $? "could not create -" "$LINENO" 5
15637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15638 $as_echo "$as_me: executing $ac_file commands" >&6;}
15640 esac
15643 case $ac_file$ac_mode in
15644 "compiler_executable":C)
15645 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15646 mkdir -p $prefix
15647 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15648 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15650 echo ${prefix2}
15651 echo ${prefix3}
15652 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15654 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15655 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15656 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15657 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15658 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15659 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15660 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15662 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15664 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15666 esac
15667 done # for ac_tag
15670 as_fn_exit 0
15671 _ACEOF
15672 ac_clean_files=$ac_clean_files_save
15674 test $ac_write_fail = 0 ||
15675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15678 # configure is writing to config.log, and then calls config.status.
15679 # config.status does its own redirection, appending to config.log.
15680 # Unfortunately, on DOS this fails, as config.log is still kept open
15681 # by configure, so config.status won't be able to write to it; its
15682 # output is simply discarded. So we exec the FD to /dev/null,
15683 # effectively closing config.log, so it can be properly (re)opened and
15684 # appended to by config.status. When coming back to configure, we
15685 # need to make the FD available again.
15686 if test "$no_create" != yes; then
15687 ac_cs_success=:
15688 ac_config_status_args=
15689 test "$silent" = yes &&
15690 ac_config_status_args="$ac_config_status_args --quiet"
15691 exec 5>/dev/null
15692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15693 exec 5>>config.log
15694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15695 # would make configure fail if this is the last instruction.
15696 $ac_cs_success || as_fn_exit 1
15698 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15700 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15705 #XXX compatability...
15706 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15708 if test -n "$aros_shared_cflags" ; then
15709 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15710 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg