Removed warning flags that aren't understood by nightly build machine's
[AROS.git] / configure
blob6a4120e980eba2178ae5707f8d3cad63ce1b30dc
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 gcc_default_float_abi
618 gcc_default_fpu
619 gcc_default_cpu
620 aros_ios_sdk
621 aros_ios_version
622 aros_ios_platform
623 aros_enable_mmu
624 aros_nesting_supervisor
625 aros_palm_debug_hack
626 aros_serial_debug
627 aros_host_sdl_libs
628 aros_host_sdl_cflags
629 aros_host_x11_libdirs
630 aros_host_x11_includes
631 DO_VIDMODE_SUPPORT
632 DO_XSHM_SUPPORT
633 aros_default_wbdepth
634 aros_default_wbheight
635 aros_default_wbwidth
636 oss_library_target
637 pci_hidd_target
638 sdl_hidd_target
639 x11_hidd_target
640 aros_cflags_format_security
641 aros_cflags_strict_overflow
642 aros_cflags_enum_compare
643 aros_cflags_array_bounds
644 aros_cflags_unused_but_set_variable
645 crosstools_cxx_target
646 crosstools_target
647 aros_target_strip_flags
648 aros_target_genmap
649 aros_debug_ldflags
650 aros_debug_aflags
651 aros_debug_cflags
652 aros_target_cflags
653 aros_kernel_ldflags
654 aros_kernel_objcflags
655 aros_kernel_includes
656 aros_kernel_cflags
657 aros_shared_ldflags
658 aros_shared_aflags
659 aros_shared_cflags
660 aros_config_ldflags
661 aros_config_aflags
662 aros_config_cflags
663 aros_arch_libs
664 aros_compiler_libs
665 aros_object_format
666 aros_shared_ld
667 aros_shared_default
668 aros_target_nm
669 aros_target_strip
670 aros_target_objcopy
671 aros_target_objdump
672 aros_target_cc_path
673 aros_target_cc_includes
674 aros_target_ld
675 aros_target_as
676 aros_target_cpp
677 aros_target_cxx
678 aros_target_cc
679 aros_plain_ar
680 aros_plain_nm
681 aros_target_ranlib
682 aros_target_ar
683 aros_target_suffix
684 aros_target_variant
685 aros_target_cpu
686 aros_target_family
687 aros_target_arch
688 aros_target_bootloader
689 aros_target_iconset
690 aros_target_guitheme
691 aros_tools_dir
692 aros_host_lib_suffix
693 aros_host_exe_suffix
694 aros_host_mkargs
695 aros_host_mkdep
696 aros_host_debug
697 aros_host_ldflags
698 gnu89_inline
699 aros_host_cxxflags
700 aros_host_cflags
701 aros_host_make
702 aros_host_cxx
703 aros_host_cc
704 aros_host_cpp
705 aros_host_cpu
706 aros_host_arch
707 aros_cc_pre
708 aros_amigaos_compliance
709 AROS_PORTSSRCDIR
710 AROS_CROSSTOOLSDIR
711 SRCDIR
712 AROS_BUILDDIR_UNIX
713 AROS_BUILDDIR
714 aros_target_toolchain
715 aros_flavour_uc
716 aros_flavour
717 aros_cpu
718 aros_arch
719 SDL_LIBS
720 SDL_CFLAGS
721 SDL_CONFIG
722 XMKMF
723 aros_cflags_iquote_end
724 aros_cflags_iquote
725 kernel_cflags_iquote_end
726 kernel_cflags_iquote
727 host_cflags_iquote_end
728 host_cflags_iquote
729 aros_target_nostdlib_ldflags
730 aros_target_detach_ldflags
731 aros_target_nix_ldflags
732 aros_target_nostartup_ldflags
733 aros_target_nostdinc_cflags
734 aros_kernel_rescomp
735 orig_target_objdump
736 orig_target_objcopy
737 orig_target_strip
738 orig_target_nm
739 orig_target_ranlib
740 orig_target_ar
741 orig_target_as
742 orig_target_ld
743 orig_target_cxx
744 orig_target_cc
745 orig_target_cpp
746 aros_kernel_objdump
747 aros_kernel_objcopy
748 aros_kernel_strip
749 aros_kernel_nm
750 aros_kernel_ranlib
751 aros_kernel_ar
752 aros_kernel_as
753 aros_kernel_ld
754 aros_kernel_cxx
755 aros_kernel_cc
756 aros_kernel_cpp
758 android_tool
759 CCACHE
760 DISTCC
761 LIBOBJS
762 EGREP
763 GREP
765 TEST
768 pkgpyexecdir
769 pyexecdir
770 pkgpythondir
771 pythondir
772 PYTHON_PLATFORM
773 PYTHON_EXEC_PREFIX
774 PYTHON_PREFIX
775 PYTHON_VERSION
776 PYTHON
777 PATCH
778 CHMOD
780 PPMTOILBM
781 PNGTOPNM
782 FLEX
783 BISON
786 UNIQ
787 SORT
788 TOUCH
789 MKDIR
790 ECHO
794 aros_host_strip
795 aros_host_ranlib
796 aros_host_ar
797 aros_host_automake
798 aros_host_autoheader
799 aros_host_autoconf
800 aros_host_aclocal
801 aros_host_ld
802 MMAKE
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_build_type
865 enable_debug
866 enable_distcc
867 enable_ccache
868 with_kernel_gcc_version
869 with_gcc_version
870 with_optimization
871 with_paranoia
872 enable_target_variant
873 with_xcode
874 with_sdk_version
875 with_sdk
876 with_ndk
877 with_ndk_version
878 enable_amigaos_compliance
879 with_kernel_toolchain_prefix
880 with_elf_toolchain_prefix
881 with_aros_toolchain
882 enable_crosstools
883 with_aros_toolchain_install
884 with_cpu
885 with_fpu
886 with_float
887 with_aros_gcc
888 with_portssources
889 with_bootloader
890 with_iconset
891 with_theme
892 enable_includes
893 with_resolution
894 with_serial_debug
895 enable_palm_debug_hack
896 enable_nesting_supervisor
897 enable_mmu
898 enable_x11_hidd
899 with_x
900 enable_x11_shm
901 enable_x11_vidmode
902 enable_sdl_hidd
903 with_sdl_prefix
904 with_sdl_exec_prefix
905 enable_sdltest
906 enable_dbus
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
917 CXXFLAGS
920 PYTHON
921 XMKMF'
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
972 ac_prev=
973 ac_dashdash=
974 for ac_option
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
993 ac_dashdash=yes ;;
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 bindir=$ac_optarg ;;
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1016 ac_prev=datadir ;;
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1257 -with-* | --with-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1311 *=*)
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317 esac
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 esac
1330 done
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1339 no) ;;
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 esac
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1353 case $ac_val in
1354 */ )
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1357 esac
1358 # Be sure to have absolute directory names.
1359 case $ac_val in
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 esac
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1364 done
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1378 If a cross compiler is detected then cross compile mode will be used" >&2
1379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387 test "$silent" = yes && exec 6>/dev/null
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 as_fn_error $? "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 as_fn_error $? "pwd does not report name of working directory"
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1416 /^X\(\/\/\)$/{
1417 s//\1/
1420 /^X\(\/\).*/{
1421 s//\1/
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1429 else
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439 pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1458 # Report the --help message.
1460 if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464 \`configure' configures this package to adapt to many kinds of systems.
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE. See below for descriptions of some of the useful variables.
1471 Defaults for the options are specified in brackets.
1473 Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking ...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1497 Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517 _ACEOF
1519 cat <<\_ACEOF
1521 X features:
1522 --x-includes=DIR X include files are in DIR
1523 --x-libraries=DIR X library files are in DIR
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1531 if test -n "$ac_init_help"; then
1533 cat <<\_ACEOF
1535 Optional Features:
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-build-type=TYPE
1540 Select the build type. Available types are:
1541 personal, nightly, snapshot, milestone, release. Do
1542 NOT use this option unless you know what you are
1543 doing! (default=personal)
1544 --enable-debug=list Enable different types of debug. Commas or
1545 whitespaces can be used to separate the items in the
1546 list. Available types of debug are: all, none,
1547 messages, stack, mungwall, modules, symbols. If no
1548 list is provided then "all" is assumed.
1549 (default=none)
1550 --enable-distcc Use distcc as a front end to the compiler
1551 (default=no).
1552 --enable-ccache Use ccache as a front end to the compiler
1553 (default=no).
1554 --enable-target-variant=NAME
1555 Enable a specific target variant(default=none)
1556 --enable-amigaos-compliance=VERSION
1557 Enforce userspace AmigaOS compliance to a specific
1558 KickStart version (default=none).
1559 --disable-crosstools Do not build cross-compiler toolchain
1560 --enable-includes=dir Alternative system include directory
1561 --enable-palm-debug-hack
1562 Enable palm debug output hack in palm native
1563 (default=no)
1564 --enable-nesting-supervisor
1565 Enable nesting supervisor support in unix
1566 (default=no)
1567 --disable-mmu Disable MMU support (default=enabled)
1568 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1569 --enable-x11-shm use X11 shared memory (default=auto)
1570 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1571 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1572 --disable-sdltest Do not try to compile and run a test SDL program
1573 --enable-dbus Enable DBUS support via dbus.library (default=no)
1575 Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-kernel-gcc-version=VERSION
1579 Use host gcc-VERSION for building AROS
1580 --with-gcc-version=VERSION
1581 Use host gcc-VERSION for building AROS
1582 --with-optimization=FLAGS
1583 Use optimization flags FLAGS (default=-O2).
1584 --with-paranoia=FLAGS CC flags to enable paranoia
1585 --with-xcode=PATH Specify XCode path for iOS targets
1586 (default=/Developer).
1587 --with-sdk-version=VERSION
1588 Use iOS SDK version VERSION (default=4.1).
1589 --with-sdk=PATH Specify Android SDK path
1590 (default=$default_android_sdk).
1591 --with-ndk=PATH Specify Android NDK path (default=none).
1592 --with-sdk-version=LEVEL
1593 Use Android SDK for API LEVEL (default=12).
1594 --with-ndk-version=LEVEL
1595 Use Android NDK for API LEVEL (default=9).
1596 --with-kernel-toolchain-prefix=...
1597 Specify crosscompile toolchain prefix for kernel
1598 objects
1599 --with-elf-toolchain-prefix=...
1600 Specify crosscompile toolchain prefix to wrap for
1601 AROS objects
1602 --with-aros-toolchain=PREFIX
1603 Specify prebuilt AROS toolchain
1604 --with-aros-toolchain-install=DIR
1605 Where to install or search for cross tools binaries
1606 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1607 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1608 --with-float=<spec> Specify floating point ABI
1609 (default=$gcc_default_float_abi).
1610 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1611 --with-portssources=DIR Where to download sourcecode for external ports
1612 --with-bootloader=NAME Use a specific bootloader
1613 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1614 --with-theme=NAME Use a specific GUI Theme
1615 --with-resolution=XRESxYRESxDEPTH
1616 Default resolution of the initial WorkbenchScreen
1617 --with-serial-debug Enable serial debug output in native (default=no)
1618 --with-x use the X Window System
1619 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1620 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
1632 CPP C preprocessor
1633 PYTHON the Python interpreter
1634 XMKMF Path to xmkmf, Makefile generator for X Window System
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.68
1705 Copyright (C) 2010 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=1
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_cxx_try_compile
1792 # ac_fn_c_try_cpp LINENO
1793 # ----------------------
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_cpp ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_cpp
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if eval \${$3+:} false; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1922 rm -f conftest.err conftest.i conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 esac
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=\$ac_header_compiler"
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=$ac_status
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_run
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$3=yes"
2023 else
2024 eval "$3=no"
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2036 # ----------------------------------------------------
2037 # Tries to find if the field MEMBER exists in type AGGR, after including
2038 # INCLUDES, setting cache variable VAR accordingly.
2039 ac_fn_c_check_member ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2043 $as_echo_n "checking for $2.$3... " >&6; }
2044 if eval \${$4+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static $2 ac_aggr;
2054 if (ac_aggr.$3)
2055 return 0;
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$4=yes"
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static $2 ac_aggr;
2070 if (sizeof ac_aggr.$3)
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$4=yes"
2078 else
2079 eval "$4=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$4
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_member
2092 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2093 # ---------------------------------------------
2094 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2095 # accordingly.
2096 ac_fn_c_check_decl ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 as_decl_name=`echo $2|sed 's/ *(.*//'`
2100 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2102 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 #ifndef $as_decl_name
2113 #ifdef __cplusplus
2114 (void) $as_decl_use;
2115 #else
2116 (void) $as_decl_name;
2117 #endif
2118 #endif
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 eval "$3=yes"
2126 else
2127 eval "$3=no"
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 } # ac_fn_c_check_decl
2138 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2139 # -------------------------------------------
2140 # Tests whether TYPE exists after having included INCLUDES, setting cache
2141 # variable VAR accordingly.
2142 ac_fn_c_check_type ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 eval "$3=no"
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 if (sizeof ($2))
2158 return 0;
2160 return 0;
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 if (sizeof (($2)))
2171 return 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2178 else
2179 eval "$3=yes"
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 eval ac_res=\$$3
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_type
2192 # ac_fn_c_check_func LINENO FUNC VAR
2193 # ----------------------------------
2194 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2195 ac_fn_c_check_func ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2207 #define $2 innocuous_$2
2209 /* System header to define __stub macros and hopefully few prototypes,
2210 which can conflict with char $2 (); below.
2211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2212 <limits.h> exists even on freestanding compilers. */
2214 #ifdef __STDC__
2215 # include <limits.h>
2216 #else
2217 # include <assert.h>
2218 #endif
2220 #undef $2
2222 /* Override any GCC internal prototype to avoid an error.
2223 Use char because int might match the return type of a GCC
2224 builtin and then its argument prototype would still apply. */
2225 #ifdef __cplusplus
2226 extern "C"
2227 #endif
2228 char $2 ();
2229 /* The GNU C library defines this for functions which it implements
2230 to always fail with ENOSYS. Some functions are actually named
2231 something starting with __ and the normal name is an alias. */
2232 #if defined __stub_$2 || defined __stub___$2
2233 choke me
2234 #endif
2237 main ()
2239 return $2 ();
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_link "$LINENO"; then :
2245 eval "$3=yes"
2246 else
2247 eval "$3=no"
2249 rm -f core conftest.err conftest.$ac_objext \
2250 conftest$ac_exeext conftest.$ac_ext
2252 eval ac_res=\$$3
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_func
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by $as_me, which was
2263 generated by GNU Autoconf 2.68. Invocation command line was
2265 $ $0 $@
2267 _ACEOF
2268 exec 5>>config.log
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292 _ASUNAME
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2303 } >&5
2305 cat >&5 <<_ACEOF
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2312 _ACEOF
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2326 for ac_arg
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2355 as_fn_append ac_configure_args " '$ac_arg'"
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2371 echo
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 esac |
2405 sort
2407 echo
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2463 $as_echo "/* confdefs.h */" > confdefs.h
2465 # Predefined preprocessor variables.
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site script $ac_site_file
2521 See \`config.log' for more details" "$LINENO" 5; }
2523 done
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2542 as_fn_append ac_header_list " stdlib.h"
2543 as_fn_append ac_header_list " unistd.h"
2544 as_fn_append ac_header_list " sys/param.h"
2545 # Check that the precious variables saved in the cache have kept the same
2546 # value.
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2554 set,)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,set)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,);;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 esac
2594 done
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 ac_aux_dir=
2615 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2616 if 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/install.sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install.sh -c"
2623 break
2624 elif test -f "$ac_dir/shtool"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/shtool install -c"
2627 break
2629 done
2630 if test -z "$ac_aux_dir"; then
2631 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644 # Check what host we are running on.
2645 # If a target is not suggested, we use this one.
2646 # Note that what we call a target, Autoconf calls a host.
2647 # Make sure we can run config.sub.
2648 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2649 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652 $as_echo_n "checking build system type... " >&6; }
2653 if ${ac_cv_build+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 ac_build_alias=$build_alias
2657 test "x$ac_build_alias" = x &&
2658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659 test "x$ac_build_alias" = x &&
2660 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2661 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666 $as_echo "$ac_cv_build" >&6; }
2667 case $ac_cv_build in
2668 *-*-*) ;;
2669 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if ${ac_cv_host+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2700 case $ac_cv_host in
2701 *-*-*) ;;
2702 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2703 esac
2704 host=$ac_cv_host
2705 ac_save_IFS=$IFS; IFS='-'
2706 set x $ac_cv_host
2707 shift
2708 host_cpu=$1
2709 host_vendor=$2
2710 shift; shift
2711 # Remember, the first character of IFS is used to create $*,
2712 # except with old shells:
2713 host_os=$*
2714 IFS=$ac_save_IFS
2715 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2719 # The AROS target is slightly different to the normal GNU style
2720 # format. We don't have the middle part, and we reverse the order
2721 # of the $(CPU) and $(OS) bits.
2723 # Don't strip the version of the target yet, it might be
2724 # useful on some systems.
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2727 $as_echo_n "checking for AROS style target... " >&6; }
2729 if test "$target" = "NONE" ; then
2730 target=$host_os-$host_cpu
2731 else
2732 if test "$target" = "" ; then
2733 target=$host_os-$host_cpu
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2737 $as_echo "$target" >&6; }
2739 if test "$host_os" = "mingw32" ; then
2740 PWDCMD="pwd -W"
2743 # Don't know where else to put this...
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2745 $as_echo_n "checking building AROS in... " >&6; }
2746 AROS_BUILDDIR=`${PWDCMD-pwd}`
2747 AROS_BUILDDIR_UNIX=${PWD}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2749 $as_echo "$AROS_BUILDDIR" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2752 $as_echo_n "checking AROS source in... " >&6; }
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754 SRCDIR=${srcpwd}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2756 $as_echo "$SRCDIR" >&6; }
2758 # Parse the target field into something useful.
2760 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2761 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2764 # Some debug output, to be removed again.
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2766 $as_echo_n "checking for target system (debug output)... " >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2768 $as_echo "$target_os" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2770 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2772 $as_echo "$target_cpu" >&6; }
2774 aros_default_wbwidth=800
2775 aros_default_wbheight=600
2776 aros_default_wbdepth=4
2779 # The first step is to find the host binaries.
2780 # Check for a compiler.
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2810 IFS=$as_save_IFS
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2825 if test -z "$ac_cv_prog_CC"; then
2826 ac_ct_CC=$CC
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_ac_ct_CC="gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2850 IFS=$as_save_IFS
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857 $as_echo "$ac_ct_CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872 CC=$ac_ct_CC
2874 else
2875 CC="$ac_cv_prog_CC"
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2919 if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 ac_prog_rejected=no
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected=yes
2940 continue
2942 ac_cv_prog_CC="cc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2950 if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy $ac_cv_prog_CC
2953 shift
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2958 shift
2959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in cl.exe
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3016 test -n "$CC" && break
3017 done
3019 if test -z "$CC"; then
3020 ac_ct_CC=$CC
3021 for ac_prog in cl.exe
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_ac_ct_CC="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$ac_ct_CC" && break
3061 done
3063 if test "x$ac_ct_CC" = x; then
3064 CC=""
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 CC=$ac_ct_CC
3079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3104 rm -f conftest.er1 conftest.err
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 done
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3113 main ()
3117 return 0;
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3160 test -f "$ac_file" || continue
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
3178 break;;
3180 break;;
3181 esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185 else
3186 ac_file=''
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3253 main ()
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3259 return 0;
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 $as_echo_n "checking for suffix of object files... " >&6; }
3310 if ${ac_cv_objext+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3321 return 0;
3323 _ACEOF
3324 rm -f conftest.o conftest.obj
3325 if { { ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compile") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 for ac_file in conftest.o conftest.obj conftest.*; do
3337 test -f "$ac_file" || continue;
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 break;;
3342 esac
3343 done
3344 else
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details" "$LINENO" 5; }
3353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356 $as_echo "$ac_cv_objext" >&6; }
3357 OBJEXT=$ac_cv_objext
3358 ac_objext=$OBJEXT
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361 if ${ac_cv_c_compiler_gnu+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3368 main ()
3370 #ifndef __GNUC__
3371 choke me
3372 #endif
3375 return 0;
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_compiler_gnu=yes
3380 else
3381 ac_compiler_gnu=no
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389 if test $ac_compiler_gnu = yes; then
3390 GCC=yes
3391 else
3392 GCC=
3394 ac_test_CFLAGS=${CFLAGS+set}
3395 ac_save_CFLAGS=$CFLAGS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3398 if ${ac_cv_prog_cc_g+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3403 ac_cv_prog_cc_g=no
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3409 main ()
3413 return 0;
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_cv_prog_cc_g=yes
3418 else
3419 CFLAGS=""
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3424 main ()
3428 return 0;
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3433 else
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_g=yes
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458 $as_echo "$ac_cv_prog_cc_g" >&6; }
3459 if test "$ac_test_CFLAGS" = set; then
3460 CFLAGS=$ac_save_CFLAGS
3461 elif test $ac_cv_prog_cc_g = yes; then
3462 if test "$GCC" = yes; then
3463 CFLAGS="-g -O2"
3464 else
3465 CFLAGS="-g"
3467 else
3468 if test "$GCC" = yes; then
3469 CFLAGS="-O2"
3470 else
3471 CFLAGS=
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3476 if ${ac_cv_prog_cc_c89+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 ac_cv_prog_cc_c89=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdarg.h>
3484 #include <stdio.h>
3485 #include <sys/types.h>
3486 #include <sys/stat.h>
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491 char **p;
3492 int i;
3494 return p[i];
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3498 char *s;
3499 va_list v;
3500 va_start (v,p);
3501 s = g (p, va_arg (v,int));
3502 va_end (v);
3503 return s;
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3527 main ()
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 return 0;
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_c89=$ac_arg
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 case $ac_cv_prog_cc_stdc in #(
3572 no) :
3573 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3574 *) :
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3576 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3577 if ${ac_cv_prog_cc_c99+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 ac_cv_prog_cc_c99=no
3581 ac_save_CC=$CC
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #include <stdarg.h>
3585 #include <stdbool.h>
3586 #include <stdlib.h>
3587 #include <wchar.h>
3588 #include <stdio.h>
3590 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3591 #define debug(...) fprintf (stderr, __VA_ARGS__)
3592 #define showlist(...) puts (#__VA_ARGS__)
3593 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3594 static void
3595 test_varargs_macros (void)
3597 int x = 1234;
3598 int y = 5678;
3599 debug ("Flag");
3600 debug ("X = %d\n", x);
3601 showlist (The first, second, and third items.);
3602 report (x>y, "x is %d but y is %d", x, y);
3605 // Check long long types.
3606 #define BIG64 18446744073709551615ull
3607 #define BIG32 4294967295ul
3608 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3609 #if !BIG_OK
3610 your preprocessor is broken;
3611 #endif
3612 #if BIG_OK
3613 #else
3614 your preprocessor is broken;
3615 #endif
3616 static long long int bignum = -9223372036854775807LL;
3617 static unsigned long long int ubignum = BIG64;
3619 struct incomplete_array
3621 int datasize;
3622 double data[];
3625 struct named_init {
3626 int number;
3627 const wchar_t *name;
3628 double average;
3631 typedef const char *ccp;
3633 static inline int
3634 test_restrict (ccp restrict text)
3636 // See if C++-style comments work.
3637 // Iterate through items via the restricted pointer.
3638 // Also check for declarations in for loops.
3639 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3640 continue;
3641 return 0;
3644 // Check varargs and va_copy.
3645 static void
3646 test_varargs (const char *format, ...)
3648 va_list args;
3649 va_start (args, format);
3650 va_list args_copy;
3651 va_copy (args_copy, args);
3653 const char *str;
3654 int number;
3655 float fnumber;
3657 while (*format)
3659 switch (*format++)
3661 case 's': // string
3662 str = va_arg (args_copy, const char *);
3663 break;
3664 case 'd': // int
3665 number = va_arg (args_copy, int);
3666 break;
3667 case 'f': // float
3668 fnumber = va_arg (args_copy, double);
3669 break;
3670 default:
3671 break;
3674 va_end (args_copy);
3675 va_end (args);
3679 main ()
3682 // Check bool.
3683 _Bool success = false;
3685 // Check restrict.
3686 if (test_restrict ("String literal") == 0)
3687 success = true;
3688 char *restrict newvar = "Another string";
3690 // Check varargs.
3691 test_varargs ("s, d' f .", "string", 65, 34.234);
3692 test_varargs_macros ();
3694 // Check flexible array members.
3695 struct incomplete_array *ia =
3696 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3697 ia->datasize = 10;
3698 for (int i = 0; i < ia->datasize; ++i)
3699 ia->data[i] = i * 1.234;
3701 // Check named initializers.
3702 struct named_init ni = {
3703 .number = 34,
3704 .name = L"Test wide string",
3705 .average = 543.34343,
3708 ni.number = 58;
3710 int dynamic_array[ni.number];
3711 dynamic_array[ni.number - 1] = 543;
3713 // work around unused variable warnings
3714 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3715 || dynamic_array[ni.number - 1] != 543);
3718 return 0;
3720 _ACEOF
3721 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3723 CC="$ac_save_CC $ac_arg"
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_c99=$ac_arg
3727 rm -f core conftest.err conftest.$ac_objext
3728 test "x$ac_cv_prog_cc_c99" != "xno" && break
3729 done
3730 rm -f conftest.$ac_ext
3731 CC=$ac_save_CC
3734 # AC_CACHE_VAL
3735 case "x$ac_cv_prog_cc_c99" in
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3738 $as_echo "none needed" >&6; } ;;
3739 xno)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3741 $as_echo "unsupported" >&6; } ;;
3743 CC="$CC $ac_cv_prog_cc_c99"
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3745 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3746 esac
3747 if test "x$ac_cv_prog_cc_c99" != xno; then :
3748 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3751 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752 if ${ac_cv_prog_cc_c89+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_cv_prog_cc_c89=no
3756 ac_save_CC=$CC
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <stdarg.h>
3760 #include <stdio.h>
3761 #include <sys/types.h>
3762 #include <sys/stat.h>
3763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3764 struct buf { int x; };
3765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3766 static char *e (p, i)
3767 char **p;
3768 int i;
3770 return p[i];
3772 static char *f (char * (*g) (char **, int), char **p, ...)
3774 char *s;
3775 va_list v;
3776 va_start (v,p);
3777 s = g (p, va_arg (v,int));
3778 va_end (v);
3779 return s;
3782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3783 function prototypes and stuff, but not '\xHH' hex character constants.
3784 These don't provoke an error unfortunately, instead are silently treated
3785 as 'x'. The following induces an error, until -std is added to get
3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3787 array size at least. It's necessary to write '\x00'==0 to get something
3788 that's true only with -std. */
3789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3792 inside strings and character constants. */
3793 #define FOO(x) 'x'
3794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3796 int test (int i, double x);
3797 struct s1 {int (*f) (int a);};
3798 struct s2 {int (*f) (double a);};
3799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800 int argc;
3801 char **argv;
3803 main ()
3805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3807 return 0;
3809 _ACEOF
3810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3813 CC="$ac_save_CC $ac_arg"
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_c89=$ac_arg
3817 rm -f core conftest.err conftest.$ac_objext
3818 test "x$ac_cv_prog_cc_c89" != "xno" && break
3819 done
3820 rm -f conftest.$ac_ext
3821 CC=$ac_save_CC
3824 # AC_CACHE_VAL
3825 case "x$ac_cv_prog_cc_c89" in
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3828 $as_echo "none needed" >&6; } ;;
3829 xno)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3831 $as_echo "unsupported" >&6; } ;;
3833 CC="$CC $ac_cv_prog_cc_c89"
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3835 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3836 esac
3837 if test "x$ac_cv_prog_cc_c89" != xno; then :
3838 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3839 else
3840 ac_cv_prog_cc_stdc=no
3845 esac
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3847 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3848 if ${ac_cv_prog_cc_stdc+:} false; then :
3849 $as_echo_n "(cached) " >&6
3852 case $ac_cv_prog_cc_stdc in #(
3853 no) :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3855 $as_echo "unsupported" >&6; } ;; #(
3856 '') :
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;; #(
3859 *) :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3861 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3862 esac
3864 ac_ext=cpp
3865 ac_cpp='$CXXCPP $CPPFLAGS'
3866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3869 if test -z "$CXX"; then
3870 if test -n "$CCC"; then
3871 CXX=$CCC
3872 else
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CXX+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CXX"; then
3884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 CXX=$ac_cv_prog_CXX
3904 if test -n "$CXX"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3906 $as_echo "$CXX" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 test -n "$CXX" && break
3914 done
3916 if test -z "$CXX"; then
3917 ac_ct_CXX=$CXX
3918 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -n "$ac_ct_CXX"; then
3928 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CXX="$ac_prog"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3943 IFS=$as_save_IFS
3947 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3948 if test -n "$ac_ct_CXX"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3950 $as_echo "$ac_ct_CXX" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 test -n "$ac_ct_CXX" && break
3958 done
3960 if test "x$ac_ct_CXX" = x; then
3961 CXX="g++"
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967 ac_tool_warned=yes ;;
3968 esac
3969 CXX=$ac_ct_CXX
3975 # Provide some information about the compiler.
3976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3977 set X $ac_compile
3978 ac_compiler=$2
3979 for ac_option in --version -v -V -qversion; do
3980 { { ac_try="$ac_compiler $ac_option >&5"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3988 ac_status=$?
3989 if test -s conftest.err; then
3990 sed '10a\
3991 ... rest of stderr output deleted ...
3992 10q' conftest.err >conftest.er1
3993 cat conftest.er1 >&5
3995 rm -f conftest.er1 conftest.err
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }
3998 done
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4001 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4002 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4009 main ()
4011 #ifndef __GNUC__
4012 choke me
4013 #endif
4016 return 0;
4018 _ACEOF
4019 if ac_fn_cxx_try_compile "$LINENO"; then :
4020 ac_compiler_gnu=yes
4021 else
4022 ac_compiler_gnu=no
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4029 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4030 if test $ac_compiler_gnu = yes; then
4031 GXX=yes
4032 else
4033 GXX=
4035 ac_test_CXXFLAGS=${CXXFLAGS+set}
4036 ac_save_CXXFLAGS=$CXXFLAGS
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4038 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4039 if ${ac_cv_prog_cxx_g+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4043 ac_cxx_werror_flag=yes
4044 ac_cv_prog_cxx_g=no
4045 CXXFLAGS="-g"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 main ()
4054 return 0;
4056 _ACEOF
4057 if ac_fn_cxx_try_compile "$LINENO"; then :
4058 ac_cv_prog_cxx_g=yes
4059 else
4060 CXXFLAGS=""
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4065 main ()
4069 return 0;
4071 _ACEOF
4072 if ac_fn_cxx_try_compile "$LINENO"; then :
4074 else
4075 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4076 CXXFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4089 ac_cv_prog_cxx_g=yes
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4099 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4100 if test "$ac_test_CXXFLAGS" = set; then
4101 CXXFLAGS=$ac_save_CXXFLAGS
4102 elif test $ac_cv_prog_cxx_g = yes; then
4103 if test "$GXX" = yes; then
4104 CXXFLAGS="-g -O2"
4105 else
4106 CXXFLAGS="-g"
4108 else
4109 if test "$GXX" = yes; then
4110 CXXFLAGS="-O2"
4111 else
4112 CXXFLAGS=
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4127 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4128 # On Suns, sometimes $CPP names a directory.
4129 if test -n "$CPP" && test -d "$CPP"; then
4130 CPP=
4132 if test -z "$CPP"; then
4133 if ${ac_cv_prog_CPP+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 # Double quotes because CPP needs to be expanded
4137 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4139 ac_preproc_ok=false
4140 for ac_c_preproc_warn_flag in '' yes
4142 # Use a header file that comes with gcc, so configuring glibc
4143 # with a fresh cross-compiler works.
4144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 # <limits.h> exists even on freestanding compilers.
4146 # On the NeXT, cc -E runs the code through the compiler's parser,
4147 # not just through cpp. "Syntax error" is here to catch this case.
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #ifdef __STDC__
4151 # include <limits.h>
4152 #else
4153 # include <assert.h>
4154 #endif
4155 Syntax error
4156 _ACEOF
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4159 else
4160 # Broken: fails on valid input.
4161 continue
4163 rm -f conftest.err conftest.i conftest.$ac_ext
4165 # OK, works on sane cases. Now check whether nonexistent headers
4166 # can be detected and how.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <ac_nonexistent.h>
4170 _ACEOF
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4172 # Broken: success on invalid input.
4173 continue
4174 else
4175 # Passes both tests.
4176 ac_preproc_ok=:
4177 break
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4181 done
4182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183 rm -f conftest.i conftest.err conftest.$ac_ext
4184 if $ac_preproc_ok; then :
4185 break
4188 done
4189 ac_cv_prog_CPP=$CPP
4192 CPP=$ac_cv_prog_CPP
4193 else
4194 ac_cv_prog_CPP=$CPP
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4197 $as_echo "$CPP" >&6; }
4198 ac_preproc_ok=false
4199 for ac_c_preproc_warn_flag in '' yes
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 # <limits.h> exists even on freestanding compilers.
4205 # On the NeXT, cc -E runs the code through the compiler's parser,
4206 # not just through cpp. "Syntax error" is here to catch this case.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214 Syntax error
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4218 else
4219 # Broken: fails on valid input.
4220 continue
4222 rm -f conftest.err conftest.i conftest.$ac_ext
4224 # OK, works on sane cases. Now check whether nonexistent headers
4225 # can be detected and how.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4229 _ACEOF
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4231 # Broken: success on invalid input.
4232 continue
4233 else
4234 # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4238 rm -f conftest.err conftest.i conftest.$ac_ext
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.i conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then :
4245 else
4246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4249 See \`config.log' for more details" "$LINENO" 5; }
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 # Check for a compatible awk
4260 for ac_prog in gawk nawk
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_AWK+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$AWK"; then
4270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_AWK="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 AWK=$ac_cv_prog_AWK
4290 if test -n "$AWK"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4292 $as_echo "$AWK" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$AWK" && break
4300 done
4302 if test "$AWK" = ""; then
4303 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4305 # Extract the first word of "mmake", so it can be a program name with args.
4306 set dummy mmake; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_MMAKE+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$MMAKE"; then
4313 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_MMAKE="mmake "
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 MMAKE=$ac_cv_prog_MMAKE
4333 if test -n "$MMAKE"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4335 $as_echo "$MMAKE" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4343 # Perform some default variable assignments. Note all of these will be
4344 # Regenerated from the script, so there is no need to cache them.
4346 aros_host_cpp="$CPP"
4347 aros_host_cc="$CC"
4348 aros_host_cxx="$CXX"
4349 if test "$GCC" = "yes"; then
4350 aros_gcc_ld=`$CC -print-prog-name=ld`
4351 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4352 set dummy `basename $aros_gcc_ld`; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_aros_host_ld+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 case $aros_host_ld in
4359 [\\/]* | ?:[\\/]*)
4360 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in `dirname $aros_gcc_ld`
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4379 esac
4381 aros_host_ld=$ac_cv_path_aros_host_ld
4382 if test -n "$aros_host_ld"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4384 $as_echo "$aros_host_ld" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 if test "$aros_host_ld" = ""; then
4393 # Extract the first word of "ld", so it can be a program name with args.
4394 set dummy ld; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_path_aros_host_ld+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 case $aros_host_ld in
4401 [\\/]* | ?:[\\/]*)
4402 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4421 esac
4423 aros_host_ld=$ac_cv_path_aros_host_ld
4424 if test -n "$aros_host_ld"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4426 $as_echo "$aros_host_ld" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4434 if test "$aros_host_ld" = ""; then
4435 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4437 aros_host_make="make"
4438 aros_host_cflags=$CFLAGS
4439 aros_host_cxxflags=$CXXFLAGS
4440 aros_host_ldflags=$LDFLAGS
4441 aros_host_debug="-g -O0"
4442 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4443 aros_host_mkargs="--no-print-directory"
4444 aros_host_exe_suffix="$EXEEXT"
4445 aros_host_lib_suffix=""
4447 # Ignore all compliance, AROS ROMs = 0
4448 # KickStart v1.0 = 30
4449 # KickStart v1.3 = 34
4450 # KickStart v2.0 = 37
4451 # KickStart v3.0 = 39
4452 # KickStart v3.1 = 40
4453 # AmigaOS v3.5 = 44
4454 aros_amigaos_compliance=0
4456 for ac_prog in aclocal aclocal19 aclocal-1.9
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$aros_host_aclocal"; then
4466 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_aros_host_aclocal="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4486 if test -n "$aros_host_aclocal"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4488 $as_echo "$aros_host_aclocal" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$aros_host_aclocal" && break
4496 done
4498 for ac_prog in autoconf autoconf259 autoconf253
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test -n "$aros_host_autoconf"; then
4508 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_aros_host_autoconf="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4521 done
4522 done
4523 IFS=$as_save_IFS
4527 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4528 if test -n "$aros_host_autoconf"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4530 $as_echo "$aros_host_autoconf" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$aros_host_autoconf" && break
4538 done
4540 for ac_prog in autoheader autoheader259 autoheader253
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543 set dummy $ac_prog; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -n "$aros_host_autoheader"; then
4550 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_aros_host_autoheader="$ac_prog"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4565 IFS=$as_save_IFS
4569 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4570 if test -n "$aros_host_autoheader"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4572 $as_echo "$aros_host_autoheader" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4579 test -n "$aros_host_autoheader" && break
4580 done
4582 for ac_prog in automake automake19 automake-1.9
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_aros_host_automake+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$aros_host_automake"; then
4592 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_aros_host_automake="$ac_prog"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4607 IFS=$as_save_IFS
4611 aros_host_automake=$ac_cv_prog_aros_host_automake
4612 if test -n "$aros_host_automake"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4614 $as_echo "$aros_host_automake" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4621 test -n "$aros_host_automake" && break
4622 done
4625 if test "$aros_host_aclocal" = ""; then
4626 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4628 if test "$aros_host_automake" = ""; then
4629 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4632 case "$aros_host_cc" in
4633 *gcc*)
4634 aros_host_cc_pipe="-pipe"
4636 icc)
4637 aros_host_cc_pipe=""
4640 aros_host_cc_pipe=""
4642 esac
4644 aros_kernel_cc_includes=""
4645 aros_target_cc_includes=""
4646 host_cc_elf=yes
4648 # ----------------------------------------------------------------------------------------
4649 # Host-specific defaults
4651 # This is the main host configuration section. It is where the host
4652 # can change the values of any variables it needs to change. We do
4653 # not look at anything that compiles to the target yet, we'll get
4654 # to that later.
4656 case "$host_os" in
4657 aros*)
4658 aros_host_arch="aros"
4659 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4660 case "$host_cpu" in
4661 *i?86*)
4662 aros_host_cpu="i386"
4664 *x86_64*)
4665 aros_host_cpu="x86_64"
4667 *powerpc*)
4668 aros_host_cpu="ppc"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4672 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4673 aros_host_cpu="$host_cpu"
4675 esac
4678 linux*)
4679 aros_host_arch="linux"
4680 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4681 android_build_os="linux-x86"
4682 android_tool="android"
4683 default_android_sdk="/opt/android-sdk-linux_x86"
4684 case "$host_cpu" in
4685 *i?86*)
4686 aros_host_cpu="i386"
4688 *x86_64*)
4689 aros_host_cpu="x86_64"
4691 *m68k*)
4692 aros_host_cpu="m68k"
4694 *powerpc*)
4695 aros_host_cpu="ppc"
4697 *arm*)
4698 aros_host_cpu="arm"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4702 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4703 aros_host_cpu="$host_cpu"
4705 esac
4708 freebsd*)
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4710 aros_host_make="gmake"
4711 aros_host_arch="freebsd"
4712 aros_host_cpu="i386"
4714 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4716 case $host_os in
4717 freebsd[234]*)
4718 aros_object_format="elf_i386"
4722 aros_object_format="elf_i386_fbsd"
4724 esac
4728 darwin*)
4729 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4730 aros_host_arch="darwin"
4731 host_cc_elf=no
4732 android_build_os="darwin-x86"
4733 android_tool="android"
4734 default_android_sdk="/android-sdk-mac_x86"
4735 case "$host_cpu" in
4736 *i?86*)
4737 aros_host_cpu="i386"
4739 *x86_64*)
4740 aros_host_cpu="x86_64"
4742 *powerpc*)
4743 aros_host_cpu="ppc"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4747 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4748 aros_host_cpu="$host_cpu"
4750 esac
4752 aros_host_ldflags="$aros_host_ldflags -liconv"
4756 dragonfly*)
4757 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4758 aros_host_make="gmake"
4759 aros_host_arch="dragonfly"
4760 case $host_cpu in
4761 *i?86*)
4762 aros_host_cpu="i386"
4764 *amd64*)
4765 aros_host_cpu="x86_64"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4769 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4770 aros_host_cpu="$host_cpu"
4772 esac
4775 netbsd*)
4776 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4777 aros_host_make="gmake"
4778 aros_host_arch="netbsd"
4779 case "$host_cpu" in
4780 *i?86*)
4781 aros_host_cpu="i386"
4783 *m68k*)
4784 aros_host_cpu="m68k"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4789 aros_host_cpu="$host_cpu"
4791 esac
4792 aros_host_lib_suffix=".0.0"
4795 openbsd*)
4796 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4797 aros_host_make="gmake"
4798 aros_host_arch="openbsd"
4799 case "$host_cpu" in
4800 *i?86*)
4801 aros_host_cpu="i386"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4805 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4806 aros_host_cpu="$host_cpu"
4808 esac
4811 solaris*)
4812 aros_host_arch="solaris"
4813 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4814 case "$host_cpu" in
4815 *i?86*)
4816 aros_host_cpu="i386"
4818 *sparc*)
4819 aros_host_cpu="sparc"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4823 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4824 aros_host_cpu="$host_cpu"
4826 esac
4829 morphos*)
4830 aros_host_arch="morphos"
4831 aros_host_cpu="ppc"
4832 host_cc_elf=no
4835 amiga*)
4836 aros_host_arch="amiga"
4837 host_cc_elf=no
4838 SORT="/gg/bin/sort"
4839 TEST="/gg/bin/test"
4840 UNIQ="/gg/bin/uniq"
4841 FOR="for"
4842 TOUCH="/gg/bin/touch"
4843 case "$host_cpu" in
4844 *m68k*)
4845 aros_host_cpu="m68k"
4847 *powerpc*)
4848 aros_host_cpu="ppc"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4852 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4853 aros_host_cpu="$host_cpu"
4855 esac
4858 cygwin*)
4859 aros_host_arch="cygwin"
4860 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4861 host_cc_elf=no
4862 android_build_os="windows"
4863 android_tool="android.bat"
4864 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4866 case "$host_cpu" in
4867 *i?86*)
4868 aros_host_cpu="i386"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4872 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4873 aros_host_cpu="$host_cpu"
4875 esac
4878 mingw32*)
4879 aros_host_arch="mingw32"
4880 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4881 host_cc_elf=no
4882 android_build_os="windows"
4883 android_tool="android.bat"
4884 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4886 case "$host_cpu" in
4887 *i?86*)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4890 $as_echo_n "checking for Windows native gcc target... " >&6; }
4891 host_cpu=`gcc -dumpmachine`
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4893 $as_echo "$host_cpu" >&6; }
4896 esac
4898 case "$host_cpu" in
4899 *i?86*)
4900 aros_host_cpu="i386"
4903 mingw32*)
4904 aros_host_cpu="i386"
4907 *x86_64*)
4908 aros_host_cpu="x86_64"
4909 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4914 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4915 aros_host_cpu="$host_cpu"
4917 esac
4920 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4922 esac
4924 # Extract the first word of "ar", so it can be a program name with args.
4925 set dummy ar; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_aros_host_ar+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$aros_host_ar"; then
4932 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_aros_host_ar="ar cr"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 aros_host_ar=$ac_cv_prog_aros_host_ar
4952 if test -n "$aros_host_ar"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4954 $as_echo "$aros_host_ar" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 if test "$aros_host_ar" = ""; then
4962 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4964 # Extract the first word of "ranlib", so it can be a program name with args.
4965 set dummy ranlib; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$aros_host_ranlib"; then
4972 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_aros_host_ranlib="ranlib "
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4985 done
4986 done
4987 IFS=$as_save_IFS
4991 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4992 if test -n "$aros_host_ranlib"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4994 $as_echo "$aros_host_ranlib" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 if test "$aros_host_ranlib" = ""; then
5002 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5004 # Extract the first word of "strip", so it can be a program name with args.
5005 set dummy strip; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_aros_host_strip+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$aros_host_strip"; then
5012 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_aros_host_strip="strip "
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 aros_host_strip=$ac_cv_prog_aros_host_strip
5032 if test -n "$aros_host_strip"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5034 $as_echo "$aros_host_strip" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 if test "$aros_host_strip" = ""; then
5042 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "rm", so it can be a program name with args.
5046 set dummy rm; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_RM+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$RM"; then
5053 ac_cv_prog_RM="$RM" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_RM="rm -rf"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 RM=$ac_cv_prog_RM
5073 if test -n "$RM"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5075 $as_echo "$RM" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 if test "$RM" = ""; then
5083 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5085 # Extract the first word of "cp", so it can be a program name with args.
5086 set dummy cp; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_CP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$CP"; then
5093 ac_cv_prog_CP="$CP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_CP="cp "
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 CP=$ac_cv_prog_CP
5113 if test -n "$CP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5115 $as_echo "$CP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 if test "$CP" = ""; then
5123 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5125 # Extract the first word of "mv", so it can be a program name with args.
5126 set dummy mv; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_MV+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$MV"; then
5133 ac_cv_prog_MV="$MV" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_MV="mv "
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 MV=$ac_cv_prog_MV
5153 if test -n "$MV"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5155 $as_echo "$MV" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 if test "$MV" = ""; then
5163 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5165 # Extract the first word of "echo", so it can be a program name with args.
5166 set dummy echo; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_ECHO+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$ECHO"; then
5173 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ECHO="echo "
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 ECHO=$ac_cv_prog_ECHO
5193 if test -n "$ECHO"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5195 $as_echo "$ECHO" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 if test "$ECHO" = ""; then
5203 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5205 # Extract the first word of "mkdir", so it can be a program name with args.
5206 set dummy mkdir; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_MKDIR+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$MKDIR"; then
5213 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_MKDIR="mkdir -p"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 MKDIR=$ac_cv_prog_MKDIR
5233 if test -n "$MKDIR"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5235 $as_echo "$MKDIR" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5242 if test "$MKDIR" = ""; then
5243 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5245 # Extract the first word of "touch", so it can be a program name with args.
5246 set dummy touch; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_TOUCH+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$TOUCH"; then
5253 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_TOUCH="touch "
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 TOUCH=$ac_cv_prog_TOUCH
5273 if test -n "$TOUCH"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5275 $as_echo "$TOUCH" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 if test "$TOUCH" = ""; then
5283 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5285 # Extract the first word of "sort", so it can be a program name with args.
5286 set dummy sort; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_SORT+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$SORT"; then
5293 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_SORT="sort "
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5312 SORT=$ac_cv_prog_SORT
5313 if test -n "$SORT"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5315 $as_echo "$SORT" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 if test "$SORT" = ""; then
5323 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5325 # Extract the first word of "uniq", so it can be a program name with args.
5326 set dummy uniq; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_UNIQ+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$UNIQ"; then
5333 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_UNIQ="uniq "
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 UNIQ=$ac_cv_prog_UNIQ
5353 if test -n "$UNIQ"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5355 $as_echo "$UNIQ" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 if test "$UNIQ" = ""; then
5363 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5365 # Extract the first word of "true", so it can be a program name with args.
5366 set dummy true; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_NOP+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$NOP"; then
5373 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_NOP="true "
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 NOP=$ac_cv_prog_NOP
5393 if test -n "$NOP"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5395 $as_echo "$NOP" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 if test "$NOP" = ""; then
5403 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5405 # Extract the first word of "cat", so it can be a program name with args.
5406 set dummy cat; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_CAT+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$CAT"; then
5413 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_CAT="cat "
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5432 CAT=$ac_cv_prog_CAT
5433 if test -n "$CAT"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5435 $as_echo "$CAT" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5442 if test "$CAT" = ""; then
5443 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5445 # Extract the first word of "bison", so it can be a program name with args.
5446 set dummy bison; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_BISON+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$BISON"; then
5453 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_BISON="bison "
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5466 done
5467 done
5468 IFS=$as_save_IFS
5472 BISON=$ac_cv_prog_BISON
5473 if test -n "$BISON"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5475 $as_echo "$BISON" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5482 if test "$BISON" = ""; then
5483 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5485 # Extract the first word of "flex", so it can be a program name with args.
5486 set dummy flex; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_FLEX+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$FLEX"; then
5493 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_FLEX="flex "
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5506 done
5507 done
5508 IFS=$as_save_IFS
5512 FLEX=$ac_cv_prog_FLEX
5513 if test -n "$FLEX"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5515 $as_echo "$FLEX" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5522 if test "$FLEX" = ""; then
5523 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5525 # Extract the first word of "pngtopnm", so it can be a program name with args.
5526 set dummy pngtopnm; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$PNGTOPNM"; then
5533 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_prog_PNGTOPNM="pngtopnm "
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5546 done
5547 done
5548 IFS=$as_save_IFS
5552 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5553 if test -n "$PNGTOPNM"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5555 $as_echo "$PNGTOPNM" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 if test "$PNGTOPNM" = ""; then
5563 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5565 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5566 set dummy ppmtoilbm; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if test -n "$PPMTOILBM"; then
5573 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5586 done
5587 done
5588 IFS=$as_save_IFS
5592 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5593 if test -n "$PPMTOILBM"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5595 $as_echo "$PPMTOILBM" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5602 if test "$PPMTOILBM" = ""; then
5603 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5605 # Extract the first word of "sed", so it can be a program name with args.
5606 set dummy sed; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_SED+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$SED"; then
5613 ac_cv_prog_SED="$SED" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_SED="sed "
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5626 done
5627 done
5628 IFS=$as_save_IFS
5632 SED=$ac_cv_prog_SED
5633 if test -n "$SED"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5635 $as_echo "$SED" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5642 if test "$SED" = ""; then
5643 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5645 # Extract the first word of "chmod", so it can be a program name with args.
5646 set dummy chmod; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_CHMOD+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$CHMOD"; then
5653 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_CHMOD="chmod "
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5666 done
5667 done
5668 IFS=$as_save_IFS
5672 CHMOD=$ac_cv_prog_CHMOD
5673 if test -n "$CHMOD"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5675 $as_echo "$CHMOD" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5682 if test "$CHMOD" = ""; then
5683 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5685 # Extract the first word of "patch", so it can be a program name with args.
5686 set dummy patch; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_PATCH+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test -n "$PATCH"; then
5693 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_PATCH="patch "
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5708 IFS=$as_save_IFS
5712 PATCH=$ac_cv_prog_PATCH
5713 if test -n "$PATCH"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5715 $as_echo "$PATCH" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5722 if test "$PATCH" = ""; then
5723 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5732 if test -n "$PYTHON"; then
5733 # If the user set $PYTHON, use it and don't search something else.
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5735 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5736 prog="import sys
5737 # split strings by '.' and convert to numeric. Append some zeros
5738 # because we need at least 4 digits for the hex conversion.
5739 # map returns an iterator in Python 3.0 and a list in 2.x
5740 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5741 minverhex = 0
5742 # xrange is not present in Python 3.0 and range returns an iterator
5743 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5744 sys.exit(sys.hexversion < minverhex)"
5745 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5746 ($PYTHON -c "$prog") >&5 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; then :
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 $as_echo "yes" >&6; }
5752 else
5753 as_fn_error $? "too old" "$LINENO" 5
5755 am_display_PYTHON=$PYTHON
5756 else
5757 # Otherwise, try each interpreter until we find one that satisfies
5758 # VERSION.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5760 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5761 if ${am_cv_pathless_PYTHON+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5765 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
5766 test "$am_cv_pathless_PYTHON" = none && break
5767 prog="import sys
5768 # split strings by '.' and convert to numeric. Append some zeros
5769 # because we need at least 4 digits for the hex conversion.
5770 # map returns an iterator in Python 3.0 and a list in 2.x
5771 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5772 minverhex = 0
5773 # xrange is not present in Python 3.0 and range returns an iterator
5774 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5775 sys.exit(sys.hexversion < minverhex)"
5776 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5777 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; then :
5781 break
5783 done
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5786 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5787 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5788 if test "$am_cv_pathless_PYTHON" = none; then
5789 PYTHON=:
5790 else
5791 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5792 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_PYTHON+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 case $PYTHON in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5819 esac
5821 PYTHON=$ac_cv_path_PYTHON
5822 if test -n "$PYTHON"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5824 $as_echo "$PYTHON" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5832 am_display_PYTHON=$am_cv_pathless_PYTHON
5836 if test "$PYTHON" = :; then
5837 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5838 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5842 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5843 if ${am_cv_python_version+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5849 $as_echo "$am_cv_python_version" >&6; }
5850 PYTHON_VERSION=$am_cv_python_version
5854 PYTHON_PREFIX='${prefix}'
5856 PYTHON_EXEC_PREFIX='${exec_prefix}'
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5861 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5862 if ${am_cv_python_platform+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5868 $as_echo "$am_cv_python_platform" >&6; }
5869 PYTHON_PLATFORM=$am_cv_python_platform
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5875 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5876 if ${am_cv_python_pythondir+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test "x$prefix" = xNONE
5880 then
5881 am_py_prefix=$ac_default_prefix
5882 else
5883 am_py_prefix=$prefix
5885 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`
5886 case $am_cv_python_pythondir in
5887 $am_py_prefix*)
5888 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5889 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5892 case $am_py_prefix in
5893 /usr|/System*) ;;
5895 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5897 esac
5899 esac
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5903 $as_echo "$am_cv_python_pythondir" >&6; }
5904 pythondir=$am_cv_python_pythondir
5908 pkgpythondir=\${pythondir}/$PACKAGE
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5912 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5913 if ${am_cv_python_pyexecdir+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test "x$exec_prefix" = xNONE
5917 then
5918 am_py_exec_prefix=$am_py_prefix
5919 else
5920 am_py_exec_prefix=$exec_prefix
5922 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`
5923 case $am_cv_python_pyexecdir in
5924 $am_py_exec_prefix*)
5925 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5926 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5929 case $am_py_exec_prefix in
5930 /usr|/System*) ;;
5932 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5934 esac
5936 esac
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5940 $as_echo "$am_cv_python_pyexecdir" >&6; }
5941 pyexecdir=$am_cv_python_pyexecdir
5945 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5955 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5956 if ${ac_cv_lib_png_png_read_png+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 ac_check_lib_save_LIBS=$LIBS
5960 LIBS="-lpng $LIBS"
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 char png_read_png ();
5972 main ()
5974 return png_read_png ();
5976 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 ac_cv_lib_png_png_read_png=yes
5981 else
5982 ac_cv_lib_png_png_read_png=no
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5986 LIBS=$ac_check_lib_save_LIBS
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5989 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5990 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE_LIBPNG 1
5993 _ACEOF
5995 LIBS="-lpng $LIBS"
5999 if test "$ac_cv_lib_png_png_read_png" = ""; then
6000 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6003 FOR=for
6005 IF=if
6007 TEST=test
6009 CMP=cmp
6013 # Check for some includes for the X11 HIDD and the kernel
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6016 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6017 if ${ac_cv_path_GREP+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -z "$GREP"; then
6021 ac_path_GREP_found=false
6022 # Loop through the user's path and test for each of PROGNAME-LIST
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_prog in grep ggrep; do
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6031 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6032 # Check for GNU ac_path_GREP and select it if it is found.
6033 # Check for GNU $ac_path_GREP
6034 case `"$ac_path_GREP" --version 2>&1` in
6035 *GNU*)
6036 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6038 ac_count=0
6039 $as_echo_n 0123456789 >"conftest.in"
6040 while :
6042 cat "conftest.in" "conftest.in" >"conftest.tmp"
6043 mv "conftest.tmp" "conftest.in"
6044 cp "conftest.in" "conftest.nl"
6045 $as_echo 'GREP' >> "conftest.nl"
6046 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6048 as_fn_arith $ac_count + 1 && ac_count=$as_val
6049 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6050 # Best one so far, save it but keep looking for a better one
6051 ac_cv_path_GREP="$ac_path_GREP"
6052 ac_path_GREP_max=$ac_count
6054 # 10*(2^10) chars as input seems more than enough
6055 test $ac_count -gt 10 && break
6056 done
6057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6058 esac
6060 $ac_path_GREP_found && break 3
6061 done
6062 done
6063 done
6064 IFS=$as_save_IFS
6065 if test -z "$ac_cv_path_GREP"; then
6066 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6068 else
6069 ac_cv_path_GREP=$GREP
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6074 $as_echo "$ac_cv_path_GREP" >&6; }
6075 GREP="$ac_cv_path_GREP"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6079 $as_echo_n "checking for egrep... " >&6; }
6080 if ${ac_cv_path_EGREP+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6084 then ac_cv_path_EGREP="$GREP -E"
6085 else
6086 if test -z "$EGREP"; then
6087 ac_path_EGREP_found=false
6088 # Loop through the user's path and test for each of PROGNAME-LIST
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_prog in egrep; do
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6097 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6098 # Check for GNU ac_path_EGREP and select it if it is found.
6099 # Check for GNU $ac_path_EGREP
6100 case `"$ac_path_EGREP" --version 2>&1` in
6101 *GNU*)
6102 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6104 ac_count=0
6105 $as_echo_n 0123456789 >"conftest.in"
6106 while :
6108 cat "conftest.in" "conftest.in" >"conftest.tmp"
6109 mv "conftest.tmp" "conftest.in"
6110 cp "conftest.in" "conftest.nl"
6111 $as_echo 'EGREP' >> "conftest.nl"
6112 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114 as_fn_arith $ac_count + 1 && ac_count=$as_val
6115 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6116 # Best one so far, save it but keep looking for a better one
6117 ac_cv_path_EGREP="$ac_path_EGREP"
6118 ac_path_EGREP_max=$ac_count
6120 # 10*(2^10) chars as input seems more than enough
6121 test $ac_count -gt 10 && break
6122 done
6123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6124 esac
6126 $ac_path_EGREP_found && break 3
6127 done
6128 done
6129 done
6130 IFS=$as_save_IFS
6131 if test -z "$ac_cv_path_EGREP"; then
6132 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6134 else
6135 ac_cv_path_EGREP=$EGREP
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6141 $as_echo "$ac_cv_path_EGREP" >&6; }
6142 EGREP="$ac_cv_path_EGREP"
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6146 $as_echo_n "checking for ANSI C header files... " >&6; }
6147 if ${ac_cv_header_stdc+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #include <stdlib.h>
6153 #include <stdarg.h>
6154 #include <string.h>
6155 #include <float.h>
6158 main ()
6162 return 0;
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166 ac_cv_header_stdc=yes
6167 else
6168 ac_cv_header_stdc=no
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 if test $ac_cv_header_stdc = yes; then
6173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 #include <string.h>
6178 _ACEOF
6179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6180 $EGREP "memchr" >/dev/null 2>&1; then :
6182 else
6183 ac_cv_header_stdc=no
6185 rm -f conftest*
6189 if test $ac_cv_header_stdc = yes; then
6190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <stdlib.h>
6195 _ACEOF
6196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6197 $EGREP "free" >/dev/null 2>&1; then :
6199 else
6200 ac_cv_header_stdc=no
6202 rm -f conftest*
6206 if test $ac_cv_header_stdc = yes; then
6207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6208 if test "$cross_compiling" = yes; then :
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <ctype.h>
6214 #include <stdlib.h>
6215 #if ((' ' & 0x0FF) == 0x020)
6216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6218 #else
6219 # define ISLOWER(c) \
6220 (('a' <= (c) && (c) <= 'i') \
6221 || ('j' <= (c) && (c) <= 'r') \
6222 || ('s' <= (c) && (c) <= 'z'))
6223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6224 #endif
6226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6228 main ()
6230 int i;
6231 for (i = 0; i < 256; i++)
6232 if (XOR (islower (i), ISLOWER (i))
6233 || toupper (i) != TOUPPER (i))
6234 return 2;
6235 return 0;
6237 _ACEOF
6238 if ac_fn_c_try_run "$LINENO"; then :
6240 else
6241 ac_cv_header_stdc=no
6243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6244 conftest.$ac_objext conftest.beam conftest.$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6250 $as_echo "$ac_cv_header_stdc" >&6; }
6251 if test $ac_cv_header_stdc = yes; then
6253 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6259 inttypes.h stdint.h unistd.h
6260 do :
6261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6262 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6265 cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6271 done
6274 for ac_header in sys/ipc.h sys/shm.h \
6275 sys/mmap.h sys/mman.h sysexits.h \
6276 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6278 do :
6279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6282 cat >>confdefs.h <<_ACEOF
6283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6284 _ACEOF
6288 done
6291 for ac_header in sys/mount.h
6292 do :
6293 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6295 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6296 cat >>confdefs.h <<_ACEOF
6297 #define HAVE_SYS_MOUNT_H 1
6298 _ACEOF
6302 done
6305 ac_header_dirent=no
6306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6307 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6309 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6310 if eval \${$as_ac_Header+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <sys/types.h>
6316 #include <$ac_hdr>
6319 main ()
6321 if ((DIR *) 0)
6322 return 0;
6324 return 0;
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 eval "$as_ac_Header=yes"
6329 else
6330 eval "$as_ac_Header=no"
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 eval ac_res=\$$as_ac_Header
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6336 $as_echo "$ac_res" >&6; }
6337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6338 cat >>confdefs.h <<_ACEOF
6339 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6340 _ACEOF
6342 ac_header_dirent=$ac_hdr; break
6345 done
6346 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6347 if test $ac_header_dirent = dirent.h; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6349 $as_echo_n "checking for library containing opendir... " >&6; }
6350 if ${ac_cv_search_opendir+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 ac_func_search_save_LIBS=$LIBS
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6357 /* Override any GCC internal prototype to avoid an error.
6358 Use char because int might match the return type of a GCC
6359 builtin and then its argument prototype would still apply. */
6360 #ifdef __cplusplus
6361 extern "C"
6362 #endif
6363 char opendir ();
6365 main ()
6367 return opendir ();
6369 return 0;
6371 _ACEOF
6372 for ac_lib in '' dir; do
6373 if test -z "$ac_lib"; then
6374 ac_res="none required"
6375 else
6376 ac_res=-l$ac_lib
6377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6379 if ac_fn_c_try_link "$LINENO"; then :
6380 ac_cv_search_opendir=$ac_res
6382 rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext
6384 if ${ac_cv_search_opendir+:} false; then :
6385 break
6387 done
6388 if ${ac_cv_search_opendir+:} false; then :
6390 else
6391 ac_cv_search_opendir=no
6393 rm conftest.$ac_ext
6394 LIBS=$ac_func_search_save_LIBS
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6397 $as_echo "$ac_cv_search_opendir" >&6; }
6398 ac_res=$ac_cv_search_opendir
6399 if test "$ac_res" != no; then :
6400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6406 $as_echo_n "checking for library containing opendir... " >&6; }
6407 if ${ac_cv_search_opendir+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 ac_func_search_save_LIBS=$LIBS
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 char opendir ();
6422 main ()
6424 return opendir ();
6426 return 0;
6428 _ACEOF
6429 for ac_lib in '' x; do
6430 if test -z "$ac_lib"; then
6431 ac_res="none required"
6432 else
6433 ac_res=-l$ac_lib
6434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6436 if ac_fn_c_try_link "$LINENO"; then :
6437 ac_cv_search_opendir=$ac_res
6439 rm -f core conftest.err conftest.$ac_objext \
6440 conftest$ac_exeext
6441 if ${ac_cv_search_opendir+:} false; then :
6442 break
6444 done
6445 if ${ac_cv_search_opendir+:} false; then :
6447 else
6448 ac_cv_search_opendir=no
6450 rm conftest.$ac_ext
6451 LIBS=$ac_func_search_save_LIBS
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6454 $as_echo "$ac_cv_search_opendir" >&6; }
6455 ac_res=$ac_cv_search_opendir
6456 if test "$ac_res" != no; then :
6457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6464 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6465 if ${ac_cv_header_stat_broken+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 #include <sys/types.h>
6471 #include <sys/stat.h>
6473 #if defined S_ISBLK && defined S_IFDIR
6474 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6475 #endif
6477 #if defined S_ISBLK && defined S_IFCHR
6478 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6479 #endif
6481 #if defined S_ISLNK && defined S_IFREG
6482 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6483 #endif
6485 #if defined S_ISSOCK && defined S_IFREG
6486 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6487 #endif
6489 _ACEOF
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 ac_cv_header_stat_broken=no
6492 else
6493 ac_cv_header_stat_broken=yes
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6498 $as_echo "$ac_cv_header_stat_broken" >&6; }
6499 if test $ac_cv_header_stat_broken = yes; then
6501 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6506 $as_echo_n "checking for ANSI C header files... " >&6; }
6507 if ${ac_cv_header_stdc+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <stdlib.h>
6513 #include <stdarg.h>
6514 #include <string.h>
6515 #include <float.h>
6518 main ()
6522 return 0;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_header_stdc=yes
6527 else
6528 ac_cv_header_stdc=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 if test $ac_cv_header_stdc = yes; then
6533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <string.h>
6538 _ACEOF
6539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6540 $EGREP "memchr" >/dev/null 2>&1; then :
6542 else
6543 ac_cv_header_stdc=no
6545 rm -f conftest*
6549 if test $ac_cv_header_stdc = yes; then
6550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 #include <stdlib.h>
6555 _ACEOF
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "free" >/dev/null 2>&1; then :
6559 else
6560 ac_cv_header_stdc=no
6562 rm -f conftest*
6566 if test $ac_cv_header_stdc = yes; then
6567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6568 if test "$cross_compiling" = yes; then :
6570 else
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <ctype.h>
6574 #include <stdlib.h>
6575 #if ((' ' & 0x0FF) == 0x020)
6576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6578 #else
6579 # define ISLOWER(c) \
6580 (('a' <= (c) && (c) <= 'i') \
6581 || ('j' <= (c) && (c) <= 'r') \
6582 || ('s' <= (c) && (c) <= 'z'))
6583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6584 #endif
6586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6588 main ()
6590 int i;
6591 for (i = 0; i < 256; i++)
6592 if (XOR (islower (i), ISLOWER (i))
6593 || toupper (i) != TOUPPER (i))
6594 return 2;
6595 return 0;
6597 _ACEOF
6598 if ac_fn_c_try_run "$LINENO"; then :
6600 else
6601 ac_cv_header_stdc=no
6603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6604 conftest.$ac_objext conftest.beam conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6610 $as_echo "$ac_cv_header_stdc" >&6; }
6611 if test $ac_cv_header_stdc = yes; then
6613 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6618 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6619 if ${ac_cv_header_sys_wait_h+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624 #include <sys/types.h>
6625 #include <sys/wait.h>
6626 #ifndef WEXITSTATUS
6627 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6628 #endif
6629 #ifndef WIFEXITED
6630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6631 #endif
6634 main ()
6636 int s;
6637 wait (&s);
6638 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6640 return 0;
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644 ac_cv_header_sys_wait_h=yes
6645 else
6646 ac_cv_header_sys_wait_h=no
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6651 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6652 if test $ac_cv_header_sys_wait_h = yes; then
6654 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6659 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6660 if ${ac_cv_header_time+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 #include <sys/types.h>
6666 #include <sys/time.h>
6667 #include <time.h>
6670 main ()
6672 if ((struct tm *) 0)
6673 return 0;
6675 return 0;
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 ac_cv_header_time=yes
6680 else
6681 ac_cv_header_time=no
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6686 $as_echo "$ac_cv_header_time" >&6; }
6687 if test $ac_cv_header_time = yes; then
6689 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6693 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6694 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6698 _ACEOF
6701 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6706 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6707 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6709 cat >>confdefs.h <<_ACEOF
6710 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6711 _ACEOF
6714 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6716 else
6717 case " $LIBOBJS " in
6718 *" fileblocks.$ac_objext "* ) ;;
6719 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6721 esac
6726 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6727 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6729 cat >>confdefs.h <<_ACEOF
6730 #define HAVE_STRUCT_STAT_ST_RDEV 1
6731 _ACEOF
6734 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6740 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6741 if ${ac_cv_struct_tm+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #include <sys/types.h>
6747 #include <time.h>
6750 main ()
6752 struct tm tm;
6753 int *p = &tm.tm_sec;
6754 return !p;
6756 return 0;
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 ac_cv_struct_tm=time.h
6761 else
6762 ac_cv_struct_tm=sys/time.h
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6767 $as_echo "$ac_cv_struct_tm" >&6; }
6768 if test $ac_cv_struct_tm = sys/time.h; then
6770 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6774 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6775 #include <$ac_cv_struct_tm>
6778 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6780 cat >>confdefs.h <<_ACEOF
6781 #define HAVE_STRUCT_TM_TM_ZONE 1
6782 _ACEOF
6787 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6789 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6791 else
6792 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6794 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6795 ac_have_decl=1
6796 else
6797 ac_have_decl=0
6800 cat >>confdefs.h <<_ACEOF
6801 #define HAVE_DECL_TZNAME $ac_have_decl
6802 _ACEOF
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6805 $as_echo_n "checking for tzname... " >&6; }
6806 if ${ac_cv_var_tzname+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 #include <time.h>
6812 #if !HAVE_DECL_TZNAME
6813 extern char *tzname[];
6814 #endif
6817 main ()
6819 return tzname[0][0];
6821 return 0;
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"; then :
6825 ac_cv_var_tzname=yes
6826 else
6827 ac_cv_var_tzname=no
6829 rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6833 $as_echo "$ac_cv_var_tzname" >&6; }
6834 if test $ac_cv_var_tzname = yes; then
6836 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6841 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6842 if test "x$ac_cv_type_off_t" = xyes; then :
6844 else
6846 cat >>confdefs.h <<_ACEOF
6847 #define off_t long int
6848 _ACEOF
6852 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6853 if test "x$ac_cv_type_pid_t" = xyes; then :
6855 else
6857 cat >>confdefs.h <<_ACEOF
6858 #define pid_t int
6859 _ACEOF
6863 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6864 if test "x$ac_cv_type_size_t" = xyes; then :
6866 else
6868 cat >>confdefs.h <<_ACEOF
6869 #define size_t unsigned int
6870 _ACEOF
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6875 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6876 if ${ac_cv_type_uid_t+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 #include <sys/types.h>
6883 _ACEOF
6884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6885 $EGREP "uid_t" >/dev/null 2>&1; then :
6886 ac_cv_type_uid_t=yes
6887 else
6888 ac_cv_type_uid_t=no
6890 rm -f conftest*
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6894 $as_echo "$ac_cv_type_uid_t" >&6; }
6895 if test $ac_cv_type_uid_t = no; then
6897 $as_echo "#define uid_t int" >>confdefs.h
6900 $as_echo "#define gid_t int" >>confdefs.h
6905 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6906 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6908 cat >>confdefs.h <<_ACEOF
6909 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6910 _ACEOF
6916 # Look for some functions
6917 for ac_func in getpagesize kqueue statfs statvfs \
6918 clone kse_create rfork_thread thr_create sa_register \
6919 getcontext makecontext setcontext sigaltstack swapcontext
6920 do :
6921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6924 cat >>confdefs.h <<_ACEOF
6925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926 _ACEOF
6929 done
6935 for ac_header in $ac_header_list
6936 do :
6937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6941 cat >>confdefs.h <<_ACEOF
6942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6943 _ACEOF
6947 done
6956 for ac_func in getpagesize
6957 do :
6958 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6959 if test "x$ac_cv_func_getpagesize" = xyes; then :
6960 cat >>confdefs.h <<_ACEOF
6961 #define HAVE_GETPAGESIZE 1
6962 _ACEOF
6965 done
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6968 $as_echo_n "checking for working mmap... " >&6; }
6969 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 if test "$cross_compiling" = yes; then :
6973 ac_cv_func_mmap_fixed_mapped=no
6974 else
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6977 $ac_includes_default
6978 /* malloc might have been renamed as rpl_malloc. */
6979 #undef malloc
6981 /* Thanks to Mike Haertel and Jim Avera for this test.
6982 Here is a matrix of mmap possibilities:
6983 mmap private not fixed
6984 mmap private fixed at somewhere currently unmapped
6985 mmap private fixed at somewhere already mapped
6986 mmap shared not fixed
6987 mmap shared fixed at somewhere currently unmapped
6988 mmap shared fixed at somewhere already mapped
6989 For private mappings, we should verify that changes cannot be read()
6990 back from the file, nor mmap's back from the file at a different
6991 address. (There have been systems where private was not correctly
6992 implemented like the infamous i386 svr4.0, and systems where the
6993 VM page cache was not coherent with the file system buffer cache
6994 like early versions of FreeBSD and possibly contemporary NetBSD.)
6995 For shared mappings, we should conversely verify that changes get
6996 propagated back to all the places they're supposed to be.
6998 Grep wants private fixed already mapped.
6999 The main things grep needs to know about mmap are:
7000 * does it exist and is it safe to write into the mmap'd area
7001 * how to use it (BSD variants) */
7003 #include <fcntl.h>
7004 #include <sys/mman.h>
7006 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7007 char *malloc ();
7008 #endif
7010 /* This mess was copied from the GNU getpagesize.h. */
7011 #ifndef HAVE_GETPAGESIZE
7012 # ifdef _SC_PAGESIZE
7013 # define getpagesize() sysconf(_SC_PAGESIZE)
7014 # else /* no _SC_PAGESIZE */
7015 # ifdef HAVE_SYS_PARAM_H
7016 # include <sys/param.h>
7017 # ifdef EXEC_PAGESIZE
7018 # define getpagesize() EXEC_PAGESIZE
7019 # else /* no EXEC_PAGESIZE */
7020 # ifdef NBPG
7021 # define getpagesize() NBPG * CLSIZE
7022 # ifndef CLSIZE
7023 # define CLSIZE 1
7024 # endif /* no CLSIZE */
7025 # else /* no NBPG */
7026 # ifdef NBPC
7027 # define getpagesize() NBPC
7028 # else /* no NBPC */
7029 # ifdef PAGESIZE
7030 # define getpagesize() PAGESIZE
7031 # endif /* PAGESIZE */
7032 # endif /* no NBPC */
7033 # endif /* no NBPG */
7034 # endif /* no EXEC_PAGESIZE */
7035 # else /* no HAVE_SYS_PARAM_H */
7036 # define getpagesize() 8192 /* punt totally */
7037 # endif /* no HAVE_SYS_PARAM_H */
7038 # endif /* no _SC_PAGESIZE */
7040 #endif /* no HAVE_GETPAGESIZE */
7043 main ()
7045 char *data, *data2, *data3;
7046 const char *cdata2;
7047 int i, pagesize;
7048 int fd, fd2;
7050 pagesize = getpagesize ();
7052 /* First, make a file with some known garbage in it. */
7053 data = (char *) malloc (pagesize);
7054 if (!data)
7055 return 1;
7056 for (i = 0; i < pagesize; ++i)
7057 *(data + i) = rand ();
7058 umask (0);
7059 fd = creat ("conftest.mmap", 0600);
7060 if (fd < 0)
7061 return 2;
7062 if (write (fd, data, pagesize) != pagesize)
7063 return 3;
7064 close (fd);
7066 /* Next, check that the tail of a page is zero-filled. File must have
7067 non-zero length, otherwise we risk SIGBUS for entire page. */
7068 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7069 if (fd2 < 0)
7070 return 4;
7071 cdata2 = "";
7072 if (write (fd2, cdata2, 1) != 1)
7073 return 5;
7074 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7075 if (data2 == MAP_FAILED)
7076 return 6;
7077 for (i = 0; i < pagesize; ++i)
7078 if (*(data2 + i))
7079 return 7;
7080 close (fd2);
7081 if (munmap (data2, pagesize))
7082 return 8;
7084 /* Next, try to mmap the file at a fixed address which already has
7085 something else allocated at it. If we can, also make sure that
7086 we see the same garbage. */
7087 fd = open ("conftest.mmap", O_RDWR);
7088 if (fd < 0)
7089 return 9;
7090 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7091 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7092 return 10;
7093 for (i = 0; i < pagesize; ++i)
7094 if (*(data + i) != *(data2 + i))
7095 return 11;
7097 /* Finally, make sure that changes to the mapped area do not
7098 percolate back to the file as seen by read(). (This is a bug on
7099 some variants of i386 svr4.0.) */
7100 for (i = 0; i < pagesize; ++i)
7101 *(data2 + i) = *(data2 + i) + 1;
7102 data3 = (char *) malloc (pagesize);
7103 if (!data3)
7104 return 12;
7105 if (read (fd, data3, pagesize) != pagesize)
7106 return 13;
7107 for (i = 0; i < pagesize; ++i)
7108 if (*(data + i) != *(data3 + i))
7109 return 14;
7110 close (fd);
7111 return 0;
7113 _ACEOF
7114 if ac_fn_c_try_run "$LINENO"; then :
7115 ac_cv_func_mmap_fixed_mapped=yes
7116 else
7117 ac_cv_func_mmap_fixed_mapped=no
7119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7120 conftest.$ac_objext conftest.beam conftest.$ac_ext
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7125 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7126 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7128 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7131 rm -f conftest.mmap conftest.txt
7136 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7137 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7138 aros_config_ldflags=""
7140 aros_shared_default=yes
7142 aros_shared_cflags="-fPIC"
7143 aros_shared_aflags=""
7144 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7145 aros_kernel_ldflags="-Wl,-rpath,./lib"
7147 aros_kernel_ar_flags="cr"
7148 aros_target_ar_flags="cr"
7149 aros_target_nm_flags="-C -ul"
7150 aros_target_strip_flags="--strip-unneeded -R.comment"
7152 aros_compiler_libs=
7153 aros_arch_libs=
7155 aros_target_genmap="-Wl,-Map -Xlinker"
7157 # Native flavour stuff
7158 aros_serial_debug="0"
7160 # Palm native flavour stuff
7161 aros_palm_debug_hack="0"
7163 # Unix flavour stuff
7164 aros_nesting_supervisor="0"
7166 # Collect-aros stuff: "-ius" to ignore undefined symbols
7167 ignore_undefined_symbols=""
7169 # Check for X11 by default
7170 need_x11="auto"
7172 #-----------------------------------------------------------------------------
7175 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7176 # it switched on by default, and we use the host compiler, so it compiles AROS
7177 # code with this enabled resulting in link failures as we don't have support
7178 # for it.
7180 # We use two methods to disable it. For the host compiler (used to compile
7181 # some hosted modules), we test to see if the compiler supports stack
7182 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7183 # work on all platforms.
7185 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7186 # (this is done unconditionally, as it should have no effect on compilers
7187 # without the stack protection feature). This may be specific to the way that
7188 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7189 # strong enough to disable it in a generic way though, so we'll live with it
7190 # until another vendor ships GCC with it enabled in a different way, and deal
7191 # with it then.
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7195 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7196 save_cflags="$CFLAGS"
7197 CFLAGS="$CFLAGS -fno-stack-protector"
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7202 main ()
7206 return 0;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 use_no_stack_protector="yes"
7211 else
7212 use_no_stack_protector="no"
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7216 $as_echo "$use_no_stack_protector" >&6; }
7217 if test "x-$use_no_stack_protector" = "x-yes" ; then
7218 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7220 CFLAGS="$save_cflags"
7222 #-----------------------------------------------------------------------------
7224 # Disable pointer-signedness warnings if the compiler recognises the option
7225 # (this only works for the host compiler at the moment)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7228 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7229 save_cflags="$CFLAGS"
7230 CFLAGS="$CFLAGS -Wno-pointer-sign"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7235 main ()
7239 return 0;
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 use_no_sign_warning="yes"
7244 else
7245 use_no_sign_warning="no"
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7249 $as_echo "$use_no_sign_warning" >&6; }
7250 if test "x-$use_no_sign_warning" = "x-yes" ; then
7251 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7253 CFLAGS="$save_cflags"
7255 #-----------------------------------------------------------------------------
7257 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7260 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7261 save_cflags="$CFLAGS"
7262 CFLAGS="$CFLAGS -fgnu89-inline"
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7267 main ()
7271 return 0;
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"; then :
7275 use_gnu89_inline="yes"
7276 else
7277 use_gnu89_inline="no"
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7281 $as_echo "$use_gnu89_inline" >&6; }
7282 if test "x-$use_gnu89_inline" = "x-yes" ; then
7283 gnu89_inline="-fgnu89-inline"
7285 CFLAGS="$save_cflags"
7287 #-----------------------------------------------------------------------------
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7290 $as_echo_n "checking for type of build... " >&6; }
7291 # Check whether --enable-build_type was given.
7292 if test "${enable_build_type+set}" = set; then :
7293 enableval=$enable_build_type; build_type=$enableval
7294 else
7295 build_type="personal"
7299 if test "$build_type" = "nightly"; then
7300 build_type_string="NIGHTLY"
7301 elif test "$build_type" = "snapshot"; then
7302 build_type_string="SNAPSHOT"
7303 elif test "$build_type" = "milestone"; then
7304 build_type_string="MILESTONE"
7305 elif test "$build_type" = "release"; then
7306 build_type_string="RELEASE"
7307 else
7308 build_type_string="PERSONAL"
7309 build_type="personal"
7312 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7315 $as_echo "$build_type" >&6; }
7317 #-----------------------------------------------------------------------------
7318 all_debug_types="messages stack modules mungwall symbols"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7321 $as_echo_n "checking which debug types to enable... " >&6; }
7322 # Check whether --enable-debug was given.
7323 if test "${enable_debug+set}" = set; then :
7324 enableval=$enable_debug; debug="$enableval"
7325 else
7326 debug=""
7330 if test "$debug" = "" -o "$debug" = "no"; then
7331 debug="none"
7332 elif test "$debug" = "yes"; then
7333 debug="all"
7336 if test "$debug" = "all" ; then
7337 debug="messages stack modules symbols"
7338 for d in $all_debug_types; do
7339 export aros_${d}_debug="1"
7340 done
7341 else
7342 for d in $all_debug_types; do
7343 export aros_${d}_debug="0"
7344 done
7347 if test "$debug" != "none"; then
7348 debug=`echo $debug | sed s/,/\ /g`
7349 for d in $debug; do
7350 found="0"
7351 for d2 in $all_debug_types; do
7352 if test "$d2" = "$d"; then
7353 found="1"
7354 break
7356 done
7357 if test "$found" = "0"; then
7358 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7360 export aros_${d}_debug="1"
7361 done
7362 aros_debug="yes"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7365 $as_echo "$debug" >&6; }
7367 if test "$aros_messages_debug" = "1"; then
7368 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7369 else
7370 aros_messages_debug=""
7372 if test "$aros_symbols_debug" = "1"; then
7373 aros_symbols_debug="-g"
7374 else
7375 aros_symbols_debug=""
7378 # These are the flags to pass when compiling debugged programs
7379 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7380 aros_debug_aflags=""
7381 aros_debug_ldflags="$aros_symbols_debug"
7383 #-----------------------------------------------------------------------------
7384 # Checking for distcc and ccache.
7386 # Always apply the transforms in this particular order. Basically you should
7387 # always run 'ccache distcc compiler' in that order for the best performance.
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7390 $as_echo_n "checking whether to enable distcc... " >&6; }
7391 # Check whether --enable-distcc was given.
7392 if test "${enable_distcc+set}" = set; then :
7393 enableval=$enable_distcc; distcc="$enableval"
7394 else
7395 distcc="no"
7398 if test "$distcc" != "" -a "$distcc" != "no"; then
7399 # AC_CHECK_PROG will print out the result in this case
7400 # Extract the first word of "distcc", so it can be a program name with args.
7401 set dummy distcc; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if ${ac_cv_path_DISTCC+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 case $DISTCC in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7425 IFS=$as_save_IFS
7427 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7429 esac
7431 DISTCC=$ac_cv_path_DISTCC
7432 if test -n "$DISTCC"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7434 $as_echo "$DISTCC" >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7447 $as_echo_n "checking whether to enable ccache... " >&6; }
7448 # Check whether --enable-ccache was given.
7449 if test "${enable_ccache+set}" = set; then :
7450 enableval=$enable_ccache; ccache="$enableval"
7451 else
7452 ccache="no"
7455 if test "$ccache" != "" -a "$ccache" != "no"; then
7456 # AC_CHECK_PROG will print out the result in this case
7457 # Extract the first word of "ccache", so it can be a program name with args.
7458 set dummy ccache; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_CCACHE+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 if test -n "$CCACHE"; then
7465 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_prog_CCACHE="ccache"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7478 done
7479 done
7480 IFS=$as_save_IFS
7484 CCACHE=$ac_cv_prog_CCACHE
7485 if test -n "$CCACHE"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7487 $as_echo "$CCACHE" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7499 #-----------------------------------------------------------------------------
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7501 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7503 # Check whether --with-kernel-gcc-version was given.
7504 if test "${with_kernel_gcc_version+set}" = set; then :
7505 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7506 else
7507 kernel_tool_version=""
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7511 $as_echo "$kernel_tool_version" >&6; }
7513 #-----------------------------------------------------------------------------
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7515 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7517 # Check whether --with-gcc-version was given.
7518 if test "${with_gcc_version+set}" = set; then :
7519 withval=$with_gcc_version; target_tool_version="$withval"
7520 else
7521 target_tool_version="default"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7525 $as_echo "$target_tool_version" >&6; }
7527 #-----------------------------------------------------------------------------
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7529 $as_echo_n "checking what optimization flags to use... " >&6; }
7531 # Check whether --with-optimization was given.
7532 if test "${with_optimization+set}" = set; then :
7533 withval=$with_optimization; optimization="$withval"
7534 else
7535 optimization="unknown"
7538 if test "$optimization" = "unknown"; then
7539 if test "$debug" != "none"; then
7540 optimization="-O0"
7541 else
7542 optimization="-O2"
7545 aros_config_cflags="$aros_config_cflags $optimization"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7547 $as_echo "$optimization" >&6; }
7549 #-----------------------------------------------------------------------------
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7551 $as_echo_n "checking what paranoia flags to use... " >&6; }
7553 # Check whether --with-paranoia was given.
7554 if test "${with_paranoia+set}" = set; then :
7555 withval=$with_paranoia; paranoia_flags="$withval"
7556 else
7557 paranoia_flags="default"
7560 if test "$paranoia_flags" = "default"; then
7561 paranoia_flags=""
7562 else if test "$paranoia_flags" = "yes"; then
7563 paranoia_flags="-Wall -Werror"
7564 fi fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7566 $as_echo "$paranoia_flags" >&6; }
7567 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7569 #-----------------------------------------------------------------------------
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7571 $as_echo_n "checking what target variant to enable... " >&6; }
7572 # Check whether --enable-target_variant was given.
7573 if test "${enable_target_variant+set}" = set; then :
7574 enableval=$enable_target_variant; target_variant=$enableval
7575 else
7576 target_variant=""
7579 if test "$target_variant" = ""; then
7580 aros_target_variant=""
7581 aros_target_suffix=""
7582 enableval="none"
7583 else
7584 aros_target_variant="$target_variant"
7585 aros_target_suffix="-$target_variant"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7588 $as_echo "$enableval" >&6; }
7590 #-----------------------------------------------------------------------------
7591 # Target-specific defaults. You can override then on a per-target basis.
7593 # Bootloader name. Currently used by PC target.
7594 target_bootloader="none"
7596 #-----------------------------------------------------------------------------
7597 # Additional options for some specific targets
7599 case "$aros_target_variant" in
7600 ios)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7602 $as_echo_n "checking XCode path... " >&6; }
7604 # Check whether --with-xcode was given.
7605 if test "${with_xcode+set}" = set; then :
7606 withval=$with_xcode; aros_xcode_path="$withval"
7607 else
7608 aros_xcode_path="/Developer"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7612 $as_echo "$aros_xcode_path" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7615 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7617 # Check whether --with-sdk-version was given.
7618 if test "${with_sdk_version+set}" = set; then :
7619 withval=$with_sdk_version; aros_sdk_version="$withval"
7620 else
7621 aros_sdk_version="4.1"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7625 $as_echo "$aros_sdk_version" >&6; }
7629 "android")
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7631 $as_echo_n "checking Android SDK path... " >&6; }
7633 # Check whether --with-sdk was given.
7634 if test "${with_sdk+set}" = set; then :
7635 withval=$with_sdk; aros_android_sdk="$withval"
7636 else
7637 aros_android_sdk=$default_android_sdk
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7641 $as_echo "$aros_android_sdk" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7644 $as_echo_n "checking Android NDK path... " >&6; }
7646 # Check whether --with-ndk was given.
7647 if test "${with_ndk+set}" = set; then :
7648 withval=$with_ndk; aros_android_ndk="$withval"
7649 else
7650 aros_android_ndk="none"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7654 $as_echo "$aros_android_ndk" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7657 $as_echo_n "checking what Android SDK version to use... " >&6; }
7659 # Check whether --with-sdk-version was given.
7660 if test "${with_sdk_version+set}" = set; then :
7661 withval=$with_sdk_version; aros_sdk_version="$withval"
7662 else
7663 aros_sdk_version="12"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7667 $as_echo "$aros_sdk_version" >&6; }
7669 if test "$aros_android_ndk" != "none"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7671 $as_echo_n "checking what Android NDK version to use... " >&6; }
7673 # Check whether --with-ndk-version was given.
7674 if test "${with_ndk_version+set}" = set; then :
7675 withval=$with_ndk_version; aros_ndk_version="$withval"
7676 else
7677 aros_ndk_version="9"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7681 $as_echo "$aros_ndk_version" >&6; }
7684 export PATH="$aros_android_sdk/tools:$PATH"
7685 # Extract the first word of "$android_tool", so it can be a program name with args.
7686 set dummy $android_tool; 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_android_tool+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 case $android_tool in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_android_tool="$android_tool" # 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_android_tool="$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 android_tool=$ac_cv_path_android_tool
7716 if test -n "$android_tool"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7718 $as_echo "$android_tool" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7725 if test "$android_tool" = ""; then
7726 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7729 aros_android_level=android-$aros_sdk_version
7730 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7731 echo "Platform $aros_android_level is not installed in your SDK"
7732 echo "Use --with-sdk-version=<API level number> to select another platform version"
7733 echo "You can check what plaform versions are installed in your SDK"
7734 echo "by examining contents of $aros_android_sdk/platforms directory"
7735 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7738 # Extract the first word of "ant", so it can be a program name with args.
7739 set dummy ant; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_path_ant+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 case $ant in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7766 esac
7768 ant=$ac_cv_path_ant
7769 if test -n "$ant"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7771 $as_echo "$ant" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7778 if test "$ant" = ""; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7780 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7783 if test "$host_os" = "mingw32"; then
7784 android_tool="cmd //c $android_tool"
7788 esac
7790 #-----------------------------------------------------------------------------
7791 # External toolchains
7792 kernel_tool_prefix="none"
7793 aros_tool_prefix="none"
7794 elf_tool_prefix="${target_cpu}-elf-"
7796 # This is the target configuration switch.
7797 case "$target_os" in
7798 linux*)
7799 aros_target_arch="linux"
7800 aros_target_family="unix"
7801 case "$target_cpu" in
7802 *m68k*)
7803 aros_target_cpu="m68k"
7804 aros_object_format="m68kelf"
7805 aros_flavour="emulcompat"
7806 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7807 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7808 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7809 gcc_target_cpu="mc68000"
7811 *i?86*)
7812 aros_target_cpu="i386"
7813 aros_object_format="elf_i386"
7814 aros_flavour="emulation"
7815 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7816 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7817 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7818 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7819 aros_config_ldflags="-m32 -march=i486"
7820 aros_kernel_ldflags="-melf_i386"
7821 aros_default_wbdepth=8
7822 gcc_target_cpu="i386"
7823 pci_hidd_target="hidd-pci-linux"
7824 android_tool_dir_prefix="x86"
7825 android_tool_prefix="i686-android-linux"
7826 android_ndk_arch="x86"
7828 *x86_64*)
7829 aros_target_cpu="x86_64"
7830 aros_object_format="elf_x86_64"
7831 aros_flavour="emulation"
7832 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7833 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7834 aros_default_wbdepth=8
7835 pci_hidd_target="hidd-pci-linux"
7837 *powerpc*)
7838 aros_target_cpu="ppc"
7839 aros_object_format="elf32ppc"
7840 aros_flavour="emulation"
7841 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7842 aros_default_wbdepth=8
7843 gcc_target_cpu="ppc"
7845 # TODO
7846 # Same as powerpc, but I need this for the nightly build to work again.
7847 # Actually, the nightly should be made working with powerpc target.
7848 # That just was too much work for the moment, another week or two.
7849 *ppc*)
7850 aros_target_cpu="ppc"
7851 aros_object_format="elf32ppc"
7852 aros_flavour="emulation"
7853 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7854 aros_default_wbdepth=8
7855 gcc_target_cpu="ppc"
7857 *armhf*)
7858 aros_target_cpu="arm"
7859 target_cpu="arm"
7860 aros_object_format="armelf_linux_eabi"
7861 aros_flavour="emulation"
7862 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7863 gcc_target_cpu="arm"
7864 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7865 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7866 aros_arch_libs="-laeabi"
7867 gcc_default_fpu="vfpv3-d16"
7868 gcc_default_float_abi="hard"
7869 android_tool_dir_prefix="arm-linux-androideabi"
7870 android_tool_prefix="arm-linux-androideabi"
7871 android_ndk_arch="arm"
7872 kernel_tool_prefix="arm-linux-gnueabihf-"
7874 *arm*)
7875 aros_target_cpu="arm"
7876 aros_object_format="armelf_linux_eabi"
7877 aros_flavour="emulation"
7878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7879 gcc_target_cpu="arm"
7880 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7881 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7882 aros_arch_libs="-laeabi"
7883 android_tool_dir_prefix="arm-linux-androideabi"
7884 android_tool_prefix="arm-linux-androideabi"
7885 android_ndk_arch="arm"
7886 kernel_tool_prefix="arm-linux-gnueabi-"
7889 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7891 esac
7892 case "$aros_target_variant" in
7893 android)
7895 if test "$android_ndk_arch" = ""; then
7896 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7899 aros_default_wbwidth=320
7900 aros_default_wbheight=480
7901 if test "$aros_android_ndk" = "none"; then
7902 aros_kernel_cflags="-mandroid"
7903 aros_kernel_ldflags="-mandroid"
7904 CFLAGS="-mandroid"
7905 else
7906 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7907 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7908 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7909 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7910 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7911 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7913 need_x11=no
7914 x11_hidd_target=kernel-hidd-androidgfx-kobj
7915 # Disable implicit PIC mode
7916 aros_target_cflags="$aros_target_cflags -fno-pic"
7917 kernel_tool_prefix="$android_tool_prefix-"
7919 esac
7923 aros_target_arch="pc"
7924 aros_shared_default="no"
7925 target_bootloader="grub2"
7926 case "$target_cpu" in
7927 *i?86*)
7928 aros_target_cpu="i386"
7931 if test "$aros_object_format" = "" ; then
7932 aros_object_format="elf_i386"
7934 aros_flavour="standalone"
7935 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7936 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7937 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7938 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7939 aros_config_ldflags="-m32 -march=i486"
7940 aros_kernel_ldflags="-melf_i386"
7941 aros_default_wbwidth=640
7942 aros_default_wbheight=480
7943 gcc_target_cpu="i386"
7945 *x86_64*)
7946 aros_target_cpu="x86_64"
7947 aros_serial_debug=1
7948 if test "$aros_object_format" = "" ; then
7949 aros_object_format="elf_x86_64"
7951 aros_flavour="standalone"
7952 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7953 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7954 aros_kernel_ldflags=""
7955 aros_default_wbwidth=640
7956 aros_default_wbheight=480
7959 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7961 esac
7964 prep)
7965 aros_target_arch="prep"
7966 aros_shared_default="no"
7967 aros_target_cpu="ppc"
7968 aros_object_format="elf32ppc"
7969 aros_flavour="ppcnative"
7970 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7971 aros_kernel_ldflags=""
7972 aros_default_wbwidth=640
7973 aros_default_wbheight=480
7974 gcc_target_cpu="ppc"
7977 freebsd*)
7978 aros_target_arch="freebsd"
7979 aros_target_family="unix"
7980 aros_target_cpu="i386"
7981 aros_flavour="emulation"
7982 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7983 gcc_target_cpu="i386"
7985 aros_target_strip_flags="-x"
7988 darwin*)
7989 aros_target_arch="darwin"
7990 aros_target_family="unix"
7991 aros_flavour="emulation"
7992 case "$target_cpu" in
7993 *i?86*)
7994 aros_ios_platform="iPhoneSimulator"
7995 aros_target_cpu="i386"
7996 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7997 aros_kernel_ldflags=""
7998 aros_macosx_version="10.4"
7999 aros_default_wbdepth=8
8000 gcc_target_cpu="i386"
8001 aros_object_format="elf_i386"
8002 aros_kernel_ar_flags="-cr"
8003 aros_target_strip_flags="-x"
8004 kernel_tool_flags="-m32"
8006 *x86_64*)
8007 aros_target_cpu="x86_64"
8008 aros_object_format="elf_x86_64"
8009 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8010 aros_macosx_version="10.6"
8011 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8012 aros_kernel_cflags="-m64"
8013 aros_kernel_ldflags="-m64"
8014 aros_target_cflags="-mcmodel=large"
8015 aros_default_wbdepth=8
8016 aros_kernel_ar="ar"
8017 aros_kernel_ar_flags="-cr"
8018 aros_kernel_ld="ld"
8019 aros_kernel_ranlib="ranlib"
8021 *ppc*)
8022 aros_target_cpu="ppc"
8023 aros_object_format="elf32ppc"
8024 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8025 aros_kernel_ldflags=""
8026 aros_macosx_version="10.0"
8027 aros_default_wbdepth=8
8028 gcc_target_cpu="ppc"
8029 aros_kernel_ar="ar"
8030 aros_kernel_ar_flags="-cr"
8031 aros_kernel_ld="ld -arch ppc"
8032 aros_kernel_as="as -arch ppc"
8033 aros_kernel_ranlib="ranlib -arch ppc"
8034 aros_kernel_nm="nm -arch ppc"
8035 aros_kernel_strip="strip -arch ppc"
8036 kernel_tool_prefix="powerpc-apple-darwin10-"
8038 *arm*)
8039 aros_ios_platform="iPhoneOS"
8040 aros_target_cpu="arm"
8041 aros_object_format="armelf_linux_eabi"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8043 aros_arch_libs="-laeabi"
8044 aros_default_wbdepth=8
8045 gcc_target_cpu="arm"
8046 aros_kernel_ar="ar"
8047 aros_kernel_ar_flags="-cr"
8048 aros_kernel_ld="ld -arch arm"
8049 aros_kernel_ranlib="ranlib -arch arm"
8050 kernel_tool_prefix="arm-apple-darwin10-"
8051 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8054 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8056 esac
8057 case "$aros_target_variant" in
8058 ios)
8059 aros_ios_version="3.0"
8060 aros_default_wbwidth=320
8061 aros_default_wbheight=480
8062 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8063 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8064 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8065 need_x11=no
8066 # This is here because it may depend on iOS or SDK version
8067 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8068 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8069 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8072 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8073 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8075 esac
8078 dragonfly*)
8079 aros_target_arch="dragonfly"
8080 aros_target_family="unix"
8081 aros_flavour="emulation"
8082 case "$target_cpu" in
8083 *i?86*)
8084 aros_target_cpu="i386"
8085 aros_object_format="elf_i386"
8086 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8088 *x86_64*)
8089 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8090 aros_target_cpu="x86_64"
8091 aros_object_format="elf_x86_64"
8092 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8095 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8097 esac
8100 netbsd*)
8101 aros_target_arch="netbsd"
8102 aros_target_family="unix"
8103 case "$target_cpu" in
8104 *m68k*)
8105 aros_target_cpu="m68k"
8106 aros_object_format="m68kelf"
8107 aros_flavour="emulcompat"
8108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8109 gcc_target_cpu="mc68000"
8111 *i?86*)
8112 aros_target_cpu="i386"
8113 aros_object_format="elf_i386"
8114 aros_flavour="emulation"
8115 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8116 aros_default_wbdepth=8
8117 gcc_target_cpu="i386"
8120 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8122 esac
8123 aros_target_genmap="-Wl,-M -Xlinker >"
8124 aros_flavour="emulation"
8125 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8128 openbsd*)
8129 aros_target_arch="openbsd"
8130 aros_target_family="unix"
8131 case "$target_cpu" in
8132 *i?86*)
8133 aros_target_cpu="i386"
8134 aros_object_format="elf_i386"
8135 aros_flavour="emulation"
8136 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8137 gcc_target_cpu="i386"
8140 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8142 esac
8143 aros_target_genmap="-Wl,-M -Xlinker >"
8144 aros_target_nm_flags="-u"
8145 aros_flavour="emulation"
8148 solaris*)
8149 aros_target_arch="solaris"
8150 aros_target_family="unix"
8151 case "$target_cpu" in
8152 *i?86*)
8153 aros_target_cpu="i386"
8154 aros_object_format="elf_i386"
8155 aros_flavour="emulation"
8156 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8157 aros_default_wbdepth=8
8158 gcc_target_cpu="i386"
8160 *sparc*)
8161 aros_target_cpu="sparc"
8162 aros_object_format="elf_sparc"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8164 gcc_target_cpu="sparc"
8167 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8169 esac
8170 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8171 aros_flavour="emulation"
8174 morphos*)
8175 aros_target_arch="morphos"
8176 aros_shared_default="no"
8177 aros_target_cpu="ppc"
8178 aros_object_format="elf_ppc"
8179 aros_flavour="nativecompat"
8180 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8181 gcc_target_cpu="ppc"
8184 sam440)
8185 aros_target_arch="sam440"
8186 aros_shared_default="no"
8187 aros_target_cpu="ppc"
8188 aros_object_format="elf32ppc"
8189 aros_flavour="ppcnative"
8190 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8191 aros_kernel_ldflags=""
8192 aros_default_wbwidth=1024
8193 aros_default_wbheight=768
8194 aros_default_wbdepth=24
8195 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8196 gcc_target_cpu="powerpc"
8199 efika)
8200 aros_target_arch="efika"
8201 aros_shared_default="no"
8202 aros_target_cpu="arm"
8203 aros_object_format="armelf_linux_eabi"
8204 aros_flavour="standalone"
8205 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8206 aros_kernel_ldflags=""
8207 aros_default_wbwidth=1024
8208 aros_default_wbheight=600
8209 aros_arch_libs="-laeabi"
8210 gcc_default_cpu="armv7-a"
8211 gcc_default_fpu="vfpv3"
8212 gcc_default_float_abi="softfp"
8213 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8214 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8217 chrp)
8218 aros_target_arch="chrp"
8219 aros_shared_default="no"
8220 aros_target_cpu="ppc"
8221 aros_object_format="elf32ppc"
8222 aros_flavour="ppcnative"
8223 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8224 aros_kernel_ldflags=""
8225 aros_default_wbwidth=640
8226 aros_default_wbheight=480
8227 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8228 gcc_target_cpu="powerpc"
8229 case "$aros_target_variant" in
8230 efika)
8231 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8233 esac
8236 amiga*)
8237 aros_target_arch="amiga"
8238 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8239 aros_shared_default="no"
8241 case "$target_cpu" in
8242 *m68k*)
8243 # Check whether --enable-amigaos_compliance was given.
8244 if test "${enable_amigaos_compliance+set}" = set; then :
8245 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8248 aros_enable_mmu=no
8249 aros_target_cpu="m68k"
8250 aros_object_format="m68kelf"
8251 aros_flavour="standcompat"
8252 gcc_target_cpu="m68000"
8253 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8254 aros_config_aflags="$aros_config_aflags"
8255 aros_target_strip_flags="-R.comment --strip-debug"
8256 aros_default_wbwidth=640
8257 aros_default_wbheight=256
8258 aros_default_wbdepth=2
8260 *ppc*)
8261 aros_cpu="ppc"
8262 aros_flavour="native"
8263 gcc_target_cpu="ppc"
8266 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8268 esac
8271 mingw*)
8272 aros_target_arch="mingw32"
8273 aros_shared_default="no"
8274 aros_flavour="emulation"
8275 aros_shared_cflags=""
8276 need_crosstools="yes"
8277 need_dlopen="no"
8278 rescomp="windres"
8279 case "$target_cpu" in
8280 *i?86*)
8281 aros_target_cpu="i386"
8282 aros_object_format="elf_i386"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8284 aros_default_wbdepth=8
8285 gcc_target_cpu="i386"
8287 kernel_tool_prefix="i386-mingw32-"
8289 *x86_64*)
8290 aros_target_cpu="x86_64"
8291 aros_object_format="elf_x86_64"
8292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8293 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8294 aros_default_wbdepth=8
8295 kernel_tool_prefix="x86_64-w64-mingw32-"
8297 *arm*)
8298 aros_target_cpu="arm"
8299 aros_object_format="armelf_linux_eabi"
8300 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8301 aros_arch_libs="-laeabi"
8302 aros_default_wbdepth=8
8303 gcc_target_cpu="arm"
8304 gcc_default_float_abi="soft"
8305 kernel_tool_prefix="arm-mingw32ce-"
8306 aros_default_wbwidth=160
8307 aros_default_wbheight=160
8310 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8312 esac
8313 if test $host_os = "cygwin"; then
8314 aros_kernel_cflags="-mno-cygwin"
8317 pp*)
8318 aros_target_arch="pp"
8319 aros_shared_default="no"
8320 case "$target_cpu" in
8321 *m68k*)
8322 aros_target_cpu="m68k"
8323 aros_object_format="m68kelf"
8324 aros_flavour="palmnative"
8325 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8326 aros_default_wbwidth=160
8327 aros_default_wbheight=160
8328 aros_default_wbdepth=1
8329 aros_target_ar_flags="cru"
8330 aros_compiler_libs="-lgcc1"
8331 aros_shared_default=no
8332 aros_shared_cflags="-fpic"
8333 aros_shared_aflags=""
8334 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8335 aros_kernel_ldflags="-Wl,-rpath,./lib"
8336 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8337 aros_debug_aflags=""
8338 aros_debug_ldflags="$aros_symbols_debug"
8339 aros_mungwall_debug="0"
8340 aros_modules_debug="0"
8341 gcc_target_cpu="mc68000"
8342 ignore_undefined_symbols="-ius"
8345 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8347 esac
8350 mac*)
8351 aros_target_arch="mac"
8352 aros_shared_default="no"
8353 case "$target_cpu" in
8354 *m68k*)
8355 aros_target_cpu="m68k"
8356 aros_object_format="m68kelf"
8357 aros_flavour="mac68knative"
8358 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8359 aros_default_wbwidth=512
8360 aros_default_wbheight=384
8361 aros_default_wbdepth=8
8362 aros_target_ar_flags="cru"
8363 aros_compiler_libs="-lgcc1"
8364 aros_shared_default=no
8365 aros_shared_cflags="-fpic"
8366 aros_shared_aflags=""
8367 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8368 aros_kernel_ldflags="-Wl,-rpath,./lib"
8369 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8370 aros_debug_aflags=""
8371 aros_debug_ldflags="$aros_symbols_debug"
8372 aros_mungwall_debug="0"
8373 aros_modules_debug="0"
8374 gcc_target_cpu="mc68000"
8375 ignore_undefined_symbols="-ius"
8378 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8380 esac
8384 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8386 esac
8388 #-----------------------------------------------------------------------------
8389 crosstools_guess=yes
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8392 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8394 # Check whether --with-kernel-toolchain-prefix was given.
8395 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8396 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8400 $as_echo "$kernel_tool_prefix" >&6; }
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8403 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8405 # Check whether --with-elf-toolchain-prefix was given.
8406 if test "${with_elf_toolchain_prefix+set}" = set; then :
8407 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8408 crosstools_guess=no
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8412 $as_echo "$elf_tool_prefix" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8415 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8417 # Check whether --with-aros-toolchain was given.
8418 if test "${with_aros_toolchain+set}" = set; then :
8419 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8420 crosstools_guess=no
8423 if test "$aros_tool_prefix" = "yes" ; then
8424 aros_tool_prefix=$aros_target_cpu-aros-
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8427 $as_echo "$aros_tool_prefix" >&6; }
8429 #-----------------------------------------------------------------------------
8430 # Checking if we should build crosstools..
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8432 $as_echo_n "checking whether to build crosstools... " >&6; }
8433 # Check whether --enable-crosstools was given.
8434 if test "${enable_crosstools+set}" = set; then :
8435 enableval=$enable_crosstools; crosstools="$enableval"
8436 else
8437 crosstools="$crosstools_guess"
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8441 $as_echo "$crosstools" >&6; }
8443 if test "${crosstools}" = "yes"; then
8444 if test "${crosstools_guess}" = "no"; then
8445 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8450 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8452 # Check whether --with-aros-toolchain-install was given.
8453 if test "${with_aros_toolchain_install+set}" = set; then :
8454 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8457 if test "x$aros_toolchain_install" = "x"; then
8458 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8459 else
8460 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8461 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8464 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8467 # Now process extra architecture-specific options.
8468 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8469 # as well as floating-point ABI.
8470 case "$aros_target_cpu" in
8471 arm)
8472 if test "$gcc_default_cpu" = ""; then
8473 gcc_default_cpu="armv6"
8475 if test "$gcc_default_fpu" = ""; then
8476 gcc_default_fpu="vfp"
8478 if test "$gcc_default_float_abi" = ""; then
8479 gcc_default_float_abi="softfp"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8483 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8485 # Check whether --with-cpu was given.
8486 if test "${with_cpu+set}" = set; then :
8487 withval=$with_cpu; aros_gcc_cpu="$withval"
8488 else
8489 aros_gcc_cpu=$gcc_default_cpu
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8493 $as_echo "$aros_gcc_cpu" >&6; }
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8496 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8498 # Check whether --with-fpu was given.
8499 if test "${with_fpu+set}" = set; then :
8500 withval=$with_fpu; aros_gcc_fpu="$withval"
8501 else
8502 aros_gcc_fpu=$gcc_default_fpu
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8506 $as_echo "$aros_gcc_fpu" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8509 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8511 # Check whether --with-float was given.
8512 if test "${with_float+set}" = set; then :
8513 withval=$with_float; aros_gcc_float_abi="$withval"
8514 else
8515 aros_gcc_float_abi=$gcc_default_float_abi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8519 $as_echo "$aros_gcc_float_abi" >&6; }
8521 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"
8522 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"
8524 esac
8526 # Some formats need custom ELF specs.
8527 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8528 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8529 elf_specs_in=config/${aros_object_format}-specs.in
8530 else
8531 elf_specs_in=config/elf-specs.in
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8535 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8537 # Check whether --with-aros-gcc was given.
8538 if test "${with_aros_gcc+set}" = set; then :
8539 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8540 else
8541 aros_gcc_version=""
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8545 $as_echo "$aros_gcc_version" >&6; }
8547 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8548 # Since we override specs, we may need to put these defines there
8549 if test "$gcc_target_cpu" != ""; then
8550 gcc_target_cpu="-D__${gcc_target_cpu}__"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8554 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8556 # Check whether --with-portssources was given.
8557 if test "${with_portssources+set}" = set; then :
8558 withval=$with_portssources; with_portssrcdir=$withval
8559 else
8560 with_portssrcdir="default"
8563 if test "$with_portssrcdir" = "default"; then
8564 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8565 else
8566 AROS_PORTSSRCDIR="$with_portssrcdir"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8569 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8572 $as_echo_n "checking which bootloader to use... " >&6; }
8574 # Check whether --with-bootloader was given.
8575 if test "${with_bootloader+set}" = set; then :
8576 withval=$with_bootloader; target_bootloader=$withval
8577 else
8578 target_bootloader=$target_bootloader
8581 if test "$target_bootloader" = "none"; then
8582 aros_target_bootloader=""
8583 else
8584 aros_target_bootloader="$target_bootloader"
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8587 $as_echo "$target_bootloader" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8590 $as_echo_n "checking which icon-set to use... " >&6; }
8592 # Check whether --with-iconset was given.
8593 if test "${with_iconset+set}" = set; then :
8594 withval=$with_iconset; target_iconset=$withval
8595 else
8596 target_iconset="default"
8599 if test "$target_iconset" = "default"; then
8600 aros_target_iconset="Gorilla"
8601 target_iconset="default (Gorilla)"
8602 else
8603 aros_target_iconset="$target_iconset"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8606 $as_echo "$target_iconset" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8609 $as_echo_n "checking which GUI Theme to use... " >&6; }
8611 # Check whether --with-theme was given.
8612 if test "${with_theme+set}" = set; then :
8613 withval=$with_theme; target_guitheme=$withval
8614 else
8615 target_guitheme="default"
8618 if test "$target_guitheme" = "default"; then
8619 aros_target_guitheme="Ice"
8620 else
8621 aros_target_guitheme="$target_guitheme"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8624 $as_echo "$aros_target_guitheme" >&6; }
8626 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8627 # for target code)
8628 cross_compiling=no
8630 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8631 cross_compiling=yes
8634 if test "$aros_host_cpu" == "x86_64" ; then
8635 if test "$aros_target_cpu" == "i386" ; then
8636 cross_compiling=no
8640 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8641 if test "$aros_host_arch" != "$aros_target_arch" ; then
8642 cross_compiling=yes
8644 else
8645 if test "$host_cc_elf" = "no" ; then
8646 cross_compiling=yes
8650 if test "$cross_compiling" = "no" ; then
8651 kernel_tool_prefix=""
8652 if test "$host_cc_elf" = "yes" ; then
8653 elf_tool_prefix=""
8657 #######################################################################
8658 ## Compute what toolchains to use, and their paths ##
8659 #######################################################################
8661 # This takes, as input:
8662 # crosstools {yes,no}
8663 # kernel_tool_version {"",[version]}
8664 # aros_gcc_version {"",[version]}
8665 # kernel_tool_prefix {none,[some-arch-os-]}
8666 # aros_tool_prefix ${target_cpu}-aros-
8668 # The output is
8669 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8670 # Where the 'kernel' binaries are located
8671 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8672 # Where the 'target' binaries are located
8673 # (not the symlink farm - that is aros_target_*!)
8675 # The rules are:
8676 # if crosstools then
8677 # if kernel_tools_prefix = "no-kernel-prefix-"
8678 # aros_kernel_* = crosstools cc paths
8679 # aros_kernel_cc = elf cc wrapper around crosstools cc
8680 # else
8681 # VALIDATE(${kernel_tools_prefix}*)
8682 # aros_kernel_* = ${kernel_tools_prefix}*
8683 # if ${kernel_tools_prefix}cc is an AROS gcc
8684 # aros_kernel_cc = ${kernel_tools_prefix}cc
8685 # else
8686 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8687 # fi
8688 # fi
8690 # orig_target_* = aros built crosstools
8691 # orig_target_cc = elf cc wrapper around crosstools cc
8692 # else
8693 # VALIDATE(${kernel_tools_prefix}*)
8695 # orig_target_* = aros_kernel_*
8696 # if aros_kernel_cc is an AROS gcc
8697 # orig_target_cc = aros_kernel_cc
8698 # else
8699 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8700 # fi
8701 # fi
8703 target_tool_prefix="${target_cpu}-aros-"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8706 $as_echo_n "checking which kernel tools... " >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8708 $as_echo "$kernel_tool_prefix" >&6; };
8710 if test "$kernel_tool_prefix" = "none" ; then
8711 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8712 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8714 else
8715 # Kernel tools required - find them
8716 # Note that 'normally', aros_kernel_* overrides will
8717 # empty, unless specified in the per-arch sections above.
8718 if test "x$aros_kernel_cpp" = "x"; then
8719 aros_kernel_cpp=${kernel_tool_prefix}cpp
8722 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8723 if test "$cross_compiling" = "yes" ; then
8724 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8725 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 case $aros_kernel_cpp in
8732 [\\/]* | ?:[\\/]*)
8733 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8752 esac
8754 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8755 if test -n "$aros_kernel_cpp"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8757 $as_echo "$aros_kernel_cpp" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8764 else
8765 if test "$GCC" = "yes"; then
8766 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8767 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8768 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 case $aros_kernel_cpp in
8775 [\\/]* | ?:[\\/]*)
8776 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in `dirname $aros_gcc_cpp`
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8790 done
8791 done
8792 IFS=$as_save_IFS
8795 esac
8797 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8798 if test -n "$aros_kernel_cpp"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8800 $as_echo "$aros_kernel_cpp" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8808 if test "$aros_kernel_cpp" = ""; then
8809 # Extract the first word of "cpp", so it can be a program name with args.
8810 set dummy cpp; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 case $aros_kernel_cpp in
8817 [\\/]* | ?:[\\/]*)
8818 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8828 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8837 esac
8839 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8840 if test -n "$aros_kernel_cpp"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8842 $as_echo "$aros_kernel_cpp" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8851 else
8852 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8853 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 case $aros_kernel_cpp in
8860 [\\/]* | ?:[\\/]*)
8861 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8875 done
8876 done
8877 IFS=$as_save_IFS
8880 esac
8882 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8883 if test -n "$aros_kernel_cpp"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8885 $as_echo "$aros_kernel_cpp" >&6; }
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8894 if test "$aros_kernel_cpp" = ""; then
8895 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8897 if test "x$aros_kernel_cc" = "x"; then
8898 aros_kernel_cc=${kernel_tool_prefix}gcc
8901 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8902 if test "$cross_compiling" = "yes" ; then
8903 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8904 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 case $aros_kernel_cc in
8911 [\\/]* | ?:[\\/]*)
8912 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in $PATH
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8922 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 break 2
8926 done
8927 done
8928 IFS=$as_save_IFS
8931 esac
8933 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8934 if test -n "$aros_kernel_cc"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8936 $as_echo "$aros_kernel_cc" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8943 else
8944 if test "$GCC" = "yes"; then
8945 aros_gcc_cc=`$CC -print-prog-name=cc`
8946 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8947 set dummy `basename $aros_gcc_cc`; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 case $aros_kernel_cc in
8954 [\\/]* | ?:[\\/]*)
8955 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959 for as_dir in `dirname $aros_gcc_cc`
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8965 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 break 2
8969 done
8970 done
8971 IFS=$as_save_IFS
8974 esac
8976 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8977 if test -n "$aros_kernel_cc"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8979 $as_echo "$aros_kernel_cc" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8987 if test "$aros_kernel_cc" = ""; then
8988 # Extract the first word of "cc", so it can be a program name with args.
8989 set dummy cc; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 case $aros_kernel_cc in
8996 [\\/]* | ?:[\\/]*)
8997 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9016 esac
9018 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9019 if test -n "$aros_kernel_cc"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9021 $as_echo "$aros_kernel_cc" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9030 else
9031 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9032 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 case $aros_kernel_cc in
9039 [\\/]* | ?:[\\/]*)
9040 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9046 IFS=$as_save_IFS
9047 test -z "$as_dir" && as_dir=.
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052 break 2
9054 done
9055 done
9056 IFS=$as_save_IFS
9059 esac
9061 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9062 if test -n "$aros_kernel_cc"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9064 $as_echo "$aros_kernel_cc" >&6; }
9065 else
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9073 if test "$aros_kernel_cc" = ""; then
9074 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9076 if test "x$aros_kernel_cxx" = "x"; then
9077 aros_kernel_cxx=${kernel_tool_prefix}g++
9080 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9081 if test "$cross_compiling" = "yes" ; then
9082 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9083 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 case $aros_kernel_cxx in
9090 [\\/]* | ?:[\\/]*)
9091 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9097 IFS=$as_save_IFS
9098 test -z "$as_dir" && as_dir=.
9099 for ac_exec_ext in '' $ac_executable_extensions; do
9100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9101 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 break 2
9105 done
9106 done
9107 IFS=$as_save_IFS
9110 esac
9112 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9113 if test -n "$aros_kernel_cxx"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9115 $as_echo "$aros_kernel_cxx" >&6; }
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9122 else
9123 if test "$GCC" = "yes"; then
9124 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9125 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9126 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 case $aros_kernel_cxx in
9133 [\\/]* | ?:[\\/]*)
9134 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in `dirname $aros_gcc_cxx`
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9148 done
9149 done
9150 IFS=$as_save_IFS
9153 esac
9155 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9156 if test -n "$aros_kernel_cxx"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9158 $as_echo "$aros_kernel_cxx" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9166 if test "$aros_kernel_cxx" = ""; then
9167 # Extract the first word of "cxx", so it can be a program name with args.
9168 set dummy cxx; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 case $aros_kernel_cxx in
9175 [\\/]* | ?:[\\/]*)
9176 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 break 2
9190 done
9191 done
9192 IFS=$as_save_IFS
9195 esac
9197 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9198 if test -n "$aros_kernel_cxx"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9200 $as_echo "$aros_kernel_cxx" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9209 else
9210 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9211 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 case $aros_kernel_cxx in
9218 [\\/]* | ?:[\\/]*)
9219 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 break 2
9233 done
9234 done
9235 IFS=$as_save_IFS
9238 esac
9240 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9241 if test -n "$aros_kernel_cxx"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9243 $as_echo "$aros_kernel_cxx" >&6; }
9244 else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9252 # If it's set, make sure it's really there
9253 if test "x$aros_kernel_cxx" != "x" ; then
9254 if test "$aros_kernel_cxx" = ""; then
9255 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9259 if test "$aros_kernel_ld" = ""; then
9260 if test "$cross_compiling" = "yes" ; then
9261 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9262 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 case $aros_kernel_ld in
9269 [\\/]* | ?:[\\/]*)
9270 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9289 esac
9291 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9292 if test -n "$aros_kernel_ld"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9294 $as_echo "$aros_kernel_ld" >&6; }
9295 else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9301 else
9302 if test "$GCC" = "yes"; then
9303 aros_gcc_ld=`$CC -print-prog-name=ld`
9304 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9305 set dummy `basename $aros_gcc_ld`; ac_word=$2
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 case $aros_kernel_ld in
9312 [\\/]* | ?:[\\/]*)
9313 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in `dirname $aros_gcc_ld`
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9323 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 break 2
9327 done
9328 done
9329 IFS=$as_save_IFS
9332 esac
9334 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9335 if test -n "$aros_kernel_ld"; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9337 $as_echo "$aros_kernel_ld" >&6; }
9338 else
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9345 if test "$aros_kernel_ld" = ""; then
9346 # Extract the first word of "ld", so it can be a program name with args.
9347 set dummy ld; ac_word=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 case $aros_kernel_ld in
9354 [\\/]* | ?:[\\/]*)
9355 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9369 done
9370 done
9371 IFS=$as_save_IFS
9374 esac
9376 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9377 if test -n "$aros_kernel_ld"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9379 $as_echo "$aros_kernel_ld" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9388 else
9389 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9390 set dummy $aros_kernel_ld; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 case $aros_kernel_ld in
9397 [\\/]* | ?:[\\/]*)
9398 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9408 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9412 done
9413 done
9414 IFS=$as_save_IFS
9417 esac
9419 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9420 if test -n "$aros_kernel_ld"; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9422 $as_echo "$aros_kernel_ld" >&6; }
9423 else
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9431 if test "$aros_kernel_ld" = ""; then
9432 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9435 if test "$aros_kernel_as" = ""; then
9436 if test "$cross_compiling" = "yes" ; then
9437 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9438 set dummy ${kernel_tool_prefix}as; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if ${ac_cv_path_aros_kernel_as+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 case $aros_kernel_as in
9445 [\\/]* | ?:[\\/]*)
9446 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9465 esac
9467 aros_kernel_as=$ac_cv_path_aros_kernel_as
9468 if test -n "$aros_kernel_as"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9470 $as_echo "$aros_kernel_as" >&6; }
9471 else
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9477 else
9478 if test "$GCC" = "yes"; then
9479 aros_gcc_as=`$CC -print-prog-name=as`
9480 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9481 set dummy `basename $aros_gcc_as`; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_path_aros_kernel_as+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 case $aros_kernel_as in
9488 [\\/]* | ?:[\\/]*)
9489 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in `dirname $aros_gcc_as`
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9503 done
9504 done
9505 IFS=$as_save_IFS
9508 esac
9510 aros_kernel_as=$ac_cv_path_aros_kernel_as
9511 if test -n "$aros_kernel_as"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9513 $as_echo "$aros_kernel_as" >&6; }
9514 else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9521 if test "$aros_kernel_as" = ""; then
9522 # Extract the first word of "as", so it can be a program name with args.
9523 set dummy as; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if ${ac_cv_path_aros_kernel_as+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 case $aros_kernel_as in
9530 [\\/]* | ?:[\\/]*)
9531 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in $PATH
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9541 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9545 done
9546 done
9547 IFS=$as_save_IFS
9550 esac
9552 aros_kernel_as=$ac_cv_path_aros_kernel_as
9553 if test -n "$aros_kernel_as"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9555 $as_echo "$aros_kernel_as" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9564 else
9565 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9566 set dummy $aros_kernel_as; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_path_aros_kernel_as+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 case $aros_kernel_as in
9573 [\\/]* | ?:[\\/]*)
9574 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9588 done
9589 done
9590 IFS=$as_save_IFS
9593 esac
9595 aros_kernel_as=$ac_cv_path_aros_kernel_as
9596 if test -n "$aros_kernel_as"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9598 $as_echo "$aros_kernel_as" >&6; }
9599 else
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9607 if test "$aros_kernel_as" = ""; then
9608 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9611 if test "$aros_kernel_ar" = ""; then
9612 if test "$cross_compiling" = "yes" ; then
9613 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9614 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 case $aros_kernel_ar in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9641 esac
9643 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9644 if test -n "$aros_kernel_ar"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9646 $as_echo "$aros_kernel_ar" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9653 else
9654 if test "$GCC" = "yes"; then
9655 aros_gcc_ar=`$CC -print-prog-name=ar`
9656 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9657 set dummy `basename $aros_gcc_ar`; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 case $aros_kernel_ar in
9664 [\\/]* | ?:[\\/]*)
9665 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in `dirname $aros_gcc_ar`
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9679 done
9680 done
9681 IFS=$as_save_IFS
9684 esac
9686 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9687 if test -n "$aros_kernel_ar"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9689 $as_echo "$aros_kernel_ar" >&6; }
9690 else
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9697 if test "$aros_kernel_ar" = ""; then
9698 # Extract the first word of "ar", so it can be a program name with args.
9699 set dummy ar; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 case $aros_kernel_ar in
9706 [\\/]* | ?:[\\/]*)
9707 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9723 IFS=$as_save_IFS
9726 esac
9728 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9729 if test -n "$aros_kernel_ar"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9731 $as_echo "$aros_kernel_ar" >&6; }
9732 else
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9740 else
9741 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9742 set dummy $aros_kernel_ar; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 case $aros_kernel_ar in
9749 [\\/]* | ?:[\\/]*)
9750 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9764 done
9765 done
9766 IFS=$as_save_IFS
9769 esac
9771 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9772 if test -n "$aros_kernel_ar"; then
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9774 $as_echo "$aros_kernel_ar" >&6; }
9775 else
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777 $as_echo "no" >&6; }
9783 if test "$aros_kernel_ar" = ""; then
9784 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9787 if test "$aros_kernel_ranlib" = ""; then
9788 if test "$cross_compiling" = "yes" ; then
9789 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9790 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 $as_echo_n "checking for $ac_word... " >&6; }
9793 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 case $aros_kernel_ranlib in
9797 [\\/]* | ?:[\\/]*)
9798 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9817 esac
9819 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9820 if test -n "$aros_kernel_ranlib"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9822 $as_echo "$aros_kernel_ranlib" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9829 else
9830 if test "$GCC" = "yes"; then
9831 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9832 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9833 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835 $as_echo_n "checking for $ac_word... " >&6; }
9836 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 case $aros_kernel_ranlib in
9840 [\\/]* | ?:[\\/]*)
9841 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in `dirname $aros_gcc_ranlib`
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9851 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9855 done
9856 done
9857 IFS=$as_save_IFS
9860 esac
9862 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9863 if test -n "$aros_kernel_ranlib"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9865 $as_echo "$aros_kernel_ranlib" >&6; }
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9873 if test "$aros_kernel_ranlib" = ""; then
9874 # Extract the first word of "ranlib", so it can be a program name with args.
9875 set dummy ranlib; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 case $aros_kernel_ranlib in
9882 [\\/]* | ?:[\\/]*)
9883 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9902 esac
9904 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9905 if test -n "$aros_kernel_ranlib"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9907 $as_echo "$aros_kernel_ranlib" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9916 else
9917 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9918 set dummy $aros_kernel_ranlib; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 case $aros_kernel_ranlib in
9925 [\\/]* | ?:[\\/]*)
9926 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9942 IFS=$as_save_IFS
9945 esac
9947 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9948 if test -n "$aros_kernel_ranlib"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9950 $as_echo "$aros_kernel_ranlib" >&6; }
9951 else
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9959 if test "$aros_kernel_ranlib" = ""; then
9960 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9963 if test "$aros_kernel_nm" = ""; then
9964 if test "$cross_compiling" = "yes" ; then
9965 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9966 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 case $aros_kernel_nm in
9973 [\\/]* | ?:[\\/]*)
9974 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 break 2
9988 done
9989 done
9990 IFS=$as_save_IFS
9993 esac
9995 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9996 if test -n "$aros_kernel_nm"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9998 $as_echo "$aros_kernel_nm" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10005 else
10006 if test "$GCC" = "yes"; then
10007 aros_gcc_nm=`$CC -print-prog-name=nm`
10008 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10009 set dummy `basename $aros_gcc_nm`; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 case $aros_kernel_nm in
10016 [\\/]* | ?:[\\/]*)
10017 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in `dirname $aros_gcc_nm`
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10031 done
10032 done
10033 IFS=$as_save_IFS
10036 esac
10038 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10039 if test -n "$aros_kernel_nm"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10041 $as_echo "$aros_kernel_nm" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10049 if test "$aros_kernel_nm" = ""; then
10050 # Extract the first word of "nm", so it can be a program name with args.
10051 set dummy nm; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 case $aros_kernel_nm in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10078 esac
10080 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10081 if test -n "$aros_kernel_nm"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10083 $as_echo "$aros_kernel_nm" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10092 else
10093 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10094 set dummy $aros_kernel_nm; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 case $aros_kernel_nm in
10101 [\\/]* | ?:[\\/]*)
10102 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10112 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10116 done
10117 done
10118 IFS=$as_save_IFS
10121 esac
10123 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10124 if test -n "$aros_kernel_nm"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10126 $as_echo "$aros_kernel_nm" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10135 if test "$aros_kernel_nm" = ""; then
10136 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10139 if test "$aros_kernel_strip" = ""; then
10140 if test "$cross_compiling" = "yes" ; then
10141 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10142 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 case $aros_kernel_strip in
10149 [\\/]* | ?:[\\/]*)
10150 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10160 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10164 done
10165 done
10166 IFS=$as_save_IFS
10169 esac
10171 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10172 if test -n "$aros_kernel_strip"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10174 $as_echo "$aros_kernel_strip" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10181 else
10182 if test "$GCC" = "yes"; then
10183 aros_gcc_strip=`$CC -print-prog-name=strip`
10184 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10185 set dummy `basename $aros_gcc_strip`; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 case $aros_kernel_strip in
10192 [\\/]* | ?:[\\/]*)
10193 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in `dirname $aros_gcc_strip`
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10203 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10207 done
10208 done
10209 IFS=$as_save_IFS
10212 esac
10214 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10215 if test -n "$aros_kernel_strip"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10217 $as_echo "$aros_kernel_strip" >&6; }
10218 else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10225 if test "$aros_kernel_strip" = ""; then
10226 # Extract the first word of "strip", so it can be a program name with args.
10227 set dummy strip; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 case $aros_kernel_strip in
10234 [\\/]* | ?:[\\/]*)
10235 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10249 done
10250 done
10251 IFS=$as_save_IFS
10254 esac
10256 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10257 if test -n "$aros_kernel_strip"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10259 $as_echo "$aros_kernel_strip" >&6; }
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10268 else
10269 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10270 set dummy $aros_kernel_strip; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 case $aros_kernel_strip in
10277 [\\/]* | ?:[\\/]*)
10278 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10288 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10292 done
10293 done
10294 IFS=$as_save_IFS
10297 esac
10299 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10300 if test -n "$aros_kernel_strip"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10302 $as_echo "$aros_kernel_strip" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10311 if test "$aros_kernel_strip" = ""; then
10312 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10315 # Objcopy and objdump are not required for the kernel
10316 # toolchain on many architectures.
10317 # So we'll look for them, but not make them strictly required.
10319 if test "$aros_kernel_objcopy" = ""; then
10320 if test "$cross_compiling" = "yes" ; then
10321 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10322 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 case $aros_kernel_objcopy in
10329 [\\/]* | ?:[\\/]*)
10330 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10340 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10344 done
10345 done
10346 IFS=$as_save_IFS
10349 esac
10351 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10352 if test -n "$aros_kernel_objcopy"; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10354 $as_echo "$aros_kernel_objcopy" >&6; }
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10361 else
10362 if test "$GCC" = "yes"; then
10363 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10364 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10365 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 case $aros_kernel_objcopy in
10372 [\\/]* | ?:[\\/]*)
10373 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in `dirname $aros_gcc_objcopy`
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10387 done
10388 done
10389 IFS=$as_save_IFS
10392 esac
10394 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10395 if test -n "$aros_kernel_objcopy"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10397 $as_echo "$aros_kernel_objcopy" >&6; }
10398 else
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10405 if test "$aros_kernel_objcopy" = ""; then
10406 # Extract the first word of "objcopy", so it can be a program name with args.
10407 set dummy objcopy; ac_word=$2
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409 $as_echo_n "checking for $ac_word... " >&6; }
10410 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 case $aros_kernel_objcopy in
10414 [\\/]* | ?:[\\/]*)
10415 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419 for as_dir in $PATH
10421 IFS=$as_save_IFS
10422 test -z "$as_dir" && as_dir=.
10423 for ac_exec_ext in '' $ac_executable_extensions; do
10424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10425 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427 break 2
10429 done
10430 done
10431 IFS=$as_save_IFS
10434 esac
10436 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10437 if test -n "$aros_kernel_objcopy"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10439 $as_echo "$aros_kernel_objcopy" >&6; }
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10448 else
10449 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10450 set dummy $aros_kernel_objcopy; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 case $aros_kernel_objcopy in
10457 [\\/]* | ?:[\\/]*)
10458 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10468 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470 break 2
10472 done
10473 done
10474 IFS=$as_save_IFS
10477 esac
10479 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10480 if test -n "$aros_kernel_objcopy"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10482 $as_echo "$aros_kernel_objcopy" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10492 if test "$aros_kernel_objdump" = ""; then
10493 if test "$cross_compiling" = "yes" ; then
10494 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10495 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 case $aros_kernel_objdump in
10502 [\\/]* | ?:[\\/]*)
10503 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10513 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10517 done
10518 done
10519 IFS=$as_save_IFS
10522 esac
10524 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10525 if test -n "$aros_kernel_objdump"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10527 $as_echo "$aros_kernel_objdump" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10534 else
10535 if test "$GCC" = "yes"; then
10536 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10537 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10538 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 case $aros_kernel_objdump in
10545 [\\/]* | ?:[\\/]*)
10546 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in `dirname $aros_gcc_objdump`
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
10555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10556 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10560 done
10561 done
10562 IFS=$as_save_IFS
10565 esac
10567 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10568 if test -n "$aros_kernel_objdump"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10570 $as_echo "$aros_kernel_objdump" >&6; }
10571 else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10578 if test "$aros_kernel_objdump" = ""; then
10579 # Extract the first word of "objdump", so it can be a program name with args.
10580 set dummy objdump; ac_word=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582 $as_echo_n "checking for $ac_word... " >&6; }
10583 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 case $aros_kernel_objdump in
10587 [\\/]* | ?:[\\/]*)
10588 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10602 done
10603 done
10604 IFS=$as_save_IFS
10607 esac
10609 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10610 if test -n "$aros_kernel_objdump"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10612 $as_echo "$aros_kernel_objdump" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10621 else
10622 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10623 set dummy $aros_kernel_objdump; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 case $aros_kernel_objdump in
10630 [\\/]* | ?:[\\/]*)
10631 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10641 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10645 done
10646 done
10647 IFS=$as_save_IFS
10650 esac
10652 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10653 if test -n "$aros_kernel_objdump"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10655 $as_echo "$aros_kernel_objdump" >&6; }
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10664 if test "x${crosstools}" != "xyes" ; then
10665 if test "$aros_kernel_objcopy" = ""; then
10666 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10668 if test "$aros_kernel_objdump" = ""; then
10669 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10675 $as_echo_n "checking which target tools to use... " >&6; }
10676 if test "$crosstools" = "yes"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10678 $as_echo "$target_tool_prefix" >&6; }
10679 # We are are building AROS crosstools
10680 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10681 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10682 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10683 orig_target_cpp="${tmp_tool_prefix}cpp"
10684 orig_target_ld="${tmp_tool_prefix}ld"
10685 orig_target_as="${tmp_tool_prefix}as"
10686 orig_target_ar="${tmp_tool_prefix}ar"
10687 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10688 orig_target_nm="${tmp_tool_prefix}nm"
10689 orig_target_strip="${tmp_tool_prefix}strip"
10690 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10691 orig_target_objdump="${tmp_tool_prefix}objdump"
10692 else
10693 # Determine whether AROS or ELF tools should be used
10694 if test "$aros_tool_prefix" = "none"; then
10695 aros_tool_prefix="${elf_tool_prefix}"
10696 crosstools_cxx_target=tools-crosstools
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10700 $as_echo "$aros_tool_prefix" >&6; }
10701 # We are *not* building AROS crosstools - use the AROS or ELF tools
10703 if test "${aros_tool_prefix}cpp" = ""; then
10704 if test "$cross_compiling" = "yes" ; then
10705 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10706 set dummy ${target_tool_prefix}cpp; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if ${ac_cv_path_orig_target_cpp+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 case $orig_target_cpp in
10713 [\\/]* | ?:[\\/]*)
10714 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10730 IFS=$as_save_IFS
10733 esac
10735 orig_target_cpp=$ac_cv_path_orig_target_cpp
10736 if test -n "$orig_target_cpp"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10738 $as_echo "$orig_target_cpp" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10745 else
10746 if test "$GCC" = "yes"; then
10747 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10748 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10749 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_path_orig_target_cpp+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 case $orig_target_cpp in
10756 [\\/]* | ?:[\\/]*)
10757 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in `dirname $aros_gcc_cpp`
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10771 done
10772 done
10773 IFS=$as_save_IFS
10776 esac
10778 orig_target_cpp=$ac_cv_path_orig_target_cpp
10779 if test -n "$orig_target_cpp"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10781 $as_echo "$orig_target_cpp" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10789 if test "$orig_target_cpp" = ""; then
10790 # Extract the first word of "cpp", so it can be a program name with args.
10791 set dummy cpp; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if ${ac_cv_path_orig_target_cpp+:} false; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 case $orig_target_cpp in
10798 [\\/]* | ?:[\\/]*)
10799 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10813 done
10814 done
10815 IFS=$as_save_IFS
10818 esac
10820 orig_target_cpp=$ac_cv_path_orig_target_cpp
10821 if test -n "$orig_target_cpp"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10823 $as_echo "$orig_target_cpp" >&6; }
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10832 else
10833 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10834 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_path_orig_target_cpp+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 case $orig_target_cpp in
10841 [\\/]* | ?:[\\/]*)
10842 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10852 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10856 done
10857 done
10858 IFS=$as_save_IFS
10861 esac
10863 orig_target_cpp=$ac_cv_path_orig_target_cpp
10864 if test -n "$orig_target_cpp"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10866 $as_echo "$orig_target_cpp" >&6; }
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10875 if test "$orig_target_cpp" = ""; then
10876 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10879 if test "${aros_tool_prefix}gcc" = ""; then
10880 if test "$cross_compiling" = "yes" ; then
10881 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10882 set dummy ${target_tool_prefix}gcc; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if ${ac_cv_path_orig_target_cc+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 case $orig_target_cc in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10900 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10904 done
10905 done
10906 IFS=$as_save_IFS
10909 esac
10911 orig_target_cc=$ac_cv_path_orig_target_cc
10912 if test -n "$orig_target_cc"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10914 $as_echo "$orig_target_cc" >&6; }
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10921 else
10922 if test "$GCC" = "yes"; then
10923 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10924 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10925 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if ${ac_cv_path_orig_target_cc+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 case $orig_target_cc in
10932 [\\/]* | ?:[\\/]*)
10933 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in `dirname $aros_gcc_gcc`
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10947 done
10948 done
10949 IFS=$as_save_IFS
10952 esac
10954 orig_target_cc=$ac_cv_path_orig_target_cc
10955 if test -n "$orig_target_cc"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10957 $as_echo "$orig_target_cc" >&6; }
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10965 if test "$orig_target_cc" = ""; then
10966 # Extract the first word of "gcc", so it can be a program name with args.
10967 set dummy gcc; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if ${ac_cv_path_orig_target_cc+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 case $orig_target_cc in
10974 [\\/]* | ?:[\\/]*)
10975 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10989 done
10990 done
10991 IFS=$as_save_IFS
10994 esac
10996 orig_target_cc=$ac_cv_path_orig_target_cc
10997 if test -n "$orig_target_cc"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10999 $as_echo "$orig_target_cc" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11008 else
11009 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11010 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if ${ac_cv_path_orig_target_cc+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 case $orig_target_cc in
11017 [\\/]* | ?:[\\/]*)
11018 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11024 IFS=$as_save_IFS
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030 break 2
11032 done
11033 done
11034 IFS=$as_save_IFS
11037 esac
11039 orig_target_cc=$ac_cv_path_orig_target_cc
11040 if test -n "$orig_target_cc"; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11042 $as_echo "$orig_target_cc" >&6; }
11043 else
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11051 if test "$orig_target_cc" = ""; then
11052 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11054 if test "x${crosstools_cxx_target}" = "x" ; then
11056 if test "${aros_tool_prefix}g++" = ""; then
11057 if test "$cross_compiling" = "yes" ; then
11058 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11059 set dummy ${target_tool_prefix}g++; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_orig_target_cxx+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 case $orig_target_cxx in
11066 [\\/]* | ?:[\\/]*)
11067 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11081 done
11082 done
11083 IFS=$as_save_IFS
11086 esac
11088 orig_target_cxx=$ac_cv_path_orig_target_cxx
11089 if test -n "$orig_target_cxx"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11091 $as_echo "$orig_target_cxx" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11098 else
11099 if test "$GCC" = "yes"; then
11100 aros_gcc_g++=`$CC -print-prog-name=g++`
11101 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11102 set dummy `basename $aros_gcc_g++`; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_orig_target_cxx+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 case $orig_target_cxx in
11109 [\\/]* | ?:[\\/]*)
11110 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in `dirname $aros_gcc_g++`
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11124 done
11125 done
11126 IFS=$as_save_IFS
11129 esac
11131 orig_target_cxx=$ac_cv_path_orig_target_cxx
11132 if test -n "$orig_target_cxx"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11134 $as_echo "$orig_target_cxx" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11142 if test "$orig_target_cxx" = ""; then
11143 # Extract the first word of "g++", so it can be a program name with args.
11144 set dummy g++; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_path_orig_target_cxx+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 case $orig_target_cxx in
11151 [\\/]* | ?:[\\/]*)
11152 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11166 done
11167 done
11168 IFS=$as_save_IFS
11171 esac
11173 orig_target_cxx=$ac_cv_path_orig_target_cxx
11174 if test -n "$orig_target_cxx"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11176 $as_echo "$orig_target_cxx" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11185 else
11186 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11187 set dummy ${aros_tool_prefix}g++; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_orig_target_cxx+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 case $orig_target_cxx in
11194 [\\/]* | ?:[\\/]*)
11195 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11209 done
11210 done
11211 IFS=$as_save_IFS
11214 esac
11216 orig_target_cxx=$ac_cv_path_orig_target_cxx
11217 if test -n "$orig_target_cxx"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11219 $as_echo "$orig_target_cxx" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11228 if test "$orig_target_cxx" = ""; then
11229 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11233 if test "${aros_tool_prefix}ld" = ""; then
11234 if test "$cross_compiling" = "yes" ; then
11235 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11236 set dummy ${target_tool_prefix}gcc; ac_word=$2
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11238 $as_echo_n "checking for $ac_word... " >&6; }
11239 if ${ac_cv_path_orig_target_ld+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 case $orig_target_ld in
11243 [\\/]* | ?:[\\/]*)
11244 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11254 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 break 2
11258 done
11259 done
11260 IFS=$as_save_IFS
11263 esac
11265 orig_target_ld=$ac_cv_path_orig_target_ld
11266 if test -n "$orig_target_ld"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11268 $as_echo "$orig_target_ld" >&6; }
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11275 else
11276 if test "$GCC" = "yes"; then
11277 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11278 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11279 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if ${ac_cv_path_orig_target_ld+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 case $orig_target_ld in
11286 [\\/]* | ?:[\\/]*)
11287 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in `dirname $aros_gcc_gcc`
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11301 done
11302 done
11303 IFS=$as_save_IFS
11306 esac
11308 orig_target_ld=$ac_cv_path_orig_target_ld
11309 if test -n "$orig_target_ld"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11311 $as_echo "$orig_target_ld" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11319 if test "$orig_target_ld" = ""; then
11320 # Extract the first word of "gcc", so it can be a program name with args.
11321 set dummy gcc; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_path_orig_target_ld+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 case $orig_target_ld in
11328 [\\/]* | ?:[\\/]*)
11329 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11343 done
11344 done
11345 IFS=$as_save_IFS
11348 esac
11350 orig_target_ld=$ac_cv_path_orig_target_ld
11351 if test -n "$orig_target_ld"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11353 $as_echo "$orig_target_ld" >&6; }
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11362 else
11363 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11364 set dummy ${aros_tool_prefix}ld; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_path_orig_target_ld+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 case $orig_target_ld in
11371 [\\/]* | ?:[\\/]*)
11372 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376 for as_dir in $PATH
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11382 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11384 break 2
11386 done
11387 done
11388 IFS=$as_save_IFS
11391 esac
11393 orig_target_ld=$ac_cv_path_orig_target_ld
11394 if test -n "$orig_target_ld"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11396 $as_echo "$orig_target_ld" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11405 if test "$orig_target_ld" = ""; then
11406 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11409 if test "${aros_tool_prefix}as" = ""; then
11410 if test "$cross_compiling" = "yes" ; then
11411 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11412 set dummy ${target_tool_prefix}as; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_path_orig_target_as+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 case $orig_target_as in
11419 [\\/]* | ?:[\\/]*)
11420 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11434 done
11435 done
11436 IFS=$as_save_IFS
11439 esac
11441 orig_target_as=$ac_cv_path_orig_target_as
11442 if test -n "$orig_target_as"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11444 $as_echo "$orig_target_as" >&6; }
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11451 else
11452 if test "$GCC" = "yes"; then
11453 aros_gcc_as=`$CC -print-prog-name=as`
11454 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11455 set dummy `basename $aros_gcc_as`; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_path_orig_target_as+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 case $orig_target_as in
11462 [\\/]* | ?:[\\/]*)
11463 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in `dirname $aros_gcc_as`
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11477 done
11478 done
11479 IFS=$as_save_IFS
11482 esac
11484 orig_target_as=$ac_cv_path_orig_target_as
11485 if test -n "$orig_target_as"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11487 $as_echo "$orig_target_as" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11495 if test "$orig_target_as" = ""; then
11496 # Extract the first word of "as", so it can be a program name with args.
11497 set dummy as; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_orig_target_as+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 case $orig_target_as in
11504 [\\/]* | ?:[\\/]*)
11505 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11519 done
11520 done
11521 IFS=$as_save_IFS
11524 esac
11526 orig_target_as=$ac_cv_path_orig_target_as
11527 if test -n "$orig_target_as"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11529 $as_echo "$orig_target_as" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11538 else
11539 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11540 set dummy ${aros_tool_prefix}as; ac_word=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if ${ac_cv_path_orig_target_as+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 case $orig_target_as in
11547 [\\/]* | ?:[\\/]*)
11548 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11562 done
11563 done
11564 IFS=$as_save_IFS
11567 esac
11569 orig_target_as=$ac_cv_path_orig_target_as
11570 if test -n "$orig_target_as"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11572 $as_echo "$orig_target_as" >&6; }
11573 else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11581 if test "$orig_target_as" = ""; then
11582 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11585 if test "${aros_tool_prefix}ar" = ""; then
11586 if test "$cross_compiling" = "yes" ; then
11587 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11588 set dummy ${target_tool_prefix}ar; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_ar+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $orig_target_ar in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11615 esac
11617 orig_target_ar=$ac_cv_path_orig_target_ar
11618 if test -n "$orig_target_ar"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11620 $as_echo "$orig_target_ar" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11627 else
11628 if test "$GCC" = "yes"; then
11629 aros_gcc_ar=`$CC -print-prog-name=ar`
11630 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11631 set dummy `basename $aros_gcc_ar`; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_orig_target_ar+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $orig_target_ar in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in `dirname $aros_gcc_ar`
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11653 done
11654 done
11655 IFS=$as_save_IFS
11658 esac
11660 orig_target_ar=$ac_cv_path_orig_target_ar
11661 if test -n "$orig_target_ar"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11663 $as_echo "$orig_target_ar" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11671 if test "$orig_target_ar" = ""; then
11672 # Extract the first word of "ar", so it can be a program name with args.
11673 set dummy ar; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_path_orig_target_ar+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 case $orig_target_ar in
11680 [\\/]* | ?:[\\/]*)
11681 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11691 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11695 done
11696 done
11697 IFS=$as_save_IFS
11700 esac
11702 orig_target_ar=$ac_cv_path_orig_target_ar
11703 if test -n "$orig_target_ar"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11705 $as_echo "$orig_target_ar" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11714 else
11715 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11716 set dummy ${aros_tool_prefix}ar; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if ${ac_cv_path_orig_target_ar+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 case $orig_target_ar in
11723 [\\/]* | ?:[\\/]*)
11724 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11734 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11738 done
11739 done
11740 IFS=$as_save_IFS
11743 esac
11745 orig_target_ar=$ac_cv_path_orig_target_ar
11746 if test -n "$orig_target_ar"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11748 $as_echo "$orig_target_ar" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11757 if test "$orig_target_ar" = ""; then
11758 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11761 if test "${aros_tool_prefix}ranlib" = ""; then
11762 if test "$cross_compiling" = "yes" ; then
11763 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11764 set dummy ${target_tool_prefix}ar; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 case $orig_target_ranlib in
11771 [\\/]* | ?:[\\/]*)
11772 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11782 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11786 done
11787 done
11788 IFS=$as_save_IFS
11791 esac
11793 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11794 if test -n "$orig_target_ranlib"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11796 $as_echo "$orig_target_ranlib" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11803 else
11804 if test "$GCC" = "yes"; then
11805 aros_gcc_ar=`$CC -print-prog-name=ar`
11806 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11807 set dummy `basename $aros_gcc_ar`; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 case $orig_target_ranlib in
11814 [\\/]* | ?:[\\/]*)
11815 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in `dirname $aros_gcc_ar`
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11829 done
11830 done
11831 IFS=$as_save_IFS
11834 esac
11836 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11837 if test -n "$orig_target_ranlib"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11839 $as_echo "$orig_target_ranlib" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 if test "$orig_target_ranlib" = ""; then
11848 # Extract the first word of "ar", so it can be a program name with args.
11849 set dummy ar; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 case $orig_target_ranlib in
11856 [\\/]* | ?:[\\/]*)
11857 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11867 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11871 done
11872 done
11873 IFS=$as_save_IFS
11876 esac
11878 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11879 if test -n "$orig_target_ranlib"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11881 $as_echo "$orig_target_ranlib" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11890 else
11891 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11892 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 case $orig_target_ranlib in
11899 [\\/]* | ?:[\\/]*)
11900 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11910 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11914 done
11915 done
11916 IFS=$as_save_IFS
11919 esac
11921 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11922 if test -n "$orig_target_ranlib"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11924 $as_echo "$orig_target_ranlib" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11933 if test "$orig_target_ranlib" = ""; then
11934 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11937 if test "${aros_tool_prefix}nm" = ""; then
11938 if test "$cross_compiling" = "yes" ; then
11939 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11940 set dummy ${target_tool_prefix}nm; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_orig_target_nm+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 case $orig_target_nm in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11962 done
11963 done
11964 IFS=$as_save_IFS
11967 esac
11969 orig_target_nm=$ac_cv_path_orig_target_nm
11970 if test -n "$orig_target_nm"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11972 $as_echo "$orig_target_nm" >&6; }
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11979 else
11980 if test "$GCC" = "yes"; then
11981 aros_gcc_nm=`$CC -print-prog-name=nm`
11982 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11983 set dummy `basename $aros_gcc_nm`; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if ${ac_cv_path_orig_target_nm+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 case $orig_target_nm in
11990 [\\/]* | ?:[\\/]*)
11991 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in `dirname $aros_gcc_nm`
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12005 done
12006 done
12007 IFS=$as_save_IFS
12010 esac
12012 orig_target_nm=$ac_cv_path_orig_target_nm
12013 if test -n "$orig_target_nm"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12015 $as_echo "$orig_target_nm" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12023 if test "$orig_target_nm" = ""; then
12024 # Extract the first word of "nm", so it can be a program name with args.
12025 set dummy nm; ac_word=$2
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027 $as_echo_n "checking for $ac_word... " >&6; }
12028 if ${ac_cv_path_orig_target_nm+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 case $orig_target_nm in
12032 [\\/]* | ?:[\\/]*)
12033 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12043 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12047 done
12048 done
12049 IFS=$as_save_IFS
12052 esac
12054 orig_target_nm=$ac_cv_path_orig_target_nm
12055 if test -n "$orig_target_nm"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12057 $as_echo "$orig_target_nm" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12066 else
12067 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12068 set dummy ${aros_tool_prefix}nm; ac_word=$2
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070 $as_echo_n "checking for $ac_word... " >&6; }
12071 if ${ac_cv_path_orig_target_nm+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 case $orig_target_nm in
12075 [\\/]* | ?:[\\/]*)
12076 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12086 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12090 done
12091 done
12092 IFS=$as_save_IFS
12095 esac
12097 orig_target_nm=$ac_cv_path_orig_target_nm
12098 if test -n "$orig_target_nm"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12100 $as_echo "$orig_target_nm" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12109 if test "$orig_target_nm" = ""; then
12110 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12113 if test "${aros_tool_prefix}strip" = ""; then
12114 if test "$cross_compiling" = "yes" ; then
12115 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12116 set dummy ${target_tool_prefix}strip; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if ${ac_cv_path_orig_target_strip+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 case $orig_target_strip in
12123 [\\/]* | ?:[\\/]*)
12124 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12138 done
12139 done
12140 IFS=$as_save_IFS
12143 esac
12145 orig_target_strip=$ac_cv_path_orig_target_strip
12146 if test -n "$orig_target_strip"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12148 $as_echo "$orig_target_strip" >&6; }
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12155 else
12156 if test "$GCC" = "yes"; then
12157 aros_gcc_strip=`$CC -print-prog-name=strip`
12158 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12159 set dummy `basename $aros_gcc_strip`; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_path_orig_target_strip+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 case $orig_target_strip in
12166 [\\/]* | ?:[\\/]*)
12167 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in `dirname $aros_gcc_strip`
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12177 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 break 2
12181 done
12182 done
12183 IFS=$as_save_IFS
12186 esac
12188 orig_target_strip=$ac_cv_path_orig_target_strip
12189 if test -n "$orig_target_strip"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12191 $as_echo "$orig_target_strip" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12199 if test "$orig_target_strip" = ""; then
12200 # Extract the first word of "strip", so it can be a program name with args.
12201 set dummy strip; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_strip+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $orig_target_strip in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 orig_target_strip=$ac_cv_path_orig_target_strip
12231 if test -n "$orig_target_strip"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12233 $as_echo "$orig_target_strip" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12242 else
12243 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12244 set dummy ${aros_tool_prefix}strip; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_orig_target_strip+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 case $orig_target_strip in
12251 [\\/]* | ?:[\\/]*)
12252 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12266 done
12267 done
12268 IFS=$as_save_IFS
12271 esac
12273 orig_target_strip=$ac_cv_path_orig_target_strip
12274 if test -n "$orig_target_strip"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12276 $as_echo "$orig_target_strip" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12285 if test "$orig_target_strip" = ""; then
12286 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12289 if test "${aros_tool_prefix}objcopy" = ""; then
12290 if test "$cross_compiling" = "yes" ; then
12291 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12292 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 case $orig_target_objcopy in
12299 [\\/]* | ?:[\\/]*)
12300 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12314 done
12315 done
12316 IFS=$as_save_IFS
12319 esac
12321 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12322 if test -n "$orig_target_objcopy"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12324 $as_echo "$orig_target_objcopy" >&6; }
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12331 else
12332 if test "$GCC" = "yes"; then
12333 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12334 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12335 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 case $orig_target_objcopy in
12342 [\\/]* | ?:[\\/]*)
12343 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in `dirname $aros_gcc_objcopy`
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
12351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12353 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 break 2
12357 done
12358 done
12359 IFS=$as_save_IFS
12362 esac
12364 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12365 if test -n "$orig_target_objcopy"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12367 $as_echo "$orig_target_objcopy" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12375 if test "$orig_target_objcopy" = ""; then
12376 # Extract the first word of "objcopy", so it can be a program name with args.
12377 set dummy objcopy; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 case $orig_target_objcopy in
12384 [\\/]* | ?:[\\/]*)
12385 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12395 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12399 done
12400 done
12401 IFS=$as_save_IFS
12404 esac
12406 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12407 if test -n "$orig_target_objcopy"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12409 $as_echo "$orig_target_objcopy" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12418 else
12419 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12420 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422 $as_echo_n "checking for $ac_word... " >&6; }
12423 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 case $orig_target_objcopy in
12427 [\\/]* | ?:[\\/]*)
12428 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432 for as_dir in $PATH
12434 IFS=$as_save_IFS
12435 test -z "$as_dir" && as_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
12437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12438 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12440 break 2
12442 done
12443 done
12444 IFS=$as_save_IFS
12447 esac
12449 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12450 if test -n "$orig_target_objcopy"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12452 $as_echo "$orig_target_objcopy" >&6; }
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12461 if test "$orig_target_objcopy" = ""; then
12462 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12465 if test "${aros_tool_prefix}objdump" = ""; then
12466 if test "$cross_compiling" = "yes" ; then
12467 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12468 set dummy ${target_tool_prefix}objdump; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_path_orig_target_objdump+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 case $orig_target_objdump in
12475 [\\/]* | ?:[\\/]*)
12476 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12490 done
12491 done
12492 IFS=$as_save_IFS
12495 esac
12497 orig_target_objdump=$ac_cv_path_orig_target_objdump
12498 if test -n "$orig_target_objdump"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12500 $as_echo "$orig_target_objdump" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12507 else
12508 if test "$GCC" = "yes"; then
12509 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12510 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12511 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if ${ac_cv_path_orig_target_objdump+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 case $orig_target_objdump in
12518 [\\/]* | ?:[\\/]*)
12519 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in `dirname $aros_gcc_objdump`
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12529 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12533 done
12534 done
12535 IFS=$as_save_IFS
12538 esac
12540 orig_target_objdump=$ac_cv_path_orig_target_objdump
12541 if test -n "$orig_target_objdump"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12543 $as_echo "$orig_target_objdump" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12551 if test "$orig_target_objdump" = ""; then
12552 # Extract the first word of "objdump", so it can be a program name with args.
12553 set dummy objdump; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_path_orig_target_objdump+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 case $orig_target_objdump in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12580 esac
12582 orig_target_objdump=$ac_cv_path_orig_target_objdump
12583 if test -n "$orig_target_objdump"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12585 $as_echo "$orig_target_objdump" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12594 else
12595 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12596 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if ${ac_cv_path_orig_target_objdump+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 case $orig_target_objdump in
12603 [\\/]* | ?:[\\/]*)
12604 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12623 esac
12625 orig_target_objdump=$ac_cv_path_orig_target_objdump
12626 if test -n "$orig_target_objdump"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12628 $as_echo "$orig_target_objdump" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12637 if test "$orig_target_objdump" = ""; then
12638 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12642 if test "$kernel_tool_prefix" = "none" ; then
12643 # No kernel tools specified
12644 # Assume target tools == kernel tools with ELF wrapper
12645 aros_kernel_cc=$orig_target_cc
12646 aros_kernel_cxx=$orig_target_cxx
12647 aros_kernel_cpp=$orig_target_cpp
12648 aros_kernel_ld=$orig_target_ld
12649 aros_kernel_as=$orig_target_as
12650 aros_kernel_ar=$orig_target_ar
12651 aros_kernel_ranlib=$orig_target_ranlib
12652 aros_kernel_nm=$orig_target_nm
12653 aros_kernel_strip=$orig_target_strip
12654 aros_kernel_objcopy=$orig_target_objcopy
12655 aros_kernel_objdump=$orig_target_objdump
12656 use_kernel_cc_wrapper=yes
12659 # At this point, all aros_kernel_* and aros_target_*
12660 # tools should be set up correctly
12662 CC="$aros_kernel_cc $kernel_tool_flags"
12663 CPP="$aros_kernel_cpp"
12665 #-----------------------------------------------------------------------------
12667 # Disable pointer-signedness warnings if the compiler recognises the option
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12670 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12671 save_cflags="$CFLAGS"
12672 if test "$crosstools" != "yes" ; then
12673 CFLAGS="$CFLAGS -Wno-pointer-sign"
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12678 main ()
12682 return 0;
12684 _ACEOF
12685 if ac_fn_c_try_compile "$LINENO"; then :
12686 use_no_sign_warning="yes"
12687 else
12688 use_no_sign_warning="no"
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 else
12692 # we do know it is supported for the smallest version of gcc we are going to build
12693 # we assume it's also supported by later versions
12694 use_no_sign_warning=yes
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12697 $as_echo "$use_no_sign_warning" >&6; }
12698 if test "x-$use_no_sign_warning" = "x-yes" ; then
12699 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12701 CFLAGS="$save_cflags"
12703 #-----------------------------------------------------------------------------
12705 # Find all the tools we need to compile. This could be cross-compiling
12706 # though! If that is the case we use the GNU form of the target and
12707 # simply add this to the front of the binary name. This is rather simple,
12708 # but it should work under most circumstances.
12710 # The default tools are to use the same as the host, but only if the
12711 # host and target CPU are the same. With GCC this is normally enough.
12714 aros_cc_pre=""
12715 aros_shared_ld="$aros_host_ld"
12717 aros_target_mkdep="$aros_host_mkdep"
12719 # The default tools executables to be linked to.
12720 if test "$rescomp" != ""; then
12721 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12722 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 case $aros_kernel_rescomp in
12729 [\\/]* | ?:[\\/]*)
12730 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12736 IFS=$as_save_IFS
12737 test -z "$as_dir" && as_dir=.
12738 for ac_exec_ext in '' $ac_executable_extensions; do
12739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12740 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12742 break 2
12744 done
12745 done
12746 IFS=$as_save_IFS
12749 esac
12751 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12752 if test -n "$aros_kernel_rescomp"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12754 $as_echo "$aros_kernel_rescomp" >&6; }
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12761 if test "$aros_kernel_rescomp" = ""; then
12762 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12766 # Set up the sources for the symlink farm
12767 if test "$crosstools" = "yes"; then
12768 crosstools_target=tools-crosstools
12771 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12772 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12775 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12776 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12777 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12778 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12779 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12780 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12781 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12783 # aros_cc_pre is a variable that is added to the front of the compiler name
12784 # in the generated aros-gcc shell script. We need this to enable the cache
12785 # to work across cleaned builds. Also, support DISTCC using the correct
12786 # environment variable.
12789 if test "x${DISTCC}" != "x" ; then
12790 if test "x${CCACHE}" != "x" ; then
12791 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12792 else
12793 aros_cc_pre="${DISTCC} "
12795 else
12796 if test "x${CCACHE}" != "x" ; then
12797 aros_cc_pre="${CCACHE} "
12801 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12803 aros_target_nostdinc_cflags=-nostdinc
12805 aros_target_nostartup_ldflags=-nostartfiles
12807 aros_target_nix_ldflags=-nix
12809 aros_target_detach_ldflags=-detach
12811 aros_target_nostdlib_ldflags=-nostdlib
12814 # Target tools
12815 if test "$crosstools" != "yes"; then
12816 if test "$GCC" = "yes"; then
12817 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12819 else
12820 # We do not know which gcc version we are going to build and what we need to know
12821 # here is different for different versions so this will be set later during the
12822 # build of crosstools.
12823 aros_target_cc_path=@aros_target_cc_path@
12825 aros_target_cpp="${prefix}cpp"
12826 aros_target_cc="${prefix}gcc"
12827 aros_target_cxx="${prefix}g++"
12828 aros_target_as="${prefix}as"
12829 aros_target_ld="${prefix}ld"
12830 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12831 aros_target_objcopy="${prefix}objcopy"
12832 aros_target_objdump="${prefix}objdump"
12833 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12834 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12835 aros_target_strip="${prefix}strip"
12836 aros_plain_nm="${prefix}nm"
12837 aros_plain_ar="${prefix}ar"
12839 # Check whether --enable-includes was given.
12840 if test "${enable_includes+set}" = set; then :
12841 enableval=$enable_includes; aros_target_incl=$enable_includes
12842 else
12843 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12847 if test "$aros_kernel_includes" = ""; then
12848 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12849 aros_kernel_includes="-isystem $aros_target_incl"
12853 if test "$aros_kernel_includes" != "" ; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12855 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12856 if test "$aros_kernel_cc_includes" = "" ; then
12857 # Try to guess where the directory is.
12858 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12859 if test -d $aros_kernel_cc_includes; then
12860 # Check if there is also an include-fixed directory and add it
12861 # to kernel compiler's include path as it may contain some of
12862 # the headers we need.
12863 if test -d "$aros_kernel_cc_includes"-fixed; then
12864 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12866 # Check for specific includes directory. Neede for Ubuntu 11.10
12867 if test -d "/usr/include/i386-linux-gnu"; then
12868 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12870 else
12871 # The directory doesn't exist, we need to do some more work.
12872 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12874 # These are the headers we're looking for.
12875 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12876 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12877 zutil.h stdint.h"
12879 dirs=
12880 for h in $headers; do
12881 # Which other headers are needed by each of the above?
12882 deps=$(echo "#include <$h>" | \
12883 $aros_kernel_cc -E -M - 2>/dev/null | \
12884 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12886 # Copy all the needed headers to a directory beneath gendir.
12887 for d in $deps; do
12888 h=$(basename $d)
12889 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12890 sed -n "s,^.*/include\(/.*\),\1,p")
12891 ! test -d $dir && mkdir -p $dir
12892 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12893 done
12894 done
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12898 $as_echo "$aros_kernel_cc_includes" >&6; }
12899 # Adding -nostdinc to kernel includes as they are always used together.
12900 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12903 if test "$crosstools" != "yes"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12905 $as_echo_n "checking for the target compiler's include path... " >&6; }
12906 if test "$aros_target_cc_includes" = "" ; then
12907 #try to guess where the directory is
12908 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12909 if ! test -d $aros_target_cc_includes; then
12910 #the directory doesn't exist, we need to do some more work
12911 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12913 #these are the headers we're looking for
12914 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12915 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12916 zutil.h"
12918 dirs=
12919 for h in $headers; do
12920 #which other headers each of the above headers needs?
12921 deps=$(echo "#include <$h>" | \
12922 $orig_target_cc -E -M - 2>/dev/null | \
12923 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12925 #copy all the needed headers to a directory beneath gendir
12926 for d in $deps; do
12927 h=$(basename $d)
12928 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12929 sed -n "s,^.*/include\(/.*\),\1,p")
12930 ! test -d $dir && mkdir -p $dir
12931 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12932 done
12933 done
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12937 $as_echo "$aros_target_cc_includes" >&6; }
12938 else
12939 # We do not know which gcc version we are going to build and what we need to know
12940 # here is different for different versions so this will be set later during the
12941 # build of crosstools.
12942 aros_target_cc_includes=@aros_target_cc_includes@
12946 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12947 # On GCC >= 4.0 -iquote should be used
12950 save_cc="$CC"
12951 save_cflags="$CFLAGS"
12952 CFLAGS="-iquote."
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12954 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12955 if test "x-$crosstools" != "x-yes"; then
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12960 main ()
12964 return 0;
12966 _ACEOF
12967 if ac_fn_c_try_compile "$LINENO"; then :
12968 has_iquote="yes"
12969 else
12970 has_iquote="no"
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 else
12974 # we do know it is supported for the smallest version of gcc we are going to build
12975 # we assume it's also supported by later versions
12976 has_iquote=yes
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12979 $as_echo "$has_iquote" >&6; }
12980 if test "x-$has_iquote" = "x-yes" ; then
12981 host_cflags_iquote=-iquote
12982 host_cflags_iquote_end=
12983 else
12984 host_cflags_iquote=-I
12985 host_cflags_iquote_end=-I-
12987 kernel_cflags_iquote=$host_cflags_iquote
12988 kernel_cflags_iquote_end=$host_cflags_iquote_end
12989 if test "x-$cross_compiling" = "x-yes"; then
12990 CC="$aros_kernel_cc"
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12992 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12993 if test "x-$crosstools" != "x-yes"; then
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12998 main ()
13002 return 0;
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006 use_no_stack_protector="yes"
13007 else
13008 use_no_stack_protector="no"
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 else
13012 # we do know it is supported for the smallest version of gcc we are going to build
13013 # we assume it's also supported by later versions
13014 use_no_stack_protector=yes
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13017 $as_echo "$use_no_stack_protector" >&6; }
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13019 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13020 if test "x-$crosstools" != "x-yes"; then
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13025 main ()
13029 return 0;
13031 _ACEOF
13032 if ac_fn_c_try_compile "$LINENO"; then :
13033 has_iquote="yes"
13034 else
13035 has_iquote="no"
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 else
13039 # we do know it is supported for the smallest version of gcc we are going to build
13040 # we assume it's also supported by later versions
13041 has_iquote=yes
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13044 $as_echo "$has_iquote" >&6; }
13045 if test "x-$has_iquote" = "x-yes" ; then
13046 kernel_cflags_iquote=-iquote
13047 kernel_cflags_iquote_end=
13048 else
13049 kernel_cflags_iquote=-I
13050 kernel_cflags_iquote_end=-I-
13053 aros_cflags_iquote=$kernel_cflags_iquote
13054 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13055 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13056 CC="$orig_target_cc"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13058 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13059 if test "x-$crosstools" != "x-yes"; then
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13064 main ()
13068 return 0;
13070 _ACEOF
13071 if ac_fn_c_try_compile "$LINENO"; then :
13072 has_iquote="yes"
13073 else
13074 has_iquote="no"
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 else
13078 # we do know it is supported for the smallest version of gcc we are going to build
13079 # we assume it's also supported by later versions
13080 has_iquote=yes
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13083 $as_echo "$has_iquote" >&6; }
13084 if test "x-$has_iquote" = "x-yes" ; then
13085 aros_cflags_iquote=-iquote
13086 aros_cflags_iquote_end=
13087 else
13088 aros_cflags_iquote=-I
13089 aros_cflags_iquote_end=-I-
13092 if test "x-$use_no_stack_protector" = "x-yes" ; then
13093 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13097 #-----------------------------------------------------------------------------
13099 # Check if the target compiler supports some options used for delinting:
13100 # -Wunused-but-set-variable
13101 # -Warray-bounds
13102 # -Wenum-compare
13103 # -Wstrict-overflow
13104 # -Wformat-security
13106 if test "x-$crosstools" != "x-yes"; then
13107 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13108 CC="$orig_target_cc"
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13111 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13112 CFLAGS=-Wunused-but-set-variable
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13117 main ()
13121 return 0;
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125 aros_unused_but_set_variable="yes"
13126 else
13127 aros_unused_but_set_variable="no"
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13131 $as_echo "$aros_unused_but_set_variable" >&6; }
13132 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13133 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13137 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13138 CFLAGS=-Warray-bounds
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13143 main ()
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151 aros_array_bounds="yes"
13152 else
13153 aros_array_bounds="no"
13155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13157 $as_echo "$aros_array_bounds" >&6; }
13158 if test "x-$aros_array_bounds" = "x-yes" ; then
13159 aros_cflags_array_bounds=-Wno-array-bounds
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13163 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13164 CFLAGS=-Wenum-compare
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13169 main ()
13173 return 0;
13175 _ACEOF
13176 if ac_fn_c_try_compile "$LINENO"; then :
13177 aros_enum_compare="yes"
13178 else
13179 aros_enum_compare="no"
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13183 $as_echo "$aros_enum_compare" >&6; }
13184 if test "x-$aros_enum_compare" = "x-yes" ; then
13185 aros_cflags_enum_compare=-Wno-enum-compare
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13189 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13190 CFLAGS=-Wstrict-overflow
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13195 main ()
13199 return 0;
13201 _ACEOF
13202 if ac_fn_c_try_compile "$LINENO"; then :
13203 aros_strict_overflow="yes"
13204 else
13205 aros_strict_overflow="no"
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13209 $as_echo "$aros_strict_overflow" >&6; }
13210 if test "x-$aros_strict_overflow" = "x-yes" ; then
13211 aros_cflags_strict_overflow=-Wno-strict-overflow
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13215 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13216 CFLAGS=-Wformat-security
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13221 main ()
13225 return 0;
13227 _ACEOF
13228 if ac_fn_c_try_compile "$LINENO"; then :
13229 aros_format_security="yes"
13230 else
13231 aros_format_security="no"
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13235 $as_echo "$aros_format_security" >&6; }
13236 if test "x-$aros_format_security" = "x-yes" ; then
13237 aros_cflags_format_security=-Wno-format-security
13239 else
13240 # We do not know which gcc version we are going to build and what we need to know
13241 # here is different for different versions so this will be set later during the
13242 # build of crosstools.
13243 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13244 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13245 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13246 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13247 aros_cflags_format_security=@aros_cflags_format_security@
13250 #-----------------------------------------------------------------------------
13252 # Check if we can explicitly choose older version of symbol hashing
13254 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13255 CC="$aros_kernel_cc"
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13257 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13262 main ()
13266 return 0;
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 use_hash_style="yes"
13271 else
13272 use_hash_style="no"
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13277 $as_echo "$use_hash_style" >&6; }
13278 if test "x-$use_hash_style" = "x-yes" ; then
13279 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13281 CC="$save_cc"
13282 CFLAGS="$save_cflags"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13293 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13295 # Check whether --with-resolution was given.
13296 if test "${with_resolution+set}" = set; then :
13297 withval=$with_resolution; resolution=$withval
13298 else
13299 resolution=none
13302 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13303 if test "$resolution" = "yes" ; then
13304 resolution="none"
13306 if test "$resolution" = "no" ; then
13307 resolution="none"
13309 if test "$resolution" != "none" ; then
13310 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13311 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13312 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13315 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13316 aros_cv_default_wbwidth=$aros_default_wbwidth
13317 aros_cv_default_wbheight=$aros_default_wbheight
13318 aros_cv_default_wbdepth=$aros_default_wbdepth
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13321 $as_echo_n "checking if serial debug is enabled... " >&6; }
13323 # Check whether --with-serial-debug was given.
13324 if test "${with_serial_debug+set}" = set; then :
13325 withval=$with_serial_debug; serial_debug=$withval
13326 else
13327 serial_debug=none
13330 if test "$aros_serial_debug" = 0 ; then
13331 serial_debug_forced=""
13332 if test "$serial_debug" = "yes" ; then
13333 serial_debug="1"
13335 if test "$serial_debug" = "no" ; then
13336 serial_debug="none"
13338 else
13339 serial_debug_forced="(forced)"
13340 serial_debug=$aros_serial_debug
13342 if test "$serial_debug" != "none" ; then
13343 aros_serial_debug=$serial_debug
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13345 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13352 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13353 # Check whether --enable-palm_debug_hack was given.
13354 if test "${enable_palm_debug_hack+set}" = set; then :
13355 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13356 else
13357 palm_debug_hack="no"
13360 if test "$palm_debug_hack" = "yes" ; then
13361 aros_palm_debug_hack="1"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13364 $as_echo "$palm_debug_hack" >&6; }
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13367 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13368 # Check whether --enable-nesting_supervisor was given.
13369 if test "${enable_nesting_supervisor+set}" = set; then :
13370 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13371 else
13372 nesting_supervisor="no"
13375 if test "$nesting_supervisor" = "yes" ; then
13376 aros_nesting_supervisor="1"
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13379 $as_echo "$nesting_supervisor" >&6; }
13381 if test "$aros_enable_mmu" = "" ; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13383 $as_echo_n "checking if MMU support is enabled... " >&6; }
13384 # Check whether --enable-mmu was given.
13385 if test "${enable_mmu+set}" = set; then :
13386 enableval=$enable_mmu; aros_enable_mmu=$enableval
13387 else
13388 aros_enable_mmu="yes"
13391 if test "$aros_enable_mmu" = "" ; then
13392 aros_enable_mmu="yes"
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13395 $as_echo "$aros_enable_mmu" >&6; }
13397 if test "$aros_enable_mmu" = "no" ; then
13398 aros_enable_mmu="0"
13399 else
13400 aros_enable_mmu="1"
13404 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13406 if test "x-$need_dlopen" != "x-no" ; then
13407 save_libs="$LIBS"
13408 LIBS=""
13409 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13410 if test "x$ac_cv_func_dlopen" = xyes; then :
13411 have_dl="yes"
13412 else
13413 have_dl="no"
13416 if test "x-$have_dl" = "x-no" ; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13419 if ${ac_cv_lib_dl_dlopen+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-ldl $LIBS"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13427 /* Override any GCC internal prototype to avoid an error.
13428 Use char because int might match the return type of a GCC
13429 builtin and then its argument prototype would still apply. */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char dlopen ();
13435 main ()
13437 return dlopen ();
13439 return 0;
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 ac_cv_lib_dl_dlopen=yes
13444 else
13445 ac_cv_lib_dl_dlopen=no
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13453 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13454 have_dl="yes"
13455 aros_host_ldflags="$aros_host_ldflags -ldl"
13456 else
13457 have_dl="no"
13461 if test "x-$have_dl" = "x-no" ; then
13462 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13464 LIBS="$save_libs"
13468 # Check whether --enable-x11_hidd was given.
13469 if test "${enable_x11_hidd+set}" = set; then :
13470 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13471 else
13472 x11_hidd="$need_x11"
13475 case "x-$x11_hidd" in
13476 x-yes|x-no|x-auto) ;;
13477 *) x11_hidd="$need_x11" ;;
13478 esac
13480 ENABLE_X11=0
13482 if test "x-$x11_hidd" != "x-no" ; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13485 $as_echo_n "checking for X... " >&6; }
13488 # Check whether --with-x was given.
13489 if test "${with_x+set}" = set; then :
13490 withval=$with_x;
13493 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13494 if test "x$with_x" = xno; then
13495 # The user explicitly disabled X.
13496 have_x=disabled
13497 else
13498 case $x_includes,$x_libraries in #(
13499 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13500 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 # One or both of the vars are not set, and there is no cached value.
13504 ac_x_includes=no ac_x_libraries=no
13505 rm -f -r conftest.dir
13506 if mkdir conftest.dir; then
13507 cd conftest.dir
13508 cat >Imakefile <<'_ACEOF'
13509 incroot:
13510 @echo incroot='${INCROOT}'
13511 usrlibdir:
13512 @echo usrlibdir='${USRLIBDIR}'
13513 libdir:
13514 @echo libdir='${LIBDIR}'
13515 _ACEOF
13516 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13518 for ac_var in incroot usrlibdir libdir; do
13519 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13520 done
13521 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13522 for ac_extension in a so sl dylib la dll; do
13523 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13524 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13525 ac_im_usrlibdir=$ac_im_libdir; break
13527 done
13528 # Screen out bogus values from the imake configuration. They are
13529 # bogus both because they are the default anyway, and because
13530 # using them would break gcc on systems where it needs fixed includes.
13531 case $ac_im_incroot in
13532 /usr/include) ac_x_includes= ;;
13533 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13534 esac
13535 case $ac_im_usrlibdir in
13536 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13537 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13538 esac
13540 cd ..
13541 rm -f -r conftest.dir
13544 # Standard set of common directories for X headers.
13545 # Check X11 before X11Rn because it is often a symlink to the current release.
13546 ac_x_header_dirs='
13547 /usr/X11/include
13548 /usr/X11R7/include
13549 /usr/X11R6/include
13550 /usr/X11R5/include
13551 /usr/X11R4/include
13553 /usr/include/X11
13554 /usr/include/X11R7
13555 /usr/include/X11R6
13556 /usr/include/X11R5
13557 /usr/include/X11R4
13559 /usr/local/X11/include
13560 /usr/local/X11R7/include
13561 /usr/local/X11R6/include
13562 /usr/local/X11R5/include
13563 /usr/local/X11R4/include
13565 /usr/local/include/X11
13566 /usr/local/include/X11R7
13567 /usr/local/include/X11R6
13568 /usr/local/include/X11R5
13569 /usr/local/include/X11R4
13571 /usr/X386/include
13572 /usr/x386/include
13573 /usr/XFree86/include/X11
13575 /usr/include
13576 /usr/local/include
13577 /usr/unsupported/include
13578 /usr/athena/include
13579 /usr/local/x11r5/include
13580 /usr/lpp/Xamples/include
13582 /usr/openwin/include
13583 /usr/openwin/share/include'
13585 if test "$ac_x_includes" = no; then
13586 # Guess where to find include files, by looking for Xlib.h.
13587 # First, try using that file with no special directory specified.
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <X11/Xlib.h>
13591 _ACEOF
13592 if ac_fn_c_try_cpp "$LINENO"; then :
13593 # We can compile using X headers with no special include directory.
13594 ac_x_includes=
13595 else
13596 for ac_dir in $ac_x_header_dirs; do
13597 if test -r "$ac_dir/X11/Xlib.h"; then
13598 ac_x_includes=$ac_dir
13599 break
13601 done
13603 rm -f conftest.err conftest.i conftest.$ac_ext
13604 fi # $ac_x_includes = no
13606 if test "$ac_x_libraries" = no; then
13607 # Check for the libraries.
13608 # See if we find them without any special options.
13609 # Don't add to $LIBS permanently.
13610 ac_save_LIBS=$LIBS
13611 LIBS="-lX11 $LIBS"
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #include <X11/Xlib.h>
13616 main ()
13618 XrmInitialize ()
13620 return 0;
13622 _ACEOF
13623 if ac_fn_c_try_link "$LINENO"; then :
13624 LIBS=$ac_save_LIBS
13625 # We can link X programs with no special library path.
13626 ac_x_libraries=
13627 else
13628 LIBS=$ac_save_LIBS
13629 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13631 # Don't even attempt the hair of trying to link an X program!
13632 for ac_extension in a so sl dylib la dll; do
13633 if test -r "$ac_dir/libX11.$ac_extension"; then
13634 ac_x_libraries=$ac_dir
13635 break 2
13637 done
13638 done
13640 rm -f core conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13642 fi # $ac_x_libraries = no
13644 case $ac_x_includes,$ac_x_libraries in #(
13645 no,* | *,no | *\'*)
13646 # Didn't find X, or a directory has "'" in its name.
13647 ac_cv_have_x="have_x=no";; #(
13649 # Record where we found X for the cache.
13650 ac_cv_have_x="have_x=yes\
13651 ac_x_includes='$ac_x_includes'\
13652 ac_x_libraries='$ac_x_libraries'"
13653 esac
13655 ;; #(
13656 *) have_x=yes;;
13657 esac
13658 eval "$ac_cv_have_x"
13659 fi # $with_x != no
13661 if test "$have_x" != yes; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13663 $as_echo "$have_x" >&6; }
13664 no_x=yes
13665 else
13666 # If each of the values was on the command line, it overrides each guess.
13667 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13668 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13669 # Update the cache value to reflect the command line values.
13670 ac_cv_have_x="have_x=yes\
13671 ac_x_includes='$x_includes'\
13672 ac_x_libraries='$x_libraries'"
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13674 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13678 x_cflags=
13679 for path in $x_libraries
13681 x_cflags="$x_cflags -L$path"
13682 done
13684 for path in $x_includes
13686 x_cflags="$x_cflags -I$path"
13687 done
13689 if test "x-$no_x" = "x-yes" ; then
13691 if test "x-$x11_hidd" != "x-auto" ; then
13692 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13695 else
13696 x11_hidd_target=kernel-x11gfx-kobj
13697 ENABLE_X11=1
13699 # Check whether --enable-x11_shm was given.
13700 if test "${enable_x11_shm+set}" = set; then :
13701 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13702 else
13703 x11_hidd_shm="auto"
13706 case "x-$x11_hidd_shm" in
13707 x-yes|x-no|x-auto) ;;
13708 *) x11_hidd_shm="auto" ;;
13709 esac
13711 have_xshm=no
13713 if test "x-$x11_hidd_shm" != "x-no" ; then
13715 for ac_header in sys/ipc.h
13716 do :
13717 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13718 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13719 cat >>confdefs.h <<_ACEOF
13720 #define HAVE_SYS_IPC_H 1
13721 _ACEOF
13725 done
13727 for ac_header in sys/shm.h
13728 do :
13729 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13730 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13731 cat >>confdefs.h <<_ACEOF
13732 #define HAVE_SYS_SHM_H 1
13733 _ACEOF
13737 done
13740 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13742 save_cflags="$CFLAGS"
13743 CFLAGS="$CFLAGS $x_cflags"
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13745 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13746 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 ac_check_lib_save_LIBS=$LIBS
13750 LIBS="-lXext $LIBS"
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13754 /* Override any GCC internal prototype to avoid an error.
13755 Use char because int might match the return type of a GCC
13756 builtin and then its argument prototype would still apply. */
13757 #ifdef __cplusplus
13758 extern "C"
13759 #endif
13760 char XShmQueryExtension ();
13762 main ()
13764 return XShmQueryExtension ();
13766 return 0;
13768 _ACEOF
13769 if ac_fn_c_try_link "$LINENO"; then :
13770 ac_cv_lib_Xext_XShmQueryExtension=yes
13771 else
13772 ac_cv_lib_Xext_XShmQueryExtension=no
13774 rm -f core conftest.err conftest.$ac_objext \
13775 conftest$ac_exeext conftest.$ac_ext
13776 LIBS=$ac_check_lib_save_LIBS
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13779 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13780 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13781 have_xshm=yes
13784 CFLAGS="$save_cflags"
13788 if test "x-$have_xshm" = "x-yes" ; then
13789 DO_XSHM_SUPPORT="1"
13790 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13791 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13792 else
13793 DO_XSHM_SUPPORT="0"
13797 # Check whether --enable-x11_vidmode was given.
13798 if test "${enable_x11_vidmode+set}" = set; then :
13799 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13800 else
13801 x11_hidd_vidmode="auto"
13804 case "x-$x11_hidd_vidmode" in
13805 x-yes|x-no|x-auto) ;;
13806 *) x11_hidd_vidmode="auto" ;;
13807 esac
13809 have_vidmode=no
13811 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13813 save_cflags="$CFLAGS"
13814 CFLAGS="$CFLAGS $x_cflags"
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13816 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13817 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 ac_check_lib_save_LIBS=$LIBS
13821 LIBS="-lXxf86vm $LIBS"
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char XF86VidModeQueryExtension ();
13833 main ()
13835 return XF86VidModeQueryExtension ();
13837 return 0;
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13842 else
13843 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13845 rm -f core conftest.err conftest.$ac_objext \
13846 conftest$ac_exeext conftest.$ac_ext
13847 LIBS=$ac_check_lib_save_LIBS
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13850 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13851 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13852 have_vidmode=yes
13855 CFLAGS="$save_cflags"
13858 if test "x-$have_vidmode" = "x-yes" ; then
13859 DO_VIDMODE_SUPPORT="1"
13860 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13861 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13862 else
13863 DO_VIDMODE_SUPPORT="0"
13867 aros_host_x11_includes=$x_includes
13868 aros_host_x11_libdirs=$x_libraries
13872 # Check whether --enable-sdl_hidd was given.
13873 if test "${enable_sdl_hidd+set}" = set; then :
13874 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13875 else
13876 sdl_hidd="auto"
13879 case "x-$sdl_hidd" in
13880 x-yes|x-no|x-auto) ;;
13881 *) sdl_hidd="auto" ;;
13882 esac
13884 if test "x-$sdl_hidd" != "x-no" ; then
13887 # Check whether --with-sdl-prefix was given.
13888 if test "${with_sdl_prefix+set}" = set; then :
13889 withval=$with_sdl_prefix; sdl_prefix="$withval"
13890 else
13891 sdl_prefix=""
13895 # Check whether --with-sdl-exec-prefix was given.
13896 if test "${with_sdl_exec_prefix+set}" = set; then :
13897 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13898 else
13899 sdl_exec_prefix=""
13902 # Check whether --enable-sdltest was given.
13903 if test "${enable_sdltest+set}" = set; then :
13904 enableval=$enable_sdltest;
13905 else
13906 enable_sdltest=yes
13910 if test x$sdl_exec_prefix != x ; then
13911 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13912 if test x${SDL_CONFIG+set} != xset ; then
13913 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13916 if test x$sdl_prefix != x ; then
13917 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13918 if test x${SDL_CONFIG+set} != xset ; then
13919 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13923 as_save_PATH="$PATH"
13924 if test "x$prefix" != xNONE; then
13925 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13927 # Extract the first word of "sdl-config", so it can be a program name with args.
13928 set dummy sdl-config; ac_word=$2
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13930 $as_echo_n "checking for $ac_word... " >&6; }
13931 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 case $SDL_CONFIG in
13935 [\\/]* | ?:[\\/]*)
13936 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13950 done
13951 done
13952 IFS=$as_save_IFS
13954 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13956 esac
13958 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13959 if test -n "$SDL_CONFIG"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13961 $as_echo "$SDL_CONFIG" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13968 PATH="$as_save_PATH"
13969 min_sdl_version=1.2.10
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13971 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13972 no_sdl=""
13973 if test "$SDL_CONFIG" = "no" ; then
13974 no_sdl=yes
13975 else
13976 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13977 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13979 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13981 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13983 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13985 if test "x$enable_sdltest" = "xyes" ; then
13986 ac_save_CFLAGS="$CFLAGS"
13987 ac_save_CXXFLAGS="$CXXFLAGS"
13988 ac_save_LIBS="$LIBS"
13989 CFLAGS="$CFLAGS $SDL_CFLAGS"
13990 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13991 LIBS="$LIBS $SDL_LIBS"
13992 rm -f conf.sdltest
13993 if test "$cross_compiling" = yes; then :
13994 echo $ac_n "cross compiling; assumed OK... $ac_c"
13995 else
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 #include <stdio.h>
14000 #include <stdlib.h>
14001 #include <string.h>
14002 #include "SDL.h"
14004 char*
14005 my_strdup (char *str)
14007 char *new_str;
14009 if (str)
14011 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14012 strcpy (new_str, str);
14014 else
14015 new_str = NULL;
14017 return new_str;
14020 int main (int argc, char *argv[])
14022 int major, minor, micro;
14023 char *tmp_version;
14025 /* This hangs on some systems (?)
14026 system ("touch conf.sdltest");
14028 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14030 /* HP/UX 9 (%@#!) writes to sscanf strings */
14031 tmp_version = my_strdup("$min_sdl_version");
14032 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14033 printf("%s, bad version string\n", "$min_sdl_version");
14034 exit(1);
14037 if (($sdl_major_version > major) ||
14038 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14039 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14041 return 0;
14043 else
14045 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14046 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14047 printf("*** best to upgrade to the required version.\n");
14048 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14049 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14050 printf("*** config.cache before re-running configure\n");
14051 return 1;
14056 _ACEOF
14057 if ac_fn_c_try_run "$LINENO"; then :
14059 else
14060 no_sdl=yes
14062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14063 conftest.$ac_objext conftest.beam conftest.$ac_ext
14066 CFLAGS="$ac_save_CFLAGS"
14067 CXXFLAGS="$ac_save_CXXFLAGS"
14068 LIBS="$ac_save_LIBS"
14071 if test "x$no_sdl" = x ; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14073 $as_echo "yes" >&6; }
14074 have_sdl="yes"
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14078 if test "$SDL_CONFIG" = "no" ; then
14079 echo "*** The sdl-config script installed by SDL could not be found"
14080 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14081 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14082 echo "*** full path to sdl-config."
14083 else
14084 if test -f conf.sdltest ; then
14086 else
14087 echo "*** Could not run SDL test program, checking why..."
14088 CFLAGS="$CFLAGS $SDL_CFLAGS"
14089 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14090 LIBS="$LIBS $SDL_LIBS"
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14094 #include <stdio.h>
14095 #include "SDL.h"
14097 int main(int argc, char *argv[])
14098 { return 0; }
14099 #undef main
14100 #define main K_and_R_C_main
14103 main ()
14105 return 0;
14107 return 0;
14109 _ACEOF
14110 if ac_fn_c_try_link "$LINENO"; then :
14111 echo "*** The test program compiled, but did not run. This usually means"
14112 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14113 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14114 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14115 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14116 echo "*** is required on your system"
14117 echo "***"
14118 echo "*** If you have an old version installed, it is best to remove it, although"
14119 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14120 else
14121 echo "*** The test program failed to compile or link. See the file config.log for the"
14122 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14123 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14124 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 CFLAGS="$ac_save_CFLAGS"
14129 CXXFLAGS="$ac_save_CXXFLAGS"
14130 LIBS="$ac_save_LIBS"
14133 SDL_CFLAGS=""
14134 SDL_LIBS=""
14135 have_sdl="no"
14139 rm -f conf.sdltest
14142 if test "x-$have_sdl" != "x-yes" ; then
14144 if test "x-$sdl_hidd" != "x-auto" ; then
14145 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14148 else
14149 sdl_hidd_target=kernel-hidd-sdl
14150 aros_host_sdl_cflags=SDL_CFLAGS
14151 aros_host_sdl_libs=SDL_LIBS
14155 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14156 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14161 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14162 oss_library_target=workbench-libs-oss-unix
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14168 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14169 # Check whether --enable-dbus was given.
14170 if test "${enable_dbus+set}" = set; then :
14171 enableval=$enable_dbus; dbus="yes"
14172 else
14173 dbus="no"
14176 if test "$dbus" = "yes" ; then
14177 ENABLE_DBUS=1
14178 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14179 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14180 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14181 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14182 else
14183 ENABLE_DBUS=0
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14186 $as_echo "$dbus" >&6; }
14188 if test "$use_kernel_cc_wrapper" = "yes" ; then
14189 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14192 if test "${crosstools}" != "yes" ; then
14193 aros_target_toolchain=no
14194 else
14195 aros_target_toolchain=yes
14199 # Generic
14211 # Compatability with other Amiga-like operation systems
14214 # Host related
14242 # Target Related
14306 # Delinting target compiler flags
14313 # Graphics Related
14330 # Native version related
14333 # Palm native version related
14336 # Unix/Hosted version related
14339 # MMU related
14342 # Apple iOS related
14347 # ARM default GCC target related
14352 # Android related
14356 # DBUS related
14363 #X11 related
14366 # Debug related
14372 # Collect-aros stuff: "-ius" to ignore undefined symbols
14375 # C compiler related
14378 case "$aros_flavour" in
14379 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14380 aros_flavour="emulation" ;;
14381 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14382 aros_flavour="emulation" ;;
14383 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14384 aros_flavour="standalone";;
14385 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14386 aros_flavour="standalone";;
14387 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14388 aros_flavour="native" ;;
14389 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14390 aros_flavour="native" ;;
14391 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14392 aros_flavour="linklib" ;;
14393 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14394 aros_flavour="palmnative" ;;
14395 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14396 aros_flavour="mac68knative" ;;
14397 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14398 aros_flavour="ppcnative" ;;
14399 esac
14401 if test ! -d ${aros_inc_dir} ; then
14402 ${MKDIR} ${aros_inc_dir}
14404 if test ! -d ${aros_geninc_dir} ; then
14405 ${MKDIR} ${aros_geninc_dir}
14407 if test ! -d ${aros_hostcfg_dir} ; then
14408 ${MKDIR} ${aros_hostcfg_dir}
14410 if test ! -d ${aros_targetcfg_dir} ; then
14411 ${MKDIR} ${aros_targetcfg_dir}
14413 if test ! -d ${aros_tools_dir} ; then
14414 ${MKDIR} ${aros_tools_dir}
14416 if test ! -d ${aros_scripts_dir} ; then
14417 ${MKDIR} ${aros_scripts_dir}
14420 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14423 ac_config_commands="$ac_config_commands compiler_executable"
14425 ac_config_commands="$ac_config_commands genmf_executable"
14428 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"
14431 cat >confcache <<\_ACEOF
14432 # This file is a shell script that caches the results of configure
14433 # tests run on this system so they can be shared between configure
14434 # scripts and configure runs, see configure's option --config-cache.
14435 # It is not useful on other systems. If it contains results you don't
14436 # want to keep, you may remove or edit it.
14438 # config.status only pays attention to the cache file if you give it
14439 # the --recheck option to rerun configure.
14441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14443 # following values.
14445 _ACEOF
14447 # The following way of writing the cache mishandles newlines in values,
14448 # but we know of no workaround that is simple, portable, and efficient.
14449 # So, we kill variables containing newlines.
14450 # Ultrix sh set writes to stderr and can't be redirected directly,
14451 # and sets the high bit in the cache file unless we assign to the vars.
14453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14454 eval ac_val=\$$ac_var
14455 case $ac_val in #(
14456 *${as_nl}*)
14457 case $ac_var in #(
14458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14460 esac
14461 case $ac_var in #(
14462 _ | IFS | as_nl) ;; #(
14463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14464 *) { eval $ac_var=; unset $ac_var;} ;;
14465 esac ;;
14466 esac
14467 done
14469 (set) 2>&1 |
14470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14471 *${as_nl}ac_space=\ *)
14472 # `set' does not quote correctly, so add quotes: double-quote
14473 # substitution turns \\\\ into \\, and sed turns \\ into \.
14474 sed -n \
14475 "s/'/'\\\\''/g;
14476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14477 ;; #(
14479 # `set' quotes correctly as required by POSIX, so do not add quotes.
14480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14482 esac |
14483 sort
14485 sed '
14486 /^ac_cv_env_/b end
14487 t clear
14488 :clear
14489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14490 t end
14491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14492 :end' >>confcache
14493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14494 if test -w "$cache_file"; then
14495 if test "x$cache_file" != "x/dev/null"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14497 $as_echo "$as_me: updating cache $cache_file" >&6;}
14498 if test ! -f "$cache_file" || test -h "$cache_file"; then
14499 cat confcache >"$cache_file"
14500 else
14501 case $cache_file in #(
14502 */* | ?:*)
14503 mv -f confcache "$cache_file"$$ &&
14504 mv -f "$cache_file"$$ "$cache_file" ;; #(
14506 mv -f confcache "$cache_file" ;;
14507 esac
14510 else
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14512 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14515 rm -f confcache
14517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14518 # Let make expand exec_prefix.
14519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14521 DEFS=-DHAVE_CONFIG_H
14523 ac_libobjs=
14524 ac_ltlibobjs=
14526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14527 # 1. Remove the extension, and $U if already installed.
14528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14531 # will be set to the directory where LIBOBJS objects are built.
14532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14534 done
14535 LIBOBJS=$ac_libobjs
14537 LTLIBOBJS=$ac_ltlibobjs
14541 : "${CONFIG_STATUS=./config.status}"
14542 ac_write_fail=0
14543 ac_clean_files_save=$ac_clean_files
14544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14547 as_write_fail=0
14548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14549 #! $SHELL
14550 # Generated by $as_me.
14551 # Run this file to recreate the current configuration.
14552 # Compiler output produced by configure, useful for debugging
14553 # configure, is in config.log if it exists.
14555 debug=false
14556 ac_cs_recheck=false
14557 ac_cs_silent=false
14559 SHELL=\${CONFIG_SHELL-$SHELL}
14560 export SHELL
14561 _ASEOF
14562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14563 ## -------------------- ##
14564 ## M4sh Initialization. ##
14565 ## -------------------- ##
14567 # Be more Bourne compatible
14568 DUALCASE=1; export DUALCASE # for MKS sh
14569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14570 emulate sh
14571 NULLCMD=:
14572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14573 # is contrary to our usage. Disable this feature.
14574 alias -g '${1+"$@"}'='"$@"'
14575 setopt NO_GLOB_SUBST
14576 else
14577 case `(set -o) 2>/dev/null` in #(
14578 *posix*) :
14579 set -o posix ;; #(
14580 *) :
14582 esac
14586 as_nl='
14588 export as_nl
14589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14593 # Prefer a ksh shell builtin over an external printf program on Solaris,
14594 # but without wasting forks for bash or zsh.
14595 if test -z "$BASH_VERSION$ZSH_VERSION" \
14596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14597 as_echo='print -r --'
14598 as_echo_n='print -rn --'
14599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14600 as_echo='printf %s\n'
14601 as_echo_n='printf %s'
14602 else
14603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14605 as_echo_n='/usr/ucb/echo -n'
14606 else
14607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14608 as_echo_n_body='eval
14609 arg=$1;
14610 case $arg in #(
14611 *"$as_nl"*)
14612 expr "X$arg" : "X\\(.*\\)$as_nl";
14613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14614 esac;
14615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14617 export as_echo_n_body
14618 as_echo_n='sh -c $as_echo_n_body as_echo'
14620 export as_echo_body
14621 as_echo='sh -c $as_echo_body as_echo'
14624 # The user is always right.
14625 if test "${PATH_SEPARATOR+set}" != set; then
14626 PATH_SEPARATOR=:
14627 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14628 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14629 PATH_SEPARATOR=';'
14634 # IFS
14635 # We need space, tab and new line, in precisely that order. Quoting is
14636 # there to prevent editors from complaining about space-tab.
14637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14638 # splitting by setting IFS to empty value.)
14639 IFS=" "" $as_nl"
14641 # Find who we are. Look in the path if we contain no directory separator.
14642 as_myself=
14643 case $0 in #((
14644 *[\\/]* ) as_myself=$0 ;;
14645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14646 for as_dir in $PATH
14648 IFS=$as_save_IFS
14649 test -z "$as_dir" && as_dir=.
14650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14651 done
14652 IFS=$as_save_IFS
14655 esac
14656 # We did not find ourselves, most probably we were run as `sh COMMAND'
14657 # in which case we are not to be found in the path.
14658 if test "x$as_myself" = x; then
14659 as_myself=$0
14661 if test ! -f "$as_myself"; then
14662 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14663 exit 1
14666 # Unset variables that we do not need and which cause bugs (e.g. in
14667 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14668 # suppresses any "Segmentation fault" message there. '((' could
14669 # trigger a bug in pdksh 5.2.14.
14670 for as_var in BASH_ENV ENV MAIL MAILPATH
14671 do eval test x\${$as_var+set} = xset \
14672 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14673 done
14674 PS1='$ '
14675 PS2='> '
14676 PS4='+ '
14678 # NLS nuisances.
14679 LC_ALL=C
14680 export LC_ALL
14681 LANGUAGE=C
14682 export LANGUAGE
14684 # CDPATH.
14685 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14688 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14689 # ----------------------------------------
14690 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14691 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14692 # script with STATUS, using 1 if that was 0.
14693 as_fn_error ()
14695 as_status=$1; test $as_status -eq 0 && as_status=1
14696 if test "$4"; then
14697 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14698 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14700 $as_echo "$as_me: error: $2" >&2
14701 as_fn_exit $as_status
14702 } # as_fn_error
14705 # as_fn_set_status STATUS
14706 # -----------------------
14707 # Set $? to STATUS, without forking.
14708 as_fn_set_status ()
14710 return $1
14711 } # as_fn_set_status
14713 # as_fn_exit STATUS
14714 # -----------------
14715 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14716 as_fn_exit ()
14718 set +e
14719 as_fn_set_status $1
14720 exit $1
14721 } # as_fn_exit
14723 # as_fn_unset VAR
14724 # ---------------
14725 # Portably unset VAR.
14726 as_fn_unset ()
14728 { eval $1=; unset $1;}
14730 as_unset=as_fn_unset
14731 # as_fn_append VAR VALUE
14732 # ----------------------
14733 # Append the text in VALUE to the end of the definition contained in VAR. Take
14734 # advantage of any shell optimizations that allow amortized linear growth over
14735 # repeated appends, instead of the typical quadratic growth present in naive
14736 # implementations.
14737 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14738 eval 'as_fn_append ()
14740 eval $1+=\$2
14742 else
14743 as_fn_append ()
14745 eval $1=\$$1\$2
14747 fi # as_fn_append
14749 # as_fn_arith ARG...
14750 # ------------------
14751 # Perform arithmetic evaluation on the ARGs, and store the result in the
14752 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14753 # must be portable across $(()) and expr.
14754 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14755 eval 'as_fn_arith ()
14757 as_val=$(( $* ))
14759 else
14760 as_fn_arith ()
14762 as_val=`expr "$@" || test $? -eq 1`
14764 fi # as_fn_arith
14767 if expr a : '\(a\)' >/dev/null 2>&1 &&
14768 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14769 as_expr=expr
14770 else
14771 as_expr=false
14774 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14775 as_basename=basename
14776 else
14777 as_basename=false
14780 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14781 as_dirname=dirname
14782 else
14783 as_dirname=false
14786 as_me=`$as_basename -- "$0" ||
14787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14788 X"$0" : 'X\(//\)$' \| \
14789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14790 $as_echo X/"$0" |
14791 sed '/^.*\/\([^/][^/]*\)\/*$/{
14792 s//\1/
14795 /^X\/\(\/\/\)$/{
14796 s//\1/
14799 /^X\/\(\/\).*/{
14800 s//\1/
14803 s/.*/./; q'`
14805 # Avoid depending upon Character Ranges.
14806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14809 as_cr_digits='0123456789'
14810 as_cr_alnum=$as_cr_Letters$as_cr_digits
14812 ECHO_C= ECHO_N= ECHO_T=
14813 case `echo -n x` in #(((((
14814 -n*)
14815 case `echo 'xy\c'` in
14816 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14817 xy) ECHO_C='\c';;
14818 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14819 ECHO_T=' ';;
14820 esac;;
14822 ECHO_N='-n';;
14823 esac
14825 rm -f conf$$ conf$$.exe conf$$.file
14826 if test -d conf$$.dir; then
14827 rm -f conf$$.dir/conf$$.file
14828 else
14829 rm -f conf$$.dir
14830 mkdir conf$$.dir 2>/dev/null
14832 if (echo >conf$$.file) 2>/dev/null; then
14833 if ln -s conf$$.file conf$$ 2>/dev/null; then
14834 as_ln_s='ln -s'
14835 # ... but there are two gotchas:
14836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14838 # In both cases, we have to default to `cp -p'.
14839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14840 as_ln_s='cp -p'
14841 elif ln conf$$.file conf$$ 2>/dev/null; then
14842 as_ln_s=ln
14843 else
14844 as_ln_s='cp -p'
14846 else
14847 as_ln_s='cp -p'
14849 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14850 rmdir conf$$.dir 2>/dev/null
14853 # as_fn_mkdir_p
14854 # -------------
14855 # Create "$as_dir" as a directory, including parents if necessary.
14856 as_fn_mkdir_p ()
14859 case $as_dir in #(
14860 -*) as_dir=./$as_dir;;
14861 esac
14862 test -d "$as_dir" || eval $as_mkdir_p || {
14863 as_dirs=
14864 while :; do
14865 case $as_dir in #(
14866 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14867 *) as_qdir=$as_dir;;
14868 esac
14869 as_dirs="'$as_qdir' $as_dirs"
14870 as_dir=`$as_dirname -- "$as_dir" ||
14871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14872 X"$as_dir" : 'X\(//\)[^/]' \| \
14873 X"$as_dir" : 'X\(//\)$' \| \
14874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14875 $as_echo X"$as_dir" |
14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14877 s//\1/
14880 /^X\(\/\/\)[^/].*/{
14881 s//\1/
14884 /^X\(\/\/\)$/{
14885 s//\1/
14888 /^X\(\/\).*/{
14889 s//\1/
14892 s/.*/./; q'`
14893 test -d "$as_dir" && break
14894 done
14895 test -z "$as_dirs" || eval "mkdir $as_dirs"
14896 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14899 } # as_fn_mkdir_p
14900 if mkdir -p . 2>/dev/null; then
14901 as_mkdir_p='mkdir -p "$as_dir"'
14902 else
14903 test -d ./-p && rmdir ./-p
14904 as_mkdir_p=false
14907 if test -x / >/dev/null 2>&1; then
14908 as_test_x='test -x'
14909 else
14910 if ls -dL / >/dev/null 2>&1; then
14911 as_ls_L_option=L
14912 else
14913 as_ls_L_option=
14915 as_test_x='
14916 eval sh -c '\''
14917 if test -d "$1"; then
14918 test -d "$1/.";
14919 else
14920 case $1 in #(
14921 -*)set "./$1";;
14922 esac;
14923 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14924 ???[sx]*):;;*)false;;esac;fi
14925 '\'' sh
14928 as_executable_p=$as_test_x
14930 # Sed expression to map a string onto a valid CPP name.
14931 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14933 # Sed expression to map a string onto a valid variable name.
14934 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14937 exec 6>&1
14938 ## ----------------------------------- ##
14939 ## Main body of $CONFIG_STATUS script. ##
14940 ## ----------------------------------- ##
14941 _ASEOF
14942 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14945 # Save the log message, to keep $0 and so on meaningful, and to
14946 # report actual input values of CONFIG_FILES etc. instead of their
14947 # values after options handling.
14948 ac_log="
14949 This file was extended by $as_me, which was
14950 generated by GNU Autoconf 2.68. Invocation command line was
14952 CONFIG_FILES = $CONFIG_FILES
14953 CONFIG_HEADERS = $CONFIG_HEADERS
14954 CONFIG_LINKS = $CONFIG_LINKS
14955 CONFIG_COMMANDS = $CONFIG_COMMANDS
14956 $ $0 $@
14958 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14961 _ACEOF
14963 case $ac_config_files in *"
14964 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14965 esac
14967 case $ac_config_headers in *"
14968 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14969 esac
14972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973 # Files that config.status was made for.
14974 config_files="$ac_config_files"
14975 config_headers="$ac_config_headers"
14976 config_commands="$ac_config_commands"
14978 _ACEOF
14980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14981 ac_cs_usage="\
14982 \`$as_me' instantiates files and other configuration actions
14983 from templates according to the current configuration. Unless the files
14984 and actions are specified as TAGs, all are instantiated by default.
14986 Usage: $0 [OPTION]... [TAG]...
14988 -h, --help print this help, then exit
14989 -V, --version print version number and configuration settings, then exit
14990 --config print configuration, then exit
14991 -q, --quiet, --silent
14992 do not print progress messages
14993 -d, --debug don't remove temporary files
14994 --recheck update $as_me by reconfiguring in the same conditions
14995 --file=FILE[:TEMPLATE]
14996 instantiate the configuration file FILE
14997 --header=FILE[:TEMPLATE]
14998 instantiate the configuration header FILE
15000 Configuration files:
15001 $config_files
15003 Configuration headers:
15004 $config_headers
15006 Configuration commands:
15007 $config_commands
15009 Report bugs to the package provider."
15011 _ACEOF
15012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15013 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15014 ac_cs_version="\\
15015 config.status
15016 configured by $0, generated by GNU Autoconf 2.68,
15017 with options \\"\$ac_cs_config\\"
15019 Copyright (C) 2010 Free Software Foundation, Inc.
15020 This config.status script is free software; the Free Software Foundation
15021 gives unlimited permission to copy, distribute and modify it."
15023 ac_pwd='$ac_pwd'
15024 srcdir='$srcdir'
15025 test -n "\$AWK" || AWK=awk
15026 _ACEOF
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029 # The default lists apply if the user does not specify any file.
15030 ac_need_defaults=:
15031 while test $# != 0
15033 case $1 in
15034 --*=?*)
15035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15037 ac_shift=:
15039 --*=)
15040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15041 ac_optarg=
15042 ac_shift=:
15045 ac_option=$1
15046 ac_optarg=$2
15047 ac_shift=shift
15049 esac
15051 case $ac_option in
15052 # Handling of the options.
15053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15054 ac_cs_recheck=: ;;
15055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15056 $as_echo "$ac_cs_version"; exit ;;
15057 --config | --confi | --conf | --con | --co | --c )
15058 $as_echo "$ac_cs_config"; exit ;;
15059 --debug | --debu | --deb | --de | --d | -d )
15060 debug=: ;;
15061 --file | --fil | --fi | --f )
15062 $ac_shift
15063 case $ac_optarg in
15064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15065 '') as_fn_error $? "missing file argument" ;;
15066 esac
15067 as_fn_append CONFIG_FILES " '$ac_optarg'"
15068 ac_need_defaults=false;;
15069 --header | --heade | --head | --hea )
15070 $ac_shift
15071 case $ac_optarg in
15072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15073 esac
15074 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15075 ac_need_defaults=false;;
15076 --he | --h)
15077 # Conflict between --help and --header
15078 as_fn_error $? "ambiguous option: \`$1'
15079 Try \`$0 --help' for more information.";;
15080 --help | --hel | -h )
15081 $as_echo "$ac_cs_usage"; exit ;;
15082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15084 ac_cs_silent=: ;;
15086 # This is an error.
15087 -*) as_fn_error $? "unrecognized option: \`$1'
15088 Try \`$0 --help' for more information." ;;
15090 *) as_fn_append ac_config_targets " $1"
15091 ac_need_defaults=false ;;
15093 esac
15094 shift
15095 done
15097 ac_configure_extra_args=
15099 if $ac_cs_silent; then
15100 exec 6>/dev/null
15101 ac_configure_extra_args="$ac_configure_extra_args --silent"
15104 _ACEOF
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106 if \$ac_cs_recheck; then
15107 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15108 shift
15109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15110 CONFIG_SHELL='$SHELL'
15111 export CONFIG_SHELL
15112 exec "\$@"
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117 exec 5>>config.log
15119 echo
15120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15121 ## Running $as_me. ##
15122 _ASBOX
15123 $as_echo "$ac_log"
15124 } >&5
15126 _ACEOF
15127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15129 # INIT-COMMANDS
15132 aros_host_exe_suffix=${aros_host_exe_suffix}
15133 aros_tools_dir=${aros_tools_dir}
15134 aros_target_cpu=${aros_target_cpu}
15135 aros_target_arch=${aros_target_arch}
15136 aros_target_suffix=${aros_target_suffix}
15137 orig_target_nm=${orig_target_nm}
15138 orig_target_as=${orig_target_as}
15139 orig_target_ar=${orig_target_ar}
15140 orig_target_ranlib=${orig_target_ranlib}
15141 orig_target_objdump=${orig_target_objdump}
15142 orig_target_objcopy=${orig_target_objcopy}
15143 orig_target_strip=${orig_target_strip}
15144 aros_kernel_ld=${aros_kernel_ld}
15147 aros_tools_dir=${aros_tools_dir}
15150 _ACEOF
15152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15154 # Handling of arguments.
15155 for ac_config_target in $ac_config_targets
15157 case $ac_config_target in
15158 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15159 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15160 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15162 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15163 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15164 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15165 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15166 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15167 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15168 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15169 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15170 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15171 "${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" ;;
15172 "${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" ;;
15173 "${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" ;;
15174 "${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" ;;
15175 "${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" ;;
15176 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15177 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15178 "${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" ;;
15180 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15181 esac
15182 done
15185 # If the user did not use the arguments to specify the items to instantiate,
15186 # then the envvar interface is used. Set only those that are not.
15187 # We use the long form for the default assignment because of an extremely
15188 # bizarre bug on SunOS 4.1.3.
15189 if $ac_need_defaults; then
15190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15195 # Have a temporary directory for convenience. Make it in the build tree
15196 # simply because there is no reason against having it here, and in addition,
15197 # creating and moving files from /tmp can sometimes cause problems.
15198 # Hook for its removal unless debugging.
15199 # Note that there is a small window in which the directory will not be cleaned:
15200 # after its creation but before its name has been assigned to `$tmp'.
15201 $debug ||
15203 tmp= ac_tmp=
15204 trap 'exit_status=$?
15205 : "${ac_tmp:=$tmp}"
15206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15208 trap 'as_fn_exit 1' 1 2 13 15
15210 # Create a (secure) tmp directory for tmp files.
15213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15214 test -d "$tmp"
15215 } ||
15217 tmp=./conf$$-$RANDOM
15218 (umask 077 && mkdir "$tmp")
15219 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15220 ac_tmp=$tmp
15222 # Set up the scripts for CONFIG_FILES section.
15223 # No need to generate them if there are no CONFIG_FILES.
15224 # This happens for instance with `./config.status config.h'.
15225 if test -n "$CONFIG_FILES"; then
15228 ac_cr=`echo X | tr X '\015'`
15229 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15230 # But we know of no other shell where ac_cr would be empty at this
15231 # point, so we can use a bashism as a fallback.
15232 if test "x$ac_cr" = x; then
15233 eval ac_cr=\$\'\\r\'
15235 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15236 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15237 ac_cs_awk_cr='\\r'
15238 else
15239 ac_cs_awk_cr=$ac_cr
15242 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15243 _ACEOF
15247 echo "cat >conf$$subs.awk <<_ACEOF" &&
15248 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15249 echo "_ACEOF"
15250 } >conf$$subs.sh ||
15251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15252 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15253 ac_delim='%!_!# '
15254 for ac_last_try in false false false false false :; do
15255 . ./conf$$subs.sh ||
15256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15258 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15259 if test $ac_delim_n = $ac_delim_num; then
15260 break
15261 elif $ac_last_try; then
15262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15263 else
15264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15266 done
15267 rm -f conf$$subs.sh
15269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15270 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15271 _ACEOF
15272 sed -n '
15274 s/^/S["/; s/!.*/"]=/
15277 s/^[^!]*!//
15278 :repl
15279 t repl
15280 s/'"$ac_delim"'$//
15281 t delim
15284 s/\(.\{148\}\)..*/\1/
15285 t more1
15286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15289 b repl
15290 :more1
15291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15294 s/.\{148\}//
15295 t nl
15296 :delim
15298 s/\(.\{148\}\)..*/\1/
15299 t more2
15300 s/["\\]/\\&/g; s/^/"/; s/$/"/
15303 :more2
15304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15307 s/.\{148\}//
15308 t delim
15309 ' <conf$$subs.awk | sed '
15310 /^[^""]/{
15312 s/\n//
15314 ' >>$CONFIG_STATUS || ac_write_fail=1
15315 rm -f conf$$subs.awk
15316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15317 _ACAWK
15318 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15319 for (key in S) S_is_set[key] = 1
15320 FS = "\a"
15324 line = $ 0
15325 nfields = split(line, field, "@")
15326 substed = 0
15327 len = length(field[1])
15328 for (i = 2; i < nfields; i++) {
15329 key = field[i]
15330 keylen = length(key)
15331 if (S_is_set[key]) {
15332 value = S[key]
15333 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15334 len += length(value) + length(field[++i])
15335 substed = 1
15336 } else
15337 len += 1 + keylen
15340 print line
15343 _ACAWK
15344 _ACEOF
15345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15347 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15348 else
15350 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15351 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15352 _ACEOF
15354 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15355 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15356 # trailing colons and then remove the whole line if VPATH becomes empty
15357 # (actually we leave an empty line to preserve line numbers).
15358 if test "x$srcdir" = x.; then
15359 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15361 s///
15362 s/^/:/
15363 s/[ ]*$/:/
15364 s/:\$(srcdir):/:/g
15365 s/:\${srcdir}:/:/g
15366 s/:@srcdir@:/:/g
15367 s/^:*//
15368 s/:*$//
15370 s/\(=[ ]*\).*/\1/
15372 s/\n//
15373 s/^[^=]*=[ ]*$//
15377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378 fi # test -n "$CONFIG_FILES"
15380 # Set up the scripts for CONFIG_HEADERS section.
15381 # No need to generate them if there are no CONFIG_HEADERS.
15382 # This happens for instance with `./config.status Makefile'.
15383 if test -n "$CONFIG_HEADERS"; then
15384 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15385 BEGIN {
15386 _ACEOF
15388 # Transform confdefs.h into an awk script `defines.awk', embedded as
15389 # here-document in config.status, that substitutes the proper values into
15390 # config.h.in to produce config.h.
15392 # Create a delimiter string that does not exist in confdefs.h, to ease
15393 # handling of long lines.
15394 ac_delim='%!_!# '
15395 for ac_last_try in false false :; do
15396 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15397 if test -z "$ac_tt"; then
15398 break
15399 elif $ac_last_try; then
15400 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15401 else
15402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15404 done
15406 # For the awk script, D is an array of macro values keyed by name,
15407 # likewise P contains macro parameters if any. Preserve backslash
15408 # newline sequences.
15410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15411 sed -n '
15412 s/.\{148\}/&'"$ac_delim"'/g
15413 t rset
15414 :rset
15415 s/^[ ]*#[ ]*define[ ][ ]*/ /
15416 t def
15418 :def
15419 s/\\$//
15420 t bsnl
15421 s/["\\]/\\&/g
15422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15423 D["\1"]=" \3"/p
15424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15426 :bsnl
15427 s/["\\]/\\&/g
15428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15429 D["\1"]=" \3\\\\\\n"\\/p
15430 t cont
15431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15432 t cont
15434 :cont
15436 s/.\{148\}/&'"$ac_delim"'/g
15437 t clear
15438 :clear
15439 s/\\$//
15440 t bsnlc
15441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15443 :bsnlc
15444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15445 b cont
15446 ' <confdefs.h | sed '
15447 s/'"$ac_delim"'/"\\\
15448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15451 for (key in D) D_is_set[key] = 1
15452 FS = "\a"
15454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15455 line = \$ 0
15456 split(line, arg, " ")
15457 if (arg[1] == "#") {
15458 defundef = arg[2]
15459 mac1 = arg[3]
15460 } else {
15461 defundef = substr(arg[1], 2)
15462 mac1 = arg[2]
15464 split(mac1, mac2, "(") #)
15465 macro = mac2[1]
15466 prefix = substr(line, 1, index(line, defundef) - 1)
15467 if (D_is_set[macro]) {
15468 # Preserve the white space surrounding the "#".
15469 print prefix "define", macro P[macro] D[macro]
15470 next
15471 } else {
15472 # Replace #undef with comments. This is necessary, for example,
15473 # in the case of _POSIX_SOURCE, which is predefined and required
15474 # on some systems where configure will not decide to define it.
15475 if (defundef == "undef") {
15476 print "/*", prefix defundef, macro, "*/"
15477 next
15481 { print }
15482 _ACAWK
15483 _ACEOF
15484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15485 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15486 fi # test -n "$CONFIG_HEADERS"
15489 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15490 shift
15491 for ac_tag
15493 case $ac_tag in
15494 :[FHLC]) ac_mode=$ac_tag; continue;;
15495 esac
15496 case $ac_mode$ac_tag in
15497 :[FHL]*:*);;
15498 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15499 :[FH]-) ac_tag=-:-;;
15500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15501 esac
15502 ac_save_IFS=$IFS
15503 IFS=:
15504 set x $ac_tag
15505 IFS=$ac_save_IFS
15506 shift
15507 ac_file=$1
15508 shift
15510 case $ac_mode in
15511 :L) ac_source=$1;;
15512 :[FH])
15513 ac_file_inputs=
15514 for ac_f
15516 case $ac_f in
15517 -) ac_f="$ac_tmp/stdin";;
15518 *) # Look for the file first in the build tree, then in the source tree
15519 # (if the path is not absolute). The absolute path cannot be DOS-style,
15520 # because $ac_f cannot contain `:'.
15521 test -f "$ac_f" ||
15522 case $ac_f in
15523 [\\/$]*) false;;
15524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15525 esac ||
15526 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15527 esac
15528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15529 as_fn_append ac_file_inputs " '$ac_f'"
15530 done
15532 # Let's still pretend it is `configure' which instantiates (i.e., don't
15533 # use $as_me), people would be surprised to read:
15534 # /* config.h. Generated by config.status. */
15535 configure_input='Generated from '`
15536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15537 `' by configure.'
15538 if test x"$ac_file" != x-; then
15539 configure_input="$ac_file. $configure_input"
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15541 $as_echo "$as_me: creating $ac_file" >&6;}
15543 # Neutralize special characters interpreted by sed in replacement strings.
15544 case $configure_input in #(
15545 *\&* | *\|* | *\\* )
15546 ac_sed_conf_input=`$as_echo "$configure_input" |
15547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15548 *) ac_sed_conf_input=$configure_input;;
15549 esac
15551 case $ac_tag in
15552 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15554 esac
15556 esac
15558 ac_dir=`$as_dirname -- "$ac_file" ||
15559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15560 X"$ac_file" : 'X\(//\)[^/]' \| \
15561 X"$ac_file" : 'X\(//\)$' \| \
15562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15563 $as_echo X"$ac_file" |
15564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15565 s//\1/
15568 /^X\(\/\/\)[^/].*/{
15569 s//\1/
15572 /^X\(\/\/\)$/{
15573 s//\1/
15576 /^X\(\/\).*/{
15577 s//\1/
15580 s/.*/./; q'`
15581 as_dir="$ac_dir"; as_fn_mkdir_p
15582 ac_builddir=.
15584 case "$ac_dir" in
15585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15588 # A ".." for each directory in $ac_dir_suffix.
15589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15590 case $ac_top_builddir_sub in
15591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15593 esac ;;
15594 esac
15595 ac_abs_top_builddir=$ac_pwd
15596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15597 # for backward compatibility:
15598 ac_top_builddir=$ac_top_build_prefix
15600 case $srcdir in
15601 .) # We are building in place.
15602 ac_srcdir=.
15603 ac_top_srcdir=$ac_top_builddir_sub
15604 ac_abs_top_srcdir=$ac_pwd ;;
15605 [\\/]* | ?:[\\/]* ) # Absolute name.
15606 ac_srcdir=$srcdir$ac_dir_suffix;
15607 ac_top_srcdir=$srcdir
15608 ac_abs_top_srcdir=$srcdir ;;
15609 *) # Relative name.
15610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15611 ac_top_srcdir=$ac_top_build_prefix$srcdir
15612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15613 esac
15614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15617 case $ac_mode in
15620 # CONFIG_FILE
15623 _ACEOF
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15626 # If the template does not know about datarootdir, expand it.
15627 # FIXME: This hack should be removed a few years after 2.60.
15628 ac_datarootdir_hack=; ac_datarootdir_seen=
15629 ac_sed_dataroot='
15630 /datarootdir/ {
15634 /@datadir@/p
15635 /@docdir@/p
15636 /@infodir@/p
15637 /@localedir@/p
15638 /@mandir@/p'
15639 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15640 *datarootdir*) ac_datarootdir_seen=yes;;
15641 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15643 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15644 _ACEOF
15645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15646 ac_datarootdir_hack='
15647 s&@datadir@&$datadir&g
15648 s&@docdir@&$docdir&g
15649 s&@infodir@&$infodir&g
15650 s&@localedir@&$localedir&g
15651 s&@mandir@&$mandir&g
15652 s&\\\${datarootdir}&$datarootdir&g' ;;
15653 esac
15654 _ACEOF
15656 # Neutralize VPATH when `$srcdir' = `.'.
15657 # Shell code in configure.ac might set extrasub.
15658 # FIXME: do we really want to maintain this feature?
15659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15660 ac_sed_extra="$ac_vpsub
15661 $extrasub
15662 _ACEOF
15663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15666 s|@configure_input@|$ac_sed_conf_input|;t t
15667 s&@top_builddir@&$ac_top_builddir_sub&;t t
15668 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15669 s&@srcdir@&$ac_srcdir&;t t
15670 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15671 s&@top_srcdir@&$ac_top_srcdir&;t t
15672 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15673 s&@builddir@&$ac_builddir&;t t
15674 s&@abs_builddir@&$ac_abs_builddir&;t t
15675 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15676 $ac_datarootdir_hack
15678 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15679 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15682 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15684 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15686 which seems to be undefined. Please make sure it is defined" >&5
15687 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15688 which seems to be undefined. Please make sure it is defined" >&2;}
15690 rm -f "$ac_tmp/stdin"
15691 case $ac_file in
15692 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15693 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15694 esac \
15695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15699 # CONFIG_HEADER
15701 if test x"$ac_file" != x-; then
15703 $as_echo "/* $configure_input */" \
15704 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15705 } >"$ac_tmp/config.h" \
15706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15707 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15709 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15710 else
15711 rm -f "$ac_file"
15712 mv "$ac_tmp/config.h" "$ac_file" \
15713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15715 else
15716 $as_echo "/* $configure_input */" \
15717 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15718 || as_fn_error $? "could not create -" "$LINENO" 5
15722 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15723 $as_echo "$as_me: executing $ac_file commands" >&6;}
15725 esac
15728 case $ac_file$ac_mode in
15729 "compiler_executable":C)
15730 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15731 mkdir -p $prefix
15732 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15733 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15735 echo ${prefix2}
15736 echo ${prefix3}
15737 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15739 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15740 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15741 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15742 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15743 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15744 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15745 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15747 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15749 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15751 esac
15752 done # for ac_tag
15755 as_fn_exit 0
15756 _ACEOF
15757 ac_clean_files=$ac_clean_files_save
15759 test $ac_write_fail = 0 ||
15760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15763 # configure is writing to config.log, and then calls config.status.
15764 # config.status does its own redirection, appending to config.log.
15765 # Unfortunately, on DOS this fails, as config.log is still kept open
15766 # by configure, so config.status won't be able to write to it; its
15767 # output is simply discarded. So we exec the FD to /dev/null,
15768 # effectively closing config.log, so it can be properly (re)opened and
15769 # appended to by config.status. When coming back to configure, we
15770 # need to make the FD available again.
15771 if test "$no_create" != yes; then
15772 ac_cs_success=:
15773 ac_config_status_args=
15774 test "$silent" = yes &&
15775 ac_config_status_args="$ac_config_status_args --quiet"
15776 exec 5>/dev/null
15777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15778 exec 5>>config.log
15779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15780 # would make configure fail if this is the last instruction.
15781 $ac_cs_success || as_fn_exit 1
15783 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15785 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15790 #XXX compatability...
15791 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15793 if test -n "$aros_shared_cflags" ; then
15794 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15795 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg